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§

source

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.

source

fn unlock_liquidity_batch( order_book_id: OrderBookId<AssetId, DEXId>, asset_id: &AssetId, receivers: &BTreeMap<AccountId, OrderVolume> ) -> Result<(), Error>

Implementors§

source§

impl<T: Config> CurrencyUnlocker<<T as Config>::AccountId, <T as Config>::AssetId, <T as Config>::DEXId, DispatchError> for Pallet<T>