📌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

Retrieves the balance of a specified token for this contract.

Parameters

Returns

placeTrade

Executes a trade on PancakeSwap.

Parameters

Returns

initialArbitrage

Initiates an arbitrage trade using a flash loan.

Parameters

pancakeCall

Callback function for PancakeSwap flash loan.

Parameters

Last updated