diff --git a/foundry/src/TychoRouter.sol b/foundry/src/TychoRouter.sol index e4c5fd5..50f7f1e 100644 --- a/foundry/src/TychoRouter.sol +++ b/foundry/src/TychoRouter.sol @@ -432,7 +432,9 @@ contract TychoRouter is AccessControl, Dispatcher, Pausable, ReentrancyGuard { /** * @dev Allows this contract to receive native token */ - receive() external payable {} + receive() external payable { + require(msg.sender.code.length != 0); + } /** * @dev Called by UniswapV3 pool when swapping on it.