Closed flashfish0x closed 1 year ago
- a revoked strategy needs to be with debt = 0 so there's no need to change total debt
- migrate_strategy can skip migrate call in strategy by setting the second argument to False tend_strategy should not be called on ERC4626 protocols (tend is optional when operating a strategy). maybe it is good to add an extra check so we don't get reverts under any circumstance
how do you remove a strategy that is misbehaving?
you need to migrate
you need to migrate
that's not good enough. Assume that a strategy is misbehaving and can no longer be trusted. there needs to be a way to remove it without asking for the strategies permission.
I know that you can set the flag to not call the old strategy. but without that you get a revert
w/r to point two, why did you decide to include tend in the vault contract?
you need to migrate
that's not good enough. Assume that a strategy is misbehaving and can no longer be trusted. there needs to be a way to remove it without asking for the strategies permission.
I know that you can set the flag to not call the old strategy. but without that you get a revert
what does removing mean in your opinion? the way I would do it is by updating it's max_debt to 0
take into account that strategies cannot take funds on their own, it's the vault deciding when to do things so the main difference here is just about what to do with the remaining debt (keep it in the balance or declare loss)
is what you are proposing to declare everything as a loss? leaving the whole strategy behind forever. I am not against
w/r to point two, why did you decide to include tend in the vault contract?
to be able to "centralize" role keeping at a vault level so you can keep strategy setup at a minimum but I know it comes with certain compromises
https://github.com/jmonteer/yearn-vaults-v3/blob/84c7bac21fe0b26542282019133d5fc69f3aed46/contracts/VaultV3.vy#L601