@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.
- package/dist/index.js +1 -1
- 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 =
|
|
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);
|