@@ -13,7 +13,7 @@ use solana_client::{nonblocking::rpc_client::RpcClient, rpc_response::RpcVoteAcc
1313use solana_pubkey:: Pubkey ;
1414use spl_stake_pool:: state:: ValidatorStakeInfo ;
1515use spl_stake_pool_cli:: client:: get_validator_list;
16- use stakenet_sdk:: utils:: accounts:: { get_all_validator_history_accounts, get_directed_stake_meta } ;
16+ use stakenet_sdk:: utils:: accounts:: get_all_validator_history_accounts;
1717use validator_history:: ValidatorHistory ;
1818
1919use crate :: {
@@ -66,9 +66,6 @@ pub struct ChainData {
6666 pub inflation_rewards_lamports : u64 ,
6767 pub priority_fee_commission_bps : u16 ,
6868 pub priority_fee_revenue_lamports : u64 ,
69-
70- /// Jito Directed Stake Target
71- pub jito_directed_stake_target : bool ,
7269}
7370
7471pub fn get_tip_distribution_program_id ( cluster : & Cluster ) -> Pubkey {
@@ -126,15 +123,13 @@ pub fn get_priority_fee_distribution_program_id() -> solana_pubkey::Pubkey {
126123///
127124/// - If BAM validator set exists and not empty: check if validator identity is in the set
128125/// - Otherwise: fall back to client_type check from validator history
129- #[ allow( clippy:: too_many_arguments) ]
130126pub async fn fetch_chain_data (
131127 validators : & [ ValidatorsAppResponseEntry ] ,
132128 bam_validator_set : HashSet < String > ,
133129 rpc_client : Arc < RpcClient > ,
134130 cluster : & Cluster ,
135131 epoch : u64 ,
136132 validator_list_pubkey : & Pubkey ,
137- steward_config_pubkey : & Pubkey ,
138133) -> Result < HashMap < Pubkey , ChainData > , Error > {
139134 // Fetch on-chain data
140135 let tip_distributions =
@@ -161,9 +156,6 @@ pub async fn fetch_chain_data(
161156 let validator_histories =
162157 fetch_validator_history_accounts ( & rpc_client, validator_history_program_id) . await ?;
163158
164- let directed_stake_meta =
165- get_directed_stake_meta ( rpc_client, steward_config_pubkey, & jito_steward:: id ( ) ) . await ?;
166-
167159 Ok ( HashMap :: from_iter ( validators. iter ( ) . map ( |v| {
168160 let vote_account = v. vote_account ;
169161 let maybe_tip_distribution_account = tip_distributions. get ( & vote_account) ;
@@ -228,11 +220,6 @@ pub async fn fetch_chain_data(
228220 let inflation_rewards_lamports =
229221 inflation_rate / epochs_per_year * staked_amount * vote_credit_proportion;
230222
231- let jito_directed_stake_target = directed_stake_meta
232- . targets
233- . iter ( )
234- . any ( |target| target. vote_pubkey . eq ( & v. vote_account ) ) ;
235-
236223 let data = ChainData {
237224 mev_commission_bps,
238225 mev_revenue_lamports,
@@ -244,7 +231,6 @@ pub async fn fetch_chain_data(
244231 inflation_rewards_lamports : inflation_rewards_lamports as u64 ,
245232 priority_fee_commission_bps,
246233 priority_fee_revenue_lamports,
247- jito_directed_stake_target,
248234 } ;
249235
250236 ( vote_account, data)
0 commit comments