Skip to content

Commit

Permalink
fix: gho incentives
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinGbz committed Mar 7, 2025
1 parent 3972da6 commit 606ec33
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions src/components/incentives/GhoIncentivesCard.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import { ProtocolAction } from '@aave/contract-helpers';
import { AaveV3Ethereum } from '@bgd-labs/aave-address-book';
import { Trans } from '@lingui/macro';
import { Box, Tooltip, Typography, TypographyProps } from '@mui/material';
import { useAppDataContext } from 'src/hooks/app-data-provider/useAppDataProvider';
import { CustomMarket } from 'src/ui-config/marketsConfig';

import { PopperComponent } from '../ContentWithTooltip';
import GhoBorrowApyRange from '../GhoBorrowApyRange';
import { FormattedNumber } from '../primitives/FormattedNumber';
import { Link } from '../primitives/Link';
import { NoData } from '../primitives/NoData';
import { TokenIcon } from '../primitives/TokenIcon';
import { IncentivesCard } from './RateAndIncentivesBox';

export interface GhoIncentivesCardProps {
value: string | number;
Expand Down Expand Up @@ -105,6 +109,7 @@ export const GhoIncentivesCard = ({
<Box
sx={() => ({
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
})}
>
Expand All @@ -126,6 +131,14 @@ export const GhoIncentivesCard = ({
data-cy={'apy'}
/>
)}
<IncentivesCard
symbol={'GHO'}
incentives={[]}
address={AaveV3Ethereum.ASSETS.GHO.V_TOKEN}
market={CustomMarket.proto_mainnet_v3}
protocolAction={ProtocolAction.borrow}
displayBlank={false}
/>
</Box>
</Tooltip>
) : (
Expand Down
4 changes: 2 additions & 2 deletions src/components/incentives/RateAndIncentivesBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ export const IncentivesCard = ({
sx={{
display: 'flex',
justifyContent: 'center',
gap: '4px',
rowGap: '4px',
flexWrap: 'wrap',
width: 'fit-content',
width: 'min-content',
}}
>
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const GhoBorrowedPositionsListItemDesktop = ({
color="primary"
disabled
data-cy={`apyButton_fixed`}
sx={{ height: '22px' }}
sx={{ height: '22px', whiteSpace: 'nowrap' }}
>
GHO RATE
{/* <SvgIcon sx={{ marginLeft: '2px', fontSize: '12px' }}>
Expand Down

0 comments on commit 606ec33

Please sign in to comment.