Skip to content

Commit

Permalink
Addressing sqlfluff issues
Browse files Browse the repository at this point in the history
  • Loading branch information
olgafetisova committed Sep 9, 2024
1 parent a3ca48f commit d8645ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cow_amm/cow_amm_lp_and_tvl_4047078.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cow_amm_pool as (
-- per day lp token total supply changes of the CoW AMM pool by looking at burn/mint events
lp_balance_delta as (
select
date(evt_block_time) as day,
date(evt_block_time) as "day",
sum(case when "from" = 0x0000000000000000000000000000000000000000 then value else -value end) as lp_supply
from erc20_ethereum.evt_transfer
where
Expand Down Expand Up @@ -75,7 +75,7 @@ get_tvl as (
sum(amount * price_close) as total_tvl
from (
select
date(evt_block_time) as day,
date(evt_block_time) as "day",
symbol,
-(value / pow(10, decimals)) as amount
from erc20_ethereum.evt_transfer as a left join tokens.erc20 as b on a.contract_address = b.contract_address and blockchain in (select blockchain from cow_amm_pool)
Expand All @@ -88,7 +88,7 @@ get_tvl as (

union all
select
date(evt_block_time) as day,
date(evt_block_time) as "day",
symbol,
(value / pow(10, decimals)) as amount
from erc20_ethereum.evt_transfer as a left join tokens.erc20 as b on a.contract_address = b.contract_address and blockchain in (select blockchain from cow_amm_pool)
Expand Down

0 comments on commit d8645ae

Please sign in to comment.