Skip to content

Commit 66675e3

Browse files
linkielinkPatricie29dependabot[bot]StefChatz
authored
v3.0.8 (#1760)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Patricie <99055449+Patricie29@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Patricie29 <patricie@marsprotocol.foundation> Co-authored-by: Monkmansteve <sxatzakis@yahoo.gr> Co-authored-by: Monkmansteve <47855432+StefChatz@users.noreply.github.com>
1 parent 34ecd9f commit 66675e3

File tree

2 files changed

+15
-16
lines changed
  • src/components
    • account/AccountBalancesTable/Columns
    • earn/lend/Table/Columns

2 files changed

+15
-16
lines changed

src/components/account/AccountBalancesTable/Columns/Apy.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export default function Apy(props: Props) {
2121
if (apy === undefined) return <Loading />
2222
if (apy === null) return <Text size='xs'>N/A</Text>
2323

24-
const isEnabled = markets.find((market) => market.asset.denom === denom)?.borrowEnabled ?? false
2524
const hasLstApy = type !== 'borrow' && lstApy > 0
2625
const totalApy = type === 'borrow' ? apy : apy + lstApy
2726

@@ -40,7 +39,7 @@ export default function Apy(props: Props) {
4039
<AssetRate
4140
className='justify-end my-auto text-xs'
4241
rate={totalApy}
43-
isEnabled={type !== 'lend' || isEnabled}
42+
isEnabled={true}
4443
type='apy'
4544
orientation='ltr'
4645
hasCampaignApy={hasCampaignApy}

src/components/earn/lend/Table/Columns/Apy.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,20 @@ export default function Apr(props: Props) {
121121

122122
if (props.isLoading) return <Loading />
123123

124-
if (!props.borrowEnabled && !hasCampaignApy) {
125-
return (
126-
<Text tag='div' className='flex items-center justify-end text-xs'>
127-
<Tooltip
128-
content='This asset cannot be borrowed, and thus does not currently generate yield when lending.'
129-
type='info'
130-
className='mr-1'
131-
>
132-
<InfoCircle className='w-4 h-4 text-white/40 hover:text-inherit' />
133-
</Tooltip>
134-
N/A
135-
</Text>
136-
)
137-
}
124+
// if (!props.borrowEnabled && !hasCampaignApy) {
125+
// return (
126+
// <Text tag='div' className='flex items-center justify-end text-xs'>
127+
// <Tooltip
128+
// content='This asset cannot be borrowed, and thus does not currently generate yield when lending.'
129+
// type='info'
130+
// className='mr-1'
131+
// >
132+
// <InfoCircle className='w-4 h-4 text-white/40 hover:text-inherit' />
133+
// </Tooltip>
134+
// N/A
135+
// </Text>
136+
// )
137+
// }
138138

139139
// If not borrowEnabled but has campaign APY, show it with tooltip explaining it's staking APY
140140
if (!props.borrowEnabled && hasCampaignApy) {

0 commit comments

Comments
 (0)