Skip to content

feat(creator-keys): implement price impact circuit breaker and set_circuit_breaker - #1024

Merged
Chucks1093 merged 2 commits into
accesslayerorg:mainfrom
VictorEzenma:feat/price-impact-circuit-breaker
Sep 30, 2026
Merged

Chucks1093 merged 2 commits into
accesslayerorg:mainfrom
VictorEzenma:feat/price-impact-circuit-breaker

Conversation

@VictorEzenma

Copy link
Copy Markdown
Contributor

Summary

Implement the price impact circuit breaker mechanism and the set_circuit_breaker_threshold admin function in the creator-keys contract to safeguard against excessive price volatility during buy and sell operations.

## Changes
  • Circuit Breaker Validation: Added price impact checks during trade execution to compare price movement
    against the configured threshold percentage.
  • Admin Configuration: Implemented set_circuit_breaker_threshold allowing the protocol admin to update the
    threshold in basis points.
  • Event Emission: Added CircuitBreakerTriggeredEvent carrying pre_price, post_price, and actual_bps
    upon triggering.
  • Testing & Snapshots: Added and updated comprehensive unit tests, integration tests, and test snapshots
    verifying circuit breaker enforcement and behavior.

closes #996

@drips-wave

drips-wave Bot commented Sep 29, 2026

Copy link
Copy Markdown

@VictorEzenma 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 7f1dcc7 into accesslayerorg:main 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

Development

Successfully merging this pull request may close these issues.

Implement cross-key arbitrage protection with price impact circuit breaker

2 participants