# Protocol Overview

**Moar Market** is an undercollateralized leverage lending protocol built on Aptos. It allows users to borrow from multiple isolated pools using a unified Credit Account, while enforcing strict solvency rules based on real-time oracle pricing.

***

### 💼 Credit Accounts

At the core of Moar lies the **Credit Account** — a user-owned smart account that holds assets and tracks liabilities. Each user can have multiple Credit Accounts.

**Features:**

* Borrow from multiple pools simultaneously
* Hold multiple assets
* Interact with DeFi strategies
* Enforce solvency on every action

All borrowing, transferring, and strategy interactions are routed through these accounts.

***

### 🧮 Health Check & Solvency

Every Credit Account must remain **healthy** after any operation that moves funds out. Health is determined by comparing the total asset value against the minimum required value derived from debt and pool-specific LTVs.

Let:

* `Dp` = debt from pool `p`
* `LTVpa` = LTV for asset `a` in pool `p`

Then:\
**Minimum required asset value** = ∑ (Dp / LTVpa)

A Credit Account is healthy if its total asset value (from oracle prices) is **greater than or equal** to this threshold.

***

### 📊 LTV & Leverage

Each (pool, asset) pair defines its own **Loan-to-Value (LTV)** ratio.

Leverage is derived as:\
**Leverage = LTV / (1 - LTV)**

Varying LTVs allow pools to tune risk across different assets.

***

### 🏦 Lending Pools

Lending pools are isolated by design. Each pool can independently define:

* Interest rate model
* Supported assets and LTVs
* Fee-on-interest
* Liquidation parameters

Lenders earn interest from borrowers based on pool utilization.

***

### 🔄 Yield Strategies

Credit Accounts can optionally deploy assets into whitelisted **yield strategies**, such as:

* **Hyperion** (CLMM vaults)
* **Panora** (stable swap)
* **Thala** (AMMs, LSDs)

Each strategy is tightly integrated and permissioned. Solvency is enforced before and after any strategy interaction.

***

### 📈 Interest Rate Model

Pools use kinked interest rate curves defined by:

* Base rate
* Slope below kink
* Slope above kink
* Kink utilization point

Supply APR is derived from real borrow interest after deducting protocol fees (`fee_on_interest`) and scaled by utilization.

***

### 🔍 Tiered Oracle

Moar uses a multi-source **Tiered Oracle** for robust asset pricing. The system:

* Aggregates prices from DEXes and external feeds
* Enforces freshness checks
* Uses tiered fallback logic for resiliency

Oracle prices are critical to health checks and liquidations.

***

### ⚠️ Liquidations

If a Credit Account becomes **unhealthy**, it can be liquidated.\
Liquidations are currently **permissioned**, meaning only approved liquidators can execute them.

**Process:**

* Liquidator repays part of the debt
* Receives discounted collateral from the account

All valuations use real-time oracle pricing.

***

### 🧩 Modular Architecture

Moar is built for composability and growth.

* New strategies are integrated via external **strategy adapters**
* Adapters follow a standard interface, ensuring secure plug-and-play design
* Once deployed and enabled, strategies can be used without core upgrades
* Moar can integrate with any DeFi protocol on Aptos — AMMs, vaults, LSDs, etc.

This modularity gives Moar the power to evolve with the ecosystem and unlock new forms of capital efficiency.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.moar.market/protocol-overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
