BorrowLiquidation
The liquidation of borrower's positions are achieved in this contract.
Write Functions
liquidateBorrowPosition
user
address
Address of the borrower.
index
uint64
Index of the borrower's position.
currentEthPrice
uint64
Current ETH price.
liquidationType
LiquidationType
How to liquidate the psoition.
lastCumulativeRate
uint256
Cumulative rate.
Liquidate the the borrower's position, if the current ETH price is below or equal to deposited LTV of deposited ETH price. Here the borrowed amount of USDa is burned, 10% of protected amount is going to ABOND USDa pool if the liquidated collateral is ETH. This function can only be called by borrowing contract.
Here, the CDS users who opted for liquidation gains are liquidators.
liquidationType1
user
address
Address of the borrower.
index
uint64
Index of the borrower's position.
currentEthPrice
uint64
Current ETH price.
lastCumulativeRate
uint256
Cumulative rate.
Here the borrowed amount of USDa is burned, 10% of protected amount is going to ABOND USDa pool if the liquidated collateral is ETH.
liquidationType2
user
address
Address of the borrower.
index
uint64
Index of the borrower's position.
currentEthPrice
uint64
Current ETH price.
Here the 50% of the deposited amount is transfer to synthetix for taking short position with 1X leverage.
closeThePositionInSynthetix
Submit the order to close the above opened short position in synthetix.
executeOrdersInSynthetix
Execute the submitted orders in synthetix.
setTreasury
_treasury
address
Treasury contract addess.
Sets treasury contract interface.
setAdmin
adminAddress
address
Admin's address.
Sets admin's address.
Last updated