REI Network Documents
  • REI Network
    • Welcome to REI Network
    • Why We build REI Network
    • Introduction to $REI
  • Developer
    • Quick Start
    • API Reference
    • Token Addresses
    • System Contracts
      • StakeManager
      • Fee
      • ContractFee
      • Router
      • AbstractToken
      • CommissionShare
      • FeeToken
      • FeePool
      • ValidatorRewardPool
      • FreeFee
      • UnstakePool
      • FreeFeeToken
      • Config
    • Guides
      • Using The Graph
        • Using The Graph on REI Network
        • Running a Graph Node on REI Network
      • Using Gnosis Safe
      • Exchange Integration
  • REI DAO
    • What is REI DAO?
      • Background
      • Management content of REI DAO
      • How the REI DAO is implemented?
      • How REI DAO works?
    • Governance
      • About Governance
      • Governance Process
      • Voting with Snapshot
      • FAQ
    • Guides
      • Dashboard
      • Become a Validator
      • Jail Mechanism
      • Slash Mechanism
      • Voting for a Validator
      • Stake for Free Gas
      • Using BLS
        • Check BLS
      • REI@3.0.X Upgrade Guide
Powered by GitBook
On this page
  • Contents
  • Globals
  • Functions
  • constructor
  • claim
  • reward
  • slash
  1. Developer
  2. System Contracts

ValidatorRewardPool

Contents

Globals

Var
Type

balanceOf

mapping(address => uint256)

Functions

constructor

No description

Declaration:

  function constructor(
  ) public Only

Modifiers:

Modifier

Only

claim

Claim validator reward.

Declaration:

  function claim(
    address validator,
    uint256 amount
  ) external nonReentrant onlyStakeManager

Modifiers:

Modifier

nonReentrant

onlyStakeManager

Args:

Arg
Type
Description

validator

address

Validator address.

amount

uint256

Claim amount.

reward

Reward validator.

Declaration:

  function reward(
    address validator
  ) external nonReentrant onlyStakeManager

Modifiers:

Modifier

nonReentrant

onlyStakeManager

Args:

Arg
Type
Description

validator

address

Validator address.

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:

Modifier

nonReentrant

onlyStakeManager

Args:

Arg
Type
Description

validator

address

Validator address.

factor

uint8

Slash factor.

PreviousFeePoolNextFreeFee

Last updated 3 years ago