Contract 0x4c0831744b253cee0628d843cfc3b3185c5c81d4

Contract Overview

Balance:
0 MATIC
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x2a711b459a133f96e6429e48b1cab4c6f9bc0425f87e5f95c19dbfa5de0b1155Claim219312362021-11-26 3:29:439 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.00011712
0xd8637e62e9425cf6c49ff35ff8d3d93b775b657ea96ea6f88a3cf4a8e0602347Extend219312152021-11-26 3:29:019 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.000143515
0xa607eaa5ad62ab4b9eb2b6f8236dc4937e8205afbaf8a625d41b34af4f00e1dbClaim219311652021-11-26 3:27:179 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.00011712
0xb1ece9de3324c52e386d06132024d1a78d45fb5a2e846374d3769babd83763b9Extend219311542021-11-26 3:26:559 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.000143515
0x106d2406a8f053ad753f04484b811e2c925718f867d7be27effdd60cc9a1990aClaim219311122021-11-26 3:25:279 days 16 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.00011712
0x162a52240e1b32e2f903a0e4184dff8f84e069e3d802606b1dae60794ebb3a6fExtend219311022021-11-26 3:25:079 days 16 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.000143395
0x0020b058b6f02f2c8da8b5e016caf18226acfb249b21fb1dd8b98af7d92613d7Claim219310522021-11-26 3:23:239 days 16 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.00011712
0xe2bb43a8109fac06703a038b43ec51183c1861df339a036ecb7bfefdeea0c86cExtend219310352021-11-26 3:22:499 days 16 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.000143515
0xe6785a2c595955d00755170d89fa75ec5a80c32833c934c73ce3c9cc2cbca9b2Extend219309512021-11-26 3:19:579 days 16 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.000143335
0x5e87696a553126606bc78621dcb5d893c4140ebf27b14106ccd447af822e95c7Claim219309092021-11-26 3:18:299 days 16 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.00011712
0x6ded5fd36d5ea612b8d3795879ff19e65295dc73783d95d2693cb17cfe7aa6fcVote219308662021-11-26 3:16:599 days 16 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.0001179
0xe5bd35f0dac47eaad004f86b6a0289450578a1a3daabe5e8577fcb643fdfb5e0Vote219308452021-11-26 3:16:179 days 16 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.0001179
0xf02882db24e28d25ef3a8d684446b63c1158fd54b6fbd84297045f4e4ae6fd2dVote219308092021-11-26 3:15:019 days 16 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.0001179
0x75651d32fceaeec29e7ca14cbb4a89882e93e9bc2de8fcc628f20e3d1d4d4308Vote219308022021-11-26 3:14:479 days 16 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.0001179
0xeb149968f1379eb5492149319932d17c34b01249a8e232ab8273673e155a909eClaim219307812021-11-26 3:14:059 days 16 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0x4c0831744b253cee0628d843cfc3b3185c5c81d40 MATIC0.00011712
0x56b4e4eb9d37183115a6513d19ebc59a550d066505645a6d2603289fe12c82e60x60806040219307092021-11-26 3:11:379 days 16 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  Contract Creation0 MATIC0.001558634
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ViteDao

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at polygonscan.com on 2021-11-26
*/

// SPDX-License-Identifier: MIT
pragma solidity >=0.4.21 <0.7.0;

