Skip to content

fix: CLOSE_CURRENCY instead of SETTLE_PAIR (DEV-1229)#242

Merged
lucas-manuel merged 1 commit intodevfrom
refactor/dev-1229-close-currency
Feb 11, 2026
Merged

fix: CLOSE_CURRENCY instead of SETTLE_PAIR (DEV-1229)#242
lucas-manuel merged 1 commit intodevfrom
refactor/dev-1229-close-currency

Conversation

@deluca-mike
Copy link
Collaborator

@deluca-mike deluca-mike commented Feb 10, 2026

Summary by CodeRabbit

  • Refactor
    • Optimized currency handling in liquidity modification operations for improved efficiency.

@octane-security-app
Copy link

Summary by Octane

New Contracts

No new contracts were added.

Updated Contracts

  • UniswapV4Lib.sol: The smart contract changes close currencies instead of settling pairs and adjust parameter encoding.

🔗 Commit Hash: 18fc251

@notion-workspace
Copy link

@coderabbitai
Copy link

coderabbitai bot commented Feb 10, 2026

Walkthrough

The changes modify UniswapV4Lib.sol to replace a single SETTLE_PAIR action with two CLOSE_CURRENCY actions in liquidity mint and increase operations, and expand modify-liquidity parameters from 2 to 3 entries by splitting combined currencies into separate currency0 and currency1 parameters. The control flow remains unchanged.

Changes

Cohort / File(s) Summary
UniswapV4Lib Parameter Refactoring
src/libraries/UniswapV4Lib.sol
Replaces SETTLE_PAIR action with two CLOSE_CURRENCY actions in mint/increase liquidity paths; expands modify-liquidity parameters from 2 to 3 entries, separating currency pair into individual currency0 and currency1 parameters.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • lucas-manuel
  • TheMj0ln1r

Poem

🐰 A pair that once settled as one,
Now splits into two—what fun!
CLOSE_CURRENCY calls abound,
Parameters expanded, currencies unbound! 🌊

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix: CLOSE_CURRENCY instead of SETTLE_PAIR (DEV-1229)' follows the required format (prefix: colon) and clearly describes the main change in the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refactor/dev-1229-close-currency

No actionable comments were generated in the recent review. 🎉


Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

Coverage after merging refactor/dev-1229-close-currency into dev will be

99.30%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
deploy
   ControllerDeploy.sol100%100%100%100%
   ForeignControllerInit.sol100%100%100%100%
   MainnetControllerInit.sol97.37%93.33%100%100%152, 90
src
   ALMProxy.sol100%100%100%100%
   ALMProxyFreezable.sol100%100%100%100%
   ForeignController.sol96.10%89.66%95.65%98.04%130–131, 131, 131, 556
   MainnetController.sol99.20%100%98.39%99.25%614–615
   OTCBuffer.sol92.31%100%83.33%93.75%55
   RateLimitHelpers.sol100%100%100%100%
   RateLimits.sol100%100%100%100%
   WEETHModule.sol93.18%90%85.71%96.30%65, 72
src/libraries
   AaveLib.sol100%100%100%100%
   ApproveLib.sol100%100%100%100%
   CCTPLib.sol100%100%100%100%
   CurveLib.sol100%100%100%100%
   ERC4626Lib.sol97.06%90%100%100%117
   LayerZeroLib.sol100%100%100%100%
   PSMLib.sol100%100%100%100%
   UniswapV4Lib.sol99.33%95.65%100%100%282
   WEETHLib.sol100%100%100%100%

@octane-security-app
Copy link

Overview

Vulnerabilities found: 1                                                                                
Warnings found: 1                                                                                

🔗 Commit Hash: 18fc251
🛡️ Octane Dashboard: All vulnerabilities

@lucas-manuel lucas-manuel merged commit 402bb08 into dev Feb 11, 2026
5 checks passed
@lucas-manuel lucas-manuel deleted the refactor/dev-1229-close-currency branch February 11, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants