feat: add router params
This commit is contained in:
23
foundry/lib/PaymentsImmutables.sol
Normal file
23
foundry/lib/PaymentsImmutables.sol
Normal file
@@ -0,0 +1,23 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
pragma solidity ^0.8.26;
|
||||
|
||||
import {IWETH9} from "@uniswap/v4-periphery/src/interfaces/external/IWETH9.sol";
|
||||
import {IPermit2} from "permit2/src/interfaces/IPermit2.sol";
|
||||
|
||||
struct PaymentsParameters {
|
||||
address permit2;
|
||||
address weth9;
|
||||
}
|
||||
|
||||
contract PaymentsImmutables {
|
||||
/// @notice WETH9 address
|
||||
IWETH9 internal immutable WETH9;
|
||||
|
||||
/// @notice Permit2 address
|
||||
IPermit2 internal immutable PERMIT2;
|
||||
|
||||
constructor(PaymentsParameters memory params) {
|
||||
WETH9 = IWETH9(params.weth9);
|
||||
PERMIT2 = IPermit2(params.permit2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user