Skip to content

Commit

Permalink
Stablecoins: adding updatine timezone for mantle (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMelendez01 authored Nov 22, 2024
1 parent 0f29e9d commit 2af8b10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion macros/decode/token_transfer_events.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% macro token_transfer_events(chain) %}
{% if chain in ('mantle') %}
select
block_time as block_timestamp
CONVERT_TIMEZONE('UTC', block_time) as block_timestamp
, block_date as raw_date
, block_number
, block_hash_hex as block_hash
Expand Down
4 changes: 2 additions & 2 deletions models/staging/mantle/fact_mantle_transactions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ with
select
hash_hex as tx_hash,
coalesce(to_hex, t.from_hex) as contract_address,
block_time as block_timestamp,
block_date raw_date,
CONVERT_TIMEZONE('UTC', block_time) as block_timestamp,
block_timestamp::date raw_date,
t.from_hex as from_address,
l1_fee / 1E18 + gas_price * gas_used/1E18 as tx_fee,
(tx_fee * price) gas_usd,
Expand Down

0 comments on commit 2af8b10

Please sign in to comment.