Skip to content
    hazBasehazBaseDocs
    SMART CONTRACTS
    Contract catalog

    Strategy

    Define voting weights, quorum and proposal thresholds.

    GovernanceStrategy.sol

    Role and use

    Select a voting strategy for GenericGovernor, such as token-weighted, one-person-one-vote or square-root weighting.

    Integration considerationsStrategy.sol contains several implementations. Match weight, quorum and threshold units to the chosen implementation.

    Key contract operations

    Key entry points for direct contract calls. Consult the linked implementation and matching ABI for parameters, types and access conditions.

    OperationPurpose
    weightCalculate voter weight
    quorumCalculate quorum
    minThresholdRead the proposal threshold

    Related contracts

    Put it into practice

    Community & governance

    See the data model, processing sequence and SDK code for an application-level implementation.

    Read the implementation pattern

    Specification and source

    The Solidity source is pinned to the revision below. Match it with the SDK version and your network’s implementation address and ABI.

    generic-governor/contracts/Strategy.sol

    Source revision: b53a5b5