@clonegod/ttd-core 3.0.9 → 3.0.10
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.
|
@@ -31,7 +31,7 @@ class EnvArgs {
|
|
|
31
31
|
this.quote_pool_fee_rate = parseInt(process.env.QUOTE_POOL_FEE_RATE || '0');
|
|
32
32
|
this.trade_group_id = process.env.TRADE_GROUP_ID || '';
|
|
33
33
|
this.trade_pair = process.env.TRADE_PAIR || '';
|
|
34
|
-
this.token_price_cache_seconds = parseInt(process.env.TOKEN_PRICE_CACHE_SECONDS || '
|
|
34
|
+
this.token_price_cache_seconds = parseInt(process.env.TOKEN_PRICE_CACHE_SECONDS || '1200');
|
|
35
35
|
}
|
|
36
36
|
print() {
|
|
37
37
|
console.log('>>> EnvArgs', this);
|
|
@@ -33,7 +33,7 @@ const fetchPriceFromCache = (token_address_list) => __awaiter(void 0, void 0, vo
|
|
|
33
33
|
(0, __1.log_warn)('global_app_config is not set, skip get token price from cache');
|
|
34
34
|
return result;
|
|
35
35
|
}
|
|
36
|
-
let token_price_timeout_seconds =
|
|
36
|
+
let token_price_timeout_seconds = global_app_config.env_args.token_price_cache_seconds;
|
|
37
37
|
let all_token_list = yield global_app_config.arb_cache.get_token_list();
|
|
38
38
|
let token_list = all_token_list.filter(e => token_address_list.includes(e.address) && !(0, __1.isEmpty)(e.market_price) && !(0, __1.isEmpty)(e.update_time));
|
|
39
39
|
let not_found_token_list = [];
|