Revert "chore: Remove permit2 from executor constructor..."
This reverts commit b0b98c5e5d.
This commit is contained in:
@@ -18,6 +18,8 @@ contract BalancerV2Executor is IExecutor {
|
||||
|
||||
address private constant VAULT = 0xBA12222222228d8Ba445958a75a0704d566BF2C8;
|
||||
|
||||
constructor(address _permit2) {}
|
||||
|
||||
// slither-disable-next-line locked-ether
|
||||
function swap(uint256 givenAmount, bytes calldata data)
|
||||
external
|
||||
|
||||
@@ -39,7 +39,7 @@ contract CurveExecutor is IExecutor {
|
||||
|
||||
address public immutable nativeToken;
|
||||
|
||||
constructor(address _nativeToken) {
|
||||
constructor(address _nativeToken, address _permit2) {
|
||||
if (_nativeToken == address(0)) {
|
||||
revert CurveExecutor__AddressZero();
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ contract MaverickV2Executor is IExecutor {
|
||||
|
||||
address public immutable factory;
|
||||
|
||||
constructor(address _factory) {
|
||||
constructor(address _factory, address _permit2) {
|
||||
if (_factory == address(0)) {
|
||||
revert MaverickV2Executor__InvalidFactory();
|
||||
}
|
||||
|
||||
@@ -19,7 +19,12 @@ contract UniswapV2Executor is IExecutor {
|
||||
address private immutable self;
|
||||
uint256 public immutable feeBps;
|
||||
|
||||
constructor(address _factory, bytes32 _initCode, uint256 _feeBps) {
|
||||
constructor(
|
||||
address _factory,
|
||||
bytes32 _initCode,
|
||||
address _permit2,
|
||||
uint256 _feeBps
|
||||
) {
|
||||
if (_factory == address(0)) {
|
||||
revert UniswapV2Executor__InvalidFactory();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user