Y.curve.fi staking (under vaults)

Is it possible to get some info about the strategies that are being used at this moment and in any particular added risks that we should be aware of?

For example does this pool farm the yffi token? I read some disturbing things about this project so maybe the yffi balancer pool should not be touched?

Does this pool farm yfii token?

3 Likes

From a cursory glance at the contracts it does seem so based on this harvest function.

function harvest() public {
    Yfii(pool).getReward();
    IERC20(yfii).safeApprove(balancer, 0);
    IERC20(yfii).safeApprove(balancer, IERC20(yfii).balanceOf(address(this)));
    Balancer(balancer).swapExactAmountIn(yfii, IERC20(yfii).balanceOf(address(this)), dai, 0, uint(-1));
    IERC20(dai).safeApprove(ydai, 0);
    IERC20(dai).safeApprove(ydai, IERC20(dai).balanceOf(address(this)));
    yERC20(ydai).deposit(IERC20(dai).balanceOf(address(this)));
    IERC20(ydai).safeApprove(curve, 0);
    IERC20(ydai).safeApprove(curve, IERC20(ydai).balanceOf(address(this)));
    uint _before = IERC20(want).balanceOf(address(this));
    ICurveFi(curve).add_liquidity([IERC20(ydai).balanceOf(address(this)),0,0,0],0);
    uint _after = IERC20(want).balanceOf(address(this));
    uint _fee = _after.sub(_before).mul(fee).div(max);
    IERC20(want).safeTransfer(Controller(controller).rewards(), _fee);
    IERC20(want).safeApprove(pool, 0);
    IERC20(want).safeApprove(pool, IERC20(want).balanceOf(address(this)));
    Yfii(pool).stake(IERC20(want).balanceOf(address(this)));
}
1 Like

Agree that we need a good documentation about this to make informed choices. Is there a release date for the docs? last time I check I was not able to use it.

1 Like

https://twitter.com/AndreCronjeTech/status/1294258110526300160
Thanks guys :clap:

2 Likes

Strategies can be found here.

https://feel-the-yearn.vercel.app/

yCRV does not farm YFII anymore, its moved on to CRV strategy.

1 Like