Merge pull request #70 from drift-labs/master

sending acks
This commit is contained in:
Nour Alharithi
2024-01-19 13:56:09 -08:00
committed by GitHub
3 changed files with 15 additions and 5 deletions

View File

@@ -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;
};