CommissionShare
Contents
Globals
validator
address
Functions
constructor
No description
Declaration:
Modifiers:
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:
shares
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:
amount
uint256
Number of REI
mint
Mint share token to to
address. Can only be called by stake manager.
Declaration:
Modifiers:
nonReentrant
onlyStakeManager
Args:
to
address
Receiver address
burn
Burn shares and return REI to to
address. Can only be called by stake manager.
Declaration:
Modifiers:
nonReentrant
onlyStakeManager
Args:
shares
uint256
Number of shares to be burned
reward
Reward validator.
Declaration:
Modifiers:
nonReentrant
onlyStakeManager
slash
Slash validator and transfer the slashed amount to address(0)
.
Declaration:
Modifiers:
nonReentrant
onlyStakeManager
Args:
factor
uint8
Slash factor.
Last updated