@clonegod/ttd-core 3.1.107 → 3.1.109
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/cache/arb_cache.js
CHANGED
|
@@ -489,7 +489,7 @@ class ArbCache {
|
|
|
489
489
|
(0, index_1.log_trace)(`update_pool_extra`);
|
|
490
490
|
}
|
|
491
491
|
let { pool_name, quote_token, pair: pair } = pool;
|
|
492
|
-
let is_reverse_token = pool_name.
|
|
492
|
+
let is_reverse_token = pool_name.split('/')[0] === quote_token;
|
|
493
493
|
pool.is_reverse_token = is_reverse_token;
|
|
494
494
|
if (!pair) {
|
|
495
495
|
throw new Error(`!!! invalid config: pair is empty! pool_name=${pool_name}`);
|
|
@@ -48,7 +48,7 @@ function report_quote_candidate(opts) {
|
|
|
48
48
|
if (!opts.pool_address || !opts.block_number || !opts.source)
|
|
49
49
|
return;
|
|
50
50
|
(0, analyze_1.report_data_to_analyze)('QuoteCandidate', {
|
|
51
|
-
pool_address: opts.pool_address.toLowerCase(),
|
|
51
|
+
pool_address: /^0x/i.test(opts.pool_address) ? opts.pool_address.toLowerCase() : opts.pool_address,
|
|
52
52
|
pair: opts.pair || '',
|
|
53
53
|
dex_id: opts.dex_id || '',
|
|
54
54
|
source: opts.source,
|