attach ts and send ack on subscribe
This commit is contained in:
@@ -140,9 +140,13 @@ export const addMarketSlotToResponse = (
|
||||
): void => {
|
||||
let marketSlot: number;
|
||||
if (isVariant(marketType, 'perp')) {
|
||||
marketSlot = driftClient.accountSubscriber.getMarketAccountAndSlot(marketIndex).slot;
|
||||
marketSlot =
|
||||
driftClient.accountSubscriber.getMarketAccountAndSlot(marketIndex).slot;
|
||||
} else {
|
||||
marketSlot = driftClient.accountSubscriber.getSpotMarketAccountAndSlot(marketIndex).slot;
|
||||
marketSlot =
|
||||
driftClient.accountSubscriber.getSpotMarketAccountAndSlot(
|
||||
marketIndex
|
||||
).slot;
|
||||
}
|
||||
response['marketSlot'] = marketSlot;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user