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

fix: unichain v2 and v3 subgraph #1007

Merged
merged 1 commit into from
Feb 10, 2025
Merged
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
31 changes: 30 additions & 1 deletion lib/cron/cache-config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Protocol } from '@uniswap/router-sdk'

Check failure on line 1 in lib/cron/cache-config.ts

View workflow job for this annotation

GitHub Actions / Prettier

lib/cron/cache-config.ts#L1

There are issues with this file's formatting, please run Prettier to fix the errors
import { V2SubgraphProvider, V3SubgraphProvider, V4SubgraphProvider } from '@uniswap/smart-order-router'
import { ChainId } from '@uniswap/sdk-core'

Expand Down Expand Up @@ -231,7 +231,20 @@
v3SubgraphUrlOverride(ChainId.BLAST)
),
},

{
protocol: Protocol.V3,
chainId: ChainId.UNICHAIN,
timeout: 90000,
provider: new V3SubgraphProvider(
ChainId.UNICHAIN,
3,
90000,
true,
v3TrackedEthThreshold,
v3UntrackedUsdThreshold,
v3SubgraphUrlOverride(ChainId.UNICHAIN)
),
},
// V2.
{
protocol: Protocol.V2,
Expand Down Expand Up @@ -368,6 +381,22 @@
v2SubgraphUrlOverride(ChainId.MONAD_TESTNET)
),
},
{
protocol: Protocol.V2,
chainId: ChainId.UNICHAIN,
timeout: 90000,
provider: new V2SubgraphProvider(
ChainId.UNICHAIN,
3,
90000,
true,
1000,
v2TrackedEthThreshold,
v2UntrackedUsdThreshold,
v2SubgraphUrlOverride(ChainId.UNICHAIN)
)
},
// V4
{
protocol: Protocol.V4,
chainId: ChainId.SEPOLIA,
Expand Down