From 8c81d8495f0593e39a3b6ee0b4a18a1a2886359d Mon Sep 17 00:00:00 2001 From: wphan Date: Wed, 27 Sep 2023 12:23:25 -0700 Subject: [PATCH] only includeVamm for perp market --- src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index c536a83..5f71842 100644 --- a/src/index.ts +++ b/src/index.ts @@ -924,7 +924,7 @@ const main = async () => { marketIndex: normedMarketIndex, marketType: normedMarketType, depth: parseInt(adjustedDepth as string), - includeVamm: `${includeVamm}`.toLowerCase() === 'true', + includeVamm: isSpot ? false : `${includeVamm}`.toLowerCase() === 'true', numVammOrders: parseInt((numVammOrders ?? '100') as string), fallbackL2Generators: isSpot ? [ @@ -1082,7 +1082,9 @@ const main = async () => { marketIndex: normedMarketIndex, marketType: normedMarketType, depth: parseInt(adjustedDepth as string), - includeVamm: `${normedParam['includeVamm']}`.toLowerCase() === 'true', + includeVamm: isSpot + ? false + : `${normedParam['includeVamm']}`.toLowerCase() === 'true', fallbackL2Generators: isSpot ? [ `${normedParam['includePhoenix']}`.toLowerCase() === 'true' &&