@@ -1452,7 +1452,7 @@ fn tier_switching_upward_works_correctly() {
14521452 // Advance some blocks and verify tier 1 rate (1 credit per block)
14531453 run_to_block ( 10 ) ;
14541454 let max_claimable_1 = get_max_claimable ( user. clone ( ) ) ;
1455- assert_eq ! ( max_claimable_1, 10 * 1 , "Should be tier 1 rate" ) ;
1455+ assert_eq ! ( max_claimable_1, 10 , "Should be tier 1 rate" ) ;
14561456 assert_ok ! ( claim_credits( user. clone( ) , max_claimable_1, dave_id_str) ) ;
14571457
14581458 // Add more delegation to reach tier 2 (total 1200 tokens)
@@ -1598,7 +1598,7 @@ fn exact_tier_boundaries_work_correctly() {
15981598 let rate_100 = CreditsPallet :: < Runtime > :: get_current_rate ( 100u128 ) ;
15991599 assert_eq ! ( rate_100, 1 , "Exactly 100 tokens should be tier 1" ) ;
16001600 let max_claimable = get_max_claimable ( user. clone ( ) ) ;
1601- assert_eq ! ( max_claimable, 10 * 1 , "Should earn tier 1 rate" ) ;
1601+ assert_eq ! ( max_claimable, 10 , "Should earn tier 1 rate" ) ;
16021602
16031603 // Test one token below tier 1 boundary (99 tokens)
16041604 let rate_99 = CreditsPallet :: < Runtime > :: get_current_rate ( 99u128 ) ;
@@ -1720,8 +1720,7 @@ fn multiple_delegations_accumulate_tiers_correctly() {
17201720 run_to_block ( 20 ) ;
17211721 let max_claimable_2 = get_max_claimable ( user. clone ( ) ) ;
17221722 assert_eq ! (
1723- max_claimable_2,
1724- 20 * 1 ,
1723+ max_claimable_2, 20 ,
17251724 "Combined delegations should qualify for tier 1 from start"
17261725 ) ;
17271726 assert_ok ! ( claim_credits( user. clone( ) , max_claimable_2, dave_id_str) ) ;
@@ -1837,7 +1836,7 @@ fn security_cannot_manipulate_tier_calculation() {
18371836 // Advance one block and verify normal accrual
18381837 run_to_block ( 11 ) ;
18391838 let max_claimable_3 = get_max_claimable ( user. clone ( ) ) ;
1840- assert_eq ! ( max_claimable_3, 1 * 5 , "Should only accrue for 1 block" ) ;
1839+ assert_eq ! ( max_claimable_3, 5 , "Should only accrue for 1 block" ) ;
18411840
18421841 // Try to claim more than accrued - should fail
18431842 assert_noop ! (
@@ -1918,7 +1917,7 @@ fn concurrent_tier_operations_work_correctly() {
19181917 let claimable1 = get_max_claimable ( user1. clone ( ) ) ;
19191918 let claimable2 = get_max_claimable ( user2. clone ( ) ) ;
19201919
1921- assert_eq ! ( claimable1, 10 * 1 , "User 1 should get tier 1 rate" ) ;
1920+ assert_eq ! ( claimable1, 10 , "User 1 should get tier 1 rate" ) ;
19221921 assert_eq ! ( claimable2, 10 * 5 , "User 2 should get tier 2 rate" ) ;
19231922
19241923 // Both should be able to claim in the same block
@@ -2005,7 +2004,7 @@ fn tier_switching_with_locked_multipliers_works() {
20052004 // The user should be in tier 1 based on total effective stake
20062005 // (150 base * 2 multiplier = 300 effective, which is tier 1)
20072006 let max_claimable = get_max_claimable ( user. clone ( ) ) ;
2008- assert_eq ! ( max_claimable, 10 * 1 , "Should get tier 1 rate with lock multiplier" ) ;
2007+ assert_eq ! ( max_claimable, 10 , "Should get tier 1 rate with lock multiplier" ) ;
20092008 assert_ok ! ( claim_credits( user. clone( ) , max_claimable, dave_id_str) ) ;
20102009 } ) ;
20112010}
0 commit comments