Skip to content

Conversation

paveltimosh
Copy link

No description provided.

@llamabutler
Copy link

The dhedge adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees dhedge

🦙 Running DHEDGE adapter 🦙
---------------------------------------------------
GRAPH_API_KEY env variable is not set, using the default api key
Start Date:	Wed, 27 Aug 2025 08:22:20 GMT
End Date:	Thu, 28 Aug 2025 08:22:20 GMT
---------------------------------------------------

Error: Error fetching data for chain polygon: auth error: payment required for subsequent requests for this API key: {"response":{"errors":[{"message":"auth error: payment required for subsequent requests for this API key"}],"status":200,"headers":{}},"request":{"query":"\n      query managerFeeMinteds($startTimestamp: BigInt!, $endTimestamp: BigInt!, $first: Int!, $skip: Int!) {\n        managerFeeMinteds(\n          where: { blockTimestamp_gte: $startTimestamp, blockTimestamp_lte: $endTimestamp },\n          first: $first, skip: $skip, orderBy: blockTimestamp, orderDirection: desc\n        ) { managerFee, daoFee, tokenPriceAtFeeMint, manager }\n      }","variables":{"startTimestamp":"1756282939","endTimestamp":"1756369340","first":1000,"skip":0}}}
    at fetchHistoricalFees (/home/runner/work/dimension-adapters/dimension-adapters/fees/dhedge/index.ts:94:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fetch (/home/runner/work/dimension-adapters/dimension-adapters/fees/dhedge/index.ts:150:34)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:206:18)
    at async Promise.all (index 1)
    at async _runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:159:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:69:24 {
  chain: 'polygon'
}

@llamabutler
Copy link

The toros adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees toros

🦙 Running TOROS adapter 🦙
---------------------------------------------------
GRAPH_API_KEY env variable is not set, using the default api key
Start Date:	Wed, 27 Aug 2025 08:22:29 GMT
End Date:	Thu, 28 Aug 2025 08:22:29 GMT
---------------------------------------------------

Error: Error fetching data for chain optimism: auth error: payment required for subsequent requests for this API key: {"response":{"errors":[{"message":"auth error: payment required for subsequent requests for this API key"}],"status":200,"headers":{}},"request":{"query":"\n      query managerFeeMinteds($manager: Bytes!, $startTimestamp: BigInt!, $endTimestamp: BigInt!, $first: Int!, $skip: Int!) {\n        managerFeeMinteds(\n          where: { manager: $manager, managerFee_not: 0, blockTimestamp_gte: $startTimestamp, blockTimestamp_lte: $endTimestamp },\n          first: $first, skip: $skip, orderBy: blockTimestamp, orderDirection: desc\n        ) { managerFee, tokenPriceAtFeeMint, pool, manager, block }\n      }","variables":{"manager":"0x813123a13d01d3f07d434673fdc89cbba523f14d","startTimestamp":"1756282948","endTimestamp":"1756369349","first":1000,"skip":0}}}
    at fetchHistoricalFees (/home/runner/work/dimension-adapters/dimension-adapters/fees/toros/index.ts:100:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fetch (/home/runner/work/dimension-adapters/dimension-adapters/fees/toros/index.ts:140:34)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:206:18)
    at async Promise.all (index 0)
    at async _runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:159:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:69:24 {
  chain: 'optimism'
}

@llamabutler
Copy link

The dhedge adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees dhedge

🦙 Running DHEDGE adapter 🦙
---------------------------------------------------
GRAPH_API_KEY env variable is not set, using the default api key
Start Date:	Wed, 27 Aug 2025 08:58:08 GMT
End Date:	Thu, 28 Aug 2025 08:58:08 GMT
---------------------------------------------------

