Skip to content

Commit

Permalink
fix: withdraw
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Feb 3, 2025
1 parent a17c375 commit 8674bba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contracts/0.8.25/predeposit_guarantee/PredepositGuarantee.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ contract PredepositGuarantee is CLProofVerifier {

_isValidNodeOperatorCaller(_nodeOperator);

if (nodeOperatorCollateral[_nodeOperator] - nodeOperatorCollateralLocked[_nodeOperator] >= _amount)
if (nodeOperatorCollateral[_nodeOperator] - nodeOperatorCollateralLocked[_nodeOperator] < _amount)
revert NotEnoughUnlockedCollateralToWithdraw();

nodeOperatorCollateral[_nodeOperator] -= _amount;
Expand Down Expand Up @@ -133,8 +133,7 @@ contract PredepositGuarantee is CLProofVerifier {

function proveInvalidValidatorPreDeposit(
Validator calldata _validator,
bytes32[] calldata _proof,
bytes32 _invalidWC,
bytes32[] calldata _proof
uint64 _beaconBlockTimestamp
) external {
bytes32 _validatorId = keccak256(_validator.pubkey);
Expand Down

0 comments on commit 8674bba

Please sign in to comment.