@triadxyz/triad-protocol 2.9.5-beta → 2.9.6-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.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -886,7 +886,7 @@ class TriadProtocolClient {
|
|
|
886
886
|
let tempRemainingUSDC = remainingUSDC.clone();
|
|
887
887
|
if (isTrdPayout) {
|
|
888
888
|
for (const order of sortedOrders) {
|
|
889
|
-
if (tempRemainingUSDC.
|
|
889
|
+
if (tempRemainingUSDC.lte(new bn_js_1.default(0)))
|
|
890
890
|
break;
|
|
891
891
|
if (order.authority === this.program.provider.publicKey.toBase58()) {
|
|
892
892
|
continue;
|
|
@@ -935,7 +935,7 @@ class TriadProtocolClient {
|
|
|
935
935
|
addressLookupTableAccounts.push(...swapAddressLookupTableAccounts);
|
|
936
936
|
}
|
|
937
937
|
for (const order of sortedOrders) {
|
|
938
|
-
if (remainingUSDC.
|
|
938
|
+
if (remainingUSDC.lte(new bn_js_1.default(0)))
|
|
939
939
|
break;
|
|
940
940
|
if (order.authority === this.program.provider.publicKey.toBase58()) {
|
|
941
941
|
continue;
|