Sponsored Link:   ARNA Genomics - FIRST BLOCKCHAIN BIOTECH ECOSYSTEM. Join ICO Now!
Contract Overview
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 210 txns
  Latest 25 txns from a total Of 210 transactions View All

TxHash Age From To Value [TxFee]
0x45e32c1ed40dcbc532ab387a8f782797c0a7a1dc49a8ad6605240bcf8209298f68 days 26 mins ago0xd2b8f17fa226992bf5bcc36e3be6f47f319ffadd  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00 Ether0.00052479
0x4e716d56023183bc5a7da9ca035ac60564d43f4d2c4a7e34ccfa811712b2634b68 days 1 hr ago0xd2b8f17fa226992bf5bcc36e3be6f47f319ffadd  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00 Ether0.0011086
0x10bd6615117080bda5360de77ef4a84e672008dc2601abe9d6acad5faa7fe48768 days 2 hrs ago0xd2b8f17fa226992bf5bcc36e3be6f47f319ffadd  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00 Ether0.00020215
0x0c0ec2949776d7732960a75a253a7501d74392438de90428d584c592550beeac68 days 2 hrs ago0xd2b8f17fa226992bf5bcc36e3be6f47f319ffadd  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00 Ether0.000443828
0x4719f58cd9cfb55c5e27e41ad59b72c2e7e1ccb0f9788ba0f153975699536be568 days 2 hrs ago0xd2b8f17fa226992bf5bcc36e3be6f47f319ffadd  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00 Ether0.00088946
0xfb3206c28482feb52e70188a85df52b0a77eb25eab978d1cd7103ab7b406b45c68 days 3 hrs ago0xd2b8f17fa226992bf5bcc36e3be6f47f319ffadd  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00 Ether0.00116403
0x195381e24247be8dcce3421d618fedd008339d3d4ca33b0a8982bf608bfd163868 days 6 hrs ago0x372fcf479dcc8c6759588e6d50724124e64c8042  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.255 Ether0.000985551
0x3051505b0ee537ced6f074dc40492e9122f4d1144f3e4afbdd486ce9da3dee2f68 days 6 hrs ago0x372fcf479dcc8c6759588e6d50724124e64c8042  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.32 Ether0.000651
0xde6b685bcb8d6def2df0596ee23ead5b90d5b7c3e7d7f7a69cbda633b5996c6568 days 6 hrs ago0x372fcf479dcc8c6759588e6d50724124e64c8042  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.27 Ether0.001454861
0xbc9b8fae24f4eab7715abc82872a3bf88d230d5ebd4097cbd08d77e267fe644a68 days 7 hrs ago0x372fcf479dcc8c6759588e6d50724124e64c8042  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.28 Ether0.000441
0x906a9b2a608310c87db86ea462c3083686d16428017f4e058ffe3dac9650af3e68 days 10 hrs ago0x981f4cb4e0f3f5ef9c3c2e487ea28bc7e7cbfdc2  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.175 Ether0.001300551
0x87d8e5b5a6cff40c728daa94d9010726089ba4bffa64dc58a4cd236f8f3538ad68 days 14 hrs ago0xbd19115fe6077ba3fd9bcc7daf39c458f4ef6265  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba01.51686715000003 Ether0.00093862
0x0c233985145e238b7cde3ef8950c81478a32c5814e23d1f9fdff526bdf1dd37968 days 14 hrs ago0xbd19115fe6077ba3fd9bcc7daf39c458f4ef6265  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.1 Ether0.00123862
0xf5fc63d61aef9a79fadbc97ab0d28055d49c602758930614510d5fb4c5a7f63268 days 19 hrs ago0xb7aebcffc3486a9280fae0ce3ccf98d5ef5f9569  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.38 Ether0.001486344
0xb618bc4c9bc0d8bbc1c3e41bf6b405b49ef269bf8a3c5d1429680c70bd180cb468 days 20 hrs ago0xb7aebcffc3486a9280fae0ce3ccf98d5ef5f9569  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.405 Ether0.00084
0xeb3d084b55b0dd377fab4f83d070a5dd994233e76847d56e9cc5c8047c92b10b68 days 20 hrs ago0xb7aebcffc3486a9280fae0ce3ccf98d5ef5f9569  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.4055 Ether0.00084
0x24541c6a50010dbefd86bf9bda70007707f3bdc2eb39907d19d9e8344dfc3a4468 days 21 hrs ago0xb7aebcffc3486a9280fae0ce3ccf98d5ef5f9569  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.406 Ether0.000606669
0xf1ef61cd9cf80d7aabc6d7e19f209b83f3bc4dc5ee1ce8b9d0e7247deda9823b68 days 23 hrs ago0x11e66d81f3a9ca88e3695d422fda9b5227927803  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba01.4 Ether0.00309655
0xce04ca0c51947116b47017288066d9c08c7f5bbcb8b6c16b20b9ac8048971eda69 days 2 hrs ago0x963eba1127aea03287f755329eebd482e8805d7d  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.32 Ether0.001300551
0x3ace39feada1385ea2339dee7df91aafbc1e7cd1d2d552430bb91c95525a621d69 days 2 hrs ago0x9398b9993e183519595b01236beee983433b12c6  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.204 Ether0.001300551
0xbc0427bc594deb27a9e80159656f692a9560cced2ad6e9fb2a1d711a1b97b8c969 days 5 hrs ago0xbbfefceb758b221199179f6dd1eec9fa74740217  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.168 Ether0.001300551
0x7e82e2eb7cf65a20b5d2c090ca876ce8319a4527f441518570079561785b584f69 days 5 hrs ago0xd5f2ee63b8d5bf3e44110b733dc7796270cc60a2  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.11 Ether0.001300551
0x93e1824f8305fb891d1413035e1038fa64c032c71e9bbd1564922972d7ae642769 days 7 hrs ago0xae7eff5198fd478901dae7a42c43c74e8f8995e3  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.4 Ether0.000061931
0x41a98e6c935befb931f018100413a2475c0c23e096197c1e2a24b91622768de669 days 9 hrs ago0x9832d65876dad7c8b84b95a42cd751f7f5665970  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.031 Ether0.000606669
0xd51e90f550725a115048a38a3e16a9ea4598ec7ba78d753d1cc11facf3a0bba969 days 9 hrs ago0x9832d65876dad7c8b84b95a42cd751f7f5665970  IN   0x0174312e4aef436606ffdeb4d05d22fb68f36ba00.032 Ether0.000441
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
  Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0x0c0ec2949776d7732960a75a253a7501d74392438de90428d584c592550beeac427036668 days 2 hrs ago0x0174312e4aef436606ffdeb4d05d22fb68f36ba00xd2b8f17fa226992bf5bcc36e3be6f47f319ffadd259.8115062932104534 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity), DelegateCallReturnValue (low-severity), ECRecoverMalformedInput (medium-severity) Solidity compiler bugs.

