Skip to content
Open
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
2 changes: 2 additions & 0 deletions src/constants/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ export const ROUTER_ADDRESSES: AddressMap = {
}
export const METASWAP_ADDRESSES: AddressMap = {
[SupportedChainId.POLYGON]: '0x6afD834f6e3D5ad5A83E7838ca45F3DBDe3E323d',
[SupportedChainId.OPTIMISM]: '0x6fe9f5616ac30e0a66b5bc68d05f081471835bf7',
}
export const BICONOMY_DAPP_API: AddressMap = {
[SupportedChainId.POLYGON]: 'lD1x8FLPD.45318b65-8ab0-45c7-b59c-2f73137fb751',
[SupportedChainId.OPTIMISM]: 'zoXlK_GwU.e5be1e3a-521d-4298-a66c-4940b26f2355'
}
export const V3_MIGRATOR_ADDRESSES: AddressMap = constructSameAddressMap('0xA5644E29708357803b5A882D272c41cC0dF92B34', [
SupportedChainId.ARBITRUM_ONE,
Expand Down
4 changes: 2 additions & 2 deletions src/state/market/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ export function useDerivedMarketInfo(
inputError = <Trans>Connect Wallet</Trans>
}

if (chainId !== 137) {
inputError = inputError ?? <Trans>Gasless is only available on Polygon</Trans>
if (chainId !== 137 && chainId !== 10) {
inputError = inputError ?? <Trans>Gasless is only available on Polygon and Optimism</Trans>
}

if (!parsedAmount) {
Expand Down