Skip to content

Conversation

@0xFluxey
Copy link
Contributor

Changed the Revenue Calculation and removed referral.

@llamabutler
Copy link

The zapzy adapter exports:

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

🦙 Running ZAPZY adapter 🦙
---------------------------------------------------
Start Date:	Thu, 11 Sep 2025 00:00:00 GMT
End Date:	Fri, 12 Sep 2025 00:00:00 GMT
---------------------------------------------------

SOLANA 👇
Backfill start time: 27/8/2025
Daily fees: 19
Daily user fees: 19
Daily revenue: 9

Copy link
Member

@g1nt0ki g1nt0ki left a comment

Choose a reason for hiding this comment

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

I dont understand the change, why exclude referral fees? it is not going to the protocol, so should not be revenue?

@0xFluxey
Copy link
Contributor Author

I dont understand the change, why exclude referral fees? it is not going to the protocol, so should not be revenue?

The referral feature has been removed and replaced by a 500% increase of the creator fee. The all time referral earnings were less than 0.1 SOL which is the reason I fully excluded it.

@llamabutler
Copy link

The zapzy adapter exports:

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

🦙 Running ZAPZY adapter 🦙
---------------------------------------------------
Start Date:	Tue, 16 Sep 2025 00:00:00 GMT
End Date:	Wed, 17 Sep 2025 00:00:00 GMT
---------------------------------------------------

SOLANA 👇
Backfill start time: 27/8/2025
Daily fees: 0
Daily revenue: 0
Daily protocol revenue: 0
Daily supply side revenue: 0
Daily holders revenue: 0

@g1nt0ki
Copy link
Member

g1nt0ki commented Sep 17, 2025

I dont understand the change, why exclude referral fees? it is not going to the protocol, so should not be revenue?

The referral feature has been removed and replaced by a 500% increase of the creator fee. The all time referral earnings were less than 0.1 SOL which is the reason I fully excluded it.

hmm, I have refactored, looks like the frontend now returns daily data instead of accumulative data each data?

Maybe it is better if the adapter is changed to use dune query, this way, it is easier for us to verify/refill 🙏

@g1nt0ki g1nt0ki self-assigned this Sep 17, 2025
@llamabutler
Copy link

The zapzy adapter exports:

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

🦙 Running ZAPZY adapter 🦙
---------------------------------------------------
Start Date:	Thu, 18 Sep 2025 00:00:00 GMT
End Date:	Fri, 19 Sep 2025 00:00:00 GMT
---------------------------------------------------

Error: Request failed with status code 401
    at _queryDune (/home/runner/work/dimension-adapters/dimension-adapters/helpers/dune.ts:219:22)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fetch (/home/runner/work/dimension-adapters/dimension-adapters/fees/zapzy/index.ts:92:16)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:205:18)
    at async Promise.all (index 0)
    at async _runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:160:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:69:24 {
  axiosError: 'Dune API Key is invalid',
  chain: 'solana'
}

@0xFluxey
Copy link
Contributor Author

done, now using a dune query instead of our api

@0xFluxey 0xFluxey requested a review from g1nt0ki October 6, 2025 08:05
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