Follows the strategy as listed in the submission requirements.
-
User deposits DAI and MATIC into the contract
-
Run the execute function
-
User can "tend" the farm periodically with the
tend
function -
Run the
harvest
function to "harvest" all your tokens, which will be converted to DAI
-
farm.sol is the main controller that uses the three functions
execute
,harvest
, andtend
to run the dapp -
Deposits DAI into Aave and borrows against the deposit
-
Stakes borrowed DAI into Curve's aave pool
-
Whenever the user
tends
their "crops," the rewards from aave and curve will be swapped to DAI and the cycle will begin again -
harvest
allows the user to collect their "crops," thereby claiming rewards from all platforms, repaying all loans, and withdrawing from Aave
Thank you so much for hosting this bounty! This was a great first introduction for me to defi, yield farming, and dapp development itself 😅. Learning everything in such a short time is something that I certainly won't forget.
Hi everyone! This project has not been touched for a while, so feel free to contact me if you wish to continue the work. Currently, the defi space is still rapidly expanding, so this is a good starter project for anyone interested. Here are some helpful links about the topic: