Skip to content

Commit 250bf89

Browse files
committed
Merge branch 'main' into feat/cow-swap-adapters
2 parents 91966bb + c54f046 commit 250bf89

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2422
-1816
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
"@aave/math-utils": "1.36.1",
3636
"@aave/react": "0.6.1",
3737
"@amplitude/analytics-browser": "^2.13.0",
38-
"@bgd-labs/aave-address-book": "^4.31.0",
3938
"@cowprotocol/sdk-app-data": "4.1.4-pr-624-30de7ad4.0",
4039
"@cowprotocol/cow-sdk": "7.0.11-pr-624-30de7ad4.0",
4140
"@cowprotocol/sdk-flash-loans": "1.1.0-pr-624-30de7ad4.0",
4241
"@cowprotocol/sdk-viem-adapter": "0.1.3-pr-624-30de7ad4.0",
42+
"@bgd-labs/aave-address-book": "^4.36.0",
4343
"@emotion/cache": "11.10.3",
4444
"@emotion/react": "11.10.4",
4545
"@emotion/server": "latest",

public/icons/tokens/kbtc.svg

Lines changed: 1 addition & 0 deletions
Loading

public/icons/tokens/syrupusdt.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

public/icons/tokens/usdg.svg

Lines changed: 1 addition & 0 deletions
Loading

public/icons/tokens/usdtb.svg

Lines changed: 1 addition & 1 deletion
Loading

public/icons/tokens/usd₮0.svg

Lines changed: 1 addition & 0 deletions
Loading

public/icons/tokens/vbill.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/MarketSwitcher.tsx

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,16 @@ const MARKET_ORDER_BY_TITLE: { [title: string]: number } = {
132132
OP: 9,
133133
Gnosis: 10,
134134
Aptos: 11,
135-
'BNB Chain': 12,
136-
Polygon: 13,
137-
Scroll: 14,
138-
ZKsync: 15,
139-
Celo: 16,
140-
Metis: 17,
141-
Soneium: 18,
142-
EtherFi: 19,
135+
Ink: 12,
136+
137+
'BNB Chain': 13,
138+
Polygon: 14,
139+
Scroll: 15,
140+
ZKsync: 16,
141+
Celo: 17,
142+
Metis: 18,
143+
Soneium: 19,
144+
EtherFi: 20,
143145
};
144146

145147
const getMarketOrder = (marketId: CustomMarket): number => {
@@ -191,6 +193,7 @@ export const MarketSwitcher = () => {
191193
};
192194

193195
const marketBlurbs: { [key: string]: JSX.Element } = {
196+
proto_ink_v3: <Trans>The Ink instance is governed by the Ink Foundation</Trans>,
194197
proto_mainnet_v3: (
195198
<Trans>Main Ethereum market with the largest selection of assets and yield options</Trans>
196199
),
@@ -354,6 +357,10 @@ export const MarketSwitcher = () => {
354357
value={selectedMarketVersion}
355358
exclusive
356359
onChange={(_, value) => {
360+
if (value === SelectedMarketVersion.V2) {
361+
window.open('https://v2-market.aave.com/', '_blank', 'noopener');
362+
return;
363+
}
357364
if (value !== null) {
358365
setSelectedMarketVersion(value);
359366
}
@@ -375,6 +382,8 @@ export const MarketSwitcher = () => {
375382
value={SelectedMarketVersion.V3}
376383
data-cy={`markets_switch_button_v3`}
377384
sx={{
385+
flex: '0 0 96px',
386+
px: 1.5,
378387
backgroundColor: theme.palette.mode === 'dark' ? '#EAEBEF' : '#383D51',
379388
'&.Mui-selected, &.Mui-selected:hover': {
380389
backgroundColor: theme.palette.mode === 'dark' ? '#292E41' : '#FFFFFF',
@@ -404,12 +413,16 @@ export const MarketSwitcher = () => {
404413
value={SelectedMarketVersion.V2}
405414
data-cy={`markets_switch_button_v2`}
406415
sx={{
416+
flexGrow: 1.2,
417+
flexBasis: 0,
418+
px: 2,
407419
backgroundColor: theme.palette.mode === 'dark' ? '#EAEBEF' : '#383D51',
408420
'&.Mui-selected, &.Mui-selected:hover': {
409421
backgroundColor: theme.palette.mode === 'dark' ? '#292E41' : '#FFFFFF',
410422
boxShadow: '0px 1px 0px rgba(0, 0, 0, 0.05)',
411423
},
412424
borderRadius: '4px',
425+
padding: 0,
413426
}}
414427
>
415428
<Typography
@@ -422,11 +435,17 @@ export const MarketSwitcher = () => {
422435
color: 'transparent',
423436
}
424437
: {
438+
display: 'flex',
439+
flexDirection: 'row',
440+
alignItems: 'center',
425441
color: theme.palette.mode === 'dark' ? '#0F121D' : '#FFFFFF',
426442
}
427443
}
428444
>
429445
<Trans>Version 2</Trans>
446+
<SvgIcon sx={{ ml: 1, fontSize: 14 }}>
447+
<ExternalLinkIcon />
448+
</SvgIcon>
430449
</Typography>
431450
</StyledToggleButton>
432451
</StyledToggleButtonGroup>

src/components/TopInfoPanel/PageTitle.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ export const PageTitle = ({
9393
onClick={handleFavoriteClick}
9494
variant="surface"
9595
sx={{
96-
display: { xs: 'none', sm: 'flex' }, // Hide on mobile (xs), show on small screens and up
96+
display: 'none',
97+
[theme.breakpoints.up(800)]: { display: 'flex' }, // Hide on mobile (xs) and for widths between 759px and 800px, show on small screens and up
9798
p: '7px 8px',
9899
minWidth: 'unset',
99100
gap: 2,

0 commit comments

Comments
 (0)