# Safety

<figure><img src="https://1568434324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVHZZLFzPs7Za7BMNpAzj%2Fuploads%2FRSmqcpkE8rlGctZwodvC%2Fgitbook%20safety%201920x720%20(1).png?alt=media&#x26;token=39ab9d8b-4984-43b9-a0d7-1310c51aa810" alt=""><figcaption></figcaption></figure>

Security is the foundation of Permapod’s architecture. Every contract, oracle, and system module has been designed, reviewed, and tested to guarantee robustness, transparency, and long-term reliability.

Permapod prioritizes user protection through independent audits, secure coding practices, and ongoing monitoring to maintain trust and resilience across all markets.

***

#### Verified and Audited Codebase

Permapod’s smart contracts are written in Rust, ensuring strong type safety and protection against common vulnerability classes.\
The baseline code was first validated through an extensive audit by [Oak Security](https://oaksecurity.io/), providing a solid and peer-reviewed foundation.

Permapod updates focused on 2 main areas:

* Integration of [Stork Oracle](https://www.stork.network/) for secure, redundant, and manipulation-resistant pricing.
* Refinement of market parameter management, allowing dynamic risk calibration across lending markets

#### Final audit

[Halborn](https://www.halborn.com/audits), a globally recognized blockchain security firm, completed its comprehensive audit of Permapod latest version.

**Scope:**

* Oracle integration and fallback mechanisms.
* Market parameter handling and risk management modules.
* Access control, emergency procedures, and deployment logic.

**Outcome:**

{% hint style="success" %}
Halborn confirmed that all identified issues were successfully mitigated, and the protocol is ready for secure mainnet deployment on Zigchain.
{% endhint %}

#### Audit History

Permapod benefits from a continuous security lineage with multiple independent reviews conducted by Oak Security and Halborn over time:

<table data-header-hidden><thead><tr><th width="118.19921875">Date</th><th>Auditor</th><th>Scope</th></tr></thead><tbody><tr><td><a href="https://www.halborn.com/audits/permapod/permapod-core-contracts-zigchain-54eb8c">2025-11</a></td><td><picture><source srcset="https://1568434324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVHZZLFzPs7Za7BMNpAzj%2Fuploads%2FiJYVqyDZGxSrX6b0JSgT%2Fimage%20(1)%201.png?alt=media&#x26;token=c6e79c9a-e1ec-46bb-ad01-1567498a0659" media="(prefers-color-scheme: dark)"><img src="https://1568434324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVHZZLFzPs7Za7BMNpAzj%2Fuploads%2F46iHUZlae74RtrzZqLel%2Fimage.png?alt=media&#x26;token=6edbb0f2-253f-4504-971f-50f7368d9ef8" alt=""></picture></td><td><a href="https://www.halborn.com/audits/permapod/permapod-core-contracts-zigchain-54eb8c">Stork Oracle implementation<br>Market Parameters<br>Zigchain integration</a></td></tr><tr><td><a href="https://github.com/oak-security/audit-reports/tree/main/Mars">2024-12<br>2023-09<br>2023-08<br>2023-02<br>2023-02<br>2023-01</a></td><td><div><figure><img src="https://1568434324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVHZZLFzPs7Za7BMNpAzj%2Fuploads%2FFcn4ilV5XPL6vtKygP34%2Fimage%20112.png?alt=media&#x26;token=79d306d3-c78e-435b-a184-1c79e266a788" alt=""><figcaption></figcaption></figure></div></td><td><a href="https://github.com/oak-security/audit-reports/tree/main/Mars">Baseline Codebase Review<br>Perps v1.0<br>Rover v2 v1.0<br>Red Bank Updates v1.0<br>Periphery v1.0<br>Outposts v1.0</a></td></tr><tr><td><a href="https://github.com/mars-protocol/mars-audits/tree/main/periphery/halborn">2022-02</a></td><td><div><figure><picture><source srcset="https://1568434324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVHZZLFzPs7Za7BMNpAzj%2Fuploads%2FiJYVqyDZGxSrX6b0JSgT%2Fimage%20(1)%201.png?alt=media&#x26;token=c6e79c9a-e1ec-46bb-ad01-1567498a0659" media="(prefers-color-scheme: dark)"><img src="https://1568434324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVHZZLFzPs7Za7BMNpAzj%2Fuploads%2FxgZKfgnOsntv3gGcBUCU%2Fimage.png?alt=media&#x26;token=5b7f8ee5-8cf9-4858-9942-7774f5afd056" alt=""></picture><figcaption></figcaption></figure></div></td><td><a href="https://github.com/mars-protocol/mars-audits/tree/main/periphery/halborn">Core Contracts</a></td></tr></tbody></table>

<br>
