mirror of
https://github.com/ZigZagExchange/zksync-lite-market-maker.git
synced 2025-12-18 15:44:29 +01:00
use side here
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user