From d706fc2d3134679a7bef7fbdf8483e6280db0894 Mon Sep 17 00:00:00 2001 From: gerg Date: Mon, 25 Nov 2024 20:55:16 -0500 Subject: [PATCH] change LBParams to LbpParams to reflect the naming in the schema file --- subgraphs/v3-pools/src/mappings/lbpool.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/subgraphs/v3-pools/src/mappings/lbpool.ts b/subgraphs/v3-pools/src/mappings/lbpool.ts index 8db3951..1a424a2 100644 --- a/subgraphs/v3-pools/src/mappings/lbpool.ts +++ b/subgraphs/v3-pools/src/mappings/lbpool.ts @@ -3,20 +3,20 @@ import { Address, BigDecimal, Bytes } from "@graphprotocol/graph-ts"; import { handlePoolCreated, PoolType } from "./common"; import { PoolCreated } from "../types/LBPoolFactory/BasePoolFactory"; import { LBPool } from "../types/LBPoolFactory/LBPool"; -import { LBParams } from "../types/schema"; +import { LbpParams } from "../types/schema"; import { scaleDown } from "../helpers/math"; function handleLBPoolParams(poolAddress: Address): Bytes { let lbPool = LBPool.bind(poolAddress); let weightsResult = lbPool.try_getNormalizedWeights(); - let lbParams = new lbParams(poolAddress); + let lbpParams = new LbpParams(poolAddress); if (lbResult.reverted) { - lbParams.weights = weightsResult.value.map((weight) => + lbpParams.weights = weightsResult.value.map((weight) => scaleDown(weight, 18) ); } - lbParams.save(); - return lbParams.id; + lbpParams.save(); + return lbpParams.id; } export function handleLBPoolCreated(event: PoolCreated): void { @@ -26,6 +26,6 @@ export function handleLBPoolCreated(event: PoolCreated): void { PoolType.LBPool, 1, handleLBPoolParams, - "lbParams" + "lbpParams" ); }