Skip to main content

E-mode analysis (on-chain)

GET 

/v1/data/lending/e-mode/analysis

Evaluate all e-mode switching options for a user. The API fetches the user's current positions and balance data on-chain via multicall — no request body needed.

Output: For each available e-mode on the specified lender/chain, returns:

  • healthFactor — the hypothetical health factor if the user switches to that mode (null if no debt)
  • supportedAssets — which marketUids are eligible as collateral or for borrowing in that mode
  • canSwitch — whether the switch is safe (health factor > 1 and no incompatible debt)

E-mode categories are cached server-side (1 hour TTL). Market configs are cached (3 minute TTL).

Request

Responses

E-mode analysis results