Skip to content

Conversation

ayoubbuoya
Copy link

Add dex volume adapter for EagleFi project :
https://www.eaglefi.io/

@llamabutler
Copy link

The eaglefi adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs eaglefi

🦙 Running EAGLEFI adapter 🦙
---------------------------------------------------
Start Date:	Sun, 06 Jul 2025 10:36:17 GMT
End Date:	Mon, 07 Jul 2025 10:36:17 GMT
---------------------------------------------------

MASSA 👇
Backfill start time: 23/6/2025
Daily volume: 84
Daily fees: 0
End timestamp: 1751884576 (2025-07-07T10:36:16.000Z)

@noateden
Copy link
Contributor

noateden commented Jul 7, 2025

hi @ayoubbuoya, thanks for the PR? can you pls get data from on-chain smart contracts?

@ayoubbuoya
Copy link
Author

Hi @noateden , I believe there may be a misunderstanding. This PR is for the DEX historical volume adapter, which relies on off-chain trade data unlike TVL, which is typically derived from on-chain contract reads. According to this doc 'https://docs.llama.fi/list-your-project/other-dashboards', historical volume data can be sourced off-chain by calling an external endpoint.

@noateden
Copy link
Contributor

noateden commented Jul 8, 2025

hi @ayoubbuoya, what to you mean by off-chain trade data? can you explain more about it, how do these trades work?

@ayoubbuoya
Copy link
Author

@noateden By offchain trades, I meant getting volume data through an endpoint instead of smart contract read cause the smart contract does not have history of all trades happened. So what we're doing is just running a Blockchain event fetcher that listens on all swaps that happens on our smart contracts, then we save that to a db then when you call that api will return you the sum of the volumes in USD from the db happened from the start and end timestamp specified.

@llamabutler
Copy link

The eaglefi.ts adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs eaglefi.ts

🦙 Running EAGLEFI.TS adapter 🦙
---------------------------------------------------
Start Date:	Wed, 09 Jul 2025 15:57:33 GMT
End Date:	Thu, 10 Jul 2025 15:57:33 GMT
---------------------------------------------------

[Error: read ECONNRESET] {
  url: 'https://mainnet.api.eaglefi.io/statistics/volume?start=1752076652&end=1752163053',
  method: 'GET',
  chain: 'massa'
}

Copy link
Contributor

@noateden noateden left a comment

Choose a reason for hiding this comment

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

hi @ayoubbuoya, we still can not merge this PR due to your API endpoint, it is unstable, sometime got timeout, can you pls check?

@noateden noateden self-assigned this Jul 10, 2025
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.

3 participants