# PerpDex Audit on Clarity

The PerpDex smart contracts on Clarity have successfully undergone rigorous security audits to ensure their security and functionality. The audit was conducted by Thesis Defense, a respected security firm in the blockchain space.

Key points from the audit:

1. The audit covered Velar's Clarity Smart Contracts for the Stacks ecosystem.
2. Critical security issues were identified and addressed.
3. Recommendations were made for enhancing protocol governance and emergency controls.
4. Suggestions for optimizing gas usage and improving code quality were provided.
5. Guidance on strengthening the oracle implementation was given.

The Velar team has worked diligently to address the identified issues, with many fixes already implemented and others planned for future releases. This audit process has significantly enhanced the security and reliability of the PerpDex platform.

We are committed to maintaining the highest standards of security and transparency. The full audit report is available here: <https://github.com/Thesis-Defense/Security-Audit-Reports/blob/main/PDFs/240711_Thesis_Defense-Velar_Clarity_Smart_Contracts_Security_Audit_Report.pdf><br>


---

# 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.velar.com/velar/audits/perpdex-audit-on-clarity.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.
