Skip to content

Commit 3021969

Browse files
authored
Release (#1375)
2 parents 4343934 + 96ceff6 commit 3021969

6 files changed

Lines changed: 55 additions & 51 deletions

File tree

apps/root/src/assets/svg/color/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import AGAVE from './agave.svg';
2222
import MOONWELL from './moonwell.svg';
2323
import MORPHO from './morpho.svg';
2424
import COMPOUND from './compound.svg';
25+
import MAKER from './maker.svg';
2526
import { ETH_CHAINS, PROTOCOL_TOKEN_ADDRESS } from '@common/mocks/tokens';
2627

2728
const ethTokens = ETH_CHAINS.reduce<Record<string, typeof ETH>>((acc, chainId) => {
@@ -59,6 +60,7 @@ const manifest = {
5960
MOONWELL,
6061
MORPHO,
6162
COMPOUND,
63+
MAKER,
6264
};
6365

6466
export default manifest;
Lines changed: 15 additions & 0 deletions
Loading

apps/root/src/common/components/news-banners/lm-earn-banner/index.tsx

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ import useAnalytics from '@hooks/useAnalytics';
66
import usePushToHistory from '@hooks/usePushToHistory';
77
import { EARN_ROUTE } from '@constants/routes';
88

9-
const EarnBannerShapeUrl = 'url("https://ipfs.io/ipfs/QmUfxE7Zgeja78QuX5UnZ3D3qorFrvK7869NZSf97pbdeB")';
9+
const EarnBannerShapeUrl = 'url("https://ipfs.io/ipfs/QmfYXVF5qDke64ZSepiSo4z2Pp5o9RTTjQ959VELZQtKrf")';
1010

1111
const StyledBannerContainer = styled(ContainerBox).attrs({
1212
justifyContent: 'space-between',
13-
alignItems: 'center',
13+
alignItems: 'flex-start',
1414
fullWidth: true,
1515
})`
1616
${({ theme: { palette, spacing } }) => `
1717
padding: ${spacing(4)};
1818
background: ${EarnBannerShapeUrl} center no-repeat, ${palette.gradient.newsBanner};
19+
background-size: cover;
1920
border-radius: ${spacing(4)};
2021
overflow: hidden;
2122
position: relative;
@@ -24,29 +25,6 @@ const StyledBannerContainer = styled(ContainerBox).attrs({
2425
`}
2526
`;
2627

27-
const StyledEarnGuardianPill = styled(ContainerBox).attrs({
28-
justifyContent: 'center',
29-
alignItems: 'center',
30-
})`
31-
${({ theme: { spacing } }) => `
32-
padding: ${spacing(0.5)} ${spacing(1)};
33-
background: #D0CCFF;
34-
border: 0.5px solid #FFFFFF;
35-
border-radius: ${spacing(4)};
36-
position: absolute;
37-
top: 20px;
38-
right: 40px;
39-
`}
40-
`;
41-
42-
const EarnGuardianPill = () => (
43-
<StyledEarnGuardianPill>
44-
<Typography variant="bodyExtraExtraSmallBold" color="#791AFF">
45-
<FormattedMessage defaultMessage="Earn Guardian 🛡️" description="earn.banner.earn-guardian-pill" />
46-
</Typography>
47-
</StyledEarnGuardianPill>
48-
);
49-
5028
const LMEarnBanner = () => {
5129
const { trackEvent } = useAnalytics();
5230
const pushToHistory = usePushToHistory();
@@ -57,17 +35,21 @@ const LMEarnBanner = () => {
5735
};
5836

5937
return (
60-
<>
61-
<StyledBannerContainer onClick={handleClick}>
62-
<EarnGuardianPill />
63-
<Typography variant="h6Bold" color="#FFF" style={{ maxWidth: '40%', textWrap: 'wrap' }}>
64-
<FormattedMessage
65-
defaultMessage="Don't miss $150k in $OP incentives!"
66-
description="earn.banner.lm-rewards-150-op"
67-
/>
68-
</Typography>
69-
</StyledBannerContainer>
70-
</>
38+
<StyledBannerContainer onClick={handleClick}>
39+
<Typography variant="h6Bold" color="#FFF" style={{ maxWidth: '35%', textWrap: 'wrap' }}>
40+
<FormattedMessage defaultMessage="EARN GUARDIAN" description="earn.banner.earn-guardian" />
41+
</Typography>
42+
<Typography
43+
variant="bodyBold"
44+
color="#FFF"
45+
textAlign="right"
46+
alignSelf="end"
47+
lineHeight="1.2"
48+
style={{ maxWidth: '35%', textWrap: 'wrap' }}
49+
>
50+
<FormattedMessage defaultMessage="on GNOSIS!" description="earn.banner.on-gnosis" />
51+
</Typography>
52+
</StyledBannerContainer>
7153
);
7254
};
7355

apps/root/src/constants/addresses.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,13 @@ export const SUPPORTED_NETWORKS_DCA = [
401401
Chains.BASE.chainId,
402402
];
403403

404-
export const SUPPORTED_NETWORKS_EARN = [Chains.BASE.chainId, Chains.OPTIMISM.chainId, Chains.ARBITRUM.chainId];
404+
export const SUPPORTED_NETWORKS_EARN = [
405+
Chains.BASE.chainId,
406+
Chains.OPTIMISM.chainId,
407+
Chains.ARBITRUM.chainId,
408+
Chains.SONIC.chainId,
409+
Chains.GNOSIS.chainId,
410+
];
405411

406412
export const DEFAULT_NETWORK_FOR_VERSION: Record<PositionVersions, NetworkStruct> = {
407413
[POSITION_VERSION_1]: NETWORKS.optimism,
@@ -564,18 +570,24 @@ export const EARN_COMPANION_ADDRESS: Record<number, Address> = {
564570
[Chains.OPTIMISM.chainId]: '0x5cb7667a29d2029ac2e38aa43f0608b620fad087',
565571
[Chains.BASE.chainId]: '0x5cb7667a29d2029ac2e38aa43f0608b620fad087',
566572
[Chains.ARBITRUM.chainId]: '0x5cb7667a29d2029ac2e38aa43f0608b620fad087',
573+
[Chains.SONIC.chainId]: '0x5cb7667a29d2029ac2e38aa43f0608b620fad087',
574+
[Chains.GNOSIS.chainId]: '0x5cb7667a29d2029ac2e38aa43f0608b620fad087',
567575
};
568576

569577
export const EARN_VAULT_ADDRESS: Record<number, Lowercase<Address>> = {
570578
[Chains.OPTIMISM.chainId]: '0x0990a4a641636d437af9aa214a1a580377ef1954',
571579
[Chains.BASE.chainId]: '0x0990a4a641636d437af9aa214a1a580377ef1954',
572580
[Chains.ARBITRUM.chainId]: '0x0990a4a641636d437af9aa214a1a580377ef1954',
581+
[Chains.SONIC.chainId]: '0x0990a4a641636d437af9aa214a1a580377ef1954',
582+
[Chains.GNOSIS.chainId]: '0x0990a4a641636d437af9aa214a1a580377ef1954',
573583
};
574584

575585
export const EARN_STRATEGY_REGISTRY: Record<number, Lowercase<Address>> = {
576586
[Chains.OPTIMISM.chainId]: '0xc0571929c21b71fc7579ec7159b1e88a2199bc78',
577587
[Chains.BASE.chainId]: '0xc0571929c21b71fc7579ec7159b1e88a2199bc78',
578588
[Chains.ARBITRUM.chainId]: '0xc0571929c21b71fc7579ec7159b1e88a2199bc78',
589+
[Chains.SONIC.chainId]: '0xc0571929c21b71fc7579ec7159b1e88a2199bc78',
590+
[Chains.GNOSIS.chainId]: '0xc0571929c21b71fc7579ec7159b1e88a2199bc78',
579591
};
580592

581593
export const EXPLORER_URL = getAllChains().reduce<Record<number, string>>(

apps/root/src/constants/earn.ts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,18 @@ export const FEE_TYPE_STRING_MAP: Record<FeeType, ReturnType<typeof defineMessag
2121
}),
2222
};
2323

24-
// export const EARN_AVAILABLE_CHAINS = [
25-
// Chains.POLYGON.chainId,
26-
// Chains.ETHEREUM.chainId,
27-
// Chains.OPTIMISM.chainId,
28-
// Chains.ARBITRUM.chainId,
29-
// Chains.BASE.chainId,
30-
// ];
31-
3224
export const PROMOTED_STRATEGIES_IDS: StrategyId[] = [
33-
'137-0xb034a43d1ffe0f88ed3a50fc096179f543fd3f3a-1',
34-
'8453-0x020ebf53f4e5ef859e18e2973bd8d8b9af5c9c9f-2',
35-
'8453-0x020ebf53f4e5ef859e18e2973bd8d8b9af5c9c9f-3',
36-
'8453-0x020ebf53f4e5ef859e18e2973bd8d8b9af5c9c9f-4',
25+
// '137-0xb034a43d1ffe0f88ed3a50fc096179f543fd3f3a-1',
26+
// '8453-0x020ebf53f4e5ef859e18e2973bd8d8b9af5c9c9f-2',
27+
// '8453-0x020ebf53f4e5ef859e18e2973bd8d8b9af5c9c9f-3',
28+
// '8453-0x020ebf53f4e5ef859e18e2973bd8d8b9af5c9c9f-4',
3729
];
3830

3931
export const STRATEGIES_WITH_LM_REWARDS: StrategyId[] = [
4032
// '8453-0xc0571929c21b71fc7579ec7159b1e88a2199bc78-15',
4133
// '8453-0xc0571929c21b71fc7579ec7159b1e88a2199bc78-16',
4234
// '8453-0xc0571929c21b71fc7579ec7159b1e88a2199bc78-17',
4335
// '8453-0xc0571929c21b71fc7579ec7159b1e88a2199bc78-18',
44-
'8453-0xc0571929c21b71fc7579ec7159b1e88a2199bc78-20',
45-
'8453-0xc0571929c21b71fc7579ec7159b1e88a2199bc78-21',
36+
// '8453-0xc0571929c21b71fc7579ec7159b1e88a2199bc78-20',
37+
// '8453-0xc0571929c21b71fc7579ec7159b1e88a2199bc78-21',
4638
];

apps/root/src/constants/yield.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ export const PLATFORM_NAMES_FOR_TOKENS: Record<string, string> = {
2727
Agave: 'AGAVE',
2828
Beefy: 'BEEFY',
2929
Compound: 'COMPOUND',
30+
Maker: 'MAKER',
3031
};

0 commit comments

Comments
 (0)