-
Notifications
You must be signed in to change notification settings - Fork 195
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: factory upgrade #901
base: feat/vaults
Are you sure you want to change the base?
Conversation
loga4
commented
Dec 17, 2024
- split vault factory into 2 contracts: Beacon and VaultFactory
- remove onlyBeacon modifier from initializer
Hardhat Unit Tests Coverage Summary
Diff against master
Results for commit: 8c6bfd4 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
…rade # Conflicts: # test/0.8.25/vaults/staking-vault/staking-vault.test.ts
…rade # Conflicts: # test/0.8.25/vaults/dashboard/dashboard.test.ts # test/0.8.25/vaults/delegation/delegation.test.ts # test/0.8.25/vaults/staking-vault/staking-vault.test.ts
@@ -84,6 +84,7 @@ contract StakingVault is IStakingVault, IBeaconProxy, BeaconChainDepositLogistic | |||
IStakingVault.Report report; | |||
uint128 locked; | |||
int128 inOutDelta; | |||
address factory; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not check factory at all
if (!$.vaultFactories[factory]) revert FactoryNotAllowed(factory); | ||
{ | ||
address factory = IStakingVault(address (_vault)).factory(); | ||
if (!$.vaultFactories[factory]) revert FactoryNotAllowed(factory); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's store beacons here