Skip to content

Dev - #77

Merged
matteoettam09 merged 3 commits into
mainfrom
dev
Oct 16, 2025
Merged

Dev#77
matteoettam09 merged 3 commits into
mainfrom
dev

Conversation

@matteoettam09

@matteoettam09 matteoettam09 commented Oct 16, 2025

Copy link
Copy Markdown
Member

Summary by Sourcery

Remove encrypted vault support and FHE-based logic across the protocol, simplifying orchestrator, config, and liquidity components to operate exclusively with transparent vaults

Enhancements:

  • Drop all encrypted vault processing and FHE integration from InternalStatesOrchestrator, LiquidityOrchestrator, UtilitiesLib, and related interfaces
  • Simplify batch configuration to only manage transparent vault minibatch size
  • Refactor OrionConfig to register a single transparent vault factory and eliminate encrypted vault factory handling

Build:

  • Extend CI workflow to run on both 'main' and 'fhevm' branches

Tests:

  • Purge encrypted vault tests and adjust existing test suites to reference only transparent vaults

Summary by CodeRabbit

  • Chores

    • CI updated to run on the fhevm branch and to tolerate codecov upload errors without failing the pipeline.
  • Bug Fixes / Removals

    • Removed encrypted-vault feature and related orchestration phases, streamlining vault workflows.
    • Simplified vault factory configuration to a single factory.
    • Tests and test flows updated to reflect the single-vault, transparent-only flow.

@sourcery-ai

sourcery-ai Bot commented Oct 16, 2025

Copy link
Copy Markdown

Reviewer's Guide

This PR fully removes encrypted-vault (FHE) support across the protocol, simplifying the internal state orchestrator to handle only transparent vaults, updating configuration and interfaces accordingly, and cleaning up related utilities, tests, CI workflow and artifacts.

ER diagram for updated vault relationships (only transparent vaults)

erDiagram
  ORION_CONFIG ||--o| TRANSPARENT_VAULT_FACTORY : manages
  TRANSPARENT_VAULT_FACTORY ||--o| ORION_TRANSPARENT_VAULT : creates
  ORION_CONFIG ||--o| ORION_TRANSPARENT_VAULT : tracks
  ORION_CONFIG {
    address transparentVaultFactory
  }
  TRANSPARENT_VAULT_FACTORY {
    dummy_attribute string
  }
  ORION_TRANSPARENT_VAULT {
    dummy_attribute string
  }
Loading

Class diagram for updated InternalStatesOrchestrator (removal of encrypted vault support)

classDiagram
class InternalStatesOrchestrator {
  +address automationRegistry
  +ILiquidityOrchestrator liquidityOrchestrator
  +IOrionConfig config
  +IPriceAdapterRegistry registry
  +uint8 transparentMinibatchSize
  +InternalUpkeepPhase currentPhase
  +uint8 currentMinibatchIndex
  +address[] transparentVaultsEpoch
  +uint256 bufferAmount
  +function updateMinibatchSize(uint8)
  +function checkUpkeep(bytes)
  +function performUpkeep(bytes)
  +function getVaultTotalAssetsForFulfillDeposit(address)
  +function getVaultTotalAssetsForFulfillRedeem(address)
}
class InternalUpkeepPhase {
  Idle
  PreprocessingTransparentVaults
  Buffering
  PostprocessingTransparentVaults
  BuildingOrders
}
InternalStatesOrchestrator --> InternalUpkeepPhase
InternalStatesOrchestrator --> ILiquidityOrchestrator
InternalStatesOrchestrator --> IOrionConfig
InternalStatesOrchestrator --> IPriceAdapterRegistry
Loading

Class diagram for updated OrionConfig (removal of encrypted vault factory)

classDiagram
class OrionConfig {
  +address liquidityOrchestrator
  +address transparentVaultFactory
  +address priceAdapterRegistry
  +function setVaultFactory(address)
  +function getAllOrionVaults(VaultType)
}
class VaultType {
  Transparent
}
OrionConfig --> VaultType
Loading

