@@ -380,7 +380,8 @@ fn single_release_pays_full_escrow_for_100_percent() {
380380 ] ;
381381 let op = BytesN :: random ( & ctx. env ) ;
382382 ctx. events . select_winners ( & id, & winners, & op) ;
383- ctx. events . claim_prize ( & id, & winner, & 1_u32 , & BytesN :: random ( & ctx. env ) ) ;
383+ ctx. events
384+ . claim_prize ( & id, & winner, & 1_u32 , & BytesN :: random ( & ctx. env ) ) ;
384385
385386 let token = token:: Client :: new ( & ctx. env , & ctx. token_addr ) ;
386387 assert_eq ! ( token. balance( & winner) , TOTAL_BUDGET ) ;
@@ -422,9 +423,12 @@ fn multi_position_split_pays_correct_amounts() {
422423 ] ;
423424 let op = BytesN :: random ( & ctx. env ) ;
424425 ctx. events . select_winners ( & id, & winners, & op) ;
425- ctx. events . claim_prize ( & id, & w1, & 1_u32 , & BytesN :: random ( & ctx. env ) ) ;
426- ctx. events . claim_prize ( & id, & w2, & 2_u32 , & BytesN :: random ( & ctx. env ) ) ;
427- ctx. events . claim_prize ( & id, & w3, & 3_u32 , & BytesN :: random ( & ctx. env ) ) ;
426+ ctx. events
427+ . claim_prize ( & id, & w1, & 1_u32 , & BytesN :: random ( & ctx. env ) ) ;
428+ ctx. events
429+ . claim_prize ( & id, & w2, & 2_u32 , & BytesN :: random ( & ctx. env ) ) ;
430+ ctx. events
431+ . claim_prize ( & id, & w3, & 3_u32 , & BytesN :: random ( & ctx. env ) ) ;
428432
429433 let token = token:: Client :: new ( & ctx. env , & ctx. token_addr ) ;
430434 let escrow = TOTAL_BUDGET ; // all positions filled at create time
@@ -469,9 +473,12 @@ fn three_way_33_33_34_split_rounding() {
469473 ] ;
470474 let op = BytesN :: random ( & ctx. env ) ;
471475 ctx. events . select_winners ( & id, & winners, & op) ;
472- ctx. events . claim_prize ( & id, & w1, & 1_u32 , & BytesN :: random ( & ctx. env ) ) ;
473- ctx. events . claim_prize ( & id, & w2, & 2_u32 , & BytesN :: random ( & ctx. env ) ) ;
474- ctx. events . claim_prize ( & id, & w3, & 3_u32 , & BytesN :: random ( & ctx. env ) ) ;
476+ ctx. events
477+ . claim_prize ( & id, & w1, & 1_u32 , & BytesN :: random ( & ctx. env ) ) ;
478+ ctx. events
479+ . claim_prize ( & id, & w2, & 2_u32 , & BytesN :: random ( & ctx. env ) ) ;
480+ ctx. events
481+ . claim_prize ( & id, & w3, & 3_u32 , & BytesN :: random ( & ctx. env ) ) ;
475482
476483 let token = token:: Client :: new ( & ctx. env , & ctx. token_addr ) ;
477484 let escrow = TOTAL_BUDGET ;
@@ -503,7 +510,8 @@ fn partial_position_fill_leaves_residual_escrow() {
503510 ] ;
504511 let op = BytesN :: random ( & ctx. env ) ;
505512 ctx. events . select_winners ( & id, & winners, & op) ;
506- ctx. events . claim_prize ( & id, & w1, & 1_u32 , & BytesN :: random ( & ctx. env ) ) ;
513+ ctx. events
514+ . claim_prize ( & id, & w1, & 1_u32 , & BytesN :: random ( & ctx. env ) ) ;
507515
508516 let token = token:: Client :: new ( & ctx. env , & ctx. token_addr ) ;
509517 assert_eq ! ( token. balance( & w1) , TOTAL_BUDGET * 60 / 100 ) ;
@@ -546,7 +554,8 @@ fn partner_funds_grow_winner_payout() {
546554 ] ;
547555 let op = BytesN :: random ( & ctx. env ) ;
548556 ctx. events . select_winners ( & id, & winners, & op) ;
549- ctx. events . claim_prize ( & id, & winner, & 1_u32 , & BytesN :: random ( & ctx. env ) ) ;
557+ ctx. events
558+ . claim_prize ( & id, & winner, & 1_u32 , & BytesN :: random ( & ctx. env ) ) ;
550559
551560 let token = token:: Client :: new ( & ctx. env , & ctx. token_addr ) ;
552561 assert_eq ! ( token. balance( & winner) , escrow_at_select) ;
@@ -644,9 +653,7 @@ fn grant_milestone_out_of_range_rejected() {
644653 ctx. events . select_winners ( & id, & winners, & op_sel) ;
645654
646655 let op = BytesN :: random ( & ctx. env ) ;
647- let res = ctx
648- . events
649- . try_claim_milestone ( & id, & recipient, & 2 , & op) ;
656+ let res = ctx. events . try_claim_milestone ( & id, & recipient, & 2 , & op) ;
650657 assert ! ( res. is_err( ) , "milestone >= total_milestones must revert" ) ;
651658}
652659
@@ -1055,7 +1062,8 @@ fn fee_and_winner_balances_consistent() {
10551062 ] ;
10561063 let op_sel = BytesN :: random ( & ctx. env ) ;
10571064 ctx. events . select_winners ( & id, & winners, & op_sel) ;
1058- ctx. events . claim_prize ( & id, & winner, & 1_u32 , & BytesN :: random ( & ctx. env ) ) ;
1065+ ctx. events
1066+ . claim_prize ( & id, & winner, & 1_u32 , & BytesN :: random ( & ctx. env ) ) ;
10591067
10601068 assert_eq ! ( token. balance( & winner) , escrow) ;
10611069 assert_eq ! ( token. balance( & ctx. fee_account) , create_fee + contrib_fee) ;
0 commit comments