@triadxyz/triad-protocol 2.6.6-beta → 2.6.7-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 +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -898,6 +898,7 @@ class TriadProtocolClient {
|
|
|
898
898
|
const sharesToSell = bn_js_1.default.min(remainingShares, availableShares);
|
|
899
899
|
if (sharesToSell.lt(new bn_js_1.default(0)))
|
|
900
900
|
continue;
|
|
901
|
+
remainingShares = remainingShares.sub(sharesToSell);
|
|
901
902
|
ixs.push(yield this.program.methods
|
|
902
903
|
.marketAskOrder({
|
|
903
904
|
shares: new bn_js_1.default(sharesToSell),
|