@clonegod/ttd-core 2.0.26 → 2.0.27

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
@@ -174,7 +174,7 @@ var LOCAL_EVENT_NAME;
174
174
  LOCAL_EVENT_NAME["EVENT_WALLET_TRANSACTION_NEW_TXID"] = "EVENT_WALLET_TRANSACTION_NEW_TXID";
175
175
  })(LOCAL_EVENT_NAME || (exports.LOCAL_EVENT_NAME = LOCAL_EVENT_NAME = {}));
176
176
  const format_symbol_name = (symbol) => {
177
- return symbol.replace('USDC', 'USDT')
177
+ return symbol.replace('USDC', 'USDT').replace('USD1', 'USDT')
178
178
  .replace('WTRX', 'TRX')
179
179
  .replace('$', '')
180
180
  .replace('WSOL', 'SOL')
@@ -49,7 +49,7 @@ function to_price_message(appConfig, quote_amount_usd, tx_price, quote_ask_price
49
49
  pool_id: pool_address,
50
50
  pool_name,
51
51
  fee_rate,
52
- pair,
52
+ pair: pool_name,
53
53
  unique_orderbook_id,
54
54
  is_reverse_token,
55
55
  tokenA: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-core",
3
- "version": "2.0.26",
3
+ "version": "2.0.27",
4
4
  "description": "Common types and utilities for trading systems - use `npm run push` to publish",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",