Contract Details
Tech Stack
Solidity ^0.8.24 OpenZeppelin v5 Foundry
Chains
Ethereum Arbitrum Base Optimism
Description
Production-ready ERC-4626 yield vault with management and performance fees. Features timelocked admin operations, virtual shares for inflation attack resistance, emergency pause, and full Foundry test suite. Yearn V2 pattern.
Features
- ✓ ERC-4626 compliant with OpenZeppelin v5
- ✓ Management fee (annualized via share dilution)
- ✓ Performance fee with high-water mark
- ✓ 48-hour timelock on fee & strategy changes
- ✓ Virtual shares (decimalsOffset=6) — inflation attack resistant
- ✓ Emergency pause (deposits halted, withdrawals open)
- ✓ Ownable2Step governance
- ✓ Full Foundry test suite with fuzz tests
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title ERC-4626 Base Vault /// @notice Production-ready ERC-4626 vault with management + performance fees. contract Erc4626BaseVault { 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 }