diff --git a/apps/vaults-v3/components/details/RewardsTab.tsx b/apps/vaults-v3/components/details/RewardsTab.tsx index b9753d68..0f55e719 100644 --- a/apps/vaults-v3/components/details/RewardsTab.tsx +++ b/apps/vaults-v3/components/details/RewardsTab.tsx @@ -1,4 +1,6 @@ -import {useCallback, useMemo, useState} from 'react'; +import {Fragment, useCallback, useMemo, useState} from 'react'; +import Image from 'next/image'; +import Link from 'next/link'; import {useRouter} from 'next/router'; import {useReadContract} from 'wagmi'; import {useWeb3} from '@builtbymom/web3/contexts/useWeb3'; @@ -22,6 +24,74 @@ import {useYearnToken} from '@common/hooks/useYearnToken'; import type {ReactElement} from 'react'; import type {TYDaemonVault} from '@yearn-finance/web-lib/utils/schemas/yDaemonVaultsSchemas'; +const OneUp = ( + +
{'1UP'}
+{'Cove'}
+{'StakeDAO'}
++ {`This Vault has an active veYFI gauge which boosts your APY from `} + {`${formatAmount(extraAPY * 10)}%`} + {` to `} + {`${formatAmount(extraAPY * 100)}%`} + {` depending on the veYFI you have locked. Simply deposit and stake to start earning. `} + + {'Learn more'} + + {'.'} +
+{"Don't have veYFI? Deposit with a liquid locker to earn boosted rewards today!"}
+{`${formatAmount(vaultData.vaultBalanceOf.normalized, 6)} ${props.currentVault.symbol} available to stake`}
+{`${formatCounterValue(vaultData.vaultBalanceOf.normalized, vaultTokenPrice.normalized)}`}
+{`${formatAmount(vaultData.vaultBalanceOf.normalized, 6)} ${props.currentVault.symbol} available to stake`}
-{`${formatCounterValue(vaultData.vaultBalanceOf.normalized, vaultTokenPrice.normalized)}`}
-{`${formatAmount(vaultData.stakedBalanceOf.normalized, 6)} ${symbol} staked`}
+{`${formatCounterValue(vaultData.stakedBalanceOf.normalized, vaultTokenPrice.normalized)}`}
+{`${formatAmount(vaultData.stakedBalanceOf.normalized, 6)} ${symbol} staked`}
-{`${formatCounterValue(vaultData.stakedBalanceOf.normalized, vaultTokenPrice.normalized)}`}
-{`${formatAmount(vaultData.stakedEarned.normalized, 6)} ${rewardTokenBalance.symbol || (props.currentVault.staking.rewards || [])[0]?.symbol || ''} available to claim`}
+{`${formatCounterValue(vaultData.stakedEarned.normalized, rewardTokenPrice.normalized)}`}
+{`${formatAmount(vaultData.stakedEarned.normalized, 6)} ${rewardTokenBalance.symbol || (props.currentVault.staking.rewards || [])[0]?.symbol || ''} available to claim`}
-{`${formatCounterValue(vaultData.stakedEarned.normalized, rewardTokenPrice.normalized)}`}
-