CommissionShare
Var | Type |
---|---|
validator | address |
No description
Declaration:
function constructor(
) public ERC20 Only
Modifiers:
Modifier |
---|
ERC20 |
Only |
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:
Arg | Type | Description |
---|---|---|
shares | uint256 | Number of shares |
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:
Arg | Type | Description |
---|---|---|
amount | uint256 | Number of REI |
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:
Modifier |
---|
nonReentrant |
onlyStakeManager |
Args:
Arg | Type | Description |
---|---|---|
to | address | Receiver address |
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:
Modifier |
---|
nonReentrant |
onlyStakeManager |
Args:
Arg | Type | Description |
---|---|---|
shares | uint256 | Number of shares to be burned |
Reward validator.
Declaration:
function reward(
) external nonReentrant onlyStakeManager
Modifiers:
Modifier |
---|
nonReentrant |
onlyStakeManager |
Slash validator and transfer the slashed amount to
address(0)
.Declaration:
function slash(
uint8 factor
) external nonReentrant onlyStakeManager returns (uint256 amount)
Modifiers:
Modifier |
---|
nonReentrant |
onlyStakeManager |
Args:
Arg | Type | Description |
---|---|---|
factor | uint8 | Slash factor. |
Last modified 1yr ago