Contract Overview |  MCH_GumGateway2
Balance: 0.1 Ether
Ether Value: $11.66 (@ $116.62/ETH)
Transactions: 416 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xe7af11370c3bab51230d8307454350bdf6d68f4aat txn 0x9f7360d23b48d934ef083ea7ac74082c3dbb6a27d6eab790c53514c2ba340dca
 Latest 25 transactions from a total of 416 transactions

TxHash Age From To Value [TxFee]
0x69a93d45e36c4eec6fd039067181715d34dbe1f903d84a36c7d26e7acb107b4910 days 9 hrs ago0x11a7c436365766b4a1500219529bb94a36c3f6f4  IN   MCH_GumGateway20.05 Ether0.00024839
0x25893c405ad47032f8db66a60f2925528f9a84f136130616a9c34b6f9199af4224 days 11 hrs ago0x7512fac25eb7dc3c1af5dd1a673a735fff2dea05  IN   MCH_GumGateway20.05 Ether0.00024839
0x587d0c56783135b294ec60df42757239ff7e6b263035b911a36bf0da1d54d4b425 days 2 hrs ago0xe7af11370c3bab51230d8307454350bdf6d68f4a  IN   MCH_GumGateway20 Ether0.00030116
0xb2add3c422080f2f6f12976649671f7f57d39ddd842cdfdb825de2db4c4225d725 days 5 hrs ago0xd1617919d2d432b6111de238155dd64e68513888  IN   MCH_GumGateway20.5 Ether0.000103848
0xd393d204a763c23d0fb5303a12e377d845627e385cd1bb90fb776a79a1b2c26a25 days 6 hrs ago0xedf925e3ed93c830624f1cd5ee5f8f3374c6d68f  IN   MCH_GumGateway20.1 Ether0.00034616
0xf3b450663345ca8f6c33908fe73a0d87451a98a65d39d844cae45105a910898e25 days 6 hrs ago0xedf925e3ed93c830624f1cd5ee5f8f3374c6d68f  IN   MCH_GumGateway20.1 Ether0.00034616
0xa018a4c48492f0eacf8bf82ff118f1c8a9e8fc55390d21077bf27774abda207c25 days 6 hrs ago0xedf925e3ed93c830624f1cd5ee5f8f3374c6d68f  IN   MCH_GumGateway20.1 Ether0.00034616
0xfe2a067c94d5dbc2c14119c91da968c8a04ec1860dbdbf875b632829cb7780c725 days 6 hrs ago0xedf925e3ed93c830624f1cd5ee5f8f3374c6d68f  IN   MCH_GumGateway20.5 Ether0.00034616
0xc5073f7b878acfd7525f4029a62808c75fd3469e2688053094f64c045de998a225 days 7 hrs ago0xedf925e3ed93c830624f1cd5ee5f8f3374c6d68f  IN   MCH_GumGateway20.1 Ether0.00034616
0x37d8db77f3df19f3c8a1d351d6ac46e8f141ad170aaf6b4e50697febdbe30c4325 days 7 hrs ago0x40d158f19fc5fedf1e527062964952219fedf1f7  IN   MCH_GumGateway20.05 Ether0.00034552
0xa6bc5b289abfcfbcc341e1e85c8d017baff4992d1c949a3bdd84962578e9f0c625 days 7 hrs ago0x27ef834d4a530c8ba24006c88e67524a5d30ed27  IN   MCH_GumGateway20.5 Ether0.000069231995
0x0940acf9cf0af38d04ca87c06bdd670d12204f6210dcf8b05548c3ab6c82617425 days 8 hrs ago0x40d158f19fc5fedf1e527062964952219fedf1f7  IN   MCH_GumGateway20.05 Ether0.00034552
0x3c79f6df247f2cd7165186dcfa11c01e1d4bd207bcaaaaf511a02a8c44f9a76e25 days 8 hrs ago0x3825c8ba07166f34ce9a2cd1e08a68b105c82cb9  IN   MCH_GumGateway20.5 Ether0.00024839
0x0772f54b5372ed0beffbcfd75b542e41c79b77e5ace51d1559c58cf4dbd6012125 days 8 hrs ago0x3de828b2fa051725ee43270e02fbe89247f180cb  IN   MCH_GumGateway20.5 Ether0.00024839
0xb2ce648d4469f6d6ca2ab7fa1dcad075a27d1c3fe51c56079c4dc25581b98d0725 days 9 hrs ago0xcf36c41a0eec8130a49964b94d98ff8570ffaa4a  IN   MCH_GumGateway20.5 Ether0.000311544
0xa8b1994d5341217b98e5da0f6db67712ad1f6c7505cb152ca91f8b5ed98d1d1c25 days 13 hrs ago0xee9b429ed04bfb790306a1f96c7fe6281d8b38d5  IN   MCH_GumGateway20.05 Ether0.00026129
0x03b531c8774b9b3a3b1c16d3887e92b7f4987734f6674592e52f315ff26c106625 days 18 hrs ago0xfc5fc2bedea05dbb485a2bd4e319b207b1dc2d40  IN   MCH_GumGateway20.05 Ether0.00024839
0xa9afe3ba504275f3c6ed61b96feb7447be26d42305dfd1ac2391dce75c57379925 days 20 hrs ago0xedf925e3ed93c830624f1cd5ee5f8f3374c6d68f  IN   MCH_GumGateway20.05 Ether0.00034616
0x6cf9df352a67d79819fb61e83ed42e34b7f55b0e6d6e04f28edb9c065753efd525 days 20 hrs ago0x517ff5b16c6059a5d9957420ccd05d7c8cabd9fb  IN   MCH_GumGateway20.1 Ether0.000103848
0x6077b83c018ef9d3764f6d137d7f3c1909384ff2ec8f39809f8f2bc5b964546925 days 20 hrs ago0x6681add3b2bfdbb58a3a579f710631fb076efc25  IN   MCH_GumGateway20.1 Ether0.00024839
0xe2806a4c856349c68330005d09bfbe805c317f685c7d94390ad6a60d43701fc625 days 21 hrs ago0x6681add3b2bfdbb58a3a579f710631fb076efc25  IN   MCH_GumGateway20.05 Ether0.00024839
0x09f0ec0ab6b8a606008dcf4b1c3947ee8c39ca9f4555e03f10e1f56ba7669d9325 days 22 hrs ago0x928c32b9c1afc4f8dd85d5509e0cd4ee181115bc  IN   MCH_GumGateway20.5 Ether0.00024839
0xaab1cb79cfd0943b535c8d3878006155c86df0fb4159ac77408bed358af68ea825 days 22 hrs ago0xd9b02a10935d8aa1db1fd31919365fe172586906  IN   MCH_GumGateway20.05 Ether0.0000794696
0x8ab17b219cc001113904299e3b4a498496b67f7e86e30a69add8154afd8ba8de25 days 23 hrs ago0x928c32b9c1afc4f8dd85d5509e0cd4ee181115bc  IN   MCH_GumGateway20.1 Ether0.00024839
0x1e0485dfd3b4a892d8dd073336a50890ddb585e6b567b092c3b7bda7819113b526 days 2 hrs ago0x9e315e9701908501f6dc68a2af6e28a20c75d970  IN   MCH_GumGateway20.05 Ether0.00024839
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here To View More View All
ParentTxHash Block Age From To Value
0x587d0c56783135b294ec60df42757239ff7e6b263035b911a36bf0da1d54d4b4696741625 days 2 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xe7af11370c3bab51230d8307454350bdf6d68f4a110.35 Ether
0xb2add3c422080f2f6f12976649671f7f57d39ddd842cdfdb825de2db4c4225d7696663125 days 5 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xd5e4868b51439ac87279b0d0117b7e2f364750580.1 Ether
0xd393d204a763c23d0fb5303a12e377d845627e385cd1bb90fb776a79a1b2c26a696625425 days 6 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260x1693ae817e424c2dbc4138313b7b46c91bb968f40.02 Ether
0xf3b450663345ca8f6c33908fe73a0d87451a98a65d39d844cae45105a910898e696624725 days 6 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260x1693ae817e424c2dbc4138313b7b46c91bb968f40.02 Ether
0xa018a4c48492f0eacf8bf82ff118f1c8a9e8fc55390d21077bf27774abda207c696624525 days 6 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260x1693ae817e424c2dbc4138313b7b46c91bb968f40.02 Ether
0xfe2a067c94d5dbc2c14119c91da968c8a04ec1860dbdbf875b632829cb7780c7696624325 days 6 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260x1693ae817e424c2dbc4138313b7b46c91bb968f40.1 Ether
0xc5073f7b878acfd7525f4029a62808c75fd3469e2688053094f64c045de998a2696620725 days 7 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260x1693ae817e424c2dbc4138313b7b46c91bb968f40.02 Ether
0x37d8db77f3df19f3c8a1d351d6ac46e8f141ad170aaf6b4e50697febdbe30c43696614925 days 7 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xf58d0e6fc3c021627a49a53f04152409fcc400550.01 Ether
0xa6bc5b289abfcfbcc341e1e85c8d017baff4992d1c949a3bdd84962578e9f0c6696600425 days 7 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xd5e4868b51439ac87279b0d0117b7e2f364750580.1 Ether
0x0940acf9cf0af38d04ca87c06bdd670d12204f6210dcf8b05548c3ab6c826174696597125 days 8 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xf58d0e6fc3c021627a49a53f04152409fcc400550.01 Ether
0xb2ce648d4469f6d6ca2ab7fa1dcad075a27d1c3fe51c56079c4dc25581b98d07696561625 days 9 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xd5e4868b51439ac87279b0d0117b7e2f364750580.1 Ether
0xa9afe3ba504275f3c6ed61b96feb7447be26d42305dfd1ac2391dce75c573799696295625 days 20 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260x1693ae817e424c2dbc4138313b7b46c91bb968f40.01 Ether
0x6cf9df352a67d79819fb61e83ed42e34b7f55b0e6d6e04f28edb9c065753efd5696292825 days 20 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xd5e4868b51439ac87279b0d0117b7e2f364750580.02 Ether
0xaab1cb79cfd0943b535c8d3878006155c86df0fb4159ac77408bed358af68ea8696227125 days 22 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xf58d0e6fc3c021627a49a53f04152409fcc400550.01 Ether
0xbb815ffa954418660a0400f73af634e0f63d5e0dee09ab66059e940275659966696129126 days 2 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xd5e4868b51439ac87279b0d0117b7e2f364750580.02 Ether
0x8282f9cc5d738c45d68b800127f0b1b8882c4fc74af56045badea05d0f6a9e80696077126 days 5 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xd5e4868b51439ac87279b0d0117b7e2f364750580.02 Ether
0xee673a35917826e8a4135e8e6e4d96af136bfb0c297743b036dc84bd625479a7695889926 days 12 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260x1693ae817e424c2dbc4138313b7b46c91bb968f40.01 Ether
0x0bb61e8ee5e47f8e8fd2705148660e2a601b71471733b29336fe638b5b991963695889726 days 12 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260x1693ae817e424c2dbc4138313b7b46c91bb968f40.02 Ether
0xa4f4a64259520dea0daf399c525c011f939a2ae5eec9a2073e8f34c3ab6f56f5695887826 days 12 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xd3a22d084dd16196b7862bc2d309412b508318fb0.01 Ether
0xacebad1ec679bc766f25481b48cee7de838d120e04180ddb2d9282e691906c04695750326 days 18 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xcb8e95022270c2d6df44dfd65f99a69840fa12990.1 Ether
0xf4eb787176eb97d32f8ba57d378941b339c19079d727f2914df388f7f4b266cc695601427 days 25 mins ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xd3a22d084dd16196b7862bc2d309412b508318fb0.02 Ether
0x9a83dc95e3988b03787b6e1bd61cb66f152b463ca532c248bdb3f98b25e61a06695595427 days 39 mins ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xd3a22d084dd16196b7862bc2d309412b508318fb0.1 Ether
0x2dbef4dfaa63b5c6eff0c699caeda6aa19e7f3fbc9bbd51a21d5800577c6d039695551827 days 2 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xd3a22d084dd16196b7862bc2d309412b508318fb0.02 Ether
0x8310c8c9c76354ad77bb8b22b101fab64522a71046624a6c9e365b5bbb16f75a695537227 days 3 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260xd5e4868b51439ac87279b0d0117b7e2f364750580.02 Ether
0xff2ec718f7ec489f9a6568a190ad8920b71ca5a32005b6a4d6af8369523b0685695493227 days 4 hrs ago0xa30cbce69f520bf2a34c5c15193b7f5afe427a260x8c5fc43ad00cc53e11f61bece329ddc5e3ea09290.01 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: GumGateway
Compiler Text: v0.4.24+commit.e67f0147
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity 0.4.24;

