-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add EagleFi dex adapter for fetching volume and fees #3615
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
base: master
Are you sure you want to change the base?
Conversation
The eaglefi adapter exports:
|
hi @ayoubbuoya, thanks for the PR? can you pls get data from on-chain smart contracts? |
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. |
hi @ayoubbuoya, what to you mean by off-chain trade data? can you explain more about it, how do these trades work? |
@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. |
The eaglefi.ts adapter exports:
|
There was a problem hiding this 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?
Add dex volume adapter for EagleFi project :
https://www.eaglefi.io/