Polymarket's public subgraph manifest for indexing on-chain trade, volume, user, liquidity and market data.
GNU Lesser General Public License v3.0
24
stars
5
forks
source link
Simplify check for a full set of outcome tokens #3
Closed
TomAFrench closed 3 years ago
The code below used for checking whether a user has split/merged a full position is unnecessary.
https://github.com/TokenUnion/polymarket-subgraph/blob/b0f683ae0104a69dc06fe302f3ba71ac05e2fdd0/src/utils/conditional-utils.ts#L9-L20
This can be replaced by a simple check that the index set length is the same as the number of outcome slots.