Contract 0xA667F7c9F8D9E7F54814f312aE42d08A31154889 3

 

Contract Overview

Balance:
0.047944110484597433 Ether

EtherValue:
$81.40 (@ $1,697.77/ETH)

Token:
 
Txn Hash
Method
Block
From
To
Value
0x6739fcd58a0f5ff4497e55b1cb8a37cd798d9fd5994f46df597a61801d02f610Create Listing69118352018-12-18 23:52:301339 days 18 hrs ago0xdcae967431fb51aa7453ec6c06fa544c25e0f1ff IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890 Ether0.000457943
0x64d4fcaab215bd7fdc20ba258a3201777449d8087732ca6900fba64b17370ea2Buy Listing68779822018-12-13 8:27:451345 days 9 hrs ago0x3898ce3bdbb13700a7f3a389b46912857da7e12e IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.045 Ether0.000350014.9
0xd792d0ded3678f5295ee734097f6fc1686778e97dddea6edc0217b9727888005Withdraw Balance67041602018-11-14 17:28:291374 days 45 mins ago0xdcae967431fb51aa7453ec6c06fa544c25e0f1ff IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890 Ether0.000108915
0xe43230fc2adfe6b1039b6d6394830c225d16c3d4ff05e0ed3efc6b21bd49408dBuy Listing66747772018-11-09 21:59:211378 days 20 hrs ago0xdcae967431fb51aa7453ec6c06fa544c25e0f1ff IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.00627 Ether0.000169293
0x57dd5b34745ad6b43c8e8d252306af917740cda6992a6a361f3e24a0d60bb20eBuy Listing65836122018-10-25 23:15:231393 days 18 hrs ago0xdcae967431fb51aa7453ec6c06fa544c25e0f1ff IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.0017 Ether0.000098023
0xb4fdccceadeef8d9ed39cf227fce5024d7fee184d421d46e6658632d38d56c12Buy Listing65755502018-10-24 15:39:171395 days 2 hrs ago0x77627caa1c7920b3c0a1be06e52d08000309f3a7 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.00000999 Ether0.000208618
0x19abf6ad5e4d324f8ff9ef768764677636c0198916ea2036d27c247c0fc89fb6Buy Listing65753962018-10-24 15:03:491395 days 3 hrs ago0xdcae967431fb51aa7453ec6c06fa544c25e0f1ff IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.000539 Ether0.000830049.7
0x36611ce7e00e5455267ece871ebe335b2ff199f3b8f695b1ece81ef3802a7e03Create Listing65753742018-10-24 14:59:131395 days 3 hrs ago0x343b20f9706ea383832cdce63e5339f6e01c6167 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890 Ether0.0016223310.7
0xf003e35410be7ada62cec7521839fbf66eff0ba9f21c377b29640e118201c960Buy Listing65639432018-10-22 18:24:301396 days 23 hrs ago0xba3753f4964e5491425e7ea9be1d6d9511b4cd0c IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.00013942 Ether0.000271323
0xa821a6934403058c2cbc22f0704224ced91f0940a5f6cf9170ee9a4be4bbdaafBuy Listing65590422018-10-21 22:58:231397 days 19 hrs ago0x3c9c530d684a99cc39388c644f21ebeeb61c2839 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.01 Ether0.000102033
0xa13c41c0a39cfe252b8a434bf74bf935656ef34036d245ffdeae27ed52858322Buy Listing65487812018-10-20 6:51:221399 days 11 hrs ago0x8033562521fedecdcc05487303522375597f9094 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.00169 Ether0.000316323
0x47ca030ab5acabe4599cf6a4e169f605722a9e39d41b37913c68336e3785e58eBuy Listing65462732018-10-19 20:51:231399 days 21 hrs ago0xab01d4895b802c38eee7553bb52a4160cfca2878 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.00228 Ether0.000221233.1
0x39280088d9b0cacb21cd8adc32244fb2d6874af3b66c3739b3acbdc65bc6d51eBuy Listing65339442018-10-17 20:30:141401 days 21 hrs ago0x8033562521fedecdcc05487303522375597f9094 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.006112 Ether0.000264043
0x7447be20e9b7551a0590d3e5b5c32da08532a72496fd5e870c903632c3c00914Buy Listing65293072018-10-17 2:23:141402 days 15 hrs ago0x8033562521fedecdcc05487303522375597f9094 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.0059 Ether0.000092623
0xd020e9dc6b56b187a96ea3114d6c4f7cac76eb7acd7ef60eab06883377d06810Create Listing65289052018-10-17 0:48:341402 days 17 hrs ago0x88ace5f352adef0955ec085817ff72a4ea483b5f IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890 Ether0.000917496
0xf2f5613ab38584646ea22fb64602776882d496f02c369472f7ef04c694254ef7Create Listing65289052018-10-17 0:48:341402 days 17 hrs ago0x88ace5f352adef0955ec085817ff72a4ea483b5f IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890 Ether0.000916336
0x1b6e6fdcabc2ee9ba95d94171dcaac23d8802923e1f35ff10c27b23383410750Buy Listing65174592018-10-15 3:49:111404 days 14 hrs ago0xc1b225046c544bbceb26fc0cd00954fdd50960d8 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.004 Ether0.000093633
0xd9fafb7bbe5c4613966c91dd45bb630cb3953480156aa64a99e05f59e0e81ac0Buy Listing65174562018-10-15 3:48:261404 days 14 hrs ago0xc1b225046c544bbceb26fc0cd00954fdd50960d8 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.004 Ether0.000093633
0xe253cf7ea61d9dfcba91caf12942691a50ad5afc15b71a226d37f155bc46f101Buy Listing64933402018-10-11 5:44:361408 days 12 hrs ago0x2e53273dc32d17b1e6da6cc7239faa52c6057c0c IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.00169 Ether0.000390133.7
0x4858a62c91b0dd7aabf8dfbe4167d89d9d1f771e6eba2697010f0162951c1808Create Listing64879212018-10-10 8:35:181409 days 9 hrs ago0x6d295267ce505c55ad65f1759c080be337f96943 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890 Ether0.000760145
0x1098eb89fbea3cfbb3b236ee45bbf1704c124b8cd0593a84ae8fba0afa05f6f8Create Listing64879142018-10-10 8:33:271409 days 9 hrs ago0x6d295267ce505c55ad65f1759c080be337f96943 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890 Ether0.000760145
0x09b8c8b9d03a7c92f507ed5d1846ac8f48cace3bd39b859ebadebb657aed5990Create Listing64879102018-10-10 8:32:301409 days 9 hrs ago0x6d295267ce505c55ad65f1759c080be337f96943 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890 Ether0.000760145
0x3ea45657e12db41b9e7e6dd612b13b2b65fabfea5291de4d728fc4682f12c85fCreate Listing64878972018-10-10 8:29:501409 days 9 hrs ago0x6d295267ce505c55ad65f1759c080be337f96943 IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890 Ether0.000760145
0x76c0d6a5737dbf21d76e566aa4a75f7a88e21276810474e922d03359d28d1f08Buy Listing64876382018-10-10 7:34:451409 days 10 hrs ago0x3898ce3bdbb13700a7f3a389b46912857da7e12e IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.28 Ether0.00021413
0xc31f18cbc9117792e8f05a03f79fd82e6a8eccb0b874d467a54237db7bc6fd89Buy Listing64876292018-10-10 7:33:201409 days 10 hrs ago0x3898ce3bdbb13700a7f3a389b46912857da7e12e IN  0xa667f7c9f8d9e7f54814f312ae42d08a311548890.39 Ether0.00016913
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x64d4fcaab215bd7fdc20ba258a3201777449d8087732ca6900fba64b17370ea268779822018-12-13 8:27:451345 days 9 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x5d6ff7a33cf66e377d684339b492ac73eb78bc460.04455 Ether
0xe43230fc2adfe6b1039b6d6394830c225d16c3d4ff05e0ed3efc6b21bd49408d66747772018-11-09 21:59:211378 days 20 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x5d6ff7a33cf66e377d684339b492ac73eb78bc460.0062073 Ether
0x19abf6ad5e4d324f8ff9ef768764677636c0198916ea2036d27c247c0fc89fb665753962018-10-24 15:03:491395 days 3 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x343b20f9706ea383832cdce63e5339f6e01c61670.00053361 Ether
0xf003e35410be7ada62cec7521839fbf66eff0ba9f21c377b29640e118201c96065639432018-10-22 18:24:301396 days 23 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x02a7311863881b5e7990debe016352313f5347380.00013803 Ether
0xa13c41c0a39cfe252b8a434bf74bf935656ef34036d245ffdeae27ed5285832265487812018-10-20 6:51:221399 days 11 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x02a7311863881b5e7990debe016352313f5347380.0016731 Ether
0x47ca030ab5acabe4599cf6a4e169f605722a9e39d41b37913c68336e3785e58e65462732018-10-19 20:51:231399 days 21 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x5d6ff7a33cf66e377d684339b492ac73eb78bc460.0022572 Ether
0x39280088d9b0cacb21cd8adc32244fb2d6874af3b66c3739b3acbdc65bc6d51e65339442018-10-17 20:30:141401 days 21 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x911e25b34a1b219971c351da8904676d91200b040.00605088 Ether
0xe253cf7ea61d9dfcba91caf12942691a50ad5afc15b71a226d37f155bc46f10164933402018-10-11 5:44:361408 days 12 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x02a7311863881b5e7990debe016352313f5347380.0016731 Ether
0x76c0d6a5737dbf21d76e566aa4a75f7a88e21276810474e922d03359d28d1f0864876382018-10-10 7:34:451409 days 10 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x1515933eb2801660f20c0b0696c17dd43e7974790.2772 Ether
0xc31f18cbc9117792e8f05a03f79fd82e6a8eccb0b874d467a54237db7bc6fd8964876292018-10-10 7:33:201409 days 10 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x74f3e7a15099a653885bcc8c31d354fef7c221c10.3861 Ether
0x03ee9da371386a1fb891a50d741d12f7aa76242cb4a10f428c5c1fd9e06aaf6d64876252018-10-10 7:32:331409 days 10 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x6d295267ce505c55ad65f1759c080be337f969430.396 Ether
0x40c6539d188aa8c2d69197339276553a981cc55f18384ea013c476a5b393966f64876212018-10-10 7:31:461409 days 10 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x6d295267ce505c55ad65f1759c080be337f969430.2475 Ether
0x74864687d965f15360f2408e2d136214261abf28bc6d54bdd4f600095590d1e864875912018-10-10 7:25:201409 days 10 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x1515933eb2801660f20c0b0696c17dd43e7974790.07425 Ether
0x323d580777cd83d36216d05b034de05c507ee995ea98d6df5ca7bec9e2a2ac1264875592018-10-10 7:20:291409 days 10 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x6d295267ce505c55ad65f1759c080be337f969430.099 Ether
0x5703dd714bd13955eb18fe30a4a3e80ef06c082f8bb5db7cfb0671195908cdb864875532018-10-10 7:18:561409 days 10 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x6d295267ce505c55ad65f1759c080be337f969430.0396 Ether
0xcc8bd2ff5f0181f8e8348aedc422257ef2d5fbd5ed2c2a4884e5d962fae9da6864875112018-10-10 7:09:511409 days 11 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x5d6ff7a33cf66e377d684339b492ac73eb78bc460.07128 Ether
0x6e727211318ecc6e096e4625ae2dc31b23133fb8f3ec812c62950e123f036b8264875062018-10-10 7:08:591409 days 11 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890xab8e2b05ec42cde3d4921e75ae2cf2363e43f8e70.07425 Ether
0x263251788b9c8a0e4cb30b61b78c7b0b155b46c9d91faf8b2b931521703a695664875062018-10-10 7:08:591409 days 11 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x9527d35e66f24e35a333920238c3caa9d4ef11500.01485 Ether
0x7cc6521d69dd2c44b09dd2fbde4cfe81d4a8245d3177a9870d55705d2c46af0f64757542018-10-08 9:27:141411 days 8 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x9527d35e66f24e35a333920238c3caa9d4ef11500.01485 Ether
0xc545128bd35be82e2c6fef963c22a472912fa8e6882caf21ff12b1f5cb44b8eb64449292018-10-03 9:36:401416 days 8 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x02a7311863881b5e7990debe016352313f5347380.00083655 Ether
0x11c48a0139d0ab37055a874bbffc368a1fc9fdb72f1daec2c32a87aebf768d9a64093572018-09-27 13:43:411422 days 4 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x02a7311863881b5e7990debe016352313f5347380.1924065 Ether
0xa2448f3c1554d2257871c6aa4f906d02e8f998f0524ff5c02b05f2f8a11d702164077962018-09-27 7:33:481422 days 10 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x9527d35e66f24e35a333920238c3caa9d4ef11500.01485 Ether
0x476f9114ea9ba93f12f75e5868540ae6f9625eece1e283107af93745c19decff64077932018-09-27 7:33:051422 days 10 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x9527d35e66f24e35a333920238c3caa9d4ef11500.1485 Ether
0x207f918a09842554cfd6d00e0350a15db6e405ae331d41356712d3575d4c26e264076562018-09-27 6:55:261422 days 11 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x9527d35e66f24e35a333920238c3caa9d4ef11500.02475 Ether
0xee1e9109c822c0c1a8a45ff0ba96c3f245c42c04c820f4515a7aa528ab3db09364076492018-09-27 6:53:571422 days 11 hrs ago 0xa667f7c9f8d9e7f54814f312ae42d08a311548890x9527d35e66f24e35a333920238c3caa9d4ef11500.0099 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ListingsERC20

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-02-21
*/

