forked from aave/interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/kelp-points
- Loading branch information
Showing
31 changed files
with
575 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/components/incentives/EthenaIncentivesTooltipContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Trans } from '@lingui/macro'; | ||
import { Box } from '@mui/material'; | ||
|
||
import { Link } from '../primitives/Link'; | ||
|
||
export const EthenaAirdropTooltipContent = ({ points }: { points: number }) => { | ||
return ( | ||
<Box> | ||
<Trans>{`This asset is eligible for ${(<b>{points}x</b>)} Ethena Rewards.\n`}</Trans> | ||
<br /> | ||
<Trans>{'Learn more about Ethena Rewards program'}</Trans>{' '} | ||
<Link | ||
href="https://app.ethena.fi/join" | ||
sx={{ textDecoration: 'underline' }} | ||
variant="caption" | ||
color="text.secondary" | ||
> | ||
{'here'} | ||
</Link> | ||
{'.'} | ||
<br /> | ||
<br /> | ||
<Trans> | ||
{`Aave Labs does not | ||
guarantee the program and accepts no liability.\n`} | ||
</Trans> | ||
</Box> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { AaveV3Ethereum, AaveV3EthereumLido } from '@bgd-labs/aave-address-book'; | ||
|
||
const getEthenaData = (assetAddress: string): number | undefined => | ||
ETHENA_DATA_MAP.get(assetAddress); | ||
|
||
const ETHENA_DATA_MAP: Map<string, number> = new Map([ | ||
[AaveV3Ethereum.ASSETS.USDe.A_TOKEN, 25], | ||
[AaveV3Ethereum.ASSETS.sUSDe.A_TOKEN, 5], | ||
[AaveV3EthereumLido.ASSETS.sUSDe.A_TOKEN, 5], | ||
]); | ||
|
||
export const useEthenaIncentives = (rewardedAsset?: string) => { | ||
if (!rewardedAsset) { | ||
return undefined; | ||
} | ||
|
||
return getEthenaData(rewardedAsset); | ||
}; |
Oops, something went wrong.