We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 065b633 commit 6b7a80aCopy full SHA for 6b7a80a
sdk/src/math/auction.ts
@@ -26,6 +26,10 @@ export function isFallbackAvailableLiquiditySource(
26
return true;
27
}
28
29
+ if ((order.bitFlags & OrderBitFlag.SafeTriggerOrder) !== 0) {
30
+ return true;
31
+ }
32
+
33
return new BN(slot).sub(order.slot).gt(new BN(minAuctionDuration));
34
35
sdk/src/math/orders.ts
@@ -245,7 +245,7 @@ export function isFillableByVAMM(
245
market,
246
mmOraclePriceData,
247
slot
248
- ).gte(market.amm.minOrderSize)) ||
+ ).gt(ZERO)) ||
249
isOrderExpired(order, ts)
250
);
251
0 commit comments