Class diagram for updated IInternalStateOrchestrator interface (removal of encrypted vault methods)

classDiagram
class IInternalStateOrchestrator {
  +updateMinibatchSize(uint8)
  +getVaultTotalAssetsForFulfillDeposit(address)
  +getVaultTotalAssetsForFulfillRedeem(address)
}
class InternalUpkeepPhase {
  Idle
  PreprocessingTransparentVaults
  Buffering
  PostprocessingTransparentVaults
  BuildingOrders
}
Loading

File-Level Changes

Change Details Files
Refactor InternalStatesOrchestrator to drop encrypted-vault/FHE pipeline
  • Removed FHE imports, types and encrypted vault mappings
  • Deleted encrypted-phase constants, enum variants and related functions (_preprocessEncryptedMinibatch, _postprocessEncryptedMinibatch, callback, decryption logic)
  • Simplified checkUpkeep/performUpkeep flow to skip encrypted phases and renamed updateMinibatchSizes to updateMinibatchSize
contracts/orchestrators/InternalStatesOrchestrator.sol
Simplify OrionConfig vault factory registration
  • Replaced setVaultFactories(address,address) with setVaultFactory(address)
  • Removed encryptedVaultFactory field and onlyFactories branch
  • Updated removal and testing logic to use transparent vault type only
contracts/OrionConfig.sol
contracts/interfaces/IOrionConfig.sol
Update internal orchestrator interface
  • Dropped encrypted upkeep phases and callbackPreProcessDecrypt
  • Changed updateMinibatchSizes signature to updateMinibatchSize
contracts/interfaces/IInternalStateOrchestrator.sol
Remove encrypted-vault processing in LiquidityOrchestrator
  • Deleted loop over encrypted vaults in fulfill deposit/redeem logic
  • Removed IOrionEncryptedVault import
contracts/orchestrators/LiquidityOrchestrator.sol
Clean up UtilitiesLib
  • Removed FHE import and convertEncryptedDecimals function
contracts/libraries/UtilitiesLib.sol
Revise test suite to drop encrypted-vault tests
  • Removed EncryptedVaultFactory and OrionEncryptedVault usage
  • Replaced setVaultFactories calls with setVaultFactory
  • Adjusted performUpkeep phase assertions to skip encrypted steps
test/Orchestrators.test.ts
test/OrionConfigVault.test.ts
test/OrchestratorsZeroState.test.ts
test/PassiveCuratorStrategy.test.ts
test/TransparentVault.test.ts
Extend CI workflow to include fhevm branch
  • Added ‘fhevm’ to pull_request and push branch filters in .github/workflows/ci.yml
.github/workflows/ci.yml
Remove encrypted-vault contracts and artifacts
  • Deleted EncryptedVaultFactory.sol, OrionEncryptedVault.sol and related interface
  • Removed matching JSON artifacts under artifacts/contracts for encrypted vaults
contracts/factories/EncryptedVaultFactory.sol
contracts/vaults/OrionEncryptedVault.sol
contracts/interfaces/IOrionEncryptedVault.sol
artifacts/contracts/factories/EncryptedVaultFactory.sol/EncryptedVaultFactory.json
artifacts/contracts/vaults/OrionEncryptedVault.sol/OrionEncryptedVault.json
artifacts/contracts/interfaces/IOrionEncryptedVault.sol/IOrionEncryptedVault.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Oct 16, 2025

Copy link
Copy Markdown

Walkthrough

This PR removes encrypted-vault functionality and related FHE components across contracts, tests, and artifacts; it simplifies config from two vault factories to one; it updates orchestrators to remove encrypted phases and callbacks; and it adds the fhevm branch to CI triggers.

Changes

