From ca9fcd754dd2d91f6cf241472db234d09d0bfe5b Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Wed, 24 Oct 2018 22:44:45 -0700 Subject: [PATCH] Add min --- src/turnstile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/turnstile.cpp b/src/turnstile.cpp index 349db59..a4f8f94 100644 --- a/src/turnstile.cpp +++ b/src/turnstile.cpp @@ -11,6 +11,10 @@ Turnstile::~Turnstile() { QList Turnstile::splitAmount(double amount, int parts) { QList amounts; + // Need at least 0.0004 ZEC for this + if (amount < 0.0004) + return amounts; + fillAmounts(amounts, amount, parts); // Ensure they all add up!