Merge pull request #244 from jincubator/main

feat: Update v4-core and v4-periphery to latest version
This commit is contained in:
dianacarvalho1
2025-09-30 18:49:11 +01:00
committed by GitHub
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";
@@ -354,7 +355,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