// File: contracts/lib/openzeppelin-solidity/contracts/access/Roles.sol

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
  struct Role {
    mapping (address => bool) bearer;
  }

  /**
   * @dev give an account access to this role
   */
  function add(Role storage role, address account) internal {
    require(account != address(0));
    role.bearer[account] = true;
  }

  /**
   * @dev remove an account's access to this role
   */
  function remove(Role storage role, address account) internal {
    require(account != address(0));
    role.bearer[account] = false;
  }

  /**
   * @dev check if an account has this role
   * @return bool
   */
  function has(Role storage role, address account)
    internal
    view
    returns (bool)
  {
    require(account != address(0));
    return role.bearer[account];
  }
}

// File: contracts/lib/openzeppelin-solidity/contracts/access/roles/PauserRole.sol

contract PauserRole {
  using Roles for Roles.Role;

  event PauserAdded(address indexed account);
  event PauserRemoved(address indexed account);

  Roles.Role private pausers;

  constructor() public {
    pausers.add(msg.sender);
  }

  modifier onlyPauser() {
    require(isPauser(msg.sender));
    _;
  }

  function isPauser(address account) public view returns (bool) {
    return pausers.has(account);
  }

  function addPauser(address account) public onlyPauser {
    pausers.add(account);
    emit PauserAdded(account);
  }

  function renouncePauser() public {
    pausers.remove(msg.sender);
  }

  function _removePauser(address account) internal {
    pausers.remove(account);
    emit PauserRemoved(account);
  }
}

