Smart contract system for managing and distributing monthly USDC compensation to ENS DAO stewards.
This contract enables automated monthly USDC payments to ENS DAO stewards, with the following key features:
- Monthly USDC payments to designated stewards
- Role-based compensation tracking
- Batch payment processing
- Emergency pause functionality
- Comprehensive test coverage
StewardCompensation.sol: Main contract handling compensation logictest/StewardCompensation.t.sol: Foundry teststest/MockERC20.sol: Test helper for USDC simulationDETAIL_SPEC.md: Detailed technical specification
- Add/update/remove stewards
- Track roles and payment amounts
- Maximum monthly amount caps
- Period-based payments
- Batch processing support
- Payment status tracking
- Owner-controlled recipient management
- Timestamp validation
- SafeERC20 implementation
- Emergency pause capability
The contract includes comprehensive test coverage:
# Run all tests
forge test
# Run with verbosity
forge test -vvTest coverage includes:
- Recipient management
- Payment processing
- Active recipient queries
- Payment period management
- Emergency controls
For detailed technical specifications and implementation details, see DETAIL_SPEC.md.
MIT