Sponsored:   Color - Revolutionizing the Dapp Ecosystem, Bounty & Airdrop, Get 240,000 COL NOW!
 Latest 25 txns from a total Of 31242 transactions

TxHash Age From To Value [TxFee]
0xfcc5f6c5aaf196e40818561384007af11e0e912d17be1594f9a1edcf8c4868851 hr 33 mins ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0xb9bfe492dc4c5cc5c2350e8ae479e29c4c0d6cd96c468fcd4cd301128aafa3187 hrs 32 mins ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x98429829a053e80cfdfa567df6b7788fb1897ddf7a35b09816242d9c666bd0b313 hrs 23 mins ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x8551785264d2c6de82c3a43c3a8ad5f2452cd06d7d5acaecae76033f06dcb21a19 hrs 21 mins ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0xf4aa8cd3666a1b6d222b31d45e66b2aef9b8c9e5bc98be89ab10fa4b4808b6431 day 1 hr ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0xad8879b9386b5e66d489d8ebe43b22ed93d871286694beaa8dc3b9276282d60c1 day 7 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0xdb75ff83e5adab8e704767f94b89ce454cdd2c59d1d6ea13ace16ec7d65f3b8c1 day 13 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x082226ab70cf5fc4a8d7281c78f881daa3fa078056bbe75f5cf806c8fdf281251 day 19 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0xb60f8932e98e5c8d9641e19dea9d4f4cedb8cd8235b9e01cd887f1dee1cab52f2 days 1 hr ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x7fc5d7a1a1a0adb3125df9bf8c642f30df4bd050781945d69a95ef33acd4fa0d2 days 7 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x35127405d51f1aa940e55469f8141a26bcaf15022df5a4f1ac5acf02b5f635582 days 13 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x971150630e8bbef41c12086173c4ecb1dc5c039c03bcd7bf16cbe7aab246eb652 days 19 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0xd3395dc8aa181151f1713d43af8b66cf9157e02b8d1c7113b344a5abf24e9a8e3 days 1 hr ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x386b896bc24c4d21eb02ac0da743fb63c75aaf809a41c54e75df619072371f943 days 7 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x6d12817067e6c6b7e4cfa68f5441180ca8e8f854b6b6cabac1ec51958693a4843 days 10 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x4e3d4398c25204d50ef64fabe6fdd183b3877c78001996a6ce6805f43f96bbb84 days 7 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0xffd9a3ac68e6893a27476b5e24c28e96fe2d006f08098556cf6b16ddab00f78b4 days 13 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x9c469896ea3abb12ffcc67bfd1dc93c9c42cbf990040bf9316f4ff4939b6a79e4 days 19 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x7b05b28aaf83fccef87cfadc705c347d9e2ca3f61ee3768051ccdb7bf1d9403f5 days 1 hr ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x63d229063aa64a5b159d3f9eb53219d760ed7c2023099d04bbf320fc72b518745 days 7 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x411ae41f901bd13d12c6c81288a68dc84be9368ecd3b9c49e9c96e07a73046155 days 19 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x3a24040b16e31e783202c2a9c93861297262638c9daf029b09ec582d9a5f8fd56 days 1 hr ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x8ceace200900e14249da4e239d930afcc87f38ef74852e5e8c9f5fad53bdf5236 days 7 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0x193e8519c2b07fa979ec1c8cc4863f3ca946fa3e52c53908ae16cf7144f78d556 days 13 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
0xffdad01c203f5eabd028d9af41d67db3f792e654af0ab5f11e7704e5360f82cf6 days 19 hrs ago0x05ba800190f2e00a5bbdc7d1725a9b88c30be70a  IN   0xe3fedaecd47aa8eab6b23227b0ee56f092c967a90 Ether0.0000960128
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The compiled contract might be susceptible to NestedArrayFunctionCallDecoder (medium-severity), ZeroFunctionSelector (very low-severity), DelegateCallReturnValue (low-severity) Solidity compiler bugs.

Contract Source Code Verified (Exact match)
Contract Name: PrimasToken
Compiler Version: v0.4.14+commit.c2215d46
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.14;


// https://github.com/ethereum/wiki/wiki/Standardized_Contract_APIs#transferable-fungibles-see-erc-20-for-the-latest


contract ERC20Token {
    // Triggered when tokens are transferred.
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    // Triggered whenever approve(address _spender, uint256 _value) is called.
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
    
    // Get the total token supply
    function totalSupply() constant returns (uint256 supply);
    
    // Get the account `balance` of another account with address `_owner`
    function balanceOf(address _owner) constant returns (uint256 balance);

    // Send `_value` amount of tokens to address `_to`
    function transfer(address _to, uint256 _value) returns (bool success);
    
    // Send `_value` amount of tokens from address `_from` to address `_to`
    // The `transferFrom` method is used for a withdraw workflow, allowing contracts to send tokens on your behalf, 
    // for example to "deposit" to a contract address and/or to charge fees in sub-currencies; 
    // the command should fail unless the `_from` account has deliberately authorized the sender of the message 
    // via some mechanism; we propose these standardized APIs for `approval`:
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
    
    // Allow _spender to withdraw from your account, multiple times, up to the _value amount.
    // If this function is called again it overwrites the current allowance with _value.
    function approve(address _spender, uint256 _value) returns (bool success);
    
    // Returns the amount which _spender is still allowed to withdraw from _owner
    function allowance(address _owner, address _spender) constant returns (uint256 remaining);
}

