File tree Expand file tree Collapse file tree 2 files changed +15
-16
lines changed
account/AccountBalancesTable/Columns Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments