Skip to content

Commit e69004a

Browse files
feat: allow re-deploying pool with same asset0/asset1/fee
1 parent 94e072d commit e69004a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/MaglevEulerSwapFactory.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ contract MaglevEulerSwapFactory is IMaglevEulerSwapFactory, Ownable {
6060
address poolAsset1 = pool.asset1();
6161
uint256 feeMultiplier = pool.feeMultiplier();
6262

63-
require(getPool[poolAsset0][poolAsset1][feeMultiplier] == address(0), PoolAlreadyDeployed());
64-
6563
getPool[poolAsset0][poolAsset1][feeMultiplier] = address(pool);
6664
// populate mapping in the reverse direction, deliberate choice to avoid the cost of comparing addresses
6765
getPool[poolAsset1][poolAsset0][feeMultiplier] = address(pool);

0 commit comments

Comments
 (0)