Skip to content

Commit

Permalink
Silence false slither warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuanx committed Feb 14, 2024
1 parent 7d41b16 commit aea7082
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/core/extensions/native-token/TTUV2Native.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contract TTUV2Native is TokenTableUnlockerV2 {
TokenTableUnlockerV2Storage
storage $ = _getTokenTableUnlockerV2Storage();
if (!$.isWithdrawable) revert NotPermissioned();
// slither-disable-next-line
// slither-disable-next-line arbitrary-send-eth
(bool sent, bytes memory data) = payable(_msgSender()).call{
value: amount
}("");
Expand Down Expand Up @@ -47,7 +47,7 @@ contract TTUV2Native is TokenTableUnlockerV2 {
];
if (deltaAmountClaimable != 0) {
$.pendingAmountClaimableForCancelledActuals[actualId] = 0;
// slither-disable-next-line
// slither-disable-next-line arbitrary-send-eth
(bool sent, bytes memory data) = payable(recipient).call{
value: deltaAmountClaimable
}("");
Expand Down Expand Up @@ -78,7 +78,7 @@ contract TTUV2Native is TokenTableUnlockerV2 {
) = calculateAmountClaimable(actualId);
Actual storage actual = $.actuals[actualId];
actual.amountClaimed = updatedAmountClaimed;
// slither-disable-next-line
// slither-disable-next-line arbitrary-send-eth
(bool sent, bytes memory data) = payable(recipient).call{
value: deltaAmountClaimable
}("");
Expand Down

0 comments on commit aea7082

Please sign in to comment.