add maxPrice for pre-launch markets
This commit is contained in:
@@ -548,6 +548,7 @@ const main = async (): Promise<void> => {
|
|||||||
confidence: oracle.confidence.toString(),
|
confidence: oracle.confidence.toString(),
|
||||||
hasSufficientNumberOfDataPoints:
|
hasSufficientNumberOfDataPoints:
|
||||||
oracle.hasSufficientNumberOfDataPoints,
|
oracle.hasSufficientNumberOfDataPoints,
|
||||||
|
maxPrice: oracle.maxPrice,
|
||||||
};
|
};
|
||||||
if (oracle.twap) {
|
if (oracle.twap) {
|
||||||
oracleHuman['twap'] = oracle.twap.toString();
|
oracleHuman['twap'] = oracle.twap.toString();
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ type SerializableOraclePriceData = {
|
|||||||
hasSufficientNumberOfDataPoints: boolean;
|
hasSufficientNumberOfDataPoints: boolean;
|
||||||
twap?: string;
|
twap?: string;
|
||||||
twapConfidence?: string;
|
twapConfidence?: string;
|
||||||
|
maxPrice?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
const getSerializableOraclePriceData = (
|
const getSerializableOraclePriceData = (
|
||||||
@@ -82,6 +83,7 @@ const getSerializableOraclePriceData = (
|
|||||||
oraclePriceData.hasSufficientNumberOfDataPoints,
|
oraclePriceData.hasSufficientNumberOfDataPoints,
|
||||||
twap: oraclePriceData.twap?.toString?.(),
|
twap: oraclePriceData.twap?.toString?.(),
|
||||||
twapConfidence: oraclePriceData.twapConfidence?.toString?.(),
|
twapConfidence: oraclePriceData.twapConfidence?.toString?.(),
|
||||||
|
maxPrice: oraclePriceData.maxPrice?.toString?.(),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user