Rule Craft
DocsErrorsMenu

Reference

Errors

Custom errors the contracts revert with.

ErrorContractWhen
BadRules(uint8 code)allA 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)HookSnipe Guard: this block's buy cap is full.
ExactInputOnly()HookAn exact-output swap on a Rule Craft pool.
NotLauncher()HookSomeone other than the launcher tried to register or open a pool on the hook.
NotRegistered()HookA swap or initialize on a pool the hook has no rules for.
WrongPoolShape()HookPool key does not match the rules (currency, fee or hook).
RulesMismatch()LauncherLaunch names a blueprint whose rules differ.
Slippage(uint256 out, uint256 minOut)LauncherOutput below the minimum.
StillLocked(uint64 unlockAt)LauncherFounding liquidity withdrawal before the unlock time.
NotCreator()LauncherFee collection or withdrawal by someone other than the creator.
HookAlreadySet()LaunchersetHook called a second time.
NotDeployer()LaunchersetHook from a wallet other than the deployer.
UnknownPool()LauncherswapExactIn on a pool the launcher did not open.
BadShare()RegistryRoyalty above 25%, or protocol share above 30% at deployment.
BadName()Registry, LauncherEmpty or too long name or ticker.
BadTreasury()RegistryZero treasury address at deployment.
UnknownBlueprint()RegistryBlueprint id does not exist.