Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

track tornado fees #2695

Merged
merged 2 commits into from
Mar 31, 2025
Merged

track tornado fees #2695

merged 2 commits into from
Mar 31, 2025

Conversation

ReynardoEW
Copy link
Contributor

No description provided.

@llamabutler
Copy link

The tornado adapter exports:

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

🦙 Running TORNADO adapter 🦙
---------------------------------------------------
Start Date:	Mon, 24 Mar 2025 06:03:16 GMT
End Date:	Tue, 25 Mar 2025 06:03:16 GMT
---------------------------------------------------

[Error: Request failed with status code 401] {
  url: 'https://api.dune.com/api/v1/query/4898710/execute',
  method: 'POST',
  axiosError: 'invalid API Key',
  chain: 'optimism'
}

@dtmkeng
Copy link
Contributor

dtmkeng commented Mar 25, 2025

@ReynardoEW could you covert to use llama sdk instead dune

@ReynardoEW
Copy link
Contributor Author

@ReynardoEW could you covert to use llama sdk instead dune

yes i will convert it to use sdk instead

@g1nt0ki g1nt0ki self-assigned this Mar 25, 2025
}

const getFees = async (options: FetchOptions) => {
if (cachedData) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you change teh cachedData to be a map instead of single value, and cache key to be startTimestamp, else if we run the refill script, all the days would have the same data

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you change teh cachedData to be a map instead of single value, and cache key to be startTimestamp, else if we run the refill script, all the days would have the same data

i'm planning to rewrite it to not use dune, will update it soon but for my next dune based adapter i will cache it that way

@llamabutler
Copy link

The tornado adapter exports:

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

🦙 Running TORNADO adapter 🦙
---------------------------------------------------
Start Date:	Wed, 26 Mar 2025 04:50:42 GMT
End Date:	Thu, 27 Mar 2025 04:50:42 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time not defined
Daily fees: 3.13 k
End timestamp: 1743051041 (2025-03-27T04:50:41.000Z)


BSC 👇
Backfill start time not defined
Daily fees: 206
End timestamp: 1743051041 (2025-03-27T04:50:41.000Z)


AVAX 👇
Backfill start time not defined
Daily fees: 0
End timestamp: 1743051041 (2025-03-27T04:50:41.000Z)


OPTIMISM 👇
Backfill start time not defined
Daily fees: 0
End timestamp: 1743051041 (2025-03-27T04:50:41.000Z)


ARBITRUM 👇
Backfill start time not defined
Daily fees: 0
End timestamp: 1743051041 (2025-03-27T04:50:41.000Z)


POLYGON 👇
Backfill start time not defined
Daily fees: 0
End timestamp: 1743051041 (2025-03-27T04:50:41.000Z)


XDAI 👇
Backfill start time not defined
Daily fees: 0
End timestamp: 1743051041 (2025-03-27T04:50:41.000Z)


---- AGGREGATE 👇
Backfill start time not defined
End timestamp: 1743051041 (2025-03-27T04:50:41.000Z)
Daily fees: 3.33 k

@ReynardoEW
Copy link
Contributor Author

@ReynardoEW could you covert to use llama sdk instead dune

i have changed it to use getlogs instead of dune

@ReynardoEW ReynardoEW requested a review from g1nt0ki March 27, 2025 14:12
@g1nt0ki
Copy link
Member

g1nt0ki commented Mar 31, 2025

looks good

@g1nt0ki g1nt0ki merged commit f12cec4 into DefiLlama:master Mar 31, 2025
2 checks passed
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.

4 participants