> For the complete documentation index, see [llms.txt](https://permapod.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://permapod.gitbook.io/home/safety/directory.md).

# Directory

The table below explains the purpose of each contract and how it fits within the protocol.

<table><thead><tr><th width="163.03515625">Contract</th><th>Address</th><th>Role / Description</th></tr></thead><tbody><tr><td><a href="/pages/9iD7w6MivKAJGlNMpmyv"><strong>AddressProvider</strong></a></td><td><code>zig1jy2amze7fxcmessewv65jq5kupsxae2n96yech9g8d8rp5vnv74qxlddqk</code></td><td>The registry contract for all core modules. Every other contract is “discoverable” through it. This enables safer upgrades, consistent module discovery, and permissioned access management across the protocol.</td></tr><tr><td><a href="/pages/zoVUyQmnYJceBXYeeg4c"><strong>RedBank</strong></a></td><td><code>zig1s3frrzltqaxvuzffvxg89uuad6nkcyqe3ucvrahynznaek3mhe4s75puyu</code></td><td>The primary lending/borrowing module. It manages deposits, borrows, repayments, interest accrual, and asset risk parameters for standard (non-leveraged) users.</td></tr><tr><td><a href="/pages/dD9i2oEEmFEw9GZg6WwO"><strong>Incentives</strong></a></td><td><code>zig17etzyt9qu5dlga2d09ql34rcnkxgtwx544pp9reuqp9fmcp2lkjqdjf754</code></td><td>Handles distribution of liquidity mining rewards. Tracks user balances and emission rates and sends rewards to eligible depositors or borrowers.</td></tr><tr><td><a href="/pages/5FU2EkvU9l2TKt05w3W0"><strong>Oracle</strong></a></td><td><code>zig1nr48m8vv6kutnse3scxsg96pxmeyzj8hkn6rf9mstdtmmcn8h2tsm54kmz</code></td><td>Aggregates and validates price feeds provided by external sources. The Red Bank and Credit Manager depend on it to calculate collateral values, liquidation thresholds, and health factors.</td></tr><tr><td><a href="/pages/i78tAhrEytVIDRCrieNI"><strong>Swapper</strong></a></td><td><code>zig1uqxgaa3nhyzk72px73nqg0548vvddkfttnrfs9srf3e0kwttzffshk0ra5</code></td><td>A routing contract enabling asset swaps inside loans. Used for liquidations.</td></tr><tr><td><a href="/pages/dArH3ul69XG79vpmh5pn"><strong>Params</strong></a></td><td><code>zig1ma6e2dgkuu62fc66rn4msrnv89tyws75jpzz5kkk5pn4uf2cat5quevjw0</code></td><td>Stores and manages all configurable protocol parameters—interest rate models, liquidation thresholds, LTVs, caps, and incentive configurations. Only governance or authorized roles can update these values.</td></tr><tr><td><a href="/pages/MJEUL4zyUTJa7KMx6PIK"><strong>Zapper</strong></a></td><td><code>zig1s36zdllvn4fvxzlq4uvsm42stt5rqz6dqsmy2l3rdu3rqjvc90kqrvw0wj</code></td><td>A helper module that enables simplified user flows such as “deposit with one click.” It bundles swaps + deposits + collateralization actions into a single transaction. Often used for UX simplification.</td></tr><tr><td><a href="/pages/BJazvKdxzoxZ2sjL1O1l"><strong>Health</strong></a></td><td><code>zig172v7euptv09z2pvj2khntlzel2fq5pcpp9g7lxpc889hvp74mjmsa5ev2p</code></td><td>Computes health factors for Red Bank and leveraged credit accounts. Used for liquidation checks, borrowing eligibility, and safety validation.</td></tr><tr><td><a href="/pages/Ysgo6oPDkmly4VbFaxYt"><strong>AccountManager</strong></a></td><td><code>zig1jul327luptcp9vcl6x4ws9xh6c3seuzsmmzj8n6e6qqgdplrvnzsh4t3ky</code></td><td>The module powering leveraged DeFi “credit accounts.” Users can borrow against collateral and interact with external protocols (DEXs, perps, yield strategies) inside isolated smart accounts. Handles leverage, repayments, collateral, and liquidation logic.</td></tr><tr><td><a href="/pages/3ge3QRNPZhMzFDQVPATD"><strong>AccountNFT</strong></a></td><td><code>zig1kpeynqhd0qlq5v2yg2chja0lcakqkzvmpdl4eq573sdnh6vh7dnspd5zv9</code></td><td>Each credit account is represented as an NFT. This NFT grants ownership of the underlying account and enables transferability, position migration, and composability.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://permapod.gitbook.io/home/safety/directory.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.
