mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-11-17 00:07:49 +00:00
fix adjusting amounts by smallest volume increments
This commit is contained in:
parent
4749d286da
commit
0f7ace7326
1 changed files with 0 additions and 1 deletions
|
@ -168,7 +168,6 @@ public class CoinUtil {
|
||||||
// If we are above our trade limit we reduce the amount by the smallestUnitForAmount
|
// If we are above our trade limit we reduce the amount by the smallestUnitForAmount
|
||||||
BigInteger smallestUnitForAmountUnadjusted = price.getAmountByVolume(smallestUnitForVolume);
|
BigInteger smallestUnitForAmountUnadjusted = price.getAmountByVolume(smallestUnitForVolume);
|
||||||
while (adjustedAmount > maxTradeLimit) {
|
while (adjustedAmount > maxTradeLimit) {
|
||||||
adjustedAmount -= smallestUnitForAmount.longValueExact();
|
|
||||||
adjustedAmount -= smallestUnitForAmountUnadjusted.longValueExact();
|
adjustedAmount -= smallestUnitForAmountUnadjusted.longValueExact();
|
||||||
}
|
}
|
||||||
adjustedAmount = Math.max(minTradeAmount, adjustedAmount);
|
adjustedAmount = Math.max(minTradeAmount, adjustedAmount);
|
||||||
|
|
Loading…
Reference in a new issue