diff --git a/main/src/modules/PolkadotStakingProcessor/helpers/polkadot.ts b/main/src/modules/PolkadotStakingProcessor/helpers/polkadot.ts index d10be662..579d6af1 100644 --- a/main/src/modules/PolkadotStakingProcessor/helpers/polkadot.ts +++ b/main/src/modules/PolkadotStakingProcessor/helpers/polkadot.ts @@ -203,7 +203,10 @@ export class PolkadotStakingProcessorPolkadotHelper { ): Promise<[any, Exposure, ValidatorPrefs]> { const apiAtBlock = await this.polkadotApi.at(blockHash) const runtime: any = await apiAtBlock.query.system.lastRuntimeUpgrade() - if (runtime.unwrap().specVersion.toNumber() >= 1002000 || environment.NETWORK === 'avail') { + if (runtime.unwrap().specVersion.toNumber() >= 1002000 || + (environment.NETWORK === 'vara' && runtime.unwrap().specVersion.toNumber() >= 1500) || + environment.NETWORK === 'avail' + ) { this.logger.info(`Era: ${eraId}. getStakersInfoNew`) return this.getStakersInfoNew(apiAtBlock, eraId, validatorAccountId) } else {