yearn-vaults icon indicating copy to clipboard operation
yearn-vaults copied to clipboard

Gas optimization to report profits from strat without withdraw

Open storming0x opened this issue 4 years ago • 2 comments

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.

storming0x avatar Feb 18 '21 19:02 storming0x

@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.

0xbok avatar Jan 21 '22 00:01 0xbok

We are reworking this mechanism right now with a new version

pandadefi avatar Jan 21 '22 07:01 pandadefi