Skip to content

Commit

Permalink
correct lint --fix blunders
Browse files Browse the repository at this point in the history
  • Loading branch information
fleupold committed Jan 8, 2025
1 parent 1d25064 commit d5d485c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .sqlfluff
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[sqlfluff]
dialect = ansi
exclude_rules = L046, RF02, RF06, CP02, ST10, LT14, RF05
exclude_rules = L046, RF02, RF06, CP02, ST10, LT14, RF05, CV10
max_line_length = 0
4 changes: 2 additions & 2 deletions cowprotocol/revenue/daily_revenue_per_chain_4514883.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ select
from prep
cross join
unnest(
array["Limit", "Market", "UI Fee", "Partner Fee Share"],
array['Limit', 'Market', 'UI Fee', 'Partner Fee Share'],
array["Limit", "Market", "UI Fee", "Partner Fee Share"]
)
) as t (type, value) -- noqa: AL05
order by 1 desc
12 changes: 6 additions & 6 deletions cowprotocol/revenue/monthly_dao_revenue_3700123.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
with cow_mainnet as (
select
date_trunc('month', block_time) as date_month,
coalesce(sum('Limit'), 0) + coalesce(sum('Market'), 0) + coalesce(sum('UI Fee'), 0) as protocol_fee,
coalesce(sum('Partner Fee Share'), 0) as partner_fee_share
coalesce(sum("Limit"), 0) + coalesce(sum("Market"), 0) + coalesce(sum("UI Fee"), 0) as protocol_fee,
coalesce(sum("Partner Fee Share"), 0) as partner_fee_share
from "query_4217030(blockchain='ethereum',ui_fee_recipient='0x0000000000000000000000000000000000000000')"
group by 1
),

cow_gnosis as (
select
date_trunc('month', block_time) as date_month,
(coalesce(sum('Limit'), 0) + coalesce(sum('Market'), 0) + coalesce(sum('UI Fee'), 0)) as protocol_fee,
coalesce(sum('Partner Fee Share'), 0) as partner_fee_share
(coalesce(sum("Limit"), 0) + coalesce(sum("Market"), 0) + coalesce(sum("UI Fee"), 0)) as protocol_fee,
coalesce(sum("Partner Fee Share"), 0) as partner_fee_share
from "query_4217030(blockchain='arbitrum',ui_fee_recipient='0x6b3214fD11dc91De14718DeE98Ef59bCbFcfB432')"
group by 1
),

cow_arbitrum as (
select
date_trunc('month', block_time) as date_month,
coalesce(sum('Limit'), 0) + coalesce(sum('Market'), 0) + coalesce(sum('UI Fee'), 0) as protocol_fee,
coalesce(sum('Partner Fee Share'), 0) as partner_fee_share
coalesce(sum("Limit"), 0) + coalesce(sum("Market"), 0) + coalesce(sum("UI Fee"), 0) as protocol_fee,
coalesce(sum("Partner Fee Share"), 0) as partner_fee_share
from "query_4217030(blockchain='arbitrum',ui_fee_recipient='0x451100Ffc88884bde4ce87adC8bB6c7Df7fACccd')"
group by 1
),
Expand Down

0 comments on commit d5d485c

Please sign in to comment.