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