Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 62 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 5129289 | 2385 days ago | IN | 0 ETH | 0.00193815 | ||||
Transfer | 5066279 | 2396 days ago | IN | 0 ETH | 0.00083829 | ||||
Transfer | 4694362 | 2461 days ago | IN | 0 ETH | 0.00933173 | ||||
Transfer | 4618495 | 2473 days ago | IN | 0 ETH | 0.00598935 | ||||
Transfer | 4502243 | 2492 days ago | IN | 0 ETH | 0.00251687 | ||||
Transfer | 4483299 | 2495 days ago | IN | 0 ETH | 0.00220187 | ||||
Transfer | 4459129 | 2499 days ago | IN | 0 ETH | 0.00220187 | ||||
Transfer | 4459107 | 2499 days ago | IN | 0 ETH | 0.00105 | ||||
Transfer | 4458977 | 2499 days ago | IN | 0 ETH | 0.00220187 | ||||
Transfer | 4451533 | 2500 days ago | IN | 0 ETH | 0.00010485 | ||||
Transfer | 4422371 | 2505 days ago | IN | 0 ETH | 0.00095464 | ||||
Transfer | 4422371 | 2505 days ago | IN | 0 ETH | 0.00095464 | ||||
Transfer | 4422371 | 2505 days ago | IN | 0 ETH | 0.00095464 | ||||
Transfer | 4422371 | 2505 days ago | IN | 0 ETH | 0.00095464 | ||||
Transfer | 4422371 | 2505 days ago | IN | 0 ETH | 0.00095464 | ||||
Transfer | 4422370 | 2505 days ago | IN | 0 ETH | 0.00095413 | ||||
Transfer | 4422367 | 2505 days ago | IN | 0 ETH | 0.00095464 | ||||
Transfer | 4422365 | 2505 days ago | IN | 0 ETH | 0.00095413 | ||||
Transfer | 4422362 | 2505 days ago | IN | 0 ETH | 0.00095464 | ||||
Transfer | 4422362 | 2505 days ago | IN | 0 ETH | 0.00095464 | ||||
Transfer | 4422359 | 2505 days ago | IN | 0 ETH | 0.00095413 | ||||
Transfer | 4422357 | 2505 days ago | IN | 0 ETH | 0.00095464 | ||||
Transfer | 4422356 | 2505 days ago | IN | 0 ETH | 0.00095413 | ||||
Transfer | 4422356 | 2505 days ago | IN | 0 ETH | 0.00095413 | ||||
Transfer | 4422355 | 2505 days ago | IN | 0 ETH | 0.00095464 |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x81f5E44C...745a378f9 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Token
Compiler Version
v0.4.10+commit.f0d539ae
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-09-15 */ pragma solidity ^0.4.10; contract Token { mapping (address => uint256) public balanceOf; mapping (uint256 => address) public addresses; mapping (address => bool) public addressExists; mapping (address => uint256) public addressIndex; uint256 public numberOfAddress = 0; string public physicalString; string public cryptoString; bool public isSecured; string public name; string public symbol; uint256 public totalSupply; bool public canMintBurn; uint256 public txnTax; uint256 public holdingTax; //In Weeks, on Fridays uint256 public holdingTaxInterval; uint256 public lastHoldingTax; uint256 public holdingTaxDecimals = 2; bool public isPrivate; address public owner; function Token(string n, string a, uint256 totalSupplyToUse, bool isSecured, bool cMB, string physical, string crypto, uint256 txnTaxToUse, uint256 holdingTaxToUse, uint256 holdingTaxIntervalToUse, bool isPrivateToUse) { name = n; symbol = a; totalSupply = totalSupplyToUse; balanceOf[msg.sender] = totalSupplyToUse; isSecured = isSecured; physicalString = physical; cryptoString = crypto; canMintBurn = cMB; owner = msg.sender; txnTax = txnTaxToUse; holdingTax = holdingTaxToUse; holdingTaxInterval = holdingTaxIntervalToUse; if(holdingTaxInterval!=0) { lastHoldingTax = now; while(getHour(lastHoldingTax)!=21) { lastHoldingTax -= 1 hours; } while(getWeekday(lastHoldingTax)!=5) { lastHoldingTax -= 1 days; } lastHoldingTax -= getMinute(lastHoldingTax) * (1 minutes) + getSecond(lastHoldingTax) * (1 seconds); } isPrivate = isPrivateToUse; addAddress(owner); } function transfer(address _to, uint256 _value) payable { chargeHoldingTax(); if (balanceOf[msg.sender] < _value) throw; if (balanceOf[_to] + _value < balanceOf[_to]) throw; if (msg.sender != owner && _to != owner && txnTax != 0) { if(!owner.send(txnTax)) { throw; } } if(isPrivate && msg.sender != owner && !addressExists[_to]) { throw; } balanceOf[msg.sender] -= _value; balanceOf[_to] += _value; addAddress(_to); Transfer(msg.sender, _to, _value); } function changeTxnTax(uint256 _newValue) { if(msg.sender != owner) throw; txnTax = _newValue; } function mint(uint256 _value) { if(canMintBurn && msg.sender == owner) { if (balanceOf[msg.sender] + _value < balanceOf[msg.sender]) throw; balanceOf[msg.sender] += _value; totalSupply += _value; Transfer(0, msg.sender, _value); } } function burn(uint256 _value) { if(canMintBurn && msg.sender == owner) { if (balanceOf[msg.sender] < _value) throw; balanceOf[msg.sender] -= _value; totalSupply -= _value; Transfer(msg.sender, 0, _value); } } function chargeHoldingTax() { if(holdingTaxInterval!=0) { uint256 dateDif = now - lastHoldingTax; bool changed = false; while(dateDif >= holdingTaxInterval * (1 weeks)) { changed=true; dateDif -= holdingTaxInterval * (1 weeks); for(uint256 i = 0;i<numberOfAddress;i++) { if(addresses[i]!=owner) { uint256 amtOfTaxToPay = ((balanceOf[addresses[i]]) * holdingTax) / (10**holdingTaxDecimals)/ (10**holdingTaxDecimals); balanceOf[addresses[i]] -= amtOfTaxToPay; balanceOf[owner] += amtOfTaxToPay; } } } if(changed) { lastHoldingTax = now; while(getHour(lastHoldingTax)!=21) { lastHoldingTax -= 1 hours; } while(getWeekday(lastHoldingTax)!=5) { lastHoldingTax -= 1 days; } lastHoldingTax -= getMinute(lastHoldingTax) * (1 minutes) + getSecond(lastHoldingTax) * (1 seconds); } } } function changeHoldingTax(uint256 _newValue) { if(msg.sender != owner) throw; holdingTax = _newValue; } function changeHoldingTaxInterval(uint256 _newValue) { if(msg.sender != owner) throw; holdingTaxInterval = _newValue; } function addAddress (address addr) private { if(!addressExists[addr]) { addressIndex[addr] = numberOfAddress; addresses[numberOfAddress++] = addr; addressExists[addr] = true; } } function addAddressManual (address addr) { if(msg.sender == owner && isPrivate) { addAddress(addr); } else { throw; } } function removeAddress (address addr) private { if(addressExists[addr]) { numberOfAddress--; addresses[addressIndex[addr]] = 0x0; addressExists[addr] = false; } } function removeAddressManual (address addr) { if(msg.sender == owner && isPrivate) { removeAddress(addr); } else { throw; } } function getWeekday(uint timestamp) returns (uint8) { return uint8((timestamp / 86400 + 4) % 7); } function getHour(uint timestamp) returns (uint8) { return uint8((timestamp / 60 / 60) % 24); } function getMinute(uint timestamp) returns (uint8) { return uint8((timestamp / 60) % 60); } function getSecond(uint timestamp) returns (uint8) { return uint8(timestamp % 60); } event Transfer(address indexed _from, address indexed _to, uint256 _value); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"canMintBurn","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"numberOfAddress","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"getHour","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"getWeekday","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newValue","type":"uint256"}],"name":"changeHoldingTaxInterval","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"lastHoldingTax","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"physicalString","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"txnTax","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isSecured","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"getSecond","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressExists","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"chargeHoldingTax","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"addAddressManual","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"holdingTaxInterval","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"cryptoString","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"removeAddressManual","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newValue","type":"uint256"}],"name":"changeHoldingTax","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"holdingTaxDecimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"holdingTax","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newValue","type":"uint256"}],"name":"changeTxnTax","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"addresses","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"getMinute","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isPrivate","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"inputs":[{"name":"n","type":"string"},{"name":"a","type":"string"},{"name":"totalSupplyToUse","type":"uint256"},{"name":"isSecured","type":"bool"},{"name":"cMB","type":"bool"},{"name":"physical","type":"string"},{"name":"crypto","type":"string"},{"name":"txnTaxToUse","type":"uint256"},{"name":"holdingTaxToUse","type":"uint256"},{"name":"holdingTaxIntervalToUse","type":"uint256"},{"name":"isPrivateToUse","type":"bool"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"}]
Deployed Bytecode
0x6060604052361561017a5763ffffffff60e060020a60003504166306fdde03811461017c57806318160ddd1461020c5780631f6eeb681461022e57806334686b73146102525780633e239e1a1461027457806342966c681461029d5780634ac1ad78146102b25780634e9833ac146102db57806354be50a5146102f05780635672f5481461031257806370a08231146103a25780637423d96e146103d057806381a28c28146103f25780638aa001fc146104165780638da5cb5b1461043f578063935c1fb11461046b57806395d89b4114610499578063a0712d6814610529578063a50252221461053e578063a610fe9b1461056e578063a9059cbb14610580578063b58c2d3114610599578063b686d8b4146105b7578063b780a659146105d9578063c121be4d14610669578063c25fe1a414610687578063ce1f561c1461069c578063e7f6edbd146106be578063eaf214ea146106e0578063edf26d9b146106f5578063fa93f88314610724578063faff660e1461074d575bfe5b341561018457fe5b61018c610771565b6040805160208082528351818301528351919283929083019185019080838382156101d2575b8051825260208311156101d257601f1990920191602091820191016101b2565b505050905090810190601f1680156101fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561021457fe5b61021c6107ff565b60408051918252519081900360200190f35b341561023657fe5b61023e610805565b604080519115158252519081900360200190f35b341561025a57fe5b61021c61080e565b60408051918252519081900360200190f35b341561027c57fe5b610287600435610814565b6040805160ff9092168252519081900360200190f35b34156102a557fe5b6102b060043561083a565b005b34156102ba57fe5b6102876004356108ee565b6040805160ff9092168252519081900360200190f35b34156102e357fe5b6102b060043561090e565b005b34156102f857fe5b61021c610938565b60408051918252519081900360200190f35b341561031a57fe5b61018c61093e565b6040805160208082528351818301528351919283929083019185019080838382156101d2575b8051825260208311156101d257601f1990920191602091820191016101b2565b505050905090810190601f1680156101fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103aa57fe5b61021c600160a060020a03600435166109cc565b60408051918252519081900360200190f35b34156103d857fe5b61021c6109de565b60408051918252519081900360200190f35b34156103fa57fe5b61023e6109e4565b604080519115158252519081900360200190f35b341561041e57fe5b6102876004356109ed565b6040805160ff9092168252519081900360200190f35b341561044757fe5b61044f610a00565b60408051600160a060020a039092168252519081900360200190f35b341561047357fe5b61021c600160a060020a0360043516610a14565b60408051918252519081900360200190f35b34156104a157fe5b61018c610a26565b6040805160208082528351818301528351919283929083019185019080838382156101d2575b8051825260208311156101d257601f1990920191602091820191016101b2565b505050905090810190601f1680156101fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561053157fe5b6102b0600435610ab4565b005b341561054657fe5b61023e600160a060020a0360043516610b64565b604080519115158252519081900360200190f35b341561057657fe5b6102b0610b79565b005b6102b0600160a060020a0360043516602435610d20565b005b34156105a157fe5b6102b0600160a060020a0360043516610ed8565b005b34156105bf57fe5b61021c610f1a565b60408051918252519081900360200190f35b34156105e157fe5b61018c610f20565b6040805160208082528351818301528351919283929083019185019080838382156101d2575b8051825260208311156101d257601f1990920191602091820191016101b2565b505050905090810190601f1680156101fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561067157fe5b6102b0600160a060020a0360043516610fae565b005b341561068f57fe5b6102b0600435610ff0565b005b34156106a457fe5b61021c61101a565b60408051918252519081900360200190f35b34156106c657fe5b61021c611020565b60408051918252519081900360200190f35b34156106e857fe5b6102b0600435611026565b005b34156106fd57fe5b61044f600435611050565b60408051600160a060020a039092168252519081900360200190f35b341561072c57fe5b61028760043561106b565b6040805160ff9092168252519081900360200190f35b341561075557fe5b61023e611089565b604080519115158252519081900360200190f35b6008805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107f75780601f106107cc576101008083540402835291602001916107f7565b820191906000526020600020905b8154815290600101906020018083116107da57829003601f168201915b505050505081565b600a5481565b600b5460ff1681565b60045481565b60006018603c80845b0481151561082757fe5b0481151561083157fe5b0690505b919050565b600b5460ff16801561085f575060115433600160a060020a0390811661010090920416145b156108ea57600160a060020a0333166000908152602081905260409020548190101561088b5760006000fd5b600160a060020a03331660008181526020818152604080832080548690039055600a80548690039055805185815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35b5b50565b6000600762015180835b0460040181151561083157fe5b0690505b919050565b60115433600160a060020a03908116610100909204161461092f5760006000fd5b600e8190555b50565b600f5481565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107f75780601f106107cc576101008083540402835291602001916107f7565b820191906000526020600020905b8154815290600101906020018083116107da57829003601f168201915b505050505081565b60006020819052908152604090205481565b600c5481565b60075460ff1681565b6000603c82610831565b0690505b919050565b6011546101009004600160a060020a031681565b60036020526000908152604090205481565b6009805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107f75780601f106107cc576101008083540402835291602001916107f7565b820191906000526020600020905b8154815290600101906020018083116107da57829003601f168201915b505050505081565b600b5460ff168015610ad9575060115433600160a060020a0390811661010090920416145b156108ea57600160a060020a0333166000908152602081905260409020548181011015610b065760006000fd5b600160a060020a033316600081815260208181526040808320805486019055600a805486019055805185815290517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35b5b50565b60026020526000908152604090205460ff1681565b6000600060006000600e546000141515610d1857600f5442039350600092505b600e5462093a80028410610c8f5760019250600e5462093a800284039350600091505b600454821015610c8a57601154600083815260016020526040902054600160a060020a039081166101009092041614610c7e57601054600d54600084815260016020908152604080832054600160a060020a0316835290829052902054600a9290920a91829102811515610c2c57fe5b04811515610c3657fe5b600084815260016020908152604080832054600160a060020a039081168452918390528083208054959094049485900390935560115461010090041681522080548201905590505b5b600190910190610bbc565b610b99565b8215610d185742600f555b610ca5600f54610814565b60ff166015141515610cc157600f8054610e0f19019055610c9a565b5b610ccd600f546108ee565b60ff166005141515610cea57600f80546201517f19019055610cc1565b610cf5600f546109ed565b600f54610d019061106b565b603c020160ff16600f600082825403925050819055505b5b5b50505050565b610d28610b79565b600160a060020a03331660009081526020819052604090205481901015610d4f5760006000fd5b600160a060020a0382166000908152602081905260409020548181011015610d775760006000fd5b60115433600160a060020a039081166101009092041614801590610dae5750601154600160a060020a038381166101009092041614155b8015610dbb5750600c5415155b15610dfb57601154600c54604051610100909204600160a060020a0316916108fc82150291906000818181858888f193505050501515610dfb5760006000fd5b5b60115460ff168015610e22575060115433600160a060020a039081166101009092041614155b8015610e475750600160a060020a03821660009081526002602052604090205460ff16155b15610e525760006000fd5b600160a060020a0333811660009081526020819052604080822080548590039055918416815220805482019055610e8882611092565b81600160a060020a031633600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35b5050565b60115433600160a060020a0390811661010090920416148015610efd575060115460ff165b15610f1057610f0b81611092565b6108ea565b60006000fd5b5b50565b600e5481565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107f75780601f106107cc576101008083540402835291602001916107f7565b820191906000526020600020905b8154815290600101906020018083116107da57829003601f168201915b505050505081565b60115433600160a060020a0390811661010090920416148015610fd3575060115460ff165b15610f1057610f0b8161111d565b6108ea565b60006000fd5b5b50565b60115433600160a060020a0390811661010090920416146110115760006000fd5b600d8190555b50565b60105481565b600d5481565b60115433600160a060020a0390811661010090920416146110475760006000fd5b600c8190555b50565b600160205260009081526040902054600160a060020a031681565b6000603c8083610827565b0481151561083157fe5b0690505b919050565b60115460ff1681565b600160a060020a03811660009081526002602052604090205460ff1615156108ea5760048054600160a060020a03831660008181526003602090815260408083208590556001808601909655938252848152838220805473ffffffffffffffffffffffffffffffffffffffff191684179055918152600290915220805460ff191690911790555b5b50565b600160a060020a03811660009081526002602052604090205460ff16156108ea5760048054600019019055600160a060020a038116600081815260036020908152604080832054835260018252808320805473ffffffffffffffffffffffffffffffffffffffff191690559282526002905220805460ff191690555b5b505600a165627a7a7230582082add19c619ad6cf13ce5f82c02f2a9e9db59b5998da163a3dadc34beb695f3b0029
Swarm Source
bzzr://82add19c619ad6cf13ce5f82c02f2a9e9db59b5998da163a3dadc34beb695f3b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.