@clonegod/ttd-core 2.1.31 → 2.1.33
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/pool/pool_util.js +1 -1
- package/dist/token/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/pool/pool_util.js
CHANGED
|
@@ -31,7 +31,7 @@ function get_pair_name(native_token, pool_name) {
|
|
|
31
31
|
function check_pool_token_address(pool) {
|
|
32
32
|
let { pool_name, pool_address, tokenA, tokenB } = pool;
|
|
33
33
|
for (let token of [tokenA, tokenB]) {
|
|
34
|
-
let is_fake_token = token_1.fixed_symbol_address.some(e => e.symbol === token.symbol && e.address !== token.address);
|
|
34
|
+
let is_fake_token = token_1.fixed_symbol_address.some(e => e.symbol === token.symbol && e.address.toLowerCase() !== token.address.toLowerCase());
|
|
35
35
|
if (is_fake_token) {
|
|
36
36
|
throw new Error(`Invalid token address of ${token.symbol}: ${token.address}, ${pool_name}, ${pool_address}`);
|
|
37
37
|
}
|
package/dist/token/types.d.ts
CHANGED