-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
L-1: Add a reset period check to prevent the transaction failing and …
…using all gas (#492) This PR fixes a low severity audit finding by Ackee: > It is possible to set the resetTimeMin to 0. When the resetBaseMin is bigger than 0 and the resetTimeMin is 0, then the branch with modulo operation is triggered and it will cause a division by zero. Since it is also in Solidity version <0.8.0, it consumes all gas.
- Loading branch information
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters