fix sign
This commit is contained in:
parent
37e43d9c10
commit
968862076f
|
@ -1032,7 +1032,7 @@ class Abstract_Wallet(PrintError):
|
|||
date = timestamp_to_datetime(timestamp)
|
||||
fiat_value = self.get_fiat_value(tx_hash, fx.ccy)
|
||||
fiat_default = fiat_value is None
|
||||
fiat_value = - fiat_value if fiat_value is not None else value / Decimal(COIN) * self.price_at_timestamp(tx_hash, fx.timestamp_rate)
|
||||
fiat_value = fiat_value if fiat_value is not None else value / Decimal(COIN) * self.price_at_timestamp(tx_hash, fx.timestamp_rate)
|
||||
item['fiat_value'] = Fiat(fiat_value, fx.ccy)
|
||||
item['fiat_default'] = fiat_default
|
||||
if value < 0:
|
||||
|
|
Loading…
Reference in New Issue