Skip to content

Commit

Permalink
polkadot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ironoa committed Apr 24, 2024
1 parent 9e1b411 commit f0576a7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/claimer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,17 @@ export class Claimer {

//bugFix: https://github.com/polkadot-js/api/issues/5859
//temporary solution
const unclaimedFixed = unclaimed.filter(x=>x>6513)
const chainName = (await this.api.rpc.system.chain()).toString().toLowerCase()
const unclaimedFixed = unclaimed.filter(x => {
switch (chainName) {
case "kusama":
return x>6513
case "polkadot":
return x>1419
default:
return true
}
})

validatorInfo.unclaimedPayouts=unclaimedFixed
return unclaimedFixed
Expand Down

0 comments on commit f0576a7

Please sign in to comment.