Skip to content

Commit

Permalink
Disable DPA as Uniswap v2 is not supported in Hemi
Browse files Browse the repository at this point in the history
  • Loading branch information
gabmontes committed Apr 15, 2024
1 parent 2d2c2cc commit 040c486
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
18 changes: 12 additions & 6 deletions site/components/UtilitiesTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,21 @@ function UtilitiesTabs() {
href: '/sign-message',
label: t('sign-message'),
selected: pathname === '/sign-message'
},
{
}
// Descending Price Auctions should go here.
]
// Add optional components starting with the last open to keep the array
// positions constant.
//
// Add Descending Price Auctions if Uniswap v2 is supported.
if (utilsConfig[chainId].dpAuctions.uniswapV2) {
items.splice(5, 0, {
href: '/dp-auctions',
label: t('dp-auctions'),
selected: pathname === '/dp-auctions'
}
]
// Add Payment Streams in the proper position but only if ChainLink is
// enabled in the target chain.
})
}
// Add Payment Streams if ChainLink is supported.
if (utilsConfig[chainId]?.paymentStreams?.chainLink) {
items.splice(3, 0, {
href: '/payment-streams',
Expand Down
3 changes: 2 additions & 1 deletion site/utils/utilsConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
},
"743111": {
"dpAuctions": {
"address": "0xD8039420f1A61D0930127B89ab7Be23a7f21cd77"
"address": "0xD8039420f1A61D0930127B89ab7Be23a7f21cd77",
"uniswapV2": false
},
"merkleClaim": {
"address": "0xc2dA346E2f655B1013cB0f405Ca1b99553F7a580"
Expand Down

0 comments on commit 040c486

Please sign in to comment.