🏦Core Markets
Function Signature
function updatePriceEarlyAndLiquidate(
address borrower,
uint256 repayAmount,
address mTokenCollateral,
address mTokenLoan
) external nonReentrantParameter
Type
Description
Liquidation Flow
┌─────────────────┐ ┌──────────────────────┐ ┌─────────────────┐
│ Liquidator │────▶│ ChainlinkOEVWrapper │────▶│ Moonwell Pool │
│ │ │ │ │ (Comptroller) │
└─────────────────┘ └──────────────────────┘ └─────────────────┘
│ │ │
│ 1. Transfer loan │ │
│ tokens │ │
│───────────────────────▶│ │
│ │ 2. Update cachedRoundId │
│ │ (unlock fresh price) │
│ │ │
│ │ 3. Execute liquidation │
│ │─────────────────────────▶│
│ │ │
│ │ 4. Receive mToken │
│ │ collateral │
│ │◀─────────────────────────│
│ │ │
│ 5. Receive mToken │ 6. Send protocol fee │
│ (repay + bonus) │ to feeRecipient │
│◀───────────────────────│ │Collateral Distribution
Amount
Solidity Example
Revert Conditions
Condition
Error Message
Events
Event
Parameters
Deployed Contracts
Base - ChainlinkOEVWrapper
Asset
Address
WETH Core Market Addresses (Base)
Contract
Address
OP Mainnet - ChainlinkOEVWrapper
Asset
Address
WETH Core Market Addresses (OP Mainnet)
Contract
Address
Last updated

