From 2739272c47c10e96431df9dc796678721f3b3c78 Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 6 Dec 2023 19:02:19 -0500 Subject: [PATCH] remove dead comments; update goerli poolinfoutils multi address --- src/utils/constants.ts | 2 +- src/utils/pool/pool.ts | 2 -- tests/utils/mock-contract-calls.ts | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 7f22c24..f3b72a0 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -35,7 +35,7 @@ poolInfoUtilsAddressTable.set('goerli', Address.fromString('0x08F304cBeA7FAF48C9 poolInfoUtilsAddressTable.set('mumbai', Address.fromString('0x39250241CC84Dadb1cDFE3A1a717631e2aA603eB')) poolInfoUtilsAddressTable.set('ganache', Address.fromString('0xab56A77bDFe82b36875e92CE717fE533C1709A9D')) export const poolInfoUtilsMulticallAddressTable = new TypedMap() -poolInfoUtilsMulticallAddressTable.set('goerli', Address.fromString('0x12874db433dBF1D0f3c73B39F96B009093A56E0E')) +poolInfoUtilsMulticallAddressTable.set('goerli', Address.fromString('0xc0374Fd9d3824C6ad9866df4043469CE6fe45d8D')) poolInfoUtilsMulticallAddressTable.set('ganache', Address.fromString('0x1d00b2f5861457F8503a481774903E36872Ea17d')) export const positionManagerAddressTable = new TypedMap() positionManagerAddressTable.set('goerli', Address.fromString('0xC4114D90F51960854ab574297Cf7CC131d445F29')) diff --git a/src/utils/pool/pool.ts b/src/utils/pool/pool.ts index b652b9f..2b0f35d 100644 --- a/src/utils/pool/pool.ts +++ b/src/utils/pool/pool.ts @@ -246,9 +246,7 @@ export function updatePool(pool: Pool): void { const meaningfulPriceIndex = max(poolPricesInfo.lupIndex.toU32(), poolPricesInfo.htpIndex.toU32()) const poolBalanceDetails = getPoolBalanceDetails(pool, BigInt.fromI32(meaningfulPriceIndex)) pool.quoteTokenBalance = wadToDecimal(poolBalanceDetails.quoteTokenBalance) - // FIXME: If isNFT then don't convert wadToDecimal? pool.collateralBalance = wadToDecimal(poolBalanceDetails.collateralTokenBalance) - // FIXME: update t0debt -> need to take into account pending debt? // update pool debt info pool.t0debt = wadToDecimal(poolBalanceDetails.debt) diff --git a/tests/utils/mock-contract-calls.ts b/tests/utils/mock-contract-calls.ts index ad2d650..25375ce 100644 --- a/tests/utils/mock-contract-calls.ts +++ b/tests/utils/mock-contract-calls.ts @@ -455,7 +455,6 @@ export function mockPoolInfoUtilsPoolUpdateCalls(pool: Address, params: PoolMock params.lupIndex ) const expectedRatesAndFeesInfo = new RatesAndFees( - // FIXME: set correct lim value here BigInt.fromString("10000000000000000"), // 0.01 * 1e18 BigInt.fromString("850000000000000000"), // 0.85 * 1e18 BigInt.fromString("50000000000000000") // 0.05 * 1e18