Flash Loan developer

Job ID: 40337371

Budget: $15 – $25 AUD

I need a Solidity smart contract deployed on Ethereum that requests a flash loan from Aave, sweeps the borrowed funds through Uniswap and SushiSwap in the same transaction, captures any price-spread profit, then repays the loan with fees before the block closes. The core logic should be gas-efficient, re-entrancy-safe, and written so I can adjust token pairs or add new DEX routers later.

Please supply:

• A fully commented .sol file showing the Aave flash-loan call, the two-leg swap sequence (Uniswap → SushiSwap or the reverse, chosen dynamically), and the automatic repayment.
• A deployment script and a short README explaining environment variables, contract parameters, and how to point to mainnet or a mainnet-fork for testing (Hardhat or Foundry is fine).
• One automated test that forks mainnet, triggers a sample arbitrage, and proves the contract ends the tx with a positive balance after fees.

If anything about Aave’s v3 pool, Uniswap’s or SushiSwap’s router versions affects the implementation, note it clearly in the code comments.