ILiquidator

Git Source

Functions

receive

receive() external payable;

callback

Transfers amounts.out0 and amounts.out1 to the liquidator with the expectation that they'll transfer amounts.repay0 and amounts.repay1 to the appropriate Lenders, executing swaps if necessary. The liquidator can keep leftover funds as a reward.

function callback(bytes calldata data, address caller, AuctionAmounts memory amounts) external;

Parameters

NameTypeDescription
databytesEncoded parameters that were passed to Borrower.liquidate
calleraddressThe address that called Borrower.liquidate
amountsAuctionAmountsThe key amounts involved in the liquidation