-
Notifications
You must be signed in to change notification settings - Fork 24
fix: Minor comments #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Minor comments #206
Conversation
Summary by OctaneNew ContractsNo new contracts were added. Updated Contracts
🔗 Commit Hash: 66a568a |
WalkthroughComment-only edits in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings📚 Learning: 2025-11-11T19:43:16.032ZApplied to files:
📚 Learning: 2025-11-11T19:43:16.032ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (8)
Comment |
Overview
🔗 Commit Hash: 66a568a |
src/libraries/UniswapV4Lib.sol
Outdated
| // adhere to the constraints that would have been applied if it were minted by the proxy. | ||
| // When adding funds, validate the position's tick range against current tick limits. | ||
| // The position may have been transferred to the proxy or minted under historical limits. | ||
| // Such positions can still be decreased, but increasing liquidity is only allowed if the ticks stay within limits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment is too long
10ff9eb to
1e06ac1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: Repository UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
src/libraries/UniswapV4Lib.sol(5 hunks)
🧰 Additional context used
🧠 Learnings (3)
📚 Learning: 2025-11-11T19:43:16.032Z
Learnt from: deluca-mike
Repo: sparkdotfi/spark-alm-controller PR: 0
File: :0-0
Timestamp: 2025-11-11T19:43:16.032Z
Learning: In spark-alm-controller, the burnPosition and decreasePosition functions in UniswapV4Lib.sol intentionally do not validate ownership because burning someone else's position would cause the underlying tokens to flow to the proxy, which benefits the system rather than harming it.
Applied to files:
src/libraries/UniswapV4Lib.sol
📚 Learning: 2025-11-11T19:43:16.032Z
Learnt from: deluca-mike
Repo: sparkdotfi/spark-alm-controller PR: 0
File: :0-0
Timestamp: 2025-11-11T19:43:16.032Z
Learning: In spark-alm-controller, rate limits for Uniswap positions sum both tokens normalized to 18 decimals, which doesn't account for actual USD values. This is a known design decision where normalized balance is used rather than USD-denominated values.
Applied to files:
src/libraries/UniswapV4Lib.sol
📚 Learning: 2025-10-16T16:47:34.627Z
Learnt from: supercontracts
Repo: sparkdotfi/spark-alm-controller PR: 170
File: src/MainnetController.sol:1153-1181
Timestamp: 2025-10-16T16:47:34.627Z
Learning: In src/MainnetController.sol, the USDS token always returns true on successful transfer operations, so it does not require the empty return data handling that some non-standard ERC20 tokens (like USDT) need.
Applied to files:
src/libraries/UniswapV4Lib.sol
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: coverage
- GitHub Check: test
- GitHub Check: build
🔇 Additional comments (4)
src/libraries/UniswapV4Lib.sol (4)
102-104: Tick-check comment is clearer and more informative.The rephrased comment now explicitly mentions potential outdated tick limits and transfers, providing useful context for future readers. Aligns well with the design rationale noted in learnings.
285-285: Improved generalization from "Position Manager contract" to "spender."This change makes the comment more accurate, since
_approveWithPermit2can be called with different spenders (as seen in lines 231 with_ROUTERand lines 307–308 with_POSITION_MANAGER).
338-338: Comment simplification addresses prior feedback.The shortened "Reset approvals for token0 and token1." is concise and clear. This directly addresses the previous review feedback that comments were too long.
366-367: Balance equivalence comment is clean and consistent.The corrected format (without the backtick error present on line 324) provides clear documentation of the token-value assumption.
1e06ac1 to
40da5f3
Compare
40da5f3 to
02a19b2
Compare
|
Coverage after merging fix/cantina-11-comments into dev will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.