Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/components/incentives/MerklIncentivesTooltipContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ export const MerklIncentivesTooltipContent = ({
const merklIncentivesFormatted = getSymbolMap(merklIncentives);

const isPointsBased = Boolean(merklIncentives?.breakdown?.points);
const campaign = merklIncentives.onChainCampaignId
? merklIncentives.rewardsTokensMappedApys?.find(
(reward) =>
reward.onChainCampaignId.toLowerCase() ===
merklIncentives.onChainCampaignId?.toLowerCase()
)
: undefined;
return (
<Box
sx={{
Expand Down Expand Up @@ -139,6 +146,18 @@ export const MerklIncentivesTooltipContent = ({
</Typography>
)}

{campaign && merklIncentives.customCampaignMessage && (
<Typography variant="caption" color="text.strong" mb={3}>
<FormattedNumber
value={merklIncentives.breakdown.isBorrow ? -campaign.apy : campaign.apy}
percent
variant="caption"
component="span"
/>{' '}
<Trans>APY</Trans> <Trans>{merklIncentives.customCampaignMessage}</Trans>
</Typography>
)}

<Box sx={{ width: '100%' }}>
{merklIncentives.breakdown ? (
<>
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/useMerklIncentives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ export type MerklOpportunity = {
type ReserveIncentiveAdditionalData = {
customClaimMessage?: string;
customMessage?: string;
onChainCampaignId?: string;
customCampaignMessage?: string;
customForumLink?: string;
};

Expand Down
2 changes: 2 additions & 0 deletions src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1405,6 +1405,7 @@ msgstr "You have assets with zero LTV that are blocking this operation. Please w
#: src/components/incentives/MerklIncentivesTooltipContent.tsx
#: src/components/incentives/MerklIncentivesTooltipContent.tsx
#: src/components/incentives/MerklIncentivesTooltipContent.tsx
#: src/components/incentives/MerklIncentivesTooltipContent.tsx
#: src/components/transactions/DelegationTxsWrapper.tsx
#: src/components/transactions/DelegationTxsWrapper.tsx
#: src/components/transactions/DelegationTxsWrapper.tsx
Expand Down Expand Up @@ -3902,6 +3903,7 @@ msgstr "Selected supply assets"
#: src/components/incentives/MerklIncentivesTooltipContent.tsx
#: src/components/incentives/MerklIncentivesTooltipContent.tsx
#: src/components/incentives/MerklIncentivesTooltipContent.tsx
#: src/components/incentives/MerklIncentivesTooltipContent.tsx
#: src/modules/dashboard/lists/BorrowedPositionsList/BorrowedPositionsList.tsx
#: src/modules/dashboard/lists/BorrowedPositionsList/BorrowedPositionsList.tsx
#: src/modules/dashboard/lists/BorrowedPositionsList/BorrowedPositionsListItem.tsx
Expand Down
5 changes: 5 additions & 0 deletions src/ui-config/merklConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
type AdditionalIncentiveInfo = {
customMessage?: string;
onChainCampaignId?: string;
customCampaignMessage?: string;
customClaimMessage?: string;
customForumLink?: string;
};
Expand Down Expand Up @@ -662,6 +664,9 @@ export const EXTRA_WHITELIST_TOKENS: MerklWhitelistConfig = {
'8453-0xD4a0e0b9149BCee3C920d2E00b5dE09138fd8bb7': {
customMessage:
'You need to supply WETH on Aave on Base to receive USDC rewards. Only new supplies made after the campaign started qualify.',
onChainCampaignId: '0x955de5b8c1acdce952561774211fb2faaa4249c50a1dfee193d7faaaeb258091',
customCampaignMessage:
'is available as an extra incentive only to users who have bridged at least $500 to Base through Jumper since October 14, 2026. Only new deposits qualify. Existing positions do not earn these rewards.',
},
'1-0x7c0477d085ECb607CF8429f3eC91Ae5E1e460F4F': {
customMessage:
Expand Down
Loading