Function hydra_dx_math::stableswap::calculate_shares
source · pub fn calculate_shares<const N: u8>(
initial_reserves: &[Balance],
updated_reserves: &[Balance],
amplification: Balance,
share_issuance: Balance
) -> Option<Balance>
Expand description
Calculate amount of shares to be given to LP after LP provided liquidity of some assets to the pool.