CommissionShare
Contents
Globals
Var | Type |
---|---|
validator | address |
Functions
constructor
No description
Declaration:
Modifiers:
Modifier |
---|
ERC20 |
Only |
estimateSharesToAmount
Estimate how much REI should be stake, if user wants to get the number of shares, or estimate how much REI can be obtained, if user unstake the amount of REI.
Declaration:
Modifiers: No modifiers
Args:
Arg | Type | Description |
---|---|---|
| uint256 | Number of shares |
estimateAmountToShares
Estimate how much shares should be unstake, if user wants to get the amount of REI, or estimate how much shares can be obtained, if user stake the amount of REI.
Declaration:
Modifiers: No modifiers
Args:
Arg | Type | Description |
---|---|---|
| uint256 | Number of REI |
mint
Mint share token to to
address. Can only be called by stake manager.
Declaration:
Modifiers:
Modifier |
---|
nonReentrant |
onlyStakeManager |
Args:
Arg | Type | Description |
---|---|---|
| address | Receiver address |
burn
Burn shares and return REI to to
address. Can only be called by stake manager.
Declaration:
Modifiers:
Modifier |
---|
nonReentrant |
onlyStakeManager |
Args:
Arg | Type | Description |
---|---|---|
| uint256 | Number of shares to be burned |
reward
Reward validator.
Declaration:
Modifiers:
Modifier |
---|
nonReentrant |
onlyStakeManager |
slash
Slash validator and transfer the slashed amount to address(0)
.
Declaration:
Modifiers:
Modifier |
---|
nonReentrant |
onlyStakeManager |
Args:
Arg | Type | Description |
---|---|---|
| uint8 | Slash factor. |
Last updated