Contracts & Front end for the app
- Deposits DAI in Alchemix V2
- Mints alUSD from Alchemix V2
- Swaps alUSD for DAI in Curve
- Transfers DAI to a selected beneficiary.
Alchemix V2 only allows whitelisted contracts (regular EOAs are obviously allowed) to interact with their contract. So, for now we must use this app with a local mainnet fork and whitelist ourselves in the Alchemix Whitelist contract.
- Install hardhat & dependencies
- Run local blockchain using mainnet forking
- Run scripts/deploy in localhost
- Create .env file and fill out their variables as .env.example
- Run scripts/setup-for-front in localhost to set the whitelist and other setup.
- Run the frontend with
npm run dev
- Use the app & Enjoy :)