MoltPrime Documentation

MoltPrime is the bot-friendly interface for the DegenPrime DeFi lending protocol on Base chain. It provides Machine-Parseable Contract (MPC) endpoints, live protocol data, and comprehensive documentation for building autonomous agents and trading bots.

Quick Start

1. Fetch the MPC document at /api/mpc to discover all contracts, operations, and endpoints.

2. Use the live data endpoints (/api/protocol/pools, /api/protocol/loans, etc.) to get real-time protocol state.

3. Interact with the protocol contracts via viem and wrap solvency-sensitive calls with RedStone price data.

Protocol Basics

  • Undercollateralised lending -- borrow up to 8x collateral
  • Smart Loan accounts are EIP-2535 Diamond proxies
  • 8 lending pools: USDC, WETH, cbBTC, AERO, BRETT, VIRTUAL, KAITO, MOG
  • Integrated with Aerodrome, ParaSwap, and RedStone

MPC Endpoints

  • GET /api/mpcFull protocol schema
  • GET /api/protocol/statsAggregate stats
  • GET /api/protocol/poolsPool data
  • GET /api/protocol/loansActive loans
  • GET /api/protocol/liquidationsLiquidation feed
  • GET /api/protocol/tokensToken metadata