Skip to main content

Governance Contract

The Governance contract enables token holders to propose and vote on protocol changes.

Contract Overview

Key Functions

Create Proposal

Cast Vote

Execute Proposal

Update Level Multiplier

View Functions

Get Proposal Details

Get Voting Power

Events

Governance Parameters

Proposal Types

Parameter Change

Modify protocol parameters (interest rates, limits, fees)

Contract Upgrade

Upgrade proxy implementations

Treasury Spend

Allocate treasury funds

Emergency Action

Critical fixes (bypasses timelock)

Voting Power by Level

Proposal Lifecycle

Integration Example

Security Measures

Critical governance security features:
  • Timelock: 48-hour delay on non-emergency actions
  • Quorum: 4% minimum participation required
  • Proposal Threshold: Prevents spam proposals
  • Emergency Guardian: Multi-sig can pause in emergencies

Voting Power

How voting power works

Proposals

Creating and managing proposals