@@ -110,7 +110,6 @@ async function calculateGrossReturns(options: FetchOptions): Promise<number> {
110110
111111// Solana fetch function
112112const fetchSolana = async ( options : FetchOptions ) => {
113- const dailyFees = options . createBalances ( ) ;
114113 const dailyRevenue = options . createBalances ( ) ;
115114
116115 // Get manager fees from Dune SQL (using the working query)
@@ -138,12 +137,19 @@ const fetchSolana = async (options: FetchOptions) => {
138137 } ) ;
139138 }
140139
140+ // add revenue to fees
141+ const dailyFees = dailyRevenue . clone ( )
142+ const dailySupplySideRevenue = options . createBalances ( )
143+
141144 const grossReturns = await calculateGrossReturns ( options ) ;
142145 dailyFees . addUSDValue ( grossReturns ) ;
146+ dailySupplySideRevenue . addUSDValue ( grossReturns ) ;
143147
144148 return {
145149 dailyFees,
146- dailyRevenue
150+ dailyRevenue,
151+ dailySupplySideRevenue,
152+ dailyProtocolRevenue : dailyRevenue ,
147153 } ;
148154} ;
149155
@@ -152,7 +158,9 @@ const curatorExport = getCuratorExport(curatorConfig);
152158
153159const methodology = {
154160 Fees : "Daily value generated for depositors from vault operations during the specified time period (includes both gains and losses)" ,
155- Revenue : "Daily performance fees claimed by the Gauntlet manager during the specified time period"
161+ Revenue : "Daily performance fees claimed by the Gauntlet manager during the specified time period" ,
162+ ProtocolRevenue : "Daily performance fees claimed by the Gauntlet manager during the specified time period" ,
163+ SupplySideRevenue : "Amount of yields distributed to supply-side depositors." ,
156164}
157165
158166const adapter : SimpleAdapter = {
0 commit comments