fix: use send for native transfer

This commit is contained in:
royvardhan
2025-01-22 22:01:30 +05:30
parent 0c05874477
commit c6c0ddd498

View File

@@ -102,7 +102,7 @@ contract TychoRouter is AccessControl {
if (amount > 0) { if (amount > 0) {
emit Withdrawal(address(0), amount); emit Withdrawal(address(0), amount);
// slither-disable-next-line arbitrary-send-eth // slither-disable-next-line arbitrary-send-eth
(bool success,) = receiver.call{value: amount}(""); bool success = payable(receiver).send(amount);
if (!success) revert TychoRouter__WithdrawalFailed(); if (!success) revert TychoRouter__WithdrawalFailed();
} }
} }