auctionParams: add forceUpToSlippage
This commit is contained in:
@@ -937,6 +937,7 @@ const main = async (): Promise<void> => {
|
|||||||
auctionEndPriceOffsetFrom,
|
auctionEndPriceOffsetFrom,
|
||||||
additionalEndPriceBuffer,
|
additionalEndPriceBuffer,
|
||||||
userOrderId,
|
userOrderId,
|
||||||
|
forceUpToSlippage,
|
||||||
} = req.query;
|
} = req.query;
|
||||||
|
|
||||||
// Validate required parameters
|
// Validate required parameters
|
||||||
@@ -1001,6 +1002,7 @@ const main = async (): Promise<void> => {
|
|||||||
auctionEndPriceOffsetFrom: auctionEndPriceOffsetFrom as any,
|
auctionEndPriceOffsetFrom: auctionEndPriceOffsetFrom as any,
|
||||||
additionalEndPriceBuffer: additionalEndPriceBuffer as string,
|
additionalEndPriceBuffer: additionalEndPriceBuffer as string,
|
||||||
userOrderId: parseNumber(userOrderId as string),
|
userOrderId: parseNumber(userOrderId as string),
|
||||||
|
forceUpToSlippage: parseBoolean(forceUpToSlippage as string),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Only add non-undefined values
|
// Only add non-undefined values
|
||||||
|
|||||||
@@ -21,4 +21,5 @@ export type AuctionParamArgs = {
|
|||||||
auctionEndPriceOffsetFrom?: TradeOffsetPrice;
|
auctionEndPriceOffsetFrom?: TradeOffsetPrice;
|
||||||
additionalEndPriceBuffer?: string;
|
additionalEndPriceBuffer?: string;
|
||||||
userOrderId?: number;
|
userOrderId?: number;
|
||||||
|
forceUpToSlippage?: boolean;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -985,7 +985,7 @@ export const mapToMarketOrderParams = async (
|
|||||||
slippageTolerance: processedSlippageTolerance,
|
slippageTolerance: processedSlippageTolerance,
|
||||||
isOracleOrder: params.isOracleOrder,
|
isOracleOrder: params.isOracleOrder,
|
||||||
additionalEndPriceBuffer,
|
additionalEndPriceBuffer,
|
||||||
forceUpToSlippage: true,
|
forceUpToSlippage: params.forceUpToSlippage,
|
||||||
userOrderId: params.userOrderId,
|
userOrderId: params.userOrderId,
|
||||||
},
|
},
|
||||||
estimatedPrices,
|
estimatedPrices,
|
||||||
|
|||||||
Reference in New Issue
Block a user