Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add config mainnet #30

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bin/stacks/routing-dashboard-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export class RoutingDashboardStack extends cdk.NestedStack {
const { apiName, routingLambdaName, poolCacheLambdaNameArray, ipfsPoolCacheLambdaName } = props
const region = cdk.Stack.of(this).region

// const MAINNETS = SUPPORTED_CHAINS.filter((chain) => !TESTNETS.includes(chain))
const MAINNETS = [] as ChainId[]
const MAINNETS = SUPPORTED_CHAINS.filter((chain) => !TESTNETS.includes(chain))

// No CDK resource exists for contributor insights at the moment so use raw CloudFormation.
const REQUESTED_QUOTES_RULE_NAME = 'RequestedQuotes'
Expand Down
40 changes: 20 additions & 20 deletions lib/cron/cache-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const v2UntrackedUsdThreshold = Number.MAX_VALUE // Pairs need at least 1K USD (
export const chainProtocols = [
// V3.
// TODO: Uncomment when mainnet subgraph is ready.
// {
// protocol: Protocol.V3,
// chainId: ChainId.mainnet,
// timeout: 90000,
// provider: new V3SubgraphProvider(ChainId.mainnet, 3, 90000, true, v3TrackedEthThreshold, v3UntrackedUsdThreshold),
// },
{
protocol: Protocol.V3,
chainId: ChainId.mainnet,
timeout: 90000,
provider: new V3SubgraphProvider(ChainId.mainnet, 3, 90000, true, v3TrackedEthThreshold, v3UntrackedUsdThreshold),
},

{
protocol: Protocol.V3,
Expand All @@ -26,20 +26,20 @@ export const chainProtocols = [
},

// V2.
// {
// protocol: Protocol.V2,
// chainId: ChainId.mainnet,
// timeout: 840000,
// provider: new V2SubgraphProvider(
// ChainId.mainnet,
// 5,
// 900000,
// true,
// 1000,
// v2TrackedEthThreshold,
// v2UntrackedUsdThreshold
// ), // 1000 is the largest page size supported by thegraph
// },
{
protocol: Protocol.V2,
chainId: ChainId.mainnet,
timeout: 840000,
provider: new V2SubgraphProvider(
ChainId.mainnet,
5,
900000,
true,
1000,
v2TrackedEthThreshold,
v2UntrackedUsdThreshold
), // 1000 is the largest page size supported by thegraph
},

{
protocol: Protocol.V2,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
"@uniswap/default-token-list": "11.13.0",
"@uniswap/token-lists": "1.0.0-beta.33",
"@uniswap/universal-router-sdk": "2.2.0",
"@sky-mavis/katana-core": "0.0.1-alpha-2",
"@sky-mavis/smart-order-router": "0.0.1-alpha-2",
"@sky-mavis/katana-core": "0.0.1",
"@sky-mavis/smart-order-router": "0.0.1",
"@uniswap/permit2-sdk": "1.3.0",
"@uniswap/router-sdk": "1.9.2",
"@uniswap/v2-sdk": "4.3.2",
Expand Down
Loading