dont check postonlyslide when market ordering
This commit is contained in:
parent
0f6944614d
commit
d5c2c1e2ba
|
@ -643,9 +643,7 @@ export default function AdvancedTradeForm({
|
||||||
let perpOrderPrice: number = orderPrice
|
let perpOrderPrice: number = orderPrice
|
||||||
|
|
||||||
if (isMarketOrder) {
|
if (isMarketOrder) {
|
||||||
if (postOnlySlide) {
|
if (tradeType === 'Market' && maxSlippage) {
|
||||||
perpOrderType = 'postOnlySlide'
|
|
||||||
} else if (tradeType === 'Market' && maxSlippage) {
|
|
||||||
perpOrderType = 'ioc'
|
perpOrderType = 'ioc'
|
||||||
if (side === 'buy') {
|
if (side === 'buy') {
|
||||||
perpOrderPrice = markPrice * (1 + parseFloat(maxSlippage))
|
perpOrderPrice = markPrice * (1 + parseFloat(maxSlippage))
|
||||||
|
@ -658,6 +656,8 @@ export default function AdvancedTradeForm({
|
||||||
} else {
|
} else {
|
||||||
perpOrderType = 'market'
|
perpOrderType = 'market'
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
perpOrderType = postOnlySlide ? 'postOnlySlide' : orderType
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isTriggerOrder) {
|
if (isTriggerOrder) {
|
||||||
|
|
Loading…
Reference in New Issue