fix dlob publisher metrics n health slot

This commit is contained in:
wphan
2025-07-15 23:33:58 -07:00
parent d325ac823a
commit b2c9e1e520

View File

@@ -574,7 +574,14 @@ const main = async () => {
const oracleDataAndSlot = driftClient.getOracleDataForSpotMarket( const oracleDataAndSlot = driftClient.getOracleDataForSpotMarket(
market.marketIndex market.marketIndex
); );
dlobSlotGauge.setLatestValue(oracleDataAndSlot.slot.toNumber(), { dlobSlotGauge.setLatestValue(slot, {
marketIndex: market.marketIndex,
marketType: 'spot',
marketName: market.marketName,
redisClient: REDIS_CLIENT,
redisPrefix: RedisClientPrefix[REDIS_CLIENT],
});
oracleSlotGauge.setLatestValue(oracleDataAndSlot.slot.toNumber(), {
marketIndex: market.marketIndex, marketIndex: market.marketIndex,
marketType: 'spot', marketType: 'spot',
marketName: market.marketName, marketName: market.marketName,