pub fn remove_liquidity_by_tokens(
        &mut self,
        sender_id: &AccountId,
        amounts: Vec<Balance>,
        max_burn_shares: Balance,
        admin_fee: AdminFees,
    ) -> Balance {
        match self {
            Pool::SimplePool(_) => unimplemented!(),
            Pool::StableSwapPool(pool) => {
                pool.remove_liquidity_by_tokens(sender_id, amounts, max_burn_shares, &admin_fee)
            }
        }
    }
/// Removes liquidity from underlying pool.
Removes liquidity from underlying pool.
Removes liquidity from underlying pool .
pub fn remove_liquidity_by_tokens(
        &mut self,
        sender_id: &AccountId,
        amounts: Vec<Balance>,
        max_burn_shares: Balance,
        admin_fee: AdminFees,
    ) -> Balance {
        match self {
            Pool::SimplePool(_) => unimplemented!(),
            Pool::StableSwapPool(pool) => {
                pool.remove_liquidity_by_tokens(sender_id, amounts, max_burn_shares, &admin_fee)
            }
        }
    }
pub fn remove_liquidity_by_tokens ( & mut self , sender_id : & AccountId , amounts : Vec < Balance > , max_burn_shares : Balance , admin_fee : AdminFees , ) -> Balance { match self { Pool :: SimplePool ( _ ) => unimplemented ! ( ) , Pool :: StableSwapPool ( pool ) => { pool . remove_liquidity_by_tokens ( sender_id , amounts , max_burn_shares , & admin_fee ) } } }
Removes liquidity from underlying pool.
Removes liquidity from underlying pool .
&mut self
sender_id
&AccountId
amounts
Vec<Balance>
max_burn_shares
Balance
admin_fee
AdminFees
&mut self
sender_id
&AccountId
amounts
Vec<Balance>
max_burn_shares
Balance
admin_fee
AdminFees