@clonegod/ttd-core 2.0.25 → 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 +1 -1
- package/dist/quote/to_price_message.js +1 -1
- package/package.json +1 -1
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')
|
|
@@ -33,7 +33,7 @@ exports.get_quote_token_decimals = get_quote_token_decimals;
|
|
|
33
33
|
function to_price_message(appConfig, quote_amount_usd, tx_price, quote_ask_price, quote_bid_price, pool_info, time, slot) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
let { pool_address, tokenA, tokenB } = pool_info;
|
|
36
|
-
let { dex_id, pool_name, fee_rate, is_reverse_token } = yield appConfig.arb_cache.get_one_pool_info(pool_address);
|
|
36
|
+
let { dex_id, pool_name, fee_rate, is_reverse_token, pair } = yield appConfig.arb_cache.get_one_pool_info(pool_address);
|
|
37
37
|
let _dex_id = dex_id;
|
|
38
38
|
let price_id = (0, uuid_1.v4)().replace(/-/gi, '');
|
|
39
39
|
let chain_id = appConfig.env_args.chain_id;
|