contract PrimasToken is ERC20Token {
    address public initialOwner;
    uint256 public supply   = 100000000 * 10 ** 18;  // 100, 000, 000
    string  public name     = 'Primas';
    uint8   public decimals = 18;
    string  public symbol   = 'PST';
    string  public version  = 'v0.1';
    bool    public transfersEnabled = true;
    uint    public creationBlock;
    uint    public creationTime;
    
    mapping (address => uint256) balance;
    mapping (address => mapping (address => uint256)) m_allowance;
    mapping (address => uint) jail;

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);

    function PrimasToken() {
        initialOwner        = msg.sender;
        balance[msg.sender] = supply;
        creationBlock       = block.number;
        creationTime        = block.timestamp;
    }

    function balanceOf(address _account) constant returns (uint) {
        return balance[_account];
    }

    function totalSupply() constant returns (uint) {
        return supply;
    }

    function transfer(address _to, uint256 _value) returns (bool success) {
        // `revert()` | `throw`
        //      http://solidity.readthedocs.io/en/develop/control-structures.html#error-handling-assert-require-revert-and-exceptions
        //      https://ethereum.stackexchange.com/questions/20978/why-do-throw-and-revert-create-different-bytecodes/20981
        if (!transfersEnabled) revert();
        if ( jail[msg.sender] >= block.timestamp ) revert();
        
        return doTransfer(msg.sender, _to, _value);
    }

    function transferFrom(address _from, address _to, uint256 _value) returns (bool) {
        if (!transfersEnabled) revert();
        if ( jail[msg.sender] >= block.timestamp || jail[_to] >= block.timestamp || jail[_from] >= block.timestamp ) revert();
            
        if (allowance(_from, msg.sender) < _value) return false;
        
        m_allowance[_from][msg.sender] -= _value;
        
        if ( !(doTransfer(_from, _to, _value)) ) {
            m_allowance[_from][msg.sender] += _value;
            return false;
        } else {
            return true;
        }
    }

    function doTransfer(address _from, address _to, uint _value) internal returns (bool success) {
        if (balance[_from] >= _value && balance[_to] + _value >= balance[_to]) {
            balance[_from] -= _value;
            balance[_to] += _value;
            Transfer(_from, _to, _value);
            return true;
        } else {
            return false;
        }
    }
    
    function approve(address _spender, uint256 _value) returns (bool success) {
        if (!transfersEnabled) revert();
        if ( jail[msg.sender] >= block.timestamp || jail[_spender] >= block.timestamp ) revert();

        // https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
        if ( (_value != 0) && (allowance(msg.sender, _spender) != 0) ) revert();
        
        m_allowance[msg.sender][_spender] = _value;

        Approval(msg.sender, _spender, _value);

        return true;
    }
    
    function allowance(address _owner, address _spender) constant returns (uint256) {
        if (!transfersEnabled) revert();

        return m_allowance[_owner][_spender];
    }
    
    function enableTransfers(bool _transfersEnabled) returns (bool) {
        if (msg.sender != initialOwner) revert();
        transfersEnabled = _transfersEnabled;
        return transfersEnabled;
    }

    function catchYou(address _target, uint _timestamp) returns (uint) {
        if (msg.sender != initialOwner) revert();
        if (!transfersEnabled) revert();

        jail[_target] = _timestamp;

        return jail[_target];
    }

}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"supply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"creationBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"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,"type":"function"},{"constant":true,"inputs":[],"name":"initialOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_timestamp","type":"uint256"}],"name":"catchYou","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"transfersEnabled","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"creationTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_transfersEnabled","type":"bool"}],"name":"enableTransfers","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]

  Contract Creation Code Switch To Opcodes View
