vesting_balance returns Option (#4987)

* `vesting_balance` returns `Option`

* bump impl
This commit is contained in:
Shawn Tabrizi
2020-02-20 13:25:52 +01:00
committed by GitHub
parent 7718172ac1
commit 8cdf98c773
3 changed files with 21 additions and 20 deletions
+2 -1
View File
@@ -734,7 +734,8 @@ pub trait VestingSchedule<AccountId> {
type Currency: Currency<AccountId>;
/// Get the amount that is currently being vested and cannot be transferred out of this account.
fn vesting_balance(who: &AccountId) -> <Self::Currency as Currency<AccountId>>::Balance;
/// Returns `None` if the account has no vesting schedule.
fn vesting_balance(who: &AccountId) -> Option<<Self::Currency as Currency<AccountId>>::Balance>;
/// Adds a vesting schedule to a given account.
///