@clonegod/ttd-core 3.1.28 → 3.1.29

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.
@@ -1061,8 +1061,18 @@ class ArbCache {
1061
1061
  }
1062
1062
  }
1063
1063
  let token_list = [];
1064
+ const missed = [];
1064
1065
  for (let token_address of token_address_set) {
1065
- token_list.push(this.token_address_map.get(token_address));
1066
+ const token = this.getTokenByAddress(token_address);
1067
+ if (token) {
1068
+ token_list.push(token);
1069
+ }
1070
+ else {
1071
+ missed.push(token_address);
1072
+ }
1073
+ }
1074
+ if (missed.length > 0) {
1075
+ (0, index_1.log_warn)(`get_all_trade_tokens: ${missed.length} pool token(s) not found in token_address_map (likely case mismatch or stale config)`, missed);
1066
1076
  }
1067
1077
  return token_list;
1068
1078
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-core",
3
- "version": "3.1.28",
3
+ "version": "3.1.29",
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": "dist/index.d.ts",