Contract 0xaaac860eafd704b030847671362744e2f6acd336

Contract Overview

Balance:
0 MATIC
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb048750d64261819e12a952ef56303e50755d63b83e1b861be24b1321d08e8d0Vote219344382021-11-26 5:19:479 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x6582c95d8e9ce8758d7e12098ff25e52376c486a14b98c8958d7210332b329b4Vote219344362021-11-26 5:19:439 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x3cec9a04f7e2d313d6112bf10fa19b435f83b1af7acf02230e0987a134443256Vote219344352021-11-26 5:19:419 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x916532b7aa0f26190057dce73e8b09d6fdc2a6419415a1dbf04b8208e678de8cVote219344332021-11-26 5:19:379 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0xfb9ea0fe0002c708333590791098b85c639723c9641f9a409f5d81de39790716Vote219344302021-11-26 5:19:319 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x0bc868912796f97dc90b63da1812e6d40fae42503c48ab7a4288ccaf23a122ccVote219344282021-11-26 5:19:279 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x9bc1c4d94486dc2baf8061862122dc6672d4e8037baf2ea40a4ea30c17bf14a6Vote219344262021-11-26 5:19:239 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x1a0d3ed0e01275264a467fc8456a8656e3060846bc43d469abf109466ff38a38Vote219344242021-11-26 5:19:199 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x00d2fcd376046228220b1b7b6ad4613f85e405b5f11b0bdb46d5ecc646847edcVote219344212021-11-26 5:19:139 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0xc1ce2fedab25c94ceb4011d9b566376b91ca731f751469554665204bfc12ac1aVote219344192021-11-26 5:19:099 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0xd9c15b8eb0d4a1787b33b2afe6166ab08923015a844307486837e924aa201cb6Vote219344022021-11-26 5:18:359 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x83afeadbbc44e695ffb45af41c6a6aab92183a31c1b7447cc350f329c7007a10Vote219344002021-11-26 5:18:319 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x60be368e5b519a166bf703a75eea0c2a274fa910d23ebf5cbc8ff70dcc5d0441Vote219343992021-11-26 5:18:259 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x0752a72c1972ecb9226f28c0b849ab571d632e0d5b691184b99f3a1c11be65d7Vote219343972021-11-26 5:18:219 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x3416a61d7865332603c61585a3d4720bfa2fa5589c2900ce75d37993891a22fdVote219343942021-11-26 5:18:159 days 14 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x99859d61b00d3279c136c206296717b01e17de1e81dfedf8f4cb9a102482df57Vote219342022021-11-26 5:11:399 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0xdcbfc2b706a455e999923928e3f31d2178ac0fbeaf793399b495e7e5e8f267aaVote219341962021-11-26 5:11:279 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x1a132d1df23c25faeef195a018fa97fb8b7fb0c7aa08955200518538a89a7935Vote219341942021-11-26 5:11:239 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x0a732914c8b81afacb325acc72d1e628a25a8b542b79f705405f0a7f11a1ceb4Vote219341922021-11-26 5:11:199 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0xec853583832a15c266d85f0eefa6b7ff00b62ede8cfccc7dc26242bbe62b565cVote219341892021-11-26 5:11:139 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0xb4ce9941bf08f49f8fe2d47e6b9434a2c05962d30f3dfc497c4832b6bb75443eVote219341872021-11-26 5:11:099 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0xd61ccf5a415a3942278c0d1dc89988b23b762b14b31d6990321d6c16f4f36a8dVote219341852021-11-26 5:11:059 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x9fdf3dcba4c699d476e30169ff12319c923e2e77d8e2bc771b3542ca16118987Vote219341832021-11-26 5:11:019 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x4591e3ae7997c9cab4704bd3066a31f6eeae2796d2f7a49895fa2f638f3f3f47Vote219341812021-11-26 5:10:579 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
0x3ef2f03da779f0d394ffd03050c6e5be8a8670a34c9d5ee3fa5afb0d361e7050Vote219341782021-11-26 5:10:519 days 15 hrs ago0x69cfb2f90e4a32e72f907779b637c00e01808ae5 IN  0xaaac860eafd704b030847671362744e2f6acd3360 MATIC0.000142985
[ 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"}]

608060405234801561001057600080fd5b506040516106ea3803806106ea8339818101604052602081101561003357600080fd5b810190808051906020019092919050505033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508042016000819055505061064c8061009e6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80634e71d92d14610067578063632a9a52146100715780639714378c1461007b578063a3ec138d146100a9578063ddbe8f091461010a578063fbbbfa6314610128575b600080fd5b61006f610146565b005b6100796102e4565b005b6100a76004803603602081101561009157600080fd5b81019080803590602001909291905050506103ff565b005b6100eb600480360360208110156100bf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104ce565b6040518083151581526020018281526020019250505060405180910390f35b6101126104ff565b6040518082815260200191505060405180910390f35b610130610505565b6040518082815260200191505060405180910390f35b6000544211156101be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f566f746520656e6465642e00000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060000160009054906101000a900460ff1615610286576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f416c726561647920436c61696d65642e0000000000000000000000000000000081525060200191505060405180910390fd5b6001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160006101000a81548160ff02191690831515021790555050565b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff169050806103ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f636c61696d20766f74652072696768742066697273742100000000000000000081525060200191505060405180910390fd5b6001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254019250508190555050565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146104c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f6e656564206f776e65722070726976696c65676521000000000000000000000081525060200191505060405180910390fd5b80420160008190555050565b60026020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154905082565b60005481565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff169050806105cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f636c61696d20766f74652072696768742066697273742100000000000000000081525060200191505060405180910390fd5b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549150509056fea26469706673582212208ff9c57bbde2a8a5472b0738939c87b14f2f0c2508e5c63e89cf3ae0dadd4b8f64736f6c634300060c003300000000000000000000000000000000000000000000000000000000240c8400

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

00000000000000000000000000000000000000000000000000000000240c8400

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

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000240c8400


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://8ff9c57bbde2a8a5472b0738939c87b14f2f0c2508e5c63e89cf3ae0dadd4b8f
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading