From 9cf4847b1a6194ada787f66ba0a906a8785f947c Mon Sep 17 00:00:00 2001 From: Dhruv Chauhan Date: Tue, 10 Dec 2024 18:32:20 +0530 Subject: [PATCH] nit --- .../mountain-protocol/src/mappings/handlers.ts | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/subgraphs/mountain-protocol/src/mappings/handlers.ts b/subgraphs/mountain-protocol/src/mappings/handlers.ts index 9ad4d3264d..fa9538bcb9 100644 --- a/subgraphs/mountain-protocol/src/mappings/handlers.ts +++ b/subgraphs/mountain-protocol/src/mappings/handlers.ts @@ -1,4 +1,4 @@ -import { Address, BigDecimal, BigInt } from "@graphprotocol/graph-ts"; +import { Address, BigDecimal, BigInt, log } from "@graphprotocol/graph-ts"; import { Versions } from "../versions"; import { NetworkConfigs } from "../../configurations/configure"; @@ -6,16 +6,8 @@ import { NetworkConfigs } from "../../configurations/configure"; import { SDK } from "../sdk/protocols/generic"; import { ProtocolConfig, TokenPricer } from "../sdk/protocols/config"; import { TokenInitializer, TokenParams } from "../sdk/protocols/generic/tokens"; -import { bigDecimalToBigInt, bigIntToBigDecimal } from "../sdk/util/numbers"; -import { - BIGDECIMAL_ONE, - BIGDECIMAL_ZERO, - BIGINT_MINUS_ONE, - BIGINT_ZERO, - ETH_ADDRESS, - INT_ZERO, - ZERO_ADDRESS, -} from "../sdk/util/constants"; +import { bigIntToBigDecimal } from "../sdk/util/numbers"; +import { BIGDECIMAL_ONE, ETH_ADDRESS, INT_ZERO } from "../sdk/util/constants"; import { Transfer, USDM } from "../../generated/USDM/USDM"; import { _ERC20 } from "../../generated/USDM/_ERC20"; @@ -30,6 +22,7 @@ const conf = new ProtocolConfig( class Pricer implements TokenPricer { getTokenPrice(token: Token): BigDecimal { + log.debug("[getTokenPrice] token: {}", [token.id.toHexString()]); return BIGDECIMAL_ONE; }