ETH Price: $1,975.48 (+0.67%)
 

More Info

Private Name Tags

Multichain Info

No addresses found
Age:30D
Reset Filter

Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Age:30D
Reset Filter

Advanced mode:
Parent Transaction Hash Method Block
From
To

There are no matching entries

Update your filters to view other transactions

View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BATSafe

Compiler Version
v0.4.10+commit.f0d539ae

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-05-30
*/

pragma solidity ^0.4.10;

contract Token {
    uint256 public totalSupply;
    function balanceOf(address _owner) constant returns (uint256 balance);
    function transfer(address _to, uint256 _value) returns (bool success);
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
    function approve(address _spender, uint256 _value) returns (bool success);
    function allowance(address _owner, address _spender) constant returns (uint256 remaining);
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}


/*  ERC 20 token */
contract StandardToken is Token {

    function transfer(address _to, uint256 _value) returns (bool success) {
      if (balances[msg.sender] >= _value && _value > 0) {
        balances[msg.sender] -= _value;
        balances[_to] += _value;
        Transfer(msg.sender, _to, _value);
        return true;
      } else {
        return false;
      }
    }

    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
      if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) {
        balances[_to] += _value;
        balances[_from] -= _value;
        allowed[_from][msg.sender] -= _value;
        Transfer(_from, _to, _value);
        return true;
      } else {
        return false;
      }
    }

    function balanceOf(address _owner) constant returns (uint256 balance) {
        return balances[_owner];
    }

    function approve(address _spender, uint256 _value) returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }

    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
      return allowed[_owner][_spender];
    }

    mapping (address => uint256) balances;
    mapping (address => mapping (address => uint256)) allowed;
}


// requires 133,650,000 BAT deposited here
contract BATSafe {
  mapping (address => uint256) allocations;
  uint256 public unlockDate;
  address public BAT;
  uint256 public constant exponent = 10**18;

  function BATSafe(address _BAT) {
    BAT = _BAT;
    unlockDate = now + 6 * 30 days;
    allocations[0xe0f6EF3D61255d1Bd7ad66987D2fBB3FE5Ee8Ea4] = 16000000;
    allocations[0xCB25966330044310ecD09634ea6B1f4190d5B10D] = 16000000;
    allocations[0xFf8e2295EF4Ad0db7aFaDC13743c227Bb0e82838] = 16000000;
    allocations[0x9Dc920118672c04645Eb2831A70d2aA1ccBF330c] = 16000000;
    allocations[0xb9FE2d16eBAD02Ba3A6f61F64e8506F1C80cec07] = 8000000;
    allocations[0x92C9304e826451a3Af0fc9f4d36Ae59920F80b0f] = 8000000;
    allocations[0x5cAe9Bc0C527f95CC6558D32EC5B931ad7328088] = 8000000;
    allocations[0xF94BE6b93432b39Bc1637FDD656740758736d935] = 4000000;
    allocations[0x4Fb65030536103EA718Fa37A3E05c76aDB3C5447] = 4000000;
    allocations[0x216C83DD2383e44cb9914C05aCd019dde429F201] = 2250000;
    allocations[0x460599DC0A5AF7b4bef0ee6fdDA23DBF8CC6cA70] = 2000000;
    allocations[0x06BdBDcCBeC95937b742c0EADf7B2f50c4f325C0] = 2000000;
    allocations[0x6eED129DD60251c7C839Bf0D161199a3A3FED959] = 2000000;
    allocations[0xAF6929A04651FE2fDa8eBBD18A6ed89ba6F7bb3b] = 2000000;
    allocations[0x74019652e7Bfe06e055f1424E8F695d85c5AdDDa] = 2000000;
    allocations[0x77D325161984D3A5835cfEB5dB4E6CF998904a84] = 2000000;
    allocations[0x7b28547b78e425AbaE8f472e2A77021e9b19B5ad] = 2000000;
    allocations[0xFF6Cb8161A55DB05F9B41F34F5A8B3dc1F1E1A7e] = 2000000;
    allocations[0x016078A5e18D9a2A4698e8623744556F09a9Ca15] = 2000000;
    allocations[0x5A471480d72D6a6Da75b7546D740F95387174c2D] = 2000000;
    allocations[0xb46De0168c02246C0C1C4Cf562E9003cBf01CdD7] = 2000000;
    allocations[0x9bbBD666B714C84764B1aE4012DD177526E63fB4] = 2000000;
    allocations[0xC6aD53B70d2cCEf579D0CC4a22Ed18a62ADD33b6] = 2000000;
    allocations[0x398aD5ed756C42758B33c4Ae36162E5C0cE787cE] = 2000000;
    allocations[0x4b93f57953D685F7241699a87F2464fA8B1b9bD9] = 2000000;
    allocations[0xFCdFdD838bAf60E53EAc5d86F3234854f7e0DDee] = 2000000;
    allocations[0x98949388D6c5e9B91a1F30e33595A5E6127036bE] = 2000000;
    allocations[0x7A5c1A532a89B50c84f9fFd7f915093f5C637081] = 700000;
    allocations[0x2cb8457Adde40aa7298C19Fa94426B94317C2744] = 700000;
  }

  function unlock() external {
    if(now < unlockDate) throw;
    uint256 entitled = allocations[msg.sender];
    allocations[msg.sender] = 0;
    if(!StandardToken(BAT).transfer(msg.sender, entitled * exponent)) throw;
  }

}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[],"name":"exponent","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"BAT","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"unlockDate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"unlock","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_BAT","type":"address"}],"payable":false,"type":"constructor"}]

