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/use only id externally #510

Merged
merged 9 commits into from
Jan 31, 2023

Conversation

mymphe
Copy link
Contributor

@mymphe mymphe commented Jan 27, 2023

This PR hides staking module indexes from the external interface. All external setters and getters use module ids now. Additionally, StakingRouter provides a getter for all module ids.

@mymphe mymphe changed the base branch from master to feature/shapella-upgrade January 27, 2023 08:57
@mymphe mymphe marked this pull request as draft January 27, 2023 08:57
@mymphe mymphe changed the base branch from feature/shapella-upgrade to fix/typos-base-precision January 27, 2023 12:24
@mymphe mymphe marked this pull request as ready for review January 27, 2023 12:24
Base automatically changed from fix/typos-base-precision to feature/shapella-upgrade January 28, 2023 11:42
);
(_getTotalPooledEther().mul(precisionPoints))
.sub(_totalRewards.mul(totalFee))
);
Copy link
Member

Choose a reason for hiding this comment

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

Why this formatting change? The result is much less readable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That change pertains to a former base branch, fix/typos-base-precision which has already been merged to #482. This PR includes change only to StakingRouter and respective tests.

@TheDZhon
Copy link
Contributor

Could you please update the PR to resolve conflicts?

@mymphe
Copy link
Contributor Author

mymphe commented Jan 31, 2023

Could you please update the PR to resolve conflicts?

Conflicts resolved.

Copy link
Member

@krogla krogla left a comment

Choose a reason for hiding this comment

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

lgtm, but it seems that storage read optimization is possible

@arwer13 arwer13 merged commit 44ee896 into feature/shapella-upgrade Jan 31, 2023
@arwer13 arwer13 deleted the feat/use-only-id-externally branch January 31, 2023 16:00
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.

5 participants