📌Flashloans
Overview
The FlashLoan
contract is designed to facilitate arbitrage trading using flash loans from a decentralized exchange (like PancakeSwap). It performs a series of token swaps to capitalize on price discrepancies across different liquidity pools.r
Methods
getBalanceOfToken
getBalanceOfToken
Retrieves the balance of a specified token for this contract.
Parameters
Returns
placeTrade
placeTrade
Executes a trade on PancakeSwap.
Parameters
Returns
initialArbitrage
initialArbitrage
Initiates an arbitrage trade using a flash loan.
Parameters
pancakeCall
pancakeCall
Callback function for PancakeSwap flash loan.
Parameters
Last updated