Latest 7 txns

TxHash Age From To Value [TxFee]
0xb3c24a789a2441eee8f9f0596005a051913558e464704d019547045d9248706d163 days 5 hrs ago0x00360d2b7d240ec0643b6d819ba81a09e40e5bcd  IN   0xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether0.000052198
0xa3d06d780e36c617f8e486d76a9839fbbd5d15d18e73305ce0a51213f307276a163 days 6 hrs ago0x00360d2b7d240ec0643b6d819ba81a09e40e5bcd  IN   0xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether0.000051878
0xf02191399e234562df6cfa7b77324ef0761cec1e4f7d0d110e14dcb6427f39d0176 days 7 hrs ago0xd22abf44e2e2b3a9da3b84383c894f936925333c  IN   0xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether0.0009164
0xcfff1dd79abac8201ca71856fdcac6a36b100429aa3984873b805cc762bf9696176 days 12 hrs ago0xd22abf44e2e2b3a9da3b84383c894f936925333c  IN   0xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether0.00027492
0x3715f39a778b460dcf5578af1ab78d20c4d90526142998939f06ea59efbcdd71177 days 5 hrs ago0xd22abf44e2e2b3a9da3b84383c894f936925333c  IN   0xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether0.00091512
0x5e8cbc52698434a2c8aa2f8ac5350d0c3cc9b31a1872c4c5484e172c5c2bb1dc177 days 6 hrs ago0xd22abf44e2e2b3a9da3b84383c894f936925333c  IN   0xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether0.0006873
0x0839a36223b606df276c9f069c4623a95808bbd09b353fae7a9ca8b232df6043178 days 10 hrs ago0x00360d2b7d240ec0643b6d819ba81a09e40e5bcd  IN    Contract Creation0 Ether0.0017545983
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 16 Internal Transactions

