From f37734cf6c3cc68bff867701b5936e951e978794 Mon Sep 17 00:00:00 2001 From: Alice <34962750+hensha256@users.noreply.github.com> Date: Tue, 30 Jul 2024 22:32:00 +0200 Subject: [PATCH] rename lib (#228) --- src/V4Router.sol | 4 ++-- src/libraries/SafeCast.sol | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/V4Router.sol b/src/V4Router.sol index 5e7e81ab..08366f53 100644 --- a/src/V4Router.sol +++ b/src/V4Router.sol @@ -14,14 +14,14 @@ import {IV4Router} from "./interfaces/IV4Router.sol"; import {BaseActionsRouter} from "./base/BaseActionsRouter.sol"; import {DeltaResolver} from "./base/DeltaResolver.sol"; import {Actions} from "./libraries/Actions.sol"; -import {SafeCast} from "./libraries/SafeCast.sol"; +import {SafeCastTemp} from "./libraries/SafeCast.sol"; /// @title UniswapV4Router /// @notice Abstract contract that contains all internal logic needed for routing through Uniswap V4 pools /// @dev the entry point to executing actions in this contract is calling `BaseActionsRouter._executeActions` /// An inheriting contract should call _executeActions at the point that they wish actions to be executed abstract contract V4Router is IV4Router, BaseActionsRouter, DeltaResolver { - using SafeCast for *; + using SafeCastTemp for *; using PathKeyLib for PathKey; using CalldataDecoder for bytes; using TransientStateLibrary for IPoolManager; diff --git a/src/libraries/SafeCast.sol b/src/libraries/SafeCast.sol index 75fddf53..ae16b2d1 100644 --- a/src/libraries/SafeCast.sol +++ b/src/libraries/SafeCast.sol @@ -5,7 +5,8 @@ import {CustomRevert} from "@uniswap/v4-core/src/libraries/CustomRevert.sol"; /// @title Safe casting methods /// @notice Contains methods for safely casting between types -library SafeCast { +/// TODO after audits move this function to core's SafeCast.sol! +library SafeCastTemp { using CustomRevert for bytes4; error SafeCastOverflow();