Skip to content

feat: implement rate limiting for bets and admin events#381

Merged
greatest0fallt1me merged 1 commit intoPredictify-org:masterfrom
Jagadeeshftw:oracle-fallback
Feb 26, 2026
Merged

feat: implement rate limiting for bets and admin events#381
greatest0fallt1me merged 1 commit intoPredictify-org:masterfrom
Jagadeeshftw:oracle-fallback

Conversation

@Jagadeeshftw
Copy link
Contributor

Closes #251
Closes #259
Closes #248

- Added rate limiting functionality to restrict the number of bets per user and events per admin within a specified time window.
- Introduced new configuration options in RateLimitConfig for bet limits and admin event limits.
- Updated relevant functions in lib.rs and rate_limiter.rs to enforce these limits.
- Added tests to ensure rate limits are correctly enforced and function as expected.
- Created a new file to store seeds for failure cases generated by proptest.
@greatest0fallt1me
Copy link
Contributor

LGTM!

@greatest0fallt1me greatest0fallt1me merged commit e9ad2f0 into Predictify-org:master Feb 26, 2026
1 check failed
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