Liquidator
Solidity API
vBnb
Address of vBNB contract.
comptroller
Address of Venus Unitroller contract.
vaiController
Address of VAIUnitroller contract.
wBNB
Address of wBNB contract
constructor
Constructor for the implementation contract. Sets immutable variables.
Parameters
initialize
Initializer for the implementation contract.
Parameters
restrictLiquidation
An admin function to restrict liquidations to allowed addresses only.
Parameters
unrestrictLiquidation
An admin function to remove restrictions for liquidations.
Parameters
addToAllowlist
An admin function to add the liquidator to the allowedLiquidatorsByAccount mapping for a certain borrower. If the liquidations are restricted, only liquidators from the allowedLiquidatorsByAccount mapping can participate in liquidating the positions of this borrower.
Parameters
removeFromAllowlist
An admin function to remove the liquidator from the allowedLiquidatorsByAccount mapping of a certain borrower. If the liquidations are restricted, this liquidator will not be able to liquidate the positions of this borrower.
Parameters
liquidateBorrow
Liquidates a borrow and splits the seized amount between protocol share reserve and liquidator. The liquidators should use this interface instead of calling vToken.liquidateBorrow(...) directly. Checks force VAI liquidation first; vToken should be address of vaiController if vaiDebt is greater than threshold For BNB borrows msg.value should be equal to repayAmount; otherwise msg.value should be zero.
Parameters
setTreasuryPercent
Sets the new percent of the seized amount that goes to treasury. Should be less than or equal to comptroller.liquidationIncentiveMantissa().sub(1e18).
Parameters
setProtocolShareReserve
Sets protocol share reserve contract address
Parameters
reduceReserves
Reduce the reserves of the pending accumulated reserves
setMinLiquidatableVAI
Sets the threshold for minimum amount of vaiLiquidate
Parameters
setPendingRedeemChunkLength
Length of the pendingRedeem array to be consider while redeeming in Liquidation transaction
Parameters
pauseForceVAILiquidate
Pause Force Liquidation of VAI
resumeForceVAILiquidate
Resume Force Liquidation of VAI
Last updated