diff --git a/RELEASE b/RELEASE index bf098ad8f8a..6353f698344 100644 --- a/RELEASE +++ b/RELEASE @@ -1,6 +1,6 @@ IPFS hash of the deployment: -- CIDv0: `QmWMPrCn87GuRChSff1SQ3kJ1YyCKg3VbXb7XVMTAoZbGX` -- CIDv1: `bafybeidxbzdak5a2jr4kelvar5hq42h2xelcwz4h6tncmtnflnegwblhjq` +- CIDv0: `QmXWLumHqg4tACWDxukPYbD43ZRiNSky6uxg6zfM3G3abs` +- CIDv1: `bafybeieigtoxfjlgwe4hrnvsbldxzylo2govlsrd36ipkcl3bembqwbybi` The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org). @@ -10,15 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway. Your Uniswap settings are never remembered across different URLs. IPFS gateways: -- https://bafybeidxbzdak5a2jr4kelvar5hq42h2xelcwz4h6tncmtnflnegwblhjq.ipfs.dweb.link/ -- https://bafybeidxbzdak5a2jr4kelvar5hq42h2xelcwz4h6tncmtnflnegwblhjq.ipfs.cf-ipfs.com/ -- [ipfs://QmWMPrCn87GuRChSff1SQ3kJ1YyCKg3VbXb7XVMTAoZbGX/](ipfs://QmWMPrCn87GuRChSff1SQ3kJ1YyCKg3VbXb7XVMTAoZbGX/) +- https://bafybeieigtoxfjlgwe4hrnvsbldxzylo2govlsrd36ipkcl3bembqwbybi.ipfs.dweb.link/ +- https://bafybeieigtoxfjlgwe4hrnvsbldxzylo2govlsrd36ipkcl3bembqwbybi.ipfs.cf-ipfs.com/ +- [ipfs://QmXWLumHqg4tACWDxukPYbD43ZRiNSky6uxg6zfM3G3abs/](ipfs://QmXWLumHqg4tACWDxukPYbD43ZRiNSky6uxg6zfM3G3abs/) -### 5.66.2 (2025-01-22) +## 5.67.0 (2025-01-22) -### Bug Fixes +### Features -* **web:** 01 22 fix web use on chain currency balance for increase create prod (#15380) 2ee9767 +* **web:** add flag to experiment with 2s l2 polling interval [prod] (#15385) 2398242 diff --git a/VERSION b/VERSION index 609c69f6f1c..1b18249b7bc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -web/5.66.2 \ No newline at end of file +web/5.67.0 \ No newline at end of file diff --git a/packages/uniswap/src/features/gating/flags.ts b/packages/uniswap/src/features/gating/flags.ts index 6d10fe1964d..d9f5a96bfa9 100644 --- a/packages/uniswap/src/features/gating/flags.ts +++ b/packages/uniswap/src/features/gating/flags.ts @@ -14,6 +14,7 @@ export enum FeatureFlags { PortionFields, SharedSwapArbitrumUniswapXExperiment, TokenSelectorTrendingTokens, + TwoSecondSwapQuotePollingInterval, Unichain, UnichainPromo, UniswapX, diff --git a/packages/uniswap/src/features/transactions/swap/hooks/usePollingIntervalByChain.ts b/packages/uniswap/src/features/transactions/swap/hooks/usePollingIntervalByChain.ts index 35d134c20e8..d80871c8714 100644 --- a/packages/uniswap/src/features/transactions/swap/hooks/usePollingIntervalByChain.ts +++ b/packages/uniswap/src/features/transactions/swap/hooks/usePollingIntervalByChain.ts @@ -1,7 +1,8 @@ import { UniverseChainId } from 'uniswap/src/features/chains/types' import { isMainnetChainId } from 'uniswap/src/features/chains/utils' import { DynamicConfigs, SwapConfigKey } from 'uniswap/src/features/gating/configs' -import { useDynamicConfigValue } from 'uniswap/src/features/gating/hooks' +import { FeatureFlags } from 'uniswap/src/features/gating/flags' +import { useDynamicConfigValue, useFeatureFlag } from 'uniswap/src/features/gating/hooks' import { ONE_SECOND_MS } from 'utilities/src/time/time' export const AVERAGE_L1_BLOCK_TIME_MS = 12 * ONE_SECOND_MS @@ -20,5 +21,8 @@ export function usePollingIntervalByChain(chainId?: UniverseChainId): number { AVERAGE_L2_BLOCK_TIME_MS, ) - return isMainnetChainId(chainId) ? averageL1BlockTimeMs : averageL2BlockTimeMs + const enableTwoSecondInterval = useFeatureFlag(FeatureFlags.TwoSecondSwapQuotePollingInterval) + const l2PollingInterval = enableTwoSecondInterval ? 2 * ONE_SECOND_MS : averageL2BlockTimeMs + + return isMainnetChainId(chainId) ? averageL1BlockTimeMs : l2PollingInterval }