Skip to content

Commit 28419ee

Browse files
committed
cap smol fix
1 parent fede140 commit 28419ee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

fees/cap/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@ const fetch = async (options: FetchOptions) => {
103103
const dailyRevenue = options.createBalances();
104104
dailyRevenue.addBalances(protocolFees, METRIC.PROTOCOL_FEES);
105105
dailyRevenue.addBalances(capUsdMintFees, METRIC.MINT_REDEEM_FEES);
106-
107-
const dailySupplySideRevenue = dailyFees.clone();
108-
dailySupplySideRevenue.subtract(dailyRevenue);
106+
107+
const dailySupplySideRevenue = options.createBalances();
108+
dailySupplySideRevenue.addBalances(minterFees, METRIC.ASSETS_YIELDS);
109+
dailySupplySideRevenue.addBalances(restakerFees, METRIC.STAKING_REWARDS);
110+
dailySupplySideRevenue.addBalances(insuranceFundFees, METRICS.INSURANCE_FUND_FEES);
109111

110112
return {
111113
dailyFees,

0 commit comments

Comments
 (0)