From bf0e82f4b0ba8126c43c27cc5b7caea6a929938b Mon Sep 17 00:00:00 2001 From: mendesfabio Date: Tue, 18 Jun 2024 18:37:49 -0300 Subject: [PATCH] fix lint issues --- src/mappings/poolFactory.ts | 2 +- src/mappings/pricing.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mappings/poolFactory.ts b/src/mappings/poolFactory.ts index 2c28117f..4767f2ab 100644 --- a/src/mappings/poolFactory.ts +++ b/src/mappings/poolFactory.ts @@ -22,7 +22,7 @@ import { } from './helpers/misc'; import { updatePoolWeights } from './helpers/weighted'; -import { BigInt, Address, Bytes, ethereum, log } from '@graphprotocol/graph-ts'; +import { BigInt, Address, Bytes, ethereum } from '@graphprotocol/graph-ts'; import { PoolCreated } from '../types/WeightedPoolFactory/WeightedPoolFactory'; import { AaveLinearPoolCreated } from '../types/AaveLinearPoolV3Factory/AaveLinearPoolV3Factory'; diff --git a/src/mappings/pricing.ts b/src/mappings/pricing.ts index 6254fd64..87098c43 100644 --- a/src/mappings/pricing.ts +++ b/src/mappings/pricing.ts @@ -420,6 +420,7 @@ export function handleAnswerUpdated(event: AnswerUpdated): void { } else if (oracle && oracle.divisor !== null && oracle.decimals) { const updatedAnswer = answer .times(BigInt.fromString('10').pow(oracle.decimals as u8)) + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion .div(BigInt.fromString(oracle.divisor!)); token.latestFXPrice = scaleDown(updatedAnswer, 8); } else {