🏦
Romulus
  • Home
  • FAQ
  • Docs
    • Romulus
    • Voting Tokens
    • Proposals
  • Guides
    • Creating a new governance
    • Voting on a proposal
    • Creating a proposal
Powered by GitBook
On this page
  • What is a Voting Token?
  • How can I create a voting token?

Was this helpful?

  1. Docs

Voting Tokens

PreviousRomulusNextProposals

Last updated 3 years ago

Was this helpful?

What is a Voting Token?

A voting token is a token that snapshots the number of votes for any given block number.

The exact interface is defined below:

interface IHasVotes {

    function getCurrentVotes(address account) external view returns (uint96);

    function getPriorVotes(address account, uint256 blockNumber)
        external
        view
        returns (uint96);
}

See: for the interface code.

How can I create a voting token?

See and as examples for easily creating a voting token. Both these tokens are just implemented by constructing a .

IHasVotes.sol
POOF
UBE
TransferrableVotingToken