Address Contract Partially Verified
Address
0x0FB843D37AA2A99db8D81aF9fe2F0A6485c7c002
Balance
0 ETH
Nonce
1
Code Size
2685 bytes
Creator
0x0aD166d3...6Ac4 at tx 0x4ff6ff42...3a44ec
Indexed Transactions
0
Contract Bytecode
2685 bytes
0x6060604052600436106100f05763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f5578063095ea7b31461017f57806318160ddd146101b557806323b872dd146101da578063313ce5671461020257806342966c681461021557806370a082311461022b57806375829def1461024a57806379cc67901461026b5780638da5cb5b1461028d57806395d89b41146102bc578063a9059cbb146102cf578063cae9ca51146102f1578063dd62ed3e14610356578063f2fde38b1461037b578063f851a4401461039a578063f8b2cb4f146103ad575b600080fd5b341561010057600080fd5b6101086103cc565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561014457808201518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018a57600080fd5b6101a1600160a060020a036004351660243561046a565b604051901515815260200160405180910390f35b34156101c057600080fd5b6101c86104d6565b60405190815260200160405180910390f35b34156101e557600080fd5b6101a1600160a060020a03600435811690602435166044356104dc565b341561020d57600080fd5b6101c8610551565b341561022057600080fd5b6101a1600435610557565b341561023657600080fd5b6101c8600160a060020a036004351661056b565b341561025557600080fd5b610269600160a060020a036004351661057d565b005b341561027657600080fd5b6101a1600160a060020a03600435166024356105c7565b341561029857600080fd5b6102a061063a565b604051600160a060020a03909116815260200160405180910390f35b34156102c757600080fd5b610108610649565b34156102da57600080fd5b610269600160a060020a03600435166024356106b4565b34156102fc57600080fd5b6101a160048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506106c395505050505050565b341561036157600080fd5b6101c8600160a060020a03600435811690602435166107f1565b341561038657600080fd5b610269600160a060020a036004351661080e565b34156103a557600080fd5b6102a0610858565b34156103b857600080fd5b6101c8600160a060020a0360043516610867565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104625780601f1061043757610100808354040283529160200191610462565b820191906000526020600020905b81548152906001019060200180831161044557829003601f168201915b505050505081565b600160a060020a03338116600081815260076020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60055481565b600160a060020a03808416600090815260076020908152604080832033909416835292905290812054610515908363ffffffff61088216565b600160a060020a0380861660009081526007602090815260408083203390941683529290522055610547848484610894565b5060019392505050565b60045481565b60006105633383610963565b506001919050565b60066020526000908152604090205481565b60005433600160a060020a0390811691161461059857600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a03808316600090815260076020908152604080832033909416835292905290812054610600908363ffffffff61088216565b600160a060020a03808516600090815260076020908152604080832033909416835292905220556106318383610963565b50600192915050565b600054600160a060020a031681565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104625780601f1061043757610100808354040283529160200191610462565b6106bf338383610894565b5050565b6000836106d0818561046a565b156107e95780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561078657808201518382015260200161076e565b50505050905090810190601f1680156107b35780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15156107d457600080fd5b5af115156107e157600080fd5b505050600191505b509392505050565b600760209081526000928352604080842090915290825290205481565b60005433600160a060020a0390811691161461082957600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600154600160a060020a031681565b600160a060020a031660009081526006602052604090205490565b60008282111561088e57fe5b50900390565b600160a060020a03821615156108a957600080fd5b600160a060020a0383166000908152600660205260409020546108d2908263ffffffff61088216565b600160a060020a038085166000908152600660205260408082209390935590841681522054610907908263ffffffff610a3b16565b600160a060020a03808416600081815260066020526040908190209390935591908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a3505050565b600160a060020a03821660009081526006602052604090205461098c908263ffffffff61088216565b600160a060020a0383166000908152600660205260409020556005546109b8908263ffffffff61088216565b600555600160a060020a0382167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405190815260200160405180910390a26000600160a060020a0383167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a35050565b600082820183811015610a4a57fe5b93925050505600a165627a7a72305820c7b4adb287ec3697d260ba6db16b6fe1d19f649e873eb59a5b3c0fc5dd195c640029
Verified Source Code Partial Match
Compiler: v0.4.21+commit.dfe3193c
EVM: byzantium
Optimization: Yes (200 runs)
CPROPToken.sol 245 lines
pragma solidity ^0.4.21;
contract owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
}
contract admined is owned {
address public admin;
function admined() public {
admin = msg.sender;
}
modifier onlyAdmin {
require(msg.sender == admin || msg.sender == owner);
_;
}
function transferAdmin(address newAdmin) onlyOwner public {
admin = newAdmin;
}
}
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
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;
}
/**
* @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
}
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }
contract TokenERC20 {
using SafeMath for uint256;
// Public variables of the token
string public name;
string public symbol;
uint256 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
// This generates a public event on the blockchain that will notify clients
event Transfer(address indexed from, address indexed to, uint256 value);
// This notifies clients about the amount burnt
event Burn(address indexed from, uint256 value);
event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
/**
* Constrctor function
*
* Initializes contract with initial supply tokens to the creator of the contract
*/
function TokenERC20(
uint256 initialSupply,
string tokenName,
uint256 decimalsToken,
string tokenSymbol
) public {
decimals = decimalsToken;
totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount
emit Transfer(0, msg.sender, totalSupply);
balanceOf[msg.sender] = totalSupply; // Give the contract itself all initial tokens
name = tokenName; // Set the name for display purposes
symbol = tokenSymbol; // Set the symbol for display purposes
}
/**
* Internal transfer, only can be called by this contract
*/
function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Subtract from the sender
balanceOf[_from] = balanceOf[_from].sub(_value);
// Add the same to the recipient
balanceOf[_to] = balanceOf[_to].add(_value);
emit Transfer(_from, _to, _value);
}
/**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/
function transfer(address _to, uint256 _value) public {
_transfer(msg.sender, _to, _value);
}
/**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` in behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value);
_transfer(_from, _to, _value);
return true;
}
/**
* Set allowance for other address
*
* Allows `_spender` to spend no more than `_value` tokens in your behalf
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
*/
function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
/**
* Set allowance for other address and notify
*
* Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
* @param _extraData some extra information to send to the approved contract
*/
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public
returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
/**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/
function burn(uint256 _value) public returns (bool success) {
_burn(msg.sender, _value);
return true;
}
function _burn(address _who, uint256 _value) internal {
balanceOf[_who] = balanceOf[_who].sub(_value); // Subtract from the sender
totalSupply = totalSupply.sub(_value); // Updates totalSupply
emit Burn(_who, _value);
emit Transfer(_who, address(0), _value);
}
/**
* Destroy tokens from other account
*
* Remove `_value` tokens from the system irreversibly on behalf of `_from`.
*
* @param _from the address of the sender
* @param _value the amount of money to burn
*/
function burnFrom(address _from, uint256 _value) public returns (bool success) {
allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value); // Subtract from the sender's allowance
_burn(_from, _value);
return true;
}
function getBalance(address _to) view public returns(uint res) {
return balanceOf[_to];
}
}
contract CPROPToken is admined, TokenERC20 {
function CPROPToken(
uint256 initialSupply,
string tokenName,
uint256 decimalsToken,
string tokenSymbol
) TokenERC20(initialSupply, tokenName, decimalsToken, tokenSymbol) public {
}
}
Read Contract
admin 0xf851a440 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint256
getBalance 0xf8b2cb4f → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 8 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
approveAndCall 0xcae9ca51
address _spender
uint256 _value
bytes _extraData
returns: bool
burn 0x42966c68
uint256 _value
returns: bool
burnFrom 0x79cc6790
address _from
uint256 _value
returns: bool
transfer 0xa9059cbb
address _to
uint256 _value
transferAdmin 0x75829def
address newAdmin
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address