-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Jito DAO Protocol Revenue #3004
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
base: master
Are you sure you want to change the base?
Conversation
push-xx
commented
Apr 23, 2025
- Removed old jito.ts in favor of jito/index.ts
- Included protocol revenue related to JitoSOL and also Jito Restaking Ecosystem
The jito-restaking adapter exports:
|
The jito adapter exports:
|
Local outputs of test runs with correctly set DUNE_API_KEYS env var
|
// Jito Restaking Related revenue | ||
|
||
// https://dune.com/queries/4908531 | ||
const sql = getSqlFromFile("helpers/queries/jito-restaking.sql", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dailyFees type is required,(https://docs.llama.fi/list-your-project/other-dashboards/dimensions) here's all of the definitions, we suggest you add others to like dailyRevenue, dailySupplySideRevenue.
information about fee from docs: https://www.jito.network/restaking/learn/
The restaking program charges a 5% fee on rewards and a 0.1% (10 bps) withdrawal fee. Additionally, individual vaults have different deposit, withdrawal, and rewards fees. Be sure to check the specific fee structure of each vault before you deposit.
}); | ||
|
||
const data: any[] = (await queryDuneSql(options, sql)); | ||
if (data[0] == undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we prefer if it throws an error, instead of handling and returning zero value.
const data: any[] = (await queryDuneSql(options, sql)); | ||
if (data[0] == undefined) { | ||
return { | ||
dailyProtocolRevenue: 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same required changes as jito-restaking, we need dailyFees, and let it fail, instead of handling it. and update methodology too
daily_jitoSOL_amt as jitoSOL_amt, | ||
COALESCE(usd_amt, 0) as usd_amt | ||
FROM | ||
query_4908531 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if possible please add the query_4908531 as CTE in sql file, so things don't break if someone changes the query in dune.
jitoSOL_amt, | ||
usd_amt | ||
FROM | ||
query_4908703 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add both dune queries as CTE in sql file
The jito-restaking adapter exports:
|
The jito adapter exports:
|
@push-xx created new PR as i didn't have permission to add commit to the forked repo. and i've added the optimized query for jito liquid staking, but why did you added the DAO Tip Router Rewards as the jito restaking dao protocol fees? won't it come under the jito liquid staking? as i believe only jito restaking vault should come under the and protocol share from the rewards 5% and 0.1% withdrawal fees |
Hey! Thanks so much for this. I would say that restaking related fees/rev are actually the lowest prio atm as the generated fees are quite small compared to everything else and we would need to correctly value all the Vault Receipt Tokens for which the fees are mostly paid in. Before I looped back to this, I have been cleaning up the DAO Revenue Dashboard on Dune, so we have an initial source of truth and path forward. I think if we captured all DAO revenue listed here, it would get us most of the way. Specifically aligning with the defillama docs, I propose the following. Protocol: Jito Liquid Staking |
sg. sent you a request - push_jito on discord |