diff --git a/apps/vaults-v3/components/details/VaultActionsTabsWrapper.tsx b/apps/vaults-v3/components/details/VaultActionsTabsWrapper.tsx index 0a34c2e7..d4b4531d 100755 --- a/apps/vaults-v3/components/details/VaultActionsTabsWrapper.tsx +++ b/apps/vaults-v3/components/details/VaultActionsTabsWrapper.tsx @@ -25,6 +25,7 @@ import {VaultDetailsQuickActionsTo} from '@vaults-v3/components/details/actions/ import {RewardsTab} from '@vaults-v3/components/details/RewardsTab'; import {SettingsPopover} from '@vaults-v3/components/SettingsPopover'; import {readContracts} from '@wagmi/core'; +import {Switch} from '@common/components/Switch'; import {useYearn} from '@common/contexts/useYearn'; import {IconChevron} from '@common/icons/IconChevron'; @@ -260,6 +261,7 @@ export function VaultActionsTabsWrapper({currentVault}: {currentVault: TYDaemonV const {onSwitchSelectedOptions, isDepositing, actionParams} = useActionFlow(); const {address} = useWeb3(); const router = useRouter(); + const {isAutoStakingEnabled, set_isAutoStakingEnabled} = useYearn(); const [unstakedBalance, set_unstakedBalance] = useState(undefined); const [possibleTabs, set_possibleTabs] = useState([tabs[0], tabs[1]]); const [hasStakingRewardsLive, set_hasStakingRewardsLive] = useState(true); @@ -514,8 +516,20 @@ export function VaultActionsTabsWrapper({currentVault}: {currentVault: TYDaemonV

 

+ {hasStakingRewards && ( +
+ + {'Deposit only'} + +
+ set_isAutoStakingEnabled(!isAutoStakingEnabled)} + /> +
+
+ )}
-   )}