ParentTxHash Block Age From To Value
0xcac4b823ef941933bc8884055f8ff981213b916e41e166e7628ed00e96fe059d8468228176 days 7 hrs ago0x243a628336c776323b711881e76d4db9b94e8c220xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0xcac4b823ef941933bc8884055f8ff981213b916e41e166e7628ed00e96fe059d8468228176 days 7 hrs ago0x243a628336c776323b711881e76d4db9b94e8c220xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x223d613c57685455f9424a4b6f966e7fcb988817c0d5fd3b3c4a918bd9a8cbe78468033176 days 7 hrs ago0xd04dd4404b194fbcaf765c81ab39552e957eba080xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x8996304ef4470a64c77d31d1abecf34ef8991d286cff0c58142fb86de2afa6a58465748176 days 12 hrs ago0xbf05bc4c0fe31fdc0d7f792c68963d30bdd658d30xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x8996304ef4470a64c77d31d1abecf34ef8991d286cff0c58142fb86de2afa6a58465748176 days 12 hrs ago0xbf05bc4c0fe31fdc0d7f792c68963d30bdd658d30xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x82bedd39df3f9da40dc735ac5a283296f98f8255a46184f98a314a54e4b078a88465737176 days 12 hrs ago0x1cf843762046cf85ca8c53bdf774611d8df326350xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x1ca87208618814cea216a3a447fd421bf052960dde8cfe9965e1b53ed3862cdd8457772177 days 5 hrs ago0x0087756f099525950477ce7a42718a7ad41cb08d0xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x1ca87208618814cea216a3a447fd421bf052960dde8cfe9965e1b53ed3862cdd8457772177 days 5 hrs ago0x0087756f099525950477ce7a42718a7ad41cb08d0xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0xb8b5e31da05e1b8ad7ca5852e541b878245aa3ed85a14ae8aaa988d2742ebd278457759177 days 5 hrs ago0x68f3ca4a5b0011333b75fc1e15ba308e4a9c1e2c0xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x92f95446823f34380867c1047a82b15fe66d7d66e7d17893c4b240d266032ef38457249177 days 6 hrs ago0xd425ed956b09588ce5f27ce2ad158a6fa37e5bf30xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x92f95446823f34380867c1047a82b15fe66d7d66e7d17893c4b240d266032ef38457249177 days 6 hrs ago0xd425ed956b09588ce5f27ce2ad158a6fa37e5bf30xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x4993e2d1e3af2a67ab2edbed61f23121db1303fae3c95c4b9f561bb0016a8eff8457020177 days 6 hrs ago0x87778cea459dd456ebcb0c8b409c834bc6903baf0xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x1141bf7dbe02807dbb4ab7da5d0cd7b71208bcf4099075662495a32000b753248456905177 days 7 hrs ago0xe43b0e060fd26306e631c9194b3a16dc311d41b30xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x99e2f03ad4b4fb608cf9fb888414b91a413747f80674c5230e1c9bcf8921ab6d8454263177 days 12 hrs ago0x6ceb0e2c22c873732c673d3f7644421c8ef366100xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x125e66652597634241c92a54aed52393babac5da79e6be38839f33bd29daaad18446819178 days 3 hrs ago0x52e45419ee158eab45ff89c20870f52351c9e1310xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
0x759700728c3b6e9684d8458d9238ac4fd21ac5f3c4cab3286a98ece9f5d419358446725178 days 4 hrs ago0x371f8aa3fbc6bddccd1cb54629f645d88ec57c030xc12d4b9f760cf6ab7be966f2a2d3aa9645edea780 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Verified Source Code for Contract 0x31f7e02b09b4d6ab5d57a8f48ec06b288feb7ecb
Contract Name: PreminedAsset
Compiler Version: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimiser):  1



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.13;

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 DSMath {
    function add(uint x, uint y) internal pure returns (uint z) {
        require((z = x + y) >= x);
    }
    function sub(uint x, uint y) internal pure returns (uint z) {
        require((z = x - y) <= x);
    }
    function mul(uint x, uint y) internal pure returns (uint z) {
        require(y == 0 || (z = x * y) / y == x);
    }

    function min(uint x, uint y) internal pure returns (uint z) {
        return x <= y ? x : y;
    }
    function max(uint x, uint y) internal pure returns (uint z) {
        return x >= y ? x : y;
    }
    function imin(int x, int y) internal pure returns (int z) {
        return x <= y ? x : y;
    }
    function imax(int x, int y) internal pure returns (int z) {
        return x >= y ? x : y;
    }

    uint constant WAD = 10 ** 18;
    uint constant RAY = 10 ** 27;

    function wmul(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, y), WAD / 2) / WAD;
    }
    function rmul(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, y), RAY / 2) / RAY;
    }
    function wdiv(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, WAD), y / 2) / y;
    }
    function rdiv(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, RAY), y / 2) / y;
    }

    // This famous algorithm is called "exponentiation by squaring"
    // and calculates x^n with x as fixed-point and n as regular unsigned.
    //
    // It's O(log n), instead of O(n) for naive repeated multiplication.
    //
    // These facts are why it works:
    //
    //  If n is even, then x^n = (x^2)^(n/2).
    //  If n is odd,  then x^n = x * x^(n-1),
    //   and applying the equation for even x gives
    //    x^n = x * (x^2)^((n-1) / 2).
    //
    //  Also, EVM division is flooring and
    //    floor[(n-1) / 2] = floor[n / 2].
    //
    function rpow(uint x, uint n) internal pure returns (uint z) {
        z = n % 2 != 0 ? x : RAY;

        for (n /= 2; n != 0; n /= 2) {
            x = rmul(x, x);

            if (n % 2 != 0) {
                z = rmul(z, x);
            }
        }
    }
}