6060604052341561000c57fe5b60405160208061066c83398101604052515b60028054600160a060020a031916600160a060020a0383161790554262ed4e00016001556000602081905262f424007fd41804d497a0b3bd3d05b9f5fd467547e7439e440ab668afca2cbcc79bd447038190557fd912ce8ee89a73f845f3d944b40038e5fa231eafb37f7d40fa1f97a88a7ab5938190557f9e6e39c6b50e79c3a6f6170933459b2c938a01c612c37a567dee2760c4f3bf968190557f67b46a13325908e218efb23fbb288211cda376b7991bfe435513a43383a2f03d55627a12007fbcc837779afece86686cd6afd490b946aab51de82483dbed78b5b8b652af9e2a8190557fb4bee64e4f65c574db7c601344fe3246e784d38d054be22b0b4591e198544f7c8190557f5a948c43d5ac13cdb1ff03574c72f04203732fc0f1b0c1b2d6af606c679fbf2655623d09007f5066e797f13a0b01087ac6926557325c00b0223c1647a0766c714c64863abb5a8190557fbda24eda4e0a6cf033b38214f6080b3076eb0be974d98ad2e4b9bd1bb1e673df55622255107f2be3a3607917aad72ff10d0691260532546604b5b22bc5f6e2fa0834062d3f4555621e84807f5fb4e904d8d263cefd8505ab6b75a4fcf90b732d85ff6f6d3f637b87b08b80798190557f09efe0aa926d12937524edc23eb45f810342ccda6e94ce700378878e300d82f28190557fa120c730c627e5baaed007be587e2aafb77deae579164c45ae413803428745d08190557fd54db9646fef0749c944d4e8fef167fcd79841c602830c70aaf156a8121059ef8190557fbd5a0582146087395bbd390ccaabd09d9dc1104619dab9b76f1cd6dabe4babdf8190557f957d90b7764113aa2ba916157a88a3befdeb98e0cbc9d928533abff49ad314348190557f89a7464ca7c98341c6eb46f4597e34953b4d035ef2f7e8f0d34edfa7173ef7848190557ff648a038e2b1f9667839a9bb5013b6ae2269f584d0550b598cd3341ef667641b8190557f3ea44dfd11e424706043576c8eac6a3bd573dc0220612ff4a3b0b40e929bc4098190557fffe677694d3a1798e9c1dcf68c940c3e4000fdd68351d1fd0bf3a23f5f4e61d08190557f0a89a92c7e88298129be555529f9d2c10bcf7ee51fdf791c7147d91fb0fef5ca8190557f1c65010da709488d82fc52554699170f86f4daac044058ddf54f5df509d2e3c18190557ff8be041917ef495c0a993522fdd098af03c06e2138e498102596857ec0b682a68190557fbad53679374b30dc2523a3a6ec2996683a804c6503dfb3fb7270a51501f26e648190557f32d5aa59672dfa18d2f05f87a037d2524c6ef94ebbc31ebfaef8b42cf1f0e57f8190557fd4cce34ea697b16431083cde5824c2f743eeb9e7070e9f6601a3ea061125f3008190557f1f5ef6c37e1130f4c5c0a64c0f8741afd4473f4857429a2c01ab1093b5352b6555620aae607fa7e7d02b2ffb9345ccb7b63609f11ac6516ee2ac6c0f755ddef0a8b6d6487ec6819055732cb8457adde40aa7298c19fa94426b94317c27449091527f83c05b357d2c7745adf609c2c85c9a9ef2545bf46aa400503d0ce5196e70a61e555b505b6101d9806104936000396000f300606060405263ffffffff60e060020a60003504166352f6ee5881146100425780635b7ab8911461006457806369ac572114610090578063a69df4b5146100b2575bfe5b341561004a57fe5b6100526100c4565b60408051918252519081900360200190f35b341561006c57fe5b6100746100d0565b60408051600160a060020a039092168252519081900360200190f35b341561009857fe5b6100526100df565b60408051918252519081900360200190f35b34156100ba57fe5b6100c26100e5565b005b670de0b6b3a764000081565b600254600160a060020a031681565b60015481565b60006001544210156100f75760006000fd5b50600160a060020a033381166000818152602081815260408083208054908490556002548251840185905282517fa9059cbb0000000000000000000000000000000000000000000000000000000081526004810196909652670de0b6b3a76400008202602487015291519095919091169363a9059cbb9360448083019493928390030190829087803b151561018857fe5b60325a03f1151561019557fe5b505060405151151590506101a95760006000fd5b5b505600a165627a7a72305820013b7f332f5103b10b33bfe19c35628f5f05a548270754ea0b480d19db1b185b00290000000000000000000000000d8775f648430679a709e98d2b0cb6250d2887ef

