fix(frontend): extra-debit TaxPreview send_msg leftover after #1267 #1285

Closed
opened 2026-09-21 04:03:07 +00:00 by PlasticDigits · 2 comments

Summary

#1267 / PR #1270 landed. Typed 100% extra-debit Sell is blocked via max(LCD debit, local sell_bps floor) so Honest TaxPreview cannot skip the gate.

Remaining

  • Pair-direct queryTaxPreview still omits Swap send_msg (LCD Honest debit === declared). Local floor covers AC1; execute-aligned preview does not.
  • Router hops should use hop_trader_debit (or keep the local floor explicitly) instead of treating Honest debit as sell debit.
  • Wire or delete unused classifyCommunityTaxQueryError.
  • Inline Swap/Trade TxResultAlert should use humanizeUserFacingErrorFromUnknown so InsufficientForSellTax is not raw wasm if broadcast still happens.

Do not skip sell tax, shrink pair credit, or extra-debit Provide / PlaceLimitOrder* (T592-7). Parent: #1267.

Acceptance criteria

  • Pair-direct preview includes Swap send_msg (or documented equivalent).
  • Router preview uses hop_trader_debit or an explicit local floor.
  • Vitest covers those LCD shapes, not only debitRaw: null.
  • Inline execute error uses the existing InsufficientForSellTax humanize map.
## Summary #1267 / PR #1270 landed. Typed 100% extra-debit Sell is blocked via `max(LCD debit, local sell_bps floor)` so Honest TaxPreview cannot skip the gate. ## Remaining - Pair-direct `queryTaxPreview` still omits Swap `send_msg` (LCD Honest `debit === declared`). Local floor covers AC1; execute-aligned preview does not. - Router hops should use `hop_trader_debit` (or keep the local floor explicitly) instead of treating Honest `debit` as sell debit. - Wire or delete unused `classifyCommunityTaxQueryError`. - Inline Swap/Trade `TxResultAlert` should use `humanizeUserFacingErrorFromUnknown` so `InsufficientForSellTax` is not raw wasm if broadcast still happens. Do not skip sell tax, shrink pair credit, or extra-debit Provide / `PlaceLimitOrder*` (T592-7). Parent: #1267. ## Acceptance criteria - [ ] Pair-direct preview includes Swap `send_msg` (or documented equivalent). - [ ] Router preview uses `hop_trader_debit` or an explicit local floor. - [ ] Vitest covers those LCD shapes, not only `debitRaw: null`. - [ ] Inline execute error uses the existing `InsufficientForSellTax` humanize map.
Author
Owner

cl8y-agent-control: queued implement job 9226a69a-c135-40ed-9855-86ed4794dbc4 (not executed; no Hetzner VM).

cl8y-agent-control: queued `implement` job `9226a69a-c135-40ed-9855-86ed4794dbc4` (not executed; no Hetzner VM).
Author
Owner

Merged as PR #1294. Execute-aligned TaxPreview send_msg / hop_trader_debit plus humanized extra-debit tx errors. #1267 local floor kept.

Leftover ops: #1300

Merged as PR #1294. Execute-aligned TaxPreview send_msg / hop_trader_debit plus humanized extra-debit tx errors. #1267 local floor kept. Leftover ops: https://git.cl8y.com/code/cl8y-dex-terraclassic/issues/1300
Sign in to join this conversation.
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#1285
No description provided.