Address Contract Partially Verified
Address
0x23d41c95F00D097CD4895691DC8f57b0bBA6f23b
Balance
0 ETH
Nonce
1
Code Size
2143 bytes
Creator
0x9fdC3e9c...fF4b at tx 0x947fe1fa...883d73
Indexed Transactions
0 (1 on-chain, 1.1% indexed)
Contract Bytecode
2143 bytes
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80638da5cb5b1161008c578063ce1ffcd911610066578063ce1ffcd91461028a578063db0e16f1146102ab578063dd62ed3e146102d7578063f2fde38b14610305576100ea565b80638da5cb5b1461023257806395d89b4114610256578063a9059cbb1461025e576100ea565b806323b872dd116100c857806323b872dd146101c6578063313ce567146101fc5780634cd412d51461020457806370a082311461020c576100ea565b806306fdde03146100ef578063095ea7b31461016c57806318160ddd146101ac575b600080fd5b6100f761032b565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610131578181015183820152602001610119565b50505050905090810190601f16801561015e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101986004803603604081101561018257600080fd5b506001600160a01b03813516906020013561034b565b604080519115158252519081900360200190f35b6101b46103eb565b60408051918252519081900360200190f35b610198600480360360608110156101dc57600080fd5b506001600160a01b038135811691602081013590911690604001356103f1565b6101b461044c565b610198610451565b6101b46004803603602081101561022257600080fd5b50356001600160a01b0316610461565b61023a61047c565b604080516001600160a01b039092168252519081900360200190f35b6100f761048b565b6101986004803603604081101561027457600080fd5b506001600160a01b0381351690602001356104ab565b6102a9600480360360208110156102a057600080fd5b50351515610504565b005b6102a9600480360360408110156102c157600080fd5b506001600160a01b038135169060200135610539565b6101b4600480360360408110156102ed57600080fd5b506001600160a01b03813581169160200135166105d6565b6102a96004803603602081101561031b57600080fd5b50356001600160a01b0316610601565b604051806040016040528060048152602001634c69766560e01b81525081565b600081158061037b57503360009081526002602090815260408083206001600160a01b0387168452909152902054155b61038457600080fd5b3360008181526002602090815260408083206001600160a01b03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60005481565b6000826001600160a01b03811661040757600080fd5b6001600160a01b03811630141561041d57600080fd5b600354600160a01b900460ff16151560011461043857600080fd5b610443858585610646565b95945050505050565b601281565b600354600160a01b900460ff1681565b6001600160a01b031660009081526001602052604090205490565b6003546001600160a01b031681565b604051806040016040528060048152602001634c49564560e01b81525081565b6000826001600160a01b0381166104c157600080fd5b6001600160a01b0381163014156104d757600080fd5b600354600160a01b900460ff1615156001146104f257600080fd5b6104fc8484610752565b949350505050565b6003546001600160a01b0316331461051b57600080fd5b60038054911515600160a01b0260ff60a01b19909216919091179055565b6003546001600160a01b0316331461055057600080fd5b6003546040805163a9059cbb60e01b81526001600160a01b0392831660048201526024810184905290519184169163a9059cbb916044808201926020929091908290030181600087803b1580156105a657600080fd5b505af11580156105ba573d6000803e3d6000fd5b505050506040513d60208110156105d057600080fd5b50505050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6003546001600160a01b0316331461061857600080fd5b6001600160a01b0381161561064357600380546001600160a01b0319166001600160a01b0383161790555b50565b6001600160a01b03831660008181526002602090815260408083203384528252808320549383526001909152812054909190610688908463ffffffff61080216565b6001600160a01b0380871660009081526001602052604080822093909355908616815220546106bd908463ffffffff61081416565b6001600160a01b0385166000908152600160205260409020556106e6818463ffffffff61080216565b6001600160a01b03808716600081815260026020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b33600090815260016020526040812054610772908363ffffffff61080216565b33600090815260016020526040808220929092556001600160a01b038516815220546107a4908363ffffffff61081416565b6001600160a01b0384166000818152600160209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b60008282111561080e57fe5b50900390565b60008282018381101561082357fe5b939250505056fea265627a7a72315820a9b4734db087b2d404d903ff69eccebae70c77e4898fab703615c8968710c70c64736f6c634300050f0032
Verified Source Code Partial Match
Compiler: v0.5.15+commit.6a57276f
EVM: istanbul
Optimization: Yes (200 runs)
Live.sol 207 lines
pragma solidity ^0.5.1;
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;
}
}
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() {
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) onlyOwner public{
if (newOwner != address(0)) {
owner = newOwner;
}
}
}
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
// KYBER-NOTE! code changed to comply with ERC20 standard
event Transfer(address indexed _from, address indexed _to, uint _value);
//event Transfer(address indexed from, address indexed to, 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) {
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
emit 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 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);
// KYBER-NOTE! code changed to comply with ERC20 standard
event Approval(address indexed _owner, address indexed _spender, uint _value);
//event Approval(address indexed owner, address indexed spender, uint256 value);
}
contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) 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 amout of tokens to be transfered
*/
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
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);
return true;
}
/**
* @dev Aprove the passed address to spend the specified amount of tokens on behalf of msg.sender.
* @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) {
// To change the approve amount you first have to reduce the addresses`
// allowance to zero by calling `approve(_spender, 0)` if it is not
// already 0 to mitigate the race condition described here:
// https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
require((_value == 0) || (allowed[msg.sender][_spender] == 0));
allowed[msg.sender][_spender] = _value;
emit 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 specifing the amount of tokens still avaible for the spender.
*/
function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
return allowed[_owner][_spender];
}
}
contract Live is StandardToken, Ownable {
string public constant name = "Live";
string public constant symbol = "LIVE";
uint public constant decimals = 18;
bool public transferEnabled = true;
modifier validDestination( address to ) {
require(to != address(0x0));
require(to != address(this) );
_;
}
constructor() public {
// Mint all tokens. Then disable minting forever.
totalSupply = 10000000000 * (10 ** decimals);
address to = 0xEa07cA13086eCf05Bd482a42c08d4cF0091423c2;
balances[to] = totalSupply;
emit Transfer(address(0x0), to, totalSupply);
transferOwnership(msg.sender); // admin could drain tokens that were sent here by mistake
}
function transfer(address _to, uint _value)
validDestination(_to)
public returns (bool) {
require(transferEnabled == true);
return super.transfer(_to, _value);
}
function transferFrom(address _from, address _to, uint _value)
validDestination(_to)
public returns (bool) {
require(transferEnabled == true);
return super.transferFrom(_from, _to, _value);
}
function emergencyERC20Drain( ERC20 token, uint amount ) onlyOwner public {
token.transfer( owner, amount );
}
function setTransferEnable(bool enable) onlyOwner public {
transferEnabled = enable;
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
transferEnabled 0x4cd412d5 → bool
Write Contract 6 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
emergencyERC20Drain 0xdb0e16f1
address token
uint256 amount
setTransferEnable 0xce1ffcd9
bool enable
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
This address has 1 on-chain transactions, but only 1.1% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →