Skip to content

Commit a14dad3

Browse files
committed
Merge remote-tracking branch 'origin' into feat/add-alert-plasma-txhistory
2 parents f88f6c9 + 0caa044 commit a14dad3

32 files changed

+653
-268
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
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",
38+
"@bgd-labs/aave-address-book": "^4.34.1",
3939
"@cowprotocol/app-data": "^3.1.0",
4040
"@cowprotocol/cow-sdk": "6.3.3",
4141
"@emotion/cache": "11.10.3",

public/icons/tokens/kbtc.svg

Lines changed: 1 addition & 0 deletions
Loading

public/icons/tokens/syrupusdt.svg

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

src/components/MarketSwitcher.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,16 @@ const MARKET_ORDER_BY_TITLE: { [title: string]: number } = {
126126
OP: 9,
127127
Gnosis: 10,
128128
Aptos: 11,
129-
'BNB Chain': 12,
130-
Polygon: 13,
131-
Scroll: 14,
132-
ZKsync: 15,
133-
Celo: 16,
134-
Metis: 17,
135-
Soneium: 18,
136-
EtherFi: 19,
129+
Ink: 12,
130+
131+
'BNB Chain': 13,
132+
Polygon: 14,
133+
Scroll: 15,
134+
ZKsync: 16,
135+
Celo: 17,
136+
Metis: 18,
137+
Soneium: 19,
138+
EtherFi: 20,
137139
};
138140

139141
const getMarketOrder = (marketId: CustomMarket): number => {
@@ -185,6 +187,7 @@ export const MarketSwitcher = () => {
185187
};
186188

187189
const marketBlurbs: { [key: string]: JSX.Element } = {
190+
proto_ink_v3: <Trans>The Ink instance is governed by the Ink Foundation</Trans>,
188191
proto_mainnet_v3: (
189192
<Trans>Main Ethereum market with the largest selection of assets and yield options</Trans>
190193
),

src/components/incentives/IncentivesTooltipContent.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ const IncentivesSymbolMap: {
127127
symbol: 'aCELO',
128128
aToken: true,
129129
},
130+
aCelcUSD: {
131+
tokenIconSymbol: 'cUSD',
132+
symbol: 'acUSD',
133+
aToken: true,
134+
},
130135
aGnoEURe: {
131136
tokenIconSymbol: 'EURe',
132137
symbol: 'aEURe',

src/components/incentives/MeritIncentivesTooltipContent.tsx

Lines changed: 51 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
MeritIncentivesBreakdown,
88
} from 'src/hooks/useMeritIncentives';
99
import { useModalContext } from 'src/hooks/useModal';
10+
import { useRootStore } from 'src/store/root';
1011

1112
import { FormattedNumber } from '../primitives/FormattedNumber';
1213
import { Link, ROUTES } from '../primitives/Link';
@@ -112,6 +113,7 @@ export const MeritIncentivesTooltipContent = ({
112113
}) => {
113114
const theme = useTheme();
114115
const { openClaimRewards } = useModalContext();
116+
const account = useRootStore((store) => store.account);
115117
const typographyVariant = 'secondary12';
116118

117119
const handleClaimClick = () => {
@@ -161,11 +163,7 @@ export const MeritIncentivesTooltipContent = ({
161163
does not guarantee the program and accepts no liability.
162164
</Trans>{' '}
163165
<Link
164-
href={
165-
meritIncentives.customForumLink
166-
? meritIncentives.customForumLink
167-
: 'https://governance.aave.com/t/arfc-set-aci-as-emission-manager-for-liquidity-mining-programs/17898'
168-
}
166+
href={'https://apps.aavechan.com/merit'}
169167
sx={{ textDecoration: 'underline' }}
170168
variant="caption"
171169
color="text.secondary"
@@ -231,22 +229,30 @@ export const MeritIncentivesTooltipContent = ({
231229
{campaignConfig.type === CampaignType.SELF_VERIFICATION && selfConfig ? (
232230
<>
233231
<Trans>Merit Program and Self rewards can be claimed </Trans>
234-
<Typography
235-
component="span"
236-
onClick={handleClaimClick}
237-
sx={{
238-
textDecoration: 'underline',
239-
cursor: 'pointer',
240-
fontSize: '13px !important',
241-
fontWeight: 'bold',
242-
mx: 0.5,
243-
}}
244-
variant="caption"
245-
color="primary"
246-
>
247-
<Trans>here</Trans>
248-
</Typography>
249-
<Trans> or from the </Trans>
232+
{account ? (
233+
<>
234+
<Typography
235+
component="span"
236+
onClick={handleClaimClick}
237+
sx={{
238+
textDecoration: 'underline',
239+
cursor: 'pointer',
240+
fontSize: '13px !important',
241+
fontWeight: 'bold',
242+
mx: 0.5,
243+
}}
244+
variant="caption"
245+
color="primary"
246+
>
247+
<Trans>here</Trans>
248+
</Typography>
249+
<Trans> or from the </Trans>
250+
</>
251+
) : (
252+
<span style={{ marginLeft: '4px' }}>
253+
<Trans>from the </Trans>
254+
</span>
255+
)}
250256
<Link
251257
href={`${ROUTES.dashboard}`}
252258
sx={{
@@ -265,22 +271,30 @@ export const MeritIncentivesTooltipContent = ({
265271
) : (
266272
<>
267273
<Trans>Merit Program rewards can be claimed </Trans>
268-
<Typography
269-
component="span"
270-
onClick={handleClaimClick}
271-
sx={{
272-
textDecoration: 'underline',
273-
cursor: 'pointer',
274-
fontSize: '13px !important',
275-
fontWeight: 'bold',
276-
mx: 0.5,
277-
}}
278-
variant="caption"
279-
color="primary"
280-
>
281-
<Trans>here</Trans>
282-
</Typography>
283-
<Trans> or from the </Trans>
274+
{account ? (
275+
<>
276+
<Typography
277+
component="span"
278+
onClick={handleClaimClick}
279+
sx={{
280+
textDecoration: 'underline',
281+
cursor: 'pointer',
282+
fontSize: '13px !important',
283+
fontWeight: 'bold',
284+
mx: 0.5,
285+
}}
286+
variant="caption"
287+
color="primary"
288+
>
289+
<Trans>here</Trans>
290+
</Typography>
291+
<Trans> or from the </Trans>
292+
</>
293+
) : (
294+
<span style={{ marginLeft: '4px' }}>
295+
<Trans>from the </Trans>
296+
</span>
297+
)}
284298
<Link
285299
href={`${ROUTES.dashboard}`}
286300
sx={{

0 commit comments

Comments
 (0)