fix: disable slither for native withdraw
This commit is contained in:
@@ -103,6 +103,7 @@ contract TychoRouter is AccessControl {
|
||||
uint256 amount = address(this).balance;
|
||||
if (amount > 0) {
|
||||
emit Withdrawal(address(0), amount, receiver);
|
||||
// slither-disable-next-line arbitrary-send-eth
|
||||
bool success = payable(receiver).send(amount);
|
||||
if (!success) revert TychoRouter__WithdrawalFailed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user