ILendingPool.sol
ILendingPool
Interface for a lending pool contract.
FlashLoan
event FlashLoan(address sender, address recipient, uint256 amount, uint256 paid, uint256 paidToTakerPool, uint256 paidToMakerPool)
Emitted when a flash loan is executed.
Parameters:
Name Type Description sender address The address initiating the flash loan. recipient address The address receiving the flash loan. amount uint256 The amount of the flash loan. paid uint256 The amount paid back after the flash loan. paidToTakerPool uint256 The amount paid to the taker pool after the flash loan. paidToMakerPool uint256 The amount paid to the maker pool after the flash loan.
flashLoan
function flashLoan(address token, uint256 amount, address recipient, bytes data) external
Executes a flash loan.
Parameters:
Name Type Description token address The address of the token for the flash loan. amount uint256 The amount of the flash loan. recipient address The address to receive the flash loan. data bytes Additional data for the flash loan.
getPendingBinShare
function getPendingBinShare(address market, address settlementToken, uint256 binBalance) external view returns (uint256)
Retrieves the pending share of earnings for a specific bin (subset) of funds in a market.
Parameters:
Name Type Description market address The address of the market. settlementToken address The settlement token address. binBalance uint256 The balance of funds in the bin. Return Values:
Name Type Description [0] uint256 The pending share of earnings for the specified bin.