AugurProject / turbo

Simple, AMM-based Prediction Markets backed by Chainlink Oracles.
MIT License
27 stars 23 forks source link

Sportsbook: Don't show the remaining balances from LP removals #1487

Open matt-bullock opened 2 years ago

JohnDanz commented 2 years ago

this will require an update to graph data so we can differentiate what was shares from a bought/sold position and what is shares from lp add/remove. adding bruno to track this.

bthaile commented 2 years ago

There are flags on the graph data and on the user's position that indicated if the user got a position from LPing. positionFromAddLiquidity and positionFromRemoveLiquidity for positions that come from getUserBalances.

The graph schema also has these flags for closed positions. These flags would need to be added to the positionBalance graph query in queries.ts