@clonegod/ttd-sol-common 1.0.161 → 1.0.163

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.
@@ -42,7 +42,7 @@ class TradeContext {
42
42
  this.order_msg.amount = uiAmount;
43
43
  (0, dist_1.log_warn)(`Fix input token's amount decimal: from ${amount} to ${uiAmount}`);
44
44
  }
45
- this.slippage_bps = Math.min(300, Math.max(50, this.trade_runtime.settings.slippage_bps));
45
+ this.slippage_bps = Math.min(300, Math.max(0, this.trade_runtime.settings.slippage_bps));
46
46
  this.aToB = this.pool_info.is_reverse_token ? !this.order_msg.aToB : this.order_msg.aToB;
47
47
  this.solana_trade_runtime = yield (0, send_tx_1.create_solana_trade_runtime)(this.connection, this.trade_runtime, this.pool_info);
48
48
  });
@@ -201,6 +201,7 @@ class TransactionResultChecker {
201
201
  broadcast,
202
202
  server_info,
203
203
  };
204
+ const c_id = this.order_msg.c_id || '';
204
205
  const trade_result = {
205
206
  success,
206
207
  error_code,
@@ -220,6 +221,7 @@ class TransactionResultChecker {
220
221
  tx_price,
221
222
  balance: trade_balance_change,
222
223
  execution: trade_extra_info,
224
+ c_id
223
225
  };
224
226
  return trade_result;
225
227
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.161",
3
+ "version": "1.0.163",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "push": "npm run build && npm publish"
14
14
  },
15
15
  "dependencies": {
16
- "@clonegod/ttd-common": "1.1.10",
16
+ "@clonegod/ttd-common": "1.1.12",
17
17
  "@metaplex-foundation/mpl-token-metadata": "^2.5.2",
18
18
  "@solana/web3.js": "1.91.6",
19
19
  "rpc-websockets": "7.10.0",