LLM Notice: This documentation site supports content negotiation for AI agents. Request any page with Accept: text/markdown or Accept: text/plain header to receive Markdown instead of HTML. Alternatively, append ?format=md to any URL. All markdown files are available at /md/ prefix paths. For all content in one file, visit /llms-full.txt
Skip to main content

Automated Lending Platform (ALP)

The Automated Lending Platform (ALP) is the core lending protocol component of Flow Credit Market (FCM). ALP provides the foundational lending and borrowing infrastructure with automated position management and liquidation protection.

info

ALP is one of three core components that make up FCM: ALP (Automated Lending Platform) provides the lending/borrowing engine, Flow Yield Vaults (FYV) handles yield aggregation strategies, and MOET serves as the synthetic stablecoin and unit of account.

What is ALP?

ALP is a decentralized lending protocol that enables users to deposit collateral to create lending positions, borrow assets against their collateral up to their borrowing limit, earn interest on deposits, and maintain positions through automated rebalancing.

The protocol uses MOET as its primary unit of account and default borrowed asset, with all prices quoted in MOET terms.

Key Innovation: Automated Rebalancing

ALP's standout feature is its automated rebalancing system that uses DeFi Actions to maintain optimal position health. When overcollateralized (health > 1.5), the system automatically borrows more to maximize capital efficiency. When undercollateralized (health < 1.1), it automatically repays debt using yield from FYV. The protocol targets a health range of 1.1 to 1.5 for balanced risk/reward, and prevents liquidations by pulling from TopUpSource (often FYV strategies) when needed.

Integration with FYV

ALP's unique liquidation prevention mechanism leverages yield from Flow Yield Vaults:

  1. User deposits collateral into ALP position
  2. ALP auto-borrows MOET to reach target health
  3. Borrowed MOET flows into FYV strategy (via DrawDownSink)
  4. FYV generates yield on the borrowed MOET
  5. If collateral price drops, ALP pulls from FYV (via TopUpSource) to prevent liquidation
  6. Result: Yield helps maintain position health automatically

Core Components

The protocol consists of four key components: the Pool serves as the central contract managing all positions and reserves; each Position represents a user's credit account tracking collateral and debt; TokenState maintains per-token state including interest indices; and the Health Factor measures the ratio of collateral to debt (which must stay above 1.0).

Learn more in Architecture Overview.

Documentation Sections

Core Concepts

Advanced Features

How ALP Fits into FCM


_14
graph TB
_14
User[User] -->|Deposits Collateral| ALP[ALP Position]
_14
ALP -->|Auto-borrows MOET| MOET[MOET Token]
_14
MOET -->|Via DrawDownSink| FYV[FYV Strategy]
_14
FYV -->|Generates Yield| Yield[Yield Tokens]
_14
_14
Price[Price Drop] -.->|Triggers Rebalancing| ALP
_14
ALP -->|Pulls Funds| FYV
_14
FYV -->|Via TopUpSource| ALP
_14
ALP -->|Repays Debt| MOET
_14
_14
style ALP fill:#f9f,stroke:#333,stroke-width:4px
_14
style FYV fill:#bbf,stroke:#333,stroke-width:2px
_14
style MOET fill:#bfb,stroke:#333,stroke-width:2px

Getting Started with ALP

To use ALP directly:

  1. Ensure you have Flow tokens or other supported collateral
  2. Connect your wallet to the Flow blockchain
  3. Create a position by depositing collateral
  4. Configure DrawDownSink and TopUpSource for automation
  5. Monitor your position health

For most users, we recommend using Flow Credit Market (FCM) which provides a complete solution combining ALP, FYV, and MOET.

Resources

Security Considerations

ALP includes multiple safety features to protect users and the protocol. The system implements oracle staleness checks and deviation guards to ensure price accuracy, enforces warm-up periods after unpausing liquidations to prevent immediate exploits, provides slippage protection for DEX routes during trades, and continuously monitors health factors with alerts. Always monitor your position health and ensure sufficient collateral to avoid liquidation.