Add min
This commit is contained in:
@@ -11,6 +11,10 @@ Turnstile::~Turnstile() {
|
|||||||
|
|
||||||
QList<double> Turnstile::splitAmount(double amount, int parts) {
|
QList<double> Turnstile::splitAmount(double amount, int parts) {
|
||||||
QList<double> amounts;
|
QList<double> amounts;
|
||||||
|
// Need at least 0.0004 ZEC for this
|
||||||
|
if (amount < 0.0004)
|
||||||
|
return amounts;
|
||||||
|
|
||||||
fillAmounts(amounts, amount, parts);
|
fillAmounts(amounts, amount, parts);
|
||||||
|
|
||||||
// Ensure they all add up!
|
// Ensure they all add up!
|
||||||
|
|||||||
Reference in New Issue
Block a user