pub fn calculate_shares_for_amount<const N: u8>(
    initial_reserves: &[Balance],
    idx_in: usize,
    amount: 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.