Limit order pre-sign summary: labeled signing fields (#461) #995
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!995
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "qa/461-limit-presign-signing-fields"
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
Addresses #461 (SEC-I05 F-02): limit order placement now shows a structured pre-sign card with labeled Action, Pair, Side, Amount, and Chain rows before the Keplr wallet dialog opens — matching the swap/pool anti-phishing pattern from SEC-D11.
The prior merge added only a Chain bullet inside the fee-focused card; this refactor leads with the signing fields (same
getNetworkBadgeCopy().fullLabelsource as swaps) and shortens the resting-vs-market copy to reduce cognitive overload per review feedback.Acceptance checklist
npm run test:run -- src/components/trade/__tests__/LimitOrderPreSubmitSummary.test.tsxgetNetworkBadgeCopy().fullLabelfalls back to the env network badge;TradePage.test.tsxassertsLocalTerraon limit tabLimitOrderPreSubmitSummary.test.tsx—limit-order-pre-submit-summary-chainTradePage.test.tsx—trade-limit-pre-submit-summary-chainbefore submit; manual: Place limit on/tradeor/limitswith KeplrThird-party verification
Manual (wallet):
make setup-cloud-localterra && make dev→ open/trade/{pair}Limit tab or/limits→ confirm the pre-submit card shows Action / Pair / Side / Amount / Chain above Place limit → click Place limit → Keplr should not be the first place the chain name appears.Files
LimitOrderPreSubmitSummary.tsx— structured signing rows + compact fee sectionTradeOrderTicket.tsx,LimitOrdersPage.tsx— wire pair/side/amount propsSecurity review — MR !995
Commit reviewed:
16d19e715afb515fc5edb1fe75bdf6546588072dScope: Limit order pre-sign summary labeled signing fields (
LimitOrderPreSubmitSummary.tsx,TradeOrderTicket.tsx,LimitOrdersPage.tsx, tests/docs/skills). Frontend-only; no CosmWasm, indexer API, or auth changes.Outcome:
FINDINGS: 0medium+ — NONESummary
This MR extends the existing SEC-D11 / SEC-I05 anti-phishing pattern (already used by
SwapPreSubmitSummaryandPoolPreSubmitSummary) to limit orders: labeled Action, Pair, Side, Amount, and Chain rows rendered as React text nodes before the wallet dialog.Reviewed attack paths (not exploitable on this diff):
pairLabel,sideLabel,escrowAmountLabel,chainFullLabelflow from registry/indexer symbols + useramountHumanintoSummaryRow{value}dangerouslySetInnerHTMLamountHuman,side, token display symbols) consumed byplaceMutation→placeLimitOrderWithAllowancechainFullLabeldefaults togetNetworkBadgeCopy().fullLabel(build-timeDEFAULT_NETWORK)No prior security-review threads on this MR to re-validate.
Inline threads: none (zero medium+ findings).
Automated security review run.
mentioned in commit
79943b6df1