DefiLlama / dimension-adapters

91 stars 1.01k forks source link

Added the overtime v2 fees to the Thales protocol #2007

Closed LeifuChen closed 4 weeks ago

LeifuChen commented 4 weeks ago

Use dune query to fetch all the fees and add the overtime v2 safebox fee.


yarn test options thales
yarn run v1.22.19
$ ts-node --transpile-only cli/testAdapter.ts options thales
🦙 Running THALES adapter 🦙
---------------------------------------------------
Start Date:     Mon, 14 Oct 2024 17:46:13 GMT
End Date:       Tue, 15 Oct 2024 17:46:13 GMT
---------------------------------------------------

ARBITRUM 👇
Backfill start time: 6/9/2022
NO METHODOLOGY SPECIFIED
Daily fees: 450
Total fees: 329.37 k
End timestamp: 1729014372 (2024-10-15T17:46:12.000Z)

OPTIMISM 👇
Backfill start time: 10/1/2022
NO METHODOLOGY SPECIFIED
Daily fees: 589
Total fees: 987.27 k
End timestamp: 1729014372 (2024-10-15T17:46:12.000Z)

BASE 👇
Backfill start time: 10/8/2023
NO METHODOLOGY SPECIFIED
Daily fees: 10
Total fees: 15.97 k
End timestamp: 1729014372 (2024-10-15T17:46:12.000Z)
llamatester commented 4 weeks ago

The thales adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts options thales

🦙 Running THALES adapter 🦙
---------------------------------------------------
Start Date: Mon, 14 Oct 2024 17:52:17 GMT
End Date:   Tue, 15 Oct 2024 17:52:17 GMT
---------------------------------------------------

[Error: Request failed with status code 401] {
  url: 'https://api.dune.com/api/v1/query/4165350/results',
  method: 'GET',
  axiosError: 'invalid API Key',
  chain: 'base'
}
dtmkeng commented 4 weeks ago

can you change to get on chain data ?

llamatester commented 4 weeks ago

The thales adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts options thales

🦙 Running THALES adapter 🦙
---------------------------------------------------
Start Date: Tue, 15 Oct 2024 10:58:44 GMT
End Date:   Wed, 16 Oct 2024 10:58:44 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
Token transfers: Failed to use indexer, falling back to logs Llama Indexer URL not set
ARBITRUM 👇
Backfill start time: 6/9/2022
NO METHODOLOGY SPECIFIED
Daily fees: 973
End timestamp: 1729076323 (2024-10-16T10:58:43.000Z)

OPTIMISM 👇
Backfill start time: 10/1/2022
NO METHODOLOGY SPECIFIED
Daily fees: 777
End timestamp: 1729076323 (2024-10-16T10:58:43.000Z)

BASE 👇
Backfill start time: 10/8/2023
NO METHODOLOGY SPECIFIED
Daily fees: 13
End timestamp: 1729076323 (2024-10-16T10:58:43.000Z)