frontend: inline alert when wrap-mapper rate limit blocks a swap (#463) #988
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!988
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "qa/463-wrap-rate-limit-alert"
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?
When the wrap-mapper daily rate limit is hit, SwapPage only disabled the submit
button with a "Rate Limit Exceeded" label — no inline explanation, unlike the
pair-paused / blacklist states which render a visible alert below the form
(SEC-I05 F-04).
Add an
alert-errorblock gated onisRateLimitExceeded(matching theisPairPaused pattern) with actionable retry copy
(
WRAP_RATE_LIMIT_EXCEEDED_MESSAGE), so users see why they can't submit withoutreading the button label.
Tests: extended the wrap rate-limit suite to assert the
swap-wrap-rate-limit- bannerrenders with the retry guidance; SwapPage suites green, tsc clean.Source + unit verified; the e2e (wrap-swap.spec.ts) assertion is a laptop item.
assigned to @Brouie
Security review — MR !988
Commit reviewed:
152f70641071b0df8dbdf5d4788b9f0a59442237Scope: Added/modified diff only —
SwapPage.tsxinline wrap rate-limit alert,WRAP_RATE_LIMIT_EXCEEDED_MESSAGEconstant, and unit test.Outcome:
FINDINGS: 0(no medium, high, or critical issues on this diff)Summary
This MR adds UX-only feedback when the existing client-side wrap-mapper rate-limit precheck (
isRateLimitExceededfromcheckRateLimitExceeded) is true. It mirrors the existing pair-paused / trading-blacklistalert-errorpattern.Reviewed attack paths
WRAP_RATE_LIMIT_EXCEEDED_MESSAGE) rendered as JSX text in<p>. NodangerouslySetInnerHTML, no interpolation of user/chain/indexer strings. React text escaping applies.isRateLimitExceeded. On-chain wrap-mapper rate limits remain the enforcement boundary.Prior threads
No prior security-review comments on this MR; nothing to re-report.
Inline threads: none (no medium+ findings).
mentioned in issue #463
mentioned in commit
d163b55507mentioned in commit
cca89a6ad4mentioned in merge request !998