Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gas optimization to report profits from strat without withdraw #213

Open
storming0x opened this issue Feb 18, 2021 · 2 comments
Open

Gas optimization to report profits from strat without withdraw #213

storming0x opened this issue Feb 18, 2021 · 2 comments
Labels
enhancement New feature or request p2 important

Comments

@storming0x
Copy link
Contributor

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 storming0x added enhancement New feature or request p2 important labels Feb 18, 2021
@0xbok
Copy link

0xbok commented Jan 21, 2022

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

@pandadefi
Copy link
Contributor

We are reworking this mechanism right now with a new version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p2 important
Projects
None yet
Development

No branches or pull requests

3 participants