Cohort / File(s) Summary
CI Configuration
\.github/workflows/ci.yml
Added fhevm branch to push and pull_request triggers; changed Codecov upload to not fail CI on coverage errors.
Removed Contracts
contracts/factories/EncryptedVaultFactory.sol, contracts/vaults/OrionEncryptedVault.sol
Deleted EncryptedVaultFactory and OrionEncryptedVault implementations (FHE/encrypted intent, portfolio, decryption callbacks, and factory creation logic removed).
Removed Interfaces
contracts/interfaces/IOrionEncryptedVault.sol, artifacts/.../IOrionEncryptedVault.json
Deleted IOrionEncryptedVault interface and its structs, methods, and artifacts.
Config/API Changes
contracts/OrionConfig.sol, contracts/interfaces/IOrionConfig.sol, artifacts/.../IOrionConfig.json, artifacts/.../OrionConfig.json
Removed encryptedVaultFactory storage and checks; renamed setVaultFactories(address,address)setVaultFactory(address) and updated artifacts/ABI accordingly.
Orchestrator Interface & Impl
contracts/interfaces/IInternalStateOrchestrator.sol, contracts/orchestrators/InternalStatesOrchestrator.sol, artifacts/.../IInternalStateOrchestrator.json, artifacts/.../InternalStatesOrchestrator.sol/...json
Removed encrypted-related enum phases and callback callbackPreProcessDecrypt; renamed updateMinibatchSizesupdateMinibatchSize (dropped encrypted param); removed encrypted-vault state, epoch building, and decryption-related logic; removed SepoliaConfig inheritance.
Liquidity Orchestrator
contracts/orchestrators/LiquidityOrchestrator.sol, artifacts/.../LiquidityOrchestrator.sol/...json
Removed IOrionEncryptedVault import and deleted encrypted-vault loop in FulfillDepositAndRedeem; artifacts updated.
Libraries
contracts/libraries/UtilitiesLib.sol, artifacts/.../UtilitiesLib.sol/...json
Removed FHE import and convertEncryptedDecimals(); updated artifacts (bytecode).
Adapters / Strategies Artifacts
artifacts/contracts/execution/...OrionAssetERC4626ExecutionAdapter.json, artifacts/contracts/price/...json, artifacts/contracts/strategies/KBestTvlWeightedAverage.sol/...json, artifacts/contracts/price/PriceAdapterRegistry.sol/...json
Refreshed bytecode/deployedBytecode fields; ABIs unchanged.
Artifact Removals
artifacts/contracts/factories/EncryptedVaultFactory.sol/EncryptedVaultFactory.json
Deleted EncryptedVaultFactory artifact.
Tests Removed
test/EncryptedVault.test.ts
Deleted the full encrypted-vault test suite (deployment, FHE integration, intent/state tests).
Tests Updated
test/Orchestrators.test.ts, test/OrchestratorsZeroState.test.ts, test/PassiveCuratorStrategy.test.ts, test/OrionConfigVault.test.ts, test/TransparentVault.test.ts
Removed EncryptedVaultFactory/OrionEncryptedVault imports and deployments; replaced encrypted-vault interactions with transparent-vault equivalents; updated setVaultFactories()setVaultFactory() calls and upkeep phase expectations.

Sequence Diagram(s)

sequenceDiagram
  participant Scheduler as UpkeepScheduler
  participant Orchestrator as InternalStatesOrchestrator
  participant VaultT as TransparentVault
  participant Liquidity as LiquidityOrchestrator
  note over Scheduler,Orchestrator: Old flow (with encrypted vaults)
  Scheduler->>Orchestrator: trigger checkUpkeep()
  Orchestrator->>VaultT: PreprocessingTransparentVaults
  Orchestrator->>VaultT: PreprocessingEncryptedVaults
  Orchestrator->>Orchestrator: Buffering
  Orchestrator->>Orchestrator: ProcessingDecryptedValues
  Orchestrator->>Orchestrator: PostprocessingEncryptedVaults
  Orchestrator->>Liquidity: BuildingOrders
  note right of Orchestrator: multiple encrypted-related phases & callbacks