contract Asset is DSMath, ERC20Interface {

    // DATA STRUCTURES

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

    // PUBLIC METHODS

    /**
     * @notice Send `_value` tokens to `_to` from `msg.sender`
     * @dev Transfers sender's tokens to a given address
     * @dev Similar to transfer(address, uint, bytes), but without _data parameter
     * @param _to Address of token receiver
     * @param _value Number of tokens to transfer
     * @return Returns success of function call
     */
    function transfer(address _to, uint _value)
        public
        returns (bool success)
    {
        require(balances[msg.sender] >= _value); // sanity checks
        require(balances[_to] + _value >= balances[_to]);

        balances[msg.sender] = sub(balances[msg.sender], _value);
        balances[_to] = add(balances[_to], _value);
        emit Transfer(msg.sender, _to, _value);
        return true;
    }
    /// @notice Transfer `_value` tokens from `_from` to `_to` if `msg.sender` is allowed.
    /// @notice Restriction: An account can only use this function to send to itself
    /// @dev Allows for an approved third party to transfer tokens from one
    /// address to another. Returns success.
    /// @param _from Address from where tokens are withdrawn.
    /// @param _to Address to where tokens are sent.
    /// @param _value Number of tokens to transfer.
    /// @return Returns success of function call.
    function transferFrom(address _from, address _to, uint _value)
        public
        returns (bool)
    {
        require(_from != address(0));
        require(_to != address(0));
        require(_to != address(this));
        require(balances[_from] >= _value);
        require(allowed[_from][msg.sender] >= _value);
        require(balances[_to] + _value >= balances[_to]);
        // require(_to == msg.sender); // can only use transferFrom to send to self

        balances[_to] += _value;
        balances[_from] -= _value;
        allowed[_from][msg.sender] -= _value;

        emit Transfer(_from, _to, _value);
        return true;
    }

    /// @notice Allows `_spender` to transfer `_value` tokens from `msg.sender` to any address.
    /// @dev Sets approved amount of tokens for spender. Returns success.
    /// @param _spender Address of allowed account.
    /// @param _value Number of approved tokens.
    /// @return Returns success of function call.
    function approve(address _spender, uint _value) public returns (bool) {
        require(_spender != address(0));

        allowed[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

    // PUBLIC VIEW METHODS

    /// @dev Returns number of allowed tokens that a spender can transfer on
    /// behalf of a token owner.
    /// @param _owner Address of token owner.
    /// @param _spender Address of token spender.
    /// @return Returns remaining allowance for spender.
    function allowance(address _owner, address _spender)
        constant
        public
        returns (uint)
    {
        return allowed[_owner][_spender];
    }

    /// @dev Returns number of tokens owned by the given address.
    /// @param _owner Address of token owner.
    /// @return Returns balance of owner.
    function balanceOf(address _owner) constant public returns (uint) {
        return balances[_owner];
    }

    function totalSupply() view public returns (uint) {
        return _totalSupply;
    }
}

contract PreminedAsset is Asset {

    // Constructor fields
    uint public decimals;

    /// @notice Asset with 10 ** 28 of premined token given to msg.sender
    function PreminedAsset(uint _decimals) {
        decimals = _decimals;
        balances[msg.sender] = 10 ** uint256(28);
        _totalSupply = 10 ** uint256(28);
    }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","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":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"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":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_decimals","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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
608060405234801561001057600080fd5b5060405160208061053783398101604090815290516003553360009081526020819052206b204fce5e3e25026110000000908190556002556104e0806100576000396000f3006080604052600436106100745763ffffffff60e060020a600035041663095ea7b3811461007957806318160ddd146100b157806323b872dd146100d8578063313ce567146101025780633eaaf86b1461011757806370a082311461012c578063a9059cbb1461014d578063dd62ed3e14610171575b600080fd5b34801561008557600080fd5b5061009d600160a060020a0360043516602435610198565b604080519115158252519081900360200190f35b3480156100bd57600080fd5b506100c6610217565b60408051918252519081900360200190f35b3480156100e457600080fd5b5061009d600160a060020a036004358116906024351660443561021d565b34801561010e57600080fd5b506100c661034f565b34801561012357600080fd5b506100c6610355565b34801561013857600080fd5b506100c6600160a060020a036004351661035b565b34801561015957600080fd5b5061009d600160a060020a0360043516602435610376565b34801561017d57600080fd5b506100c6600160a060020a0360043581169060243516610449565b6000600160a060020a03831615156101af57600080fd5b336000818152600160209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60025490565b6000600160a060020a038416151561023457600080fd5b600160a060020a038316151561024957600080fd5b600160a060020a03831630141561025f57600080fd5b600160a060020a03841660009081526020819052604090205482111561028457600080fd5b600160a060020a03841660009081526001602090815260408083203384529091529020548211156102b457600080fd5b600160a060020a03831660009081526020819052604090205482810110156102db57600080fd5b600160a060020a0380841660008181526020818152604080832080548801905593881680835284832080548890039055600182528483203384528252918490208054879003905583518681529351929391926000805160206104958339815191529281900390910190a35060019392505050565b60035481565b60025481565b600160a060020a031660009081526020819052604090205490565b3360009081526020819052604081205482111561039257600080fd5b600160a060020a03831660009081526020819052604090205482810110156103b957600080fd5b336000908152602081905260409020546103d39083610474565b3360009081526020819052604080822092909255600160a060020a038516815220546103ff9083610484565b600160a060020a038416600081815260208181526040918290209390935580518581529051919233926000805160206104958339815191529281900390910190a350600192915050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b8082038281111561021157600080fd5b8082018281101561021157600080fd00ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820ec95b865169782b0818e6fdb3cd3f4c07c89df3ef330a11f96909b38ad17831400290000000000000000000000000000000000000000000000000000000000000012

   Swarm Source:
bzzr://ec95b865169782b0818e6fdb3cd3f4c07c89df3ef330a11f96909b38ad178314

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward