lidofinance / core

Lido DAO smart contracts
https://lido.fi
GNU General Public License v3.0
382 stars 194 forks source link

Prevent possible `pauseStaking` and `resumeStaking` repetitive calls #758

Open TheDZhon opened 1 year ago

TheDZhon commented 1 year ago

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.