Skip to content

toRateLimitPolicy does not work #186

@Vidhan123

Description

@Vidhan123

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
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions