Lux Standard

Governance

DAO, voting, and on-chain governance contracts

Governance

On-chain governance infrastructure for the Lux Network ecosystem.

Contracts

Overview

The governance system enables token holders to:

  • Create and vote on proposals
  • Execute on-chain governance decisions
  • Manage protocol parameters

Quick Start

import "@luxdao/DAO.sol";
import "@luxdao/Vote.sol";

// Create voting contract
LUXVoting voting = new LUXVoting(IERC20(luxToken));

// Create proposal
voting.addProposals("LIP-001: Increase staking rewards", startTime, endTime);

// Vote
voting.voteProposal("LIP-001: Increase staking rewards", true);

// Check results
Proposal memory prop = voting.proposals("LIP-001: Increase staking rewards");

On this page