Address Contract Partially Verified
Address
0x841EA7E00C9C6f8ce0c751A5F8151C928FB63A91
Balance
0.014020 ETH
Nonce
1
Code Size
5079 bytes
Creator
0xF4aE224e...c4dB at tx 0xc5712b6c...ea0211
Indexed Transactions
0
Contract Bytecode
5079 bytes
0x6080604052600436106101695763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610173578063095ea7b3146101fd57806318160ddd1461023557806323b872dd1461025c578063313ce567146102865780633ccfd60b1461029b5780633fa4f245146102b057806342966c68146102c5578063502dadb0146102dd57806370a0823114610332578063729ad39e146103535780637c60fa60146103a8578063884870c7146103bd57806395d89b41146103d85780639b1cbccc146103ed5780639c09c83514610402578063a8c310d514610457578063a9059cbb146104e5578063aa6ca80814610169578063c108d54214610509578063c489744b1461051e578063d8a5436014610545578063dd62ed3e1461055a578063e58fc54c14610581578063efca2eed146105a2578063f2fde38b146105b7578063f3e4877c146105d8578063f9f92be41461062f575b610171610650565b005b34801561017f57600080fd5b50610188610710565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101c25781810151838201526020016101aa565b50505050905090810190601f1680156101ef5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561020957600080fd5b50610221600160a060020a0360043516602435610747565b604080519115158252519081900360200190f35b34801561024157600080fd5b5061024a6107ef565b60408051918252519081900360200190f35b34801561026857600080fd5b50610221600160a060020a03600435811690602435166044356107f5565b34801561029257600080fd5b5061024a61097a565b3480156102a757600080fd5b5061017161097f565b3480156102bc57600080fd5b5061024a6109d5565b3480156102d157600080fd5b506101716004356109db565b3480156102e957600080fd5b506040805160206004803580820135838102808601850190965280855261017195369593946024949385019291829185019084908082843750949750610aba9650505050505050565b34801561033e57600080fd5b5061024a600160a060020a0360043516610b2f565b34801561035f57600080fd5b506040805160206004803580820135838102808601850190965280855261017195369593946024949385019291829185019084908082843750949750610b4a9650505050505050565b3480156103b457600080fd5b5061024a610bde565b3480156103c957600080fd5b50610171600435602435610be4565b3480156103e457600080fd5b50610188610c06565b3480156103f957600080fd5b50610221610c3d565b34801561040e57600080fd5b506040805160206004803580820135838102808601850190965280855261017195369593946024949385019291829185019084908082843750949750610ca39650505050505050565b34801561046357600080fd5b506040805160206004803580820135838102808601850190965280855261017195369593946024949385019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a998901989297509082019550935083925085019084908082843750949750610d189650505050505050565b3480156104f157600080fd5b50610221600160a060020a0360043516602435610dfd565b34801561051557600080fd5b50610221610eee565b34801561052a57600080fd5b5061024a600160a060020a0360043581169060243516610ef7565b34801561055157600080fd5b5061024a610fa8565b34801561056657600080fd5b5061024a600160a060020a0360043581169060243516610fae565b34801561058d57600080fd5b50610221600160a060020a0360043516610fd9565b3480156105ae57600080fd5b5061024a61112d565b3480156105c357600080fd5b50610171600160a060020a0360043516611133565b3480156105e457600080fd5b50604080516020600480358082013583810280860185019096528085526101719536959394602494938501929182918501908490808284375094975050933594506111859350505050565b34801561063b57600080fd5b50610221600160a060020a0360043516611230565b600c54600090819060ff161561066557600080fd5b3360009081526004602052604090205460ff161561068257600080fd5b600954600a54111561069357600080fd5b339150600a549050600b543410156106bb57600a546106b8908063ffffffff61124516565b90505b6106c58282611257565b5060008111156106f357600160a060020a0382166000908152600460205260409020805460ff191660011790555b6005546008541061070c57600c805460ff191660011790555b5050565b60408051808201909152601081527f5a696c6c6f77426c6f636b636861696e00000000000000000000000000000000602082015281565b6000811580159061077a5750336000908152600360209081526040808320600160a060020a038716845290915290205415155b15610787575060006107e9565b336000818152600360209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60055481565b60006060606436101561080457fe5b600160a060020a038416151561081957600080fd5b600160a060020a03851660009081526002602052604090205483111561083e57600080fd5b600160a060020a038516600090815260036020908152604080832033845290915290205483111561086e57600080fd5b600160a060020a038516600090815260026020526040902054610897908463ffffffff61124516565b600160a060020a03861660009081526002602090815260408083209390935560038152828220338352905220546108d4908463ffffffff61124516565b600160a060020a038087166000908152600360209081526040808320338452825280832094909455918716815260029091522054610918908463ffffffff61135a16565b600160a060020a0380861660008181526002602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3506001949350505050565b601281565b600154600090600160a060020a0316331461099957600080fd5b50600154604051303191600160a060020a03169082156108fc029083906000818181858888f1935050505015801561070c573d6000803e3d6000fd5b600a5481565b600154600090600160a060020a031633146109f557600080fd5b33600090815260026020526040902054821115610a1157600080fd5b5033600081815260026020526040902054610a32908363ffffffff61124516565b600160a060020a038216600090815260026020526040902055600554610a5e908363ffffffff61124516565b600555600854610a74908363ffffffff61124516565b600855604080518381529051600160a060020a038316917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a25050565b600154600090600160a060020a03163314610ad457600080fd5b5060005b815181101561070c576001600460008484815181101515610af557fe5b602090810291909101810151600160a060020a03168252810191909152604001600020805460ff1916911515919091179055600101610ad8565b600160a060020a031660009081526002602052604090205490565b600154600090600160a060020a03163314610b6457600080fd5b600c5460ff1615610b7457600080fd5b815160ff1015610b8357600080fd5b600954600a541115610b9457600080fd5b5060005b81518110156106f357600954600a541115610bb257600080fd5b610bd58282815181101515610bc357fe5b90602001906020020151600a54611257565b50600101610b98565b600b5481565b600154600160a060020a03163314610bfb57600080fd5b600a91909155600b55565b60408051808201909152600381527f5a57420000000000000000000000000000000000000000000000000000000000602082015281565b600154600090600160a060020a03163314610c5757600080fd5b600c5460ff1615610c6757600080fd5b600c805460ff191660011790556040517f7f95d919e78bdebe8a285e6e33357c2fcb65ccf66e72d7573f9f8f6caad0c4cc90600090a150600190565b600154600090600160a060020a03163314610cbd57600080fd5b5060005b815181101561070c576000600460008484815181101515610cde57fe5b602090810291909101810151600160a060020a03168252810191909152604001600020805460ff1916911515919091179055600101610cc1565b600154600090600160a060020a03163314610d3257600080fd5b600c5460ff1615610d4257600080fd5b825160ff1015610d5157600080fd5b8151835114610d5f57600080fd5b5060005b82518160ff161015610df857600954828260ff16815181101515610d8357fe5b602090810290910101511115610d9857600080fd5b610dd6838260ff16815181101515610dac57fe5b90602001906020020151838360ff16815181101515610dc757fe5b90602001906020020151611257565b5060055460085410610df057600c805460ff191660011790555b600101610d63565b505050565b600060406044361015610e0c57fe5b600160a060020a0384161515610e2157600080fd5b33600090815260026020526040902054831115610e3d57600080fd5b33600090815260026020526040902054610e5d908463ffffffff61124516565b3360009081526002602052604080822092909255600160a060020a03861681522054610e8f908463ffffffff61135a16565b600160a060020a0385166000818152600260209081526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b600c5460ff1681565b600080600084915081600160a060020a03166370a08231856040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b158015610f7357600080fd5b505af1158015610f87573d6000803e3d6000fd5b505050506040513d6020811015610f9d57600080fd5b505195945050505050565b60095481565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b60015460009081908190600160a060020a03163314610ff757600080fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051859350600160a060020a038416916370a082319160248083019260209291908290030181600087803b15801561105b57600080fd5b505af115801561106f573d6000803e3d6000fd5b505050506040513d602081101561108557600080fd5b5051600154604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810184905290519293509084169163a9059cbb916044808201926020929091908290030181600087803b1580156110f957600080fd5b505af115801561110d573d6000803e3d6000fd5b505050506040513d602081101561112357600080fd5b5051949350505050565b60085481565b600154600160a060020a0316331461114a57600080fd5b600160a060020a03811615611182576001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600154600090600160a060020a0316331461119f57600080fd5b600c5460ff16156111af57600080fd5b825160ff10156111be57600080fd5b6009548211156111cd57600080fd5b5060005b8251811015611213576009548211156111e957600080fd5b61120a83828151811015156111fa57fe5b9060200190602002015183611257565b506001016111d1565b60055460085410610df857600c805460ff19166001179055505050565b60046020526000908152604090205460ff1681565b60008282111561125157fe5b50900390565b600c5460009060ff161561126a57600080fd5b60085461127d908363ffffffff61135a16565b600855600954611293908363ffffffff61124516565b600955600160a060020a0383166000908152600260205260409020546112bf908363ffffffff61135a16565b600160a060020a038416600081815260026020908152604091829020939093558051858152905191927f8940c4b8e215f8822c5c8f0056c12652c746cbc57eedbd2a440b175971d47a7792918290030190a2604080518381529051600160a060020a038516916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35060016107e9565b60008282018381101561136957fe5b9392505050565b600080828481151561137e57fe5b04949350505050565b60008282028315806113a357508284828115156113a057fe5b04145b151561136957fe00a165627a7a7230582097d0a9ac6546ea3488fd1950b1f1c4bfb619fb107235f139b7b30530b689ba7c0029
Verified Source Code Partial Match
Compiler: v0.4.25-nightly.2018.5.30+commit.3f3d6df2
EVM: byzantium
Optimization: Yes (200 runs)
ZillowBlockchain.sol 294 lines
pragma solidity ^0.4.19;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a / b;
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
}
contract ForeignToken {
function balanceOf(address _owner) constant public returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
}
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) public constant returns (uint256);
function transferFrom(address from, address to, uint256 value) public returns (bool);
function approve(address spender, uint256 value) public returns (bool);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface Token {
function distr(address _to, uint256 _value) public returns (bool);
function totalSupply() constant public returns (uint256 supply);
function balanceOf(address _owner) constant public returns (uint256 balance);
}
contract ZillowBlockchain is ERC20 {
using SafeMath for uint256;
address owner = msg.sender;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) allowed;
mapping (address => bool) public blacklist;
string public constant name = "ZillowBlockchain";
string public constant symbol = "ZWB";
uint public constant decimals = 18;
uint256 public totalSupply = 100000000e18;
uint256 private totalReserved = (totalSupply.div(100)).mul(15);
uint256 private totalBounties = (totalSupply.div(100)).mul(10);
uint256 public totalDistributed = totalReserved.add(totalBounties);
uint256 public totalRemaining = totalSupply.sub(totalDistributed);
uint256 public value;
uint256 public minReq;
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
event Distr(address indexed to, uint256 amount);
event DistrFinished();
event Burn(address indexed burner, uint256 value);
bool public distributionFinished = false;
modifier canDistr() {
require(!distributionFinished);
_;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
modifier onlyWhitelist() {
require(blacklist[msg.sender] == false);
_;
}
function ZillowBlockchain (uint256 _value, uint256 _minReq) public {
owner = msg.sender;
value = _value;
minReq = _minReq;
balances[msg.sender] = totalDistributed;
}
function setParameters (uint256 _value, uint256 _minReq) onlyOwner public {
value = _value;
minReq = _minReq;
}
function transferOwnership(address newOwner) onlyOwner public {
if (newOwner != address(0)) {
owner = newOwner;
}
}
function enableWhitelist(address[] addresses) onlyOwner public {
for (uint i = 0; i < addresses.length; i++) {
blacklist[addresses[i]] = false;
}
}
function disableWhitelist(address[] addresses) onlyOwner public {
for (uint i = 0; i < addresses.length; i++) {
blacklist[addresses[i]] = true;
}
}
function finishDistribution() onlyOwner canDistr public returns (bool) {
distributionFinished = true;
DistrFinished();
return true;
}
function distr(address _to, uint256 _amount) canDistr private returns (bool) {
totalDistributed = totalDistributed.add(_amount);
totalRemaining = totalRemaining.sub(_amount);
balances[_to] = balances[_to].add(_amount);
Distr(_to, _amount);
Transfer(address(0), _to, _amount);
return true;
if (totalDistributed >= totalSupply) {
distributionFinished = true;
}
}
function airdrop(address[] addresses) onlyOwner canDistr public {
require(addresses.length <= 255);
require(value <= totalRemaining);
for (uint i = 0; i < addresses.length; i++) {
require(value <= totalRemaining);
distr(addresses[i], value);
}
if (totalDistributed >= totalSupply) {
distributionFinished = true;
}
}
function distribution(address[] addresses, uint256 amount) onlyOwner canDistr public {
require(addresses.length <= 255);
require(amount <= totalRemaining);
for (uint i = 0; i < addresses.length; i++) {
require(amount <= totalRemaining);
distr(addresses[i], amount);
}
if (totalDistributed >= totalSupply) {
distributionFinished = true;
}
}
function distributeAmounts(address[] addresses, uint256[] amounts) onlyOwner canDistr public {
require(addresses.length <= 255);
require(addresses.length == amounts.length);
for (uint8 i = 0; i < addresses.length; i++) {
require(amounts[i] <= totalRemaining);
distr(addresses[i], amounts[i]);
if (totalDistributed >= totalSupply) {
distributionFinished = true;
}
}
}
function () external payable {
getTokens();
}
function getTokens() payable canDistr onlyWhitelist public {
require(value <= totalRemaining);
address investor = msg.sender;
uint256 toGive = value;
if (msg.value < minReq){
toGive = value.sub(value);
}
distr(investor, toGive);
if (toGive > 0) {
blacklist[investor] = true;
}
if (totalDistributed >= totalSupply) {
distributionFinished = true;
}
}
function balanceOf(address _owner) constant public returns (uint256) {
return balances[_owner];
}
// mitigates the ERC20 short address attack
modifier onlyPayloadSize(uint size) {
assert(msg.data.length >= size + 4);
_;
}
function transfer(address _to, uint256 _amount) onlyPayloadSize(2 * 32) public returns (bool success) {
require(_to != address(0));
require(_amount <= balances[msg.sender]);
balances[msg.sender] = balances[msg.sender].sub(_amount);
balances[_to] = balances[_to].add(_amount);
Transfer(msg.sender, _to, _amount);
return true;
}
function transferFrom(address _from, address _to, uint256 _amount) onlyPayloadSize(3 * 32) public returns (bool success) {
require(_to != address(0));
require(_amount <= balances[_from]);
require(_amount <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_amount);
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount);
balances[_to] = balances[_to].add(_amount);
Transfer(_from, _to, _amount);
return true;
}
function approve(address _spender, uint256 _value) public returns (bool success) {
// mitigates the ERC20 spend/approval race condition
if (_value != 0 && allowed[msg.sender][_spender] != 0) { return false; }
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
function allowance(address _owner, address _spender) constant public returns (uint256) {
return allowed[_owner][_spender];
}
function getTokenBalance(address tokenAddress, address who) constant public returns (uint){
ForeignToken t = ForeignToken(tokenAddress);
uint bal = t.balanceOf(who);
return bal;
}
function withdraw() onlyOwner public {
uint256 etherBalance = this.balance;
owner.transfer(etherBalance);
}
function burn(uint256 _value) onlyOwner public {
require(_value <= balances[msg.sender]);
// no need to require value <= totalSupply, since that would imply the
// sender's balance is greater than the totalSupply, which *should* be an assertion failure
address burner = msg.sender;
balances[burner] = balances[burner].sub(_value);
totalSupply = totalSupply.sub(_value);
totalDistributed = totalDistributed.sub(_value);
Burn(burner, _value);
}
function withdrawForeignTokens(address _tokenContract) onlyOwner public returns (bool) {
ForeignToken token = ForeignToken(_tokenContract);
uint256 amount = token.balanceOf(address(this));
return token.transfer(owner, amount);
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
blacklist 0xf9f92be4 → bool
decimals 0x313ce567 → uint256
distributionFinished 0xc108d542 → bool
getTokenBalance 0xc489744b → uint256
minReq 0x7c60fa60 → uint256
name 0x06fdde03 → string
symbol 0x95d89b41 → string
totalDistributed 0xefca2eed → uint256
totalRemaining 0xd8a54360 → uint256
totalSupply 0x18160ddd → uint256
value 0x3fa4f245 → uint256
Write Contract 15 functions
These functions modify contract state and require a wallet transaction to execute.
airdrop 0x729ad39e
address[] addresses
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
burn 0x42966c68
uint256 _value
disableWhitelist 0x502dadb0
address[] addresses
distributeAmounts 0xa8c310d5
address[] addresses
uint256[] amounts
distribution 0xf3e4877c
address[] addresses
uint256 amount
enableWhitelist 0x9c09c835
address[] addresses
finishDistribution 0x9b1cbccc
No parameters
returns: bool
getTokens 0xaa6ca808
No parameters
setParameters 0x884870c7
uint256 _value
uint256 _minReq
transfer 0xa9059cbb
address _to
uint256 _amount
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
withdrawForeignTokens 0xe58fc54c
address _tokenContract
returns: bool
Recent Transactions
No transactions found for this address