yearn / yearn-vaults-v3

GNU Affero General Public License v3.0
96 stars 35 forks source link

build: replace sweep wth debt purchase #161

Closed Schlagonia closed 1 year ago

Schlagonia commented 1 year ago

Description

  1. Remove sweep function
  2. Add buy_debt function that a permissioned role can use to purchase bad debt from the vault in order to offset any potential losses from a bad strategy.

This removes the possibility for Gov to force revoke a strategy and then sweep the strategy token and provides an explicit debt purchase function for the times when the vault manager would like to offset a potential loss caused by a broken strategy.

It does eliminate the potential for management to remove any extra asset that has been donated or any other reward tokens that may get sent to or airdropped to the vault

Fixes # (issue)

Checklist