60606040526a52b7d2dcc80cd2e400000060015560408051908101604052600681527f5072696d617300000000000000000000000000000000000000000000000000006020820152600290805161005a92916020019061014d565b506003805460ff1916601217905560408051908101604052600381527f5053540000000000000000000000000000000000000000000000000000000000602082015260049080516100af92916020019061014d565b5060408051908101604052600481527f76302e3100000000000000000000000000000000000000000000000000000000602082015260059080516100f792916020019061014d565b506006805460ff19166001179055341561011057600080fd5b5b60008054600160a060020a03191633600160a060020a03169081178255600154908252600960205260409091205543600755426008555b6101ed565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061018e57805160ff19168380011785556101bb565b828001600101855582156101bb579182015b828111156101bb5782518255916020019190600101906101a0565b5b506101c89291506101cc565b5090565b6101ea91905b808211156101c857600081556001016101d2565b5090565b90565b610b55806101fc6000396000f300606060405236156100ee5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663047fc9aa81146100f357806306fdde0314610118578063095ea7b3146101a357806317634514146101d957806318160ddd146101fe57806323b872dd1461022357806329ba7bb21461025f578063313ce5671461028e57806354fd4d50146102b757806370a082311461034257806395d89b4114610373578063a9059cbb146103fe578063b423c31e14610434578063bef97c8714610468578063d8270dce1461048f578063dd62ed3e146104b4578063f41e60c5146104eb575b600080fd5b34156100fe57600080fd5b610106610517565b60405190815260200160405180910390f35b341561012357600080fd5b61012b61051d565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101685780820151818401525b60200161014f565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101ae57600080fd5b6101c5600160a060020a03600435166024356105bb565b604051901515815260200160405180910390f35b34156101e457600080fd5b6101066106a5565b60405190815260200160405180910390f35b341561020957600080fd5b6101066106ab565b60405190815260200160405180910390f35b341561022e57600080fd5b6101c5600160a060020a03600435811690602435166044356106b2565b604051901515815260200160405180910390f35b341561026a57600080fd5b6102726107cc565b604051600160a060020a03909116815260200160405180910390f35b341561029957600080fd5b6102a16107db565b60405160ff909116815260200160405180910390f35b34156102c257600080fd5b61012b6107e4565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101685780820151818401525b60200161014f565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561034d57600080fd5b610106600160a060020a0360043516610882565b60405190815260200160405180910390f35b341561037e57600080fd5b61012b6108a1565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101685780820151818401525b60200161014f565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561040957600080fd5b6101c5600160a060020a036004351660243561093f565b604051901515815260200160405180910390f35b341561043f57600080fd5b610106600160a060020a036004351660243561098c565b60405190815260200160405180910390f35b341561047357600080fd5b6101c56109dd565b604051901515815260200160405180910390f35b341561049a57600080fd5b6101066109e6565b60405190815260200160405180910390f35b34156104bf57600080fd5b610106600160a060020a03600435811690602435166109ec565b60405190815260200160405180910390f35b34156104f657600080fd5b6101c56004351515610a2e565b604051901515815260200160405180910390f35b60015481565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105b35780601f10610588576101008083540402835291602001916105b3565b820191906000526020600020905b81548152906001019060200180831161059657829003601f168201915b505050505081565b60065460009060ff1615156105cf57600080fd5b600160a060020a0333166000908152600b602052604090205442901015806106105750600160a060020a0383166000908152600b6020526040902054429010155b1561061a57600080fd5b8115801590610631575061062e33846109ec565b15155b1561063b57600080fd5b600160a060020a033381166000818152600a6020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60075481565b6001545b90565b60065460009060ff1615156106c657600080fd5b600160a060020a0333166000908152600b602052604090205442901015806107075750600160a060020a0383166000908152600b6020526040902054429010155b8061072b5750600160a060020a0384166000908152600b6020526040902054429010155b1561073557600080fd5b8161074085336109ec565b101561074e575060006107c4565b600160a060020a038085166000908152600a602090815260408083203390941683529290522080548390039055610786848484610a64565b15156107c05750600160a060020a038084166000908152600a602090815260408083203390941683529290529081208054830190556107c4565b5060015b5b9392505050565b600054600160a060020a031681565b60035460ff1681565b60058054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105b35780601f10610588576101008083540402835291602001916105b3565b820191906000526020600020905b81548152906001019060200180831161059657829003601f168201915b505050505081565b600160a060020a0381166000908152600960205260409020545b919050565b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105b35780601f10610588576101008083540402835291602001916105b3565b820191906000526020600020905b81548152906001019060200180831161059657829003601f168201915b505050505081565b60065460009060ff16151561095357600080fd5b600160a060020a0333166000908152600b602052604090205442901061097857600080fd5b610983338484610a64565b90505b92915050565b6000805433600160a060020a039081169116146109a857600080fd5b60065460ff1615156109b957600080fd5b50600160a060020a0382166000908152600b60205260409020819055805b92915050565b60065460ff1681565b60085481565b60065460009060ff161515610a0057600080fd5b50600160a060020a038083166000908152600a60209081526040808320938516835292905220545b92915050565b6000805433600160a060020a03908116911614610a4a57600080fd5b506006805460ff1916821515179081905560ff165b919050565b600160a060020a038316600090815260096020526040812054829010801590610aa75750600160a060020a03831660009081526009602052604090205482810110155b15610b1957600160a060020a038085166000818152600960205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016107c4565b5060006107c4565b5b93925050505600a165627a7a72305820fcd8382943838a088c331b1918941776ad3ee2e448eabaf69efa3b41161f2f7c0029

   Swarm Source:
bzzr://fcd8382943838a088c331b1918941776ad3ee2e448eabaf69efa3b41161f2f7c

 

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.