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

Feat: PUSO gov script #209

Merged
merged 15 commits into from
Aug 26, 2024
Merged

Feat: PUSO gov script #209

merged 15 commits into from
Aug 26, 2024

Conversation

denviljclarke
Copy link
Contributor

@denviljclarke denviljclarke commented Aug 16, 2024

Description

This PR adds the upgrade scripts for the governance proposals to enable PUSO. Checks have been added, and fork tests have been updated and are green.

For Reviewers
For the swap tests to run, you can run the new RelayerReport script to relay rates to SortedOracles on Alfajores/Baklava.

Other changes

  • None

Tested

  • Added checks to verify the proposals set the correct configuration values after being simulated
  • Added checks to verify that swaps in the newly added pools work as expected

Related issues

Backwards compatibility

  • N/A

Documentation

  • None

@denviljclarke denviljclarke changed the title Feat: Add PSO gov script Feat: Add PUSO gov script Aug 20, 2024
@denviljclarke denviljclarke changed the title Feat: Add PUSO gov script Feat: PUSO gov script Aug 21, 2024
@denviljclarke denviljclarke marked this pull request as ready for review August 21, 2024 13:52
@denviljclarke denviljclarke requested review from a team, bowd, nvtaveras and philbow61 and removed request for a team August 21, 2024 13:52
Copy link
Contributor

@philbow61 philbow61 left a comment

Choose a reason for hiding this comment

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

LGTM 👍 nice work
please verify the contracts on mainnet and alfajores

broadcast/PUSO-00-Create-Proxies.sol/62320/run-latest.json Outdated Show resolved Hide resolved
Comment on lines 91 to 93
if (Chain.isBaklava() || Chain.isAlfajores()) {
poolConfig.minimumReports = 1;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We can get rid of this

Comment on lines 197 to 205
function assertApproxEq(uint256 a, uint256 b, uint256 maxDelta) internal view {
uint256 delta = a > b ? a - b : b - a;

if (delta > maxDelta) {
console.log("Diff(%s) between amounts is greater than %s", delta, maxDelta);
}

require(delta <= maxDelta, "Values are not approximately equal. See logs for more information.");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the assertApproxEq from forge-std/Test.sol not work here?

@bowd bowd merged commit e6d9eca into main Aug 26, 2024
1 check passed
@bowd bowd deleted the feat/add-PSO-gov-script branch August 26, 2024 09:54
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.

CGP - Add PUSO governance proposal script
4 participants