You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR makes several targeted, independent fixes. Overall the changes look clean and correct. Here's a breakdown:
cadence/contracts/mocks/MockStrategies.cdc ✅
The storage path identifier is fixed from FlowYieldVaultsStrategyComposerIssuer_ to MockStrategiesComposerIssuer_. This is the right fix — the mock contract should use its own namespace to avoid collisions with the production contract's storage path. The corresponding update to local/setup_emulator.sh is consistent.
Removal of initial rebalanceYieldVault() calls (9 test files) ✅
The first rebalanceYieldVault call in each test scenario (the one before the main loop/assertion phase) has been removed. Remaining rebalanceYieldVault calls further in each test are preserved. This looks intentional — the initial forced yield vault rebalance appears redundant if rebalancePosition already handles the full rebalance. The comment update in tracer_strategy_test.cdc clarifies the reasoning well:
"Position health increased because FLOW collateral is worth more; drawDown brings it back to target."
Minor note: In rebalance_scenario3a/3b/3c/3d_test.cdc, rebalanceYieldVault is still called later in the test (line ~199–205). Worth confirming those later calls are intentionally kept vs. also being candidates for removal.
cadence/tests/PMStrategiesV1_syWFLOWv_test.cdc ✅
Removed import "test_helpers.cdc" and inlined _executeScript and equalAmounts locally. Both helpers are actively used (lines 230, 260, 305 for equalAmounts) — no dead code.
The equalAmounts tolerance comparison is correctly implemented with unsigned arithmetic handling.
flow.json ✅
Adds testnet-fork aliases across all contracts, mirroring the testnet addresses. This is a mechanical but large change (277 lines). The pattern is consistent across all entries. Assuming the testnet-fork environment uses the same deployed contract addresses as testnet, this is correct.
.github/workflows/claude-pr-review.yml
There's a pending review suggestion at this file for types: [submitted]. The file already has types: [submitted] on the pull_request_review event (line 11), so the suggestion appears to already be incorporated. Note: I'm unable to modify workflow files due to GitHub App permission restrictions.
Overall Assessment
The changes are clean and focused. No logic bugs found. The flow.jsontestnet-fork additions are large but consistent. Ready to merge pending confirmation on the rebalanceYieldVault removals in scenario3 tests.
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
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.
Closes: #???
Description
Minor independent fixes from #183
For contributor use:
masterbranchFiles changedin the Github PR explorer