docs(natspec): add @param operand, @return, and rounding direction to ConvertToAssets/Shares run()#246
Conversation
…es run(), document rounding The unnamed OperandV2 parameter is now named `operand` so the @param tag resolves; both run() functions get a @return describing their single-element output; ConvertToShares run() documents EIP-4626's mandatory floor-rounding direction (DOWN, favouring the vault). Closes #94 Closes #101 Closes #110 Co-Authored-By: Claude <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 (2)
WalkthroughThis PR updates NatSpec documentation in two ERC-4626 operation libraries. The previously unnamed ChangesERC-4626 Convert NatSpec Updates
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related issues
Possibly related PRs
🚥 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 |
Both
LibOpERC4626ConvertToAssets.runandLibOpERC4626ConvertToShares.runwere missing@param operandfor the unnamedOperandV2parameter and@returndescribing the single-element output.ConvertToShares.runalso had no note on EIP-4626's floor-rounding direction.OperandV2parameteroperandso the@paramtag resolves.@returnto both functions describing the single-element[... as Float]output.ConvertToShares.run: EIP-4626 mandatesconvertToSharesrounds DOWN (toward zero), favouring the vault.Closes #94
Closes #101
Closes #110
Co-Authored-By: Claude noreply@anthropic.com
Summary by CodeRabbit