Skip to main content
POST
Deploys a complete lending market (oracle, interest model, insurance fund, and market contract) through the factory. When useRelayer is false, returns unsigned calldata for client-side signing.
After deployment, the stock token issuer must authorize both the market and liquidation router on the stock token contract via addAuthorizedContract.

Body Parameters

stockTokenAddress
string
required
ERC-20 stock token address.
issuerAddress
string
required
Issuer wallet (receives ISSUER_ROLE).
adminAddress
string
required
Admin wallet (receives DEFAULT_ADMIN_ROLE).
initialPrice
string
required
Initial oracle price in USD (e.g. "50.00").
useRelayer
boolean
default:"false"
Execute via relayer or return calldata.