Announcement: CraftR token contract has migrated to a new address. The new token can be found here.
ERC-20
Old Contract
Overview
Max Total Supply
60,286,767.494564181503737657 CRAFTR
Holders
660 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
8.969782306 CRAFTRValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CraftR
Compiler Version
v0.5.7+commit.6da8b019
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-04-10 */ pragma solidity ^0.5.7; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() public { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { assert(msg.sender == owner); _; } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function transferOwnership(address newOwner) onlyOwner public { assert(newOwner != address(0)); owner = newOwner; } } /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20 is ERC20Basic { function allowance(address owner, address spender) public view returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @title POS * @dev the interface of Proof-Of-Stake */ contract POS { uint256 public stakeStartTime; uint256 public stakeMinAge; uint256 public stakeMaxAge; function pos() public returns (bool); function coinAge() public view returns (uint); function annualPos() public view returns (uint256); event Mint(address indexed _address, uint _reward); } contract CraftR is ERC20,POS,Ownable { using SafeMath for uint256; string public name = "CraftR"; string public symbol = "CRAFTR"; uint public decimals = 18; uint public chainStartTime; uint public chainStartBlockNumber; uint public stakeStartTime; uint public stakeMinAge = 1 days; uint public stakeMaxAge = 90 days; uint public defaultPOS = 10**17; // default 10% annual interest uint public totalSupply; uint public maxTotalSupply; uint public totalInitialSupply; struct transferInStruct { uint128 amount; uint64 time; } mapping(address => uint256) balances; mapping(address => mapping (address => uint256)) allowed; mapping(address => transferInStruct[]) txIns; event Burn(address indexed burner, uint256 value); /** * @dev Fix for the ERC20 short address attack. */ modifier onlyPayloadSize(uint size) { assert(msg.data.length >= size + 4); _; } modifier canRunPos() { assert(totalSupply < maxTotalSupply); _; } constructor () public { maxTotalSupply = 100*10**24; // 100 Mil totalInitialSupply = 60*10**24; // 60 Mil chainStartTime = now; chainStartBlockNumber = block.number; stakeStartTime = now; balances[msg.sender] = totalInitialSupply; totalSupply = totalInitialSupply; } function transfer(address _to, uint256 _value) onlyPayloadSize(2 * 32) public returns (bool) { if(msg.sender == _to) return pos(); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); if(txIns[msg.sender].length > 0) delete txIns[msg.sender]; uint64 _now = uint64(now); txIns[msg.sender].push(transferInStruct(uint128(balances[msg.sender]),_now)); txIns[_to].push(transferInStruct(uint128(_value),_now)); return true; } function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; } function transferFrom(address _from, address _to, uint256 _value) onlyPayloadSize(3 * 32) public returns (bool) { require(_to != address(0)); uint256 _allowance = allowed[_from][msg.sender]; balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = _allowance.sub(_value); emit Transfer(_from, _to, _value); if(txIns[_from].length > 0) delete txIns[_from]; uint64 _now = uint64(now); txIns[_from].push(transferInStruct(uint128(balances[_from]),_now)); txIns[_to].push(transferInStruct(uint128(_value),_now)); return true; } function approve(address _spender, uint256 _value) public returns (bool) { require((_value == 0) || (allowed[msg.sender][_spender] == 0)); allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) public view returns (uint256 remaining) { return allowed[_owner][_spender]; } function pos() canRunPos public returns (bool) { if(balances[msg.sender] <= 0) return false; if(txIns[msg.sender].length <= 0) return false; uint reward = getPosReward(msg.sender); if(reward <= 0) return false; totalSupply = totalSupply.add(reward); balances[msg.sender] = balances[msg.sender].add(reward); delete txIns[msg.sender]; txIns[msg.sender].push(transferInStruct(uint128(balances[msg.sender]),uint64(now))); emit Mint(msg.sender, reward); return true; } function getCraftrBlockNumber() public view returns (uint blockNumber) { blockNumber = block.number.sub(chainStartBlockNumber); } function coinAge() public view returns (uint myCoinAge) { myCoinAge = getCoinAge(msg.sender,now); } function annualPos() public view returns(uint interest) { uint _now = now; interest = defaultPOS; if((_now.sub(stakeStartTime)).div(365 days) == 0) { interest = (435 * defaultPOS).div(100); } } function getPosReward(address _address) internal view returns (uint) { require( (now >= stakeStartTime) && (stakeStartTime > 0) ); uint _now = now; uint _coinAge = getCoinAge(_address, _now); if(_coinAge <= 0) return 0; uint interest = defaultPOS; // Due to the high interest rate for the first two years, compounding should be taken into account. // Effective annual interest rate = (1 + (nominal rate / number of compounding periods)) ^ (number of compounding periods) - 1 if((_now.sub(stakeStartTime)).div(365 days) == 0) { // 2nd year effective annual interest rate is 50% when we select the stakeMaxAge (90 days) as the compounding period. // 1st year has already been calculated through the old contract interest = (435 * defaultPOS).div(100); } return (_coinAge * interest).div(365 * (10**decimals)); } function getCoinAge(address _address, uint _now) internal view returns (uint _coinAge) { if(txIns[_address].length <= 0) return 0; for (uint i = 0; i < txIns[_address].length; i++){ if( _now < uint(txIns[_address][i].time).add(stakeMinAge) ) continue; uint nCoinSeconds = _now.sub(uint(txIns[_address][i].time)); if( nCoinSeconds > stakeMaxAge ) nCoinSeconds = stakeMaxAge; _coinAge = _coinAge.add(uint(txIns[_address][i].amount) * nCoinSeconds.div(1 days)); } } function ownerMultiSend(address[] memory _recipients, uint[] memory _values) onlyOwner public returns (bool) { require( _recipients.length > 0 && _recipients.length == _values.length); uint total = 0; for(uint i = 0; i < _values.length; i++) { total = total.add(_values[i]); } require(total <= balances[msg.sender]); uint64 _now = uint64(now); for(uint j = 0; j < _recipients.length; j++) { balances[_recipients[j]] = balances[_recipients[j]].add(_values[j]); txIns[_recipients[j]].push(transferInStruct(uint128(_values[j]),_now)); emit Transfer(msg.sender, _recipients[j], _values[j]); } balances[msg.sender] = balances[msg.sender].sub(total); if(txIns[msg.sender].length > 0) delete txIns[msg.sender]; if(balances[msg.sender] > 0) txIns[msg.sender].push(transferInStruct(uint128(balances[msg.sender]),_now)); return true; } function ownerBurnTokens(uint _value) onlyOwner public { require(_value > 0); balances[msg.sender] = balances[msg.sender].sub(_value); delete txIns[msg.sender]; txIns[msg.sender].push(transferInStruct(uint128(balances[msg.sender]),uint64(now))); totalSupply = totalSupply.sub(_value); totalInitialSupply = totalInitialSupply.sub(_value); maxTotalSupply = maxTotalSupply.sub(_value*10); emit Burn(msg.sender, _value); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"defaultPOS","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCraftrBlockNumber","outputs":[{"name":"blockNumber","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"coinAge","outputs":[{"name":"myCoinAge","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"annualPos","outputs":[{"name":"interest","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"maxTotalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"chainStartTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakeStartTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalInitialSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pos","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakeMinAge","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"chainStartBlockNumber","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"ownerBurnTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_recipients","type":"address[]"},{"name":"_values","type":"uint256[]"}],"name":"ownerMultiSend","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakeMaxAge","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"burner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_address","type":"address"},{"indexed":false,"name":"_reward","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"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"}]
Contract Creation Code
60c0604052600660808190527f437261667452000000000000000000000000000000000000000000000000000060a090815262000040916005919062000110565b506040805180820190915260068082527f4352414654520000000000000000000000000000000000000000000000000000602090920191825262000085918162000110565b50601260075562015180600b556276a700600c5567016345785d8a0000600d55348015620000b257600080fd5b50600480546001600160a01b031916339081179091556a52b7d2dcc80cd2e4000000600f556a31a17e847807b1bc000000601081905542600881905543600955600a55600091825260116020526040909120819055600e55620001b5565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200015357805160ff191683800117855562000183565b8280016001018555821562000183579182015b828111156200018357825182559160200191906001019062000166565b506200019192915062000195565b5090565b620001b291905b808211156200019157600081556001016200019c565b90565b61153080620001c56000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80637419f190116100de578063cbd8877e11610097578063dd62ed3e11610071578063dd62ed3e14610382578063e060edd2146103b0578063e1c3bac6146104d7578063f2fde38b146104df57610173565b8063cbd8877e14610353578063cd474b041461035b578063d15138181461036357610173565b80637419f190146102e35780638da5cb5b146102eb57806395d89b411461030f5780639fd4da4014610317578063a9059cbb1461031f578063c56551b61461034b57610173565b806321ed47b31161013057806321ed47b31461026757806323b872dd1461026f5780632ab4d052146102a5578063313ce567146102ad5780635b054f9b146102b557806370a08231146102bd57610173565b806306fdde0314610178578063095ea7b3146101f55780630d081b6e1461023557806318160ddd1461024f57806318ff837b146102575780631e1b13c01461025f575b600080fd5b610180610505565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101ba5781810151838201526020016101a2565b50505050905090810190601f1680156101e75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102216004803603604081101561020b57600080fd5b506001600160a01b038135169060200135610593565b604080519115158252519081900360200190f35b61023d610634565b60408051918252519081900360200190f35b61023d61063a565b61023d610640565b61023d61065c565b61023d610668565b6102216004803603606081101561028557600080fd5b506001600160a01b038135811691602081013590911690604001356106ba565b61023d6108f7565b61023d6108fd565b61023d610903565b61023d600480360360208110156102d357600080fd5b50356001600160a01b0316610909565b61023d610928565b6102f361092e565b604080516001600160a01b039092168252519081900360200190f35b61018061093d565b61023d610998565b6102216004803603604081101561033557600080fd5b506001600160a01b03813516906020013561099e565b610221610b84565b61023d610d0a565b61023d610d10565b6103806004803603602081101561037957600080fd5b5035610d16565b005b61023d6004803603604081101561039857600080fd5b506001600160a01b0381358116916020013516610e81565b610221600480360360408110156103c657600080fd5b8101906020810181356401000000008111156103e157600080fd5b8201836020820111156103f357600080fd5b8035906020019184602083028401116401000000008311171561041557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561046557600080fd5b82018360208201111561047757600080fd5b8035906020019184602083028401116401000000008311171561049957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610eac945050505050565b61023d611221565b610380600480360360208110156104f557600080fd5b50356001600160a01b0316611227565b6005805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561058b5780601f106105605761010080835404028352916020019161058b565b820191906000526020600020905b81548152906001019060200180831161056e57829003601f168201915b505050505081565b60008115806105c357503360009081526012602090815260408083206001600160a01b0387168452909152902054155b6105cc57600080fd5b3360008181526012602090815260408083206001600160a01b03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b600d5481565b600e5481565b60006106576009544361126d90919063ffffffff16565b905090565b6000610657334261127f565b600d54600a544290610697906301e133809061068b90849063ffffffff61126d16565b9063ffffffff6113ec16565b6106b657600d546106b3906101b302606463ffffffff6113ec16565b91505b5090565b6000606060643610156106c957fe5b6001600160a01b0384166106dc57600080fd5b6001600160a01b0385166000818152601260209081526040808320338452825280832054938352601190915290205461071b908563ffffffff61126d16565b6001600160a01b038088166000908152601160205260408082209390935590871681522054610750908563ffffffff61140116565b6001600160a01b038616600090815260116020526040902055610779818563ffffffff61126d16565b6001600160a01b03808816600081815260126020908152604080832033845282529182902094909455805188815290519289169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a36001600160a01b03861660009081526013602052604090205415610819576001600160a01b0386166000908152601360205260408120610819916114bf565b5050506001600160a01b0392831660009081526013602081815260408084208151808301835260118452828620546001600160801b03908116825267ffffffffffffffff428116838701818152855460018082018855968b52888b2095519501805491518416600160801b908102600160801b600160c01b03199787166001600160801b0319948516178816179091559b909c1689529686528488208551808701909652988216855284860196875288548085018a559888529490962092519290960180549451909316909602931691909516179091161790915590565b600f5481565b60075481565b60085481565b6001600160a01b0381166000908152601160205260409020545b919050565b600a5481565b6004546001600160a01b031681565b6006805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561058b5780601f106105605761010080835404028352916020019161058b565b60105481565b6000604060443610156109ad57fe5b336001600160a01b03851614156109cd576109c6610b84565b9150610b7d565b336000908152601160205260409020546109ed908463ffffffff61126d16565b33600090815260116020526040808220929092556001600160a01b03861681522054610a1f908463ffffffff61140116565b6001600160a01b0385166000818152601160209081526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a33360009081526013602052604090205415610aa157336000908152601360205260408120610aa1916114bf565b3360009081526013602081815260408084208151808301835260118452828620546001600160801b03908116825267ffffffffffffffff428116838701818152855460018181018855968b52888b2095519501805491518416600160801b908102600160801b600160c01b03199787166001600160801b0319948516178816179091556001600160a01b038f168b52988852868a2087518089019098528d8516885287890192835280548088018255908b5297909920955195909601805496519091169096029316939095169290921790931692909217905591505b5092915050565b6000600f54600e5410610b9357fe5b33600090815260116020526040902054610baf57506000610d07565b33600090815260136020526040902054610bcb57506000610d07565b6000610bd633611417565b905060008111610bea576000915050610d07565b600e54610bfd908263ffffffff61140116565b600e5533600090815260116020526040902054610c20908263ffffffff61140116565b3360009081526011602090815260408083209390935560139052908120610c46916114bf565b3360008181526013602090815260408083208151808301835260118452828520546001600160801b03908116825267ffffffffffffffff42811683870190815284546001810186559488529686902092519290930180549651909316600160801b02600160801b600160c01b0319929091166001600160801b0319909616959095171693909317909255815184815291517f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859281900390910190a260019150505b90565b600b5481565b60095481565b6004546001600160a01b03163314610d2a57fe5b60008111610d3757600080fd5b33600090815260116020526040902054610d57908263ffffffff61126d16565b3360009081526011602090815260408083209390935560139052908120610d7d916114bf565b3360009081526013602090815260408083208151808301835260118452918420546001600160801b03908116835267ffffffffffffffff42811684860190815283546001810185559387529490952092519290910180549351909416600160801b02600160801b600160c01b0319929091166001600160801b03199093169290921716179055600e54610e16908263ffffffff61126d16565b600e55601054610e2c908263ffffffff61126d16565b601055600f54610e4590600a830263ffffffff61126d16565b600f5560408051828152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a250565b6001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b6004546000906001600160a01b03163314610ec357fe5b60008351118015610ed5575081518351145b610ede57600080fd5b6000805b8351811015610f1b57610f11848281518110610efa57fe5b60200260200101518361140190919063ffffffff16565b9150600101610ee2565b5033600090815260116020526040902054811115610f3857600080fd5b4260005b855181101561112057610fa3858281518110610f5457fe5b602002602001015160116000898581518110610f6c57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205461140190919063ffffffff16565b60116000888481518110610fb357fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555060136000878381518110610fef57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020604051806040016040528087848151811061102e57fe5b6020908102919091018101516001600160801b03908116835267ffffffffffffffff87811693830193909352845460018101865560009586529482902084519501805494909201516001600160801b0319909416941693909317600160801b600160c01b031916600160801b929091169190910217905585518690829081106110b357fe5b60200260200101516001600160a01b0316336001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8784815181106110fb57fe5b60200260200101516040518082815260200191505060405180910390a3600101610f3c565b5033600090815260116020526040902054611141908363ffffffff61126d16565b336000908152601160209081526040808320939093556013905220541561117a5733600090815260136020526040812061117a916114bf565b3360009081526011602052604090205415611216573360009081526013602090815260408083208151808301835260118452918420546001600160801b03908116835267ffffffffffffffff80871684860190815283546001810185559387529490952092519290910180549351909416600160801b02600160801b600160c01b0319929091166001600160801b031990931692909217161790555b506001949350505050565b600c5481565b6004546001600160a01b0316331461123b57fe5b6001600160a01b03811661124b57fe5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b60008282111561127957fe5b50900390565b6001600160a01b0382166000908152601360205260408120546112a45750600061062e565b60005b6001600160a01b038416600090815260136020526040902054811015610b7d57600b546001600160a01b03851660009081526013602052604090208054611317929190849081106112f457fe5b600091825260209091200154600160801b900467ffffffffffffffff1690611401565b831015611323576113e4565b6001600160a01b0384166000908152601360205260408120805461137091908490811061134c57fe5b6000918252602090912001548590600160801b900467ffffffffffffffff1661126d565b9050600c548111156113815750600c545b6113e0611397826201518063ffffffff6113ec16565b6001600160a01b03871660009081526013602052604090208054859081106113bb57fe5b60009182526020909120015485916001600160801b039091160263ffffffff61140116565b9250505b6001016112a7565b6000808284816113f857fe5b04949350505050565b60008282018381101561141057fe5b9392505050565b6000600a54421015801561142d57506000600a54115b61143657600080fd5b426000611443848361127f565b90506000811161145857600092505050610923565b600d54600a54611479906301e133809061068b90869063ffffffff61126d16565b61149857600d54611495906101b302606463ffffffff6113ec16565b90505b6114b6600754600a0a61016d028284026113ec90919063ffffffff16565b95945050505050565b50805460008255906000526020600020908101906114dd91906114e0565b50565b610d0791905b808211156106b65780546001600160c01b03191681556001016114e656fea165627a7a7230582024dc75f4964330e0668b83f066ce2d0d335b6157925c3a80ea4e75edd98c57df0029
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c80637419f190116100de578063cbd8877e11610097578063dd62ed3e11610071578063dd62ed3e14610382578063e060edd2146103b0578063e1c3bac6146104d7578063f2fde38b146104df57610173565b8063cbd8877e14610353578063cd474b041461035b578063d15138181461036357610173565b80637419f190146102e35780638da5cb5b146102eb57806395d89b411461030f5780639fd4da4014610317578063a9059cbb1461031f578063c56551b61461034b57610173565b806321ed47b31161013057806321ed47b31461026757806323b872dd1461026f5780632ab4d052146102a5578063313ce567146102ad5780635b054f9b146102b557806370a08231146102bd57610173565b806306fdde0314610178578063095ea7b3146101f55780630d081b6e1461023557806318160ddd1461024f57806318ff837b146102575780631e1b13c01461025f575b600080fd5b610180610505565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101ba5781810151838201526020016101a2565b50505050905090810190601f1680156101e75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102216004803603604081101561020b57600080fd5b506001600160a01b038135169060200135610593565b604080519115158252519081900360200190f35b61023d610634565b60408051918252519081900360200190f35b61023d61063a565b61023d610640565b61023d61065c565b61023d610668565b6102216004803603606081101561028557600080fd5b506001600160a01b038135811691602081013590911690604001356106ba565b61023d6108f7565b61023d6108fd565b61023d610903565b61023d600480360360208110156102d357600080fd5b50356001600160a01b0316610909565b61023d610928565b6102f361092e565b604080516001600160a01b039092168252519081900360200190f35b61018061093d565b61023d610998565b6102216004803603604081101561033557600080fd5b506001600160a01b03813516906020013561099e565b610221610b84565b61023d610d0a565b61023d610d10565b6103806004803603602081101561037957600080fd5b5035610d16565b005b61023d6004803603604081101561039857600080fd5b506001600160a01b0381358116916020013516610e81565b610221600480360360408110156103c657600080fd5b8101906020810181356401000000008111156103e157600080fd5b8201836020820111156103f357600080fd5b8035906020019184602083028401116401000000008311171561041557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561046557600080fd5b82018360208201111561047757600080fd5b8035906020019184602083028401116401000000008311171561049957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610eac945050505050565b61023d611221565b610380600480360360208110156104f557600080fd5b50356001600160a01b0316611227565b6005805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561058b5780601f106105605761010080835404028352916020019161058b565b820191906000526020600020905b81548152906001019060200180831161056e57829003601f168201915b505050505081565b60008115806105c357503360009081526012602090815260408083206001600160a01b0387168452909152902054155b6105cc57600080fd5b3360008181526012602090815260408083206001600160a01b03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b600d5481565b600e5481565b60006106576009544361126d90919063ffffffff16565b905090565b6000610657334261127f565b600d54600a544290610697906301e133809061068b90849063ffffffff61126d16565b9063ffffffff6113ec16565b6106b657600d546106b3906101b302606463ffffffff6113ec16565b91505b5090565b6000606060643610156106c957fe5b6001600160a01b0384166106dc57600080fd5b6001600160a01b0385166000818152601260209081526040808320338452825280832054938352601190915290205461071b908563ffffffff61126d16565b6001600160a01b038088166000908152601160205260408082209390935590871681522054610750908563ffffffff61140116565b6001600160a01b038616600090815260116020526040902055610779818563ffffffff61126d16565b6001600160a01b03808816600081815260126020908152604080832033845282529182902094909455805188815290519289169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a36001600160a01b03861660009081526013602052604090205415610819576001600160a01b0386166000908152601360205260408120610819916114bf565b5050506001600160a01b0392831660009081526013602081815260408084208151808301835260118452828620546001600160801b03908116825267ffffffffffffffff428116838701818152855460018082018855968b52888b2095519501805491518416600160801b908102600160801b600160c01b03199787166001600160801b0319948516178816179091559b909c1689529686528488208551808701909652988216855284860196875288548085018a559888529490962092519290960180549451909316909602931691909516179091161790915590565b600f5481565b60075481565b60085481565b6001600160a01b0381166000908152601160205260409020545b919050565b600a5481565b6004546001600160a01b031681565b6006805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561058b5780601f106105605761010080835404028352916020019161058b565b60105481565b6000604060443610156109ad57fe5b336001600160a01b03851614156109cd576109c6610b84565b9150610b7d565b336000908152601160205260409020546109ed908463ffffffff61126d16565b33600090815260116020526040808220929092556001600160a01b03861681522054610a1f908463ffffffff61140116565b6001600160a01b0385166000818152601160209081526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a33360009081526013602052604090205415610aa157336000908152601360205260408120610aa1916114bf565b3360009081526013602081815260408084208151808301835260118452828620546001600160801b03908116825267ffffffffffffffff428116838701818152855460018181018855968b52888b2095519501805491518416600160801b908102600160801b600160c01b03199787166001600160801b0319948516178816179091556001600160a01b038f168b52988852868a2087518089019098528d8516885287890192835280548088018255908b5297909920955195909601805496519091169096029316939095169290921790931692909217905591505b5092915050565b6000600f54600e5410610b9357fe5b33600090815260116020526040902054610baf57506000610d07565b33600090815260136020526040902054610bcb57506000610d07565b6000610bd633611417565b905060008111610bea576000915050610d07565b600e54610bfd908263ffffffff61140116565b600e5533600090815260116020526040902054610c20908263ffffffff61140116565b3360009081526011602090815260408083209390935560139052908120610c46916114bf565b3360008181526013602090815260408083208151808301835260118452828520546001600160801b03908116825267ffffffffffffffff42811683870190815284546001810186559488529686902092519290930180549651909316600160801b02600160801b600160c01b0319929091166001600160801b0319909616959095171693909317909255815184815291517f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859281900390910190a260019150505b90565b600b5481565b60095481565b6004546001600160a01b03163314610d2a57fe5b60008111610d3757600080fd5b33600090815260116020526040902054610d57908263ffffffff61126d16565b3360009081526011602090815260408083209390935560139052908120610d7d916114bf565b3360009081526013602090815260408083208151808301835260118452918420546001600160801b03908116835267ffffffffffffffff42811684860190815283546001810185559387529490952092519290910180549351909416600160801b02600160801b600160c01b0319929091166001600160801b03199093169290921716179055600e54610e16908263ffffffff61126d16565b600e55601054610e2c908263ffffffff61126d16565b601055600f54610e4590600a830263ffffffff61126d16565b600f5560408051828152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a250565b6001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b6004546000906001600160a01b03163314610ec357fe5b60008351118015610ed5575081518351145b610ede57600080fd5b6000805b8351811015610f1b57610f11848281518110610efa57fe5b60200260200101518361140190919063ffffffff16565b9150600101610ee2565b5033600090815260116020526040902054811115610f3857600080fd5b4260005b855181101561112057610fa3858281518110610f5457fe5b602002602001015160116000898581518110610f6c57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205461140190919063ffffffff16565b60116000888481518110610fb357fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555060136000878381518110610fef57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020604051806040016040528087848151811061102e57fe5b6020908102919091018101516001600160801b03908116835267ffffffffffffffff87811693830193909352845460018101865560009586529482902084519501805494909201516001600160801b0319909416941693909317600160801b600160c01b031916600160801b929091169190910217905585518690829081106110b357fe5b60200260200101516001600160a01b0316336001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8784815181106110fb57fe5b60200260200101516040518082815260200191505060405180910390a3600101610f3c565b5033600090815260116020526040902054611141908363ffffffff61126d16565b336000908152601160209081526040808320939093556013905220541561117a5733600090815260136020526040812061117a916114bf565b3360009081526011602052604090205415611216573360009081526013602090815260408083208151808301835260118452918420546001600160801b03908116835267ffffffffffffffff80871684860190815283546001810185559387529490952092519290910180549351909416600160801b02600160801b600160c01b0319929091166001600160801b031990931692909217161790555b506001949350505050565b600c5481565b6004546001600160a01b0316331461123b57fe5b6001600160a01b03811661124b57fe5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b60008282111561127957fe5b50900390565b6001600160a01b0382166000908152601360205260408120546112a45750600061062e565b60005b6001600160a01b038416600090815260136020526040902054811015610b7d57600b546001600160a01b03851660009081526013602052604090208054611317929190849081106112f457fe5b600091825260209091200154600160801b900467ffffffffffffffff1690611401565b831015611323576113e4565b6001600160a01b0384166000908152601360205260408120805461137091908490811061134c57fe5b6000918252602090912001548590600160801b900467ffffffffffffffff1661126d565b9050600c548111156113815750600c545b6113e0611397826201518063ffffffff6113ec16565b6001600160a01b03871660009081526013602052604090208054859081106113bb57fe5b60009182526020909120015485916001600160801b039091160263ffffffff61140116565b9250505b6001016112a7565b6000808284816113f857fe5b04949350505050565b60008282018381101561141057fe5b9392505050565b6000600a54421015801561142d57506000600a54115b61143657600080fd5b426000611443848361127f565b90506000811161145857600092505050610923565b600d54600a54611479906301e133809061068b90869063ffffffff61126d16565b61149857600d54611495906101b302606463ffffffff6113ec16565b90505b6114b6600754600a0a61016d028284026113ec90919063ffffffff16565b95945050505050565b50805460008255906000526020600020908101906114dd91906114e0565b50565b610d0791905b808211156106b65780546001600160c01b03191681556001016114e656fea165627a7a7230582024dc75f4964330e0668b83f066ce2d0d335b6157925c3a80ea4e75edd98c57df0029
Swarm Source
bzzr://24dc75f4964330e0668b83f066ce2d0d335b6157925c3a80ea4e75edd98c57df
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.