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:

Role Definitions

Role Constant Description
CALLER_ROLE Who is allowed to initiate Symbiotic operations (typically curators)
MELLOW_VAULT_ROLE Addresses that are allowed to be the recipient of deposits, withdrawals, or claims (usually Subvaults)
SYMBIOTIC_VAULT_ROLE Contracts that are approved as Symbiotic vault
SYMBIOTIC_FARM_ROLE Contracts that are approved as Symbiotic farm

Constructor

constructor(address vaultFactory_, address farmFactory_, string memory name_, uint256 version_)

verifyCall

function verifyCall(
    address who,
    address where,
    uint256 value,
    bytes calldata callData,
    bytes calldata /* verificationData */
) public view returns (bool)

High-Level Behavior

Supported Calls