This projects puts requested amount of DAI into 3pool then LP tokens from pool to LiquidityGauge.
To convert CRV tokens minted from gauge Uniswap is used.
In this project Hardhat is used.
To install hardhat
npm install --save-dev hardhatTo install waffle & ethers
npm install --save-dev @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers ethersTo test this project mainnet should be forked (Hardnet caches data when forked, block number is to not download forked data everytime new block added).
Instead of <key> an alchemy account should be created and key of the account should be written in .env file (.envshould be created in root folder of project).
Can be tested by running
npx hardhat install
npx hardhat testTO-DO:
- Improve safety of contract
- There might be security issues in harvesting part.