Address Contract Partially Verified
Address
0xEB9951021698B42e4399f9cBb6267Aa35F82D59D
Balance
0 ETH
Nonce
1
Code Size
3945 bytes
Creator
0x9df3A24d...4daF at tx 0x38ce91f6...402e42
Indexed Transactions
0
Contract Bytecode
3945 bytes
0x60606040526004361061011c5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305d2035b8114610121578063095ea7b31461014857806318160ddd1461016a57806323b872dd1461018f5780632e0f2625146101b75780633f4ba83a146101ca57806340c10f19146101df57806342966c68146102015780635c975abb14610217578063661884631461022a57806370a082311461024c5780637d64bcb41461026b5780638456cb591461027e5780638da5cb5b146102915780639dc29fac146102c0578063a3f4df7e146102e2578063a9059cbb1461036c578063d73dd6231461038e578063dd62ed3e146103b0578063f2fde38b146103d5578063f76f8d78146103f4575b600080fd5b341561012c57600080fd5b610134610407565b604051901515815260200160405180910390f35b341561015357600080fd5b610134600160a060020a0360043516602435610417565b341561017557600080fd5b61017d610442565b60405190815260200160405180910390f35b341561019a57600080fd5b610134600160a060020a0360043581169060243516604435610448565b34156101c257600080fd5b61017d610475565b34156101d557600080fd5b6101dd61047a565b005b34156101ea57600080fd5b610134600160a060020a03600435166024356104fa565b341561020c57600080fd5b6101dd6004356105f6565b341561022257600080fd5b6101346106ba565b341561023557600080fd5b610134600160a060020a03600435166024356106ca565b341561025757600080fd5b61017d600160a060020a03600435166106ee565b341561027657600080fd5b610134610709565b341561028957600080fd5b6101dd610794565b341561029c57600080fd5b6102a4610819565b604051600160a060020a03909116815260200160405180910390f35b34156102cb57600080fd5b6101dd600160a060020a0360043516602435610828565b34156102ed57600080fd5b6102f5610908565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610331578082015183820152602001610319565b50505050905090810190601f16801561035e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561037757600080fd5b610134600160a060020a036004351660243561093f565b341561039957600080fd5b610134600160a060020a0360043516602435610963565b34156103bb57600080fd5b61017d600160a060020a0360043581169060243516610987565b34156103e057600080fd5b6101dd600160a060020a03600435166109b2565b34156103ff57600080fd5b6102f5610a4d565b60035460a060020a900460ff1681565b60035460009060a860020a900460ff161561043157600080fd5b61043b8383610a84565b9392505050565b60015490565b60035460009060a860020a900460ff161561046257600080fd5b61046d848484610af0565b949350505050565b601281565b60035433600160a060020a0390811691161461049557600080fd5b60035460a860020a900460ff1615156104ad57600080fd5b6003805475ff000000000000000000000000000000000000000000191690557f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b60035460009033600160a060020a0390811691161461051857600080fd5b60035460a060020a900460ff161561052f57600080fd5b600154610542908363ffffffff610c5e16565b600155600160a060020a03831660009081526020819052604090205461056e908363ffffffff610c5e16565b600160a060020a0384166000818152602081905260409081902092909255907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859084905190815260200160405180910390a2600160a060020a0383166000600080516020610f1e8339815191528460405190815260200160405180910390a350600192915050565b60035460a860020a900460ff161561060d57600080fd5b600160a060020a03331660009081526020819052604090205481111561063257600080fd5b600160a060020a03331660009081526020819052604090205461065b908263ffffffff610c6d16565b600160a060020a033316600090815260208190526040902055600154610687908263ffffffff610c6d16565b600155600033600160a060020a0316600080516020610f1e8339815191528360405190815260200160405180910390a350565b60035460a860020a900460ff1681565b60035460009060a860020a900460ff16156106e457600080fd5b61043b8383610c7f565b600160a060020a031660009081526020819052604090205490565b60035460009033600160a060020a0390811691161461072757600080fd5b60035460a060020a900460ff161561073e57600080fd5b6003805474ff0000000000000000000000000000000000000000191660a060020a1790557fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0860405160405180910390a150600190565b60035433600160a060020a039081169116146107af57600080fd5b60035460a860020a900460ff16156107c657600080fd5b6003805475ff000000000000000000000000000000000000000000191660a860020a1790557f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600354600160a060020a031681565b60035433600160a060020a0390811691161461084357600080fd5b60035460a060020a900460ff161561085a57600080fd5b600160a060020a03821660009081526020819052604090205481111561087f57600080fd5b600160a060020a0382166000908152602081905260409020546108a8908263ffffffff610c6d16565b600160a060020a0383166000908152602081905260409020556001546108d4908263ffffffff610c6d16565b6001556000600160a060020a038316600080516020610f1e8339815191528360405190815260200160405180910390a35050565b60408051908101604052600481527f4cc3ad6600000000000000000000000000000000000000000000000000000000602082015281565b60035460009060a860020a900460ff161561095957600080fd5b61043b8383610d79565b60035460009060a860020a900460ff161561097d57600080fd5b61043b8383610e79565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60035433600160a060020a039081169116146109cd57600080fd5b600160a060020a03811615156109e257600080fd5b600354600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60408051908101604052600381527f4c49460000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b6000600160a060020a0383161515610b0757600080fd5b600160a060020a038416600090815260208190526040902054821115610b2c57600080fd5b600160a060020a0380851660009081526002602090815260408083203390941683529290522054821115610b5f57600080fd5b600160a060020a038416600090815260208190526040902054610b88908363ffffffff610c6d16565b600160a060020a038086166000908152602081905260408082209390935590851681522054610bbd908363ffffffff610c5e16565b600160a060020a0380851660009081526020818152604080832094909455878316825260028152838220339093168252919091522054610c03908363ffffffff610c6d16565b600160a060020a0380861660008181526002602090815260408083203386168452909152908190209390935590851691600080516020610f1e8339815191529085905190815260200160405180910390a35060019392505050565b60008282018381101561043b57fe5b600082821115610c7957fe5b50900390565b600160a060020a03338116600090815260026020908152604080832093861683529290529081205480831115610cdc57600160a060020a033381166000908152600260209081526040808320938816835292905290812055610d13565b610cec818463ffffffff610c6d16565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b6000600160a060020a0383161515610d9057600080fd5b600160a060020a033316600090815260208190526040902054821115610db557600080fd5b600160a060020a033316600090815260208190526040902054610dde908363ffffffff610c6d16565b600160a060020a033381166000908152602081905260408082209390935590851681522054610e13908363ffffffff610c5e16565b60008085600160a060020a0316600160a060020a031681526020019081526020016000208190555082600160a060020a031633600160a060020a0316600080516020610f1e8339815191528460405190815260200160405180910390a350600192915050565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054610eb1908363ffffffff610c5e16565b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a3506001929150505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a7230582063271a187971665c21fa974e606572dafefcd48f897d356a24234c91268a4ee20029
Verified Source Code Partial Match
Compiler: v0.4.18+commit.9cf6e910
Optimization: Yes (200 runs)
LifToken.sol 440 lines
pragma solidity ^0.4.18;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @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;
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;
}
}
// File: zeppelin-solidity/contracts/math/SafeMath.sol
/**
* @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;
}
}
// File: zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
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);
}
// File: zeppelin-solidity/contracts/token/ERC20/BasicToken.sol
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/
contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @dev total number of tokens in existence
*/
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
/**
* @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];
}
}
// File: zeppelin-solidity/contracts/token/ERC20/ERC20.sol
/**
* @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);
}
// File: zeppelin-solidity/contracts/token/ERC20/StandardToken.sol
/**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/
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) {
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];
}
/**
* @dev Increase the amount of tokens that an owner allowed to a 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
* @param _spender The address which will spend the funds.
* @param _addedValue The amount of tokens to increase the allowance by.
*/
function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
/**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
*
* approve should be called when allowed[_spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spender The address which will spend the funds.
* @param _subtractedValue The amount of tokens to decrease the allowance by.
*/
function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
uint oldValue = allowed[msg.sender][_spender];
if (_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
}
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
}
// File: zeppelin-solidity/contracts/token/ERC20/MintableToken.sol
/**
* @title Mintable token
* @dev Simple ERC20 Token example, with mintable token creation
* @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120
* Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol
*/
contract MintableToken is StandardToken, Ownable {
event Mint(address indexed to, uint256 amount);
event MintFinished();
bool public mintingFinished = false;
modifier canMint() {
require(!mintingFinished);
_;
}
/**
* @dev Function to mint tokens
* @param _to The address that will receive the minted tokens.
* @param _amount The amount of tokens to mint.
* @return A boolean that indicates if the operation was successful.
*/
function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
totalSupply_ = totalSupply_.add(_amount);
balances[_to] = balances[_to].add(_amount);
Mint(_to, _amount);
Transfer(address(0), _to, _amount);
return true;
}
/**
* @dev Function to stop minting new tokens.
* @return True if the operation was successful.
*/
function finishMinting() onlyOwner canMint public returns (bool) {
mintingFinished = true;
MintFinished();
return true;
}
}
// File: zeppelin-solidity/contracts/lifecycle/Pausable.sol
/**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*/
modifier whenPaused() {
require(paused);
_;
}
/**
* @dev called by the owner to pause, triggers stopped state
*/
function pause() onlyOwner whenNotPaused public {
paused = true;
Pause();
}
/**
* @dev called by the owner to unpause, returns to normal state
*/
function unpause() onlyOwner whenPaused public {
paused = false;
Unpause();
}
}
// File: zeppelin-solidity/contracts/token/ERC20/PausableToken.sol
/**
* @title Pausable token
* @dev StandardToken modified with pausable transfers.
**/
contract PausableToken is StandardToken, Pausable {
function transfer(address _to, uint256 _value) public whenNotPaused returns (bool) {
return super.transfer(_to, _value);
}
function transferFrom(address _from, address _to, uint256 _value) public whenNotPaused returns (bool) {
return super.transferFrom(_from, _to, _value);
}
function approve(address _spender, uint256 _value) public whenNotPaused returns (bool) {
return super.approve(_spender, _value);
}
function increaseApproval(address _spender, uint _addedValue) public whenNotPaused returns (bool success) {
return super.increaseApproval(_spender, _addedValue);
}
function decreaseApproval(address _spender, uint _subtractedValue) public whenNotPaused returns (bool success) {
return super.decreaseApproval(_spender, _subtractedValue);
}
}
// File: contracts/LifToken.sol
/**
@title Líf, the Winding Tree token
Implementation of Líf, the ERC827 token for Winding Tree, an extension of the
ERC20 token with extra methods to transfer value and data to execute a call
on transfer.
Uses OpenZeppelin StandardToken, ERC827Token, MintableToken and PausableToken.
*/
contract LifToken is StandardToken, MintableToken, PausableToken {
// Token Name
string public constant NAME = "Líf";
// Token Symbol
string public constant SYMBOL = "LIF";
// Token decimals
uint public constant DECIMALS = 18;
/**
* @dev Burns a specific amount of tokens.
*
* @param _value The amount of tokens to be burned.
*/
function burn(uint256 _value) public whenNotPaused {
require(_value <= balances[msg.sender]);
balances[msg.sender] = balances[msg.sender].sub(_value);
totalSupply_ = totalSupply_.sub(_value);
// a Transfer event to 0x0 can be useful for observers to keep track of
// all the Lif by just looking at those events
Transfer(msg.sender, address(0), _value);
}
/**
* @dev Burns a specific amount of tokens of an address
* This function can be called only by the owner in the minting process
*
* @param _value The amount of tokens to be burned.
*/
function burn(address burner, uint256 _value) public onlyOwner {
require(!mintingFinished);
require(_value <= balances[burner]);
balances[burner] = balances[burner].sub(_value);
totalSupply_ = totalSupply_.sub(_value);
// a Transfer event to 0x0 can be useful for observers to keep track of
// all the Lif by just looking at those events
Transfer(burner, address(0), _value);
}
}
Read Contract
DECIMALS 0x2e0f2625 → uint256
NAME 0xa3f4df7e → string
SYMBOL 0xf76f8d78 → string
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
mintingFinished 0x05d2035b → bool
owner 0x8da5cb5b → address
paused 0x5c975abb → bool
totalSupply 0x18160ddd → uint256
Write Contract 12 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
burn 0x42966c68
uint256 _value
burn 0x9dc29fac
address burner
uint256 _value
decreaseApproval 0x66188463
address _spender
uint256 _subtractedValue
returns: bool
finishMinting 0x7d64bcb4
No parameters
returns: bool
increaseApproval 0xd73dd623
address _spender
uint256 _addedValue
returns: bool
mint 0x40c10f19
address _to
uint256 _amount
returns: bool
pause 0x8456cb59
No parameters
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unpause 0x3f4ba83a
No parameters
Recent Transactions
No transactions found for this address