# Audits and bug bounty

How Maxy's contracts were tested and reviewed, and how to report a vulnerability. It is for security reviewers and researchers. What the contracts enforce: [Security and compliance](https://maxy.co/docs/security-and-compliance).

## Audits and testing

Security work on Maxy began long before launch. The contracts went through six months of testing and security review ahead of wide release, including an internal review backed by more than 600 automated tests and fork tests against the live deployments. Independent audits are under way. That work includes formal verification, unit tests, fuzz tests and invariant tests. Of the more than 600 automated tests, 195 cover the swap contracts (the settlers, the Bitcoin verifiers and the proof registry, with pricing, fees and four end-to-end flows); the rest cover the loan contracts. Beside them run Foundry fuzz (7) and invariant (2) tests, 2 Halmos symbolic checks on the registry, and 6 fork-test suites against the live deployments.

The swap contracts' own suite: 195 Hardhat tests, 7 Foundry fuzz tests, 2 invariant tests, 2 Halmos symbolic checks on the Bitcoin output registry, 6 fork-test suites and an Echidna fuzz setup. The settler and verifier sources are verified on Sourcify: [Contracts](https://maxy.co/docs/contracts).

## Bug bounty

Security researchers are part of Maxy's defence. Maxy runs a bug bounty that pays up to $100,000 for a single finding. Rewards scale with severity and impact, across a broad range of vulnerability categories. Reports go to `POST /security-reports`, which needs no key, and a person reads every one. Maxy acknowledges each report, assesses its impact, and agrees the fix and the disclosure date with the reporter. Good-faith research that leaves other users' funds untouched is welcome.

| Severity | Example | Reward |
| --- | --- | --- |
| Critical | Theft or permanent freezing of user funds in a settler or the verifier; a payment proof accepted without the Bitcoin payment | Up to $100,000 |
| High | Temporary freezing of funds; a solver paid without delivering; an escrow taken outside its four exits | Up to $25,000 |
| Medium | Denial of service of the API or the settler for all users; leaking another partner's orders or keys | Up to $5,000 |
| Low | Issues with limited impact on users or funds | Up to $1,000 |

**Response times.** Maxy acknowledges a report within 2 business days, gives a first assessment within 5 business days, and sends an update at least every 7 days until the fix ships. The disclosure date is agreed with the reporter.

In scope: the settlers, the verifier, the Solana program, the HTTP API and the SDK. Out of scope: third-party services, social engineering, denial of service by volume, and findings already reported. Rewards are paid in USDC. The report body and its fields: [System routes](https://maxy.co/docs/system-routes).

---
Source: https://maxy.co/docs/audits-and-bug-bounty (Maxy Docs › Learn about Maxy › Learn more)
