diff --git a/skipper-go/contracts/src/Multihop.sol b/skipper-go/contracts/src/Multihop.sol index 6e86d6e..bb8e4c2 100644 --- a/skipper-go/contracts/src/Multihop.sol +++ b/skipper-go/contracts/src/Multihop.sol @@ -39,7 +39,7 @@ contract Multihop is Ownable { ) external onlyOwner { // Get the initial balance of the token uint256 initialBalance = IERC20(fromToken).balanceOf(address(this)); - + require(initialBalance >= fromAmount, "Insufficient contract balance for the swap"); if (fromAmount > initialBalance) { fromAmount = initialBalance; }