Constants

Functions

Calculate amount of asset to withdraw if given shares amount is added
Calculating amount to be sent to the pool given the amount to be received from the pool and both reserves. N - number of iterations to use for Newton’s formula ( it should be >=1 otherwise it wont converge at all and will always fail N_Y - number of iterations to use for Newton’s formula to calculate reserve Y ( it should be >=1 otherwise it wont converge at all and will always fail
Calculating amount to be sent to the pool given the amount to be received from the pool and both reserves with fee applied.
Calculating amount to be received from the pool given the amount to be sent to the pool and both reserves. N - number of iterations to use for Newton’s formula to calculate parameter D ( it should be >=1 otherwise it wont converge at all and will always fail N_Y - number of iterations to use for Newton’s formula to calculate reserve Y ( it should be >=1 otherwise it wont converge at all and will always fail
Calculating amount to be received from the pool given the amount to be sent to the pool and both reserves and apply a fee.
Calculate amount of shares to be given to LP after LP provided liquidity of some assets to the pool.
Calculate amount of shares to be given to LP after LP provided liquidity of some assets to the pool.
Calculate amount of shares to burn if amount is removed from pool
Given amount of shares and asset reserves, calculate corresponding amount of selected asset to be withdrawn.