Skip to content

@safe:threshold

Signature threshold of a Safe.

⚗️ Experimental — available at next.evmcrispr.com.

Returns: number

@safe:threshold(safe?)
NameTypeDescription
[safe]addressSafe address (defaults to the context Safe or connected account)
# TODO: add examples

Read getThreshold() at assertion time. The Safe still resolves at composition time (explicit argument, enclosing propose/exec block, or the connected account).

load safe
set $safe 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
assert @safe:threshold!($safe) >= 3 "threshold lowered"