@@ -181,7 +181,12 @@ pub mod fill_order_protected_maker {
181181 let user_account_loader: AccountLoader < User > =
182182 AccountLoader :: try_from ( & user_account_info) . unwrap ( ) ;
183183
184- create_anchor_account_info ! ( UserStats :: default ( ) , UserStats , user_stats_account_info) ;
184+ let mut taker_stats = UserStats {
185+ disable_update_perp_bid_ask_twap : true ,
186+ ..UserStats :: default ( )
187+ } ;
188+
189+ create_anchor_account_info ! ( taker_stats, UserStats , user_stats_account_info) ;
185190 let user_stats_account_loader: AccountLoader < UserStats > =
186191 AccountLoader :: try_from ( & user_stats_account_info) . unwrap ( ) ;
187192
@@ -263,9 +268,18 @@ pub mod fill_order_protected_maker {
263268 . unwrap ( ) ;
264269
265270 assert_eq ! ( base_asset_amount, 1000000000 ) ;
266- assert_eq ! ( quote_asset_amount, 100_000_000 + 100_000_000 / 1000 ) ; // $100 + 10 bps
271+ assert_eq ! ( quote_asset_amount, 100_000_000 ) ; // $100 + 10 bps
267272
268273 // user exempt, no 10 bps applied for pmm
274+ let mut taker_stats = UserStats {
275+ disable_update_perp_bid_ask_twap : false ,
276+ ..UserStats :: default ( )
277+ } ;
278+
279+ create_anchor_account_info ! ( taker_stats, UserStats , user_stats_account_info) ;
280+ let user_stats_account_loader: AccountLoader < UserStats > =
281+ AccountLoader :: try_from ( & user_stats_account_info) . unwrap ( ) ;
282+
269283 let mut user = User {
270284 // next_order_id: 10000000,
271285 next_order_id : 3000 - 2 ,
0 commit comments