GetUnite / investment-strategies

2 stars 1 forks source link

Build frax.convex universal strategy #20

Open 0xtuytuy opened 1 year ago

0xtuytuy commented 1 year ago

Is your feature request related to a problem? Please describe. Frax convex is an adaptation of convex finance protocol by the frax team with some modifications. They provide a high yield for FXS holders (the Frax governance token).

Here are more details: https://docs.convexfinance.com/convexfinance/general-information/convex-for-frax-finance

Enabling this as an investment strategy for the IbAlluoUSD would diversify the $ALLUO holders options of protocols to invest in.

Describe the solution you'd like A solution has already been started here: https://github.com/GetAlluo/investment-strategies/blob/master/contracts/ethereum/CurveConvex/CurveFraxConvexStrategy.sol

The point of this task is to adapt the current code to make it work with all the recent changes done to the strategies to fit the automated liquidity direction process.

Arguably Frax.convex should be treated as a completely new protocol, and not an extension of convex (this includes folder structures in our github etc.)

Describe alternatives you've considered NA

Additional context Frax.convex has some added mechanics to the pools where stakes are locked for a certain amount of days. The protocol will take the liquidity risk, meaning that we will not link a potential withdrawal from IbAlluoUSD to unstaking of LPs in frax.convex