Skip to content

Commit

Permalink
chore: update deposit slash to take in arbitrary amount
Browse files Browse the repository at this point in the history
  • Loading branch information
nican0r committed May 31, 2024
1 parent 7de3c59 commit 30fdf24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/recon/FuzzingETHDepositMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ contract ETHPOSDepositMock is IETHPOSDeposit {
}

// @notice replicates behavior of a slashing event on the deposit contract
// @dev uses the maximum slashing penalty of 1 ETH for simplicity, burns the ETH to 0 address
function slash() external {
(bool success, ) = payable(address(0)).call{value: 1 ether}("");
// @dev takes in an arbitrary slashing amount to be compatible with AVS slashing and native ETH slashing
function slash(uint256 amount) external {
(bool success, ) = payable(address(0)).call{value: amount}("");
require(success, "ETHPOSDepositMock: call to slash() failed");
}
}

0 comments on commit 30fdf24

Please sign in to comment.