fix: register LendGateway as default module#226
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
| if (asset == UNREGISTERED_LEGACY_LIQUID_RESERVE) { | ||
| require(!gateway.isRegistered(asset), "legacy liquidRESERVE unexpectedly registered"); | ||
| continue; | ||
| } |
There was a problem hiding this comment.
Verify breaks redeploy reserve check
Medium Severity
VerifyCashLendDev now requires the legacy liquidRESERVE to stay unregistered, but DeployCashLendDev still calls setReserveId for every Spoke reserve. A rollback-and-redeploy would re-register that asset, then fail this check and leave the legacy OFT active on the gateway.
Reviewed by Cursor Bugbot for commit f81b96c. Configure here.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4ee07f5. Configure here.


Summary
OnlyModulesTest plan
forge build scripts/lend/DeployCashLendDev.s.sol scripts/lend/VerifyCashLendDev.s.solCash Lend dev deployment verified