fix adjusting amounts by smallest volume increments
This commit is contained in:
parent
4749d286da
commit
0f7ace7326
@ -168,7 +168,6 @@ public class CoinUtil {
|
||||
// If we are above our trade limit we reduce the amount by the smallestUnitForAmount
|
||||
BigInteger smallestUnitForAmountUnadjusted = price.getAmountByVolume(smallestUnitForVolume);
|
||||
while (adjustedAmount > maxTradeLimit) {
|
||||
adjustedAmount -= smallestUnitForAmount.longValueExact();
|
||||
adjustedAmount -= smallestUnitForAmountUnadjusted.longValueExact();
|
||||
}
|
||||
adjustedAmount = Math.max(minTradeAmount, adjustedAmount);
|
||||
|
Loading…
Reference in New Issue
Block a user