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
  • validatorsLength
  • earn
  • accumulate
  • onAssignBlockReward
  1. Developer
  2. System Contracts

FeePool

Contents

Globals

Var
Type

sharesOf

mapping(address => uint256)

totalShares

uint256

accTxFee

uint256

globalTimestamp

uint256

validators

address[]

Functions

constructor

No description

Declaration:

  function constructor(
  ) public Only

Modifiers:

Modifier

Only

validatorsLength

Get validators length.

Declaration:

  function validatorsLength(
  ) external returns (uint256)

Modifiers: No modifiers

earn

Increase miner's share.

Declaration:

  function earn(
    address validator,
    uint256 earned
  ) external nonReentrant onlyRouter

Modifiers:

Modifier

nonReentrant

onlyRouter

Args:

Arg
Type
Description

validator

address

Miner address

earned

uint256

Miner earned share.

accumulate

Add reward to fee pool.

Declaration:

  function accumulate(
    bool isTxFee
  ) external nonReentrant onlyRouter

Modifiers:

Modifier

nonReentrant

onlyRouter

Args:

Arg
Type
Description

isTxFee

bool

Is transaction fee

onAssignBlockReward

Assign block reward callback, it only can be called by router.

Declaration:

  function onAssignBlockReward(
  ) external nonReentrant onlyRouter

Modifiers:

Modifier

nonReentrant

onlyRouter

PreviousFeeTokenNextValidatorRewardPool

Last updated 3 years ago