fix: Conscious slither silencing

- This arbitrary sender should be same, since the sender is always set to be msg.sender from within the contract (no calldata can be sent specifying otherwise). This is just used to circumvent msg.sender being the pool/protocol during callbacks.
This commit is contained in:
TAMARA LIPOWSKI
2025-04-09 15:10:02 -04:00
committed by Diana Carvalho
parent 61c0163bee
commit 4a20fa6215

View File

@@ -40,6 +40,7 @@ contract ExecutorTransferMethods {
if (method == TransferMethod.TRANSFER) {
tokenIn.safeTransfer(receiver, amount);
} else if (method == TransferMethod.TRANSFERFROM) {
// slither-disable-next-line arbitrary-send-erc20
tokenIn.safeTransferFrom(sender, receiver, amount);
} else if (method == TransferMethod.TRANSFERPERMIT2) {
// Permit2.permit is already called from the TychoRouter