pub fn add_liquidity(
        &mut self,
        sender_id: &AccountId,
        amounts: &mut Vec<Balance>,
    ) -> Balance {
        match self {
            Pool::SimplePool(pool) => pool.add_liquidity(sender_id, amounts),
            Pool::StableSwapPool(_) => unimplemented!(),
        }
    }
/// Adds liquidity into underlying pool.
/// Updates amounts to amount kept in the pool.
Adds liquidity into underlying pool.
Updates amounts to amount kept in the pool.
Adds liquidity into underlying pool . Updates amounts to amount kept in the pool .
pub fn add_liquidity(
        &mut self,
        sender_id: &AccountId,
        amounts: &mut Vec<Balance>,
    ) -> Balance {
        match self {
            Pool::SimplePool(pool) => pool.add_liquidity(sender_id, amounts),
            Pool::StableSwapPool(_) => unimplemented!(),
        }
    }
pub fn add_liquidity ( & mut self , sender_id : & AccountId , amounts : & mut Vec < Balance > , ) -> Balance { match self { Pool :: SimplePool ( pool ) => pool . add_liquidity ( sender_id , amounts ) , Pool :: StableSwapPool ( _ ) => unimplemented ! ( ) , } }
Adds liquidity into underlying pool.
Adds liquidity into underlying pool .
&mut self
sender_id
&AccountId
amounts
&mut Vec<Balance>
&mut self
sender_id
&AccountId
amounts
&mut Vec<Balance>