Hide misleading 'Pool only — add a book leg' notice when limit book is already enabled #492
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#492
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, the Execution summary shows:
This notice still appears when the limit-book / hybrid setting is already activated in Settings, and the trade is pool-only only because there are no resting limit orders available to take. In that case the notice is misleading (it tells the user to enable something they already enabled).
Expected: show no Execution notice in this situation.
Steps to reproduce
Actual
Execution shows “Pool only — add a book leg in Settings…”, even though the book leg feature is already on and the pool-only outcome is due to no limits available to take.
Expected
Do not show that notice when limit orders / the book leg are already activated in Settings and execution is pool-only only because there is nothing on the book to take.
Likely location
frontend-dapp/src/pages/SwapPage.tsx(Execution summary around thewillSubmitHybrid === false/bookRaw === 0branch) and related split helpers infrontend-dapp/src/utils/swapDisclosure.ts.mentioned in commit
f778d9b130mentioned in merge request !1038
Implemented in !1038 (
fix/492-hide-pool-only-book-leg-notice).Done (acceptance):
getDirectHybridSettingsExecutionSummary→{ show: false }).Out of scope / not done:
mentioned in commit
73b80b6f4d