mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-22 05:27:57 +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
|
// Safety: staking pallet was removed from relay chain in spec 1_020_006
|
||||||
if (!api.query.staking || !api.query.staking.activeEra) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -172,7 +172,9 @@ function calculateYearlyInflation(stakedPortion: number): number {
|
|||||||
async function computeAndSaveAPY(): Promise<void> {
|
async function computeAndSaveAPY(): Promise<void> {
|
||||||
// Safety: check staking pallet availability before querying
|
// Safety: check staking pallet availability before querying
|
||||||
if (!api.query.staking || !api.query.staking.activeEra) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user