Skip to content

Commit

Permalink
feat: sonic rates [skip cypress] (#2384)
Browse files Browse the repository at this point in the history
  • Loading branch information
grothem authored Mar 5, 2025
1 parent 038c4a2 commit ff30bce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/components/incentives/IncentivesCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ export const IncentivesCard = ({
<Box
sx={
isTableChangedToCards
? { display: 'flex', flexDirection: 'column', justifyContent: 'center', gap: '4px' }
? {
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
gap: '4px',
}
: {
display: 'flex',
justifyContent: 'center',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const GhoBorrowedPositionsListItemDesktop = ({
subValue={userGhoBorrowBalance}
/>
<ListColumn>
<Stack direction="row" gap={1}>
<Stack direction="row" gap={1} alignItems="center">
<GhoIncentivesCard
withTokenIcon={hasDiscount}
value={ghoLoadingData || !ghoUserDataFetched ? -1 : borrowRateAfterDiscount}
Expand All @@ -164,6 +164,7 @@ const GhoBorrowedPositionsListItemDesktop = ({
color="primary"
disabled
data-cy={`apyButton_fixed`}
sx={{ height: '22px' }}
>
GHO RATE
{/* <SvgIcon sx={{ marginLeft: '2px', fontSize: '12px' }}>
Expand Down
1 change: 1 addition & 0 deletions src/ui-config/networksConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ export const prodNetworkConfig: Record<string, BaseNetworkConfig> = {
name: 'Sonic Bridge',
url: 'https://gateway.soniclabs.com',
},
ratesHistoryApiUrl,
wagmiChain: sonic,
},
};
Expand Down

1 comment on commit ff30bce

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit was deployed on ipfs

Please sign in to comment.