From c8615eeac2c62c4d58d1523effab3c873e5f8179 Mon Sep 17 00:00:00 2001 From: saucepoint Date: Fri, 10 May 2024 10:20:22 -0400 Subject: [PATCH] remove deadcode --- contracts/hooks/examples/FullRange.sol | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/contracts/hooks/examples/FullRange.sol b/contracts/hooks/examples/FullRange.sol index 9447153c..fd8f44fe 100644 --- a/contracts/hooks/examples/FullRange.sol +++ b/contracts/hooks/examples/FullRange.sol @@ -261,23 +261,8 @@ contract FullRange is BaseHook, IUnlockCallback { } function _settleDeltas(address sender, PoolKey memory key, BalanceDelta delta) internal { - // _settleDelta(sender, key.currency0, uint128(-delta.amount0())); key.currency0.settle(poolManager, sender, uint256(int256(-delta.amount0())), false); key.currency1.settle(poolManager, sender, uint256(int256(-delta.amount1())), false); - // _settleDelta(sender, key.currency1, uint128(-delta.amount1())); - } - - function _settleDelta(address sender, Currency currency, uint128 amount) internal { - if (currency.isNative()) { - poolManager.settle{value: amount}(currency); - } else { - if (sender == address(this)) { - currency.transfer(address(poolManager), amount); - } else { - IERC20Minimal(Currency.unwrap(currency)).transferFrom(sender, address(poolManager), amount); - } - poolManager.settle(currency); - } } function _takeDeltas(address sender, PoolKey memory key, BalanceDelta delta) internal {