๐ Welcome, Market Owner!
As a market owner in Lendefi Markets, you have the power to create and manage isolated lending markets for any ERC-20 asset. This guide will walk you through the complete process from creation to launch.
MANAGER_ROLE
during market creation, enabling immediate configuration without waiting for DAO governance!1Create Your Market
The first step is to create your lending market through the factory contract. This establishes your isolated liquidity pool.
What happens during creation:
- โ Core contract deployed for borrower position management
- โ ERC-4626 vault deployed for lender deposits and withdrawals
- โ Position vault deployed for borrower collateral isolation
- โ Assets module cloned with your configuration permissions
- โ PoR feed deployed for proof-of-reserves tracking
- โ MANAGER_ROLE granted to you automatically
- Base Asset: Contract address of the token to be lent (must be whitelisted)
- Market Name: Name for your yield token (e.g., "Lendefi Yield Token USDC")โ This becomes your market's identifier and the ERC-4626 yield token name
- Market Symbol: Symbol for your yield token (e.g., "LYTUSDC")โ Lenders receive these tokens representing their supplied assets + earned interest
2Configure Your Assets Module
This is the most critical step! You must configure ALL assets in your market - both your base asset (the token lenders supply and borrowers receive) and every collateral asset that borrowers can deposit to secure their loans. Each asset needs proper risk parameters and oracle configuration.
๐ง Required Configurations
- Base Asset: The token lenders supply and borrowers borrow (e.g., USDC in a USDC market)
- Collateral Assets: Tokens borrowers deposit as security to borrow the base asset (e.g., ETH, WBTC, DAI)
- Testing: Always test with
getAssetPrice()
andgetAssetInfo()
after configuration
๐ Configuration Workflow
- Configure Base Asset - The token that will be supplied and borrowed (e.g., USDC)
- Configure Each Collateral Asset - All tokens borrowers can pledge as security
- Test Each Configuration - Use
getAssetPrice(address)
to verify oracles work - Verify Settings - Use
getAssetInfo(address)
to confirm all parameters - Check Oracle Count - Ensure you have enough active oracles per asset
๐ Configuration Examples
๐ฏ Risk Tiers
- STABLE (0): USDC, USDT, DAI - 95% LTV
- CROSS_A (1): WETH, WBTC - 80% LTV
- CROSS_B (2): UNI, LINK - 70% LTV
- ISOLATED (3): Other tokens - 60% LTV
โก Oracle Setup Guide
- Single Oracle: Chainlink for stablecoins
- Dual Oracle: Chainlink + Uniswap for volatile assets
- Median Price: Protocol uses median when both active
- TWAP Period: 1800s (30min) recommended
๐งช Testing Your Configuration
After configuring each asset, always test with these functions:
๐ก Use the Asset Management tab in your market dashboard to test these functions!
โ ๏ธ Important Notes
- Configure ALL assets (base + collateral) before launching
- Always test with small amounts first
- Ensure oracle feeds are active and up-to-date
- Conservative LTV ratios reduce liquidation risk
- Monitor your market regularly after launch
3Deposit Initial Liquidity
Bootstrap your market by supplying the initial liquidity. This provides the base asset pool that borrowers can draw from when they deposit collateral.
โ Best Practices
- Supply meaningful initial liquidity (e.g., $10K+)
- Monitor utilization rate (borrowed/supplied)
- Watch borrow/supply APY spread
- Consider LP incentives to attract lenders
๐ What to Monitor
- Total Value Locked (TVL)
- Utilization rate
- Supply and borrow APY
- Number of active positions
- Interest rate spreads (borrowers pay more than lenders receive)
- Liquidation penalties (when under-collateralized positions are liquidated)
- Flash loan fees (0.09% per transaction)
๐ง Quick Configuration Reference
Common LTV Ratios
Asset Decimals Reference
๐ค Need Help?
Our community and documentation are here to support you in building successful lending markets.