-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add Certora spec files #50
Conversation
All of the contracts have specs written for them, expect PoWUtil.sol becasue of timeouts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thanks a lot @dev1644 , just few comments as suggestions.
certora/specs/PowUtil.spec
Outdated
uint256 a; | ||
uint256 b; | ||
|
||
require a >= 10 ^ 18; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest we use a > =1,352,243,068
or a >= 1352 * 10^6
instead of a >= 10 ^18
due to exp2 function gets as input (INTEREST_PER_YEAR_LOG2 * timeElapsed) / 365 days)
certora/specs/PowUtil.spec
Outdated
rule resultShouldAlwaysbeGEThanOne(env e) { | ||
uint256 a; | ||
|
||
require a >= 10 ^ 18; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
certora/specs/PowUtil.spec
Outdated
rule resultShouldNotBeZero(env e) { | ||
uint256 a; | ||
|
||
require a >= 10 ^ 18; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Hey @web3security , I will add the changes as you suggested, but just note as I mentioned earlier, |
Kudos, SonarCloud Quality Gate passed! |
No description provided.