Sponsored Link:   Learn and build dApps today without code using Crowd Machine's Crowd App Studio.
Contract Overview
Balance: 0.05 Ether
Ether Value: $23.18 (@ $463.59/ETH)
Transactions: 4 txns
Token Contract: Dunaton Metacurrency (META)
 Latest 4 txns

TxHash Age From To Value [TxFee]
0x2380fc4e17725d2e495e4c593102aeff0c15931d1de3b9a75356096cacf0599f76 days 5 hrs ago0x00a95e01524faa8baeeacc2443463d71e20e554a  IN   0x7dce85240d178ae61e91aa82ecdc2048d1ca052f0 Ether0.000992077
0x994c3921d5e39ec1f725bde8b3678f062176064586073d61775e712470f27e3587 days 8 hrs ago0x04fe1ffb7143329ee1bdeeab9318128af121c6b8  IN   0x7dce85240d178ae61e91aa82ecdc2048d1ca052f0.05 Ether0.000193744265
0x336e03276a75f4b0712077136f6517d60b4673796013469f2103dcf0ea27287397 days 7 hrs ago0x00a95e01524faa8baeeacc2443463d71e20e554a  IN   0x7dce85240d178ae61e91aa82ecdc2048d1ca052f0 Ether0.00054604
0x04d776a0d81e9d888fd950c4e910f8fa029bda4e13bb194113d47ccb6042c27297 days 22 hrs ago0x00a95e01524faa8baeeacc2443463d71e20e554a  IN    Contract Creation0 Ether0.028102032
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Contract Source Code Verified (Exact match)
Contract Name: META
Compiler Version: v0.4.21+commit.dfe3193c
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

contract META {

    string public name = "Dunaton Metacurrency";
    uint8 public decimals = 18;
    string public symbol = "META";

    address public _owner;
    address public dev = 0xC96CfB18C39DC02FBa229B6EA698b1AD5576DF4c;
    uint256 _tokePerEth = 156;
    uint256 weIn;

    uint public _totalSupply = 21000000;  // 21m, 18dp - one token is 1000000000000000000 therefore
    event Transfer(address indexed from, address indexed to, uint value, bytes data);

    // Storage
    mapping (address => uint256) balances;

    function META() {
        _owner = msg.sender;
        balances[_owner] = 5800000;    // premine 5.8m tokens to _owner
        _totalSupply = sub(_totalSupply,balances[_owner]);
    }

    function transfer(address _to, uint _value, bytes _data) public {
        // sender must have enough tokens to transfer
        require(balances[msg.sender] >= _value);

        uint codeLength;

        assembly {
        // Retrieve the size of the code on target address, this needs assembly .
            codeLength := extcodesize(_to)
        }

        balances[msg.sender] = sub(balanceOf(msg.sender), _value);
        balances[_to] = add(balances[_to], _value);
        
        Transfer(msg.sender, _to, _value, _data);
    }

    function transfer(address _to, uint _value) public {
        // sender must have enough tokens to transfer
        require(balances[msg.sender] >= _value);

        uint codeLength;
        bytes memory empty;

        assembly {
        // Retrieve the size of the code on target address, this needs assembly .
            codeLength := extcodesize(_to)
        }

        balances[msg.sender] = sub(balanceOf(msg.sender), _value);
        balances[_to] = add(balances[_to], _value);

        Transfer(msg.sender, _to, _value, empty);
    }

    // fallback to receive ETH into contract and send tokens back based on current exchange rate
    function () payable public {
        bytes memory empty;
        require(msg.value > 0);

        uint incomingValueAsEth = msg.value / 1 ether;

        weIn = incomingValueAsEth;

        uint256 _calcToken = (incomingValueAsEth * _tokePerEth); // value of payment in tokens

        require(_totalSupply >= _calcToken);
        _totalSupply = sub(_totalSupply, _calcToken);

        balances[msg.sender] = add(balances[msg.sender], _calcToken);

        Transfer(this, msg.sender, _calcToken, empty);
    }

    function changePayRate(uint256 _newRate) public {
        require((msg.sender == _owner) && (_newRate >= 0));
        _tokePerEth = _newRate;
    }

    function safeWithdrawal(address _receiver, uint256 _value) public {
        require((msg.sender == _owner));
        uint256 valueAsEth = _value * 1 ether;
        require((valueAsEth * 1 ether) < this.balance);
        _receiver.send(valueAsEth);
    }

    function balanceOf(address _receiver) public constant returns (uint balance) {
        return balances[_receiver];
    }

    function changeOwner(address _receiver) public {
        require(msg.sender == _owner);
        _owner = _receiver;
    }

    function tokens() public constant returns (uint) {
        return _totalSupply;
    }

    function updateTokenBalance(uint256 newBalance) public {
        require(msg.sender == _owner);
        _totalSupply = add(_totalSupply,newBalance);
    }

    function mul(uint a, uint b) internal returns (uint) {
        uint c = a * b;
        assert(a == 0 || c / a == b);
        return c;
    }

    function div(uint a, uint b) internal returns (uint) {
        // assert(b > 0); // Solidity automatically throws when dividing by 0
        uint c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold
        return c;
    }

    function sub(uint a, uint b) internal returns (uint) {
        assert(b <= a);
        return a - b;
    }

    function add(uint a, uint b) internal returns (uint) {
        uint c = a + b;
        assert(c >= a);
        return c;
    }

    function max64(uint64 a, uint64 b) internal constant returns (uint64) {
        return a >= b ? a : b;
    }

    function min64(uint64 a, uint64 b) internal constant returns (uint64) {
        return a < b ? a : b;
    }

    function max256(uint256 a, uint256 b) internal constant returns (uint256) {
        return a >= b ? a : b;
    }

    function min256(uint256 a, uint256 b) internal constant returns (uint256) {
        return a < b ? a : b;
    }

    function assert(bool assertion) internal {
        if (!assertion) {
            revert();
        }
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_receiver","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newBalance","type":"uint256"}],"name":"updateTokenBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"dev","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_receiver","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"_owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_receiver","type":"address"},{"name":"_value","type":"uint256"}],"name":"safeWithdrawal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newRate","type":"uint256"}],"name":"changePayRate","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"value","type":"uint256"},{"indexed":false,"name":"data","type":"bytes"}],"name":"Transfer","type":"event"}]

  Contract Creation Code Switch To Opcodes View
