# Modular Architecture & Integrations

Moar is built as a modular, extensible protocol with isolated components and pluggable interfaces. The design enables seamless integration of new lending pools, yield strategies, and oracle sources — all while preserving core protocol security.

***

### 🧱 Plug-and-Play Design

Moar’s architecture separates concerns across clearly defined modules:

* **Credit Accounts** – user-owned, account-level state
* **Pools** – isolated lending logic and parameters
* **Strategies** – external integrations for yield deployment
* **Oracles** – tiered price resolution layer
* **Risk Manager** – enforces solvency and health checks

Each layer interacts through standardized interfaces, enabling upgrades and new features to be introduced **without changing core contracts**.

***

### 🔌 Strategy Integrations via Adapters

New DeFi strategies can be integrated by deploying external **adapter modules** that conform to Moar’s `Strategy` interface.

* No changes are required to Credit Account or Pool logic
* Once deployed and whitelisted, adapters can be used immediately
* Strategies are enabled on a per-pool basis for fine-grained risk control

This design allows Moar to tap into any yield source on Aptos — including CLMM vaults, AMMs, LSDs, or Swaps — by simply adding a compatible adapter.

***

### 🧰 Flexible Component Management

Each major component is independently upgradable and configurable:

* **Pools** can have different LTVs, interest models, supported assets, and strategy sets
* **Strategies** can be added, paused, or disabled without impacting other parts of the protocol
* **Oracles** can be reassigned or updated per asset

This modularity provides maximum flexibility to respond to market changes, improve security, or launch new features over time.

***

### ♻️ Endless Integration Potential

Moar is designed to be the **base layer of composable leverage** for Aptos DeFi. By isolating responsibilities and exposing clean interfaces, it can integrate with:

* Any DEX or vault
* Any oracle provider
* Any interest model
* Any asset type with reliable price feeds

This future-proof architecture allows Moar to evolve without disruption, unlocking new use cases, integrations, and markets — without sacrificing protocol-level guarantees.
