Skip to content

MorphoERC4626SwapConnectors: restore deployed rounding fix on main - #176

Draft
Kay-Zee wants to merge 1 commit into
mainfrom
fix/morpho-rounding-fix-on-main
Draft

MorphoERC4626SwapConnectors: restore deployed rounding fix on main#176
Kay-Zee wants to merge 1 commit into
mainfrom
fix/morpho-rounding-fix-on-main

Conversation

@Kay-Zee

@Kay-Zee Kay-Zee commented Aug 31, 2026

Copy link
Copy Markdown
Member

Problem

The mainnet deployment of MorphoERC4626SwapConnectors (0x251032a66e9700ef) contains the ceiling-rounding fix from #164, which merged to the v0 branch and never reached main. With #175 now merged to main, deploying main's connector to production would silently revert that fix.

Verified by diffing the deployed contract code against both branches: for this file, deployed == v0 == main + this fix. ERC4626Utils and MorphoERC4626SinkConnectors are identical across deployed / v0 / main, so this one cherry-pick restores full parity for the ERC4626 Morpho surface.

Change

Cherry-pick of 0df7dca (#164) onto main, conflict-free. After this PR, main == production + #175 exactly for the contracts #175 deploys.

Testing

flow test cadence/tests/MorphoERC4626SwapConnectors_test.cdc passes with the fix and #175's liquidity gate combined, under both flow-cli v2.15.3 (CI pin) and v2.17.4 — the fork test applies the branch code as an in-place update over the real deployed mainnet state, which is the production update path.

Note for release management

main and v0 have diverged; production tracks v0. Worth a maintainer decision on whether v0 merges into main or future work rebases — outside this PR's scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants