Prerequisites
Before creating a lending market, ensure you have:Tokenized Asset
A deployed security token (stock, commodity, or other asset) that will serve as collateral
Instance Access
Active Trusset instance with appropriate permissions
Wallet Configuration
Admin and issuer wallet addresses for role assignment
Initial Price
Current market price for the collateral asset
Creating a Market
Select Asset Type
Choose the tab matching your collateral (Gold, Stocks, etc.) and click Create Market
Configure Basic Settings
Enter:
- Stock Token: Your tokenized asset (click on fetched asset)
- Issuer Address: Comes automatically from connected address
- Initial Price: Current asset price in USD (sync automatically from price feeds)
Set Risk Parameters
Configure collateralization settings:
- Collateral Factor: 75% recommended for liquid assets
- Liquidation Threshold: 85% provides 10% safety buffer
- Liquidation Bonus: 5% incentivizes timely liquidations
Post-Deployment Configuration
After deployment, complete these configuration steps:1. Authorize Stock Token
Your stock tokens will automatically whitelist your lending contracts when deploying them. If you use an external token, the lending market needs permission to transfer your security tokens during collateral operations.- From Issuers App
Navigate to your market’s Settings tab. If stock token authorization is pending, you’ll see an alert with the required action.Click View Configuration Status to see which authorizations are needed, then execute the provided transactions from your issuer wallet.
2. Configure Oracle
The price oracle needs authorization and an initial price update.Authorize Backend Signer
Authorize Backend Signer
Sync Initial Price
Sync Initial Price
After signer authorization, click Sync Oracle to update the on-chain price. The system fetches the current price from pre-configured feeds and submits it to the oracle.Without a valid oracle price, users cannot borrow. If no custom price is configured, we will use our internal price feeds.
Custom Price Feeds
Custom Price Feeds
By default, markets use Alpha Vantage for stock prices. Configure a custom feed in Settings → Custom Price Feed:The
{symbol} placeholder is replaced with your asset’s ticker. Response must include one of: price, c, last, or regularMarketPrice.3. Configure Insurance Fund
The insurance fund protects against bad debt. Configuration happens automatically during deployment, but verify in Settings that the insurance fund address is set.4. Configure Liquidation
Liquidation is pre-configured to use Trusset’s shared liquidation router, which routes seized collateral to your configured trading venue. See Liquidation for custom liquidation contract integration.
- Liquidated collateral → Liquidation Router → Trading Venue (Orderbook Custody Contract)
- USDC proceeds → Liquidation Router → Lending Pool
Configuration Status
The Configuration Status panel shows what’s complete and what needs attention:| Status | Meaning |
|---|---|
| ✅ Market On-Chain | Contract deployed successfully |
| ✅ Oracle Configured | Price oracle has valid price |
| ✅ Signer Authorized | Backend can update prices |
| ✅ Liquidation Configured | Router authorized and ready |
| ✅ Stock Token Authorized | Market can handle collateral |
Risk Parameter Guidelines
- Conservative
- Moderate
- Aggressive
For volatile or less liquid assets:
Provides large safety margins but limits borrowing power.
| Parameter | Value |
|---|---|
| Collateral Factor | 65% |
| Liquidation Threshold | 75% |
| Liquidation Bonus | 8% |
| Close Factor | 25% |
Supply Caps
Set limits to manage market exposure:| Cap | Recommendation |
|---|---|
| Max Total Collateral | Start conservative (e.g., $1M), increase as market matures |
| Max User Collateral | 10-20% of total cap prevents concentration |
Dutch Auction Settings
If using Dutch auction liquidations (recommended for larger markets):| Setting | Description | Recommended |
|---|---|---|
| Enable Dutch Auction | Toggle auction vs instant liquidation | Yes for markets > $100k |
| Auction Duration | Time to reach minimum price | 1-24 hours |
| Start Premium | Initial price above oracle | 120-130% |
| Minimum Premium | Floor price | 95-100% |
Whitelabel Approval
Before your market appears in whitelabel applications, toggle Approved for Whitelabel in the market list. This controls visibility in the Borrow Module.Management
Day-to-day operations and monitoring
Liquidation
Configure liquidation handling