pragma solidity ^0.4.18;


/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;


  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  function Ownable() public {
    owner = msg.sender;
  }


  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }


  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    require(newOwner != address(0));
    OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

}
pragma solidity ^0.4.18;


/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }
    uint256 c = a * b;
    assert(c / a == b);
    return c;
  }

  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    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 ERC20Basic {
  uint256 public totalSupply;
  uint8 public decimals;
  function balanceOf(address who) public view 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 view 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);
}
contract ListingsERC20 is Ownable {
      using SafeMath for uint256;

    struct Listing {
        address seller;
        address tokenContractAddress;
        uint256 price;
        uint256 allowance;
        uint256 dateStarts;
        uint256 dateEnds;
    }
    event ListingCreated(bytes32 indexed listingId, address tokenContractAddress, uint256 price, uint256 allowance, uint256 dateStarts, uint256 dateEnds, address indexed seller);
    event ListingCancelled(bytes32 indexed listingId, uint256 dateCancelled);
    event ListingBought(bytes32 indexed listingId, address tokenContractAddress, uint256 price, uint256 amount, uint256 dateBought, address buyer);

    string constant public VERSION = "1.0.1";
    uint16 constant public GAS_LIMIT = 4999;
    uint256 public ownerPercentage;
    mapping (bytes32 => Listing) public listings;
    mapping (bytes32 => uint256) public sold;
    function ListingsERC20(uint256 percentage) public {
        ownerPercentage = percentage;
    }

    function updateOwnerPercentage(uint256 percentage) external onlyOwner {
        ownerPercentage = percentage;
    }

    function withdrawBalance() onlyOwner external {
        assert(owner.send(this.balance));
    }
    function approveToken(address token, uint256 amount) onlyOwner external {
        assert(ERC20(token).approve(owner, amount));
    }

    function() external payable { }

    function getHash(address tokenContractAddress, uint256 price, uint256 allowance, uint256 dateEnds, uint256 salt) external view returns (bytes32) {
        return getHashInternal(tokenContractAddress, price, allowance, dateEnds, salt);
    }

    function getHashInternal(address tokenContractAddress, uint256 price, uint256 allowance, uint256 dateEnds, uint256 salt) internal view returns (bytes32) {
        return keccak256(msg.sender, tokenContractAddress, price, allowance, dateEnds, salt);
    }
    function getBalance(address tokenContract, address seller) internal constant returns (uint256) {
        return ERC20(tokenContract).balanceOf.gas(GAS_LIMIT)(seller);
    }
    function getAllowance(address tokenContract, address seller, address listingContract) internal constant returns (uint256) {
        return ERC20(tokenContract).allowance.gas(GAS_LIMIT)(seller, listingContract);
    }
    function getDecimals(address tokenContract) internal constant returns (uint256) {
        return ERC20(tokenContract).decimals.gas(GAS_LIMIT)();
    }

    function createListing(address tokenContractAddress, uint256 price, uint256 allowance, uint256 dateEnds, uint256 salt) external {
        require(price > 0);
        require(allowance > 0);
        require(dateEnds > 0);
        require(getBalance(tokenContractAddress, msg.sender) >= allowance);
        bytes32 listingId = getHashInternal(tokenContractAddress, price, allowance, dateEnds, salt);
        Listing memory listing = Listing(msg.sender, tokenContractAddress, price, allowance, now, dateEnds);
        listings[listingId] = listing;
        ListingCreated(listingId, tokenContractAddress, price, allowance, now, dateEnds, msg.sender);

    }

    function cancelListing(bytes32 listingId) external {
        Listing storage listing = listings[listingId];
        require(msg.sender == listing.seller);
        delete listings[listingId];
        ListingCancelled(listingId, now);
    }
    function buyListing(bytes32 listingId, uint256 amount) external payable {
        Listing storage listing = listings[listingId];
        address seller = listing.seller;
        address contractAddress = listing.tokenContractAddress;
        uint256 price = listing.price;
        uint256 decimals = getDecimals(listing.tokenContractAddress);
        uint256 factor = 10 ** decimals;
        uint256 sale;
        if (decimals > 0) {
            sale = price.mul(amount).div(factor);
        } else {
            sale = price.mul(amount);
        } 
        uint256 allowance = listing.allowance;
        //make sure listing is still available
        require(now <= listing.dateEnds);
        //make sure there are still enough to sell from this listing
        require(allowance - sold[listingId] >= amount);
        //make sure that the seller still has that amount to sell
        require(getBalance(contractAddress, seller) >= amount);
        //make sure that the seller still will allow that amount to be sold
        require(getAllowance(contractAddress, seller, this) >= amount);
        require(msg.value == sale);
        ERC20 tokenContract = ERC20(contractAddress);
        require(tokenContract.transferFrom(seller, msg.sender, amount));
        if (ownerPercentage > 0) {
            seller.transfer(sale - (sale.mul(ownerPercentage).div(10000)));
        } else {
            seller.transfer(sale);
        }
        sold[listingId] = sold[listingId].add(amount);
        ListingBought(listingId, contractAddress, price, amount, now, msg.sender);
    }

}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"approveToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"GAS_LIMIT","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"percentage","type":"uint256"}],"name":"updateOwnerPercentage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ownerPercentage","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"sold","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"tokenContractAddress","type":"address"},{"name":"price","type":"uint256"},{"name":"allowance","type":"uint256"},{"name":"dateEnds","type":"uint256"},{"name":"salt","type":"uint256"}],"name":"getHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tokenContractAddress","type":"address"},{"name":"price","type":"uint256"},{"name":"allowance","type":"uint256"},{"name":"dateEnds","type":"uint256"},{"name":"salt","type":"uint256"}],"name":"createListing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"listingId","type":"bytes32"}],"name":"cancelListing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"listingId","type":"bytes32"},{"name":"amount","type":"uint256"}],"name":"buyListing","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"listings","outputs":[{"name":"seller","type":"address"},{"name":"tokenContractAddress","type":"address"},{"name":"price","type":"uint256"},{"name":"allowance","type":"uint256"},{"name":"dateStarts","type":"uint256"},{"name":"dateEnds","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"VERSION","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"percentage","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"listingId","type":"bytes32"},{"indexed":false,"name":"tokenContractAddress","type":"address"},{"indexed":false,"name":"price","type":"uint256"},{"indexed":false,"name":"allowance","type":"uint256"},{"indexed":false,"name":"dateStarts","type":"uint256"},{"indexed":false,"name":"dateEnds","type":"uint256"},{"indexed":true,"name":"seller","type":"address"}],"name":"ListingCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"listingId","type":"bytes32"},{"indexed":false,"name":"dateCancelled","type":"uint256"}],"name":"ListingCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"listingId","type":"bytes32"},{"indexed":false,"name":"tokenContractAddress","type":"address"},{"indexed":false,"name":"price","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"dateBought","type":"uint256"},{"indexed":false,"name":"buyer","type":"address"}],"name":"ListingBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

6060604052341561000f57600080fd5b60405160208061162c83398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600181905550506115aa806100826000396000f3006060604052600436106100d0576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063022fc88b146100d2578063091d2788146101145780633a5e25761461014557806341da7555146101685780634ccc5da0146101915780635fd8c710146101cc57806386964032146101e15780638da5cb5b1461025a5780639057f289146102af5780639299e5521461030c578063b924767314610333578063c18b8db414610358578063f2fde38b1461040e578063ffa1ad7414610447575b005b34156100dd57600080fd5b610112600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506104d5565b005b341561011f57600080fd5b610127610623565b604051808261ffff1661ffff16815260200191505060405180910390f35b341561015057600080fd5b6101666004808035906020019091905050610629565b005b341561017357600080fd5b61017b61068e565b6040518082815260200191505060405180910390f35b341561019c57600080fd5b6101b6600480803560001916906020019091905050610694565b6040518082815260200191505060405180910390f35b34156101d757600080fd5b6101df6106ac565b005b34156101ec57600080fd5b61023c600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190803590602001909190803590602001909190803590602001909190505061077e565b60405180826000191660001916815260200191505060405180910390f35b341561026557600080fd5b61026d610798565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156102ba57600080fd5b61030a600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919080359060200190919080359060200190919080359060200190919050506107bd565b005b341561031757600080fd5b6103316004808035600019169060200190919050506109f4565b005b610356600480803560001916906020019091908035906020019091905050610b3d565b005b341561036357600080fd5b61037d600480803560001916906020019091905050610f93565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001838152602001828152602001965050505050505060405180910390f35b341561041957600080fd5b610445600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061100f565b005b341561045257600080fd5b61045a611164565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561049a57808201518184015260208101905061047f565b50505050905090810190601f1680156104c75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561053057600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1663095ea7b36000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15156105fc57600080fd5b6102c65a03f1151561060d57600080fd5b50505060405180519050151561061f57fe5b5050565b61138781565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561068457600080fd5b8060018190555050565b60015481565b60036020528060005260406000206000915090505481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561070757600080fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050151561077c57fe5b565b600061078d868686868661119d565b905095945050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006107c761151b565b6000861115156107d657600080fd5b6000851115156107e557600080fd5b6000841115156107f457600080fd5b846107ff883361125e565b1015151561080c57600080fd5b610819878787878761119d565b915060c0604051908101604052803373ffffffffffffffffffffffffffffffffffffffff1681526020018873ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018681526020014281526020018581525090508060026000846000191660001916815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020155606082015181600301556080820151816004015560a082015181600501559050503373ffffffffffffffffffffffffffffffffffffffff1682600019167f9e1832b56075d4be9b59d3964dd56151b649e4a4b114a4acefd4d9f21e1003c5898989428a604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018381526020018281526020019550505050505060405180910390a350505050505050565b600060026000836000191660001916815260200190815260200160002090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a7157600080fd5b600260008360001916600019168152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556002820160009055600382016000905560048201600090556005820160009055505081600019167f6058913770fd8ede2df053a3c745065f043fe27a1585a9071a05fed168126c07426040518082815260200191505060405180910390a25050565b6000806000806000806000806000600260008c6000191660001916815260200190815260200160002098508860000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1697508860010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16965088600201549550610bea8960010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611321565b945084600a0a93506000851115610c2757610c2084610c128c896113af90919063ffffffff16565b6113ea90919063ffffffff16565b9250610c3d565b610c3a8a876113af90919063ffffffff16565b92505b8860030154915088600501544211151515610c5757600080fd5b89600360008d6000191660001916815260200190815260200160002054830310151515610c8357600080fd5b89610c8e888a61125e565b10151515610c9b57600080fd5b89610ca7888a30611405565b10151515610cb457600080fd5b8234141515610cc257600080fd5b8690508073ffffffffffffffffffffffffffffffffffffffff166323b872dd89338d6000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1515610da457600080fd5b6102c65a03f11515610db557600080fd5b505050604051805190501515610dca57600080fd5b60006001541115610e44578773ffffffffffffffffffffffffffffffffffffffff166108fc610e18612710610e0a600154886113af90919063ffffffff16565b6113ea90919063ffffffff16565b85039081150290604051600060405180830381858888f193505050501515610e3f57600080fd5b610e85565b8773ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f193505050501515610e8457600080fd5b5b610eb38a600360008e60001916600019168152602001908152602001600020546114fd90919063ffffffff16565b600360008d60001916600019168152602001908152602001600020819055508a600019167f37c577186df43cec2b1e2e404d2bfb60aa75b7a1d71bf0730446f0ed9bdb53bd88888d4233604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019550505050505060405180910390a25050505050505050505050565b60026020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154908060030154908060040154908060050154905086565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561106a57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156110a657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6040805190810160405280600581526020017f312e302e3100000000000000000000000000000000000000000000000000000081525081565b6000338686868686604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c0100000000000000000000000002815260140185815260200184815260200183815260200182815260200196505050505050506040518091039020905095945050505050565b60008273ffffffffffffffffffffffffffffffffffffffff166370a0823161138761ffff16846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600088803b151561130157600080fd5b87f1151561130e57600080fd5b5050505060405180519050905092915050565b60008173ffffffffffffffffffffffffffffffffffffffff1663313ce56761138761ffff166040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600088803b151561138d57600080fd5b87f1151561139a57600080fd5b505050506040518051905060ff169050919050565b60008060008414156113c457600091506113e3565b82840290508284828115156113d557fe5b041415156113df57fe5b8091505b5092915050565b60008082848115156113f857fe5b0490508091505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e61138761ffff1685856040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600088803b15156114dc57600080fd5b87f115156114e957600080fd5b505050506040518051905090509392505050565b600080828401905083811015151561151157fe5b8091505092915050565b60c060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001600081526020016000815250905600a165627a7a7230582075bf22a03545a18f035daf9f3d74332eb3f6ef54f5d8048f2e2945f58c973187002900000000000000000000000000000000000000000000000000000000000000c8

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

00000000000000000000000000000000000000000000000000000000000000c8

-----Decoded View---------------
Arg [0] : percentage (uint256): 200

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c8


Swarm Source

bzzr://75bf22a03545a18f035daf9f3d74332eb3f6ef54f5d8048f2e2945f58c973187
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.