pub fn calculate_amount_to_add_for_shares<const N: u8>(
    initial_reserves: &[Balance],
    idx_in: usize,
    shares_in: Balance,
    amplification: Balance,
    share_issuance: Balance
) -> Option<Balance>
Expand description

Calculate amount of asset to withdraw if given shares amount is added