> For the complete documentation index, see [llms.txt](https://docs.enoxswap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enoxswap.com/developers/security.md). Agents can also search and read this documentation through its [MCP server](https://docs.enoxswap.com/~gitbook/mcp).

# Security

![Security](https://1273857689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9EGjsXxqcGhGQ6XWd4Uo%2Fuploads%2Fgit-blob-f45b7cba70eaecbfac4da10c653195e482fb02d9%2Ficon-shield.png?alt=media)

EnoxSwap is non-custodial and designed so that no single action can move user funds out of the protocol. This page explains how.

## Security at a glance

|                 |                                                             |
| --------------- | ----------------------------------------------------------- |
| Custody         | Non-custodial - funds never stay in the contract            |
| New DEX routers | **24-hour timelock** before activation                      |
| Emergency stop  | Any router can be disabled instantly                        |
| Fee limits      | Swap fee capped at 1% in code                               |
| Ownership       | Cannot be renounced, so protections can never be frozen     |
| Audit           | Third-party audit not yet completed. Source code is public. |

## Protections in the code

| Protection             | Detail                                                                                                      |
| ---------------------- | ----------------------------------------------------------------------------------------------------------- |
| Non-custodial          | Funds move wallet -> contract -> router -> wallet within one transaction.                                   |
| Reentrancy guard       | `nonReentrant` on swaps, liquidity, claims and rescue.                                                      |
| Slippage and deadline  | The swap reverts if the output is below your minimum or the deadline passes.                                |
| Fee caps               | Swap fee <= 1%, referral share <= 50% of the fee, add-liquidity fee <= 1 native coin, direct-pay fee <= 1%. |
| Pull-based fees        | Fees and referral rewards are claimed, so a reverting recipient cannot block swaps.                         |
| Fee-on-transfer safe   | Amounts are measured from balances.                                                                         |
| Scoped refunds         | Add-liquidity refunds only what that call left behind.                                                      |
| Protected accrued fees | Rescue functions cannot touch funds owed to fee recipients.                                                 |
| No renounce            | `renounceOwnership()` always reverts.                                                                       |

## Router timelock

Every swap goes through a DEX router. To add a new one, the owner must:

1. call `queueRouter`, which publicly emits a `RouterQueued` event with the activation time,
2. wait the full **24-hour delay**,
3. call `executeQueuedRouter`.

This gives the community a full day to review any new router before it can be used. A router can be disabled **immediately** with `setRouterActive(index, false)`, and a queued router can be cancelled with `cancelQueuedRouter`.

## Owner permissions

The owner can manage routers (with the timelock above), adjust fees within the hard caps, update the fee account, and recover tokens or native coin that are **not** owed to fee recipients. The owner has no function that withdraws users' tokens from their wallets or takes accrued, unclaimed fees.

## Verify it yourself

Everything above is readable on-chain:

1. Open each contract from the [Contracts](https://docs.enoxswap.com/developers/contracts.md) page on its block explorer and check the **Source Code Verified** mark.
2. Read `routerDelay()` - it returns the timelock in seconds (86400 = 24 hours).
3. Read `getAllRouters()` to see the active routers.
4. Watch `RouterQueued` events for any upcoming change.
5. Approve only the amount you are swapping, and revoke old approvals from your Profile or the explorer.

## Reporting a vulnerability

Please report security issues privately and give us time to fix them before any public disclosure. Contact details are in `https://enoxswap.com/.well-known/security.txt`.

## Staying safe

* Bookmark the official site and check the URL before connecting your wallet.
* EnoxSwap will never ask for your seed phrase or private key.
* Verify contract addresses against the [Contracts](https://docs.enoxswap.com/developers/contracts.md) page.
* Scan unfamiliar tokens with the [Rug Checker](https://docs.enoxswap.com/products/rug-checker.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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.enoxswap.com/developers/security.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
