Skip to content

Commit

Permalink
Stablecoin DQ Issue: Celo (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMelendez01 authored Aug 20, 2024
1 parent 1b29524 commit ac937b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions macros/stablecoins/agg_chain_stablecoin_transfers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,12 @@
from {{ ref("fact_"~chain~"_stablecoin_premint_addresses") }}
)
as is_burn,
amount,
amount / pow(10, num_decimals) as amount,
case
when is_mint then amount when is_burn then -1 * amount else 0
when is_mint then amount / pow(10, num_decimals) when is_burn then -1 * amount / pow(10, num_decimals) else 0
end as inflow,
case
when not is_mint and not is_burn then amount else 0
when not is_mint and not is_burn then amount / pow(10, num_decimals) else 0
end as transfer_volume,
t1.contract_address,
contracts.symbol
Expand Down

0 comments on commit ac937b8

Please sign in to comment.