For the complete documentation index, see llms.txt. This page is also available as Markdown.
🔷Morpho Markets
The ChainlinkOEVMorphoWrapper is used for liquidations in Morpho Blue isolated lending markets. Unlike the core market wrapper, this variant receives underlying tokens (not mTokens) as collateral and supports slippage protection via maxRepayAmount.
Maximum loan tokens willing to repay (slippage protection)
MarketParams Struct
Liquidation Flow
Solidity Example
The market's Morpho oracle must have this OEV wrapper as BASE_FEED_1. The contract verifies this requirement and will revert if the oracle is not configured correctly.
Revert Conditions
Condition
Error Message
borrower == address(0)
"ChainlinkOEVMorphoWrapper: borrower cannot be zero address"
seizedAssets == 0
"ChainlinkOEVMorphoWrapper: seized assets cannot be zero"
maxRepayAmount == 0
"ChainlinkOEVMorphoWrapper: max repay amount cannot be zero"
Wrong oracle BASE_FEED_1
"ChainlinkOEVMorphoWrapper: oracle must be the same as the base feed 1"
Note: The Morpho wrapper's PriceUpdatedEarlyAndLiquidated event has different parameters than the core wrapper - it uses seizedAssets and repaidAssets instead of repayAmount, mTokenCollateral, and mTokenLoan.
struct MarketParams {
address loanToken; // Token being borrowed (e.g. USDC)
address collateralToken; // Token used as collateral (e.g. xWELL)
address oracle; // Must use this OEV wrapper as BASE_FEED_1
address irm; // Interest rate model
uint256 lltv; // Liquidation loan-to-value ratio
}