From e3634f543782e829d0229844d125ef90aff0d01a Mon Sep 17 00:00:00 2001 From: 0xripleys <0xripleys@solend.fi> Date: Mon, 8 Jul 2024 11:00:11 -0700 Subject: [PATCH] fmt --- token-lending/oracles/src/switchboard.rs | 8 ++++---- token-lending/program/tests/init_lending_market.rs | 2 +- token-lending/sdk/src/lib.rs | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/token-lending/oracles/src/switchboard.rs b/token-lending/oracles/src/switchboard.rs index 8fb45ca29fa..eebdb9fa173 100644 --- a/token-lending/oracles/src/switchboard.rs +++ b/token-lending/oracles/src/switchboard.rs @@ -3,15 +3,15 @@ use crate::OracleType; use solend_sdk::math::TryDiv; use solend_sdk::math::TryMul; +use crate::{ + switchboard_on_demand_devnet, switchboard_on_demand_mainnet, switchboard_v2_devnet, + switchboard_v2_mainnet, +}; use solana_program::{ account_info::AccountInfo, entrypoint::ProgramResult, msg, program_error::ProgramError, sysvar::clock::Clock, }; use solend_sdk::{error::LendingError, math::Decimal}; -use crate::{ - switchboard_on_demand_devnet, switchboard_on_demand_mainnet, switchboard_v2_devnet, - switchboard_v2_mainnet, -}; use std::result::Result; use switchboard_on_demand::on_demand::accounts::pull_feed::PullFeedAccountData as SbOnDemandFeed; diff --git a/token-lending/program/tests/init_lending_market.rs b/token-lending/program/tests/init_lending_market.rs index 4a845c1cb07..7549463dc9b 100644 --- a/token-lending/program/tests/init_lending_market.rs +++ b/token-lending/program/tests/init_lending_market.rs @@ -4,6 +4,7 @@ mod helpers; use helpers::solend_program_test::{SolendProgramTest, User}; use helpers::*; +use oracles::{pyth_mainnet, switchboard_v2_mainnet}; use solana_program::instruction::InstructionError; use solana_program_test::*; use solana_sdk::signature::Keypair; @@ -12,7 +13,6 @@ use solana_sdk::transaction::TransactionError; use solend_program::error::LendingError; use solend_program::instruction::init_lending_market; use solend_program::state::{LendingMarket, RateLimiter, PROGRAM_VERSION}; -use oracles::{pyth_mainnet, switchboard_v2_mainnet}; #[tokio::test] async fn test_success() { diff --git a/token-lending/sdk/src/lib.rs b/token-lending/sdk/src/lib.rs index 37d5d4f3b17..b553a9d17cf 100644 --- a/token-lending/sdk/src/lib.rs +++ b/token-lending/sdk/src/lib.rs @@ -26,4 +26,3 @@ pub const NULL_PUBKEY: solana_program::pubkey::Pubkey = 11, 193, 238, 216, 208, 116, 241, 195, 55, 212, 76, 22, 75, 202, 40, 216, 76, 206, 27, 169, 138, 64, 177, 28, 19, 90, 156, 0, 0, 0, 0, 0, ]); -