Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IQuorumFraction

Fully qualified path: openzeppelin_interfaces::governance::extensions::IQuorumFraction

pub trait IQuorumFraction<TState>

Trait functions

token

Returns the token that voting power is sourced from.

Fully qualified path: openzeppelin_interfaces::governance::extensions::IQuorumFraction::token

fn token(self: @TState) -> ContractAddress

current_quorum_numerator

Returns the current quorum numerator.

Fully qualified path: openzeppelin_interfaces::governance::extensions::IQuorumFraction::current_quorum_numerator

fn current_quorum_numerator(self: @TState) -> u256

quorum_numerator

Returns the quorum numerator at a specific timepoint.

Fully qualified path: openzeppelin_interfaces::governance::extensions::IQuorumFraction::quorum_numerator

fn quorum_numerator(self: @TState, timepoint: u64) -> u256

quorum_denominator

Returns the quorum denominator.

Fully qualified path: openzeppelin_interfaces::governance::extensions::IQuorumFraction::quorum_denominator

fn quorum_denominator(self: @TState) -> u256