Skip to content

Commit d22096a

Browse files
committed
Merge branch 'mastetr' into mainnet-beta
2 parents d376461 + b2ab5f1 commit d22096a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,9 @@ export function getMarketsAndOracleInfosToLoad(
15181518
if (!perpMarketConfig) {
15191519
throw new Error(`Perp market config for ${idx} not found`);
15201520
}
1521-
const oracleKey = perpMarketConfig.oracle.toBase58();
1521+
const oracleKey =
1522+
perpMarketConfig.oracle.toBase58() +
1523+
getVariant(perpMarketConfig.oracleSource);
15221524
if (!oraclesTracked.has(oracleKey)) {
15231525
logger.info(`Tracking oracle ${oracleKey} for perp market ${idx}`);
15241526
oracleInfos.push({

0 commit comments

Comments
 (0)