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
  1. DEVELOPERS
  2. Contract

EcoPotVoting

PreviousPlusPool FactoryNextEcoPot

Last updated 2 years ago

This contract is creating and managing of the EcoPot project and exercising voting rights for the EcoPot project. MESH staking users vote for the EcoPot project they want and receive tokens according to their stake.

Address

  • Polygon Mainnet :

CreateEcoPot

event CreateEcoPot(address operator, address ecoPot, address token, string name);
  • Event log of EcoPot created

  • Parameters

    • operator : EcoPotOperator address

    • ecoPot : EcoPot address

    • token : Token address received by user

    • name : EcoPot Project name

RemoveEcoPot

event RemoveEcoPot(address ecoPot);
  • Event that occurs when EcoPot is removed

ChangeEcoPotAvailable

event ChangeEcoPotAvailable(address ecoPot, bool b);
  • Event that occurs when the status is changed

AddVoting

event AddVoting(address user, address ecopot, uint amount);
  • Event log of voting vMESH for EcoPot

  • Parameters

    • user : User address

    • ecopot : EcoPot address

    • amount : Vote vMESH amount

RemoveVoting

event RemoveVoting(address user, address ecopot, uint amount);
  • Event log of remove voting vMESH for EcoPot

  • Parameters

    • user : User address

    • ecopot : EcoPot address

    • amount : Unote vMESH amount

Read-Only Functions

ecoPotCount

  • Number of EcoPot

MAX_VOTING_POT_COUNT

  • Maximum number of EcoPots where users can vote

ecoPotList

  • mapping(uint => address)

  • EcoPot addresses

ecoPotExist

  • mapping(address => bool)

  • Return if the address is EcoPot address

potTotalVotedAmount

  • Total voted number of EcoPot

userVotingPotCount

  • mapping(address => uint)

  • Number of votes each user voted for EcoPot

userVotingPotAddress

function userVotingPotAddress(address user, uint256 ecoPotIndex) public view returns (address) 
  • EcoPot addresses voted by each user

userVotingPotAmount

function userVotingPotAmount(address user, uint256 ecoPotIndex) public view returns (uint256) 
  • EcoPot voted amount by each user

State-Changing Functions

addVoting

function addVoting(address ecoPot, uint amount) public
  • Method to voting vMESH for EcoPot

  • The amount can be entered in integer units

removeVoting

function removeVoting(address ecoPot, uint amount) public
  • Method to remove voting vMESH for Ecopot

  • The amount can be entered in integer units within the voting limit

removeAllVoting

function removeAllVoting() public
  • Method of remove total vote Ecopot

claimReward

function claimReward(address ecopot) public 
  • Method of vote Ecopot’s reward

claimRewardAll

function claimRewardAll() public
  • Method of all vote Ecopot’s reward

0x13c5c5a5d418b5365fb30ca1ec8a9fb2a6f622d1