@triadxyz/triad-protocol 2.6.5-beta → 2.6.6-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 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
  }
@@ -236,6 +236,7 @@ export type Refer = {
236
236
  authority: string;
237
237
  feeBps: number;
238
238
  feeClaimed: number;
239
+ usersReferred: number;
239
240
  };
240
241
  export type Customer = {
241
242
  id: number;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.6.5-beta",
3
+ "version": "2.6.6-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",