Ubeswap Docs
  • Home
  • FAQ
  • TUTORIAL
    • Intro
    • Swapping Tokens
    • Providing Liquidity
    • Yield Farming
  • Tokenomics
  • WALLET SUPPORT
    • Wallets
    • Valora (mobile)
    • Ledger (desktop)
    • MetaMask (desktop)
    • Common Issues and Fixes
  • CODE/CONTRACTS
    • Overview
      • Exchange V2
      • Exchange V3
      • Governance
      • Farming
    • Contract Addresses
    • Security
  • Ubestarter
    • Getting Started
    • Key Features
    • User Experience
    • Legal Notices
    • FAQ
  • LINKS
    • Github
    • Twitter
    • Discord
    • Telegram
    • Medium
Powered by GitBook
On this page
  • Contracts
  • UbeToken
  • Deployment (New)
  1. CODE/CONTRACTS
  2. Overview

Governance

The Governance module manages the contracts that run Ubeswap.

PreviousExchange V3NextFarming

Last updated 6 months ago

Contracts

The Governance module contains several important contracts:

  • UbeToken: governance token; based on Uni

  • RomulusDelgate: This is a DAO governance contract similar to Compound Governance Alpha

  • Timelock: based on the Uniswap timelock contract; ensures a minimum of 2 days must pass between the time an admin transaction is created and posted and the time that the transaction is executed.

A diff between Uni governance contracts and Ubeswap is available .

UbeToken

The UbeToken is the governance token of Ubeswap, used to vote on the direction of the protocol.

The token is largely based on the Uni token; however, we have decomposed the contract into a series of contracts inherited from each other:

  • -- the Ubeswap governance token.

  • -- keeps track of how much voting power an address has

  • -- a VotingPower that exposes a name, symbol, decimals, and balanceOf. Cannot be transferred.

  • -- a VotingToken that is fully ERC20-compliant and can be transferred.

We were careful to preserve whitespace on VotingPower and TransferrableVotingToken, as the code was copy/pasted from .

Deployment (New)

There are 6 steps to the deployment (these are the deployment steps of new tokenomics)

This contract is used for converting old UBE tokens to new UBE tokens

These contracts are vesting contracts for new tokenomics

here
UbeToken
VotingPower
VotingToken
TransferrableVotingToken
Uni
Deploying UBE Token
Deploying UbeConvert
Deploying Governance
Deplying New Stake
Deploying Vesting Contracts