interlay/interbtc-api

AMM: Implement methods to calculate liquidity deposit/withdrawal amounts

peterslany opened this issue · 0 comments

Implement methods for AMM module:

  • getExpectedLiquidityDepositAmounts - calculate how much LP tokens will the account get after depositing liquidity (both standard and stable pools - for stable pools need to take slippage into account)
  • getExpectedLiquidityWithdrawalAmounts - calculate how much underlying tokens will the account get after withdrawing liquidity from pool (both standard and stable pools - for stable pools need to take into account proportion of underlying assets that will be withdrawn)