From 1e00398b18309ccd0b4015987bff068707980cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pr=C3=A9vost?= <998369+prevostc@users.noreply.github.com> Date: Sat, 17 Aug 2024 08:58:10 +0200 Subject: [PATCH] Fix logs --- src/classic/utils/classic-data.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/classic/utils/classic-data.ts b/src/classic/utils/classic-data.ts index 3697b36..861bd01 100644 --- a/src/classic/utils/classic-data.ts +++ b/src/classic/utils/classic-data.ts @@ -184,13 +184,13 @@ export function fetchClassicData(classic: Classic): ClassicData { if (!vaultTotalSupplyRes.reverted) { vaultSharesTotalSupply = vaultTotalSupplyRes.value.toBigInt() } else { - log.error("Failed to fetch vaultSharesTotalSupply for Classic {}", [classic.id.toString()]) + log.error("Failed to fetch vaultSharesTotalSupply for Classic {}", [classic.id.toHexString()]) } let underlyingAmount = ZERO_BI if (!underlyingTokenBalanceRes.reverted) { underlyingAmount = underlyingTokenBalanceRes.value.toBigInt() } else { - log.error("Failed to fetch underlyingAmount for Classic {}", [classic.id.toString()]) + log.error("Failed to fetch underlyingAmount for Classic {}", [classic.id.toHexString()]) } // and have a native price in USD @@ -214,7 +214,7 @@ export function fetchClassicData(classic: Classic): ClassicData { throw new Error("Unsupported price oracle type") } } else { - log.error("Failed to fetch nativeToUSDPrice for Classic {}", [classic.id.toString()]) + log.error("Failed to fetch nativeToUSDPrice for Classic {}", [classic.id.toHexString()]) } let underlyingToNativePrice = ZERO_BI