fix 0 market

This commit is contained in:
wphan
2023-12-27 12:41:37 -08:00
parent 29a71c4ec5
commit e8d0a7127d
2 changed files with 2 additions and 3 deletions

View File

@@ -324,8 +324,7 @@ const main = async () => {
const initAllMarketSubscribersStart = Date.now();
MARKET_SUBSCRIBERS = await initializeAllMarketSubscribers(driftClient);
logger.info(
`All market subscribers initialized in ${
Date.now() - initAllMarketSubscribersStart
`All market subscribers initialized in ${Date.now() - initAllMarketSubscribersStart
} ms`
);

View File

@@ -47,7 +47,7 @@ export function parsePositiveIntArray(
.split(separator)
.map((s) => s.trim())
.map((s) => parseInt(s))
.filter((n) => !isNaN(n) && n > 0);
.filter((n) => !isNaN(n) && n >= 0);
}
export const getOracleForMarket = (