Deployed Bytecode

0x606060405263ffffffff60e060020a60003504166352f6ee5881146100425780635b7ab8911461006457806369ac572114610090578063a69df4b5146100b2575bfe5b341561004a57fe5b6100526100c4565b60408051918252519081900360200190f35b341561006c57fe5b6100746100d0565b60408051600160a060020a039092168252519081900360200190f35b341561009857fe5b6100526100df565b60408051918252519081900360200190f35b34156100ba57fe5b6100c26100e5565b005b670de0b6b3a764000081565b600254600160a060020a031681565b60015481565b60006001544210156100f75760006000fd5b50600160a060020a033381166000818152602081815260408083208054908490556002548251840185905282517fa9059cbb0000000000000000000000000000000000000000000000000000000081526004810196909652670de0b6b3a76400008202602487015291519095919091169363a9059cbb9360448083019493928390030190829087803b151561018857fe5b60325a03f1151561019557fe5b505060405151151590506101a95760006000fd5b5b505600a165627a7a72305820013b7f332f5103b10b33bfe19c35628f5f05a548270754ea0b480d19db1b185b0029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000d8775f648430679a709e98d2b0cb6250d2887ef

-----Decoded View---------------
Arg [0] : _BAT (address): 0x0D8775F648430679A709E98d2b0Cb6250d2887EF

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000d8775f648430679a709e98d2b0cb6250d2887ef


Swarm Source

bzzr://013b7f332f5103b10b33bfe19c35628f5f05a548270754ea0b480d19db1b185b

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.