Contract Source Code Verified
Contract Name: LatiumSeller
Compiler Version: v0.4.13+commit.fb4cb1a
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.13;

contract Latium {
    string public constant name = "Latium";
    string public constant symbol = "LAT";
    uint8 public constant decimals = 16;
    uint256 public constant totalSupply =
        30000000 * 10 ** uint256(decimals);

    // owner of this contract
    address public owner;

    // balances for each account
    mapping (address => uint256) public balanceOf;

    // triggered when tokens are transferred
    event Transfer(address indexed _from, address indexed _to, uint _value);

    // constructor
    function Latium() {
        owner = msg.sender;
        balanceOf[owner] = totalSupply;
    }

    // transfer the balance from sender's account to another one
    function transfer(address _to, uint256 _value) {
        // prevent transfer to 0x0 address
        require(_to != 0x0);
        // sender and recipient should be different
        require(msg.sender != _to);
        // check if the sender has enough coins
        require(_value > 0 && balanceOf[msg.sender] >= _value);
        // check for overflows
        require(balanceOf[_to] + _value > balanceOf[_to]);
        // subtract coins from sender's account
        balanceOf[msg.sender] -= _value;
        // add coins to recipient's account
        balanceOf[_to] += _value;
        // notify listeners about this transfer
        Transfer(msg.sender, _to, _value);
    }
}