// File: contracts/lib/openzeppelin-solidity/contracts/lifecycle/Pausable.sol

/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is PauserRole {
  event Paused();
  event Unpaused();

  bool private _paused = false;


  /**
   * @return true if the contract is paused, false otherwise.
   */
  function paused() public view returns(bool) {
    return _paused;
  }

  /**
   * @dev Modifier to make a function callable only when the contract is not paused.
   */
  modifier whenNotPaused() {
    require(!_paused);
    _;
  }

  /**
   * @dev Modifier to make a function callable only when the contract is paused.
   */
  modifier whenPaused() {
    require(_paused);
    _;
  }

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() public onlyPauser whenNotPaused {
    _paused = true;
    emit Paused();
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() public onlyPauser whenPaused {
    _paused = false;
    emit Unpaused();
  }
}

// File: contracts/lib/openzeppelin-solidity/contracts/math/SafeMath.sol

/**
 * @title SafeMath
 * @dev Math operations with safety checks that revert on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, reverts on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
    if (a == 0) {
      return 0;
    }

    uint256 c = a * b;
    require(c / a == b);

    return c;
  }

  /**
  * @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b > 0); // Solidity only automatically asserts 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;
  }

  /**
  * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b <= a);
    uint256 c = a - b;

    return c;
  }

  /**
  * @dev Adds two numbers, reverts on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a);

    return c;
  }

  /**
  * @dev Divides two numbers and returns the remainder (unsigned integer modulo),
  * reverts when dividing by zero.
  */
  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b != 0);
    return a % b;
  }
}

