Skip to content

Commit

Permalink
remove dead comments; update goerli poolinfoutils multi address
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike committed Dec 7, 2023
1 parent a89dcac commit 2739272
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, Address>()
poolInfoUtilsMulticallAddressTable.set('goerli', Address.fromString('0x12874db433dBF1D0f3c73B39F96B009093A56E0E'))
poolInfoUtilsMulticallAddressTable.set('goerli', Address.fromString('0xc0374Fd9d3824C6ad9866df4043469CE6fe45d8D'))
poolInfoUtilsMulticallAddressTable.set('ganache', Address.fromString('0x1d00b2f5861457F8503a481774903E36872Ea17d'))
export const positionManagerAddressTable = new TypedMap<string, Address>()
positionManagerAddressTable.set('goerli', Address.fromString('0xC4114D90F51960854ab574297Cf7CC131d445F29'))
Expand Down
2 changes: 0 additions & 2 deletions src/utils/pool/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 0 additions & 1 deletion tests/utils/mock-contract-calls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2739272

Please sign in to comment.