ILiquidator
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 Lender
s, 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
Name | Type | Description |
---|---|---|
data | bytes | Encoded parameters that were passed to Borrower.liquidate |
caller | address | The address that called Borrower.liquidate |
amounts | AuctionAmounts | The key amounts involved in the liquidation |