fix(frontend): update or load You Receive when pay token/amount changes #496
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#496
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Summary
On Swap (and Trade market if applicable), when the user changes the pay token or pay amount, You Receive often stays on the previous quote instead of either:
Stale receive amounts are misleading and can look like the quote is still valid for the new pay side.
Expected
Actual
After changing pay token and/or amount, You Receive can continue displaying the previous estimate without a clear loading state, so it appears tied to the old pay side.
Likely context
#484 intentionally keeps the prior receive amount during background refetch when
simDataexists (shouldShowSimReceiveCalculating→ Calculating only whenisFetching && !simData, pluskeepPreviousData). That is correct for same-input refreshes, but for pay token/amount changes the UI should treat the prior amount as stale: either clear/loading until the new query key settles, or replace promptly when the new quote arrives.Related: #356 (submit Calculating / stale gate), #484 (receive keep-previous on refetch).
Acceptance criteria
quoteDebounce/ Swap page tests).How to reproduce
mentioned in commit
70937b9c1fmentioned in merge request !1031
mentioned in commit
a04bc11e22mentioned in commit
5993d3a7e8mentioned in commit
f03076c215mentioned in issue #659