Need Help Creating A Smart Contract/Flash Loan

Job ID: 33209790

Budget: $250 – $750 USD

Smart Contract/Flash Loan that performs the following:

Obtain a flash loan from the AAVE protocol for X amount of AVAX tokens on the Avalanche Network
Swap AVAX for TIME on the TraderJoe platform
Stake TIME on Wonderland.money just before the rebase occurs
Trigger rebase externally to collect staking rewards
Unstake all funds/rewards and swap TIME for AVAX via TraderJoe
Payback flash loan (+fee) to AAVE
Important: The Smart Contract must be written so that if there will not be enough profit made after collecting staking rewards to pay the flash loan fee then the contract should not execute.
Related categories: Blockchain Ethereum Solidity Smart Contracts