pub trait ActivationReservesProviderTrait<AccountId, Balance, CurrencyId> {
    // Required methods
    fn get_max_instant_unreserve_amount(
        token_id: CurrencyId,
        account_id: &AccountId
    ) -> Balance;
    fn can_activate(
        token_id: CurrencyId,
        account_id: &AccountId,
        amount: Balance,
        use_balance_from: Option<ActivateKind>
    ) -> bool;
    fn activate(
        token_id: CurrencyId,
        account_id: &AccountId,
        amount: Balance,
        use_balance_from: Option<ActivateKind>
    ) -> DispatchResult;
    fn deactivate(
        token_id: CurrencyId,
        account_id: &AccountId,
        amount: Balance
    ) -> Balance;
}

Required Methods§

source

fn get_max_instant_unreserve_amount( token_id: CurrencyId, account_id: &AccountId ) -> Balance

source

fn can_activate( token_id: CurrencyId, account_id: &AccountId, amount: Balance, use_balance_from: Option<ActivateKind> ) -> bool

source

fn activate( token_id: CurrencyId, account_id: &AccountId, amount: Balance, use_balance_from: Option<ActivateKind> ) -> DispatchResult

source

fn deactivate( token_id: CurrencyId, account_id: &AccountId, amount: Balance ) -> Balance

Implementors§