Skip to content

Commit 6a103c4

Browse files
authored
fix: synfutures fees and perp volume (#4534)
* fix: synfutures fees and perp volume * smol fix * smol fix * fix typo
1 parent 42d6857 commit 6a103c4

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

dexs/synfutures-v3/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ const fetch = async (timestamp: number, _: any, options: FetchOptions) => {
6262
const adapter: SimpleAdapter = {
6363
version: 1,
6464
adapter: {
65-
[CHAIN.BLAST]: {
66-
fetch,
67-
start: '2024-02-29',
68-
},
65+
// [CHAIN.BLAST]: {
66+
// fetch,
67+
// start: '2024-02-29',
68+
// }, sunset -> '2025-04-11
6969
[CHAIN.BASE]: {
7070
fetch,
7171
start: '2024-06-26',

fees/synfutures-v3/index.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,21 @@ const graphs = (graphUrls: ChainEndpoints) => {
5353
const dailyFee = createBalances();
5454
const dailyMakerRebates = createBalances();
5555
const dailyFeesToLP = createBalances();
56-
const dailyProcotolFees = createBalances();
56+
const dailyProtocolRevenue = createBalances();
5757

5858
const graphRes = await request(graphUrls[chain], graphQuery);
5959

6060
for (const record of graphRes.dailyQuoteDatas) {
6161
dailyFee.addToken(record.quote.id, convertDecimals(Number(record.liquidityFee) + Number(record.protocolFee), record.quote.decimals))
6262
dailyMakerRebates.addToken(record.quote.id, convertDecimals(Number(record.liquidityFee) - Number(record.poolFee), record.quote.decimals))
6363
dailyFeesToLP.addToken(record.quote.id, convertDecimals(Number(record.poolFee), record.quote.decimals))
64-
dailyProcotolFees.addToken(record.quote.id, convertDecimals(Number(record.protocolFee), record.quote.decimals))
64+
dailyProtocolRevenue.addToken(record.quote.id, convertDecimals(Number(record.protocolFee), record.quote.decimals))
6565
}
6666

6767
return {
6868
dailyFees: dailyFee,
69-
dailyMakerRebates: dailyMakerRebates,
70-
dailyFeesToLp: dailyFeesToLP,
71-
dailyProcotolFees: dailyProcotolFees,
69+
dailyRevenue: dailyProtocolRevenue,
70+
dailyProtocolRevenue,
7271
};
7372
};
7473
return fetch
@@ -79,10 +78,10 @@ const adapter: Adapter = {
7978
version: 2,
8079
methodology,
8180
adapter: {
82-
[CHAIN.BLAST]: {
83-
fetch: graphs(endpoints),
84-
start: '2024-02-27',
85-
},
81+
// [CHAIN.BLAST]: {
82+
// fetch: graphs(endpoints),
83+
// start: '2024-02-27',
84+
// }, sunset -> '2025-04-11
8685
[CHAIN.BASE]: {
8786
fetch: graphs(endpoints),
8887
start: '2024-06-26',

0 commit comments

Comments
 (0)