Giter Site home page Giter Site logo

clend-www's Introduction

clend-www

Development

yarn
yarn dev

Open http://localhost:8080 with your browser to see the result.

Web3 integration

Clone the cLend repo and run yarn && yarn start. It should start a local hardhat node with the required deployed contracts.

Then one need to connect to it with metamask on http://localhost:8545 and work on the website using the local contracts.

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying src/pages/index.js. The page auto-updates as you edit the file.

Advance time and block for interests testing

npx hardhat console

once in the hardat console:

const provider = new ethers.providers.JsonRpcProvider();
(await provider.send("evm_increaseTime", [60*60*24])) && (await provider.send("evm_mine", []))

This should advance the timestamp by 1 day and mine a block.

Static Build

yarn static:build

Considerations

The website should be deployable on IPFS and rely on no centralized backend server.

Once in a while, it's a good idea to verify it's still working properly in offline mode using

yarn static:start

Fleek Deployment

Base directory: Not set

Build command:

yarn install && yarn static:build

Publish directory:

out

clend-www's People

Contributors

veridisco avatar notsegfault avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

clend-www's Issues

UI inputs

  1. allow the menu to open on hover (besides click)
  2. menu structure not so clear: proposal: home / dashboard with the intro text etc., borrow section, gov section, info section (link to repos, socials etc.)
  3. The header text might then go to the home page only (as not really relevant for the borrow menu), especially on mobile its a bit annoying having this text on top
  4. would rewrite more in that direction (what, why, how... can provide more ideas if needed):
    What: coreDAO is a fully decentralized autonomous organization that allows you to....
    Why: Allows you to blabla
    How: several blabla
  5. A bar indicator of the threshold would be cool
  6. DAI Borrowed--> change to Borrowed: DAI....
    Left to Borrow -> add also DAI
  7. Interest accrued (will that be included the DAI borrowed? if so, include explenation into tooltip. If not I would add a total debt DAI indication
  8. Interest per year, tooltip says "amount.." isn't that the rate?
  9. Borrow DAI and DAI as coin, think "DAI" in the title can be removed (also more flex when other coins are added), i.e. just show DAI in the coin row
  10. How to remove collatoral? not clear from the menu? First repay DAI, than repay CORE? mabe add a zap out function (all repay and remove coll)
  11. Liq threshold tooltip typo: ... is exceeding (not are)
  12. add liq price and current price of collatoral
  13. add somehwere total protocoal stats (maybe dashboard?)
  14. mobile view, move the borrow menu above the info pannel
  15. future stuff maybe: loop feature, self-repaying with rewards (forfeits)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.