Skip to content

Commit

Permalink
Up to (#319)
Browse files Browse the repository at this point in the history
* Up to

* address feedback
  • Loading branch information
jmzwar authored Jun 21, 2024
1 parent e5b238f commit a6358e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion liquidity/ui/src/components/Pools/CollateralSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const CollateralSectionUi: FC<{
) : (
<Tooltip label="APR is a combination of past week pool performance and rewards.">
<Text fontWeight={700} fontSize="xl" color="white">
{`${!!apr ? apr.toFixed(2) : '-'}%`}
{`${!!apr ? `${network?.id === 42161 ? 'Up to ' : ''}${apr.toFixed(2)}` : '-'}%`}
</Text>
</Tooltip>
)}
Expand Down
6 changes: 5 additions & 1 deletion liquidity/ui/src/components/Pools/PoolCards/PoolCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ export const PoolCard = ({
APR
</Text>
<Text fontWeight="bold" fontSize="20px" color="white" lineHeight="36px">
{apr.combinedApr > 0 ? apr.combinedApr.toFixed(2)?.concat('%') : '-'}
{apr.combinedApr > 0
? `${network.id === 42161 ? 'Up to ' : ''}${apr.combinedApr
.toFixed(2)
?.concat('%')}`
: '-'}
</Text>
</Flex>
</Flex>
Expand Down

0 comments on commit a6358e6

Please sign in to comment.