LP token amount different than estimate
bthaile opened this issue · comments
creating a new ETH/USDC AMM, the estimate and actual are correct.
More liquidity user adds to existing AMM more the estimate is wrong. estimate looks to be 1% too low when user adds equal amount of liquidity that exists in the pool. If user adds way more liquidity than is in the pool the estimate is correct.
Also "no/yes" shares estimation to the user are off when AMM is non 50/50. User receives a different amount than estimated.
Calls to middleware, same values passed to estimation as to middleware tx call.
add additional liquidity to existing amm
User's actual LP token balance:
being replaced - closing