Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Risk rules

Generated from crates/core/src/risk.rs by docs-site/scripts/gen-risk-rules.py. Do not edit by hand: CI regenerates this page and fails on any diff.

Classification is an exact, case-sensitive match on the verified function name. A function name that matches no rule is UNVERIFIED — never downgraded to LOW. Every classification exposes the rule that matched, so no tier is an opaque score.

The table holds 31 rules across 4 tiers.

Critical — 11 rules

Rules that can move value or change contract code/ownership.

Function nameWhy it is this tier
transfermoves token value
transfer_frommoves token value on behalf of another account
mintcreates new token supply
burndestroys token supply
upgradereplaces contract WASM
update_wasm_hashreplaces contract WASM
set_adminchanges contract administrator
change_adminchanges contract administrator
transfer_ownershipchanges contract owner
renounce_ownershipremoves contract owner
executeexecutes a queued governance payload; effect depends on payload

High — 8 rules

Rules that change governance parameters or state.

Function nameWhy it is this tier
queueschedules a passed proposal for execution
cancelcancels a proposal
set_voting_delaychanges governance timing
set_voting_periodchanges governance timing
set_quorumchanges quorum requirement
set_proposal_thresholdchanges who may propose
update_configchanges contract configuration
set_configchanges contract configuration

Medium — 5 rules

Rules with observable but bounded effects.

Function nameWhy it is this tier
proposecreates a proposal; effect deferred to execution
delegatemoves voting power between accounts
votecasts a vote
cast_votecasts a vote
approvegrants a token allowance

Low — 7 rules

Read-only or informational actions.

Function nameWhy it is this tier
get_proposalread-only accessor
get_votesread-only accessor
balanceread-only accessor
decimalsread-only accessor
nameread-only accessor
symbolread-only accessor
versionread-only accessor

Contextual rules

The rules above match on the function name. These additional rules evaluate the decoded arguments and emit every rule that fired, each with its evidence:

  • batched_actions
  • large_value
  • self_call
  • treasury_outflow

Contextual rules never change the function-name tier; they add evidence next to it. See docs-site/src/parser/decoding-rules.md for what a caller receives.