Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mendesfabio committed Jun 18, 2024
1 parent 19ce820 commit bf0e82f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/mappings/poolFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions src/mappings/pricing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bf0e82f

Please sign in to comment.