# Security

**Smart Contact Audits**

The Pinjam Protocol is heavily based on AaveV2 and Geist Finance. The full audit report can be found here with no critical findings and all low level findings resolved.

{% embed url="<https://solidity.finance/audits/Pinjam/>" %}

**Risk Management With Protocol-to-Protocol Lending**

The team behind Pinjam Protocol has set up a unique monitoring infrastructure to monitor the underlying liquidity of the integrated protocols, creating a new metric\`Collateralization Factor\`.

<figure><img src="/files/nAEIHTOBG70bxRh2Yp9H" alt=""><figcaption><p>Vault Info on Reserve Page</p></figcaption></figure>

This means if the vault has $100 at worked in a yield source with $400 of liquidity, the collateralization factor is 400%.

The moment the collateralization factor drops below 150%, the vault will automatically start withdrawing from the yield source in order to avoid the risk of accruing bad debt and to ensure sufficient liquidity for Pinjam Lenders.

Any new Protocol Integration will go through a governance process.

**Custom Oracle Backstop If Assets Depeg**

The team has also created our own on-chain emergency oracle for the purpose of functioning when our main oracle is non-functional (at this moment, Witnet) and/or a depeg situation occurs for our assets.

Here's the reason why.

Right now, Witnet is pulling asset prices from exchanges which will be entirely unreliable when it comes to depeggings.

Witnet also does not properly monitor bridged assets (which is very crucial) and their price oracle can be faulty too.

Our on-chain emergency oracle will be pulling from Equlibre's price feeds which will be more accurate - thus ensuring that liquidations are executed as expected should depeggings occur.


---

# 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.pinjamlabs.com/what-makes-pinjam-better/security.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.
