glifio / invariants

Testing invariants for the DeFi protocol
1 stars 0 forks source link

DB Invariant tests #1

Open Schwartz10 opened 6 months ago

Schwartz10 commented 6 months ago

Macro invariants (system wide aggregates):

Micro invariants (on a per account basis):

jimpick commented 6 months ago

Additionally, we want to match:

ComputeAgentData from go-pools

With equivalent SQL data from:

jimpick commented 6 months ago

3 implements Total Assets, Total Borrowed and Agent Count

Schwartz10 commented 3 months ago
jimpick commented 3 months ago

12 implements Pool Total Assets, Total Borrowed and Agent Count

jimpick commented 2 months ago

14 Checks the miner counts for each agent on the node and compares to the API

jimpick commented 2 months ago

16 Checks the agent principal using the econ endpoint (which calls it liabilities)