Overview
SymbioticVerifier is a custom ICustomVerifier implementation used to authorize interactions with the Symbiotic protocol. It restricts access to deposit, withdraw, claim, and claimRewards calls across Symbiotic vaults and farm contracts. All permissions are tightly scoped using role-based access control via MellowACL.
This verifier ensures that only allowed addresses (typically curators) can perform specific actions within the Symbiotic ecosystem.
Purpose
The verifier ensures that:- Only whitelisted vaults can act on behalf of themselves in Symbiotic vaults and farms
- All interactions are strictly validated against exact calldata to prevent misuse or encoding variation
- Only allowed selectors and targets can be used
Role Definitions
Constructor
verifyCall
High-Level Behavior
- Verifies caller (
who) hasCALLER_ROLE - Matches target contract (
where) with either a Symbiotic vault or farm - Validates exact function selector and arguments using full
keccak256(callData)hash - Rejects any calls with non-zero ETH value
Supported Calls
- For all calls, the calldata must exactly match the selector and parameters
- All other selectors or targets are denied
Security Properties
- Strict call gating: Only explicitly allowed selectors, targets, and roles pass
- Calldata hash check: Enforces strict encoding to avoid alternate ABI variants or garbage data
- Zero-value enforcement: Prevents accidental ETH transfers
- Factory pattern compatibility: Target contracts can be validated indirectly via registries