Skip to content

Disable Trading Actions When a Key Is Paused - #828

Open
Damilorlar wants to merge 10 commits into
accesslayerorg:mainfrom
Damilorlar:fix/trading-paused-banner
Open

Disable Trading Actions When a Key Is Paused#828
Damilorlar wants to merge 10 commits into
accesslayerorg:mainfrom
Damilorlar:fix/trading-paused-banner

Conversation

@Damilorlar

Copy link
Copy Markdown
Contributor

##closed #777

Update the trading interface to respond to the tradingPaused status from the key detail API.

When trading is paused for a key, display a yellow warning banner explaining that trading is temporarily unavailable, disable the Buy and Sell buttons, and provide a tooltip explaining why the actions are disabled. When trading is resumed, the warning banner should be hidden and the buttons should become active again.

This will prevent users from attempting unavailable trades and receiving a confusing 503 error.

- Add tradingPaused column to CreatorProfile (Prisma model + migration)
- Surface tradingPaused in GET /api/v1/creators/:creatorId/profile
- Allow admins to pause/resume trading via PATCH /creators/:id/metadata,
  emitting pause_creator_trading / resume_creator_trading audit events
- Add unit tests for the read path and admin pause/resume behavior
@Damilorlar
Damilorlar force-pushed the fix/trading-paused-banner branch from 518f09b to 3a9337a Compare August 26, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a webhook handler for Stellar Horizon transaction events to update key ownership records

1 participant