[bugfix] APY display improvement vault (#383)
This commit is contained in:
parent
88a2c68ed5
commit
5ee2b17b4c
@ -18,7 +18,7 @@ export default function FundWithdrawModalContent(props: Props) {
|
|||||||
<div className='flex flex-1 items-start gap-6 p-6'>
|
<div className='flex flex-1 items-start gap-6 p-6'>
|
||||||
<Card
|
<Card
|
||||||
className='flex flex-1 bg-white/5 p-4'
|
className='flex flex-1 bg-white/5 p-4'
|
||||||
contentClassName='gap-6 flex flex-col justify-between h-full min-h-[380px] '
|
contentClassName='gap-6 flex flex-col justify-between h-full min-h-[380px]'
|
||||||
>
|
>
|
||||||
{isFunding ? (
|
{isFunding ? (
|
||||||
<FundAccount account={account} setChange={setChange} />
|
<FundAccount account={account} setChange={setChange} />
|
||||||
|
@ -39,12 +39,14 @@ export default function VaultModalContentHeader({ vault }: Props) {
|
|||||||
options={{ suffix: '%', decimals: -2 }}
|
options={{ suffix: '%', decimals: -2 }}
|
||||||
animate
|
animate
|
||||||
/>
|
/>
|
||||||
|
(
|
||||||
<FormattedNumber
|
<FormattedNumber
|
||||||
className='ml-2 text-xs'
|
className='ml-2 text-xs'
|
||||||
amount={vault.apy / 365}
|
amount={vault.apy / 365}
|
||||||
options={{ suffix: '%/day', decimals: -2 }}
|
options={{ suffix: '%/day', decimals: -2 }}
|
||||||
animate
|
animate
|
||||||
/>
|
/>
|
||||||
|
)
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
sub={'Deposit APY'}
|
sub={'Deposit APY'}
|
||||||
|
@ -59,7 +59,7 @@ function VaultModal(props: Props) {
|
|||||||
<Modal
|
<Modal
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
header={
|
header={
|
||||||
<span className='flex items-center px-4'>
|
<span className='flex items-center pr-4 py-1'>
|
||||||
<VaultLogo vault={vault} />
|
<VaultLogo vault={vault} />
|
||||||
<Text className='pl-3 pr-2'>{vault.name}</Text>
|
<Text className='pl-3 pr-2'>{vault.name}</Text>
|
||||||
{unlockTime && (
|
{unlockTime && (
|
||||||
|
Loading…
Reference in New Issue
Block a user