Skip to content

Commit 7099a0f

Browse files
authored
Merge branch 'main' into fix/filtering-by-apy
2 parents 5aa8385 + d6142ab commit 7099a0f

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

src/components/Warnings/CooldownWarning.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ import { Link } from '../primitives/Link';
77
import { Warning } from '../primitives/Warning';
88
import { SecondsToString } from '../SecondsToString';
99

10-
const TWENTY_DAYS = 20 * 24 * 60 * 60;
11-
12-
export const CooldownWarning = ({ cooldownSeconds }: { cooldownSeconds?: number }) => {
13-
const cooldownTime = cooldownSeconds || TWENTY_DAYS;
10+
export const CooldownWarning = ({ cooldownSeconds }: { cooldownSeconds: number }) => {
11+
const cooldownTime = cooldownSeconds;
1412

1513
const trackEvent = useRootStore((store) => store.trackEvent);
1614
return (

src/components/transactions/Stake/StakeModalContent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ export const StakeModalContent = ({ stakeAssetName, icon }: StakeProps) => {
112112
/>
113113
)}
114114

115-
{nameFormatted !== 'GHO' && <CooldownWarning />}
115+
{nameFormatted !== 'GHO' && stakeData?.stakeCooldownSeconds && (
116+
<CooldownWarning cooldownSeconds={stakeData.stakeCooldownSeconds} />
117+
)}
116118

117119
<AssetInput
118120
value={amount}

src/components/transactions/StakeRewardClaimRestake/StakeRewardClaimRestakeModalContent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ export const StakeRewardClaimRestakeModalContent = ({
109109
chainId={stakingChain}
110110
/>
111111
)}
112-
<CooldownWarning />
112+
{stakeData?.stakeCooldownSeconds && (
113+
<CooldownWarning cooldownSeconds={stakeData.stakeCooldownSeconds} />
114+
)}
113115
<AssetInput
114116
value={amount}
115117
onChange={handleChange}

src/components/transactions/Switch/cowprotocol/cowprotocol.constants.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,18 @@ export const COW_UNSUPPORTED_ASSETS: Partial<
55
Record<ModalType, Partial<Record<SupportedChainId, string[] | 'ALL'>>>
66
> = {
77
[ModalType.CollateralSwap]: {
8-
[SupportedChainId.POLYGON]: 'ALL', // Waiting for better solvers support
8+
[SupportedChainId.POLYGON]: [
9+
'0x8eb270e296023e9d92081fdf967ddd7878724424'.toLowerCase(), // aPOLGHST not supported
10+
'0x38d693ce1df5aadf7bc62595a37d667ad57922e5'.toLowerCase(), // aPolEURS not supported
11+
'0xea1132120ddcdda2f119e99fa7a27a0d036f7ac9'.toLowerCase(), // aPolSTMATIC not supported
12+
'0x6533afac2e7bccb20dca161449a13a32d391fb00'.toLowerCase(), // aPolJEUR not supported
13+
'0x513c7e3a9c69ca3e22550ef58ac1c0088e918fff'.toLowerCase(), // aPolCRV not supported
14+
'0xebe517846d0f36eced99c735cbf6131e1feb775d'.toLowerCase(), // aPolMIMATIC not supported
15+
'0xc45a479877e1e9dfe9fcd4056c699575a1045daa'.toLowerCase(), // aPolSUSHI not supported
16+
'0x8437d7c167dfb82ed4cb79cd44b7a32a1dd95c77'.toLowerCase(), // aPolAGEUR not supported
17+
'0x724dc807b04555b71ed48a6896b6f41593b8c637'.toLowerCase(), // aPolDPI not supported
18+
'0x8ffdf2de812095b1d19cb146e4c004587c0a0692'.toLowerCase(), // aPolBAL not supported
19+
],
920
[SupportedChainId.AVALANCHE]: [
1021
'0x8eb270e296023e9d92081fdf967ddd7878724424'.toLowerCase(), // AVaMAI not supported
1122
'0x078f358208685046a11c85e8ad32895ded33a249'.toLowerCase(), // aVaWBTC not supported

src/ui-config/networksConfig.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,10 @@ export const prodNetworkConfig: Record<string, BaseNetworkConfig> = {
274274
},
275275
[ChainId.optimism]: {
276276
name: 'OP',
277-
publicJsonRPCUrl: ['https://optimism-mainnet.public.blastapi.io', 'https://1rpc.io/op'],
277+
publicJsonRPCUrl: [
278+
'https://public-op-mainnet.fastnode.io',
279+
'https://optimism-rpc.publicnode.com',
280+
],
278281
baseUniswapAdapter: '0x0',
279282
baseAssetSymbol: 'ETH',
280283
wrappedBaseAssetSymbol: 'WETH',

0 commit comments

Comments
 (0)