GetUnite / investment-strategies

2 stars 1 forks source link

Write beefy strategies #45

Open pentatonictritones opened 1 year ago

pentatonictritones commented 1 year ago

Is your feature request related to a problem? Please describe. As we are now building towards full crosschain liquidity direction, there are yield farming strategies that are significantly simplified when entering through a beefy vault.

Therefore, we should create a universal beefy strategy - or as close as we can get as I appreciate that there may be inevitable differences) that should work on any chain.

Describe the solution you'd like Follow the current implementation of the strategy contracts, but implement a view function that allows for the caller to see the current position value.

Things may have to be tweaked with regards to function names and the interface may change slightly but that will be resolved in a different ticket, once those needs become more evident.

We should look primarily at optimism velodrome beefy vaults, but it should be as close to universal as possible. Therefore it should be explored how we can make this the case. Describe alternatives you've considered

Additional context image

pentatonictritones commented 1 year ago

@alexanderem49 I rewrote the beefy strategy to be universal (today it works by accepting the velodrome LP as the input token but it requires any token --> deposit into beefy farm directly.

I will push it once all together with my crosschain code and then update this PR