feat: Implement allowance approval, emergency contract pause, and holding cap warnings (#953, #955, #961) - #974
Merged
Chucks1093 merged 11 commits intoSep 30, 2026
Conversation
…ding cap warnings (accesslayerorg#953, accesslayerorg#955, accesslayerorg#961) - accesslayerorg#955: Build allowance approval flow for delegating key transfers to staking contract - Add useAllowanceStore with session-level caching of approved addresses - Add AllowanceApprovalStep UI with clear explanation of permissions - Integrate into TradeDialog for staking operations before stake submission - accesslayerorg#953: Show contract paused banner and disable all trade actions when emergency pause is active - Add useContractPausedStore with 60s background polling and admin verification - Add top-level ContractPausedBanner with animated shimmer - Add AdminPauseControl for authorized admin wallets - Disable trade actions (buy, sell, stake, transfer) with explanatory tooltips when paused - accesslayerorg#961: Add maximum holding cap warning on buy panel when approaching wallet limit - Add useHoldingCapStore with cap tracking and capacity calculations - Add HoldingCapWarning with accessible progress bar (role=progressbar) - Display approaching-cap warning at >=80% capacity and auto-clamp quantity to remaining limit - Display cap reached state and disable buying when at 100% capacity - Update holding cap store and UI state upon successful purchase - Tests: Add 55 comprehensive unit tests across stores and components
|
@k-deejah Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
…og and LandingPage
…duplicate disabled prop in CreatorCard
…at/issues-953-955-961
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…
-closes #955: Build allowance approval flow for delegating key transfers to staking contract
-closes Show contract paused banner and disable all trade actions when paused #953: Show contract paused banner and disable all trade actions when emergency pause is active
-closes Add maximum holding cap warning on buy panel when approaching wallet limit #961: Add maximum holding cap warning on buy panel when approaching wallet limit