Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ironoa committed Apr 25, 2024
1 parent f0576a7 commit 63e2d21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/claimer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ export class Claimer {
})

const claimedIdx: Set<number> = new Set<number>
const stakingQuey = await this.api.derive.staking.query(validatorAddress,{withLedger:true, withClaimedRewardsEras: true})
stakingQuey.stakingLedger.legacyClaimedRewards.forEach(r=>claimedIdx.add(r.toNumber()))
stakingQuey.claimedRewardsEras.forEach(r=>claimedIdx.add(r.toNumber()))
const stakingQuery = await this.api.derive.staking.query(validatorAddress,{withLedger:true, withClaimedRewardsEras: true})
stakingQuery.stakingLedger.legacyClaimedRewards.forEach(r=>claimedIdx.add(r.toNumber()))
stakingQuery.claimedRewardsEras.forEach(r=>claimedIdx.add(r.toNumber()))

const unclaimed: number[] = Array.from(setDifference(ownRewardsIdx,claimedIdx))
this.logger.debug(unclaimed.toString())
Expand Down

0 comments on commit 63e2d21

Please sign in to comment.