Skip to content

feat: add per-pool AMM pause controls#466

Open
Gezziy wants to merge 1 commit into
ceejaylaboratory:mainfrom
Gezziy:pause-mechanism
Open

feat: add per-pool AMM pause controls#466
Gezziy wants to merge 1 commit into
ceejaylaboratory:mainfrom
Gezziy:pause-mechanism

Conversation

@Gezziy
Copy link
Copy Markdown

@Gezziy Gezziy commented May 28, 2026

closes #269

##Summary of Changes
Added admin-controlled pause_pool and unpause_pool functions to the AMM contract.
Stored pause state per AMM contract instance so one paused pool does not affect other pools.
Added pause guards to deposit, swap, and withdraw.
Added read helpers for is_paused and get_admin.
Updated AMM benchmark initialization to pass the new admin argument.
Added tests for admin authorization, paused operation rejection, and independent pool pause state.

##Reason for Changes
Administrators need the ability to pause a specific AMM pool for maintenance or security response without disrupting other active pools.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@Gezziy 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

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.

Contract: Add pause mechanism for individual AMM pools

2 participants