Skip to content

fix: Missing return for ILiquidityPoolLike.deposit - #221

Merged
lucas-manuel merged 2 commits into
devfrom
fix/weth-lib-deposit-returns
Jan 28, 2026
Merged

lucas-manuel merged 2 commits into
devfrom
fix/weth-lib-deposit-returns

Conversation

@deluca-mike

@deluca-mike deluca-mike commented Jan 27, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

Release Notes

  • New Features

    • Deposit functionality now returns the share amount to callers, enabling better transaction tracking.
  • Style

    • Fixed whitespace formatting in function signatures.

✏️ Tip: You can customize this high-level summary in your review settings.

@octane-security-app

Copy link
Copy Markdown

Summary by Octane

New Contracts

No new contracts were added.

Updated Contracts

  • MainnetController.sol: The primary functionality remains unchanged; only formatting was adjusted by removing extra spaces.
  • WeETHLib.sol: The deposit function now returns uint256 shareAmount instead of having no return value.

🔗 Commit Hash: bbbb03b

@deluca-mike deluca-mike changed the title fix: Missing return for ILiquidityPoolLike.dsposit fix: Missing return for ILiquidityPoolLike.deposit Jan 27, 2026
@coderabbitai

coderabbitai Bot commented Jan 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Walkthrough

This pull request updates the interface signature for the deposit function in ILiquidityPoolLike to explicitly return a uint256 shareAmount, alongside a minor whitespace formatting adjustment in MainnetController.sol. No functional logic changes are introduced.

Changes

Cohort / File(s) Summary
Interface Signature Update
src/libraries/WeETHLib.sol
Updated ILiquidityPoolLike deposit function to return uint256 shareAmount instead of void, enabling callers to receive the deposited share amount
Whitespace Formatting
src/MainnetController.sol
Whitespace reformatting in requestWithdrawFromWeETH function signature; no semantic changes to return type or visibility

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • lucas-manuel

Poem

🐰 A whisker-twitch of return types new,
The deposit dance now returns what's due,
Share amounts flow from liquid pools so true,
While whitespace aligns in morning dew,
Small changes bloom in code so clean! 🌱

🚥 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: Missing return for ILiquidityPoolLike.deposit' correctly describes the main change: adding a return type to the deposit function signature in the ILiquidityPoolLike interface.
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 fix/weth-lib-deposit-returns

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

coderabbitai[bot]
coderabbitai Bot previously approved these changes Jan 27, 2026
@octane-security-app

Copy link
Copy Markdown

Overview

Octane AI analysis has finished. No vulnerabilities were found. Cheers! 🎉🎉🎉


🔗 Commit Hash: bbbb03b

@lucas-manuel
lucas-manuel force-pushed the fix/weth-lib-deposit-returns branch from fca0333 to 10d6abc Compare January 27, 2026 22:11
@github-actions

Copy link
Copy Markdown

Coverage after merging fix/weth-lib-deposit-returns into dev will be

99.40%

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.sol94.90%84.62%95.65%97.22%128–129, 129, 129, 316–317, 573
   MainnetController.sol99.18%100%98.36%99.24%583–584
   OTCBuffer.sol100%100%100%100%
   RateLimitHelpers.sol100%100%100%100%
   RateLimits.sol100%100%100%100%
   WeEthModule.sol92.86%75%100%100%26, 38
src/libraries
   AaveLib.sol100%100%100%100%
   ApproveLib.sol100%100%100%100%
   CCTPLib.sol100%100%100%100%
   CurveLib.sol100%100%100%100%
   ERC4626Lib.sol96%75%100%100%108
   LayerZeroLib.sol100%100%100%100%
   PSMLib.sol100%100%100%100%
   UniswapV4Lib.sol99.32%95.65%100%100%282
   WeETHLib.sol100%100%100%100%

@lucas-manuel
lucas-manuel merged commit b069400 into dev Jan 28, 2026
4 checks passed
@lucas-manuel
lucas-manuel deleted the fix/weth-lib-deposit-returns branch January 28, 2026 12:58
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.

2 participants