Skip to content

Commit

Permalink
Suppress Slither false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-zimnoch committed Jan 29, 2024
1 parent f40a560 commit 20c60b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions solidity/contracts/integrator/TBTCDepositorProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,15 @@ abstract contract TBTCDepositorProxy is Initializable {
// allow to reveal the same deposit twice. Deleting the deposit from
// the mapping will also prevent the finalizeDeposit function from
// being called again for the same deposit.
// slither-disable-next-line reentrancy-no-eth
delete pendingDeposits[depositKey];

uint256 tbtcAmount = calculateTbtcAmount(
deposit.amount,
deposit.treasuryFee
);

// slither-disable-next-line reentrancy-events
emit DepositFinalized(
depositKey,
tbtcAmount,
Expand Down

0 comments on commit 20c60b3

Please sign in to comment.