diff --git a/packages/hardhat/contracts/facets/WarpLink.sol b/packages/hardhat/contracts/facets/WarpLink.sol index 8f3ae082..5eedf607 100644 --- a/packages/hardhat/contracts/facets/WarpLink.sol +++ b/packages/hardhat/contracts/facets/WarpLink.sol @@ -927,6 +927,10 @@ contract WarpLink is IWarpLink, IStargateReceiver, WarpLinkCommandTypes { amountOut ); + if (amountOut == 0) { + revert InsufficientOutputAmount(); + } + // Deliver tokens if (tokenOut == address(0)) { payable(params.recipient).transfer(amountOut);