Fixing movePosition new amount
This commit is contained in:
1 parent
f516e3e1da
commit
08a48ec6b1
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user