Open
Conversation
There was a problem hiding this comment.
This PR mainly stabilizes integration tests by introducing _dealTokens funding helpers and adjusting rebalance timing/setup across CDP and reserve scenarios. It also removes several assertions/tests, which currently introduces coverage regressions and one inconsistent test-helper behavior.
test/integration/V3IntegrationBase.t.sol
- 🟡 IMPORTANT (
L301-L311):_dealTokensuses different semantics by path: mint path checksbalanceBefore + amount(additive), whiledealpath checksamount(absolute). The same helper call can therefore produce different balances depending on token implementation, making test setup non-deterministic across assets. - 🟡 IMPORTANT (
L314-L341):_dealAUSDis used as an unconditional fallback for any token if mint/deal fail, without asserting token identity or post-condition. If fallback is reached for a non-AUSD token, setup can silently write unrelated storage and proceed with invalid assumptions.
test/integration/CDPMigrationVerification.t.sol
- 🟡 IMPORTANT (
L458-L480):test_cdpPools_reserveTrove_validdocstring says it verifies reserve trove interest rate, but the interest-rate assertion was removed. This drops a migration invariant check while still claiming coverage.
test/integration/RebalanceCDP.t.sol
- 🟡 IMPORTANT (
L194-L200):test_rebalance_revertsWhenWithinThresholdnowcontinues when pool is above threshold. If all pools are above threshold on fork state, the test becomes vacuous (no revert assertions executed). - 🟢 SUGGESTION (
L4):consoleimport is unused; remove to keep test file clean.
test/integration/RebalanceReserve.t.sol
- 🟡 IMPORTANT (
L118-L124): same vacuous-test risk as CDP variant;continuecan skip all pools and produce a false pass.
test/integration/StateVerification.t.sol
- 🟡 IMPORTANT (
L291transition point): BreakerBox/MarketHoursBreaker tests were removed (registration, trading mode, and per-feed enablement) with no replacement, reducing safety coverage around breaker configuration.
test/integration/UpgradeabilityVerification.t.sol
- 🟡 IMPORTANT (
L200transition point): Celo governance proxy-admin ownership tests (Emission/Locking/MentoGovernor/TimelockController) were removed with no replacement, reducing upgrade/governance safety coverage.
Final verdict: 🚫 Needs changes
Sent by Cursor Automation: PR Review
967d237 to
87c8934
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.