Trait cfg_traits::PoolReserve
source · pub trait PoolReserve<AccountId, CurrencyId>: PoolInspect<AccountId, CurrencyId> {
type Balance;
// Required methods
fn withdraw(
pool_id: Self::PoolId,
to: AccountId,
amount: Self::Balance
) -> DispatchResult;
fn deposit(
pool_id: Self::PoolId,
from: AccountId,
amount: Self::Balance
) -> DispatchResult;
}
Expand description
A trait that support pool reserve operations such as withdraw and deposit
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.