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

Add Certora spec files #50

Merged
merged 4 commits into from
Nov 8, 2023
Merged

Add Certora spec files #50

merged 4 commits into from
Nov 8, 2023

Conversation

dev1644
Copy link
Contributor

@dev1644 dev1644 commented Oct 21, 2023

No description provided.

@gretzke gretzke marked this pull request as draft October 23, 2023 15:53
@gretzke gretzke changed the base branch from dev to dev_backup October 23, 2023 16:53
@gretzke gretzke changed the base branch from dev_backup to dev October 23, 2023 16:55
Copy link

@web3security web3security left a 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.

uint256 a;
uint256 b;

require a >= 10 ^ 18;

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)

rule resultShouldAlwaysbeGEThanOne(env e) {
uint256 a;

require a >= 10 ^ 18;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

rule resultShouldNotBeZero(env e) {
uint256 a;

require a >= 10 ^ 18;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@dev1644
Copy link
Contributor Author

dev1644 commented Oct 25, 2023

This is great, thanks a lot @dev1644 , just few comments as suggestions.

Hey @web3security , I will add the changes as you suggested, but just note as I mentioned earlier, PowUtil.spec is timing out.

@gretzke gretzke marked this pull request as ready for review November 8, 2023 14:00
Copy link

sonarcloud bot commented Nov 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@gretzke gretzke merged commit 77a0a3d into dev Nov 8, 2023
3 checks passed
@gretzke gretzke deleted the certora/CVL2 branch November 8, 2023 15:10
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

Successfully merging this pull request may close these issues.

3 participants