Skip to content

Commit

Permalink
fix L2
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbir committed Nov 24, 2023
1 parent 17c314e commit 901b78e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions src/p2pSsvProxy/IP2pSsvProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ interface IP2pSsvProxy is IOwnableWithOperator, IERC165 {
/// @notice Register a batch of validators with SSV
/// @dev Should be called by P2pSsvProxyFactory only
/// @param _ssvPayload struct with the SSV data required for registration
/// @param _feeDistributorInstance instance of FeeDistributor to be used as EL fee recipient in SSV
function registerValidators(
SsvPayload calldata _ssvPayload,
address _feeDistributorInstance
SsvPayload calldata _ssvPayload
) external;

/// @notice Remove a batch of validators from SSV
Expand Down
5 changes: 2 additions & 3 deletions src/p2pSsvProxy/P2pSsvProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ contract P2pSsvProxy is OwnableAssetRecoverer, ERC165, IP2pSsvProxy {

/// @inheritdoc IP2pSsvProxy
function registerValidators(
SsvPayload calldata _ssvPayload,
address _feeDistributorInstance
SsvPayload calldata _ssvPayload
) external onlyP2pSsvProxyFactory {
(
uint64[] memory operatorIds,
Expand Down Expand Up @@ -216,7 +215,7 @@ contract P2pSsvProxy is OwnableAssetRecoverer, ERC165, IP2pSsvProxy {
unchecked {++i;}
}

i_ssvNetwork.setFeeRecipientAddress(_feeDistributorInstance);
i_ssvNetwork.setFeeRecipientAddress(address(s_feeDistributor));
}

/// @inheritdoc IP2pSsvProxy
Expand Down
5 changes: 1 addition & 4 deletions src/p2pSsvProxyFactory/P2pSsvProxyFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,7 @@ contract P2pSsvProxyFactory is OwnableAssetRecoverer, OwnableWithOperator, ERC16

i_ssvToken.transfer(address(p2pSsvProxy), _ssvPayload.tokenAmount);

P2pSsvProxy(p2pSsvProxy).registerValidators(
_ssvPayload,
feeDistributorInstance
);
P2pSsvProxy(p2pSsvProxy).registerValidators(_ssvPayload);

emit P2pSsvProxyFactory__RegistrationCompleted(p2pSsvProxy);
}
Expand Down

0 comments on commit 901b78e

Please sign in to comment.