# Security

At MantisSwap, security is one of our top priorities. We have taken several measures to ensure the safety & longevity of the protocol.

## Multi-sig

The Treasury account will be hosted on a Safe (previously called Gnosis Safe) multi-sig wallet to store the protocol funds in a secure manner and prevent any bad actors from compromising the funds. The multi-sig will include members from the Mantissa Finance core team initially with more prominent names to be added with time.

## Audits

The Mantis AMM smart contracts have been audited by reputed auditing firms. All future contracts will also be audited before they are made live. You can find the full report from each of the audits at the links below.&#x20;

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><strong>Peckshield</strong></td><td><em>(22/11/2022)</em></td><td><a href="https://github.com/peckshield/publications/blob/master/audit_reports/PeckShield-Audit-Report-MantisSwap-v1.0.pdf">https://github.com/peckshield/publications/blob/master/audit_reports/PeckShield-Audit-Report-MantisSwap-v1.0.pdf</a></td><td><a href="/files/5Jw9KppreEdOBDDE5osK">/files/5Jw9KppreEdOBDDE5osK</a></td></tr><tr><td><strong>Omniscia</strong></td><td><em>(12/08/2023)</em></td><td><a href="https://omniscia.io/reports/mantissa-finance-core-system-64bf82869d175e0014dae1cd/">https://omniscia.io/reports/mantissa-finance-core-system-64bf82869d175e0014dae1cd/</a></td><td><a href="/files/4d9L375DJ6TIHbIJ3yy0">/files/4d9L375DJ6TIHbIJ3yy0</a></td></tr></tbody></table>

## De-peg Protection

We have partnered with **Chainlink & API3** to get the latest price feeds for all the tokens in our protocol. These prices will always be consulted before a swap occurs to predict depeg risks.

Apart from our innovative slippage curve which prevents pool drainage, we use an additional layer of protection to ensure that an impending depeg incurs minimal loss to our LPs by introducing the Risk Tolerance Variable (RTV) for each token. When a token surpasses the risk threshold, a circuit breaker is triggered that halts swaps from this token until the protocol returns to a more stable state. Even if the token fully depegs after this point, the system remains in the same state, unaffected by the depeg.

The circuit breaker point is calculated using internal pool metrics that directly correlate to the health of the protocol. These metrics are further reinforced with oracle price feeds which are obtained from our partnership with **Chainlink on Polygon** and **API3 on zkEVM.** The circuit breaker check is always performed first before a swap occurs, ensuring safety of the protocol.


---

# 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.mantissa.finance/developers/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.
