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.
The verifier ensures that:
| 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(address vaultFactory_, address farmFactory_, string memory name_, uint256 version_)
verifyCallfunction verifyCall(
address who,
address where,
uint256 value,
bytes calldata callData,
bytes calldata /* verificationData */
) public view returns (bool)
who) has CALLER_ROLEwhere) with either a Symbiotic vault or farmkeccak256(callData) hash