BSC Flash-Loan Arbitrage Contract

Job ID: 39823581

Budget: ₹12,500 – ₹37,500 INR

I want a production-ready flash-loan arbitrage system built specifically for Binance Smart Chain. The core idea is to take instantaneous loans, scan two BSC-based exchanges for price spreads, and execute profitable cross-exchange trades within a single transaction so the loan plus fees are repaid automatically.

The contract must be written in Solidity and include:
• A function that pulls the loan from a reputable BSC lending pool (for example PancakeSwap v2 or similar).
• Logic to fetch quotes from at least two BSC DEX routers, compare them, and swap only when the spread covers gas and loan fees.
• A security-minded design that prevents re-entrancy, sandwiching, or slippage exploits.
• Clear events for every step: loan taken, swap A→B, swap B→A, loan repaid, profit sent to my wallet.

I also need deployment and test scripts plus concise documentation so I can adjust target pairs or router addresses later. When I can run a local Hardhat test that shows the loan cycle finishing with a positive balance, I will consider the job complete.