@@ -335,6 +335,12 @@ benchmarks! {
335
335
let balance_slash = |id| core:: iter:: once(
336
336
<T as BalancesConfig >:: RuntimeEvent :: from( pallet_balances:: Event :: <T >:: Slashed { who: id, amount: slash_amount. into( ) } )
337
337
) ;
338
+ let balance_locked = |id| core:: iter:: once(
339
+ <T as BalancesConfig >:: RuntimeEvent :: from( pallet_balances:: Event :: <T >:: Locked { who: id, amount: slash_amount. into( ) } )
340
+ ) ;
341
+ let balance_unlocked = |id| core:: iter:: once(
342
+ <T as BalancesConfig >:: RuntimeEvent :: from( pallet_balances:: Event :: <T >:: Unlocked { who: id, amount: slash_amount. into( ) } )
343
+ ) ;
338
344
let chill = |id| core:: iter:: once(
339
345
<T as StakingConfig >:: RuntimeEvent :: from( StakingEvent :: <T >:: Chilled { stash: id } )
340
346
) ;
@@ -349,12 +355,15 @@ benchmarks! {
349
355
let slash_events = raw_offenders. into_iter( )
350
356
. flat_map( |offender| {
351
357
let nom_slashes = offender. nominator_stashes. into_iter( ) . flat_map( |nom| {
352
- balance_slash( nom. clone( ) ) . map( Into :: into) . chain( slash( nom) . map( Into :: into) ) . map( Box :: new)
358
+ balance_slash( nom. clone( ) ) . map( Into :: into)
359
+ . chain( balance_unlocked( nom. clone( ) ) . map( Into :: into) )
360
+ . chain( slash( nom) . map( Into :: into) ) . map( Box :: new)
353
361
} ) ;
354
362
355
363
let events = chill( offender. stash. clone( ) ) . map( Into :: into) . map( Box :: new)
356
364
. chain( slash_report( offender. stash. clone( ) ) . map( Into :: into) . map( Box :: new) )
357
365
. chain( balance_slash( offender. stash. clone( ) ) . map( Into :: into) . map( Box :: new) )
366
+ . chain( balance_unlocked( offender. stash. clone( ) ) . map( Into :: into) . map( Box :: new) )
358
367
. chain( slash( offender. stash) . map( Into :: into) . map( Box :: new) )
359
368
. chain( nom_slashes)
360
369
. collect:: <Vec <_>>( ) ;
0 commit comments