# Security Audits

### PancakeSwap history

The smart contracts powering IguanaDEX were created by the PancakeSwap team, mainly replicating the work of the Uniswap team for versions 2 and 3 of their flagship AMM Spot DEX.

The current PancakeSwap app contains 3 decentralized exchange versions.

* [v2](https://github.com/pancakeswap/pancake-smart-contracts): this is a perfect fork of Uniswap v2
* [v3](https://github.com/pancakeswap/pancake-v3-contracts): Uniswap v3's business license expired mid-2023 and PancakeSwap took the opportunity to upgrade their app by deploying a slightly tweaked version of the Uniswap v3 contracts
* v4: this version is not available on IguanaDEX and there are currently no plans to make this available in the future.

You can find the audits pertaining to those contracts here:

* v2: The Uniswap v2 audit itself is relevant here as PancakeSwap did not introduce any changes
  * [dapps.org](https://dapp.org.uk/reports/uniswapv2.html)
  * [SlowMist](https://github.com/slowmist/Knowledge-Base/blob/master/open-report/Smart%20Contract%20Security%20Audit%20Report%20%20-%20PancakeSwap.pdf)
* v3: Note that IguanaDEX does *not* use MasterChefV3/LmPool so Phase 2 of SlowMist's audit is not relevant here
  * [PeckShield](https://github.com/peckshield/publications/blob/master/audit_reports/PeckShield-Audit-Report-PancakeSwapV3-v1.0.pdf)
  * [SlowMist](https://github.com/slowmist/Knowledge-Base/blob/master/open-report-V2/smart-contract/SlowMist%20Audit%20Report%20-%20PancakeSwap_v3_en-us.pdf)


---

# 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.iguanadex.com/iguanadex-on-mainnet/security-audits.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.
