mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-21 23:37:56 +00:00
Fix Prettier formatting
This commit is contained in:
@@ -32,7 +32,9 @@ export async function handleRelayBlock(block: SubstrateBlock): Promise<void> {
|
||||
|
||||
// Safety: staking pallet was removed from relay chain in spec 1_020_006
|
||||
if (!api.query.staking || !api.query.staking.activeEra) {
|
||||
logger.info("Staking pallet not available on relay chain - skipping relay staker init");
|
||||
logger.info(
|
||||
"Staking pallet not available on relay chain - skipping relay staker init",
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -172,7 +172,9 @@ function calculateYearlyInflation(stakedPortion: number): number {
|
||||
async function computeAndSaveAPY(): Promise<void> {
|
||||
// Safety: check staking pallet availability before querying
|
||||
if (!api.query.staking || !api.query.staking.activeEra) {
|
||||
logger.warn("Staking pallet not available on this chain - skipping APY computation");
|
||||
logger.warn(
|
||||
"Staking pallet not available on this chain - skipping APY computation",
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user