Skip to content

Commit

Permalink
mplx fees and revs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwes committed Nov 19, 2024
1 parent 06575b3 commit c591eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/projects/metaplex/core/ez_metaplex_metrics.sql
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ with date_spine as (

SELECT
ds.date
, coalesce(revenue.revenue_usd * 2, 0) as fees
, coalesce(revenue.revenue_usd, 0) as revenue -- Fees are paid continuously, but revenue is only recognized at the time of the buyback
, coalesce(revenue.revenue_usd, 0) as fees
, coalesce(revenue.revenue_usd, 0) / 2 as revenue -- Fees are paid continuously, but revenue is only recognized at the time of the buyback
, coalesce(buybacks.buyback, 0) as buyback -- 50% of fees (ie all of revenue) go to buybacks but buybacks are done in batches, at the time of the buyback
, coalesce(buybacks.buyback_native, 0) as buyback_native
, coalesce(mints.daily_mints, 0) as daily_mints
Expand Down

0 comments on commit c591eb1

Please sign in to comment.