Skip to content

test: add integration test for buy/sell revert when paused (#643) - #693

Merged
Chucks1093 merged 3 commits into
accesslayerorg:mainfrom
KingDavid9999:fixes-issue-#643
Jul 29, 2026
Merged

test: add integration test for buy/sell revert when paused (#643)#693
Chucks1093 merged 3 commits into
accesslayerorg:mainfrom
KingDavid9999:fixes-issue-#643

Conversation

@KingDavid9999

Copy link
Copy Markdown
Contributor

Add pause_blocks_buy_sell_integration.rs covering the full pause/unpause
lifecycle in a single flow: pause via admin, buy reverts with
ProtocolPaused, sell reverts with ProtocolPaused, supply/balance remain
unchanged during the paused window, then unpause and confirm buy
succeeds and increments supply as expected.

Closes #643

…erorg#643)

Add pause_blocks_buy_sell_integration.rs covering the full pause/unpause
lifecycle in a single flow: pause via admin, buy reverts with
ProtocolPaused, sell reverts with ProtocolPaused, supply/balance remain
unchanged during the paused window, then unpause and confirm buy
succeeds and increments supply as expected.

Closes accesslayerorg#643
@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

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

Fix formatting in pause_blocks_buy_sell_integration.rs flagged by
`cargo fmt --all -- --check`: wrap the multi-import use statement
and the try_buy_key call to match rustfmt's line-width rules.
@Chucks1093
Chucks1093 merged commit cddf747 into accesslayerorg:main Jul 29, 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

Development

Successfully merging this pull request may close these issues.

Add integration test for buy transaction reverting when contract is paused

2 participants