@triadxyz/triad-protocol 2.6.2-beta → 2.6.3-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 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -831,6 +831,7 @@ class TriadProtocolClient {
|
|
|
831
831
|
.mul(new bn_js_1.default(Math.pow(10, this.decimals)))
|
|
832
832
|
.div(adjustedPrice);
|
|
833
833
|
const sharesToBuy = bn_js_1.default.min(maxSharesForPrice, availableShares);
|
|
834
|
+
console.log('sharesToBuy', sharesToBuy.toString());
|
|
834
835
|
if (sharesToBuy.lte(new bn_js_1.default(0)))
|
|
835
836
|
continue;
|
|
836
837
|
const usdcAmount = sharesToBuy
|
|
@@ -860,6 +861,7 @@ class TriadProtocolClient {
|
|
|
860
861
|
if (userTradeIxs.length > 0) {
|
|
861
862
|
ixs.unshift(...userTradeIxs);
|
|
862
863
|
}
|
|
864
|
+
console.log('ixs', ixs.length);
|
|
863
865
|
if (ixs.length === 0) {
|
|
864
866
|
throw new Error('No matching orders found to fill the requested amount');
|
|
865
867
|
}
|