Contract Details
Tech Stack
Solidity ^0.8.24 OpenZeppelin v5 Foundry
Chains
Ethereum Arbitrum Base Optimism
Description
Factory contract for deploying governance-controlled ERC-4626 yield vaults. Maintains approved asset/strategy whitelists, default fee configurations, and an on-chain vault registry.
Features
- ✓ One-call vault deployment
- ✓ Approved asset whitelist
- ✓ Approved strategy whitelist
- ✓ Default fee configuration (management + performance)
- ✓ On-chain vault registry
- ✓ Ownable2Step governance
- ✓ Fee cap enforcement at creation
- ✓ Full Foundry test suite (25+ tests, 3 fuzz tests)
- ✓ Deploy and CreateVault scripts
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title Vault Factory Contract /// @notice Factory contract to deploy new vaults with governance + fee config. contract VaultFactoryContract { address public immutable owner; uint256 public constant VERSION = 1; event Initialized(address indexed deployer); constructor() { owner = msg.sender; emit Initialized(msg.sender); } // ... full implementation in purchased package }