Crate orml_gradually_update[][src]

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

pub use module::*;

Modules

module

Structs

GraduallyUpdate

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