You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6bf2f29
Browse filesBrowse the repository at this point in the historyBrowse files
- Remove dead adjustedRewardsRoutes import/registration from main.ts
(file was deleted, server would crash on startup)
- Replace stale "Adjusted Rewards" swagger tag with "Provider Rewards"
- Gracefully handle CoinGecko failure: price degrades to null instead
of crashing the entire /provider-rewards request
- Add 8 validation/edge-case tests: bad date format, invalid date,
6-month range limit, date swap, bad spec format, CoinGecko failure,
zero QoS weight
- Update CLAUDE.md: remove stale /lava/price and ?timestamp= docs,
add /provider-rewards endpoint reference
Copy file name to clipboardExpand all lines: CLAUDE.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,7 +176,7 @@ packages/
176
176
177
177
| Endpoint | Cache | Source | Description |
178
178
|----------|-------|--------|-------------|
179
-
|`GET /supply/total`| 300s | Chain RPC | Total supply in LAVA (plain text). `fetchTotalSupply() / 1_000_000`. Optional `?timestamp=` (unix seconds or ISO-8601) for historical supply — resolves timestamp to block height via binary search on Tendermint RPC, then queries supply at that block via `x-cosmos-block-height` header|
179
+
|`GET /supply/total`| 300s | Chain RPC | Total supply in LAVA (plain text). `fetchTotalSupply() / 1_000_000`|
0 commit comments