CommissionShare

Contents

Globals

Functions

constructor

No description

Declaration:

  function constructor(
  ) public ERC20 Only

Modifiers:

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:

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:

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:

Args:

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:

Args:

reward

Reward validator.

Declaration:

  function reward(
  ) external nonReentrant onlyStakeManager

Modifiers:

slash

Slash validator and transfer the slashed amount to address(0).

Declaration:

  function slash(
    uint8 factor
  ) external nonReentrant onlyStakeManager returns (uint256 amount)

Modifiers:

Args:

Last updated