Reference
Errors
Custom errors the contracts revert with.
| Error | Contract | When |
|---|---|---|
| BadRules(uint8 code) | all | A rule parameter is outside its bounds, a disabled module carries non-zero fields, or the add-ons exceed 50%. The code names the check. |
| GuardCapExceeded(uint256 cap, uint256 wouldHave) | Hook | Snipe Guard: this block's buy cap is full. |
| ExactInputOnly() | Hook | An exact-output swap on a Rule Craft pool. |
| NotLauncher() | Hook | Someone other than the launcher tried to register or open a pool on the hook. |
| NotRegistered() | Hook | A swap or initialize on a pool the hook has no rules for. |
| WrongPoolShape() | Hook | Pool key does not match the rules (currency, fee or hook). |
| RulesMismatch() | Launcher | Launch names a blueprint whose rules differ. |
| Slippage(uint256 out, uint256 minOut) | Launcher | Output below the minimum. |
| StillLocked(uint64 unlockAt) | Launcher | Founding liquidity withdrawal before the unlock time. |
| NotCreator() | Launcher | Fee collection or withdrawal by someone other than the creator. |
| HookAlreadySet() | Launcher | setHook called a second time. |
| NotDeployer() | Launcher | setHook from a wallet other than the deployer. |
| UnknownPool() | Launcher | swapExactIn on a pool the launcher did not open. |
| BadShare() | Registry | Royalty above 25%, or protocol share above 30% at deployment. |
| BadName() | Registry, Launcher | Empty or too long name or ticker. |
| BadTreasury() | Registry | Zero treasury address at deployment. |
| UnknownBlueprint() | Registry | Blueprint id does not exist. |