Skip to content

Commit d134b9b

Browse files
committed
add back line
1 parent 2032794 commit d134b9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdk/src/math/orders.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ export function calculateBaseAssetAmountForAmmToFulfill(
256256
mmOraclePriceData: MMOraclePriceData,
257257
slot: number
258258
): BN {
259+
if (mustBeTriggered(order) && !isTriggered(order)) {
260+
return ZERO;
261+
}
262+
259263
const limitPrice = getLimitPrice(order, mmOraclePriceData, slot);
260264
let baseAssetAmount;
261265

0 commit comments

Comments
 (0)