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

01 - Weight changer #4

Merged
merged 46 commits into from Jun 30, 2023
Merged

01 - Weight changer #4

merged 46 commits into from Jun 30, 2023

Conversation

0xSpraggins
Copy link
Collaborator

No description provided.

.solhint.json Outdated Show resolved Hide resolved
pkg/mpc-examples/contracts/01-weight-changer/README.md Outdated Show resolved Hide resolved
pkg/mpc-examples/contracts/01-weight-changer/README.md Outdated Show resolved Hide resolved
pkg/mpc-examples/contracts/01-weight-changer/README.md Outdated Show resolved Hide resolved
pkg/mpc-examples/test/01-WeightChanger.test.ts Outdated Show resolved Hide resolved
pkg/mpc-examples/test/01-WeightChanger.test.ts Outdated Show resolved Hide resolved
pkg/mpc-examples/test/01-WeightChanger.test.ts Outdated Show resolved Hide resolved
pkg/mpc-examples/test/01-WeightChanger.test.ts Outdated Show resolved Hide resolved
pkg/mpc-examples/test/01-WeightChanger.test.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@gerrrg gerrrg left a 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

Copy link
Collaborator

@gerrrg gerrrg left a 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/README.md Outdated Show resolved Hide resolved
pkg/mpc-examples/contracts/01-weight-changer/README.md Outdated Show resolved Hide resolved
pkg/mpc-examples/contracts/01-weight-changer/README.md Outdated Show resolved Hide resolved
pkg/mpc-examples/test/01-WeightChanger.test.ts Outdated Show resolved Hide resolved
pkg/mpc-examples/test/01-WeightChanger.test.ts Outdated Show resolved Hide resolved
pkg/mpc-examples/test/01-WeightChanger.test.ts Outdated Show resolved Hide resolved
pkg/mpc-examples/test/01-WeightChanger.test.ts Outdated Show resolved Hide resolved
@gerrrg
Copy link
Collaborator

gerrrg commented Mar 24, 2023

Can you add a line to the top level README following the example from NullController?

@0xSpraggins
Copy link
Collaborator Author

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

@gerrrg gerrrg changed the title Weight changer 01 - Weight changer Mar 29, 2023
Copy link
Collaborator

@gerrrg gerrrg left a 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?

@0xSpraggins
Copy link
Collaborator Author

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.

@0xSpraggins 0xSpraggins requested a review from gerrrg June 3, 2023 00:45
Copy link
Collaborator

@gerrrg gerrrg left a comment

Choose a reason for hiding this comment

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

tiny edit

@0xSpraggins 0xSpraggins requested a review from gerrrg June 8, 2023 14:03
@rabmarut rabmarut merged commit 6c14b23 into main Jun 30, 2023
3 checks passed
@rabmarut rabmarut deleted the weight_changer branch June 30, 2023 16:27
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.

None yet

4 participants