contract LatiumSeller {
    address private constant _latiumAddress = 0xBb31037f997553BEc50510a635d231A35F8EC640;
    Latium private constant _latium = Latium(_latiumAddress);

    // amount of Ether collected from buyers and not withdrawn yet
    uint256 private _etherAmount = 0;

    // sale settings
    uint256 private constant _tokenPrice = 10 finney; // 0.01 Ether
    uint256 private _minimumPurchase =
        10 * 10 ** uint256(_latium.decimals()); // 10 Latium

    // owner of this contract
    address public owner;

    // constructor
    function LatiumSeller() {
        owner = msg.sender;
    }

    function tokenPrice() constant returns(uint256 tokenPrice) {
        return _tokenPrice;
    }

    function minimumPurchase() constant returns(uint256 minimumPurchase) {
        return _minimumPurchase;
    }

    // function to get current Latium balance of this contract
    function _tokensToSell() private returns (uint256 tokensToSell) {
        return _latium.balanceOf(address(this));
    }

    // function without name is the default function that is called
    // whenever anyone sends funds to a contract
    function () payable {
        // we shouldn't sell tokens to their owner
        require(msg.sender != owner && msg.sender != address(this));
        // check if we have tokens to sell
        uint256 tokensToSell = _tokensToSell();
        require(tokensToSell > 0);
        // calculate amount of tokens that can be bought
        // with this amount of Ether
        // NOTE: make multiplication first; otherwise we can lose
        // fractional part after division
        uint256 tokensToBuy =
            msg.value * 10 ** uint256(_latium.decimals()) / _tokenPrice;
        // check if user's purchase is above the minimum
        require(tokensToBuy >= _minimumPurchase);
        // check if we have enough tokens to sell
        require(tokensToBuy <= tokensToSell);
        _etherAmount += msg.value;
        _latium.transfer(msg.sender, tokensToBuy);
    }

    // functions with this modifier can only be executed by the owner
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }

    // function to withdraw Ether to owner's account
    function withdrawEther(uint256 _amount) onlyOwner {
        if (_amount == 0) {
            // withdraw all available Ether
            _amount = _etherAmount;
        }
        require(_amount > 0 && _etherAmount >= _amount);
        _etherAmount -= _amount;
        msg.sender.transfer(_amount);
    }

    // function to withdraw Latium to owner's account
    function withdrawLatium(uint256 _amount) onlyOwner {
        uint256 availableLatium = _tokensToSell();
        require(availableLatium > 0);
        if (_amount == 0) {
            // withdraw all available Latium
            _amount = availableLatium;
        }
        require(availableLatium >= _amount);
        _latium.transfer(msg.sender, _amount);
    }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenPrice","outputs":[{"name":"tokenPrice","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"minimumPurchase","outputs":[{"name":"minimumPurchase","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"withdrawLatium","outputs":[],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"}]

  Contract Creation Code Switch To Opcodes View
60606040526000805573bb31037f997553bec50510a635d231a35f8ec640600160a060020a031663313ce5676000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561007b57600080fd5b6102c65a03f1151561008c57600080fd5b5050506040518051905060ff16600a0a600a0260015534156100ad57600080fd5b5b60028054600160a060020a03191633600160a060020a03161790555b5b610498806100da6000396000f300606060405236156100515763ffffffff60e060020a6000350416633bed33ce81146101d55780637ff9b596146101ed5780638da5cb5b14610212578063aa2de6c314610241578063f22513a714610266575b6101d35b600254600090819033600160a060020a0390811691161480159061008b575030600160a060020a031633600160a060020a031614155b151561009657600080fd5b61009e61027e565b9150600082116100ad57600080fd5b662386f26fc1000073bb31037f997553bec50510a635d231a35f8ec64063313ce5676000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561010657600080fd5b6102c65a03f1151561011757600080fd5b5050506040518051905060ff16600a0a340281151561013257fe5b049050600154811015151561014657600080fd5b8181111561015357600080fd5b600080543401905573bb31037f997553bec50510a635d231a35f8ec64063a9059cbb338360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b15156101ba57600080fd5b6102c65a03f115156101cb57600080fd5b5050505b5050565b005b34156101e057600080fd5b6101d3600435610301565b005b34156101f857600080fd5b610200610384565b60405190815260200160405180910390f35b341561021d57600080fd5b610225610390565b604051600160a060020a03909116815260200160405180910390f35b341561024c57600080fd5b61020061039f565b60405190815260200160405180910390f35b341561027157600080fd5b6101d36004356103a6565b005b600073bb31037f997553bec50510a635d231a35f8ec6406370a0823130836040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156102e157600080fd5b6102c65a03f115156102f257600080fd5b50505060405180519150505b90565b60025433600160a060020a0390811691161461031c57600080fd5b80151561032857506000545b60008111801561033a57508060005410155b151561034557600080fd5b600080548290039055600160a060020a03331681156108fc0282604051600060405180830381858888f19350505050151561037f57600080fd5b5b5b50565b662386f26fc100005b90565b600254600160a060020a031681565b6001545b90565b60025460009033600160a060020a039081169116146103c457600080fd5b6103cc61027e565b9050600081116103db57600080fd5b8115156103e6578091505b818110156103f357600080fd5b73bb31037f997553bec50510a635d231a35f8ec64063a9059cbb338460405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b15156101ba57600080fd5b6102c65a03f115156101cb57600080fd5b5050505b5b50505600a165627a7a7230582099d8206dbdf6789ce2495debe4b5d365d96a186121bad0ed6a8b090c491bcca50029

   Swarm Source:
bzzr://99d8206dbdf6789ce2495debe4b5d365d96a186121bad0ed6a8b090c491bcca5
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.