Loading
sequenceDiagram
  participant Scheduler as UpkeepScheduler
  participant Orchestrator as InternalStatesOrchestrator
  participant VaultT as TransparentVault
  participant Liquidity as LiquidityOrchestrator
  note over Scheduler,Orchestrator: New flow (encrypted vaults removed)
  Scheduler->>Orchestrator: trigger checkUpkeep()
  Orchestrator->>VaultT: PreprocessingTransparentVaults
  Orchestrator->>Orchestrator: Buffering
  Orchestrator->>Orchestrator: BuildingOrders
  Orchestrator->>Liquidity: fulfill / publish orders
  note right of Orchestrator: No encrypted phases or decryption callbacks
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

  • Develop #68 — overlaps changes to IInternalStateOrchestrator callback signatures and encrypted-vault callback handling.
  • Dev #72 — touches InternalStatesOrchestrator (price/init changes) and may conflict with orchestrator refactors here.
  • fix: epoch vaults selection internal state orchestrator #76 — modifies orchestrator epoch/vault selection and encrypted-vault processing; likely to intersect with deletions here.

Poem

🐰 I hopped through code with joyful vim,
Folded away ciphers, light and trim.
One factory stands beneath the sun,
Phases shortened, tasks now done—
A carrot-coded change: simpler and prim. 🥕

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title Check ❓ Inconclusive The title "Dev" is overly generic and provides no insight into the primary changes, such as the removal of encrypted vault support, simplification of FHE logic, and CI workflow updates. Please revise the title to accurately reflect the main change, for example: "Remove encrypted vault support and simplify FHE logic across protocol."
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4531bbb and 107aa88.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Sourcery review
  • GitHub Check: Build, Lint and Test
🔇 Additional comments (2)
.github/workflows/ci.yml (2)

5-7: CI now tracks fhevm branch

Good call pulling the fhevm branch into both PR and push triggers so the transparent-vault work stays covered by the default pipeline.


63-63: Confirm tolerating Codecov upload failures

Turning fail_ci_if_error off means the workflow will now pass even if the Codecov upload step errors out. If we rely on that failure signal to catch missing/invalid coverage reports, we might miss regressions. Please confirm we have another gate (Codecov status check, threshold rules, etc.) in place or revert this change.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there - I've reviewed your changes - here's some feedback:

  • Shrinking the InternalUpkeepPhase enum by removing encrypted phases reindexes all downstream phase values—consider reserving those slots or explicitly versioning the contract to avoid breaking existing automation scripts that rely on the previous enum ordering.
  • You’ve removed the encrypted‐vault loop in LiquidityOrchestrator but still reference EventsLib.VaultType.Encrypted in config.getAllOrionVaults tests—make sure no residual encrypted vault logic or enum references remain to prevent dead code or unexpected behavior.
  • After switching to a single vault factory in OrionConfig, confirm that the onlyFactories modifier and any on-chain permission checks no longer expect an encryptedVaultFactory address so you don’t unintentionally lock out valid calls.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Shrinking the InternalUpkeepPhase enum by removing encrypted phases reindexes all downstream phase values—consider reserving those slots or explicitly versioning the contract to avoid breaking existing automation scripts that rely on the previous enum ordering.
- You’ve removed the encrypted‐vault loop in LiquidityOrchestrator but still reference EventsLib.VaultType.Encrypted in config.getAllOrionVaults tests—make sure no residual encrypted vault logic or enum references remain to prevent dead code or unexpected behavior.
- After switching to a single vault factory in OrionConfig, confirm that the onlyFactories modifier and any on-chain permission checks no longer expect an encryptedVaultFactory address so you don’t unintentionally lock out valid calls.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
test/OrchestratorsZeroState.test.ts (1)

98-105: First upkeep shouldn’t leave you in Idle

