Trait order_book::traits::CurrencyUnlocker
source · pub trait CurrencyUnlocker<AccountId, AssetId, DEXId, Error> {
// Required methods
fn unlock_liquidity(
account: &AccountId,
order_book_id: OrderBookId<AssetId, DEXId>,
asset_id: &AssetId,
amount: OrderVolume
) -> Result<(), Error>;
fn unlock_liquidity_batch(
order_book_id: OrderBookId<AssetId, DEXId>,
asset_id: &AssetId,
receivers: &BTreeMap<AccountId, OrderVolume>
) -> Result<(), Error>;
}
Required Methods§
sourcefn unlock_liquidity(
account: &AccountId,
order_book_id: OrderBookId<AssetId, DEXId>,
asset_id: &AssetId,
amount: OrderVolume
) -> Result<(), Error>
fn unlock_liquidity( account: &AccountId, order_book_id: OrderBookId<AssetId, DEXId>, asset_id: &AssetId, amount: OrderVolume ) -> Result<(), Error>
Unlock amount
of liquidity in order_book_id
’s asset chosen by asset
.
The assets are taken from account
.