-
Notifications
You must be signed in to change notification settings - Fork 4
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
chore: scripts to audit on-chain contract setup #79
Conversation
kupermind
commented
Aug 17, 2023
- Adding scripts to audit on-chain contract setup.
@@ -1,1425 +0,0 @@ | |||
{ |
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 ABI is not used anywhere in contracts or setup, it was the intermediary one
@@ -0,0 +1,14 @@ | |||
# Source code differences |
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 will expand with full report at some point.
runs: 750, | ||
runs: 1000000, |
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.
Restoring the justice!
|
||
// Check quorumNumerator, hardcoded | ||
const quorumNumerator = await governor["quorumNumerator()"](); | ||
customExpect(quorumNumerator.toString(), globalsInstance["quorum"], log + ", function: quorumNumerator()"); |
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 have expected that this and the the following two would have shown an issue. Indeed governorOLAS on goerli have different quorum
, initialVotingDelay
, initialVotingPeriod
. I guess that hardcoded values should be used here
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.
We compare values with our globals files - they are different for mainnet and goerli. If we want this to be exactly as on the mainnet, we need to use its values then.
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.
Updated with the mainnet values.