@@ -466,7 +466,7 @@ describe('Rewards', () => {
466
466
await helpers . mine ( ISSUANCE_RATE_PERIODS )
467
467
468
468
// Rewards
469
- const contractRewards = await rewardsManager . getRewards ( allocationID1 )
469
+ const contractRewards = await rewardsManager . getRewards ( staking . address , allocationID1 )
470
470
471
471
// We trust using this function in the test because we tested it
472
472
// standalone in a previous test
@@ -504,12 +504,12 @@ describe('Rewards', () => {
504
504
await staking . connect ( indexer1 ) . closeAllocation ( allocationID1 , randomHexBytes ( ) )
505
505
506
506
// Rewards
507
- const contractRewards = await rewardsManager . getRewards ( allocationID1 )
507
+ const contractRewards = await rewardsManager . getRewards ( staking . address , allocationID1 )
508
508
expect ( contractRewards ) . eq ( BigNumber . from ( 0 ) )
509
509
} )
510
510
it ( 'rewards should be zero if the allocation does not exist' , async function ( ) {
511
511
// Rewards
512
- const contractRewards = await rewardsManager . getRewards ( allocationIDNull )
512
+ const contractRewards = await rewardsManager . getRewards ( staking . address , allocationIDNull )
513
513
expect ( contractRewards ) . eq ( BigNumber . from ( 0 ) )
514
514
} )
515
515
} )
@@ -1026,7 +1026,7 @@ describe('Rewards', () => {
1026
1026
await staking . connect ( assetHolder ) . collect ( tokensToCollect , allocationID1 )
1027
1027
1028
1028
// check rewards diff
1029
- await rewardsManager . getRewards ( allocationID1 ) . then ( formatGRT )
1029
+ await rewardsManager . getRewards ( staking . address , allocationID1 ) . then ( formatGRT )
1030
1030
1031
1031
await helpers . mine ( )
1032
1032
const accrual = await getRewardsAccrual ( subgraphs )
0 commit comments