Address Contract Partially Verified
Address
0x905E337c6c8645263D3521205Aa37bf4d034e745
Balance
0 ETH
Nonce
1
Code Size
2820 bytes
Creator
0x3D5eaF8A...311D at tx 0x108ff2c1...3d5ccc
Indexed Transactions
0
Contract Bytecode
2820 bytes
0x6060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d4578063095ea7b31461015e57806318160ddd1461019457806323b872dd146101b9578063313ce567146101e1578063521eb2731461020a578063661884631461023957806370a082311461025b5780638da5cb5b1461027a57806395d89b411461028d578063a9059cbb146102a0578063d73dd623146102c2578063dd62ed3e146102e4578063f2fde38b14610309575b600080fd5b34156100df57600080fd5b6100e761032a565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561012357808201518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561016957600080fd5b610180600160a060020a03600435166024356103c8565b604051901515815260200160405180910390f35b341561019f57600080fd5b6101a761046e565b60405190815260200160405180910390f35b34156101c457600080fd5b610180600160a060020a0360043581169060243516604435610474565b34156101ec57600080fd5b6101f46105f6565b60405160ff909116815260200160405180910390f35b341561021557600080fd5b61021d6105ff565b604051600160a060020a03909116815260200160405180910390f35b341561024457600080fd5b610180600160a060020a0360043516602435610613565b341561026657600080fd5b6101a7600160a060020a0360043516610731565b341561028557600080fd5b61021d61074c565b341561029857600080fd5b6100e761075b565b34156102ab57600080fd5b610180600160a060020a03600435166024356107c6565b34156102cd57600080fd5b610180600160a060020a03600435166024356108c1565b34156102ef57600080fd5b6101a7600160a060020a03600435811690602435166108f9565b341561031457600080fd5b610328600160a060020a0360043516610924565b005b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103c05780601f10610395576101008083540402835291602001916103c0565b820191906000526020600020905b8154815290600101906020018083116103a357829003601f168201915b505050505081565b60008115806103fa5750600160a060020a03338116600090815260026020908152604080832093871683529290522054155b151561040557600080fd5b600160a060020a03338116600081815260026020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005481565b6000600160a060020a038316151561048b57600080fd5b600160a060020a0384166000908152600160205260409020548211156104b057600080fd5b600160a060020a03808516600090815260026020908152604080832033909416835292905220548211156104e357600080fd5b600160a060020a03841660009081526001602052604090205461050c908363ffffffff6109bf16565b600160a060020a038086166000908152600160205260408082209390935590851681522054610541908363ffffffff6109d116565b600160a060020a03808516600090815260016020908152604080832094909455878316825260028152838220339093168252919091522054610589908363ffffffff6109bf16565b600160a060020a03808616600081815260026020908152604080832033861684529091529081902093909355908516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60065460ff1681565b6006546101009004600160a060020a031681565b600160a060020a03338116600090815260026020908152604080832093861683529290529081205482111561066f57600160a060020a0333811660009081526002602090815260408083209387168352929052908120556106cc565b600160a060020a033381166000908152600260209081526040808320938716835292905220546106a5908363ffffffff6109bf16565b600160a060020a033381166000908152600260209081526040808320938816835292905220555b600160a060020a0333811660008181526002602090815260408083209488168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a350600192915050565b600160a060020a031660009081526001602052604090205490565b600354600160a060020a031681565b60058054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103c05780601f10610395576101008083540402835291602001916103c0565b6000600160a060020a03831615156107dd57600080fd5b600160a060020a03331660009081526001602052604090205482111561080257600080fd5b600160a060020a03331660009081526001602052604090205461082b908363ffffffff6109bf16565b600160a060020a033381166000908152600160205260408082209390935590851681522054610860908363ffffffff6109d116565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a0333811660009081526002602090815260408083209386168352929052908120546106a5908363ffffffff6109d116565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60035433600160a060020a0390811691161461093f57600080fd5b600160a060020a038116151561095457600080fd5b600354600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000828211156109cb57fe5b50900390565b6000828201838110156109e057fe5b9392505050565b600160a060020a03821615156109fc57600080fd5b60008111610a0957600080fd5b600160a060020a038216600090815260016020526040902054610a32908263ffffffff6109d116565b600160a060020a03831660009081526001602052604090819020919091557f297a9dc454ac47d2d471c4c4dd7861ed6d621bf0891b28859cb3b880b7ff1a9f908390839051600160a060020a03909216825260208201526040908101905180910390a1600160a060020a03821660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a350505600a165627a7a72305820380aa09078116a4ae4c2fa364782f679a06e9eefc6f6c6dd37486e0ac31edb2f0029
Verified Source Code Partial Match
Compiler: v0.4.18+commit.9cf6e910
Optimization: Yes (200 runs)
MTC.sol 194 lines
pragma solidity ^0.4.18;
/**
* Changes by https://www.docademic.com/
*/
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
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;
}
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;
}
}
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);
}
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);
}
contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
}
/**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/
function balanceOf(address _owner) public view returns (uint256 balance) {
return balances[_owner];
}
}
contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
Transfer(_from, _to, _value);
return true;
}
/**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
*
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
* @param _spender The address which will spend the funds.
* @param _value The amount of tokens to be spent.
*/
function approve(address _spender, uint256 _value) public returns (bool) {
require (_value == 0 || allowed[msg.sender][_spender] == 0);
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
/**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/
function allowance(address _owner, address _spender) public view returns (uint256) {
return allowed[_owner][_spender];
}
/**
* approve should be called when allowed[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
*/
function increaseApproval(address _spender, uint256 _addedValue) public returns (bool) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
function decreaseApproval(address _spender, uint256 _subtractedValue) public returns (bool) {
if (_subtractedValue > allowed[msg.sender][_spender]) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].sub(_subtractedValue);
}
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
}
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(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) public onlyOwner {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
}
contract MTC is StandardToken, Ownable {
event WalletFunded(address wallet, uint256 amount);
string public name;
string public symbol;
uint8 public decimals;
address public wallet;
function MTC(string _name, string _symbol, uint256 _totalSupply, uint8 _decimals, address _multiSig) public {
require(_multiSig != address(0));
require(_multiSig != msg.sender);
require(_totalSupply > 0);
name = _name;
symbol = _symbol;
totalSupply = _totalSupply;
decimals = _decimals;
wallet = _multiSig;
/** todos los tokens a la cartera principal */
fundWallet(_multiSig, _totalSupply);
/** transferimos el ownership */
transferOwnership(_multiSig);
}
function fundWallet(address _wallet, uint256 _amount) internal {
/** validaciones */
require(_wallet != address(0));
require(_amount > 0);
balances[_wallet] = balances[_wallet].add(_amount);
/** notificamos la operación */
WalletFunded(_wallet, _amount);
Transfer(address(0), _wallet, _amount);
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
wallet 0x521eb273 → address
Write Contract 6 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
decreaseApproval 0x66188463
address _spender
uint256 _subtractedValue
returns: bool
increaseApproval 0xd73dd623
address _spender
uint256 _addedValue
returns: bool
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address