Sponsored Link:   trade.io - The Future of Crypto Trading - A Better, Faster, Smarter Crypto Exchange - Pre-Register Now!
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 4 txns
Token Contract: Throw Away Your Money (BURN)
 Latest 4 txns

TxHash Age From To Value [TxFee]
0x7ecd9dc04add8c34b44f0cdd414d285c6392c2ed52e98eca1b71f8793c78a2d58 days 1 hr ago0x84ecb387395a1be65e133c75ff9e5fcc6f756db3  IN   0x841d34af2018d9487199678edd47dd46b140690b0.05 Ether0.00282505
0x1c90841e99cbe45eaa55b39820e5b79781e4116d6296b92fabdd895d77c69c629 days 1 hr ago0xb9fedb203920981e26d84a4dea867b4927085074  IN   0x841d34af2018d9487199678edd47dd46b140690b0.03 Ether0.000847515
0x03628e7bd8586d5c3de93a106534876c7ec3b4b4515706ae4a50d1882bc9cda99 days 1 hr ago0xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5f  IN   0x841d34af2018d9487199678edd47dd46b140690b0 Ether0.00060465
0x8753fea051e7aca7a32bee1999f37261769f5966f804a012c4f5a47c4d93276c9 days 2 hrs ago0xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5f  IN    Contract Creation0 Ether0.00772447
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 2 Internal Transactions

ParentTxHash Block Age From To Value
0x7ecd9dc04add8c34b44f0cdd414d285c6392c2ed52e98eca1b71f8793c78a2d559593628 days 1 hr ago0x841d34af2018d9487199678edd47dd46b140690b0x00000000000000000000000000000000000000000.05 Ether
0x1c90841e99cbe45eaa55b39820e5b79781e4116d6296b92fabdd895d77c69c6259535319 days 1 hr ago0x841d34af2018d9487199678edd47dd46b140690b0x00000000000000000000000000000000000000000.03 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact match)
Contract Name: BURNToken
Compiler Version: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.24;

// ----------------------------------------------------------------------------
// 'BURN' 'Throw Away Your Money' token contract
//
// Symbol      : BURN
// Name        : Throw Away Your Money
// Decimals    : 18
//
// "0x0000000000000000000000000000000000000000 is the place to be for your Eth!"
//    -Cryptopinions
//
// ----------------------------------------------------------------------------


// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
library SafeMath {
    function add(uint a, uint b) internal pure returns (uint c) {
        c = a + b;
        require(c >= a);
    }
    function sub(uint a, uint b) internal pure returns (uint c) {
        require(b <= a);
        c = a - b;
    }
    function mul(uint a, uint b) internal pure returns (uint c) {
        c = a * b;
        require(a == 0 || c / a == b);
    }
    function div(uint a, uint b) internal pure returns (uint c) {
        require(b > 0);
        c = a / b;
    }
}


// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
// ----------------------------------------------------------------------------
contract ERC20Interface {
    function totalSupply() public constant returns (uint);
    function balanceOf(address tokenOwner) public constant returns (uint balance);
    function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
    function transfer(address to, uint tokens) public returns (bool success);
    function approve(address spender, uint tokens) public returns (bool success);
    function transferFrom(address from, address to, uint tokens) public returns (bool success);

    event Transfer(address indexed from, address indexed to, uint tokens);
    event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
}


// ----------------------------------------------------------------------------
// Contract function to receive approval and execute function in one call
//
// Borrowed from MiniMeToken
// ----------------------------------------------------------------------------
contract ApproveAndCallFallBack {
    function receiveApproval(address from, uint256 tokens, address token, bytes data) public;
}


// ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ----------------------------------------------------------------------------
contract BURNToken is ERC20Interface {
    using SafeMath for uint;

    string public symbol;
    string public  name;
    uint8 public decimals;
    uint _totalSupply;

    mapping(address => uint) balances;
    mapping(address => mapping(address => uint)) allowed;


    // ------------------------------------------------------------------------
    // Constructor
    // ------------------------------------------------------------------------
    constructor() public {
        symbol = "BURN";
        name = "Throw Away Your Money";
        decimals = 18;
        _totalSupply = 1 * 10**uint(decimals); //just gonna use this to seed the market dont worry not a premine I swear
        balances[msg.sender] = _totalSupply;
        emit Transfer(address(0), msg.sender, _totalSupply);
    }


    // ------------------------------------------------------------------------
    // Total supply
    // ------------------------------------------------------------------------
    function totalSupply() public view returns (uint) {
        return _totalSupply.sub(balances[address(0)]);
    }


    // ------------------------------------------------------------------------
    // Get the token balance for account `tokenOwner`
    // ------------------------------------------------------------------------
    function balanceOf(address tokenOwner) public view returns (uint balance) {
        return balances[tokenOwner];
    }


    // ------------------------------------------------------------------------
    // Transfer the balance from token owner's account to `to` account
    // - Owner's account must have sufficient balance to transfer
    // - 0 value transfers are allowed
    // ------------------------------------------------------------------------
    function transfer(address to, uint tokens) public returns (bool success) {
        balances[msg.sender] = balances[msg.sender].sub(tokens);
        balances[to] = balances[to].add(tokens);
        emit Transfer(msg.sender, to, tokens);
        return true;
    }


    // ------------------------------------------------------------------------
    // Token owner can approve for `spender` to transferFrom(...) `tokens`
    // from the token owner's account
    //
    // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
    // recommends that there are no checks for the approval double-spend attack
    // as this should be implemented in user interfaces
    // ------------------------------------------------------------------------
    function approve(address spender, uint tokens) public returns (bool success) {
        allowed[msg.sender][spender] = tokens;
        emit Approval(msg.sender, spender, tokens);
        return true;
    }


    // ------------------------------------------------------------------------
    // Transfer `tokens` from the `from` account to the `to` account
    //
    // The calling account must already have sufficient tokens approve(...)-d
    // for spending from the `from` account and
    // - From account must have sufficient balance to transfer
    // - Spender must have sufficient allowance to transfer
    // - 0 value transfers are allowed
    // ------------------------------------------------------------------------
    function transferFrom(address from, address to, uint tokens) public returns (bool success) {
        balances[from] = balances[from].sub(tokens);
        allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
        balances[to] = balances[to].add(tokens);
        emit Transfer(from, to, tokens);
        return true;
    }


    // ------------------------------------------------------------------------
    // Returns the amount of tokens approved by the owner that can be
    // transferred to the spender's account
    // ------------------------------------------------------------------------
    function allowance(address tokenOwner, address spender) public view returns (uint remaining) {
        return allowed[tokenOwner][spender];
    }


    // ------------------------------------------------------------------------
    // Token owner can approve for `spender` to transferFrom(...) `tokens`
    // from the token owner's account. The `spender` contract function
    // `receiveApproval(...)` is then executed
    // ------------------------------------------------------------------------
    function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
        allowed[msg.sender][spender] = tokens;
        emit Approval(msg.sender, spender, tokens);
        ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
        return true;
    }


    // ------------------------------------------------------------------------
    // Your Eth is gone forever but at least you get a consolation prize
    // ------------------------------------------------------------------------
    function burn() public payable{
      balances[msg.sender] += msg.value;
      _totalSupply += msg.value;
      address(0).transfer(msg.value);
      emit Transfer(address(0), msg.sender, _totalSupply);
    }
    function () public payable {
      burn();
    }

}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"tokens","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokens","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"burn","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"tokens","type":"uint256"},{"name":"data","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"tokenOwner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Approval","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b506040805180820190915260048082527f4255524e00000000000000000000000000000000000000000000000000000000602090920191825261005591600091610103565b506040805180820190915260158082527f5468726f77204177617920596f7572204d6f6e65790000000000000000000000602090920191825261009a91600191610103565b506002805460ff19166012179081905560ff16600a0a6003819055336000818152600460209081526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a361019e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014457805160ff1916838001178555610171565b82800160010185558215610171579182015b82811115610171578251825591602001919060010190610156565b5061017d929150610181565b5090565b61019b91905b8082111561017d5760008155600101610187565b90565b6108b4806101ad6000396000f3006080604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b8578063095ea7b31461014257806318160ddd1461017a57806323b872dd146101a1578063313ce567146101cb57806344df8e70146100ae57806370a08231146101f657806395d89b4114610217578063a9059cbb1461022c578063cae9ca5114610250578063dd62ed3e146102b9575b6100b66102e0565b005b3480156100c457600080fd5b506100cd610366565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101075781810151838201526020016100ef565b50505050905090810190601f1680156101345780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561014e57600080fd5b50610166600160a060020a03600435166024356103f3565b604080519115158252519081900360200190f35b34801561018657600080fd5b5061018f61045a565b60408051918252519081900360200190f35b3480156101ad57600080fd5b50610166600160a060020a036004358116906024351660443561049d565b3480156101d757600080fd5b506101e06105a8565b6040805160ff9092168252519081900360200190f35b34801561020257600080fd5b5061018f600160a060020a03600435166105b1565b34801561022357600080fd5b506100cd6105cc565b34801561023857600080fd5b50610166600160a060020a0360043516602435610627565b34801561025c57600080fd5b50604080516020600460443581810135601f8101849004840285018401909552848452610166948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506106d79650505050505050565b3480156102c557600080fd5b5061018f600160a060020a0360043581169060243516610838565b336000908152600460205260408082208054349081019091556003805482019055905181156108fc02919083818181858288f19350505050158015610329573d6000803e3d6000fd5b50600354604080519182525133916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103eb5780601f106103c0576101008083540402835291602001916103eb565b820191906000526020600020905b8154815290600101906020018083116103ce57829003601f168201915b505050505081565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b600080805260046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec546003546104989163ffffffff61086316565b905090565b600160a060020a0383166000908152600460205260408120546104c6908363ffffffff61086316565b600160a060020a0385166000908152600460209081526040808320939093556005815282822033835290522054610503908363ffffffff61086316565b600160a060020a038086166000908152600560209081526040808320338452825280832094909455918616815260049091522054610547908363ffffffff61087816565b600160a060020a0380851660008181526004602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60025460ff1681565b600160a060020a031660009081526004602052604090205490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103eb5780601f106103c0576101008083540402835291602001916103eb565b33600090815260046020526040812054610647908363ffffffff61086316565b3360009081526004602052604080822092909255600160a060020a03851681522054610679908363ffffffff61087816565b600160a060020a0384166000818152600460209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b336000818152600560209081526040808320600160a060020a038816808552908352818420879055815187815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a36040517f8f4ffcb10000000000000000000000000000000000000000000000000000000081523360048201818152602483018690523060448401819052608060648501908152865160848601528651600160a060020a038a1695638f4ffcb195948a94938a939192909160a490910190602085019080838360005b838110156107c75781810151838201526020016107af565b50505050905090810190601f1680156107f45780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561081657600080fd5b505af115801561082a573d6000803e3d6000fd5b506001979650505050505050565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b60008282111561087257600080fd5b50900390565b8181018281101561045457600080fd00a165627a7a72305820e762a28aefa495ce56c94ca69e1f390135b80c1c98f505efbed516dd6f9d24610029

   Swarm Source:
bzzr://e762a28aefa495ce56c94ca69e1f390135b80c1c98f505efbed516dd6f9d2461

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.