Skip to content

Fully Open and Permission-less Lending Protocol Permission-less version of lending protocol with more embedded risk control parameters and diversified sources of capital supply (dToken pool and other sources).

License

Notifications You must be signed in to change notification settings

dforce-network/LendingContractsV2

Repository files navigation

dForce Lending Contracts

Github CI built-with openzeppelin

Usage
Prepare

Install packages:

npm install
Compile
npx hardhat compile
Test
npx hardhat test
Deploy
mv .example.env .env

Should edit the .env file with your local environment variables.

All parameters in .example.env are:

  • COINMARKET_API: Optional, only for gas reporter.

  • ETHERSCAN_KEY: Optional, to verify contracts automatically.

  • INFURA_KEY: Required, infura key to connect to the Ethereum blockchain.

  • ALCHEMY_KEY: Required, Alchemy key to connect to the Ethereum blockchain.

  • PRIVATE_KEY: Required, the account to deploy the contracts.

  • ASSETS: Required, an array that contains underlying tokens to deploy corresponding iTokens. Notice:USDC, has standard interest model and ETH, has non-standard interest model, should be at first

Before runs the script to deploy contract, should set all underlying tokens address in config/contractAddresses.js and corresponding configs in config/reservesConfigs.js and config/commonConfig.js

npx hardhat run scripts/deploy.js --network kovan

Deployed Addresses

DeployedAddresses.md

Developer Documentation

https://developers.dforce.network/lend/lend-and-synth

About

Fully Open and Permission-less Lending Protocol Permission-less version of lending protocol with more embedded risk control parameters and diversified sources of capital supply (dToken pool and other sources).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published