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
the integration of MorphoLeverageModule.sol is not compatible with morpho due to incorrect function paramters as a result the protocol is not compatible with morpho
The text was updated successfully, but these errors were encountered:
sherlock-admin2
changed the title
Breezy Basil Toad - protcol is not compatible with morpho
nikhilx0111 - protcol is not compatible with morpho
Oct 28, 2024
nikhilx0111
High
protcol is not compatible with morpho
Summary
the integration of MorphoLeverageModule.sol is not compatible with morpho due to incorrect function paramters as a result the protocol is not compatible with morpho
the parameteres expected by morpho
https://docs.morpho.org/morpho/contracts/morpho#:~:text=MarketParams%20struct%E2%80%8B,the%20bytes32%20id.
however the current function has different parameters
https://github.com/sherlock-audit/2024-10-morpho-x-index/blob/2f125406e0dd3b1fc029b9a47fe97bfbf906fce2/index-protocol/contracts/protocol/modules/v1/MorphoLeverageModule.sol#L765C3-L777C6
https://github.com/sherlock-audit/2024-10-morpho-x-index/blob/2f125406e0dd3b1fc029b9a47fe97bfbf906fce2/index-protocol/contracts/protocol/integration/lib/Morpho.sol#L101-L119
Root Cause
https://github.com/sherlock-audit/2024-10-morpho-x-index/blob/2f125406e0dd3b1fc029b9a47fe97bfbf906fce2/index-protocol/contracts/protocol/integration/lib/Morpho.sol#L101-L119
https://github.com/sherlock-audit/2024-10-morpho-x-index/blob/2f125406e0dd3b1fc029b9a47fe97bfbf906fce2/index-protocol/contracts/protocol/modules/v1/MorphoLeverageModule.sol#L765C3-L777C6
Internal pre-conditions
No response
External pre-conditions
No response
Attack Path
No response
Impact
the protocol is incompatible with morpho
PoC
No response
Mitigation
adapt to the specific functions of morpho
The text was updated successfully, but these errors were encountered: