Meshswap
  • Introduction
  • What is MESH?
    • MESH Allocation
    • MESH Tokenomics
    • MESH Redistribution Policy
  • Get started
    • Create a Wallet
    • Add Polygon Network & Tokens
    • How to move your assets to wallet
      • Transferring MATIC
        • [Binance, Kucoin, Gate.io] How to move MATIC from CEX to Wallet 1
        • [Coinbase, OKX, Upbit, Bithumb, Coinone] How to move MATIC to Wallet 2
        • [Polygon Bridge] How to move MATIC to Wallet 3
      • How to get WETH, MATIC, USDC, USDT, DAI
      • How to get oETH, oMATIC, oUSDC, oUSDT, oDAI
      • XRP: The Quickest and easiest way to transfer your asset
      • How to get oXRP in your KuCoin wallet and deposit in Meshswap
      • How to transfer BUSD from Binance to the Polygon network
      • Transferring TON
        • Create Wallets supporting TON network
        • How to transfer TON from wallet to Meshswap
        • How to transfer TON from Huobi to the Polygon network
  • More
    • Risk & Security
    • Privacy Policy
    • Contract & Audit
    • Contact & Team
    • Events
      • Early-bird MESH Airdrop Events(End)
      • Meshswap x Kucoin Partnership Giveaway Event(End)
  • PRODUCTS
    • Swaps
    • Lend
      • How to deposit your assets on Lending pools
      • The Detailed Policy of Lending Pool Deposit
    • Yield Farm
      • How to deposit your assets on Yield Farming pools
    • Leveraged Yield Farm
      • How to deposit your assets on Leveraged Yield Farming pools
      • Detailed Policy of Leverage Farm
    • Long/Short Margin Trading
      • Open and Close Long/Short Positions
        • Open Long Positions
        • Open Short Positions
        • Close Long Positions
        • Close Short Positions
      • Long/Short Margin Trading Details Policy
    • Interest rate
    • Stake
      • How to stake MESH
      • Staking Policy
    • Pool Voting
      • How to participate in Pool Voting with vMESH
    • Ecopot
    • Drops
    • Pool Airdrop
    • Governance
      • Governance Voting Policy
  • DEVELOPERS
    • Contract
      • MESH
      • MESHswapRouter
      • MESHSwapView
      • Factory
      • Exchange
      • PoolVoting
      • VotingMESH
      • Treasury
      • Distribution
      • Governor
      • SinglePool
      • SinglePool Factory
      • PlusPool
      • PlusPool Factory
      • EcoPotVoting
      • EcoPot
    • Airdrop
      • Set Airdrop Operator
      • Start Airdop
    • EcoPot
      • Set EcoPot
      • Start EcoPot
  • Meshswap Protocol
  • Orbit Bridge
Powered by GitBook
On this page
  • Code
  • Address
  • Events, Read-Only Functions, and State-Changing Functions
  1. DEVELOPERS
  2. Contract

Governor

PreviousDistributionNextSinglePool

Last updated 2 years ago

This contract acts as an administrator to manage the voting registration, voting counting, and execution of the meshswap. It also performs important parameters of meshswap, proposal registration, and voting execution.

Code

Github Link: (Will be updated after official launch)

Address

  • Polygon Mainnet :

Events, Read-Only Functions, and State-Changing Functions

Events

ProposalCreated

event ProposalCreated(uint id, address proposer, address target, string signature, bytes callData, uint startBlock, uint endBlock, string description);
  • Events log of proposals are created

  • Parameters

    • id : proposal ID

    • proposer : proposer's address

    • target : Address of the contract to be executed

    • signature : signature of the function to be executed

    • callData : function data to be executed

    • startBlock : start block number

    • endBlock : end block number

    • description : proposal details

VoteCast

event VoteCast(address voter, uint proposalId, bool support, uint votes, uint againstVotes, uint forVotes, uint quorumVotes, string reason);
  • Events log of vote

  • Parameters

    • voter : voter's address

    • proposalId : proposal ID

    • support : support

    • votes : Number of vote vMESH

    • againstVotes : Number of total against vote

    • forVotes : Number of total favor vote

    • quorumVotes : Number of proposal quorum

    • reason : reason

ProposalCanceled

event ProposalCanceled(uint id);
  • Events log of proposal canceled

ProposalQueued

event ProposalQueued(uint id, uint eta, uint tid);
  • Events log of proposal queued

ProposalExecuted

event ProposalExecuted(uint id, bool succeeded);
  • Events log of proposal executed

ProposalFeeSet

event ProposalFeeSet(uint oldProposalFee, uint proposalFee);
  • Events log of proposal fee(MESH) changed

State-Changing Functions

propose

function propose(address target, string memory signature, bytes memory callData, string memory description) public returns (uint)
  • Function used to propose a new proposal

  • Sender must have delegates above the proposal threshold

  • target : Target address for proposal calls

  • signature : Function signature for proposal calls

  • callData : Calldata for proposal call

  • description : String description of the proposal

castVote

function castVote(uint proposalId, bool support) external 
  • Function used to cast a vote for a proposal

  • proposalId : The id of the proposal to vote on

  • support : The support value for the vote. false=against, true=for

0x06d057bc1129e6be214e53f04e07f1a6dcc8e390