fix: ingest wrap/unwrap protocol fees from captured mapper attrs #1128

Merged
PlasticDigits merged 1 commit from 613-fix-protocol-wrap-unwrap-ingest-custc-clunc-fee-amount-actually-lands into main 2026-08-24 02:42:31 +00:00
PlasticDigits commented 2026-08-24 00:43:16 +00:00 (Migrated from gitlab.com)

Summary

  • Align wrap/unwrap protocol-fee ingest with captured ustr-cmm wrap-mapper attrs: wrap execute is notify_deposit (not action=wrap), amount key is fee (not fee_amount).
  • Scan each wasm action segment scoped by reserved _contract_address so flattened wrap_deposit + mapper + swap / InstantWithdraw txs persist wrap/unwrap without dropping or counting burn tax.
  • Document I613-1–I613-8 and add make verify-issue-613 (fixtures + docs + verify-issue-586).

Closes #613

Test plan

  • make setup-indexer-postgres && make verify-issue-613
  • make verify-issue-586 still passes
  • After Coolify indexer deploy: wrap uusd and/or uluna on columbus-5; GET /api/v1/protocol/fees?window=24h wrap event_count ≥ 1
  • Matching unwrap path increments unwrap; InstantWithdraw tax_amount is not stored
  • /protocol Source shows Wrap / Unwrap when event_count > 0; idle $0 still hidden
  • Unconfigured WRAP_MAPPER_ADDRESS still omits wrap/unwrap from by_source

Closes #613

## Summary - Align wrap/unwrap protocol-fee ingest with captured ustr-cmm wrap-mapper attrs: wrap execute is `notify_deposit` (not `action=wrap`), amount key is `fee` (not `fee_amount`). - Scan each wasm `action` segment scoped by reserved `_contract_address` so flattened wrap_deposit + mapper + swap / InstantWithdraw txs persist wrap/unwrap without dropping or counting burn tax. - Document **I613-1–I613-8** and add `make verify-issue-613` (fixtures + docs + `verify-issue-586`). Closes #613 ## Test plan - [ ] `make setup-indexer-postgres && make verify-issue-613` - [ ] `make verify-issue-586` still passes - [ ] After Coolify indexer deploy: wrap uusd and/or uluna on columbus-5; `GET /api/v1/protocol/fees?window=24h` wrap `event_count ≥ 1` - [ ] Matching unwrap path increments `unwrap`; InstantWithdraw `tax_amount` is not stored - [ ] `/protocol` Source shows **Wrap** / **Unwrap** when `event_count > 0`; idle `$0` still hidden - [ ] Unconfigured `WRAP_MAPPER_ADDRESS` still omits wrap/unwrap from `by_source` Closes #613
PlasticDigits commented 2026-08-24 00:43:25 +00:00 (Migrated from gitlab.com)

marked this merge request as ready

marked this merge request as **ready**
PlasticDigits commented 2026-08-24 02:41:52 +00:00 (Migrated from gitlab.com)

added 1 commit

  • 4de6d839 - fix: ingest wrap/unwrap protocol fees from captured mapper attrs

Compare with previous version

added 1 commit <ul><li>4de6d839 - fix: ingest wrap/unwrap protocol fees from captured mapper attrs</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/410/diffs?diff_id=1978577840&start_sha=cfaf9769809307a23c4f41aaf7d3de86c97171a9)
PlasticDigits (Migrated from gitlab.com) merged commit 4c120e831c into main 2026-08-24 02:42:31 +00:00
PlasticDigits commented 2026-08-24 02:42:32 +00:00 (Migrated from gitlab.com)

mentioned in commit 4c120e831c

mentioned in commit 4c120e831ceafe47f92ae025e6ad32a3da5a70db
PlasticDigits commented 2026-08-24 03:01:16 +00:00 (Migrated from gitlab.com)

mentioned in issue #616

mentioned in issue #616
PlasticDigits commented 2026-08-24 03:01:44 +00:00 (Migrated from gitlab.com)

mentioned in issue #613

mentioned in issue #613
PlasticDigits commented 2026-08-24 03:01:45 +00:00 (Migrated from gitlab.com)

mentioned in issue #614

mentioned in issue #614
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!1128
No description provided.