> For the complete documentation index, see [llms.txt](https://celopg.gitbook.io/tokenmanager/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://celopg.gitbook.io/tokenmanager/smart-contracts/security.md).

# Security

{% hint style="warning" %}
**No external audits completed yet.** See `contracts/docs/SECURITY.md` in the repo for the threat model, trust assumptions, and known attack vectors.
{% endhint %}

## Access control

| Role             | Tokens                                    | Factories    |
| ---------------- | ----------------------------------------- | ------------ |
| Owner            | Full control (mint, burn, pause, upgrade) | Full control |
| Bridge           | mint/burn only (L2, bridged mode)         | —            |
| SuperchainBridge | crosschainMint/Burn only                  | —            |
| Anyone           | transfer, approve                         | createToken  |

## Mechanisms

1. **Ownable2StepUpgradeable** — two-step ownership transfer
2. **ReentrancyGuard** — on all factory functions
3. **Pausable** — emergency stop on transfers
4. **UUPS onlyOwner** — only owner can upgrade
5. **EIP-7201 storage** — no collisions on upgrade

Runtime error reference: [Errors & Troubleshooting](/tokenmanager/resources/errors-and-troubleshooting.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://celopg.gitbook.io/tokenmanager/smart-contracts/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.
