-
Notifications
You must be signed in to change notification settings - Fork 237
Subgraph Data Integrity Reference
0xdavinchee edited this page Jun 27, 2022
·
1 revision
Below are the invariants we are validating in our Subgraph Data Integrity scripts.
- A.0: Balance data matching:
Real Time Balance (availableBalance + deposit + owedDeposit) === Subgraph Calculated Balance
- A.1: CFA on-chain data matching subgraph data
- A.1.a: Flow data matching =>
{ timestamp, flowRate }
- A.1.b: Net flow
- A.1.a: Flow data matching =>
- A.2: IDA on-chain data matching subgraph data
- A.2.a: Index data matching =>
{ exist, indexValue, totalUnitsApproved, totalUnitsPending }
- A.2.b: Subscription data matching =>
{ exist, approved, units, pendingDistribution }
- A.2.a: Index data matching =>
- G.0: Total supply should match super token assets under management
- AUM:
underlyingToken.balanceOf(superToken address)
- AUM:
- G.1: Sum of all RTB <= SuperToken total supply
- G.2: CFA total net flow === zero
- G.3: IDA total subscriber units === total index units
- G.4: CFA/IDA on-chain events matching subgraph events
- G.5: Subgraph Token Total Supply === On-chain Token Total Supply
- Governance Overview
- For Contributors
- Development Process
- Protocol EVMv1 Operations
- Protocol EVMv1 Technical Notes
- Protocol EVMv1 Core Subgraph