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

refactor(StakeManager): Abstact out codehash verification to better c… #140

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

3esmit
Copy link
Collaborator

@3esmit 3esmit commented Sep 28, 2024

…ode reusability

chore(StakeManager): move out storage contract and rename it

Description

Describe the changes made in your pull request here.

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Added natspec comments?
  • Ran pnpm adorno?
  • Ran pnpm verify?

…ode reusability

chore(StakeManager): move out storage contract and rename it
@3esmit 3esmit force-pushed the abstract-codehash-access branch from 509383c to 795e762 Compare September 28, 2024 18:23
@3esmit 3esmit self-assigned this Oct 1, 2024
"certora/helpers/ERC20A.sol"
],
"link" : [
"StakeVault:STAKED_TOKEN=ERC20A",
"StakeManager:stakedToken=ERC20A",
"StakeManager:stakeRewardEstimate=StakeRewardEstimateA",
"StakeManager:expiredStakeStorage=ExpiredStakeStorageA",
Copy link
Collaborator

Choose a reason for hiding this comment

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

These changes look unrelated to what the commit says it does

uint256 stakeAmount = 100;
StakeVault userVault = _createStakingAccount(testUser, stakeAmount, 0, stakeAmount * 10);
uint256 stakeAmount = 54;
StakeVault userVault = _createStakingAccount(testUser, stakeAmount, 0, stakeAmount);
Copy link
Collaborator

Choose a reason for hiding this comment

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

These changes are also not related to the whitelisting are they?

Copy link
Collaborator

@0x-r4bbit 0x-r4bbit left a comment

Choose a reason for hiding this comment

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

Nice changes!

Was just a bit confused by some changes that seem rather unrelated to extracting the whitelisting into its own contract.

@3esmit 3esmit merged commit b6a95e3 into develop Oct 3, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor(StakeManager): Abstract out part of the contract that can be reused
2 participants