@@ -4452,11 +4452,10 @@ mod get_margin_calculation_for_disable_high_leverage_mode {
44524452 use anchor_lang:: Owner ;
44534453 use solana_program:: pubkey:: Pubkey ;
44544454
4455- use crate :: { create_account_info , MARGIN_PRECISION } ;
4455+ use crate :: create_anchor_account_info ;
44564456 use crate :: math:: constants:: {
4457- AMM_RESERVE_PRECISION , LIQUIDATION_FEE_PRECISION , PEG_PRECISION ,
4458- SPOT_BALANCE_PRECISION , SPOT_BALANCE_PRECISION_U64 , SPOT_CUMULATIVE_INTEREST_PRECISION ,
4459- SPOT_WEIGHT_PRECISION ,
4457+ AMM_RESERVE_PRECISION , LIQUIDATION_FEE_PRECISION , PEG_PRECISION , SPOT_BALANCE_PRECISION ,
4458+ SPOT_BALANCE_PRECISION_U64 , SPOT_CUMULATIVE_INTEREST_PRECISION , SPOT_WEIGHT_PRECISION ,
44604459 } ;
44614460 use crate :: math:: margin:: get_margin_calculation_for_disable_high_leverage_mode;
44624461 use crate :: state:: oracle:: { HistoricalOracleData , OracleSource } ;
@@ -4466,9 +4465,9 @@ mod get_margin_calculation_for_disable_high_leverage_mode {
44664465 use crate :: state:: spot_market:: { SpotBalanceType , SpotMarket } ;
44674466 use crate :: state:: spot_market_map:: SpotMarketMap ;
44684467 use crate :: state:: user:: { Order , PerpPosition , SpotPosition , User } ;
4469- use crate :: test_utils:: * ;
44704468 use crate :: test_utils:: get_pyth_price;
4471- use crate :: create_anchor_account_info;
4469+ use crate :: test_utils:: * ;
4470+ use crate :: { create_account_info, MARGIN_PRECISION } ;
44724471
44734472 #[ test]
44744473 pub fn check_user_not_changed ( ) {
@@ -4590,4 +4589,4 @@ mod get_margin_calculation_for_disable_high_leverage_mode {
45904589 // should not change user
45914590 assert_eq ! ( user, user_before) ;
45924591 }
4593- }
4592+ }
0 commit comments