fix dlob publisher metrics n health slot
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user