lido-dao icon indicating copy to clipboard operation
lido-dao copied to clipboard

Prevent possible `pauseStaking` and `resumeStaking` repetitive calls

Open TheDZhon opened this issue 1 year ago • 0 comments

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 avatar Apr 20 '23 06:04 TheDZhon