Crate orml_gradually_update

source ·
Expand description

§Gradually Update

A module for scheduling gradually updates to storage values.

§Overview

This module exposes capabilities for scheduling updates to storage values gradually. This is useful to change parameter values gradually to ensure a smooth transition. It is also possible to cancel an update before it reaches to target value.

NOTE: Only unsigned integer value up to 128 bits are supported. But a “newtype” pattern struct that wraps an unsigned integer works too such as Permill and FixedU128.

Re-exports§

Modules§

  • The pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.

Structs§

  • Gradually update a value stored at key to target_value, change per_block * T::UpdateFrequency per T::UpdateFrequency blocks.