@@ -11,7 +11,7 @@ import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.s
1111import { ICurvePool } from "./ICurvePool.sol " ;
1212import { IRewardStaking } from "./IRewardStaking.sol " ;
1313import { IConvexDeposits } from "./IConvexDeposits.sol " ;
14- import { IERC20 , BaseCurveStrategy } from "./BaseCurveStrategy.sol " ;
14+ import { IERC20 , BaseCurveStrategy, InitializableAbstractStrategy } from "./BaseCurveStrategy.sol " ;
1515import { StableMath } from "../utils/StableMath.sol " ;
1616import { Helpers } from "../utils/Helpers.sol " ;
1717
@@ -32,12 +32,14 @@ contract ConvexStrategy is BaseCurveStrategy {
3232 address public _deprecated_cvxRewardTokenAddress;
3333 uint256 internal cvxDepositorPTokenId;
3434
35+ constructor (BaseStrategyConfig memory _stratConfig )
36+ InitializableAbstractStrategy (_stratConfig)
37+ {}
38+
3539 /**
3640 * Initializer for setting up strategy internal state. This overrides the
3741 * InitializableAbstractStrategy initializer as Curve strategies don't fit
3842 * well within that abstraction.
39- * @param _platformAddress Address of the Curve 3pool
40- * @param _vaultAddress Address of the vault
4143 * @param _rewardTokenAddresses Address of CRV & CVX
4244 * @param _assets Addresses of supported assets. MUST be passed in the same
4345 * order as returned by coins on the pool contract, i.e.
@@ -48,8 +50,6 @@ contract ConvexStrategy is BaseCurveStrategy {
4850 * @param _cvxDepositorPTokenId Pid of the pool referred to by Depositor and staker
4951 */
5052 function initialize (
51- address _platformAddress , // 3Pool address
52- address _vaultAddress ,
5353 address [] calldata _rewardTokenAddresses , // CRV + CVX
5454 address [] calldata _assets ,
5555 address [] calldata _pTokens ,
@@ -65,13 +65,7 @@ contract ConvexStrategy is BaseCurveStrategy {
6565 cvxDepositorPTokenId = _cvxDepositorPTokenId;
6666 pTokenAddress = _pTokens[0 ];
6767
68- super ._initialize (
69- _platformAddress,
70- _vaultAddress,
71- _rewardTokenAddresses,
72- _assets,
73- _pTokens
74- );
68+ super ._initialize (_rewardTokenAddresses, _assets, _pTokens);
7569 _approveBase ();
7670 }
7771
0 commit comments