Skip to content

Commit

Permalink
only includeVamm for perp market
Browse files Browse the repository at this point in the history
  • Loading branch information
wphan committed Sep 27, 2023
1 parent 09c52d4 commit 8c81d84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
? [
Expand Down Expand Up @@ -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' &&
Expand Down

0 comments on commit 8c81d84

Please sign in to comment.