Skip to content

Commit

Permalink
add slither-disable for arbitrary-send-erc20 on voucher SC
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec committed Jun 10, 2024
1 parent 147329d commit 1b2ae89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/beacon/Voucher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ contract Voucher is Initializable, IVoucher {
if (sponsoredAmount != dealPrice) {
// Transfer non-sponsored amount from the iExec account of the
// requester to the iExec account of the voucher
//slither-disable-start arbitrary-send-erc20
if (
!IERC20(iexecPoco).transferFrom(
requestOrder.requester,
Expand All @@ -444,6 +445,7 @@ contract Voucher is Initializable, IVoucher {
// SRLC
revert("Voucher: Transfer of non-sponsored amount failed");
}
//slither-disable-end arbitrary-send-erc20
}
}
}

0 comments on commit 1b2ae89

Please sign in to comment.