updated SwapOrderStatus with Andrew's changes

This commit is contained in:
tim
2024-08-26 17:27:58 -04:00
parent e0f42f80e7
commit 55397c2b1c
5 changed files with 15 additions and 12 deletions

View File

@@ -178,11 +178,11 @@ export function applyLine(tranche, isMinimum, intercept, slope) {
m = encodeIEE754(m)
b = encodeIEE754(b)
if (isMinimum) {
tranche.minIntercept = b;
tranche.minSlope = m;
tranche.minLine.intercept = b;
tranche.minLine.slope = m;
} else {
tranche.maxIntercept = b;
tranche.maxSlope = m;
tranche.maxLine.intercept = b;
tranche.maxLine.slope = m;
}
tranche.marketOrder = false;
}