Skip to content

Commit

Permalink
revenue fees fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ppclunghe committed Nov 25, 2024
1 parent 7351628 commit cadf20a
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ protocol_fee_distribution AS (
0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84 AS token,
lido_rewards AS total,
protocol_fee.points AS protocol_fee,
protocol_fee_distribution.insurance_points AS insurance_fee,
protocol_fee_distribution.operators_points AS operators_fee,
protocol_fee_distribution.treasury_points AS treasury_fee,
--protocol_fee_distribution.insurance_points AS insurance_fee,
--protocol_fee_distribution.operators_points AS operators_fee,
--protocol_fee_distribution.treasury_points AS treasury_fee,
(1 - protocol_fee.points)*lido_rewards AS depositors_revenue,
protocol_fee.points*protocol_fee_distribution.treasury_points*lido_rewards AS treasury_revenue,
protocol_fee.points*protocol_fee_distribution.insurance_points*lido_rewards AS insurance_revenue,
Expand All @@ -97,9 +97,6 @@ protocol_fee_distribution AS (
0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84 AS token,
oracle_txns.treasury_revenue + oracle_txns.operators_revenue + oracle_txns.insurance_revenue AS total,
protocol_fee.points AS protocol_fee,
protocol_fee_distribution.insurance_points AS insurance_fee,
protocol_fee_distribution.operators_points AS operators_fee,
protocol_fee_distribution.treasury_points AS treasury_fee,
10*(1 - protocol_fee.points)*(oracle_txns.treasury_revenue + oracle_txns.operators_revenue + oracle_txns.insurance_revenue) AS depositors_revenue,
oracle_txns.treasury_revenue AS treasury_revenue,
oracle_txns.insurance_revenue AS insurance_revenue,
Expand Down

0 comments on commit cadf20a

Please sign in to comment.