Skip to content

Commit

Permalink
fix: invalid perf fee on v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Nov 24, 2023
1 parent 854f433 commit 51bf2ae
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apps/vaults-v3/components/details/tabs/VaultDetailsAbout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export function VaultDetailsAbout({currentVault}: {currentVault: TYDaemonVault})
return 'Sorry, we don\'t have a description for this asset right now. But did you know the correct word for a blob of toothpaste is a "nurdle". Fascinating! We\'ll work on updating the asset description, but at least you learnt something interesting. Catch ya later nurdles.';
}

console.log(apr);

return (
<div className={'grid grid-cols-1 gap-4 p-4 md:grid-cols-12 md:gap-10 md:p-8'}>
<div className={'col-span-12 w-full pr-0 md:col-span-7 md:pr-28'}>
Expand Down Expand Up @@ -85,12 +87,12 @@ export function VaultDetailsAbout({currentVault}: {currentVault: TYDaemonVault})
<div className={'mt-4 grid grid-cols-4 gap-8'}>
<YearnFeesLineItem label={'Management'}>
<b className={'font-number text-xl text-neutral-900'}>
{formatPercent((apr.fees.management || 0) / 100, 0)}
{formatPercent((apr.fees.management || 0) * 100, 0)}
</b>
</YearnFeesLineItem>
<YearnFeesLineItem label={'Performance'}>
<b className={'font-number text-xl text-neutral-900'}>
{formatPercent((apr.fees.performance || 0) / 100, 0)}
{formatPercent((apr.fees.performance || 0) * 100, 0)}
</b>
</YearnFeesLineItem>
{currentVault.category === 'Velodrome' || currentVault.category === 'Aerodrome' ? (
Expand Down Expand Up @@ -158,12 +160,12 @@ export function VaultDetailsAboutCard({currentVault}: {currentVault: TYDaemonVau

<YearnFeesLineItem label={'Management'}>
<b className={'font-number text-xl text-neutral-900'}>
{formatPercent((apr.fees.management || 0) / 100, 0)}
{formatPercent((apr.fees.management || 0) * 100, 0)}
</b>
</YearnFeesLineItem>
<YearnFeesLineItem label={'Performance'}>
<b className={'font-number text-xl text-neutral-900'}>
{formatPercent((apr.fees.performance || 0) / 100, 0)}
{formatPercent((apr.fees.performance || 0) * 100, 0)}
</b>
</YearnFeesLineItem>
{currentVault.category === 'Velodrome' || currentVault.category === 'Aerodrome' ? (
Expand Down

0 comments on commit 51bf2ae

Please sign in to comment.