UnstakePool
Contents
Globals
Var | Type |
---|---|
balanceOf | mapping(address => uint256) |
totalSupplyOf | mapping(address => uint256) |
Functions
constructor
No description
Declaration:
Modifiers:
Modifier |
---|
Only |
deposit
Deposit REI to UnstakePool
, only can be called by stake manager, this will be called when user starts unstake.
Declaration:
Modifiers:
Modifier |
---|
nonReentrant |
onlyStakeManager |
Args:
Arg | Type | Description |
---|---|---|
| address | Validator address. |
withdraw
Withdraw REI and burn shares, only can be called by stake manager, this will be called when unstake timeout.
Declaration:
Modifiers:
Modifier |
---|
nonReentrant |
onlyStakeManager |
Args:
Arg | Type | Description |
---|---|---|
| address | Validator address. |
| uint256 | Number of shares. |
| address payable | REI receiver address(this value is set when the user starts unstake). |
slash
Slash validator and transfer the slashed amount to address(0)
.
Declaration:
Modifiers:
Modifier |
---|
nonReentrant |
onlyStakeManager |
Args:
Arg | Type | Description |
---|---|---|
| address | Validator address. |
| uint8 | Slash factor. |
Last updated