60606040526040805190810160405280601481526020017f44756e61746f6e204d65746163757272656e63790000000000000000000000008152506000908051906020019062000051929190620002a2565b506012600160006101000a81548160ff021916908360ff1602179055506040805190810160405280600481526020017f4d4554410000000000000000000000000000000000000000000000000000000081525060029080519060200190620000bb929190620002a2565b5073c96cfb18c39dc02fba229b6ea698b1ad5576df4c600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550609c6005556301406f4060075534156200012a57600080fd5b33600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506258804060086000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506200025760075460086000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546200026364010000000002620006b0176401000000009004565b60078190555062000351565b60006200028783831115620002926401000000000262000f56176401000000009004565b818303905092915050565b8015156200029f57600080fd5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e557805160ff191683800117855562000316565b8280016001018555821562000316579182015b8281111562000315578251825591602001919060010190620002f8565b5b50905062000325919062000329565b5090565b6200034e91905b808211156200034a57600081600090555060010162000330565b5090565b90565b610fa580620003616000396000f3006060604052600436106100d0576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde0314610294578063313ce567146103225780633eaaf86b1461035157806370a082311461037a578063882dd41e146103c757806391cca3db146103ea57806395d89b411461043f5780639d63848a146104cd578063a6f9dae1146104f6578063a9059cbb1461052f578063b2bdfa7b14610571578063be45fd62146105c6578063d34dd1f01461064b578063da9c87fa1461068d575b6100d8610f65565b6000806000341115156100ea57600080fd5b670de0b6b3a7640000348115156100fd57fe5b0491508160068190555060055482029050806007541015151561011f57600080fd5b61012b600754826106b0565b60078190555061017a600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054826106c9565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c1683866040518083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610254578082015181840152602081019050610239565b50505050905090810190601f1680156102815780820380516001836020036101000a031916815260200191505b50935050505060405180910390a3505050005b341561029f57600080fd5b6102a76106e7565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102e75780820151818401526020810190506102cc565b50505050905090810190601f1680156103145780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561032d57600080fd5b610335610785565b604051808260ff1660ff16815260200191505060405180910390f35b341561035c57600080fd5b610364610798565b6040518082815260200191505060405180910390f35b341561038557600080fd5b6103b1600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061079e565b6040518082815260200191505060405180910390f35b34156103d257600080fd5b6103e860048080359060200190919050506107e7565b005b34156103f557600080fd5b6103fd610858565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561044a57600080fd5b61045261087e565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610492578082015181840152602081019050610477565b50505050905090810190601f1680156104bf5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156104d857600080fd5b6104e061091c565b6040518082815260200191505060405180910390f35b341561050157600080fd5b61052d600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610926565b005b341561053a57600080fd5b61056f600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506109c6565b005b341561057c57600080fd5b610584610bdb565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156105d157600080fd5b610649600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610c01565b005b341561065657600080fd5b61068b600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610e0e565b005b341561069857600080fd5b6106ae6004808035906020019091905050610ee3565b005b60006106be83831115610f56565b818303905092915050565b60008082840190506106dd84821015610f56565b8091505092915050565b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561077d5780601f106107525761010080835404028352916020019161077d565b820191906000526020600020905b81548152906001019060200180831161076057829003601f168201915b505050505081565b600160009054906101000a900460ff1681565b60075481565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561084357600080fd5b61084f600754826106c9565b60078190555050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109145780601f106108e957610100808354040283529160200191610914565b820191906000526020600020905b8154815290600101906020018083116108f757829003601f168201915b505050505081565b6000600754905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561098257600080fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006109d0610f65565b82600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410151515610a1e57600080fd5b833b9150610a34610a2e3361079e565b846106b0565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610ac0600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054846106c9565b600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c1685846040518083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610b9a578082015181840152602081019050610b7f565b50505050905090810190601f168015610bc75780820380516001836020036101000a031916815260200191505b50935050505060405180910390a350505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600082600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410151515610c5157600080fd5b833b9050610c67610c613361079e565b846106b0565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610cf3600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054846106c9565b600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c1685856040518083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610dcd578082015181840152602081019050610db2565b50505050905090810190601f168015610dfa5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a350505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e6c57600080fd5b670de0b6b3a7640000820290503073ffffffffffffffffffffffffffffffffffffffff1631670de0b6b3a76400008202101515610ea857600080fd5b8273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148015610f41575060008110155b1515610f4c57600080fd5b8060058190555050565b801515610f6257600080fd5b50565b6020604051908101604052806000815250905600a165627a7a723058201351dc91cfdbd16f388e49f1b8455e86641fcc374a18fdf43924d49c3ad539a50029

   Swarm Source:
bzzr://1351dc91cfdbd16f388e49f1b8455e86641fcc374a18fdf43924d49c3ad539a5

 

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.