Skip to content
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
5 changes: 5 additions & 0 deletions .changeset/tangy-foxes-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@reservoir0x/relay-kit-ui': patch
---

Add protocol v2 enabled chains
22 changes: 21 additions & 1 deletion packages/ui/src/components/widgets/SwapWidgetRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,27 @@ import { get15MinuteInterval } from '../../utils/time.js'

export type TradeType = 'EXACT_INPUT' | 'EXPECTED_OUTPUT'

const PROTOCOL_V2_ENABLED_CHAINS = [81457, 100, 130, 43114, 10, 1, 56, 137, 324]
const PROTOCOL_V2_ENABLED_CHAINS = [
81457, // Blast
100, // Gnosis
130, // Unichain
43114, // Avalanche
10, // Optimism
1, // Ethereum
56, // BNB
137, // Polygon
324, // zkSync Era
25, // Cronos
146, // Sonic
169, // Manta
185, // Mint
288, // Boba
360, // Shape
466, // Appchain
480, // Worldchain
690, // Redstone
747 // Flow
]

type SwapWidgetRendererProps = {
transactionModalOpen: boolean
Expand Down