Strategy that exposes a user to a leveraged position of wstETH while earn additional staking rewards.
Manager can set an idealDebtToCollateral value in the stategy that represents the ratio Debt/Collateral multiplied by 1000. We multiply by 100 to avoid rounding down in solidity division.
npm install -g npx
npm i
Our hardhat.config file makes use of an env var named INFURA_API_KEY Create a .env file and add your infura key there.
Alternatively, feel free to overwrite the url field in hardhat.config with your own mainnet rpc url string.
npx hardhat node
In another terminal window/tab run
npx hardhat test
This will both compile and run tests
- Create a strategy for Compound
- Create an upgradeable version of the contracts to be used along with a transparent proxy
- Increase test coverage including scenarios where strategies and implementation contracts are updated
- Write foundry tests to fuzz over different values of idealDebtToCollateral while deposit/withdraw
- Add more quantitative tests by writing predictions in js