Skip to content

notsegfault/clend-www

Repository files navigation

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

About

Core Lending Protocol Web Interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published