contract ViteDao {
  uint public voteEnd;

  struct Voter {
    bool claimed;
    uint votetime;
  }
  address owner;
  mapping(address => Voter) public voters;

  constructor(uint _biddingTime) public {
    owner = msg.sender;
    voteEnd = now + _biddingTime;
  }

  function extend(uint _extendTime) public {
    require(owner == msg.sender, 'need owner privilege!');
    voteEnd = now + _extendTime;
  }

  function claim() public {
    require(now >= voteEnd, "Vote ended.");
    Voter storage voter = voters[msg.sender];
    require( !voter.claimed, "Already Claimed." );
    voters[msg.sender].claimed = true;
  }

  function vote() public{
    bool claimed = voters[msg.sender].claimed;
    require(claimed, "claim vote right first!");
    voters[msg.sender].votetime += 1;
  }

  function votetime() public view returns (uint number){
    bool claimed = voters[msg.sender].claimed;
    require(claimed, "claim vote right first!");
    number = voters[msg.sender].votetime;
  }
}

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_biddingTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_extendTime","type":"uint256"}],"name":"extend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"voteEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"voters","outputs":[{"internalType":"bool","name":"claimed","type":"bool"},{"internalType":"uint256","name":"votetime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"votetime","outputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506040516106ea3803806106ea8339818101604052602081101561003357600080fd5b810190808051906020019092919050505033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508042016000819055505061064c8061009e6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80634e71d92d14610067578063632a9a52146100715780639714378c1461007b578063a3ec138d146100a9578063ddbe8f091461010a578063fbbbfa6314610128575b600080fd5b61006f610146565b005b6100796102e4565b005b6100a76004803603602081101561009157600080fd5b81019080803590602001909291905050506103ff565b005b6100eb600480360360208110156100bf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104ce565b6040518083151581526020018281526020019250505060405180910390f35b6101126104ff565b6040518082815260200191505060405180910390f35b610130610505565b6040518082815260200191505060405180910390f35b6000544210156101be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f566f746520656e6465642e00000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060000160009054906101000a900460ff1615610286576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f416c726561647920436c61696d65642e0000000000000000000000000000000081525060200191505060405180910390fd5b6001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160006101000a81548160ff02191690831515021790555050565b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff169050806103ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f636c61696d20766f74652072696768742066697273742100000000000000000081525060200191505060405180910390fd5b6001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254019250508190555050565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146104c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f6e656564206f776e65722070726976696c65676521000000000000000000000081525060200191505060405180910390fd5b80420160008190555050565b60026020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154905082565b60005481565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff169050806105cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f636c61696d20766f74652072696768742066697273742100000000000000000081525060200191505060405180910390fd5b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549150509056fea2646970667358221220e6a6a6904974d936f2459d475f8c9bc0fdaadb4449b69859c5d98e5a1bc8768164736f6c634300060c00330000000000000000000000000000000000000000000000000000000000093a80

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000093a80

-----Decoded View---------------
Arg [0] : _biddingTime (uint256): 604800

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000093a80


Deployed ByteCode Sourcemap

69:1025:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;500:214;;;:::i;:::-;;720:165;;;:::i;:::-;;353:141;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;197:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;91:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;891:200;;;:::i;:::-;;;;;;;;;;;;;;;;;;;500:214;546:7;;539:3;:14;;531:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;576:19;598:6;:18;605:10;598:18;;;;;;;;;;;;;;;576:40;;633:5;:13;;;;;;;;;;;;632:14;623:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;704:4;675:6;:18;682:10;675:18;;;;;;;;;;;;;;;:26;;;:33;;;;;;;;;;;;;;;;;;500:214;:::o;720:165::-;749:12;764:6;:18;771:10;764:18;;;;;;;;;;;;;;;:26;;;;;;;;;;;;749:41;;805:7;797:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;878:1;847:6;:18;854:10;847:18;;;;;;;;;;;;;;;:27;;;:32;;;;;;;;;;;720:165;:::o;353:141::-;418:10;409:19;;:5;;;;;;;;;;;:19;;;401:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;477:11;471:3;:17;461:7;:27;;;;353:141;:::o;197:39::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;91:19::-;;;;:::o;891:200::-;932:11;951:12;966:6;:18;973:10;966:18;;;;;;;;;;;;;;;:26;;;;;;;;;;;;951:41;;1007:7;999:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1058:6;:18;1065:10;1058:18;;;;;;;;;;;;;;;:27;;;1049:36;;891:200;;:::o

Swarm Source

ipfs://e6a6a6904974d936f2459d475f8c9bc0fdaadb4449b69859c5d98e5a1bc87681
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading