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

Prevent possible pauseStaking and resumeStaking repetitive calls #758

Open
TheDZhon opened this issue Apr 20, 2023 · 0 comments
Open

Prevent possible pauseStaking and resumeStaking repetitive calls #758

TheDZhon opened this issue Apr 20, 2023 · 0 comments

Comments

@TheDZhon
Copy link
Contributor

TheDZhon commented Apr 20, 2023

Now it's possible to call one of the pauseStaking or resumeStaking methods more than once in a row.
Even though it doesn't pose any risks or inconsistencies beyond emitting extra events, the better approach would be completely preventing repetitive calls. The latter approach is used everywhere with other 'pausable' entities across the codebase.

@TheDZhon TheDZhon changed the title Fix: prevent pauseStaking and resumeStaking repetitive calls Prevent possible pauseStaking and resumeStaking repetitive calls Apr 20, 2023
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