<!-- canonical: https://0xsimao.com/findings/spectra-metavault-register-bridge-path-registered -->

# `MetavaultsRegistry::registerMarket()/allowBridgePath()` duplicate `onlyRegistered` modifier

Low/Info · Sherlock · Yield-tokenisation vaults · 16th December 2025

Finding I-4 of the Spectra MetaVault Bridge security review.

- Protocol: https://www.spectra.finance/
- Report: /reports/spectra-metavault-bridge
- Source: https://github.com/0xsimao/audits/blob/main/Sherlock/private-audits/2025-12-16-spectra-metavault.pdf

---

## Summary

Duplicate checks

## Vulnerability Detail

`MetavaultsRegistry::onlyRegistered()` modifier is present on both the external functions and internal ones.

## Impact

Gas usage.

## Code Snippet

https://github.com/sherlock-audit/2025-12-spectra-metavault-update-dec-16th/pull/2/files#diff-d6dbd850708b46c46f64d8bc2d13e4fe2de6f7ac75f0981bf638274c7830a293R149

https://github.com/sherlock-audit/2025-12-spectra-metavault-update-dec-16th/pull/2/files#diff-d6dbd850708b46c46f64d8bc2d13e4fe2de6f7ac75f0981bf638274c7830a293R271

## Tool Used

Manual Review

## Recommendation

Keep the modifier only in the internal functions. Don't do this for the restricted modifier though, that one needs to be on the external function.

Disclosed by 0xSimao (https://0xsimao.com/).
