orml-vesting

Crates.ioorml-vesting
lib.rsorml-vesting
version0.10.0
sourcesrc
created_at2020-05-14 23:54:55.971059
updated_at2024-04-17 08:18:09.678279
descriptionProvides scheduled balance locking mechanism, in a *graded vesting* way.
homepage
repositoryhttps://github.com/open-web3-stack/open-runtime-module-library/tree/master/vesting
max_upload_size
id241704
size36,518
Xiliang Chen (xlc)

documentation

README

Vesting Module

Overview

Vesting module provides a means of scheduled balance lock on an account. It uses the graded vesting way, which unlocks a specific amount of balance every period of time, until all balance unlocked.

Vesting Schedule

The schedule of a vesting is described by data structure VestingSchedule: from the block number of start, for every period amount of blocks, per_period amount of balance would unlocked, until number of periods period_count reached. Note in vesting schedules, time is measured by block number. All VestingSchedules under an account could be queried in chain state.

Locks

The implementation uses locks which allow tokens to be locked by other pallets that's also using locks, for example, the conviction-voting pallet.

Commit count: 672

cargo fmt