Expand description
Tokenomics configurations.
Structs§
- Adjustment variable for fee calculation, set to 1/100,000. This value influences how rapidly the fee multiplier changes.
- Unbalance handler to provide rewards to block authors
- Implements transaction payment for a pallet implementing the [
frame_support::traits::fungible
] trait (eg. pallet_balances) using an unbalance handler (implementing [OnUnbalanced
]). - Maximum fee multiplier, set to the maximum possible value of the
Multiplier
type. - Minimum fee multiplier, set to 1/1,000,000,000. This represents the smallest possible fee multiplier to prevent fees from dropping too low.
- Multiplier for operational fees, set to 5.
- The target block fullness level, set to 25%. This determines the block saturation level, and fees will adjust based on this value.
- A struct to update the weight multiplier per block. It implements
Convert<Multiplier, Multiplier>
, meaning that it can convert the previous multiplier to the next one. This should be called onon_finalize
of a block, prior to potentially cleaning the weight data from the system pallet. - Virtual treasury wallet
- Handles converting a weight scalar to a fee value, based on the scale and granularity of the node’s balance type.
Constants§
Type Aliases§
- Fee multiplier.
- Parameterized slow adjusting fee updated based on https://research.web3.foundation/en/latest/polkadot/overview/2-token-economics.html#-2.-slow-adjusting-mechanism