Rule Craft
DocsRisk scoreMenu

Concepts

Risk score

How the 0–100 rule load and A–E grade are computed for composed and unknown hooks.

The risk score measures how far a pool's rules can move a trade or a liquidity position away from a plain v4 pool. It is a reading aid, not an audit and not a safety rating of the code.

For a composed rule set

FactorMax pointsBased on
Hook permissions35Weighted callbacks the rules need
Steady take per buy25Extra take above the LP fee, full points at 10%
Opening window15Guard tax, full points at 50%
Fee movement10Range of a size-scaled fee
LP exits10Founding liquidity lock
Unreleased code5Any planned module

For an unknown hook

When the scanner reads a hook it did not compose, it only knows the address bits, the pool fee and whether bytecode exists. It scores permissions (40), delta rights (25), LP exit control (10), dynamic fees (10) and unknown code (15).

GradeScoreLabel
A0–20Light rules
B21–40Moderate rules
C41–60Active rules
D61–80Heavy rules
E81–100Extreme rules