git.delta.rocks / unique-network / refs/commits / b62fa179624c

difftreelog

Merge pull request #435 from UniqueNetwork/doc/inflation

Yaroslav Bolyukin2022-07-14parents: #376ee6b #4655b48.patch.diff
in: master
Doc/inflation

1 file changed

modifiedpallets/inflation/src/lib.rsdiffbeforeafterboth
14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License
15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
16
17//! # Inflation
18//!
19//! The inflation pallet is designed to increase the number of tokens at certain intervals.
20//! With each iteration, increases the `total_issuance` value for the native token.
21//! Executing an `on_initialize` hook at the beginning of each block, causing inflation to begin.
22//!
23//! ## Interface
24//!
25//! ### Dispatchable Functions
26//!
27//! * `start_inflation` - This method sets the inflation start date. Can be only called once.
28//! Inflation start block can be backdated and will catch up. The method will create Treasury
29//! account if it does not exist and perform the first inflation deposit.
1630
17// #![recursion_limit = "1024"]31// #![recursion_limit = "1024"]
18#![cfg_attr(not(feature = "std"), no_std)]32#![cfg_attr(not(feature = "std"), no_std)]