Skip to content

Commit

Permalink
Fixed Date Raydium
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny77D committed Oct 25, 2024
1 parent f1432f8 commit 06bf9b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/projects/raydium/core/ez_raydium_metrics.sql
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ with buyback_from_pair as (
)

select
coalesce(v.day, b.day) as date
coalesce(price_data.day, v.day, bfp.date, b.day) as date
, v.trading_volume

, bfp.buyback / 0.12 + coalesce(c.amount_raw * pc.price, 0) as fees -- trading fee + pool creation
Expand Down Expand Up @@ -172,7 +172,7 @@ left join SOLANA_FLIPSIDE.PRICE.EZ_PRICES_HOURLY pc on pc.token_address = c.toke
AND pc.hour::date >= date('2022-04-22')
{% endif %}

where coalesce(v.day, b.day) < to_date(sysdate())
where coalesce(v.day, bfp.date, b.day) < to_date(sysdate())
order by 1 desc


Expand Down

0 comments on commit 06bf9b5

Please sign in to comment.