valorem-labs-inc / clear-subgraph

The Clear Subgraph indexes data on the Valorem Clear smart contracts using a GraphQL interface. It updates data in response to contract ABI function calls and events. The Subgraph can be used to power frontend apps and integration use cases.
https://valorem.xyz/docs/clear-subgraph/
MIT License
1 stars 1 forks source link

fix: claimbuckets #57

Closed nickadamson closed 1 year ago

nickadamson commented 1 year ago

also has fix for crash caused by transferring a short position to an EOA closes VAL-1408

linear[bot] commented 1 year ago
VAL-1408 Correct bucket calculations in subgraph

Right now the math for claims in the subgraph is not faithful to that in the litepaper. Correct the math and make it work correctly.