File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
catalyst-toolbox/src/rewards Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,6 @@ mod tests {
170170 )
171171 . unwrap ( ) ;
172172 if number_of_voters > 0 {
173- // number of voters always 0 ???
174173 assert_are_close ( rewards. values ( ) . sum :: < Rewards > ( ) , Rewards :: ONE )
175174 } else {
176175 assert_eq ! ( rewards. len( ) , 0 ) ;
@@ -285,8 +284,6 @@ mod tests {
285284 . iter( )
286285 . all( |addr| all_rewards. remove( addr) . unwrap( ) > Rewards :: ZERO ) ) ;
287286
288- // partial test: does not check that rewards for addresses that delegated to both
289- // active and inactive voters only come from active ones -> how to implement this?
290287 for ( _, voting_key) in inactive_voters_keys {
291288 for contrib in snapshot. contributions_for_voting_key ( voting_key. clone ( ) ) {
292289 assert ! ( all_rewards. get( & contrib. reward_address) . is_none( ) ) ;
You can’t perform that action at this time.
0 commit comments