@triadxyz/triad-protocol 2.8.0-beta → 2.8.1-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -868,7 +868,7 @@ class TriadProtocolClient {
868
868
  let totalUSDCNeeded = new bn_js_1.default(0);
869
869
  let tempRemainingUSDC = remainingUSDC.clone();
870
870
  for (const order of sortedOrders) {
871
- if (tempRemainingUSDC.lt(new bn_js_1.default(0)))
871
+ if (tempRemainingUSDC.lt(new bn_js_1.default(1000000)))
872
872
  break;
873
873
  if (order.authority === this.program.provider.publicKey.toBase58()) {
874
874
  continue;
@@ -917,7 +917,7 @@ class TriadProtocolClient {
917
917
  addressLookupTableAccounts.push(...swapAddressLookupTableAccounts);
918
918
  }
919
919
  for (const order of sortedOrders) {
920
- if (remainingUSDC.lt(new bn_js_1.default(0)))
920
+ if (remainingUSDC.lt(new bn_js_1.default(1000000)))
921
921
  break;
922
922
  if (order.authority === this.program.provider.publicKey.toBase58()) {
923
923
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.8.0-beta",
3
+ "version": "2.8.1-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",