@triadxyz/triad-protocol 2.6.5-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 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/utils/helpers.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -860,7 +860,6 @@ class TriadProtocolClient {
|
|
|
860
860
|
if (userTradeIxs.length > 0) {
|
|
861
861
|
ixs.unshift(...userTradeIxs);
|
|
862
862
|
}
|
|
863
|
-
console.log('ixs', ixs.length);
|
|
864
863
|
if (ixs.length === 0) {
|
|
865
864
|
throw new Error('No matching orders found to fill the requested amount');
|
|
866
865
|
}
|
|
@@ -899,6 +898,7 @@ class TriadProtocolClient {
|
|
|
899
898
|
const sharesToSell = bn_js_1.default.min(remainingShares, availableShares);
|
|
900
899
|
if (sharesToSell.lt(new bn_js_1.default(0)))
|
|
901
900
|
continue;
|
|
901
|
+
remainingShares = remainingShares.sub(sharesToSell);
|
|
902
902
|
ixs.push(yield this.program.methods
|
|
903
903
|
.marketAskOrder({
|
|
904
904
|
shares: new bn_js_1.default(sharesToSell),
|
package/dist/types/index.d.ts
CHANGED
package/dist/utils/helpers.js
CHANGED
|
@@ -231,7 +231,8 @@ const formatRefer = (account) => {
|
|
|
231
231
|
id: account.id.toNumber(),
|
|
232
232
|
authority: account.authority.toString(),
|
|
233
233
|
feeBps: account.feeBps,
|
|
234
|
-
feeClaimed: account.feeClaimed.toNumber()
|
|
234
|
+
feeClaimed: account.feeClaimed.toNumber(),
|
|
235
|
+
usersReferred: account.usersReferred.toNumber()
|
|
235
236
|
};
|
|
236
237
|
};
|
|
237
238
|
exports.formatRefer = formatRefer;
|