Smart contract
Budget: $250 – $750 USD
Smart Contract/Flash Loan Requirements
The flash loan should come from AAVE as they have Polygon flash loans which will have very low gas fees. The overall goal is to obtain a very large flash loan of DAI from AAVE and stake all of it on Wonderland.money just before the rebase occurs. Then right after the rebase, collect the staking rewards we earn as well as unstake all funds and finally payback the flash loan. The staking rewards should be transferred to the wallet below.
We need the flash loan fee to be paid at the end of the loan. If there will not be enough of a profit then the contract should not execute.
Here is a more detailed outline of the logic we need the Smart Contract to perform:
1. Obtain a polygon flash loan from AAVE for DAI
2. Swap DAI for DAI via the Multichain Router (app.multichain.org)
3. Swap DAI for TIME on TraderJoexyz
4. Stake TIME on Wonderland.money just before the rebase occurs
5. Collect staking rewards then unstake all funds and perform swaps above to eventually payback the flash loan to AAVE + fee for flash loan.
The flash loan should come from AAVE as they have Polygon flash loans which will have very low gas fees. The overall goal is to obtain a very large flash loan of DAI from AAVE and stake all of it on Wonderland.money just before the rebase occurs. Then right after the rebase, collect the staking rewards we earn as well as unstake all funds and finally payback the flash loan. The staking rewards should be transferred to the wallet below.
We need the flash loan fee to be paid at the end of the loan. If there will not be enough of a profit then the contract should not execute.
Here is a more detailed outline of the logic we need the Smart Contract to perform:
1. Obtain a polygon flash loan from AAVE for DAI
2. Swap DAI for DAI via the Multichain Router (app.multichain.org)
3. Swap DAI for TIME on TraderJoexyz
4. Stake TIME on Wonderland.money just before the rebase occurs
5. Collect staking rewards then unstake all funds and perform swaps above to eventually payback the flash loan to AAVE + fee for flash loan.