[−][src]Trait frame_support::traits::VestingCurrency
A currency whose accounts can have balances which vest over time.
Associated Types
type Moment
The quantity used to denote time; usually just a BlockNumber
.
Required methods
fn vesting_balance(who: &AccountId) -> Self::Balance
Get the amount that is currently being vested and cannot be transferred out of this account.
fn add_vesting_schedule(
who: &AccountId,
locked: Self::Balance,
per_block: Self::Balance,
starting_block: Self::Moment
) -> DispatchResult
who: &AccountId,
locked: Self::Balance,
per_block: Self::Balance,
starting_block: Self::Moment
) -> DispatchResult
Adds a vesting schedule to a given account.
If there already exists a vesting schedule for the given account, an Err
is returned
and nothing is updated.
fn remove_vesting_schedule(who: &AccountId)
Remove a vesting schedule for a given account.