CrossLiquidation
Write Methods
crossLiquidateERC20
Liquidate an amount of ERC20 collateral asset from the pool with cross margin mode.
poolId
uint32
The id of the pool
borrower
address
The address whom account will be liquidated
collateralAsset
address
The address of the underlying collateral asset to liquidated
debtAsset
address
The address of the underlying debt asset to repaid
debtToCover
uint256
The underlying amount to be repaid, expressed in underlying asset decimals units
supplyAsCollateral
bool
The liquidated collateral asset whether be supplied as liquidator's collateral into pool or not
crossLiquidateERC721
Liquidate an amount of ERC721 collateral asset from the pool with cross margin mode.
poolId
uint32
The id of the pool
borrower
address
The address whom account will be liquidated
collateralAsset
address
The address of the underlying collateral asset to liquidated
collateralTokenIds
uint256
The token id list of the underlying collateral asset to liquidated
debtAsset
address
The address of the underlying debt asset to repaid
supplyAsCollateral
bool
The liquidated collateral asset whether be supplied as liquidator's collateral into pool or not
Last updated