diff --git a/token-lending/cli/src/main.rs b/token-lending/cli/src/main.rs index 938a7dd2676..94e51018efc 100644 --- a/token-lending/cli/src/main.rs +++ b/token-lending/cli/src/main.rs @@ -80,7 +80,7 @@ type Error = Box; type CommandResult = Result<(), Error>; const PYTH_PROGRAM_ID: &str = "gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s"; -const SWITCHBOARD_PROGRAM_ID: &str = "DtmE9D2CSB4L5D6A15mraeEjrGMm6auWVzgaD8hK2tZM"; +// const SWITCHBOARD_PROGRAM_ID: &str = "DtmE9D2CSB4L5D6A15mraeEjrGMm6auWVzgaD8hK2tZM"; const SWITCHBOARD_PROGRAM_ID_DEV: &str = "7azgmy1pFXHikv36q1zZASvFq5vFa39TT9NweVugKKTU"; fn main() { @@ -568,14 +568,15 @@ fn main() { let lending_market_owner = pubkey_of(arg_matches, "lending_market_owner").unwrap(); let quote_currency = quote_currency_of(arg_matches, "quote_currency").unwrap(); let oracle_program_id = pubkey_of(arg_matches, "oracle_program_id").unwrap(); - let switchboard_oracle_program_id = pubkey_of(arg_matches, "switchboard_oracle_program_id").unwrap(); - + let switchboard_oracle_program_id = + pubkey_of(arg_matches, "switchboard_oracle_program_id").unwrap(); + command_create_lending_market( &config, lending_market_owner, quote_currency, oracle_program_id, - switchboard_oracle_program_id + switchboard_oracle_program_id, ) } ("add-reserve", Some(arg_matches)) => { diff --git a/token-lending/program/src/processor.rs b/token-lending/program/src/processor.rs index e849af6ab83..cfa1b71767a 100644 --- a/token-lending/program/src/processor.rs +++ b/token-lending/program/src/processor.rs @@ -27,7 +27,7 @@ use solana_program::{ }; use spl_token::solana_program::instruction::AccountMeta; use spl_token::state::{Account, Mint}; -use std::{convert::TryInto}; +use std::convert::TryInto; use std::result::Result; use switchboard_program::{ get_aggregator, get_aggregator_result, AggregatorState, RoundResult, SwitchboardAccountType,