-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
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.
LGTM 👍 nice work
please verify the contracts on mainnet and alfajores
script/upgrades/PUSO/Config.sol
Outdated
if (Chain.isBaklava() || Chain.isAlfajores()) { | ||
poolConfig.minimumReports = 1; | ||
} |
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 can get rid of this
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."); | ||
} |
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.
Does the assertApproxEq
from forge-std/Test.sol not work here?
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
Tested
Related issues
Backwards compatibility
Documentation