Skip to main content
GET
Reports, for the market and each of its four upgradeable satellites, which implementation it runs, which one the factory serves today, whether an upgrade is available, and what is announced. The market, its interest rate model, its liquidation router, its price oracle and its insurance fund are separate proxies with separate authorities, and each entry names who must sign its upgrade. Upgrade Market builds the transactions. Each entry carries a notice. Every upgrade is announced 7 days before it can execute, and the notice says which implementation is announced and when it becomes ready. An upgrade is offered only to a market the factory deployed and recorded. When the address is not a market of the lending factory this instance deploys to, inFactory is false and no entry offers an upgrade. The read never fails outright. When the factory or the chain cannot be reached, it answers with readable: false and empty entries.

Path Parameters

string
required
The market’s record ID, as id on List Markets, not its contract address. See Market IDs.

Response Fields

object
When inFactory is false, rateModel, router, insuranceFund and oracle each carry upgradeAvailable: false, targetImplementation: null and reason: "MARKET_NOT_IN_FACTORY".

Error Codes