Security
What you are trusting when you use Cerebra, the safeguards in the contracts, and how to protect your API key.
Trust model
On-chain, you trust the contracts and the admin that holds the roles below. Off-chain, you trust the gateway to credit deposits correctly and to forward your prompts to model providers. Prompts are sent to the provider you choose and are not stored beyond the usage metadata needed for billing.
Contract safeguards
- CEREBRA is launched on Montra and is not controlled by Cerebra. The contracts assume only standard ERC-20 and reject fee-on-transfer tokens.
- Permit and burn are optional: without them deposits use approve and the burn share goes to a dead address.
- Billing and Staking use reentrancy guards and safe token transfers, and custom errors throughout.
- Billing never holds CEREBRA: it forwards each deposit within the same transaction.
- Staking withdrawals and claims work while the contract is paused.
- The test suite includes fuzz and invariant tests for solvency and supply accounting.
Roles
| Role | Can | Cannot |
|---|---|---|
| Admin (Safe) | Grant roles, force the oracle price, change the price source. | Move user funds or CEREBRA balances. |
| Operator | Adjust the split within caps, the treasury, minimum deposit and price age. | Exceed the on-chain caps. |
| Price updater | Post prices within bounds, deviation and interval. | Post outside the limits. |
| Pauser | Pause deposits and staking entry. | Block staking withdrawals or claims. |
Protecting your API key
- Treat the key like a password. Anyone holding it can spend your balance.
- Use
max_coston every request that handles untrusted input. - Rotate by signing a higher epoch. The old key stops working immediately.
- Never ask a tool to sign anything other than the exact message shown in the app.
Audit status
Unaudited
The contracts have not been independently audited. Deposit and stake only what you can afford to lose. Audit reports will be linked here when available.