Fix vesting logic (#4864)

* Fix vesting logic

* Bump runtime version

* Docs.
This commit is contained in:
Gavin Wood
2020-02-10 10:30:42 +01:00
committed by GitHub
parent e5a7fcc8ea
commit 78a8d9f3b6
3 changed files with 20 additions and 8 deletions
+6
View File
@@ -620,6 +620,10 @@ pub trait VestingSchedule<AccountId> {
///
/// If there already exists a vesting schedule for the given account, an `Err` is returned
/// and nothing is updated.
///
/// Is a no-op if the amount to be vested is zero.
///
/// NOTE: This doesn't alter the free balance of the account.
fn add_vesting_schedule(
who: &AccountId,
locked: <Self::Currency as Currency<AccountId>>::Balance,
@@ -628,6 +632,8 @@ pub trait VestingSchedule<AccountId> {
) -> DispatchResult;
/// Remove a vesting schedule for a given account.
///
/// NOTE: This doesn't alter the free balance of the account.
fn remove_vesting_schedule(who: &AccountId);
}