Skip to content

feat: Implement allowance approval, emergency contract pause, and holding cap warnings (#953, #955, #961) - #974

Merged
Chucks1093 merged 11 commits into
accesslayerorg:devfrom
k-deejah:feat/issues-953-955-961
Sep 30, 2026
Merged

Chucks1093 merged 11 commits into
accesslayerorg:devfrom
k-deejah:feat/issues-953-955-961

Conversation

@k-deejah

Copy link
Copy Markdown
Contributor

…

-closes #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
    -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
  • 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
    -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
  • 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

…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
@drips-wave

drips-wave Bot commented Sep 25, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 merged commit 40c4878 into accesslayerorg:dev Sep 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants