@triadxyz/triad-protocol 2.9.6-beta → 2.9.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 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -952,7 +952,7 @@ class TriadProtocolClient {
952
952
  .div(new bn_js_1.default(1000000));
953
953
  adjustedPrice = orderPrice.add(fee);
954
954
  }
955
- const maxSharesForPrice = (0, helpers_1.roundUp)(remainingUSDC)
955
+ const maxSharesForPrice = remainingUSDC
956
956
  .mul(new bn_js_1.default(Math.pow(10, this.decimals)))
957
957
  .div(adjustedPrice);
958
958
  const sharesToBuy = bn_js_1.default.min((0, helpers_1.roundUp)(maxSharesForPrice), availableShares);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.9.6-beta",
3
+ "version": "2.9.7-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",