Skip to content

fix: Get quote from ALM Proxy (DEV-1141)#230

Merged
lucas-manuel merged 2 commits intodevfrom
dev-1141-quote-from-almProxy
Jan 29, 2026
Merged

fix: Get quote from ALM Proxy (DEV-1141)#230
lucas-manuel merged 2 commits intodevfrom
dev-1141-quote-from-almProxy

Conversation

@supercontracts
Copy link
Collaborator

@supercontracts supercontracts commented Jan 29, 2026

Summary by CodeRabbit

  • Refactor
    • Improved internal quote handling mechanism to enhance code organization and maintainability. The system now uses a more structured architecture for processing quote-related operations and data handling.

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

@notion-workspace
Copy link

@octane-security-app
Copy link

Summary by Octane

New Contracts

No new contracts were added.

Updated Contracts

  • LayerZeroLib.sol: The smart contract updates enhance LayerZero integration by adding detailed OFT limit and fee parameters.

🔗 Commit Hash: 6fb04d5

@coderabbitai
Copy link

coderabbitai bot commented Jan 29, 2026

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

LayerZeroLib.sol is modified to replace a direct quoteOFT call with a proxy-based approach using proxy.doCall and abi.encodeCall. The result is explicitly decoded into OFTLimit, OFTFeeDetail[], and OFTReceipt components, with minAmountLD assignment updated to derive from the decoded receipt.

Changes

Cohort / File(s) Summary
LayerZero Proxy Call Refactor
src/libraries/LayerZeroLib.sol
Added imports for OFTLimit, OFTFeeDetail, IRateLimits, and IALMProxy. Replaced direct quoteOFT call with proxy.doCall using abi.encodeCall, explicitly decoding result as (OFTLimit, OFTFeeDetail[], OFTReceipt). Updated minAmountLD assignment to use decoded OFTReceipt instead of direct return value.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • refactor: LayerZero #216 — Main PR's changes to LayerZeroLib.sol directly modify the same quote/fee retrieval logic, switching from direct calls to proxy.doCall pattern with explicit decoding.

Suggested reviewers

  • lucas-manuel
  • deluca-mike

Poem

🐰 A proxy path we hop along,
Where quoteOFT calls now belong,
Decoded receipts, fees unfold,
Layer by layer, stories told! ✨

🚥 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 follows the required format with a type prefix and colon, is concise and descriptive, and accurately reflects the main change of retrieving quotes through an ALM Proxy with the associated JIRA key.
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 dev-1141-quote-from-almProxy

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • DEV-1141: Entity not found: Issue - Could not find referenced Issue.

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

@github-actions
Copy link

Coverage after merging dev-1141-quote-from-almProxy 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%593–594
   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 5c67f4e into dev Jan 29, 2026
4 checks passed
@lucas-manuel lucas-manuel deleted the dev-1141-quote-from-almProxy branch January 29, 2026 12:27
@octane-security-app
Copy link

Overview

Vulnerabilities found: 2                                                                                

🔗 Commit Hash: 6fb04d5
🛡️ Octane Dashboard: All vulnerabilities

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