Contract Details
Tech Stack
Solidity ^0.8.24 Foundry
Chains
Ethereum Arbitrum Base Optimism
Description
Composable fee system for ERC-4626 vaults supporting management, performance, entry, and exit fees. Abstract contract — inherit it in any vault to add plug-and-play fee collection with immutable caps.
Features
- ✓ 4 fee types: management, performance, entry, exit
- ✓ Immutable fee caps (5% mgmt, 50% perf, 2% entry/exit)
- ✓ Pure calculation functions for off-chain preview
- ✓ High-water mark tracking for performance fees
- ✓ Pro-rated management fee collection
- ✓ Abstract contract — composable with any vault
- ✓ Full NatSpec documentation
- ✓ Comprehensive test coverage
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title Vault Fee Module /// @notice Pluggable fee system: streaming, performance, entry/exit fees. contract VaultFeeModule { 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 }