fix: percentage division
This commit is contained in:
parent
40791cb4cd
commit
4d8c8c4b62
1 changed files with 2 additions and 2 deletions
|
|
@ -364,12 +364,12 @@ function plugins (settings, deviceId) {
|
|||
|
||||
const rate = rawRate.div(cashInCommission)
|
||||
|
||||
const lowBalanceMargin = new BN(1.05)
|
||||
const lowBalanceMargin = new BN(0.95)
|
||||
|
||||
const cryptoRec = coinUtils.getCryptoCurrency(cryptoCode)
|
||||
const unitScale = cryptoRec.unitScale
|
||||
const shiftedRate = rate.shiftedBy(-unitScale)
|
||||
const fiatTransferBalance = balance.times(shiftedRate).div(lowBalanceMargin)
|
||||
const fiatTransferBalance = balance.times(shiftedRate).times(lowBalanceMargin)
|
||||
|
||||
return {
|
||||
timestamp: balanceRec.timestamp,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue