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

chore: scripts to audit on-chain contract setup #79

Merged
merged 11 commits into from
Aug 18, 2023

Conversation

kupermind
Copy link
Collaborator

  • Adding scripts to audit on-chain contract setup.

@@ -1,1425 +0,0 @@
{
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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,
Copy link
Collaborator Author

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()");
Copy link
Collaborator

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

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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.

@mariapiamo mariapiamo merged commit 2c5df88 into main Aug 18, 2023
3 checks passed
@mariapiamo mariapiamo deleted the audit_contracts_setup branch August 18, 2023 07:44
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.

2 participants