Understanding FCM Basics
To understand how Flow Credit Market (FCM) works, let's build up from simple lending concepts to FCM's innovative three-component architecture.
FCM = Traditional Lending + Automation + Yield Generation + Liquidation Protection
It's not just "another lending protocol" - it's a complete yield-generating system with automated risk management.
From Traditional Lending to FCMβ
Level 1: Traditional Lending (Aave, Compound)β
Basic lending with complete manual management:
_10graph LR_10 User[π€ User] -->|1. Deposit FLOW| Protocol[Lending Protocol]_10 Protocol -->|2. User manually<br/>borrows USDC| Borrowed[π΅ USDC]_10 Borrowed -->|3. Sits idle or<br/>manually deployed| User_10_10 Drop[π Price Drop] -.->|4. Health drops!| Alert[β οΈ Must act now!]_10 Alert -.->|5. Manual repay<br/>or liquidation| User_10_10 style Protocol fill:#757575,stroke:#333,stroke-width:2px,color:#fff_10 style Alert fill:#d94d4d,stroke:#333,stroke-width:2px,color:#fff
Traditional lending protocols require complete manual management at every step. Users must calculate their safe borrowing capacity, execute borrowing transactions themselves, and manually deploy borrowed funds into yield strategies. Most critically, they must constantly monitor their position's health factor and respond quickly to price drops or risk liquidation. This hands-on approach demands significant time, expertise, and attention to maintain a safe and profitable position.
Level 2: ALP (Automated Lending)β
Adds automatic borrowing and rebalancing:
_11graph LR_11 User[π€ User] -->|1. Deposit FLOW| ALP[ALP Position]_11 ALP -->|2. AUTO-BORROW<br/>MOET at optimal ratio| Borrowed[π΅ MOET]_11 Borrowed -->|3. Still needs<br/>manual deployment| User_11_11 Drop[π Price Drop] -.->|4. AUTO-REBALANCE<br/>if TopUpSource available| ALP_11 User -.->|5. Must manually<br/>fund TopUpSource| TopUp[TopUpSource]_11 TopUp -.->|Provides funds| ALP_11_11 style ALP fill:#4a7abf,stroke:#333,stroke-width:2px,color:#fff_11 style Borrowed fill:#ffd700,stroke:#333,stroke-width:2px
ALP introduces partial automation by calculating and executing optimal borrowing amounts when you deposit collateral, and automatically rebalancing your position when health drops below safe levels. However, users still need to manually deploy borrowed MOET into yield strategies and manage their TopUpSource for rebalancing. Without a properly funded TopUpSource, liquidation protection remains limited, leaving a critical gap in the automation.
Level 3: FCM (ALP + FYV + MOET)β
Complete yield automation with self-protecting positions:
_15graph LR_15 User[π€ User] -->|1. Deposit FLOW| ALP[ALP]_15 ALP -->|2. AUTO-BORROW| MOET[MOET]_15 MOET -->|3. AUTO-DEPLOY<br/>via DrawDownSink| FYV[FYV]_15 FYV -->|4. AUTO-EARN<br/>yield| Yield[π° Yield]_15_15 Drop[π Price Drop] -.->|5. AUTO-DETECT| ALP_15 Yield -.->|6. AUTO-PROVIDE<br/>via TopUpSource| ALP_15 ALP -.->|7. AUTO-REPAY<br/>debt restored| Safe[β
Safe]_15_15 style ALP fill:#4a7abf,stroke:#333,stroke-width:3px,color:#fff_15 style FYV fill:#4d994d,stroke:#333,stroke-width:3px,color:#fff_15 style MOET fill:#d94d4d,stroke:#333,stroke-width:2px,color:#fff_15 style Yield fill:#f9a825,stroke:#333,stroke-width:2px_15 style Safe fill:#4d994d,stroke:#333,stroke-width:2px,color:#fff
FCM completes the automation cycle by integrating ALP with FYV and MOET. The system calculates and executes optimal borrowing, automatically deploys borrowed MOET into yield strategies through FYV, and continuously generates returns. When market volatility threatens your position, FCM uses your accumulated yield to prevent liquidations and rebalances automatically to maintain optimal health. This creates a self-healing position where your earnings actively protect your collateral, delivering true set-and-forget lending with no manual intervention required.
Understanding the Three Componentsβ
Component 1: ALP (The Lending Engine)β
ALP manages collateral and debt positions with automated rebalancing. You deposit collateral such as FLOW or stFLOW, and the system applies a collateral factor that determines what percentage of your collateral's value you can borrowβfor example, a 0.8 collateral factor means you can borrow up to 80% of your collateral's value. The system continuously monitors your health factor, which is the ratio of your collateral to debt and must remain above 1.0 to avoid liquidation. ALP automatically maintains your position at a target health level, typically around 1.3, to provide a safety buffer.
Example:
_10Deposit: 1000 FLOW @ $1 = $1000_10Collateral Factor: 0.8 (80%)_10Effective Collateral: $800_10_10Target Health: 1.3_10Max Safe Borrow: $800 / 1.3 β $615.38 MOET_10_10ALP auto-borrows: 615.38 MOET_10Position Health: 800 / 615.38 = 1.3
Learn more: ALP Documentation
Component 2: FYV (The Yield Engine)β
TracerStrategy acts as the smart converter that takes your borrowed MOET, converts it into yield-earning tokens, and converts them back to MOET when your position needs protection, handling all the conversion logic between MOET and yield opportunities. AutoBalancer acts as the smart wallet that holds and manages your yield tokens, automatically monitoring the value of your yield position and rebalancing your holdings as needed to optimize returns and maintain liquidity. Together, TracerStrategy handles the conversion logic while AutoBalancer handles the holding and management of those yield tokens.
FYV deploys capital into yield-generating strategies and provides liquidity for liquidation prevention. The system uses predefined strategies like TracerStrategy to generate returns, with an AutoBalancer that manages your exposure to yield tokens and handles rebalancing automatically. When ALP borrows MOET on your behalf, the DrawDownSink receives it and deploys it into yield strategies, while the TopUpSource stands ready to provide liquidity back to ALP whenever your position needs debt repayment to maintain health.
Example strategy (TracerStrategy):
_101. Receive MOET from ALP β DrawDownSink_102. Swap MOET β YieldToken (e.g., LP token, farm token)_103. Hold YieldToken in AutoBalancer_104. Accumulate yield over time_105. When ALP needs funds:_10 - Swap YieldToken β MOET_10 - Provide via TopUpSource_10 - ALP repays debt
Learn more: FYV Documentation
Component 3: MOET (The Unit of Account)β
MOET serves as the currency for all operations within FCM, functioning simultaneously as the borrowed asset, pricing unit, and value transfer medium. As the system's unit of account, all prices are quoted in MOET termsβwhether FLOW/MOET or USDC/MOET. MOET is the primary borrowed asset that ALP auto-borrows and FYV receives for deployment. As a synthetic stablecoin with value pegged to maintain stability, MOET acts as the medium of exchange that flows seamlessly between ALP and FYV components. This design standardizes all valuations, simplifies multi-collateral calculations, and provides deep integration with the Flow ecosystem specifically for DeFi operations.
Learn more: MOET Documentation
The Capital Flow Cycleβ
Let's follow $1000 of FLOW through the entire FCM system:
Phase 1: Initial Deposit and Borrowingβ
_17You deposit: 1000 FLOW worth $1000_17β_17ALP calculates:_17 - Effective collateral: $1000 Γ 0.8 = $800_17 - Target health: 1.3_17 - Borrow amount: $800 / 1.3 = $615.38 MOET_17β_17ALP auto-borrows: 615.38 MOET_17β_17MOET flows to: FYV strategy (via DrawDownSink)_17β_17FYV swaps: 615.38 MOET β 615.38 YieldToken_17β_17Status:_17 - Your ALP position: 1000 FLOW collateral, 615.38 MOET debt_17 - Your FYV position: 615.38 YieldToken generating yield_17 - Health factor: 1.3 β
Phase 2: Yield Generationβ
_14Time passes..._14β_14FYV Strategy generates yield:_14 - Trading fees from LP positions_14 - Farming rewards_14 - Interest from lending_14β_14Example after 1 month:_14 - YieldToken value: 615.38 β 625.00 (+1.5% return)_14 - Yield earned: ~$10_14β_14FYV holds:_14 - Original: 615.38 YieldToken_14 - Plus accumulated yield
Phase 3: Price Drop & Auto-Protectionβ
_24FLOW price drops: $1.00 β $0.80 (-20%)_24β_24ALP detects:_24 - Collateral: 1000 FLOW @ $0.80 = $800 Γ 0.8 = $640 effective_24 - Debt: 615.38 MOET_24 - New health: 640 / 615.38 = 1.04 (below min 1.1!)_24β_24ALP triggers rebalancing:_24 - Calculates required repayment_24 - Target debt: $640 / 1.3 = $492.31 MOET_24 - Needs to repay: 615.38 - 492.31 = 123.07 MOET_24β_24ALP pulls from FYV (TopUpSource):_24 - FYV swaps: 123.07 YieldToken β 123.07 MOET_24 - Sends MOET to ALP_24β_24ALP repays debt:_24 - New debt: 492.31 MOET_24 - New health: 640 / 492.31 = 1.3 β_24β_24Status:_24 - ALP position: 1000 FLOW, 492.31 MOET debt, HF=1.3_24 - FYV position: ~492 YieldToken remaining_24 - Liquidation prevented! β
Phase 4: Price Recoveryβ
_24FLOW price recovers: $0.80 β $1.00_24β_24ALP detects:_24 - Collateral: 1000 FLOW @ $1.00 = $1000 Γ 0.8 = $800 effective_24 - Debt: 492.31 MOET_24 - New health: 800 / 492.31 = 1.625 (above max 1.5!)_24β_24ALP triggers rebalancing:_24 - Can borrow more to reach target health_24 - Target debt: $800 / 1.3 = $615.38 MOET_24 - Can borrow: 615.38 - 492.31 = 123.07 MOET_24β_24ALP auto-borrows:_24 - Borrows: 123.07 MOET_24 - Pushes to FYV (DrawDownSink)_24β_24FYV deploys:_24 - Swaps: 123.07 MOET β 123.07 YieldToken_24 - Back to ~615 YieldToken_24β_24Status:_24 - ALP position: 1000 FLOW, 615.38 MOET debt, HF=1.3_24 - FYV position: ~615 YieldToken generating yield_24 - Fully rebalanced and optimized! β
Key Benefits Explainedβ
1. Yield-Powered Liquidation Preventionβ
Traditional protocol:
_10Price drops β Health factor drops β You must manually:_10 1. Monitor the drop_10 2. Decide: add collateral or repay debt?_10 3. Find liquidity_10 4. Execute transaction_10 5. Hope you're not liquidated first
FCM:
_10Price drops β Health factor drops β System automatically:_10 1. Detects drop instantly_10 2. Calculates exact repayment needed_10 3. Pulls from your yield_10 4. Repays debt_10 5. Restores health_10_10All in one transaction, no intervention needed!
2. Capital Efficiencyβ
Without FCM:
_16Scenario: Have 1000 FLOW, want to generate yield_16_16Option A: Just hold FLOW_16 - Capital: $1000 working_16 - Opportunity cost: Missing yield opportunities_16_16Option B: Deposit in lending protocol_16 - Earn deposit interest: ~3% APY_16 - Capital: $1000 working_16 - Yield: ~$30/year_16_16Option C: Manual yield farming_16 - Borrow against FLOW: ~$750_16 - Deploy to farm: Complex, risky_16 - Must monitor constantly_16 - Risk liquidation
With FCM:
_10Deposit 1000 FLOW β FCM does everything:_10 - Borrow optimal amount: ~$615 MOET_10 - Deploy to best yield: Automatic_10 - Compound returns: Automatic_10 - Prevent liquidation: Automatic_10 - Potential yield: 5-15% APY (varies by strategy)_10_10Capital efficiency: Using collateral to earn yield on borrowed funds_10Risk management: Yield protects against liquidation_10Effort: Set and forget
3. Composabilityβ
Each component has value independently, allowing you to choose the level of integration that matches your needs. You can use ALP alone when you want simple lending and borrowing, have your own yield strategies, or need DeFi Actions integration for custom workflows. You can use FYV alone when you want yield aggregation without leverage, or prefer direct yield farming without the complexity of borrowing. You can use FCM together when you want maximum automation with liquidation protection and optimal capital efficiency through the integrated system.
Understanding the Mathβ
Health Factor Calculationβ
The health factor is the core metric that determines whether your position is safe or at risk of liquidation. It compares the value of your collateral (adjusted by the collateral factor) against the value of your debt.
_10Health Factor = Effective Collateral / Effective Debt_10_10Effective Collateral = Token Amount Γ Price Γ Collateral Factor_10Effective Debt = Borrowed Amount Γ Price_10_10Example:_10 - 1000 FLOW @ $1 each Γ 0.8 factor = $800 effective collateral_10 - 615.38 MOET @ $1 each = $615.38 effective debt_10 - Health Factor = 800 / 615.38 = 1.30
Target Health Rangesβ
Different health factor values indicate different states of your position, from dangerous (below 1.0) to overcollateralized (above 1.5). Understanding these ranges helps you know when to take action.
_10Health Factor States:_10_10HF < 1.0 β Liquidatable (immediate danger!)_10HF = 1.0-1.1 β At risk (very close to liquidation)_10HF = 1.1-1.3 β Below target (should rebalance up)_10HF = 1.3 β Target (optimal!)_10HF = 1.3-1.5 β Above target (can borrow more)_10HF > 1.5 β Overcollateralized (should rebalance down)
Borrowing Capacityβ
This shows how much you can safely borrow while maintaining your target health factor. Borrowing up to this limit ensures you have a safety buffer to protect against price volatility.
_10Maximum Safe Borrow = Effective Collateral / Target Health_10_10Example with target health of 1.3:_10 - Effective collateral: $800_10 - Max borrow: $800 / 1.3 = $615.38 MOET_10_10Why not borrow more?_10 - Need safety buffer for price volatility_10 - Target of 1.3 means 30% buffer above liquidation_10 - If you borrowed $800, health would be 1.0 (liquidatable immediately!)
Learn more: Mathematical Foundations
Next Stepsβ
Now that you understand the basics:
- Learn the architecture: Architecture Overview
- Understand the math: Mathematical Foundations
- Explore components: ALP, FYV, MOET