Skip to content

Commit

Permalink
update the event and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bxmmm1 committed Sep 23, 2024
1 parent cf2d6d9 commit 23f2c7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mainnet-contracts/src/PufferWithdrawalManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -250,16 +250,16 @@ contract PufferWithdrawalManager is
uint256 diff = transferAmount - batch.amountClaimed;
totalExcessETH += diff;

// Update the amount claimed to the total toTransfer amount, so that this can't be called twice
// Update the amount claimed to the total toTransfer amount to prevent calling this function twice (validation line 239)
batch.amountClaimed = batch.toTransfer;
}

if (totalExcessETH > 0) {
(bool success,) = address(PUFFER_VAULT).call{ value: totalExcessETH }("");
require(success, TransferFailed());
}

emit ExcessETHReturned(batchIndices, totalExcessETH);
emit ExcessETHReturned(batchIndices, totalExcessETH);
}
}

/**
Expand Down

0 comments on commit 23f2c7f

Please sign in to comment.