Governance
The Governance module manages the contracts that run Ubeswap.
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 here.
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:
UbeToken -- the Ubeswap governance token.
VotingPower -- keeps track of how much voting power an address has
VotingToken -- a VotingPower that exposes a name, symbol, decimals, and balanceOf. Cannot be transferred.
TransferrableVotingToken -- 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 Uni.
Deployment (New)
There are 6 steps to the deployment (these are the deployment steps of new tokenomics)
Deploying UbeConvert This contract is used for converting old UBE tokens to new UBE tokens
Deploying Vesting Contracts These contracts are vesting contracts for new tokenomics
Last updated