fix: add 2 decimal places to commission
This commit is contained in:
parent
a29f3fc13c
commit
0db359afa3
1 changed files with 2 additions and 1 deletions
|
|
@ -131,8 +131,9 @@ const DetailsRow = ({ it: tx, timezone }) => {
|
||||||
)
|
)
|
||||||
|
|
||||||
const commission = BigNumber(tx.profit).toFixed(2, 1) // ROUND_DOWN
|
const commission = BigNumber(tx.profit).toFixed(2, 1) // ROUND_DOWN
|
||||||
const commissionPercentage =
|
const commissionPercentage = BigNumber(
|
||||||
Number.parseFloat(tx.commissionPercentage, 2) * 100
|
Number.parseFloat(tx.commissionPercentage, 2) * 100
|
||||||
|
).toFixed(2, 1) // ROUND_DOWN
|
||||||
const cashInFee = isCashIn ? Number.parseFloat(tx.cashInFee) : 0
|
const cashInFee = isCashIn ? Number.parseFloat(tx.cashInFee) : 0
|
||||||
const fiat = BigNumber(tx.fiat)
|
const fiat = BigNumber(tx.fiat)
|
||||||
.minus(cashInFee)
|
.minus(cashInFee)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue