fix(swap): keep empty native entry and quote loading neutral #1492

Merged
PlasticDigits merged 3 commits from fix/1489-empty-wrap-ui into main 2026-10-13 09:41:07 +00:00
Owner

Native Swap showed “Wrapping is temporarily unavailable” on an empty entry because its intentionally disabled legacy wrapper query had no cached configuration. It now distinguishes an empty or pending quote from a concrete failure, keeping empty/zero entry neutral and displaying calculating/pricing states while a current local wrapper quote is unresolved.

Current input and original expiry still govern presentation. Positive unsupported quotes, cached pause/treasury mismatch and unknown budgets remain blocked; all existing mutation, funding, positive-floor and 5/30/99 guards remain enforced. The change adds no wrapper RPC.

Verification:

  • Full frontend first/retest: 370 files / 3,397 tests each on unchanged frontend bytes.
  • Directed first/retest: 8 files / 227 tests; copied-worktree directed scope passed again.
  • TypeScript and full ESLint passed (0 errors, 5 existing warnings); staged gitleaks and normal commit hooks.
  • Eleven component cases cover fresh native default, zero/cleared entry, pay/receive pending and precision, dust, expiry without fresh fetch, oversized-input rejection, supported context and real unsupported/pause/treasury refusals.
  • Independent actual desktop/phone failed empty baseline at deployed74e7 is retained. Exact new deployment/all-root and live first/retest receipts follow publication.

QA and agent guidance: docs/qa/issue-1489/EMPTY-ENTRY.md and RD1489-7. This UI publication is separate from the continuing indexer canonical-generation/resource investigation. Broader production reserves, wallet settlement and full #1489 acceptance remain incomplete.

Refs #1489; follows #1490.

Native Swap showed “Wrapping is temporarily unavailable” on an empty entry because its intentionally disabled legacy wrapper query had no cached configuration. It now distinguishes an empty or pending quote from a concrete failure, keeping empty/zero entry neutral and displaying calculating/pricing states while a current local wrapper quote is unresolved. Current input and original expiry still govern presentation. Positive unsupported quotes, cached pause/treasury mismatch and unknown budgets remain blocked; all existing mutation, funding, positive-floor and 5/30/99 guards remain enforced. The change adds no wrapper RPC. Verification: - Full frontend first/retest: 370 files / 3,397 tests each on unchanged frontend bytes. - Directed first/retest: 8 files / 227 tests; copied-worktree directed scope passed again. - TypeScript and full ESLint passed (0 errors, 5 existing warnings); staged gitleaks and normal commit hooks. - Eleven component cases cover fresh native default, zero/cleared entry, pay/receive pending and precision, dust, expiry without fresh fetch, oversized-input rejection, supported context and real unsupported/pause/treasury refusals. - Independent actual desktop/phone failed empty baseline at deployed74e7 is retained. Exact new deployment/all-root and live first/retest receipts follow publication. QA and agent guidance: docs/qa/issue-1489/EMPTY-ENTRY.md and RD1489-7. This UI publication is separate from the continuing indexer canonical-generation/resource investigation. Broader production reserves, wallet settlement and full #1489 acceptance remain incomplete. Refs #1489; follows https://git.cl8y.com/code/cl8y-dex-terraclassic/pulls/1490.
fix(swap): keep unknown wrapping state neutral before quoting
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was canceled
5463d118fe
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!1492
No description provided.