Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stablecoin DQ Issue: Celo #423

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading