File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/explorer/lib/explorer/chain/csv_export Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ defmodule Explorer.Chain.CSVExport.AddressTransactionCsvExporter do
7979 |> Stream . map ( fn transaction ->
8080 { opening_price , closing_price } = date_to_prices [ DateTime . to_date ( Transaction . block_timestamp ( transaction ) ) ]
8181 price = exchange_rate . usd_value || closing_price || opening_price || Decimal . new ( "0" )
82- total_value_usd = Wei . mult ( transaction . value , price )
82+ total_value_usd = transaction . value |> Wei . to ( :ether ) |> Decimal . mult ( price )
8383 [
8484 to_string ( transaction . hash ) ,
8585 transaction . block_number ,
@@ -91,7 +91,7 @@ defmodule Explorer.Chain.CSVExport.AddressTransactionCsvExporter do
9191 Address . checksum ( transaction . created_contract_address_hash ) ,
9292 type ( transaction , address_hash ) ,
9393 Wei . to ( transaction . value , :wei ) ,
94- Wei . to ( total_value_usd , :ether ) ,
94+ total_value_usd ,
9595 fee ( transaction ) ,
9696 transaction . status ,
9797 transaction . error ,
You can’t perform that action at this time.
0 commit comments