Fix display of loan origination fee

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-08-26 19:47:00 +02:00
parent 0775176122
commit 30b7226fb5
1 changed files with 2 additions and 8 deletions

View File

@ -60,7 +60,6 @@ const TradeHistoryTable = ({
block_datetime,
signature,
swap_in_amount,
swap_in_loan,
swap_in_loan_origination_fee,
swap_in_price_usd,
swap_in_symbol,
@ -71,16 +70,11 @@ const TradeHistoryTable = ({
swap_out_symbol,
} = h
const borrowAmount =
swap_in_loan > 0
? `${trimDecimals(
swap_in_loan,
countLeadingZeros(swap_in_loan) + 2
)} ${swap_in_symbol}`
: loan > 0
loan > 0
? `${trimDecimals(
loan,
countLeadingZeros(loan) + 2
)} ${swap_out_symbol}`
)} ${swap_in_symbol}`
: 0
const borrowFee =
swap_in_loan_origination_fee > 0