[bugfix] APY display improvement vault (#383)
This commit is contained in:
parent
88a2c68ed5
commit
5ee2b17b4c
@ -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