Account Methods
Methods surrounding SSV accounts information and management.
public getAddressBalance (ownerAddress)
Description: returns the outstanding SSV balance of an SSV account.
Parameter | Type | Description |
ownerAddress | address | The user address |
Return values
Parameter | Type | Description |
balance | uint256 | Accounts remaining balance denominated in SSV tokens |
public deposit (ownerAddress, amount)
Description: deposits SSV token into an SSV account, will fail if not enough tokens are approved.
Parameter | Type | Description |
ownerAddress | address | The user address |
amount | uint256 (casted to uint64) | $SSV amount to be deposited |
public withdraw (amount)
Description: withdraws SSV tokens from SSV account of msg.sender,, will fail if msg.sender tries to withdraw more than is his liquidation collateral. To withdraw the maximum possible amount with regards to burn rate (operational runway balance), use withdrawAll().
Parameter | Type | Description |
amount | uint256 (casted to uint64) | Amount to be withdrawn |
public withdrawAll (ownerAddress)
Description: withdraws all the SSV tokens from the SSV account of msg.sender which he can safely withdraw with regards to his burn rate (operational runway balance).
Parameter | Type | Description |
ownerAddress | address | The user address |
public reactivateAccount (amount)
Description: reactivates an liquidated SSV account by depositing sufficient SSV tokens to the SSV account of msg.sender.
Parameter | Type | Description |
amount | uint256 (casted to uint64) | $SSV amount to be deposited |
Last modified 4mo ago