yearn-vaults
yearn-vaults copied to clipboard
Gas optimization to report profits from strat without withdraw
There are possible optimizations that can be done on harvest/report flow:
Notes from @Grandthrax
If we can find a way to report profit with having to withdraw from underlying protocol then we would save a lot of gas
Currently a lot strats withdraw then have to redeposit.
They see profit. Withdraw profit and send to vault. Vault then sends some funds back which are reinvested
Lots of transferring funds back and forth.
@Grandthrax @storming0x is there any examples of transaction where profit is reported via withdrawal and deposit into underlying protocol?
That will help me in starting with this issue.
We are reworking this mechanism right now with a new version