Strategy to deposit DAI in Alchemix, borrow alUSD & deposit in Curve Pool and then deposit LP tokens in Yearn's Curve alUSD vault.
- Deposits DAI in Alchemix V2
- Mints alUSD from Alchemix V2
- Deposits alUSD in the Curve Factory USD Metapool alUSD3CRV.
- Deposits Curve LP Token to Yearn's Curve alUSD vault in the name of the sender.
As Alchemix V2 only allows the interaction of whitelisted contracts (apart from all EOAs, we must first whitelist our contract in the Whitelist in our local blockchain.
- Install hardhat & dependencies
- Run local blockchain using mainnet forking
- Run scripts/deploy in localhost
- Create .env file and fill out their variables as in .env.example
- Run scripts/contractSetup in localhost
- Earn :)