Skip to content

Commit

Permalink
chore: disable auto staking is source is veyfi
Browse files Browse the repository at this point in the history
  • Loading branch information
w84april committed Dec 19, 2024
1 parent 3e74d7b commit e776346
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions apps/vaults/contexts/useActionFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,15 +423,15 @@ export function ActionFlowContextApp(props: {children: ReactNode; currentVault:
}

// Only use GaugeStakingBooster if the user chose to stake automatically and the vault is staking with VeYFI
if (
props.currentVault.staking.available &&
props.currentVault.staking.source === 'VeYFI' &&
isAutoStakingEnabled &&
isDepositing &&
isUnderlyingToken
) {
return Solver.enum.GaugeStakingBooster;
}
// if (
// props.currentVault.staking.available &&
// props.currentVault.staking.source === 'VeYFI' &&
// isAutoStakingEnabled &&
// isDepositing &&
// isUnderlyingToken
// ) {
// return Solver.enum.GaugeStakingBooster;
// }

// Only use JuicedStakingBooster if the user chose to stake automatically and the vault is staking with Juiced
// Disabled until we figure out the zap
Expand Down

0 comments on commit e776346

Please sign in to comment.