@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.
Files changed (2) hide show
  1. package/dist/index.js +1 -0
  2. 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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.6.6-beta",
3
+ "version": "2.6.7-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",