AugurProject / augur

Augur v2 - Prediction Market Protocol and Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.
image

add additional liquidity to existing amm

Screen Shot 2021-02-05 at 09 04 56

User's actual LP token balance:

image

being replaced - closing