Skip to content

Commit

Permalink
fix: split initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
0xvv committed Apr 14, 2023
1 parent ea9f10d commit 3aa6576
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/contracts/StakingContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ contract StakingContract {
StakingContractStorageLib.setCLDispatcher(_clDispatcher);
StakingContractStorageLib.setDepositContract(_depositContract);
StakingContractStorageLib.setFeeRecipientImplementation(_feeRecipientImplementation);
initialize_2(globalCommissionLimitBPS, operatorCommissionLimitBPS);
}

function initialize_2(uint256 globalCommissionLimitBPS, uint256 operatorCommissionLimitBPS) public init(2) {
if (globalCommissionLimitBPS > BASIS_POINTS) {
revert InvalidFee();
}
Expand Down

0 comments on commit 3aa6576

Please sign in to comment.