# Security

We take security extremely seriously at Metavisor. All of our Vaults feature several security features and are fully audited. All vaults and actions on them are continuously monitored.

## Audits

The protocol has undergone the following audits:

{% embed url="<https://omniscia.io/reports/metavisor-automated-liquidity-vault-63e9e3b394e38c0014d24e8d/>" %}
Omniscia Audit
{% endembed %}

## Security Features

Every vault created by Metavisor comes with several security features, some of which are listed below:

### TWAP Safety

All actions taken on a vault verify the current TWAP position of the associated pair/pool. The check ensures that the price hasn't moved too far out of expectation. This protects the vaults from getting into an unfavourable position.

### Price Manipulation

All actions taken on a vault are protected from price manipulation in multiple ways. Most importantly, every function expects a check against minimum returns. If the current execution of the call returns any less assets than expected, the transaction is reverted with no exchange. This protects the users from unfavourable MEV as well as frontrunning attacks.

### Price Impact

The protocol enforces a maximum price impact when taking actions, this also allows the protocol to hold an excess of one asset if it believes it's unfavourable for it to exchange it, protecting heavily from impermanent loss and double trading.

### Re-entrancy Protection

The code follows the **C**hecks **E**ffects **I**nteractions patterns to protect from re-entrancy attacks. Additionally, cross call pollution is not allowed as enforced by the `nonReentrant` modifier.


---

# 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.metavisor.app/protocol/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.
