Voting Platform

Custom purpose

Each participant may vote only once. Voting can only be stopped by the owner. The owner can not vote. A voter can not vote more than once.

Parameters:

  1. item1:_ sets the first voter name
  2. item2: sets the second voter name

Exposed methods

  1. voters gets the voters list
  2. items gets the remaining bets
  3. owner gets the owner
  4. house gets the house amount
  5. getPseudoRandom gets pseudo random
  6. bets gets the bets value from bets array
  7. checkWinners gets the winners
  8. placeBet gets the winners
  9. setFeeAccount sets the fee account
  10. setFeePercent sets the fee percent
  11. setMaxBet sets the maximum bet
  12. setMinBet sets the minimum bet
  13. transferOwnership sets new owner account

Example:

feePercent:_ 5 minBet: 1 maxBet: 10

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract