Skip to content

Feature/contract rate limiting - #818

Open
billcode124 wants to merge 4 commits into
Abdulazeem-code:mainfrom
billcode124:feature/contract-rate-limiting
Open

billcode124 wants to merge 4 commits into
Abdulazeem-code:mainfrom
billcode124:feature/contract-rate-limiting

Conversation

@billcode124

Copy link
Copy Markdown
Contributor

Description

Implements an on-chain rate limiter to prevent excessive contract invocations and reduce ledger spam caused by malicious actors.

Changes

  • Limit the number of contract invocations per address per ledger sequence.
  • Reject requests that exceed the configured rate limit.
  • Support whitelisting for legitimate high-volume users.
  • Minimize storage overhead for tracking invocation limits.

Acceptance Criteria

  • Excessive invocations are rejected gracefully.
  • Whitelisted addresses can bypass rate limits.
  • Rate limits are enforced per address per ledger sequence.
  • Storage overhead remains minimal.

Related Issue

Closes #716

@vercel

vercel Bot commented Sep 26, 2026

Copy link
Copy Markdown

@billcode124 is attempting to deploy a commit to the Abdulazeem's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Sep 26, 2026

Copy link
Copy Markdown

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

@Abdulazeem-code

Copy link
Copy Markdown
Owner

Fix failed checks

@Abdulazeem-code

Copy link
Copy Markdown
Owner

Please fix failed checks

This branch has not been deployed

No deployments
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.

Smart Contracts: Add Rate Limiting at the Contract Level

2 participants