@@ -562,10 +562,10 @@ fn test_recycle_precision_loss() {
562562 increase_stake_on_coldkey_hotkey_account ( & coldkey, & hotkey, stake. into ( ) , netuid) ;
563563
564564 // amount to recycle
565- let recycle_amount = AlphaCurrency :: from ( stake) ;
565+ let recycle_amount = AlphaCurrency :: from ( stake / 2 ) ;
566566
567567 // Modify the alpha pool denominator so it's low-precision
568- let denominator = U64F64 :: from_num ( 0.0000001 ) ;
568+ let denominator = U64F64 :: from_num ( 0.00000001 ) ;
569569 TotalHotkeyShares :: < Test > :: insert ( hotkey, netuid, denominator) ;
570570 Alpha :: < Test > :: insert ( ( & hotkey, & coldkey, netuid) , denominator) ;
571571
@@ -599,10 +599,10 @@ fn test_burn_precision_loss() {
599599 increase_stake_on_coldkey_hotkey_account ( & coldkey, & hotkey, stake. into ( ) , netuid) ;
600600
601601 // amount to recycle
602- let burn_amount = AlphaCurrency :: from ( stake) ;
602+ let burn_amount = AlphaCurrency :: from ( stake / 2 ) ;
603603
604604 // Modify the alpha pool denominator so it's low-precision
605- let denominator = U64F64 :: from_num ( 0.0000001 ) ;
605+ let denominator = U64F64 :: from_num ( 0.00000001 ) ;
606606 TotalHotkeyShares :: < Test > :: insert ( hotkey, netuid, denominator) ;
607607 Alpha :: < Test > :: insert ( ( & hotkey, & coldkey, netuid) , denominator) ;
608608
0 commit comments