Skip to content

Commit

Permalink
Merge pull request #1333 from mars-protocol/remove-borrow-lsd-apy
Browse files Browse the repository at this point in the history
  • Loading branch information
linkielink authored Jan 27, 2025
2 parents b51ff57 + 62a2eeb commit 4eba843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/account/AccountBalancesTable/Columns/Apy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default function Apy(props: Props) {
if (apy === null) return <Text size='xs'>N/A</Text>

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

return (
<div className='flex justify-end my-auto text-xs'>
Expand Down

0 comments on commit 4eba843

Please sign in to comment.