turbo icon indicating copy to clipboard operation
turbo copied to clipboard

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

Open matt-bullock opened this issue 4 years ago • 2 comments

matt-bullock avatar Oct 18 '21 17:10 matt-bullock

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.

JohnDanz avatar Oct 19 '21 13:10 JohnDanz

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

bthaile avatar Oct 28 '21 20:10 bthaile