steve0xp / yearn_mellow-gearbox-strategy

yearn strategy depositing vault assets into mellow protocol gearbox strategy(ies)
GNU Affero General Public License v3.0
1 stars 0 forks source link

Set Up 1-Tx Withdrawals #1

Open steve0xp opened 1 year ago

steve0xp commented 1 year ago

The current Mellow "Fearless Gearbox Strategies" setup involves LPs carrying out two txs to get liquidity out. a. First tx: registerWithdraw() where withdraw is recorded and accommodated once the current two-week period ends. b. Second tx: user calls withdraw() to take the requested funds out of the strategy in the first place.

Possible solutions include:

  1. Make a whitelist of addresses (where we can add addresses needed for Yearn) where Mellow is able to send funds automatically after the closing of gearbox credit accounts.
  2. Have Keep3rs listen for the transference of funds IF our vault is waiting for funds from this strategy.

NOTE: This issue is only pressing if there are large allocations of Yearn’s wETH vault to this strategy. Initially, this strategy will have lower allocations relative to other battle-tested strategies. Thus this issue can be put on the back burner for now.

0xValJohn commented 1 year ago

We need manual onlyVaultManagers setters for both of these functions. Also, does the funds get re-invested indefinitely if no withdraw request is submitted?