Liquidators Methods
public getAddressBurnRate (ownerAddress)
Description: returns current ongoing expenses of SSV tokens for a particular SSV account on per block basis (aggregates all expenses for all the validators owned by this account). If this address owns network operators, it will subtract their earnings from the burn rate. Returns 0 if no validators are active.
Parameter | Type | Description |
ownerAddress | address | The user address |
Return values
Parameter | Type | Description |
burnRate | uint256 | The rate per block in which the account spends SSV. |
public isLiquidatable (ownerAddress)
Description: returns true if the specified SSV account balance is under liquidation collateral and can be liquidated.
Parameter | Type | Description |
ownerAddress | address | The user address |
Return values
Parameter | Type | Description |
boolean | Indication if an account could be liquidated |
Public liquidate (ownerAddresses[])
Description: liquidates SSV account specified in the given array and sends their balances to the msg.sender (the Liquidator). Note that the function will loop through the whole array provided, be mindful of the array length and keep it within the transaction gas limit.
Parameter | Type | Description |
ownerAddress[] | address[] | Array of user addresses |
public isLiquidated (ownerAddress)
Description: Returns true if validators owned by the given SSV account are disabled (liquidated).
Parameter | Type | Description |
ownerAddress | address | The user address |
Return values
Parameter | Type | Description |
boolean | Indication if an account is liquidated |
Last updated