UnstakePool

Contents

Globals

Functions

constructor

No description

Declaration:

  function constructor(
  ) public Only

Modifiers:

deposit

Deposit REI to UnstakePool, only can be called by stake manager, this will be called when user starts unstake.

Declaration:

  function deposit(
    address validator
  ) external nonReentrant onlyStakeManager returns (uint256 shares)

Modifiers:

Args:

withdraw

Withdraw REI and burn shares, only can be called by stake manager, this will be called when unstake timeout.

Declaration:

  function withdraw(
    address validator,
    uint256 shares,
    address payable to
  ) external nonReentrant onlyStakeManager returns (uint256 amount)

Modifiers:

Args:

slash

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

Declaration:

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

Modifiers:

Args:

Last updated