diff --git a/core/src/main/java/bisq/core/btc/wallet/BsqWalletV2.java b/core/src/main/java/bisq/core/btc/wallet/BsqWalletV2.java index cd573859e4..4d1db30da5 100644 --- a/core/src/main/java/bisq/core/btc/wallet/BsqWalletV2.java +++ b/core/src/main/java/bisq/core/btc/wallet/BsqWalletV2.java @@ -47,6 +47,9 @@ public TransactionBroadcast sendBsq(Address receiverAddress, bsqTx.addOutput(receiverAmount, receiverAddress); CoinSelection selection = bsqCoinSelector.select(receiverAmount, bsqWallet.calculateAllSpendCandidates()); + if (selection.valueGathered.isLessThan(receiverAmount)) { + throw new InsufficientMoneyException(receiverAmount, "Wallet doesn't have " + receiverAmount + " BSQ."); + } selection.gathered.forEach(bsqTx::addInput); Coin change = bsqCoinSelector.getChange(receiverAmount, selection);