Skip to content

Commit

Permalink
Update APR to Interest
Browse files Browse the repository at this point in the history
  • Loading branch information
rbcp18 authored Dec 13, 2024
1 parent 0b8b7f2 commit 5d81de9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ const OpportunityListItem: React.FC<OpportunityListItemProps> = ({
</div>
<div className="opportunity-list-item-body">
<OpportunityListDataItem
label="APR"
value={`${Number(opportunity.minAPY) / 100} %`}
label="Interest"
value={`${
((Number(opportunity.minAPY) / 100) * ((Number(opportunity.maxDuration) / 86400) / 365)).toFixed(2)
} %`}
/>
<OpportunityListDataItem
label="Duration"
Expand Down

0 comments on commit 5d81de9

Please sign in to comment.