Skip to content

Define LenghtFeeAdjustments Parameters #154

@gabriele-0201

Description

@gabriele-0201

LenghtFeeAdjustment requires 4 parameters to update targeted_length_fee_adjustment at the end of each block. The value is used in the following formula:

inclusion_fee = base_fee + [targeted_length_fee_adjustment * length_fee] + [targeted_weight_fee_adjustment * weight_fee];

It requires 4 parameters:

  • Target
  • AdjustmentVariable
  • MinimumMultiplier
  • MaximumMultiplier

The current values for targeted_weight_fee_adjustment are:

  • TargetBlockFullness = 25%
  • AdjustmentVariableBlockFullness = 75/1_000_000
  • MinimumMultiplierBlockFullness = 1/10
  • MaximumMultiplierBlockFullness = FixedU128::max_value()

These values are defined here to define SlowAdjustingFeeUpdate.

For targeted_length_fee_adjustment, the values are:

  • TargetBlockSize = 16%
    • If the total block size is 5MiB, then the target block size is 0.8MiB.
  • AdjustmentVariableBlockSize = 1/840
    • This value means that the maximum fee variation in one hour is 30%, following the formula v = p / k * (1 - s*), where p represents the maximum fee variation percentage, k represents the period in which the variation is defined (in blocks), and s* represents the target percentage.
  • MinimumMultiplierBlockSize = TODO
  • MaximumMultiplierBlockSize = FixedU128::max_value()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions