Skip to main content

IFlashSwapCallback

Git Source

Interface for the flash swap callback

Functions

flashSwapCallback

Called on the token receiver by the LiquidationPair during a liquidation if the flashSwap data length is non-zero

function flashSwapCallback(address _sender, uint256 _amountIn, uint256 _amountOut, bytes calldata _flashSwapData)
external;

Parameters

NameTypeDescription
_senderaddressThe address that triggered the liquidation swap
_amountInuint256The amount of tokens expected to be sent to the target
_amountOutuint256The amount of tokens that were sent to the receiver
_flashSwapDatabytesThe flash swap data that was passed into the swap function.