From 0d5100c6d6f9a1cc6fdfe9f97c0d97b4bc0a69bc Mon Sep 17 00:00:00 2001 From: lowkeynicc Date: Mon, 25 Mar 2024 16:16:58 -0400 Subject: [PATCH] add maxPrice for pre-launch markets --- src/index.ts | 1 + src/utils/utils.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index c54604d..e88326d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -548,6 +548,7 @@ const main = async (): Promise => { confidence: oracle.confidence.toString(), hasSufficientNumberOfDataPoints: oracle.hasSufficientNumberOfDataPoints, + maxPrice: oracle.maxPrice, }; if (oracle.twap) { oracleHuman['twap'] = oracle.twap.toString(); diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 2c958a6..bf0df1e 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -69,6 +69,7 @@ type SerializableOraclePriceData = { hasSufficientNumberOfDataPoints: boolean; twap?: string; twapConfidence?: string; + maxPrice?: string; }; const getSerializableOraclePriceData = ( @@ -82,6 +83,7 @@ const getSerializableOraclePriceData = ( oraclePriceData.hasSufficientNumberOfDataPoints, twap: oraclePriceData.twap?.toString?.(), twapConfidence: oraclePriceData.twapConfidence?.toString?.(), + maxPrice: oraclePriceData.maxPrice?.toString?.(), }; };