Skip to content

Commit 6e7f485

Browse files
authored
fix: add initialize() function to IReserveLiquidityStrategy (#704)
### Description Add `initialize()` method signature to `IReserveLiquidityStrategy` and `ICDPLiquidityStrategy`
1 parent e7884d2 commit 6e7f485

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

contracts/interfaces/ICDPLiquidityStrategy.sol

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ interface ICDPLiquidityStrategy is ILiquidityStrategy {
5858
/* ==================== Mutative Functions ==================== */
5959
/* ============================================================ */
6060

61+
/**
62+
* @notice Initializes the CDPLiquidityStrategy contract
63+
* @param _initialOwner The initial owner of the contract
64+
*/
65+
function initialize(address _initialOwner) external;
66+
6167
/**
6268
* @notice Adds a new liquidity pool to be managed by the CDP strategy
6369
* @param params The parameters for adding a pool

contracts/interfaces/IReserveLiquidityStrategy.sol

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ interface IReserveLiquidityStrategy is ILiquidityStrategy {
3939
/* ==================== Mutative Functions ==================== */
4040
/* ============================================================ */
4141

42+
/**
43+
* @notice Initializes the ReserveLiquidityStrategy contract
44+
* @param _initialOwner The initial owner of the contract
45+
* @param _reserve The Mento Protocol Reserve contract address
46+
*/
47+
function initialize(address _initialOwner, address _reserve) external;
48+
4249
/**
4350
* @notice Adds a new liquidity pool to be managed by the strategy
4451
* @param params The parameters for adding a pool

contracts/liquidityStrategies/CDPLiquidityStrategy.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ contract CDPLiquidityStrategy is ICDPLiquidityStrategy, LiquidityStrategy {
3232
REDEMPTION_SHORTFALL_TOLERANCE = _redemptionShortfallTolerance;
3333
}
3434

35-
/**
36-
* @notice Initializes the CDPLiquidityStrategy contract
37-
* @param _initialOwner The initial owner of the contract
38-
*/
35+
// @inheritdoc ICDPLiquidityStrategy
3936
function initialize(address _initialOwner) public initializer {
4037
__LiquidityStrategy_init(_initialOwner);
4138
}

contracts/liquidityStrategies/ReserveLiquidityStrategy.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ contract ReserveLiquidityStrategy is IReserveLiquidityStrategy, LiquidityStrateg
3232
*/
3333
constructor(bool disable) LiquidityStrategy(disable) {}
3434

35-
/**
36-
* @notice Initializes the ReserveLiquidityStrategy contract
37-
* @param _initialOwner The initial owner of the contract
38-
* @param _reserve The Mento Protocol Reserve contract address
39-
*/
35+
/// @inheritdoc IReserveLiquidityStrategy
4036
function initialize(address _initialOwner, address _reserve) public initializer {
4137
__LiquidityStrategy_init(_initialOwner);
4238
if (_reserve == address(0)) revert RLS_INVALID_RESERVE();

0 commit comments

Comments
 (0)