use side here

This commit is contained in:
TrooperCrypto
2022-03-01 00:29:28 +01:00
parent b498572969
commit 1da3e31e29

View File

@@ -273,7 +273,7 @@ function genQuote(chainId, marketId, side, baseQuantity) {
const mmConfig = MM_CONFIG.pairs[marketId];
const mmSide = mmConfig.side || 'd';
if (mmConfig.side !== 'd' && mmConfig.side === side) {
if (mmSide !== 'd' && mmSide === side) {
throw new Error("badside");
}
const primaryPrice = PRICE_FEEDS[mmConfig.priceFeedPrimary];