-
Notifications
You must be signed in to change notification settings - Fork 16
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
Proposal script #50
Proposal script #50
Conversation
de8e385
to
ae10568
Compare
61528aa
to
f412595
Compare
f412595
to
b2280ad
Compare
b2280ad
to
77eb2bd
Compare
8965936
to
e5dd3d8
Compare
4511fd1
to
346dea3
Compare
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.
nits; likely you'll want to ignore a bunch of them, but i left them here for completeness
test/UniStaker.integration.t.sol
Outdated
assertEq(factory.owner(), address(v3FactoryOwner)); | ||
|
||
assertEq(wbtcWethFeeProtocol, 10 + (10 << 4)); | ||
assertEq(daiWethFeeProtocol, 10 + (10 << 4)); |
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.
why these numbers? can you leave a comment?
also, can these numbers be fuzzed, or would we always expect them to be fixed/hardcoded in the script?
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.
Right now they are hardcoded in the script. We could update the script to make these different from a testing perspective, but I don't know how much this gets us testing wise because we should already be fuzzing these values in the unit tests.
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.
Hey @alexkeating overall it looks great, really glad to see the gov proposal testing infrastructure in place! Left some thoughts, feel free to push back or suggest alternatives to my suggestions.
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.
Left some more comments @alexkeating. Thanks for bearing with multi-review cycles on the proposal scripts. Since they'll be used repeatedly over time, I want to make sure we get them right.
258c2e4
to
39f7f0f
Compare
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, a few nits
script/ProposeFactorySetOwner.s.sol
Outdated
); | ||
} | ||
|
||
/// @param _newV3FactoryOwner The new factory owner which should have be the recently deployed. |
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.
/// @param _newV3FactoryOwner The new factory owner which should have be the recently deployed. | |
/// @param _newV3FactoryOwner The new factory owner, i.e. the recently deployed V3FactoryOwner. |
script/ProposeFactorySetOwner.s.sol
Outdated
address _proposer = | ||
vm.envOr("PROPOSER_ADDRESS", address(0x0459f41c5f09BF678D9C07331894dE31d8C22255)); | ||
|
||
/// @param _newV3FactoryOwner The new factory owner which should have be the recently deployed. |
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.
/// @param _newV3FactoryOwner The new factory owner which should have be the recently deployed. | |
/// @param _newV3FactoryOwner The new factory owner i.e. the recently deployed V3FactoryOwner. |
script/ProposeFactorySetOwner.s.sol
Outdated
|
||
/// @param _newV3FactoryOwner The new factory owner which should have be the recently deployed. | ||
/// `V3FactoryOwner` | ||
/// @dev After the UniStaker and V3FactoryOwner contracts are deployed a delegate should run this |
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.
/// @dev After the UniStaker and V3FactoryOwner contracts are deployed a delegate should run this | |
/// @dev After the UniStaker and V3FactoryOwner contracts are deployed, a delegate should run this |
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.
^^ also, it looks like there's a period on line 35 but the period should be on line 36
assertEq(oldDaiWethFeeProtocol, 0); | ||
assertEq(oldDaiUsdcFeeProtocol, 0); | ||
|
||
assertEq(newWbtcWethFeeProtocol, 10 + (10 << 4)); |
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 appreciate now why we're hardcoding here, but can you leave a comment on why we're doing the addition?
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.
Yes, I will add a comment
Coverage after merging feature/proposal-script into main will be
Coverage Report
|
Description
Closes #25