Skip to content

Conversation

@chrismaree
Copy link
Member

Problem:
Within the HubPool contract, the weth, finder, and lpTokenFactory variables are only ever assigned
a value in the constructor.

Solution:
made these variables that should never be changed immutable.

Signed-off-by: chrismaree <christopher.maree@gmail.com>
@chrismaree chrismaree added the OZ Audit - March Resolves issue discovered in March 2022 OZ Audit label Mar 16, 2022
@mrice32 mrice32 self-requested a review March 17, 2022 12:27
Copy link
Member

@nicholaspai nicholaspai 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 while you're at it, the following vars can also be made immutable:

Optimism_SpokePool

  • l2Eth

SpokePool

  • weth

@chrismaree
Copy link
Member Author

LGTM but while you're at it, the following vars can also be made immutable:

Optimism_SpokePool

  • l2Eth

SpokePool

  • weth

good point! done.

Signed-off-by: chrismaree <christopher.maree@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OZ Audit - March Resolves issue discovered in March 2022 OZ Audit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants