diff --git a/components/buttons/Bid.tsx b/components/buttons/Bid.tsx index b35d026c2..076ef4e97 100644 --- a/components/buttons/Bid.tsx +++ b/components/buttons/Bid.tsx @@ -86,7 +86,7 @@ const Bid: FC = ({ openState={openState} feesBps={orderFees} currencies={bidCurrencies} - oracleEnabled={true} + oracleEnabled={marketplaceChain.oracleBidsEnabled} chainId={marketplaceChain.id} onClose={(data, stepData, currentStep) => { if (mutate && currentStep == BidStep.Complete) mutate() diff --git a/components/buttons/CollectionOffer.tsx b/components/buttons/CollectionOffer.tsx index 452d6cff1..8c0a98424 100644 --- a/components/buttons/CollectionOffer.tsx +++ b/components/buttons/CollectionOffer.tsx @@ -132,7 +132,7 @@ const CollectionOffer: FC = ({ attribute={attribute} feesBps={orderFees} currencies={bidCurrencies} - oracleEnabled={true} + oracleEnabled={marketplaceChain.oracleBidsEnabled} chainId={marketplaceChain.id} onClose={(data, stepData, currentStep) => { if (mutate && currentStep == BidStep.Complete) mutate() diff --git a/utils/chains.ts b/utils/chains.ts index 87bd7ee0b..75a1c2b3b 100644 --- a/utils/chains.ts +++ b/utils/chains.ts @@ -1,7 +1,15 @@ import { Currency } from '@reservoir0x/reservoir-kit-ui' import wrappedContracts from './wrappedContracts' import { zeroAddress } from 'viem' -import { arbitrum, mainnet, polygon, optimism, Chain, bsc, avalanche } from 'wagmi/chains' +import { + arbitrum, + mainnet, + polygon, + optimism, + Chain, + bsc, + avalanche, +} from 'wagmi/chains' import usdcContracts from './usdcContracts' //Chains that are missing from wagmi: @@ -134,6 +142,7 @@ export type ReservoirChain = Chain & { community?: string wssUrl?: string listingCurrencies?: Currency[] + oracleBidsEnabled?: boolean } const nativeCurrencyBase = { @@ -184,6 +193,7 @@ export const DefaultChain: ReservoirChain = { contract: usdcContracts[mainnet.id], }, ], + oracleBidsEnabled: true, } export default [ @@ -218,6 +228,7 @@ export default [ coinGeckoId: 'weth', }, ], + oracleBidsEnabled: true, }, { ...arbitrum,