Reconcile route costs and preserve better quotes #1484
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!1484
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1483-route-cost-attribution"
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?
Native and wrapped quotes now reconcile wrapper loss, trading costs, market movement and reference divergence in exact final-output units. Swap and Trade show one consistent deviation and a compact explanation; exact raw thresholds and review-bound second-click consent preserve the 5/30/99 safeguards.
A pinned regression also proved that deeper search discarded a better route when the improvement was below 0.1%. The worker now publishes every strictly better eligible net result while retaining its work caps and the original reviewed transaction. Exact-amount quote caching already isolates small and large inputs; no route scaling or asset exceptions were added.
Validation:
make verify-issue-1483passed 16 groups with two explicit external acceptance skips, first/retest; related #1480 passed 10 groups with three scope skips. The focused verifier runs first/retest; recorded rounds include 8 raw-attribution tests, 1 exact book-fee test, 2 same-cohort socket scenarios, 225 frontend tests and eight public-probe tests and seven wallet-preparation tests. The production frontend build passed with the current public Coolify configuration, and tracked/staged secret scans passed. Owned LocalTerra native/wrapped first/retest each passed 12 exact settlements and 24 atomic floor rejections. Additional legacy/v1 pool and 1/5/30% protection matrices passed. The full 4,250-case controlled browser rerun passed with zero failures, 3,948 useful samples and a 236.3 ms maximum against the named 750 ms budget. All related normal verifiers were executed; missing device/contract/IPv6/live scopes and historical failures are explicit in the receipts. Deployment receipts follow.References #1483. Acceptance checklist, results and retained failures, and agent invariants document the rounding contract, protocol limits and verification scope. Original reporter economics, production settlement, complete contract provenance and physical-wallet acceptance remain incomplete; merging this fix must not close the issue automatically.
WIP: Reconcile route costs and preserve better quotesto Reconcile route costs and preserve better quotes