fix: raise wrap+2hop gas and show LUNC network fee on Swap (#587) #1113

Merged
PlasticDigits merged 2 commits from fix/587-lunc-ustr-wrap-multihop-gas into main 2026-08-22 06:08:17 +00:00
PlasticDigits commented 2026-08-21 11:59:36 +00:00 (Migrated from gitlab.com)

Summary

  • Raise the wrap + ≥2-hop router envelope so LUNC→USTR (and reverse unwrap) can succeed in one tx instead of OOG on the gem-calibrated 2.31M sum.
  • Disclose Network fee (est.) ~X LUNC on Swap (same envelope as broadcast). AMM Fee row stays pool bps. Fee denom remains uluna only.
  • Fail closed when CW20 send.msg cannot be decoded (no silent 600k fallback). Native path stays pool-only (no hybrid).

Closes #587

Test plan

  • make verify-issue-587 (unit + docs, retested)
  • make verify-issue-475 (retail inventory still green)
  • CI=1 Playwright e2e/wrap-swap.spec.ts --project=e2e-tx on a full LocalTerra + indexer stack (E7 LUNC→USTR/JADE, E8 reverse)
  • Manual: / LUNC→USTR shows Route + Network fee ~N LUNC, 0 USTC, one Swap, success; reverse USTR→LUNC one tx
  • Confirm wrap+1hop LUNC→EMBER still succeeds (#353)
  • Confirm Max on native LUNC reserves the wrap+2hop envelope
## Summary - Raise the wrap + ≥2-hop router envelope so LUNC→USTR (and reverse unwrap) can succeed in **one** tx instead of OOG on the gem-calibrated 2.31M sum. - Disclose **Network fee (est.) ~X LUNC** on Swap (same envelope as broadcast). AMM **Fee** row stays pool bps. Fee denom remains `uluna` only. - Fail closed when CW20 `send.msg` cannot be decoded (no silent 600k fallback). Native path stays pool-only (no hybrid). Closes #587 ## Test plan - [x] `make verify-issue-587` (unit + docs, retested) - [x] `make verify-issue-475` (retail inventory still green) - [ ] `CI=1` Playwright `e2e/wrap-swap.spec.ts --project=e2e-tx` on a full LocalTerra + indexer stack (E7 LUNC→USTR/JADE, E8 reverse) - [ ] Manual: `/` LUNC→USTR shows Route + **Network fee ~N LUNC**, 0 USTC, one Swap, success; reverse USTR→LUNC one tx - [ ] Confirm wrap+1hop LUNC→EMBER still succeeds (#353) - [ ] Confirm Max on native LUNC reserves the wrap+2hop envelope
PlasticDigits commented 2026-08-21 11:59:43 +00:00 (Migrated from gitlab.com)

mentioned in issue #587

mentioned in issue #587
PlasticDigits commented 2026-08-22 06:07:59 +00:00 (Migrated from gitlab.com)

added 4 commits

  • 8838df36...d1d2222c - 3 commits from branch main
  • 833687d0 - Merge origin/main into fix/587-lunc-ustr-wrap-multihop-gas

Compare with previous version

added 4 commits <ul><li>8838df36...d1d2222c - 3 commits from branch <code>main</code></li><li>833687d0 - Merge origin/main into fix/587-lunc-ustr-wrap-multihop-gas</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/395/diffs?diff_id=1977535350&start_sha=8838df36da120a863be75cc87972c7ccfe8f0d3b)
PlasticDigits commented 2026-08-22 06:08:18 +00:00 (Migrated from gitlab.com)

mentioned in commit 004929d222

mentioned in commit 004929d2222ad27a900d1fc5b3984f65bc0cb0e2
PlasticDigits (Migrated from gitlab.com) merged commit 004929d222 into main 2026-08-22 06:08:18 +00:00
PlasticDigits commented 2026-08-22 06:09:45 +00:00 (Migrated from gitlab.com)

mentioned in commit 0fd7e3a323

mentioned in commit 0fd7e3a323b7dcba0e20430a2aeec5246eb6035f
PlasticDigits commented 2026-08-22 06:29:12 +00:00 (Migrated from gitlab.com)

mentioned in issue #590

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