With a vault registered, the first performUpkeep call transitions the orchestrator from Idle to PreprocessingTransparentVaults (phase 1). Expecting currentPhase() to remain 0 makes this test fail against the actual state machine. Update the assertion to expect(...).to.equal(1) (and adjust comments if needed).

🧹 Nitpick comments (1)
contracts/OrionConfig.sol (1)

199-226: Consider removing encrypted vault handling.

The addOrionVault and removeOrionVault functions still contain branching logic for VaultType.Encrypted, even though the onlyFactories modifier (line 62) now only authorizes transparentVaultFactory. This encrypted vault handling appears to be unreachable code.

If encrypted vault support is being removed permanently, consider simplifying these functions to only handle transparent vaults. If this is intentional for future extensibility or backward compatibility with already-registered vaults, please document this decision.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 048ab3d and 4531bbb.

📒 Files selected for processing (27)
  • .github/workflows/ci.yml (1 hunks)
  • artifacts/contracts/OrionConfig.sol/OrionConfig.json (2 hunks)
  • artifacts/contracts/execution/OrionAssetERC4626ExecutionAdapter.sol/OrionAssetERC4626ExecutionAdapter.json (1 hunks)
  • artifacts/contracts/factories/EncryptedVaultFactory.sol/EncryptedVaultFactory.json (0 hunks)
  • artifacts/contracts/interfaces/IInternalStateOrchestrator.sol/IInternalStateOrchestrator.json (1 hunks)
  • artifacts/contracts/interfaces/IOrionConfig.sol/IOrionConfig.json (1 hunks)
  • artifacts/contracts/interfaces/IOrionEncryptedVault.sol/IOrionEncryptedVault.json (0 hunks)
  • artifacts/contracts/libraries/UtilitiesLib.sol/UtilitiesLib.json (1 hunks)
  • artifacts/contracts/orchestrators/LiquidityOrchestrator.sol/LiquidityOrchestrator.json (1 hunks)
  • artifacts/contracts/price/OrionAssetERC4626PriceAdapter.sol/OrionAssetERC4626PriceAdapter.json (1 hunks)
  • artifacts/contracts/price/PriceAdapterRegistry.sol/PriceAdapterRegistry.json (1 hunks)
  • artifacts/contracts/strategies/KBestTvlWeightedAverage.sol/KBestTvlWeightedAverage.json (1 hunks)
  • contracts/OrionConfig.sol (2 hunks)
  • contracts/factories/EncryptedVaultFactory.sol (0 hunks)
  • contracts/interfaces/IInternalStateOrchestrator.sol (1 hunks)
  • contracts/interfaces/IOrionConfig.sol (1 hunks)
  • contracts/interfaces/IOrionEncryptedVault.sol (0 hunks)
  • contracts/libraries/UtilitiesLib.sol (0 hunks)
  • contracts/orchestrators/InternalStatesOrchestrator.sol (6 hunks)
  • contracts/orchestrators/LiquidityOrchestrator.sol (0 hunks)
  • contracts/vaults/OrionEncryptedVault.sol (0 hunks)
  • test/EncryptedVault.test.ts (0 hunks)
  • test/Orchestrators.test.ts (11 hunks)
  • test/OrchestratorsZeroState.test.ts (1 hunks)
  • test/OrionConfigVault.test.ts (10 hunks)
  • test/PassiveCuratorStrategy.test.ts (2 hunks)
  • test/TransparentVault.test.ts (1 hunks)
💤 Files with no reviewable changes (8)
  • contracts/libraries/UtilitiesLib.sol
  • contracts/orchestrators/LiquidityOrchestrator.sol
  • contracts/interfaces/IOrionEncryptedVault.sol
  • artifacts/contracts/factories/EncryptedVaultFactory.sol/EncryptedVaultFactory.json
  • contracts/factories/EncryptedVaultFactory.sol
  • artifacts/contracts/interfaces/IOrionEncryptedVault.sol/IOrionEncryptedVault.json
  • contracts/vaults/OrionEncryptedVault.sol
  • test/EncryptedVault.test.ts
