Providing Liquidity
Adding Liquidity
To safely add liquidity to a pool, we recommend using the router. Adding liquidity function requires commitment to a belief about the current price, which is encoded in the amount*Desired
parameters. While it is fairly safe to assume that the current fair market price is around what the current reserve ratio is for a pair due to arbitrage, it is dangerous to obtain this ratio within the same transaction as it can be easily manipulated.
In addition, the amount*Min
and vReserveRatioBounds
parameters should be utilized as a sanity buffer as the market price may shift drastically before the transaction is confirmed.
Removing Liquidity
As is the case with Uniswap LP tokens, Bunicorn Stable LP tokens implement meta-approvals to vastly help improve UX and save on gas costs. Hence, we recommend the usage of the removeLiquidity*withPermit*
functions.
Last updated