Options
All
  • Public
  • Public/Protected
  • All
Menu

This captures the Treasury module's tax_policy and reward_policy parameters, which determine how the Tax Rate and Reward Weight values are allowed to change.

Hierarchy

Index

Interfaces

Constructors

Properties

Methods

Constructors

constructor

Properties

cap

cap: Coin

Tax Cap (only applicable for Tax Rate)

change_max

change_max: Dec

Ratio of current value that rate is allowed to change in one update.

rate_max

rate_max: Dec

Maximum value for rate.

rate_min

rate_min: Dec

Minimum value for rate.

Methods

clamp

  • You can simulate the result of the clamping algorithm, which subjects updates in rate to the rules defined by the PolicyConstraints.

    Parameters

    • prevRate: Input

      previous rate

    • newRate: Input

      next rate

    Returns Dec

    New rate, after clamping constraints have been applied

toData

toJSON

  • toJSON(): string

Static fromData

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Static property
  • Static method
  • Property

Generated using TypeDoc