mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 17:17:56 +00:00
vesting_balance returns Option (#4987)
* `vesting_balance` returns `Option` * bump impl
This commit is contained in:
@@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user