Skip to content

Commit c736e71

Browse files
committed
Changing default token list
1 parent 0e7f105 commit c736e71

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/handlers/injector-sor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const SUPPORTED_CHAINS: ChainId[] = [
103103
ChainId.POLYGON,
104104
ChainId.UNICHAIN
105105
]
106-
const DEFAULT_TOKEN_LIST = 'https://gateway.ipfs.io/ipns/tokens.uniswap.org'
106+
const DEFAULT_TOKEN_LIST = 'https://tokens.uniswap.org'
107107

108108
export interface RequestInjected<Router> extends BaseRInj {
109109
chainId: ChainId

lib/handlers/router-entities/aws-token-list-provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { TokenList } from '@uniswap/token-lists'
1010
import S3 from 'aws-sdk/clients/s3'
1111
import NodeCache from 'node-cache'
1212

13-
const TOKEN_LIST_CACHE = new NodeCache({ stdTTL: 600, useClones: false })
13+
const TOKEN_LIST_CACHE = new NodeCache({ stdTTL: 6000, useClones: false })
1414

1515
export class AWSTokenListProvider extends CachingTokenListProvider {
1616
public static async fromTokenListS3Bucket(
@@ -22,7 +22,7 @@ export class AWSTokenListProvider extends CachingTokenListProvider {
2222

2323
const cachedTokenList = TOKEN_LIST_CACHE.get<TokenList>(tokenListURI)
2424

25-
const tokenCache = new NodeCache({ stdTTL: 360, useClones: false })
25+
const tokenCache = new NodeCache({ stdTTL: 3600, useClones: false })
2626

2727
if (cachedTokenList) {
2828
log.info(`Found token lists for ${tokenListURI} in local cache`)

0 commit comments

Comments
 (0)