⚠️ Data caveat: “parameter drift” in safety/CR(Collateral Ratio)/LR(Liquidation Ratio/Buffer)
Why numbers can look “wrong” on Dune
- At time t0 the urn was last read:
(ink0, art0)with params(rate0, spot0, mat0). - Later at t1, params update (e.g.,
rate1 > rate0, orspot1changes), but the urn isn’t re-read. - If a query mixes (ink0, art0) with (rate1, spot1, mat1), the computed safety/CR is not the true state at t0 or t1.
Mitigations used in this dashboard
- As-of joins: for each day/month cutoff, take the latest ≤ cutoff for each source:
Vat.urns,Vat.ilks(rate/spot),Spotter.ilks(mat). - Freshness guard: flag or drop urns whose last
urnsread is older than N days. - Family filter: exclude non-barkable systems (PSM/RWA/DIRECT/D3M/SPARK; LP ilks for market views).
Common pitfalls
- Pulling LR from the wrong place (must use
Spotter.ilks(ilk).mat). - Decoding
ilkbytes32 incorrectly and grouping rows together.