Skip to content

Commit

Permalink
ran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Apr 29, 2024
1 parent c12f770 commit a332c98
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,15 @@ contract NativeStakingSSVStrategy is
}

/**
* @notice Only accept ETH from the FeeAccumulator and the WETH contract - required when
* @notice Only accept ETH from the FeeAccumulator and the WETH contract - required when
* unwrapping WETH just before staking it to the validator
* @dev don't want to receive donations from anyone else as this will
* mess with the accounting of the consensus rewards and validator full withdrawals
*/
receive() external payable {
require(
msg.sender == FEE_ACCUMULATOR_ADDRESS || msg.sender == WETH_TOKEN_ADDRESS,
msg.sender == FEE_ACCUMULATOR_ADDRESS ||
msg.sender == WETH_TOKEN_ADDRESS,
"eth not from allowed contracts"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ abstract contract ValidatorAccountant is ValidatorRegistrator {
accountingValid = _doAccounting(true);
}

function _doAccounting(
bool pauseOnFail
) internal returns (bool accountingValid) {
function _doAccounting(bool pauseOnFail)
internal
returns (bool accountingValid)
{
if (address(this).balance < consensusRewards) {
// pause if not already
if (pauseOnFail) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ abstract contract ValidatorRegistrator is Governable, Pausable {
bytes11(0),
address(this)
);
IDepositContract(BEACON_CHAIN_DEPOSIT_CONTRACT).deposit{ value: 32 ether }(
IDepositContract(BEACON_CHAIN_DEPOSIT_CONTRACT).deposit{
value: 32 ether
}(
validators[i].pubkey,
withdrawal_credentials,
validators[i].signature,
Expand Down

0 comments on commit a332c98

Please sign in to comment.