Skip to content

fix: thevault revenue #3841

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

KPHEMRAJ
Copy link
Contributor

No description provided.

@KPHEMRAJ
Copy link
Contributor Author

SOLANA 👇
Backfill start time: 2/5/2024
Daily fees: 104.70 k
Daily revenue: 5.53 k
Daily protocol revenue: 5.53 k

@llamabutler
Copy link

The thevault adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees thevault

🦙 Running THEVAULT adapter 🦙
---------------------------------------------------
Start Date:	Fri, 25 Jul 2025 00:00:00 GMT
End Date:	Sat, 26 Jul 2025 00:00:00 GMT
---------------------------------------------------

Error: Request failed with status code 401
    at queryDune (/home/runner/work/dimension-adapters/dimension-adapters/helpers/dune.ts:121:22)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fetch (/home/runner/work/dimension-adapters/dimension-adapters/fees/thevault/index.ts:9:29)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:84:18)
    at async Promise.all (index 0)
    at async runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:49:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:84:26 {
  axiosError: 'Dune API Key is invalid',
  chain: 'solana'
}

@llamabutler
Copy link

The thevault adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees thevault

🦙 Running THEVAULT adapter 🦙
---------------------------------------------------
Start Date:	Fri, 25 Jul 2025 00:00:00 GMT
End Date:	Sat, 26 Jul 2025 00:00:00 GMT
---------------------------------------------------

Error: Request failed with status code 401
    at queryDune (/home/runner/work/dimension-adapters/dimension-adapters/helpers/dune.ts:121:22)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fetch (/home/runner/work/dimension-adapters/dimension-adapters/fees/thevault/index.ts:9:29)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:84:18)
    at async Promise.all (index 0)
    at async runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:49:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:84:26 {
  axiosError: 'Dune API Key is invalid',
  chain: 'solana'
}

@treeoflife2
Copy link
Member

@KPHEMRAJ i've removed supplysiderevenue for SOL-LST protocols as it's mostly emissions so don't fall under the supplysiderevenue.
#3842

Any idea why thevault fees are lower when i switched it with the common dune query

SOLANA 👇
Backfill start time: 2/5/2024
Daily fees: 62.79 k
Daily revenue: 5.53 k
Daily protocol revenue: 5.53 k

@llamabutler
Copy link

The thevault adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees thevault

🦙 Running THEVAULT adapter 🦙
---------------------------------------------------
Start Date:	Fri, 25 Jul 2025 00:00:00 GMT
End Date:	Sat, 26 Jul 2025 00:00:00 GMT
---------------------------------------------------

Error: Request failed with status code 401
    at queryDune (/home/runner/work/dimension-adapters/dimension-adapters/helpers/dune.ts:121:22)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fetch (/home/runner/work/dimension-adapters/dimension-adapters/fees/thevault/index.ts:23:19)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:84:18)
    at async Promise.all (index 0)
    at async runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:49:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:84:26 {
  axiosError: 'Dune API Key is invalid',
  chain: 'solana'
}

@KPHEMRAJ
Copy link
Contributor Author

KPHEMRAJ commented Jul 26, 2025

@KPHEMRAJ i've removed supplysiderevenue for SOL-LST protocols as it's mostly emissions so don't fall under the supplysiderevenue. #3842

Any idea why thevault fees are lower when i switched it with the common dune query

SOLANA 👇 Backfill start time: 2/5/2024 Daily fees: 62.79 k Daily revenue: 5.53 k Daily protocol revenue: 5.53 k

@treeoflife2 if we assume the following facts :

  • 280 m tvl
  • yields once in 2 days
  • apy = 6.5 %

The daily rewards should be (280*0.065)/182 = 0.1m -> 100k .
I am afraid if the dune data isnt up to date , I am not sure ;)

Revenue is accurate , no doubt. I am worried about fees.
Probably i will find a better fix

@treeoflife2 treeoflife2 self-assigned this Jul 29, 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