Update v4-core and v4-periphery to latest version

This commit is contained in:
johnwhitton
2025-07-17 16:04:02 -07:00
parent a057588270
commit e662eeb6d2
4 changed files with 6 additions and 3 deletions

2
foundry/.env.example Normal file
View File

@@ -0,0 +1,2 @@
# Local Anvil Testing Private Key and Address
RPC_URL=https://eth-mainnet.g.alchemy.com/v2/<YOUR-ALCHEMY-KEY-HERE>

View File

@@ -9,6 +9,7 @@ import {
} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol"; import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol";
import {SwapParams} from "@uniswap/v4-core/src/types/PoolOperation.sol";
import { import {
Currency, CurrencyLibrary Currency, CurrencyLibrary
} from "@uniswap/v4-core/src/types/Currency.sol"; } from "@uniswap/v4-core/src/types/Currency.sol";
@@ -330,7 +331,7 @@ contract UniswapV4Executor is
// slither-disable-next-line calls-loop // slither-disable-next-line calls-loop
BalanceDelta delta = poolManager.swap( BalanceDelta delta = poolManager.swap(
poolKey, poolKey,
IPoolManager.SwapParams( SwapParams(
zeroForOne, zeroForOne,
amountSpecified, amountSpecified,
zeroForOne zeroForOne