// File: contracts/lib/openzeppelin-solidity/contracts/ownership/Ownable.sol

/**
 * @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 private _owner;


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


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

  /**
   * @return the address of the owner.
   */
  function owner() public view returns(address) {
    return _owner;
  }

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

  /**
   * @return true if `msg.sender` is the owner of the contract.
   */
  function isOwner() public view returns(bool) {
    return msg.sender == _owner;
  }

  /**
   * @dev Allows the current owner to relinquish control of the contract.
   * @notice Renouncing to ownership will leave the contract without an owner.
   * It will not be possible to call the functions with the `onlyOwner`
   * modifier anymore.
   */
  function renounceOwnership() public onlyOwner {
    emit OwnershipRenounced(_owner);
    _owner = address(0);
  }

  /**
   * @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 {
    _transferOwnership(newOwner);
  }

  /**
   * @dev Transfers control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function _transferOwnership(address newOwner) internal {
    require(newOwner != address(0));
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
  }
}

// File: contracts/access/roles/OperatorRole.sol

contract OperatorRole is Ownable {
    using Roles for Roles.Role;

    event OperatorAdded(address indexed account);
    event OperatorRemoved(address indexed account);

    Roles.Role private operators;

    constructor() public {
        operators.add(msg.sender);
    }

    modifier onlyOperator() {
        require(isOperator(msg.sender));
        _;
    }
    
    function isOperator(address account) public view returns (bool) {
        return operators.has(account);
    }

    function addOperator(address account) public onlyOwner() {
        operators.add(account);
        emit OperatorAdded(account);
    }

    function removeOperator(address account) public onlyOwner() {
        operators.remove(account);
        emit OperatorRemoved(account);
    }

}

// File: contracts/access/roles/ReferrerRole.sol

contract ReferrerRole is OperatorRole {
    using Roles for Roles.Role;

    event ReferrerAdded(address indexed account);
    event ReferrerRemoved(address indexed account);

    Roles.Role private referrers;

    uint32 internal index;
    mapping(uint32 => address) internal indexToAddress;
    mapping(address => uint32) internal addressToIndex;

    modifier onlyReferrer() {
        require(isReferrer(msg.sender));
        _;
    }

    function getNumberOfAddresses() public view onlyOperator() returns (uint32) {
        return index;
    }

    function addressOfIndex(uint32 _index) onlyOperator() public view returns (address) {
        return indexToAddress[_index];
    }
    
    function isReferrer(address _account) public view returns (bool) {
        return referrers.has(_account);
    }

    function addReferrer(address _account) public onlyOperator() {
        referrers.add(_account);
        indexToAddress[index] = _account;
        addressToIndex[_account] = index;
        index++;
        emit ReferrerAdded(_account);
    }

    function removeReferrer(address _account) public onlyOperator() {
        referrers.remove(_account);
        indexToAddress[addressToIndex[_account]] = address(0x0);
        emit ReferrerRemoved(_account);
    }

}

// File: contracts/shop/DailyAction.sol

contract DailyAction is Ownable, Pausable {
    using SafeMath for uint256;

    mapping(address => uint256) public latestActionTime;
    uint256 public term;

    event Action(
        address indexed user,
        address indexed referrer,
        uint256 at
    );

    event UpdateTerm(
        uint256 term
    );
    
    constructor() public {
        term = 86400;
    }

    function withdrawEther() external onlyOwner() {
        owner().transfer(address(this).balance);
    }

    function updateTerm(uint256 num) external onlyOwner() {
        term = num;

        emit UpdateTerm(
            term
        );
    }

    function requestDailyActionReward(address referrer) external whenNotPaused() {
        require(!isInTerm(msg.sender), "this sender got daily reward within term");

        emit Action(
            msg.sender,
            referrer,
            block.timestamp
        );

        latestActionTime[msg.sender] = block.timestamp;
    }

    function isInTerm(address sender) public view returns (bool) {
        if (latestActionTime[sender] == 0) {
            return false;
        } else if (block.timestamp >= latestActionTime[sender].add(term)) {
            return false;
        }
        return true;
    }
}

// File: contracts/shop/GumGateway.sol

contract GumGateway is ReferrerRole, Pausable, DailyAction {
    using SafeMath for uint256;

    uint256 internal ethBackRate;
    uint256 public minimumAmount;

    event Sold(
        address indexed user,
        address indexed referrer,
        uint256 value,
        uint256 at
    );
    
    constructor() public {
        minimumAmount = 10000000000000000;
    }
    
    function updateEthBackRate(uint256 _newEthBackRate) external onlyOwner() {
        ethBackRate = _newEthBackRate;
    }

    function updateMinimumAmount(uint256 _newMinimumAmount) external onlyOwner() {
        minimumAmount = _newMinimumAmount;
    }

    function getEthBackRate() external onlyOwner() view returns (uint256) {
        return ethBackRate;
    }

    function withdrawEther() external onlyOwner() {
        owner().transfer(address(this).balance);
    }

    function buy(address _referrer) external payable whenNotPaused() {
        require(msg.value >= minimumAmount, "msg.value should be more than minimum ether amount");
        
        address referrer;
        if (_referrer == msg.sender){
            referrer = address(0x0);
        } else {
            referrer = _referrer;
        }
        if ((referrer != address(0x0)) && isReferrer(referrer)) {
            referrer.transfer(msg.value.mul(ethBackRate).div(100));
        }
        emit Sold(
            msg.sender,
            referrer,
            msg.value,
            block.timestamp
        );
    }

}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"getNumberOfAddresses","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"referrer","type":"address"}],"name":"requestDailyActionReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"num","type":"uint256"}],"name":"updateTerm","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isPauser","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getEthBackRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isOperator","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renouncePauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_account","type":"address"}],"name":"removeReferrer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newEthBackRate","type":"uint256"}],"name":"updateEthBackRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addPauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"sender","type":"address"}],"name":"isInTerm","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"term","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"removeOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minimumAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newMinimumAmount","type":"uint256"}],"name":"updateMinimumAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_account","type":"address"}],"name":"isReferrer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_index","type":"uint32"}],"name":"addressOfIndex","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_referrer","type":"address"}],"name":"buy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"latestActionTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_account","type":"address"}],"name":"addReferrer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":true,"name":"referrer","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"at","type":"uint256"}],"name":"Sold","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":true,"name":"referrer","type":"address"},{"indexed":false,"name":"at","type":"uint256"}],"name":"Action","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"term","type":"uint256"}],"name":"UpdateTerm","type":"event"},{"anonymous":false,"inputs":[],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"PauserAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"PauserRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"ReferrerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"ReferrerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"OperatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"OperatorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

  Contract Creation Code Switch To Opcodes View
60806040526000600760006101000a81548160ff02191690831515021790555034801561002b57600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061008d3360016100cb64010000000002611634179091906401000000009004565b6100ae3360066100cb64010000000002611634179091906401000000009004565b62015180600981905550662386f26fc10000600b81905550610165565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561010757600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b61187d80620001756000396000f300608060405260043610610175576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680632e61319d1461017a5780633696d3aa146101b157806337c35157146101f45780633f4ba83a1461022157806346fbf68e146102385780635c975abb1461029357806360ffc1cf146102c25780636d70f7ae146102ed5780636ef8d66d14610348578063715018a61461035f5780637362377b146103765780637a00e2e31461038d5780637b049a46146103d057806382dc1ec4146103fd5780638456cb59146104405780638da5cb5b146104575780638f32d59b146104ae578063937adbe6146104dd5780639870d7fe14610538578063a10ffbed1461057b578063ac8a584a146105a6578063bb0c8298146105e9578063bb8e5b5714610614578063d64d696814610641578063e52d04041461069c578063f088d5471461070f578063f2fde38b14610745578063f73171f114610788578063fefa9bb1146107df575b600080fd5b34801561018657600080fd5b5061018f610822565b604051808263ffffffff1663ffffffff16815260200191505060405180910390f35b3480156101bd57600080fd5b506101f2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610850565b005b34801561020057600080fd5b5061021f600480360381019080803590602001909291905050506109bc565b005b34801561022d57600080fd5b50610236610a12565b005b34801561024457600080fd5b50610279600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a8a565b604051808215151515815260200191505060405180910390f35b34801561029f57600080fd5b506102a8610aa7565b604051808215151515815260200191505060405180910390f35b3480156102ce57600080fd5b506102d7610abe565b6040518082815260200191505060405180910390f35b3480156102f957600080fd5b5061032e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610adb565b604051808215151515815260200191505060405180910390f35b34801561035457600080fd5b5061035d610af8565b005b34801561036b57600080fd5b50610374610b0e565b005b34801561038257600080fd5b5061038b610bc8565b005b34801561039957600080fd5b506103ce600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c42565b005b3480156103dc57600080fd5b506103fb60048036038101908080359060200190929190505050610d5e565b005b34801561040957600080fd5b5061043e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d7b565b005b34801561044c57600080fd5b50610455610de9565b005b34801561046357600080fd5b5061046c610e62565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104ba57600080fd5b506104c3610e8b565b604051808215151515815260200191505060405180910390f35b3480156104e957600080fd5b5061051e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ee2565b604051808215151515815260200191505060405180910390f35b34801561054457600080fd5b50610579600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fa3565b005b34801561058757600080fd5b50610590611010565b6040518082815260200191505060405180910390f35b3480156105b257600080fd5b506105e7600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611016565b005b3480156105f557600080fd5b506105fe611083565b6040518082815260200191505060405180910390f35b34801561062057600080fd5b5061063f60048036038101908080359060200190929190505050611089565b005b34801561064d57600080fd5b50610682600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110a6565b604051808215151515815260200191505060405180910390f35b3480156106a857600080fd5b506106cd600480360381019080803563ffffffff1690602001909291905050506110c3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610743600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611120565b005b34801561075157600080fd5b50610786600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611346565b005b34801561079457600080fd5b506107c9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611365565b6040518082815260200191505060405180910390f35b3480156107eb57600080fd5b50610820600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061137d565b005b600061082d33610adb565b151561083857600080fd5b600360009054906101000a900463ffffffff16905090565b600760009054906101000a900460ff1615151561086c57600080fd5b61087533610ee2565b151515610910576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001807f746869732073656e64657220676f74206461696c79207265776172642077697481526020017f68696e207465726d00000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f03bee8945a564e58a4243604a426d1168e3654790c5ad819fd04206500e60b36426040518082815260200191505060405180910390a342600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b6109c4610e8b565b15156109cf57600080fd5b806009819055507f42abe072cac69cb13b03255cb2c26297e10970937da5386e8f1ae78c21d2f01c6009546040518082815260200191505060405180910390a150565b610a1b33610a8a565b1515610a2657600080fd5b600760009054906101000a900460ff161515610a4157600080fd5b6000600760006101000a81548160ff0219169083151502179055507fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d1693360405160405180910390a1565b6000610aa082600661150690919063ffffffff16565b9050919050565b6000600760009054906101000a900460ff16905090565b6000610ac8610e8b565b1515610ad357600080fd5b600a54905090565b6000610af182600161150690919063ffffffff16565b9050919050565b610b0c33600661159a90919063ffffffff16565b565b610b16610e8b565b1515610b2157600080fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a260008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b610bd0610e8b565b1515610bdb57600080fd5b610be3610e62565b73ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050158015610c3f573d6000803e3d6000fd5b50565b610c4b33610adb565b1515610c5657600080fd5b610c6a81600261159a90919063ffffffff16565b600060046000600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f68e673b5cfb652e620fba208d02d6b172a0dc242d4497d94a1f92bb5fa92bc3160405160405180910390a250565b610d66610e8b565b1515610d7157600080fd5b80600a8190555050565b610d8433610a8a565b1515610d8f57600080fd5b610da381600661163490919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f860405160405180910390a250565b610df233610a8a565b1515610dfd57600080fd5b600760009054906101000a900460ff16151515610e1957600080fd5b6001600760006101000a81548160ff0219169083151502179055507f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e75260405160405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b600080600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415610f345760009050610f9e565b610f88600954600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116ce90919063ffffffff16565b42101515610f995760009050610f9e565b600190505b919050565b610fab610e8b565b1515610fb657600080fd5b610fca81600161163490919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fac6fa858e9350a46cec16539926e0fde25b7629f84b5a72bffaae4df888ae86d60405160405180910390a250565b60095481565b61101e610e8b565b151561102957600080fd5b61103d81600161159a90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f80c0b871b97b595b16a7741c1b06fed0c6f6f558639f18ccbce50724325dc40d60405160405180910390a250565b600b5481565b611091610e8b565b151561109c57600080fd5b80600b8190555050565b60006110bc82600261150690919063ffffffff16565b9050919050565b60006110ce33610adb565b15156110d957600080fd5b600460008363ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600760009054906101000a900460ff1615151561113e57600080fd5b600b5434101515156111de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001807f6d73672e76616c75652073686f756c64206265206d6f7265207468616e206d6981526020017f6e696d756d20657468657220616d6f756e74000000000000000000000000000081525060400191505060405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561121b576000905061121f565b8190505b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156112615750611260816110a6565b5b156112d5578073ffffffffffffffffffffffffffffffffffffffff166108fc6112a8606461129a600a54346116ef90919063ffffffff16565b61172d90919063ffffffff16565b9081150290604051600060405180830381858888f193505050501580156112d3573d6000803e3d6000fd5b505b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f16dd16959a056953a63cf14bf427881e762e54f03d86b864efea8238dd3b822f3442604051808381526020018281526020019250505060405180910390a35050565b61134e610e8b565b151561135957600080fd5b61136281611757565b50565b60086020528060005260406000206000915090505481565b61138633610adb565b151561139157600080fd5b6113a581600261163490919063ffffffff16565b8060046000600360009054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600360009054906101000a900463ffffffff16600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548163ffffffff021916908363ffffffff1602179055506003600081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff160217905550508073ffffffffffffffffffffffffffffffffffffffff167f51e6bb66cce1aac9478cbafcad3421bf2a600ce8ec3874296c671ab32c68ce9260405160405180910390a250565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561154357600080fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156115d657600080fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561167057600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008082840190508381101515156116e557600080fd5b8091505092915050565b60008060008414156117045760009150611726565b828402905082848281151561171557fe5b0414151561172257600080fd5b8091505b5092915050565b60008060008311151561173f57600080fd5b828481151561174a57fe5b0490508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561179357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820a3d04053bfe91f4b169105e701ecb17b40ec7b9a0fa03abcf459b0c12d76e3ca0029

   Swarm Source:
bzzr://a3d04053bfe91f4b169105e701ecb17b40ec7b9a0fa03abcf459b0c12d76e3ca

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.