Skip to content

Commit 8e23b8c

Browse files
authored
Merge pull request #30 from axieinfinity/feat/add-config-mainnet
feat: add config mainnet
2 parents 058581f + 5466d18 commit 8e23b8c

File tree

4 files changed

+25
-26
lines changed

4 files changed

+25
-26
lines changed

bin/stacks/routing-dashboard-stack.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ export class RoutingDashboardStack extends cdk.NestedStack {
3535
const { apiName, routingLambdaName, poolCacheLambdaNameArray, ipfsPoolCacheLambdaName } = props
3636
const region = cdk.Stack.of(this).region
3737

38-
// const MAINNETS = SUPPORTED_CHAINS.filter((chain) => !TESTNETS.includes(chain))
39-
const MAINNETS = [] as ChainId[]
38+
const MAINNETS = SUPPORTED_CHAINS.filter((chain) => !TESTNETS.includes(chain))
4039

4140
// No CDK resource exists for contributor insights at the moment so use raw CloudFormation.
4241
const REQUESTED_QUOTES_RULE_NAME = 'RequestedQuotes'

lib/cron/cache-config.ts

+20-20
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ const v2UntrackedUsdThreshold = Number.MAX_VALUE // Pairs need at least 1K USD (
1111
export const chainProtocols = [
1212
// V3.
1313
// TODO: Uncomment when mainnet subgraph is ready.
14-
// {
15-
// protocol: Protocol.V3,
16-
// chainId: ChainId.mainnet,
17-
// timeout: 90000,
18-
// provider: new V3SubgraphProvider(ChainId.mainnet, 3, 90000, true, v3TrackedEthThreshold, v3UntrackedUsdThreshold),
19-
// },
14+
{
15+
protocol: Protocol.V3,
16+
chainId: ChainId.mainnet,
17+
timeout: 90000,
18+
provider: new V3SubgraphProvider(ChainId.mainnet, 3, 90000, true, v3TrackedEthThreshold, v3UntrackedUsdThreshold),
19+
},
2020

2121
{
2222
protocol: Protocol.V3,
@@ -26,20 +26,20 @@ export const chainProtocols = [
2626
},
2727

2828
// V2.
29-
// {
30-
// protocol: Protocol.V2,
31-
// chainId: ChainId.mainnet,
32-
// timeout: 840000,
33-
// provider: new V2SubgraphProvider(
34-
// ChainId.mainnet,
35-
// 5,
36-
// 900000,
37-
// true,
38-
// 1000,
39-
// v2TrackedEthThreshold,
40-
// v2UntrackedUsdThreshold
41-
// ), // 1000 is the largest page size supported by thegraph
42-
// },
29+
{
30+
protocol: Protocol.V2,
31+
chainId: ChainId.mainnet,
32+
timeout: 840000,
33+
provider: new V2SubgraphProvider(
34+
ChainId.mainnet,
35+
5,
36+
900000,
37+
true,
38+
1000,
39+
v2TrackedEthThreshold,
40+
v2UntrackedUsdThreshold
41+
), // 1000 is the largest page size supported by thegraph
42+
},
4343

4444
{
4545
protocol: Protocol.V2,

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
"@uniswap/default-token-list": "11.13.0",
8888
"@uniswap/token-lists": "1.0.0-beta.33",
8989
"@uniswap/universal-router-sdk": "2.2.0",
90-
"@sky-mavis/katana-core": "0.0.1-alpha-2",
91-
"@sky-mavis/smart-order-router": "0.0.1-alpha-2",
90+
"@sky-mavis/katana-core": "0.0.1",
91+
"@sky-mavis/smart-order-router": "0.0.1",
9292
"@uniswap/permit2-sdk": "1.3.0",
9393
"@uniswap/router-sdk": "1.9.2",
9494
"@uniswap/v2-sdk": "4.3.2",

0 commit comments

Comments
 (0)