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§

source

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.

Implementors§

source§

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