Error: Error fetching data for chain base: auth error: payment required for subsequent requests for this API key: {"response":{"errors":[{"message":"auth error: payment required for subsequent requests for this API key"}],"status":200,"headers":{}},"request":{"query":"\n      query managerFeeMinteds($startTimestamp: BigInt!, $endTimestamp: BigInt!, $first: Int!, $skip: Int!) {\n        managerFeeMinteds(\n          where: { blockTimestamp_gte: $startTimestamp, blockTimestamp_lte: $endTimestamp },\n          first: $first, skip: $skip, orderBy: blockTimestamp, orderDirection: desc\n        ) { managerFee, daoFee, tokenPriceAtFeeMint, manager }\n      }","variables":{"startTimestamp":"1756285087","endTimestamp":"1756371488","first":1000,"skip":0}}}
    at fetchHistoricalFees (/home/runner/work/dimension-adapters/dimension-adapters/fees/dhedge/index.ts:94:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fetch (/home/runner/work/dimension-adapters/dimension-adapters/fees/dhedge/index.ts:165:34)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:206:18)
    at async Promise.all (index 3)
    at async _runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:159:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:69:24 {
  chain: 'base'
}

@llamabutler
Copy link

The toros adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees toros

🦙 Running TOROS adapter 🦙
---------------------------------------------------
GRAPH_API_KEY env variable is not set, using the default api key
Start Date:	Wed, 27 Aug 2025 08:58:18 GMT
End Date:	Thu, 28 Aug 2025 08:58:18 GMT
---------------------------------------------------

Error: Error fetching data for chain ethereum: auth error: payment required for subsequent requests for this API key: {"response":{"errors":[{"message":"auth error: payment required for subsequent requests for this API key"}],"status":200,"headers":{}},"request":{"query":"\n      query managerFeeMinteds($manager: Bytes!, $startTimestamp: BigInt!, $endTimestamp: BigInt!, $first: Int!, $skip: Int!) {\n        managerFeeMinteds(\n          where: { manager: $manager, managerFee_not: 0, blockTimestamp_gte: $startTimestamp, blockTimestamp_lte: $endTimestamp },\n          first: $first, skip: $skip, orderBy: blockTimestamp, orderDirection: desc\n        ) { managerFee, tokenPriceAtFeeMint, pool, manager, block }\n      }","variables":{"manager":"0xfbd2b4216f422dc1eee1cff4fb64b726f099def5","startTimestamp":"1756285097","endTimestamp":"1756371498","first":1000,"skip":0}}}
    at fetchHistoricalFees (/home/runner/work/dimension-adapters/dimension-adapters/fees/toros/index.ts:100:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fetch (/home/runner/work/dimension-adapters/dimension-adapters/fees/toros/index.ts:140:34)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:206:18)
    at async Promise.all (index 4)
    at async _runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:159:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:69:24 {
  chain: 'ethereum'
}

@noateden
Copy link
Contributor

hello, why are you moving these revenue? they 're two diff products, right?

@g1nt0ki g1nt0ki self-assigned this Aug 29, 2025
@paveltimosh
Copy link
Author

hello, why are you moving these revenue? they 're two diff products, right?

yes, its two different products, but based on the same dHedge platform. Will data from the dates specified in the "start" field be recovered?

@g1nt0ki
Copy link
Member

g1nt0ki commented Sep 1, 2025

hello, why are you moving these revenue? they 're two diff products, right?

yes, its two different products, but based on the same dHedge platform. Will data from the dates specified in the "start" field be recovered?

sorry, still doesnt answer @noateden 's question.

I too am confused why it got moved, we will create a parent protocol, to track dHedge, mStable, flat money and toros under a single listing

@g1nt0ki
Copy link
Member

g1nt0ki commented Sep 2, 2025

@paveltimosh this PR would be redundant when we track toros under dHedge right? (toros fees would automatically be included as part of dHegde)

@edsonayllon
Copy link

edsonayllon commented Sep 2, 2025

@paveltimosh this PR would be redundant when we track toros under dHedge right? (toros fees would automatically be included as part of dHegde)

Hi, yes. We just wanted Toros revenue to go under dHedge since Toros revenue goes directly to dHedge, and we didn't want to double count revenue. Main motivation is of all the brands, only dHedge will ever have a token, so we want token holders knowing there is revenue.

I didn't know they were going to be moved under a parent protocol. We can close this if that's the case.

When will the merge to parent protocol happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants