Class RewardState

RewardsState represents the global parameters controlling the rate at which accounts accrue rewards.

Implements

Constructors

  • Parameters

    • params: {
          feeSink: Address;
          rewardsLevel: bigint;
          rewardsPool: Address;
          rewardsRate: bigint;
          rewardsRecalculationRound: bigint;
          rewardsResidue: bigint;
      }
      • feeSink: Address
      • rewardsLevel: bigint
      • rewardsPool: Address
      • rewardsRate: bigint
      • rewardsRecalculationRound: bigint
      • rewardsResidue: bigint

    Returns RewardState

Properties

feeSink: Address

The FeeSink address.

rewardsLevel: bigint

RewardsLevel specifies how many rewards, in MicroAlgos, have been distributed to each config.Protocol.RewardUnit of MicroAlgos since genesis.

rewardsPool: Address

The RewardsPool address.

rewardsRate: bigint

The number of new MicroAlgos added to the participation stake from rewards at the next round.

rewardsRecalculationRound: bigint

The round at which the RewardsRate will be recalculated.

rewardsResidue: bigint

The number of leftover MicroAlgos after the distribution of RewardsRate/rewardUnits MicroAlgos for every reward unit in the next round.

encodingSchema: NamedMapSchema = ...

Methods

  • Extract the encoding data for this object. This data, after being prepared by the encoding Schema, can be encoded to msgpack or JSON.

    Returns Map<string, unknown>

Generated using TypeDoc