@@ -462,7 +462,6 @@ mod get_max_fill_amounts {
462462 use crate :: state:: user:: { Order , SpotPosition , User } ;
463463 use crate :: test_utils:: get_orders;
464464 use crate :: LAMPORTS_PER_SOL_U64 ;
465- use anchor_spl:: token:: spl_token:: solana_program:: native_token:: LAMPORTS_PER_SOL ;
466465
467466 #[ test]
468467 fn fully_collateralized_selling_base ( ) {
@@ -493,7 +492,7 @@ mod get_max_fill_amounts {
493492 spot_positions,
494493 orders : get_orders ( Order {
495494 direction : PositionDirection :: Short ,
496- base_asset_amount : 100 * LAMPORTS_PER_SOL ,
495+ base_asset_amount : 100 * LAMPORTS_PER_SOL_U64 ,
497496 ..Order :: default ( )
498497 } ) ,
499498 ..User :: default ( )
@@ -531,7 +530,7 @@ mod get_max_fill_amounts {
531530 spot_positions,
532531 orders : get_orders ( Order {
533532 direction : PositionDirection :: Short ,
534- base_asset_amount : 100 * LAMPORTS_PER_SOL ,
533+ base_asset_amount : 100 * LAMPORTS_PER_SOL_U64 ,
535534 ..Order :: default ( )
536535 } ) ,
537536 ..User :: default ( )
@@ -572,7 +571,7 @@ mod get_max_fill_amounts {
572571 spot_positions,
573572 orders : get_orders ( Order {
574573 direction : PositionDirection :: Short ,
575- base_asset_amount : 100 * LAMPORTS_PER_SOL ,
574+ base_asset_amount : 100 * LAMPORTS_PER_SOL_U64 ,
576575 ..Order :: default ( )
577576 } ) ,
578577 ..User :: default ( )
@@ -614,7 +613,7 @@ mod get_max_fill_amounts {
614613 spot_positions,
615614 orders : get_orders ( Order {
616615 direction : PositionDirection :: Long ,
617- base_asset_amount : 100 * LAMPORTS_PER_SOL ,
616+ base_asset_amount : 100 * LAMPORTS_PER_SOL_U64 ,
618617 ..Order :: default ( )
619618 } ) ,
620619 ..User :: default ( )
@@ -652,7 +651,7 @@ mod get_max_fill_amounts {
652651 spot_positions,
653652 orders : get_orders ( Order {
654653 direction : PositionDirection :: Long ,
655- base_asset_amount : 100 * LAMPORTS_PER_SOL ,
654+ base_asset_amount : 100 * LAMPORTS_PER_SOL_U64 ,
656655 ..Order :: default ( )
657656 } ) ,
658657 ..User :: default ( )
@@ -694,7 +693,7 @@ mod get_max_fill_amounts {
694693 spot_positions,
695694 orders : get_orders ( Order {
696695 direction : PositionDirection :: Long ,
697- base_asset_amount : 100 * LAMPORTS_PER_SOL ,
696+ base_asset_amount : 100 * LAMPORTS_PER_SOL_U64 ,
698697 ..Order :: default ( )
699698 } ) ,
700699 ..User :: default ( )
0 commit comments