Overview
StaticAddressCondition restricts an action to a single designated address. Unlike PayerCondition and ReceiverCondition (which read from payment data), this condition checks against an immutable address set at deployment. Type: Per-deployment (deploy one per designated address via factory)Logic
When to Use
| Role | Description |
|---|---|
| Arbiter | Deploy with arbiter address for dispute resolution |
| Service Provider | Deploy with provider address for subscriptions |
| DAO Treasury | Deploy with multisig address for governance |
| Compliance Officer | Deploy with compliance address for approvals |
| Platform | Deploy with platform address for controlled releases |
Example
Deploy via StaticAddressConditionFactory:Gas
Cost: Minimal —view function with a single immutable read (compiled as a constant in bytecode, not a storage read).
