Skip to content

Commit 31dd3b0

Browse files
committed
chore: add todos
1 parent 5f181bc commit 31dd3b0

5 files changed

Lines changed: 8 additions & 928 deletions

File tree

contracts/interfaces/IFPMMFactory.sol

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,13 @@ interface IFPMMFactory {
177177
* @param token0 The address of the first token
178178
* @param token1 The address of the second token
179179
* @param referenceRateFeedID The address of the reference rate feed
180-
* @param revertRateFeed Whether to revert if the rate feed is not available
181180
* @return proxy The address of the deployed FPMM proxy
182181
*/
183182
function deployFPMM(
184183
address fpmmImplementation,
185184
address token0,
186185
address token1,
187-
address referenceRateFeedID,
188-
bool revertRateFeed
186+
address referenceRateFeedID
189187
) external returns (address proxy);
190188

191189
/**
@@ -198,7 +196,6 @@ interface IFPMMFactory {
198196
* @param token0 The address of the first token
199197
* @param token1 The address of the second token
200198
* @param referenceRateFeedID The address of the reference rate feed
201-
* @param revertRateFeed Whether to revert if the rate feed is not available
202199
* @return proxy The address of the deployed FPMM proxy
203200
*/
204201
function deployFPMM(
@@ -209,7 +206,6 @@ interface IFPMMFactory {
209206
address customGovernance,
210207
address token0,
211208
address token1,
212-
address referenceRateFeedID,
213-
bool revertRateFeed
209+
address referenceRateFeedID
214210
) external returns (address proxy);
215211
}

contracts/swap/FPMMFactory.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ contract FPMMFactory is IFPMMFactory, OwnableUpgradeable {
208208
emit FPMMImplementationUnregistered(fpmmImplementation);
209209
}
210210

211+
// bool revertRateFeed // TODO: Add this back in
211212
/// @inheritdoc IFPMMFactory
212213
function deployFPMM(
213214
address fpmmImplementation,
@@ -217,8 +218,7 @@ contract FPMMFactory is IFPMMFactory, OwnableUpgradeable {
217218
address customGovernance,
218219
address token0,
219220
address token1,
220-
address referenceRateFeedID,
221-
bool revertRateFeed
221+
address referenceRateFeedID
222222
) external onlyOwner returns (address) {
223223
FPMMFactoryStorage storage $ = _getFPMMStorage();
224224
require($.isRegisteredImplementation[fpmmImplementation], "FPMMFactory: IMPLEMENTATION_NOT_REGISTERED");
@@ -246,14 +246,14 @@ contract FPMMFactory is IFPMMFactory, OwnableUpgradeable {
246246
return fpmmProxy;
247247
}
248248

249+
// bool revertRateFeed // TODO: Add this back in
249250
// slither-disable-start reentrancy-no-eth
250251
/// @inheritdoc IFPMMFactory
251252
function deployFPMM(
252253
address fpmmImplementation,
253254
address token0,
254255
address token1,
255-
address referenceRateFeedID,
256-
bool revertRateFeed
256+
address referenceRateFeedID
257257
) external onlyOwner returns (address) {
258258
FPMMFactoryStorage storage $ = _getFPMMStorage();
259259
require($.isRegisteredImplementation[fpmmImplementation], "FPMMFactory: IMPLEMENTATION_NOT_REGISTERED");

script/DeployLiquity2.s.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ contract DeployLiquity2Script is StdCheats, MetadataDeployment, Logging {
255255
CONFIG.fpmmImplementation,
256256
address(r.stableToken),
257257
CONFIG.USDm_ALFAJORES_ADDRESS,
258-
CONFIG.referenceRateFeedID,
259-
false // revertRateFeed - set to false as default
258+
CONFIG.referenceRateFeedID
260259
);
261260
}
262261

script/DeployReserveFPMM.s.sol

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,7 @@ contract DeployReserveFPMM is Script {
5858
fpmmFactory.initialize(sortedOracles, address(proxyAdmin), breakerBox, deployer, address(fpmmImplementation));
5959

6060
// Deploy FPMM Proxy mUSD.m/USDC
61-
cUSDaxlUSDCFPMM = fpmmFactory.deployFPMM(
62-
address(fpmmImplementation),
63-
address(USDm),
64-
USDC,
65-
USDCUSDRateFeedID,
66-
false // revertRateFeed - set to false as default
67-
);
61+
cUSDaxlUSDCFPMM = fpmmFactory.deployFPMM(address(fpmmImplementation), address(USDm), USDC, USDCUSDRateFeedID);
6862

6963
// Deploy Liquidity Strategy
7064
liquidityStrategy.initialize(reserve);

0 commit comments

Comments
 (0)