Skip to content

Commit

Permalink
C911: NEAR (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMelendez01 authored Jul 31, 2024
1 parent b27a8b1 commit 93a5ab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/p2p/p2p_token_transfers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ with
fact_token_transfers_id as index,
from_address,
to_address,
coalesce(amount_raw_precise/pow(10, decimals), 0) as amount,
coalesce(amount_raw_precise/pow(10, t5.decimals), 0) as amount,
t1.contract_address as token_address,
coalesce((amount_raw_precise/pow(10, decimals)) * price, 0) as amount_usd
coalesce((amount_raw_precise/pow(10, t5.decimals)) * price, 0) as amount_usd
from near_flipside.core.ez_token_transfers t1
inner join distinct_peer_address t2 on lower(to_address) = lower(t2.address)
inner join distinct_peer_address t3 on lower(from_address) = lower(t3.address)
Expand Down

0 comments on commit 93a5ab5

Please sign in to comment.