fix: DeFiLlama fees headline null vs Llama crawler (#687) #1187

Merged
PlasticDigits merged 2 commits from fix/687-defillama-fees-null into main 2026-08-27 07:36:55 +00:00
PlasticDigits commented 2026-08-27 06:33:36 +00:00 (Migrated from gitlab.com)

Summary

  • Headline daily_fees_usd / revenue is now EFee-6 priced SUM. One unpriced source (e.g. CL8Y limit_place) no longer nulls wrap/window/hub for the UTC day. Per-source fees.* stay fail-closed. SSR stays "0".
  • Adapter start moved to the first Coolify 200 day: unix 1786924800 / ISO 2026-08-17. start - 86400 remains 404. Llama backfill no longer walks May 2026 404s.
  • In-repo fees copy adds Llama METRIC groups + residual only (no addUSDValue(total) then labels). "0" does not throw; JSON null still throws (unpriced, not silent $0).

Does not reopen #631 or #683. GET stays O(1) rollup; no from/to; TVL still on-chain.

Related to #687.

Test plan

  • make setup-indexer-postgres then make verify-issue-687 (includes related 631 + 683)
  • Indexer: mixed unpriced source → headline = priced wrap + swap_amm; fees.limit_place null
  • Idle fees with volume → daily_fees_usd "0"
  • All-unpriced fees → headline JSON null (not "0")
  • Adapter start GET 200; prior day 404
  • NULL-only fee_usd stamp flips headline; non-null wrap stamp unchanged
  • node --test scripts/defillama/dimensions/mapDaily.test.js (residual, "0", start pin)
  • Operator: patch GitHub dimension-adapters#8987 (start: "2026-08-17", same METRIC+residual) and paste pnpm test fees cl8y-dex / pnpm test dexs cl8y-dex (yesterday + start)
  • Operator: Coolify indexer deploy, then yesterday + start curl as in scripts/defillama/README.md
## Summary - Headline `daily_fees_usd` / revenue is now EFee-6 **priced SUM**. One unpriced source (e.g. CL8Y `limit_place`) no longer nulls wrap/window/hub for the UTC day. Per-source `fees.*` stay fail-closed. SSR stays `"0"`. - Adapter `start` moved to the first Coolify **200** day: unix `1786924800` / ISO `2026-08-17`. `start - 86400` remains 404. Llama backfill no longer walks May 2026 404s. - In-repo fees copy adds Llama METRIC groups + residual only (no `addUSDValue(total)` then labels). `"0"` does not throw; JSON `null` still throws (unpriced, not silent `$0`). Does **not** reopen #631 or #683. GET stays O(1) rollup; no `from`/`to`; TVL still on-chain. Related to #687. ## Test plan - [x] `make setup-indexer-postgres` then `make verify-issue-687` (includes related 631 + 683) - [x] Indexer: mixed unpriced source → headline = priced wrap + swap_amm; `fees.limit_place` null - [x] Idle fees with volume → `daily_fees_usd` `"0"` - [x] All-unpriced fees → headline JSON `null` (not `"0"`) - [x] Adapter start GET 200; prior day 404 - [x] NULL-only `fee_usd` stamp flips headline; non-null wrap stamp unchanged - [x] `node --test scripts/defillama/dimensions/mapDaily.test.js` (residual, `"0"`, start pin) - [ ] Operator: patch GitHub [dimension-adapters#8987](https://github.com/DefiLlama/dimension-adapters/pull/8987) (`start: "2026-08-17"`, same METRIC+residual) and paste `pnpm test fees cl8y-dex` / `pnpm test dexs cl8y-dex` (yesterday + start) - [ ] Operator: Coolify indexer deploy, then yesterday + start curl as in `scripts/defillama/README.md`
PlasticDigits commented 2026-08-27 07:36:46 +00:00 (Migrated from gitlab.com)

added 2 commits

  • 3ff8d00b - 1 commit from branch main
  • 298c92ba - Merge origin/main into fix/687-defillama-fees-null.

Compare with previous version

added 2 commits <ul><li>3ff8d00b - 1 commit from branch <code>main</code></li><li>298c92ba - Merge origin/main into fix/687-defillama-fees-null.</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/469/diffs?diff_id=1987208939&start_sha=1821da54184d46e628969af3b77166084105a253)
PlasticDigits commented 2026-08-27 07:36:55 +00:00 (Migrated from gitlab.com)

mentioned in commit 8801b0fcf2

mentioned in commit 8801b0fcf28afb08e8aa0d802b85cb83263f1c20
PlasticDigits (Migrated from gitlab.com) merged commit 8801b0fcf2 into main 2026-08-27 07:36:56 +00:00
PlasticDigits commented 2026-08-27 07:43:03 +00:00 (Migrated from gitlab.com)

mentioned in issue #688

mentioned in issue #688
PlasticDigits commented 2026-08-27 07:43:23 +00:00 (Migrated from gitlab.com)

mentioned in issue #685

mentioned in issue #685
PlasticDigits commented 2026-08-27 07:43:24 +00:00 (Migrated from gitlab.com)

mentioned in issue #687

mentioned in issue #687
PlasticDigits commented 2026-08-27 07:44:44 +00:00 (Migrated from gitlab.com)

mentioned in commit 79a4deb587

mentioned in commit 79a4deb587ac9e32ce30d747ada0bdfcd44dbbda
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic!1187
No description provided.