updated SwapOrderStatus with Andrew's changes
This commit is contained in:
@@ -82,8 +82,14 @@ export function newTranche({
|
||||
} = {}) {
|
||||
if( minIntercept === 0 && minSlope === 0 && maxIntercept === 0 && maxSlope === 0 )
|
||||
marketOrder = true
|
||||
if( marketOrder )
|
||||
if( marketOrder ) {
|
||||
if (minIntercept !== 0 || minSlope !== 0 || maxIntercept !== 0 || maxSlope !== 0)
|
||||
console.warn('Ignoring line information in a market order')
|
||||
minIntercept = encodeIEE754(slippage) // this is the slippage field for market orders
|
||||
minSlope = 0
|
||||
maxIntercept = 0
|
||||
maxSlope = 0
|
||||
}
|
||||
else {
|
||||
minIntercept = encodeIEE754(minIntercept)
|
||||
minSlope = encodeIEE754(minSlope)
|
||||
|
||||
Reference in New Issue
Block a user