@@ -11,7 +11,7 @@ import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.s
11
11
import { ICurvePool } from "./ICurvePool.sol " ;
12
12
import { IRewardStaking } from "./IRewardStaking.sol " ;
13
13
import { IConvexDeposits } from "./IConvexDeposits.sol " ;
14
- import { IERC20 , BaseCurveStrategy } from "./BaseCurveStrategy.sol " ;
14
+ import { IERC20 , BaseCurveStrategy, InitializableAbstractStrategy } from "./BaseCurveStrategy.sol " ;
15
15
import { StableMath } from "../utils/StableMath.sol " ;
16
16
import { Helpers } from "../utils/Helpers.sol " ;
17
17
@@ -32,12 +32,14 @@ contract ConvexStrategy is BaseCurveStrategy {
32
32
address public _deprecated_cvxRewardTokenAddress;
33
33
uint256 internal cvxDepositorPTokenId;
34
34
35
+ constructor (BaseStrategyConfig memory _stratConfig )
36
+ InitializableAbstractStrategy (_stratConfig)
37
+ {}
38
+
35
39
/**
36
40
* Initializer for setting up strategy internal state. This overrides the
37
41
* InitializableAbstractStrategy initializer as Curve strategies don't fit
38
42
* well within that abstraction.
39
- * @param _platformAddress Address of the Curve 3pool
40
- * @param _vaultAddress Address of the vault
41
43
* @param _rewardTokenAddresses Address of CRV & CVX
42
44
* @param _assets Addresses of supported assets. MUST be passed in the same
43
45
* order as returned by coins on the pool contract, i.e.
@@ -48,8 +50,6 @@ contract ConvexStrategy is BaseCurveStrategy {
48
50
* @param _cvxDepositorPTokenId Pid of the pool referred to by Depositor and staker
49
51
*/
50
52
function initialize (
51
- address _platformAddress , // 3Pool address
52
- address _vaultAddress ,
53
53
address [] calldata _rewardTokenAddresses , // CRV + CVX
54
54
address [] calldata _assets ,
55
55
address [] calldata _pTokens ,
@@ -65,13 +65,7 @@ contract ConvexStrategy is BaseCurveStrategy {
65
65
cvxDepositorPTokenId = _cvxDepositorPTokenId;
66
66
pTokenAddress = _pTokens[0 ];
67
67
68
- super ._initialize (
69
- _platformAddress,
70
- _vaultAddress,
71
- _rewardTokenAddresses,
72
- _assets,
73
- _pTokens
74
- );
68
+ super ._initialize (_rewardTokenAddresses, _assets, _pTokens);
75
69
_approveBase ();
76
70
}
77
71
0 commit comments