add maxPrice for pre-launch markets
This commit is contained in:
@@ -548,6 +548,7 @@ const main = async (): Promise<void> => {
|
||||
confidence: oracle.confidence.toString(),
|
||||
hasSufficientNumberOfDataPoints:
|
||||
oracle.hasSufficientNumberOfDataPoints,
|
||||
maxPrice: oracle.maxPrice,
|
||||
};
|
||||
if (oracle.twap) {
|
||||
oracleHuman['twap'] = oracle.twap.toString();
|
||||
|
||||
@@ -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?.(),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user