fix(route-tax): align cyclic launch guards and owned refunds #1410
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/cl8y-dex-terraclassic!1410
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1390-route-launch-guards"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1390.
Routed capable-token cycles could quote successfully and fail on reacquisition; owned input residue could also fail a lowered wallet cap. Reject repeated capable assets in
[initial offer, each ask]consistently across execute, forward/reverse quotes, solver eligibility and client preflight. Ordinary intermediate buy/sell funding and per-wallet cooldowns remain enforced.Authenticate the exact original-input refund to its payer and allow only that restoration to bypass max-wallet. Purchased intermediate residue, final bought output and other recipients stay capped. Token previews and buy/sell execution share protocol-trader restrictions; deterministic solver HTTP 422 stops Swap, wrapped Swap, Trade and invoice fallback. Router/token versions are 1.2.1, funding version remains 1, and older contexts deserialize without a refund exemption.
Validation at
15d6266a18a29d3c750827d91b5323a60483f42c:make verify-issue-1390PASS=15 FAIL=0 SKIP=1;make verify-issue-1381PASS=13 FAIL=0 SKIP=1. Both run tests and retests. Includes full contracts, 473 serial indexer library tests, API regressions, frontend 246/269-test groups, lint/types/build, real pre-v1 migrations, invoice/native wrap/unwrap and rollback. Latest focused contract tests retested after Clippy cleanup; rebuilt optimized hashes match the executed synthetic receipts. Pre-commit Clippy, formatting and secret scan passed.Agent review/verification checklist, invariants and third-party agent playbook, results and public synthetic receipts, source/evidence manifest.
Reviewing agents may skip items they cannot complete while recording overall PASS with explicit skips, concrete reasons and unverified criteria. Executed failures remain FAIL until fixed and retested. The sole final skip is production acceptance; local execution does not establish deployment.