@safe:threshold
Signature threshold of a Safe.
⚗️ Experimental — available at next.evmcrispr.com.
Returns: number
Syntax
Section titled “Syntax”@safe:threshold(safe?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
[safe] | address | Safe address (defaults to the context Safe or connected account) |
Examples
Section titled “Examples”# TODO: add examplesSee Also
Section titled “See Also”On-chain face (@threshold!)
Section titled “On-chain face (@threshold!)”Read getThreshold() at assertion time. A Safe given as an address, or left to the enclosing propose/exec block or the connected account, is fixed when the script is built.
The Safe may also be a ::! call that returns its address, such as
@safe:threshold!($registry::!{safe()(address)}): the read is then made against
whatever address that call returns when the assertion runs.
Examples
Section titled “Examples”load safe
set $safe 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
assert @safe:threshold!($safe) >= 3 "threshold lowered"