pub trait PoolCreateApi<AccountId, Balance, CurrencyId> {
    // Required methods
    fn pool_exists(first: CurrencyId, second: CurrencyId) -> bool;
    fn pool_create(
        account: AccountId,
        first: CurrencyId,
        first_amount: Balance,
        second: CurrencyId,
        second_amount: Balance
    ) -> Option<(CurrencyId, Balance)>;
}

Required Methods§

source

fn pool_exists(first: CurrencyId, second: CurrencyId) -> bool

source

fn pool_create( account: AccountId, first: CurrencyId, first_amount: Balance, second: CurrencyId, second_amount: Balance ) -> Option<(CurrencyId, Balance)>

Implementors§