Fixing movePosition new amount

This commit is contained in:
Matias Benitez committed 2018-07-06 11:24:58 -03:00
1 parent f516e3e1da
commit 08a48ec6b1
1 file changed
+1 -1
+1 -1
View File
@@ -1089,7 +1089,7 @@
let newAmountB;
if (pPosition.type === "buy") {
newAmountB = Number((pPosition.amountA / pNewRate).toFixed(8));
newAmountB = Number(parseFloat(pPosition.amountA / pNewRate).toFixed(8));
} else {
newAmountB = pPosition.amountB;
}