diff --git a/src/mappings/pool/initialize.ts b/src/mappings/pool/initialize.ts index 3e7c56a0..86a14cf2 100644 --- a/src/mappings/pool/initialize.ts +++ b/src/mappings/pool/initialize.ts @@ -9,7 +9,7 @@ import { MINIMUM_ETH_LOCKED, STABLE_COINS, STABLECOIN_IS_TOKEN0, - USDC_WETH_03_POOL, + USDC_WETH_05_POOL, WETH_ADDRESS, } from '../../utils/pricing' @@ -19,7 +19,7 @@ export function handleInitialize(event: Initialize): void { export function handleInitializeHelper( event: Initialize, - stablecoinWrappedNativePoolAddress: string = USDC_WETH_03_POOL, + stablecoinWrappedNativePoolAddress: string = USDC_WETH_05_POOL, stablecoinIsToken0: boolean = STABLECOIN_IS_TOKEN0, wrappedNativeAddress: string = WETH_ADDRESS, stablecoinAddresses: string[] = STABLE_COINS, diff --git a/src/utils/pricing.ts b/src/utils/pricing.ts index 2808d315..a0c40d30 100644 --- a/src/utils/pricing.ts +++ b/src/utils/pricing.ts @@ -30,7 +30,7 @@ export function sqrtPriceX96ToTokenPrices(sqrtPriceX96: BigInt, token0: Token, t export function getEthPriceInUSD( stablecoinWrappedNativePoolAddress: string = USDC_WETH_05_POOL, - stablecoinIsToken0: boolean = false, // true is stablecoin is token0, false if stablecoin is token1 + stablecoinIsToken0: boolean = STABLECOIN_IS_TOKEN0, // true is stablecoin is token0, false if stablecoin is token1 ): BigDecimal { const stablecoinWrappedNativePool = Pool.load(stablecoinWrappedNativePoolAddress) if (stablecoinWrappedNativePool !== null) { diff --git a/src/utils/staticTokenDefinition.ts b/src/utils/staticTokenDefinition.ts index f64e08d7..9113c65c 100644 --- a/src/utils/staticTokenDefinition.ts +++ b/src/utils/staticTokenDefinition.ts @@ -10,7 +10,7 @@ export class StaticTokenDefinition { export const getStaticDefinition = ( tokenAddress: Address, - staticDefinitions: Array + staticDefinitions: Array, ): StaticTokenDefinition | null => { const tokenAddressHex = tokenAddress.toHexString()