Skip to content

Commit 8d18d33

Browse files
committed
track superstack
1 parent 5faa288 commit 8d18d33

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

fees/superstack.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { CHAIN } from '../helpers/chains'
2+
import { FetchOptions, SimpleAdapter } from '../adapters/types'
3+
import { fetchBuilderCodeRevenue } from '../helpers/hyperliquid'
4+
5+
const APP_BUILDER_ADD = '0xCDb943570BcB48a6F1d3228d0175598fEA19E87B'
6+
7+
const fetch = async (_a: any, _b: any, options: FetchOptions) => {
8+
const { dailyVolume, dailyFees, dailyRevenue, dailyProtocolRevenue } = await fetchBuilderCodeRevenue({ options, builder_address: APP_BUILDER_ADD });
9+
10+
return {
11+
dailyVolume,
12+
dailyFees,
13+
dailyRevenue,
14+
dailyProtocolRevenue,
15+
}
16+
}
17+
18+
const methodology = {
19+
Fees: 'Builder code revenue from Hyperliquid Perps Trades.',
20+
Revenue: 'Builder code revenue from Hyperliquid Perps Trades.',
21+
ProtocolRevenue: 'Builder code revenue from Hyperliquid Perps Trades.',
22+
}
23+
24+
const adapter: SimpleAdapter = {
25+
fetch,
26+
chains: [CHAIN.HYPERLIQUID],
27+
start: '2025-10-28',
28+
methodology,
29+
doublecounted: true,
30+
}
31+
32+
export default adapter;
33+

0 commit comments

Comments
 (0)