Polymarket / polymarket-subgraph

Polymarket's public subgraph manifest for indexing on-chain trade, volume, user, liquidity and market data.
GNU Lesser General Public License v3.0
33 stars 9 forks source link

Track value added by LPs to market maker #7

Open TomAFrench opened 3 years ago

TomAFrench commented 3 years ago

Currently we can display the present value of any LP share tokens however we can't give any context to how much IL they have experienced since adding liquidity.

We can in future track the value of collateral which gets added/removed the market maker and store this on fpmmPoolMembership. The difference between this and the current value will represent the IL.