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