23 releases (5 stable)
new 1.4.0 | Apr 28, 2025 |
---|---|
1.3.0 | Feb 9, 2025 |
1.2.1 | Jan 14, 2025 |
1.1.0 | Dec 10, 2024 |
0.1.1 | Jun 5, 2020 |
#157 in #update
1,342 downloads per month
31KB
697 lines
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
.
Gradually-update module
Overview
Gradually-update module provides a way to adjust numeric parameter such as stability fee or liquidation gradually. The update code should be able to handle different numeric types such as u32
, u128
, Permill
, FixedU128
. All the values are assumed to be little-endian and unsigned.
Dependencies
~22–37MB
~616K SLoC