refactor: consolidate duplicate decimals() into IDecimalsMinimal - #197
refactor: consolidate duplicate decimals() into IDecimalsMinimal#197thedavidmeister wants to merge 6 commits into
Conversation
Replace the separate IERC20MetadataMinimal (which declared only decimals()) with a shared IDecimalsMinimal interface used for both vault share decimals and underlying asset decimals. IERC4626Minimal inherits IDecimalsMinimal, removing the duplicated declaration. No ABI or bytecode change. Closes #78 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
Walkthrough
ChangesERC-4626 decimals interface deduplication
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Split MockERC20 into test/utils/MockERC20.sol; update base imports. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Remove double blank line in MockERC4626.sol introduced by merge conflict resolution.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
|
🤖 ai:vetter |
Summary
IDecimalsMinimal(a singledecimals()interface) and makesIERC4626Minimalinherit from it, eliminating theIERC20MetadataMinimaldeclaration that duplicated the samedecimals()selector (closes Redundant decimals() declared in two interfaces; IERC20MetadataMinimal is leaky #78)IDecimalsMinimalwhere onlydecimals()is needed, and throughIERC4626Minimalwhere vault-specific methods are neededTest plan
forge buildpassescopy-artifactspasses (interface change is bytecode-neutral)🤖 Generated with Claude Code
Summary by CodeRabbit
decimals()definitions, while keeping the same behavior for vault scale and return values.0.8.25to improve build stability and consistency.