Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toRateLimitPolicy does not work #186

Open
Vidhan123 opened this issue Sep 13, 2024 · 0 comments
Open

toRateLimitPolicy does not work #186

Vidhan123 opened this issue Sep 13, 2024 · 0 comments

Comments

@Vidhan123
Copy link

I tried with multiple intervals here, it takes the count as total limit instead of limit per interval.

In the example below, it will only allow the first transaction, and post that you can't perform any transactions, even after hours.

// In this example, the signer can send one UserOp per minute
const rateLimitPolicy = toRateLimitPolicy({
  count: 1,
  interval: 60,  // one minute in seconds
})
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

No branches or pull requests

1 participant