def METHOD_NAME(
    safe,
    convex,
    convex_rewards,
    threepool_lp,
    convex_threepool_lp,
    convex_threepool_reward,
):
    convex.stake(threepool_lp, convex_threepool_lp.balanceOf(safe))
    before_bal_reward = convex_threepool_reward.balanceOf(safe)
    before_bal_threepool = threepool_lp.balanceOf(safe)
    chain.sleep(100)
    chain.mine()
    convex.unstake_all_and_withdraw_all(threepool_lp)
    assert convex_rewards.balanceOf(safe) == 0
    assert convex_threepool_lp.balanceOf(safe) == 0
    assert convex_threepool_reward.balanceOf(safe) > before_bal_reward
    assert threepool_lp.balanceOf(safe) > before_bal_threepool