Aave => Sushiswap or Uniswap => Aave
- Get a flashloan from Aave.
- Check which is profitable, then sell on either Uniswap or Sushiswap.
- Pay back Aave and keep the profit.
This is a flashloan repo. Gets liquidity from Aave, takes advantage of an arbitrage opportunity on Uniswap or Sushiswap depending on which is profitable, repays loan and keeps profit. Enjoy!
Solidity
Aave => Sushiswap or Uniswap => Aave