From c90878991259486982ea8ea4356ebdf4354ca8ea Mon Sep 17 00:00:00 2001 From: Chef Snoopy Date: Wed, 31 Jul 2024 15:27:07 +0800 Subject: [PATCH] feat: Rename burnAndTake parameter name --- ...ionManagerBatch#batchMintIncreaseAndDecreaseLiquidity.snap | 2 +- src/pool-cl/base/LiquidityManagement.sol | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.forge-snapshots/NonFungiblePositionManagerBatch#batchMintIncreaseAndDecreaseLiquidity.snap b/.forge-snapshots/NonFungiblePositionManagerBatch#batchMintIncreaseAndDecreaseLiquidity.snap index 9ee6743..f697a1a 100644 --- a/.forge-snapshots/NonFungiblePositionManagerBatch#batchMintIncreaseAndDecreaseLiquidity.snap +++ b/.forge-snapshots/NonFungiblePositionManagerBatch#batchMintIncreaseAndDecreaseLiquidity.snap @@ -1 +1 @@ -719001 \ No newline at end of file +718653 \ No newline at end of file diff --git a/src/pool-cl/base/LiquidityManagement.sol b/src/pool-cl/base/LiquidityManagement.sol index 1c2dcea..669f1a5 100644 --- a/src/pool-cl/base/LiquidityManagement.sol +++ b/src/pool-cl/base/LiquidityManagement.sol @@ -126,9 +126,9 @@ abstract contract LiquidityManagement is CLPeripheryImmutableState, PeripheryPay } } - function burnAndTake(Currency currency, address to, uint256 amount, bool shouldSettle) internal { + function burnAndTake(Currency currency, address to, uint256 amount, bool shouldTake) internal { vault.burn(address(this), currency, amount); - if (shouldSettle) { + if (shouldTake) { vault.take(currency, to, amount); } }