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

Re-add totalFees #2327

Closed
wants to merge 1 commit into from
Closed

Re-add totalFees #2327

wants to merge 1 commit into from

Conversation

goplusbot
Copy link
Contributor

Last time I updated, I did't find a good method to calculate totalFees, so I temporarily deleted it. Now I'm using queryDune to calculate it. Please check it. Thank you very much.

@llamabutler
Copy link

The goplus.ts adapter exports:

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

🦙 Running GOPLUS.TS adapter 🦙
---------------------------------------------------
Start Date:	Thu, 16 Jan 2025 07:18:28 GMT
End Date:	Fri, 17 Jan 2025 07:18:28 GMT
---------------------------------------------------

Token transfers: Failed to use indexer, falling back to logs Llama Indexer URL not set
Token transfers: Failed to use indexer, falling back to logs Llama Indexer URL not set
[Error: Request failed with status code 401] {
  url: 'https://api.dune.com/api/v1/query/4581834/execute',
  method: 'POST',
  axiosError: 'invalid API Key',
  chain: 'bsc'
}

@dtmkeng
Copy link
Contributor

dtmkeng commented Jan 17, 2025

i can refill your data since start time, is there issue why use dune query

@dtmkeng dtmkeng self-assigned this Jan 19, 2025
@goplusbot
Copy link
Contributor Author

goplusbot commented Jan 20, 2025

I referred to how other projects calculate total fees, and most of them query self built subgraphs. We did not build a subgraph, so we considered querying all received USDT from due.
If you can fix totalFees since start-time by dailyFees, it will be better, thank you very much.

@dtmkeng
Copy link
Contributor

dtmkeng commented Jan 20, 2025

okay will refil data since start time

@goplusbot
Copy link
Contributor Author

okay will refil data since start time

Have you done it ? I see that the data on the page is still incorrect. Maybe you should re-run the dailyFees since start-time, and then refill totalFees by dailyFees. Hope you can help me fix it soon, thank you.

@dtmkeng
Copy link
Contributor

dtmkeng commented Jan 21, 2025

no #2339

@dtmkeng
Copy link
Contributor

dtmkeng commented Jan 22, 2025

refilled

@dtmkeng dtmkeng closed this Jan 22, 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.

4 participants