Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tburm committed Dec 5, 2024
1 parent ef7f69e commit dea66dc
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ with trades as (
token,
{{ convert_wei('leveraged_token_amount') }} as leveraged_token_amount,
{{ convert_wei('base_asset_amount') }} as base_asset_amount
from prod_raw_optimism_mainnet.tlx_lt_minted_optimism_mainnet
from {{ ref('tlx_lt_minted_optimism_mainnet') }}
union all
select
id,
Expand All @@ -34,9 +34,10 @@ with trades as (
event_name,
account,
token,
{{ convert_wei('leveraged_token_amount') }} * -1 as leveraged_token_amount,
{{ convert_wei('leveraged_token_amount') }}
* -1 as leveraged_token_amount,
{{ convert_wei('base_asset_amount') }} * -1 as base_asset_amount
from prod_raw_optimism_mainnet.tlx_lt_redeemed_optimism_mainnet
from {{ ref('tlx_lt_redeemed_optimism_mainnet') }}
) as a
),

Expand All @@ -47,7 +48,7 @@ prices as (
last(price)
over (partition by market, block_number order by id)
as price
from prod_optimism_mainnet.fct_v2_trades_optimism_mainnet
from {{ ref('fct_v2_trades_optimism_mainnet') }}
)

select
Expand Down

0 comments on commit dea66dc

Please sign in to comment.