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

Rate limiting #1

Open
julien51 opened this issue Nov 21, 2022 · 0 comments
Open

Rate limiting #1

julien51 opened this issue Nov 21, 2022 · 0 comments
Assignees

Comments

@julien51
Copy link
Member

We may want to rate limit to make sure people are not able to abuse since we don't actually "link" Twitter accounts.
The easiest way to do that which does not require us to store special state is to look at the subgraph for any user for whom we are about to create a lock and prevent them from doing it if they have create another lock less than say 1 hour ago?
In the subgraph, we keep the time (at least block number) for each lock created.

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

2 participants