Skip to content

Commit 9e1ab2d

Browse files
fix
1 parent bbd8d80 commit 9e1ab2d

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/EulerSwapFactory.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import {Ownable} from "openzeppelin-contracts/access/Ownable.sol";
99
/// @custom:security-contact [email protected]
1010
/// @author Euler Labs (https://www.eulerlabs.com/)
1111
contract EulerSwapFactory is IEulerSwapFactory, Ownable {
12-
/// @dev EVC address.
13-
address public immutable evc;
1412
/// @dev An array to store all pools addresses.
1513
address[] public allPools;
1614
/// @dev Mapping to store pool addresses
@@ -30,9 +28,7 @@ contract EulerSwapFactory is IEulerSwapFactory, Ownable {
3028

3129
error InvalidQuery();
3230

33-
constructor(address evcAddr) Ownable(msg.sender) {
34-
evc = evcAddr;
35-
}
31+
constructor() Ownable(msg.sender) {}
3632

3733
/// @notice Deploy EulerSwap pool.
3834
function deployPool(DeployParams memory params) external returns (address) {

src/interfaces/IEulerSwapFactory.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ interface IEulerSwapFactory {
1717

1818
function deployPool(DeployParams memory params) external returns (address);
1919

20-
function evc() external view returns (address);
2120
function allPools(uint256 index) external view returns (address);
2221
function getPool(bytes32 poolKey) external view returns (address);
2322
function allPoolsLength() external view returns (uint256);

test/EulerSwapFactoryTest.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ contract EulerSwapFactoryTest is EulerSwapTestBase {
1313
super.setUp();
1414

1515
vm.prank(creator);
16-
eulerSwapFactory = new EulerSwapFactory(address(evc));
16+
eulerSwapFactory = new EulerSwapFactory();
1717
}
1818

1919
function testDeployPool() public {

0 commit comments

Comments
 (0)