Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jgur-psyops committed Aug 28, 2024
1 parent 1f07a9b commit 6de23a5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions clients/rust/marginfi-cli/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ use {
marginfi::{
bank_authority_seed, bank_seed,
constants::{
EMISSIONS_AUTH_SEED, EMISSIONS_TOKEN_ACCOUNT_SEED, FEE_STATE_SEED, MAX_ORACLE_KEYS, PYTH_PUSH_PYTH_SPONSORED_SHARD_ID
EMISSIONS_AUTH_SEED, EMISSIONS_TOKEN_ACCOUNT_SEED, FEE_STATE_SEED, MAX_ORACLE_KEYS,
PYTH_PUSH_PYTH_SPONSORED_SHARD_ID,
},
state::{
marginfi_account::MarginfiAccount,
Expand Down Expand Up @@ -125,13 +126,10 @@ pub fn find_bank_emssions_token_account_pda(
)
}

pub fn find_fee_state_pda(
program_id: &Pubkey,
) -> (Pubkey, u8) {
pub fn find_fee_state_pda(program_id: &Pubkey) -> (Pubkey, u8) {
Pubkey::find_program_address(&[FEE_STATE_SEED.as_bytes()], program_id)
}


pub fn create_oracle_key_array(oracle_key: Pubkey) -> [Pubkey; MAX_ORACLE_KEYS] {
let mut oracle_keys = [Pubkey::default(); MAX_ORACLE_KEYS];
oracle_keys[0] = oracle_key;
Expand Down

0 comments on commit 6de23a5

Please sign in to comment.