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

feat: fees and revenues for rings #2473

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0xtekgrinder
Copy link
Contributor

This PR adds fees and revenues for rings with the methodology of computing the average fees based on the budget deposited into each voters.

10% Are added between revenue and fees as they are taken by veda labs

@llamabutler
Copy link

The rings adapter exports:

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

🦙 Running RINGS adapter 🦙
---------------------------------------------------
Start Date:	Wed, 26 Feb 2025 11:52:26 GMT
End Date:	Thu, 27 Feb 2025 11:52:26 GMT
---------------------------------------------------

SONIC 👇
Backfill start time: 21/1/2025
Daily fees: 5.62 k
Daily revenue: 5.06 k
End timestamp: 1740657145 (2025-02-27T11:52:25.000Z)

@dtmkeng
Copy link
Contributor

dtmkeng commented Feb 28, 2025

seem it total value is there to get from logs ?

@0xtekgrinder
Copy link
Contributor Author

seem it total value is there to get from logs ?

I can get the total budget added for each periods inside the logs, would it be better @dtmkeng ?

@dtmkeng
Copy link
Contributor

dtmkeng commented Feb 28, 2025

yes we require daily data if you can cal fees/rev at logs it good

@0xtekgrinder
Copy link
Contributor Author

0xtekgrinder commented Feb 28, 2025

yes we require daily data if you can cal fees/rev at logs it good

They aren't daily unfortunately ... Budget is being deposited once a week based on yield generated

@dtmkeng
Copy link
Contributor

dtmkeng commented Feb 28, 2025

are you have emit value for one week ?

@0xtekgrinder
Copy link
Contributor Author

are you have emit value for one week ?

Yep, we only emit one event for the yield of the whole week

@dtmkeng
Copy link
Contributor

dtmkeng commented Mar 1, 2025

yes emit for. week then other day is 0 it good

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