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
01 - Weight changer #4
Conversation
This reverts commit 82c0d02.
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'm going to make some additional edits to the factory here that I did not leave comments for. I'll tag you when those are done
…ollerFactory in an upcoming PR
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.
mostly tweaks
pkg/mpc-examples/contracts/01-weight-changer/WeightChangerController.sol
Outdated
Show resolved
Hide resolved
pkg/mpc-examples/contracts/01-weight-changer/WeightChangerController.sol
Outdated
Show resolved
Hide resolved
pkg/mpc-examples/contracts/01-weight-changer/WeightChangerControllerFactory.sol
Outdated
Show resolved
Hide resolved
Can you add a line to the top level README following the example from NullController? |
Im pretty sure its already like the NullController. But correct me if Im wrong https://github.com/orbcollective/mpc-examples/blob/weight_changer/pkg/mpc-examples/contracts/01-weight-changer/README.md?plain=1#L1 |
pkg/mpc-examples/contracts/01-weight-changer/WeightChangerControllerFactory.sol
Outdated
Show resolved
Hide resolved
pkg/mpc-examples/contracts/01-weight-changer/WeightChangerController.sol
Outdated
Show resolved
Hide resolved
pkg/mpc-examples/contracts/01-weight-changer/WeightChangerController.sol
Outdated
Show resolved
Hide resolved
pkg/mpc-examples/contracts/01-weight-changer/WeightChangerController.sol
Outdated
Show resolved
Hide resolved
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.
Overall seems reasonable to me. Added one comment in-line.
One additional note: in the constructor, we have a call to make sure the poolId and Vault are legit, but then in the next line of code, we're going vault.getPoolTokens(poolId) which would also satisfy that check. Do we want to eliminate that redundancy, or keep it for the sake of uniformity among these example controllers?
I vote to remove it. |
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.
tiny edit
No description provided.