Address Contract Partially Verified
Address
0x2Fb12bccF6f5Dd338b76Be784A93ade072425690
Balance
0 ETH
Nonce
1
Code Size
3615 bytes
Creator
0x17d75351...5D8d at tx 0x4576bcc8...f48eea
Indexed Transactions
0
Contract Bytecode
3615 bytes
0x6060604052600436106101065763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305d2035b811461010b57806306fdde0314610132578063095ea7b3146101bc57806318160ddd146101de57806323b872dd14610203578063313ce5671461022b5780633a03171c1461025457806340c10f191461026757806342966c681461028957806366188463146102a157806368573107146102c357806370a08231146102ed5780637d64bcb41461030c5780638da5cb5b1461031f57806395d89b4114610132578063a9059cbb1461034e578063d73dd62314610370578063dd62ed3e14610392578063f2fde38b146103b7575b600080fd5b341561011657600080fd5b61011e6103d6565b604051901515815260200160405180910390f35b341561013d57600080fd5b6101456103f7565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610181578082015183820152602001610169565b50505050905090810190601f1680156101ae5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101c757600080fd5b61011e600160a060020a036004351660243561042e565b34156101e957600080fd5b6101f161049a565b60405190815260200160405180910390f35b341561020e57600080fd5b61011e600160a060020a03600435811690602435166044356104a0565b341561023657600080fd5b61023e610622565b60405160ff909116815260200160405180910390f35b341561025f57600080fd5b6101f1610627565b341561027257600080fd5b61011e600160a060020a0360043516602435610637565b341561029457600080fd5b61029f6004356106c7565b005b34156102ac57600080fd5b61011e600160a060020a03600435166024356107ad565b34156102ce57600080fd5b61011e60246004803582810192908201359181359182019101356108a7565b34156102f857600080fd5b6101f1600160a060020a0360043516610978565b341561031757600080fd5b61011e610993565b341561032a57600080fd5b610332610a40565b604051600160a060020a03909116815260200160405180910390f35b341561035957600080fd5b61011e600160a060020a0360043516602435610a4f565b341561037b57600080fd5b61011e600160a060020a0360043516602435610b4a565b341561039d57600080fd5b6101f1600160a060020a0360043581169060243516610bee565b34156103c257600080fd5b61029f600160a060020a0360043516610c19565b60035474010000000000000000000000000000000000000000900460ff1681565b60408051908101604052600481527f4245415400000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005481565b6000600160a060020a03831615156104b757600080fd5b600160a060020a0384166000908152600160205260409020548211156104dc57600080fd5b600160a060020a038085166000908152600260209081526040808320339094168352929052205482111561050f57600080fd5b600160a060020a038416600090815260016020526040902054610538908363ffffffff610cb416565b600160a060020a03808616600090815260016020526040808220939093559085168152205461056d908363ffffffff610cc616565b600160a060020a038085166000908152600160209081526040808320949094558783168252600281528382203390931682529190915220546105b5908363ffffffff610cb416565b600160a060020a03808616600081815260026020908152604080832033861684529091529081902093909355908516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b601281565b6b1027e72f1f1281308800000081565b60035460009033600160a060020a0390811691161461065557600080fd5b60035474010000000000000000000000000000000000000000900460ff161561067d57600080fd5b6000821161068a57600080fd5b6000546b1027e72f1f12813088000000906106ab908463ffffffff610cc616565b11156106b657600080fd5b6106c08383610cd5565b9392505050565b60035460009033600160a060020a039081169116146106e557600080fd5b600082116106f257600080fd5b600160a060020a03331660009081526001602052604090205482111561071757600080fd5b5033600160a060020a03811660009081526001602052604090205461073c9083610cb4565b600160a060020a03821660009081526001602052604081209190915554610769908363ffffffff610cb416565b600055600160a060020a0381167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58360405190815260200160405180910390a25050565b600160a060020a0333811660009081526002602090815260408083209386168352929052908120548083111561080a57600160a060020a033381166000908152600260209081526040808320938816835292905290812055610841565b61081a818463ffffffff610cb416565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b600354600090819074010000000000000000000000000000000000000000900460ff16156108d457600080fd5b8483146108e057600080fd5b5060005b8481101561096c5760008686838181106108fa57fe5b90506020020135600160a060020a0316600160a060020a03161415151561092057600080fd5b61095986868381811061092f57fe5b90506020020135600160a060020a0316858584818110151561094d57fe5b90506020020135610637565b151561096457600080fd5b6001016108e4565b50600195945050505050565b600160a060020a031660009081526001602052604090205490565b60035460009033600160a060020a039081169116146109b157600080fd5b60035474010000000000000000000000000000000000000000900460ff16156109d957600080fd5b6003805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790557fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0860405160405180910390a150600190565b600354600160a060020a031681565b6000600160a060020a0383161515610a6657600080fd5b600160a060020a033316600090815260016020526040902054821115610a8b57600080fd5b600160a060020a033316600090815260016020526040902054610ab4908363ffffffff610cb416565b600160a060020a033381166000908152600160205260408082209390935590851681522054610ae9908363ffffffff610cc616565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054610b82908363ffffffff610cc616565b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60035433600160a060020a03908116911614610c3457600080fd5b600160a060020a0381161515610c4957600080fd5b600354600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600082821115610cc057fe5b50900390565b6000828201838110156106c057fe5b60035460009033600160a060020a03908116911614610cf357600080fd5b60035474010000000000000000000000000000000000000000900460ff1615610d1b57600080fd5b600054610d2e908363ffffffff610cc616565b6000908155600160a060020a038416815260016020526040902054610d59908363ffffffff610cc616565b600160a060020a0384166000818152600160205260409081902092909255907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859084905190815260200160405180910390a2600160a060020a03831660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a3506001929150505600a165627a7a72305820b45c6f481b0651acf3e7ad6cd8bd437f9b0a04899fd582d84a8d676ec12cd4ac0029
Verified Source Code Partial Match
Compiler: v0.4.18+commit.9cf6e910
Optimization: Yes (400 runs)
BeatOrgToken.sol 279 lines
pragma solidity ^0.4.18;
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 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 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 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 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 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;
}
}
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;
}
}
contract BeatOrgToken is MintableToken {
using SafeMath for uint256;
string public constant name = "BEAT";
string public constant symbol = "BEAT";
uint8 public constant decimals = 18;
// 5 bn
uint256 public constant HARD_CAP = 5 * (10 ** 9) * (10 ** 18);
event Burn(address indexed burner, uint256 value);
function batchMint(address[] _to, uint256[] _amount) external canMint returns (bool) {
require(_to.length == _amount.length);
for (uint i = 0; i < _to.length; i++) {
require(_to[i] != address(0));
require(mint(_to[i], _amount[i]));
}
return true;
}
function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
require(_amount > 0);
require(totalSupply.add(_amount) <= HARD_CAP);
return super.mint(_to, _amount);
}
function burn(uint256 _value) onlyOwner public {
require(_value > 0);
require(_value <= balances[msg.sender]);
// no need to require value <= totalSupply, since that would imply the
// sender's balance is greater than the totalSupply, which *should* be an assertion failure
address burner = msg.sender;
balances[burner] = balances[burner].sub(_value);
totalSupply = totalSupply.sub(_value);
Burn(burner, _value);
}
}
Read Contract
HARD_CAP 0x3a03171c → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
mintingFinished 0x05d2035b → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 10 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
batchMint 0x68573107
address[] _to
uint256[] _amount
returns: bool
burn 0x42966c68
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
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