Skip to content

Commit

Permalink
fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjohn1028 committed Jan 13, 2025
1 parent a9cf1cd commit 38c9e5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions mev-programs/programs/tip-distribution/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub mod state;

declare_id!("4R3gSG8BpU4t19KYj8CfnbtRpnT8gtk4dvTHxVRwc2r7");

static JITO_UPLOAD_AUTHORITY: Pubkey = pubkey!("GZctHpWXmsZC1YHACTGGcHhYxjdRqQvTpYkb9LMvxDib");
static JITO_LABS_UPLOAD_AUTHORITY: Pubkey = pubkey!("GZctHpWXmsZC1YHACTGGcHhYxjdRqQvTpYkb9LMvxDib");

#[program]
pub mod jito_tip_distribution {
Expand Down Expand Up @@ -297,7 +297,7 @@ pub mod jito_tip_distribution {
// Set the bump and override authority
let merkle_root_upload_config = &mut ctx.accounts.merkle_root_upload_config;
merkle_root_upload_config.bump = ctx.bumps.merkle_root_upload_config;
merkle_root_upload_config.overide_authority = authority;
merkle_root_upload_config.override_authority = authority;
Ok(())
}

Expand All @@ -310,7 +310,7 @@ pub mod jito_tip_distribution {

// Update override authority
let merkle_root_upload_config = &mut ctx.accounts.merkle_root_upload_config;
merkle_root_upload_config.overide_authority = authority;
merkle_root_upload_config.override_authority = authority;

Ok(())
}
Expand All @@ -324,13 +324,13 @@ pub mod jito_tip_distribution {
return Err(InvalidTdaForMigration.into());
}
// Validate the TDA key is Jito's key
if distribution_account.merkle_root_upload_authority != JITO_UPLOAD_AUTHORITY {
if distribution_account.merkle_root_upload_authority != JITO_LABS_UPLOAD_AUTHORITY {
return Err(InvalidTdaForMigration.into());
}

// Change the TDA's root upload authority
distribution_account.merkle_root_upload_authority =
ctx.accounts.merkle_root_upload_config.overide_authority;
ctx.accounts.merkle_root_upload_config.override_authority;

Ok(())
}
Expand Down
4 changes: 2 additions & 2 deletions mev-programs/programs/tip-distribution/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ impl ClaimStatus {
#[derive(Default)]
pub struct MerkleRootUploadConfig {
/// The authority that overrides the TipDistributionAccount merkle_root_upload_authority
pub overide_authority: Pubkey,
pub override_authority: Pubkey,

/// The bump used to genearte this account
/// The bump used to generate this account
pub bump: u8,
}

Expand Down

0 comments on commit 38c9e5d

Please sign in to comment.