fix: cash-out fixed fee name

This commit is contained in:
Rafael 2024-12-19 12:12:59 +00:00
parent 01b8981bb7
commit 146c173aeb
2 changed files with 5 additions and 3 deletions

View file

@ -40,7 +40,7 @@ function massage (tx, pi) {
: {
cryptoAtoms: new BN(r.cryptoAtoms),
fiat: new BN(r.fiat),
fixedFee: new BN(r.fixedFee),
fixedFee: r.cashOutFee ? new BN(r.cashOutFee) : null,
rawTickerPrice: r.rawTickerPrice ? new BN(r.rawTickerPrice) : null,
commissionPercentage: new BN(r.commissionPercentage)
}
@ -51,7 +51,9 @@ function massage (tx, pi) {
const mapper = _.flow(
transformDates,
mapBN,
_.unset('dirty'))
_.unset('dirty'),
_.unset('cashOutFee')
)
return mapper(tx)
}