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: LidoLocator behind Proxy #539

Merged
merged 9 commits into from
Feb 5, 2023

Conversation

mymphe
Copy link
Contributor

@mymphe mymphe commented Feb 3, 2023

This PR includes a new contract: Proxied LidoLocator. All addresses are immutable to avoid storage-read operations for gas efficiency. Whenever Locator needs changing, simply upgrade the implementation.

@mymphe mymphe changed the base branch from master to feature/shapella-upgrade February 3, 2023 07:49
@mymphe mymphe mentioned this pull request Feb 3, 2023
Copy link
Contributor

@TheDZhon TheDZhon left a comment

Choose a reason for hiding this comment

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

Thank you for the outstanding speed of delivery 🚀
Left some suggestions

contracts/0.8.9/LidoLocator.sol Outdated Show resolved Hide resolved
contracts/0.8.9/LidoLocator.sol Outdated Show resolved Hide resolved
contracts/0.8.9/LidoLocator.sol Outdated Show resolved Hide resolved
contracts/0.8.9/LidoLocator.sol Outdated Show resolved Hide resolved
contracts/0.8.9/test_helpers/LidoLocatorUpdatedMock.sol Outdated Show resolved Hide resolved
contracts/common/interfaces/ILidoLocator.sol Outdated Show resolved Hide resolved
contracts/common/interfaces/ILidoLocator.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@TheDZhon TheDZhon left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Though please have a look at the proposed improvements


// See contracts/COMPILERS.md
// solhint-disable-next-line
pragma solidity 0.4.24||0.8.9;
Copy link
Contributor

Choose a reason for hiding this comment

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

@arwer13 is proposing another approach here, hmm
#543

function withdrawalQueue() external view returns(address);
function withdrawalVault() external view returns(address);
function coreComponents() external view returns(
address,
Copy link
Contributor

@TheDZhon TheDZhon Feb 3, 2023

Choose a reason for hiding this comment

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

we can document return var names in the interface file I believe

@TheDZhon TheDZhon merged commit 6384981 into feature/shapella-upgrade Feb 5, 2023
@TheDZhon TheDZhon deleted the feat/proxy-locator branch February 5, 2023 08:19
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.

4 participants