🧰 Additional context used
🧬 Code graph analysis (6)
artifacts/contracts/OrionConfig.sol/OrionConfig.json (1)
test/EncryptedVault.test.ts (3)
  • tx (538-562)
  • tx (162-201)
  • beforeEach (410-468)
test/PassiveCuratorStrategy.test.ts (1)
test/EncryptedVault.test.ts (4)
  • tx (538-562)
  • tx (130-160)
  • tx (162-201)
  • it (129-202)
contracts/OrionConfig.sol (1)
test/EncryptedVault.test.ts (2)
  • tx (538-562)
  • tx (162-201)
test/OrchestratorsZeroState.test.ts (1)
test/EncryptedVault.test.ts (3)
  • tx (538-562)
  • tx (162-201)
  • tx (471-534)
artifacts/contracts/price/OrionAssetERC4626PriceAdapter.sol/OrionAssetERC4626PriceAdapter.json (1)
test/Adapters.test.ts (2)
  • orionConfig (7-53)
  • owner (15-42)
test/Orchestrators.test.ts (1)
test/EncryptedVault.test.ts (3)
  • tx (471-534)
  • tx (538-562)
  • it (470-535)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Build, Lint and Test
  • GitHub Check: Sourcery review
🔇 Additional comments (9)
.github/workflows/ci.yml (1)

5-7: LGTM!

The addition of the fhevm branch to CI triggers is appropriate for testing the simplified single-vault architecture across both main and fhevm development branches.

artifacts/contracts/strategies/KBestTvlWeightedAverage.sol/KBestTvlWeightedAverage.json (1)

196-197: LGTM!

Bytecode update reflects the underlying contract refactoring. The ABI remains unchanged, ensuring no breaking changes to the public interface.

artifacts/contracts/price/PriceAdapterRegistry.sol/PriceAdapterRegistry.json (1)

226-227: LGTM!

Bytecode update is consistent with the broader refactoring. The unchanged ABI confirms no breaking changes to the public interface.

artifacts/contracts/OrionConfig.sol/OrionConfig.json (1)

523-523: LGTM!

The artifact correctly reflects the API change from setVaultFactories to setVaultFactory, simplifying the vault factory configuration to a single transparent factory. Bytecode updates are consistent with this refactoring.

Also applies to: 600-601

contracts/interfaces/IOrionConfig.sol (1)

55-58: LGTM!

The interface correctly reflects the simplified vault factory API, removing the encrypted factory parameter. Documentation clearly describes the single transparent factory parameter.

contracts/OrionConfig.sol (2)

62-62: LGTM!

The onlyFactories modifier correctly restricts access to only the transparent vault factory, aligning with the removal of encrypted vault support.


106-111: LGTM!

The simplified setVaultFactory implementation correctly handles the single transparent factory configuration. The validation logic appropriately prevents zero addresses and duplicate registrations.

artifacts/contracts/orchestrators/LiquidityOrchestrator.sol/LiquidityOrchestrator.json (1)

672-673: LGTM!

Bytecode update reflects the removal of encrypted vault processing from the orchestrator flows. The unchanged ABI maintains interface stability.

test/TransparentVault.test.ts (1)

112-112: LGTM!

Test correctly updated to use the new single-parameter setVaultFactory API, properly configuring the transparent vault factory for test scenarios.

Comment thread contracts/orchestrators/InternalStatesOrchestrator.sol
@codecov

codecov Bot commented Oct 16, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@matteoettam09
matteoettam09 merged commit 1800e3e into main Oct 16, 2025
5 checks passed
@matteoettam09
matteoettam09 deleted the dev branch October 16, 2025 19:38
@coderabbitai coderabbitai Bot mentioned this pull request Dec 20, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant