ETH Price: $1,998.91 (-0.34%)

Contract

0xAE4d2f099A4e8515CA2FEe6c438Aaa19E0255dD6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Pause71442952019-01-29 14:21:032615 days ago1548771663IN
0xAE4d2f09...9E0255dD6
0 ETH0.000084343
Transfer71440852019-01-29 13:22:512615 days ago1548768171IN
0xAE4d2f09...9E0255dD6
0.69 ETH0.0009035610
Transfer71440242019-01-29 13:05:242615 days ago1548767124IN
0xAE4d2f09...9E0255dD6
0.65 ETH0.0009485741
Transfer71439972019-01-29 12:56:322615 days ago1548766592IN
0xAE4d2f09...9E0255dD6
0.675 ETH0.0009485741
Transfer71439932019-01-29 12:55:462615 days ago1548766546IN
0xAE4d2f09...9E0255dD6
0.67 ETH0.0009485741
Transfer71439662019-01-29 12:48:252615 days ago1548766105IN
0xAE4d2f09...9E0255dD6
0.67 ETH0.0009485741
Transfer71439612019-01-29 12:46:482615 days ago1548766008IN
0xAE4d2f09...9E0255dD6
0.68 ETH0.0009485741
Transfer71439502019-01-29 12:41:332615 days ago1548765693IN
0xAE4d2f09...9E0255dD6
0.63 ETH0.0009485741
Transfer71439392019-01-29 12:38:342615 days ago1548765514IN
0xAE4d2f09...9E0255dD6
0.69 ETH0.0009485741
Transfer71438902019-01-29 12:24:422615 days ago1548764682IN
0xAE4d2f09...9E0255dD6
0.65 ETH0.0009485741
Transfer71438862019-01-29 12:22:482615 days ago1548764568IN
0xAE4d2f09...9E0255dD6
0.68 ETH0.0009485741
Transfer71438812019-01-29 12:21:032615 days ago1548764463IN
0xAE4d2f09...9E0255dD6
0.65 ETH0.0009485741
Transfer71438742019-01-29 12:19:042615 days ago1548764344IN
0xAE4d2f09...9E0255dD6
0.68 ETH0.0009485741
Transfer71438692019-01-29 12:16:442615 days ago1548764204IN
0xAE4d2f09...9E0255dD6
0.68732305 ETH0.0009485741
Transfer71438382019-01-29 12:08:312615 days ago1548763711IN
0xAE4d2f09...9E0255dD6
0.69647163 ETH0.0009485741
Transfer71437632019-01-29 11:46:262615 days ago1548762386IN
0xAE4d2f09...9E0255dD6
123 wei0.000069483
Transfer71437562019-01-29 11:44:412615 days ago1548762281IN
0xAE4d2f09...9E0255dD6
1 wei0.000069483
Transfer71437522019-01-29 11:43:122615 days ago1548762192IN
0xAE4d2f09...9E0255dD6
0.705 ETH0.0009485741
Transfer71437192019-01-29 11:32:452615 days ago1548761565IN
0xAE4d2f09...9E0255dD6
69 wei0.000069483
Transfer71436942019-01-29 11:23:212615 days ago1548761001IN
0xAE4d2f09...9E0255dD6
4.7 ETH0.0022904699
Transfer71436102019-01-29 11:00:372615 days ago1548759637IN
0xAE4d2f09...9E0255dD6
4.6 ETH0.0022904699
Transfer71435922019-01-29 10:56:202615 days ago1548759380IN
0xAE4d2f09...9E0255dD6
4.6 ETH0.0022904699
Transfer71435782019-01-29 10:51:282615 days ago1548759088IN
0xAE4d2f09...9E0255dD6
4.7 ETH0.0016195270
Transfer71434732019-01-29 10:23:502615 days ago1548757430IN
0xAE4d2f09...9E0255dD6
4.6 ETH0.000542136
Transfer71434462019-01-29 10:15:322615 days ago1548756932IN
0xAE4d2f09...9E0255dD6
3 ETH0.000180712
View all transactions

Latest 8 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
-71440852019-01-29 13:22:512615 days ago1548768171
0xAE4d2f09...9E0255dD6
0.69 ETH
-71434732019-01-29 10:23:502615 days ago1548757430
0xAE4d2f09...9E0255dD6
4.6 ETH
-71434462019-01-29 10:15:322615 days ago1548756932
0xAE4d2f09...9E0255dD6
3 ETH
-71432692019-01-29 9:16:492615 days ago1548753409
0xAE4d2f09...9E0255dD6
2.90145178 ETH
-71432662019-01-29 9:16:092615 days ago1548753369
0xAE4d2f09...9E0255dD6
4.32945178 ETH
-71432642019-01-29 9:15:212615 days ago1548753321
0xAE4d2f09...9E0255dD6
2.68845178 ETH
-71432372019-01-29 9:04:132615 days ago1548752653
0xAE4d2f09...9E0255dD6
1.5 ETH
-71393922019-01-28 14:09:552616 days ago1548684595
0xAE4d2f09...9E0255dD6
 Contract Creation0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
URACCrowdSale

Compiler Version
v0.5.2+commit.1df8f40c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2019-01-28
*/

pragma solidity ^0.5.2;

// File: zeppelin-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 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.
   */
  constructor() 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));
    emit OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

}

// File: zeppelin-solidity/contracts/lifecycle/Pausable.sol

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

  bool public paused = false;


  /**
   * @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() onlyOwner whenNotPaused public {
    paused = true;
    emit Pause();
  }

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

// File: zeppelin-solidity/contracts/math/SafeMath.sol

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

// File: zeppelin-solidity/contracts/token/ERC20Basic.sol

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  uint256 public totalSupply;
  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);
}

// File: zeppelin-solidity/contracts/token/BasicToken.sol

/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) balances;

  /**
  * @dev transfer token for a specified address
  * @param _to The address to transfer to.
  * @param _value The amount to be transferred.
  */
  function transfer(address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[msg.sender]);

    // SafeMath.sub will throw if there is not enough balance.
    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    emit Transfer(msg.sender, _to, _value);
    return true;
  }

  /**
  * @dev Gets the balance of the specified address.
  * @param _owner The address to query the the balance of.
  * @return An uint256 representing the amount owned by the passed address.
  */
  function balanceOf(address _owner) public view returns (uint256 balance) {
    return balances[_owner];
  }

}

// File: zeppelin-solidity/contracts/token/ERC20.sol

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
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);
}

// File: zeppelin-solidity/contracts/token/StandardToken.sol

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * @dev https://github.com/ethereum/EIPs/issues/20
 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract StandardToken is ERC20, BasicToken {

  mapping (address => mapping (address => uint256)) internal allowed;


  /**
   * @dev Transfer tokens from one address to another
   * @param _from address The address which you want to send tokens from
   * @param _to address The address which you want to transfer to
   * @param _value uint256 the amount of tokens to be transferred
   */
  function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[_from]);
    require(_value <= allowed[_from][msg.sender]);

    balances[_from] = balances[_from].sub(_value);
    balances[_to] = balances[_to].add(_value);
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
    emit Transfer(_from, _to, _value);
    return true;
  }

  /**
   * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
   *
   * Beware that changing an allowance with this method brings the risk that someone may use both the old
   * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
   * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   * @param _spender The address which will spend the funds.
   * @param _value The amount of tokens to be spent.
   */
  function approve(address _spender, uint256 _value) public returns (bool) {
    allowed[msg.sender][_spender] = _value;
    emit Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param _owner address The address which owns the funds.
   * @param _spender address The address which will spend the funds.
   * @return A uint256 specifying the amount of tokens still available for the spender.
   */
  function allowance(address _owner, address _spender) public view returns (uint256) {
    return allowed[_owner][_spender];
  }

  /**
   * @dev Increase the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To increment
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _addedValue The amount of tokens to increase the allowance by.
   */
  function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
    allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  /**
   * @dev Decrease the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To decrement
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _subtractedValue The amount of tokens to decrease the allowance by.
   */
  function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
    uint oldValue = allowed[msg.sender][_spender];
    if (_subtractedValue > oldValue) {
      allowed[msg.sender][_spender] = 0;
    } else {
      allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
    }
    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

}

// File: zeppelin-solidity/contracts/token/PausableToken.sol

/**
 * @title Pausable token
 *
 * @dev StandardToken modified with pausable transfers.
 **/

contract PausableToken is StandardToken, Pausable {

  function transfer(address _to, uint256 _value) public whenNotPaused returns (bool) {
    return super.transfer(_to, _value);
  }

  function transferFrom(address _from, address _to, uint256 _value) public whenNotPaused returns (bool) {
    return super.transferFrom(_from, _to, _value);
  }

  function approve(address _spender, uint256 _value) public whenNotPaused returns (bool) {
    return super.approve(_spender, _value);
  }

  function increaseApproval(address _spender, uint _addedValue) public whenNotPaused returns (bool success) {
    return super.increaseApproval(_spender, _addedValue);
  }

  function decreaseApproval(address _spender, uint _subtractedValue) public whenNotPaused returns (bool success) {
    return super.decreaseApproval(_spender, _subtractedValue);
  }
}

// File: contracts/URACToken.sol

/// @title URACToken Contract
/// For more information about this token sale, please visit http://www.uranus.io
/// @author reedhong
contract URACToken is PausableToken {
    using SafeMath for uint;

    /// Constant token specific fields
    string public constant name = "URACToken";
    string public constant symbol = "URAC";
    uint public constant decimals = 18;

    /// URAC total tokens supply
    uint public currentSupply;

    /// Fields that are only changed in constructor
    /// URAC sale  contract
    address public minter;

    /// Fields that can be changed by functions
    mapping (address => uint) public lockedBalances;

    /// claim flag
    bool public claimedFlag;

    /*
     * MODIFIERS
     */
    modifier onlyMinter {
        require(msg.sender == minter);
        _;
    }

    modifier canClaimed {
        require(claimedFlag == true);
        _;
    }

    modifier maxTokenAmountNotReached (uint amount){
        require(currentSupply.add(amount) <= totalSupply);
        _;
    }

    modifier validAddress( address addr ) {
        require(addr != address(0x0));
        require(addr != address(this));
        _;
    }

    /**
     * CONSTRUCTOR
     *
     * @dev Initialize the URAC Token
     * @param _minter The URACCrowdSale Contract
     * @param _maxTotalSupply total supply token
     */
    constructor(address _minter, address _admin, uint _maxTotalSupply)
        public
        validAddress(_admin)
        validAddress(_minter)
        {
        minter = _minter;
        totalSupply = _maxTotalSupply;
        claimedFlag = false;
        transferOwnership(_admin);
    }

    function mintex(uint amount) public onlyOwner {
        balances[msg.sender] = balances[msg.sender].add(amount);
        totalSupply = totalSupply.add(amount);
    }

    /**
     * EXTERNAL FUNCTION
     *
     * @dev URACCrowdSale contract instance mint token
     * @param receipent The destination account owned mint tokens
     * @param amount The amount of mint token
     * @param isLock Lock token flag
     * be sent to this address.
     */

    function mint(address receipent, uint amount, bool isLock)
        external
        onlyMinter
        maxTokenAmountNotReached(amount)
        returns (bool)
    {
        if (isLock ) {
            lockedBalances[receipent] = lockedBalances[receipent].add(amount);
        } else {
            balances[receipent] = balances[receipent].add(amount);
        }
        currentSupply = currentSupply.add(amount);
        return true;
    }


    function setClaimedFlag(bool flag)
        public
        onlyOwner
    {
        claimedFlag = flag;
    }

     /*
     * PUBLIC FUNCTIONS
     */

    /// @dev Locking period has passed - Locked tokens have turned into tradeable
    function claimTokens(address[] calldata receipents)
        external
        canClaimed
    {
        for (uint i = 0; i < receipents.length; i++) {
            address receipent = receipents[i];
            //balances[receipent] = balances[receipent].add(lockedBalances[receipent]);
            balances[msg.sender] = balances[msg.sender].add(lockedBalances[receipent]);
            transfer(receipent, lockedBalances[receipent]);
            lockedBalances[receipent] = 0;
        }
    }
}

// File: contracts/URACCrowdSale.sol

/// @title URACCrowdSale Contract
/// For more information about this token sale, please visit http://www.uranus.io
/// @author reedhong
contract URACCrowdSale is Pausable {
    using SafeMath for uint;

    /// Constant fields
    /// URAC total tokens supply
    uint public constant URAC_TOTAL_SUPPLY = 3500000000 ether;
    uint public constant MAX_SALE_DURATION = 10 days;
    uint public constant STAGE_1_TIME =  3 days;
    uint public constant STAGE_2_TIME = 7 days;
    uint public constant MIN_LIMIT = 0.1 ether;
    uint public constant MAX_STAGE_1_LIMIT = 10 ether;

    //uint public constant STAGE_1 = 1;
    //uint public constant STAGE_2 = 2;
    enum STAGE {STAGE_1, STAGE_2}

    /// Exchange rates
    uint public  exchangeRate = 6200;


    uint public constant MINER_STAKE = 4000;    // for minter
    uint public constant OPEN_SALE_STAKE = 158; // for public
    uint public constant OTHER_STAKE = 5842;    // for others


    uint public constant DIVISOR_STAKE = 10000;

    // max open sale tokens
    uint public constant MAX_OPEN_SOLD = URAC_TOTAL_SUPPLY * OPEN_SALE_STAKE / DIVISOR_STAKE;
    uint public constant STAKE_MULTIPLIER = URAC_TOTAL_SUPPLY / DIVISOR_STAKE;

    /// All deposited ETH will be instantly forwarded to this address.
    address payable public wallet;
    address payable public minerAddress;
    address payable public otherAddress;

    /// Contribution start time
    uint public startTime;
    /// Contribution end time
    uint public endTime;

    /// Fields that can be changed by functions
    /// Accumulator for open sold tokens
    uint public openSoldTokens;
    /// ERC20 compilant URAC token contact instance
    URACToken public uracToken;

    /// tags show address can join in open sale
    mapping (address => bool) public fullWhiteList;

    mapping (address => uint) public firstStageFund;
 
    /*
     * EVENTS
     */
    event NewSale(address indexed destAddress, uint ethCost, uint gotTokens);
    event NewWallet(address onwer, address oldWallet, address newWallet);

    modifier notEarlierThan(uint x) {
        require(now >= x);
        _;
    }

    modifier earlierThan(uint x) {
        require(now < x);
        _;
    }

    modifier ceilingNotReached() {
        require(openSoldTokens < MAX_OPEN_SOLD);
        _;
    }

    modifier isSaleEnded() {
        require(now > endTime || openSoldTokens >= MAX_OPEN_SOLD);
        _;
    }

    modifier validAddress( address addr ) {
        require(addr != address(0x0));
        require(addr != address(this));
        _;
    }

    constructor (
        address payable _wallet,
        address payable _minerAddress,
        address payable _otherAddress
        ) public
        validAddress(_wallet)
        validAddress(_minerAddress)
        validAddress(_otherAddress)
        {
        paused = true;
        wallet = _wallet;
        minerAddress = _minerAddress;
        otherAddress = _otherAddress;

        openSoldTokens = 0;
        /// Create urac token contract instance
        uracToken = new URACToken(address(this), msg.sender, URAC_TOTAL_SUPPLY);

        uracToken.mint(minerAddress, MINER_STAKE * STAKE_MULTIPLIER, false);
        uracToken.mint(otherAddress, OTHER_STAKE * STAKE_MULTIPLIER, false);
    }

    function setExchangeRate(uint256 rate)
        public
        onlyOwner
        earlierThan(endTime)
    {
        exchangeRate = rate;
    }

    function setStartTime(uint _startTime )
        public
        onlyOwner
    {
        startTime = _startTime;
        endTime = startTime + MAX_SALE_DURATION;
    }

    /// @dev batch set quota for user admin
    /// if openTag <=0, removed
    function setWhiteList(address[] calldata users, bool openTag)
        external
        onlyOwner
        earlierThan(endTime)
    {
        require(saleNotEnd());
        for (uint i = 0; i < users.length; i++) {
            fullWhiteList[users[i]] = openTag;
        }
    }


    /// @dev batch set quota for early user quota
    /// if openTag <=0, removed
    function addWhiteList(address user, bool openTag)
        external
        onlyOwner
        earlierThan(endTime)
    {
        require(saleNotEnd());
        fullWhiteList[user] = openTag;

    }

    /// @dev Emergency situation
    function setWallet(address payable newAddress)  external onlyOwner {
        emit NewWallet(owner, wallet, newAddress);
        wallet = newAddress;
    }

    /// @return true if sale not ended, false otherwise.
    function saleNotEnd() view internal returns (bool) {
        return now < endTime && openSoldTokens < MAX_OPEN_SOLD;
    }

    /**
     * Fallback function
     *
     * @dev If anybody sends Ether directly to this  contract, consider he is getting URAC token
     */
    function ()external payable {
        buyURAC(msg.sender);
    }

    /*
     * PUBLIC FUNCTIONS
     */
    /// @dev Exchange msg.value ether to URAC for account recepient
    /// @param receipient URAC tokens receiver
    function buyURAC(address receipient)
        internal
        whenNotPaused
        ceilingNotReached
        notEarlierThan(startTime)
        earlierThan(endTime)
        validAddress(receipient)
        returns (bool)
    {
        // Do not allow contracts to game the system
        require(!isContract(msg.sender));
        require(tx.gasprice <= 10000000000 wei);
        require(msg.value >= MIN_LIMIT);

        bool inWhiteListTag = fullWhiteList[receipient];
        require(inWhiteListTag == true);

        STAGE stage = STAGE.STAGE_2;
        if ( startTime <= now && now < startTime + STAGE_1_TIME ) {
            stage = STAGE.STAGE_1;
            require(msg.value <= MAX_STAGE_1_LIMIT);
            uint fund1 = firstStageFund[receipient];
            require (fund1 < MAX_STAGE_1_LIMIT );
        }

        doBuy(receipient, stage);

        return true;
    }


    /// @dev Buy URAC token normally
    function doBuy(address receipient, STAGE stage) internal {
        // protect partner quota in stage one
        uint value = msg.value;

        if ( stage == STAGE.STAGE_1 ) {
            uint fund1 = firstStageFund[receipient];
            fund1 = fund1.add(value);
            if (fund1 > MAX_STAGE_1_LIMIT ) {
                uint refund1 = fund1.sub(MAX_STAGE_1_LIMIT);
                value = value.sub(refund1);
                msg.sender.transfer(refund1);
            }
        }

        uint tokenAvailable = MAX_OPEN_SOLD.sub(openSoldTokens);
        require(tokenAvailable > 0);
        uint toFund;
        uint toCollect;
        (toFund, toCollect) = costAndBuyTokens(tokenAvailable, value);
        if (toFund > 0) {
            require(uracToken.mint(receipient, toCollect, true));
            wallet.transfer(toFund);
            openSoldTokens = openSoldTokens.add(toCollect);
            emit NewSale(receipient, toFund, toCollect);
        }

        // not enough token sale, just return eth
        uint toReturn = value.sub(toFund);
        if (toReturn > 0) {
            msg.sender.transfer(toReturn);
        }

        if ( stage == STAGE.STAGE_1 ) {
            firstStageFund[receipient] = firstStageFund[receipient].add(toFund);
        }
    }

    /// @dev Utility function for calculate available tokens and cost ethers
    function costAndBuyTokens(uint availableToken, uint value) view internal returns (uint costValue, uint getTokens) {
        // all conditions has checked in the caller functions
        getTokens = exchangeRate * value;

        if (availableToken >= getTokens) {
            costValue = value;
        } else {
            costValue = availableToken / exchangeRate;
            getTokens = availableToken;
        }
    }

    /// @dev Internal function to determine if an address is a contract
    /// @param _addr The address being queried
    /// @return True if `_addr` is a contract
    function isContract(address payable _addr) view internal returns(bool) {
        uint size;
        if (_addr == 0x0000000000000000000000000000000000000000) {
            return false;
        }

        assembly {
            size := extcodesize(_addr)
        }
        return size > 0;
    }
}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[],"name":"uracToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_OPEN_SOLD","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"endTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"OTHER_STAKE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"exchangeRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_startTime","type":"uint256"}],"name":"setStartTime","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"DIVISOR_STAKE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"MIN_LIMIT","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"wallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MINER_STAKE","outputs":[{"name":"","type":"uint256"}],"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":"STAGE_1_TIME","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_STAGE_1_LIMIT","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":"OPEN_SALE_STAKE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"URAC_TOTAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"user","type":"address"},{"name":"openTag","type":"bool"}],"name":"addWhiteList","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"STAGE_2_TIME","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"openSoldTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"otherAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"rate","type":"uint256"}],"name":"setExchangeRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newAddress","type":"address"}],"name":"setWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"users","type":"address[]"},{"name":"openTag","type":"bool"}],"name":"setWhiteList","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"firstStageFund","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_SALE_DURATION","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"fullWhiteList","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"STAKE_MULTIPLIER","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_wallet","type":"address"},{"name":"_minerAddress","type":"address"},{"name":"_otherAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"destAddress","type":"address"},{"indexed":false,"name":"ethCost","type":"uint256"},{"indexed":false,"name":"gotTokens","type":"uint256"}],"name":"NewSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"onwer","type":"address"},{"indexed":false,"name":"oldWallet","type":"address"},{"indexed":false,"name":"newWallet","type":"address"}],"name":"NewWallet","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

60806040526000805460a060020a60ff02191690556118386001553480156200002757600080fd5b50604051606080620023dc833981018060405260608110156200004957600080fd5b508051602082015160409092015160008054600160a060020a0319163317905590919082600160a060020a03811615156200008357600080fd5b600160a060020a0381163014156200009a57600080fd5b82600160a060020a0381161515620000b157600080fd5b600160a060020a038116301415620000c857600080fd5b82600160a060020a0381161515620000df57600080fd5b600160a060020a038116301415620000f657600080fd5b6000805460a060020a60ff0219167401000000000000000000000000000000000000000017815560028054600160a060020a03808a16600160a060020a03199283161790925560038054898416908316179055600480549288169290911691909117905560075530336b0b4f21d42f59c0d52c0000006200017662000346565b600160a060020a039384168152919092166020820152604080820192909252905190819003606001906000f080158015620001b5573d6000803e3d6000fd5b5060088054600160a060020a031916600160a060020a039283161790819055600354604080517fd1a1beb400000000000000000000000000000000000000000000000000000000815291841660048301526b04860d8812f0b3887800000060248301526000604483018190529051929093169263d1a1beb4926064808401936020939083900390910190829087803b1580156200025157600080fd5b505af115801562000266573d6000803e3d6000fd5b505050506040513d60208110156200027d57600080fd5b505060085460048054604080517fd1a1beb4000000000000000000000000000000000000000000000000000000008152600160a060020a03928316938101939093526b069b56111aa3625e3980000060248401526000604484018190529051919093169263d1a1beb492606480820193602093909283900390910190829087803b1580156200030b57600080fd5b505af115801562000320573d6000803e3d6000fd5b505050506040513d60208110156200033757600080fd5b50620003579650505050505050565b6040516110b9806200132383390190565b610fbc80620003676000396000f3fe608060405260043610610200576000357c0100000000000000000000000000000000000000000000000000000000900480638456cb591161011f578063db068e0e116100b2578063f906cc7b11610081578063f906cc7b14610592578063fc6e33ee146105c5578063fcdbe6df146105da578063ff70e8d91461060d57610200565b8063db068e0e14610483578063deaa59df146104ad578063e43f696e146104e0578063f2fde38b1461055f57610200565b8063a718d11b116100ee578063a718d11b14610409578063af57d23614610444578063b2450b1514610459578063c4e6c6041461046e57610200565b80638456cb59146103b55780638da5cb5b146103ca57806391aadff6146103df578063a6126595146103f457610200565b80634d1a08cd116101975780635c975abb116101665780635c975abb1461034d5780635d6470a41461037657806378e979251461038b5780637a0b0a3f146103a057610200565b80634d1a08cd146102f9578063521eb2731461030e57806359275c84146103235780635c314df01461033857610200565b80633ba0b9a9116101d35780633ba0b9a91461028e5780633e0a322d146102a35780633f423afe146102cf5780633f4ba83a146102e457610200565b80630f0922fa1461020c5780632f86f2ee1461023d5780633197cbb61461026457806337828c5214610279575b61020933610622565b50005b34801561021857600080fd5b50610221610781565b60408051600160a060020a039092168252519081900360200190f35b34801561024957600080fd5b50610252610790565b60408051918252519081900360200190f35b34801561027057600080fd5b506102526107a6565b34801561028557600080fd5b506102526107ac565b34801561029a57600080fd5b506102526107b2565b3480156102af57600080fd5b506102cd600480360360208110156102c657600080fd5b50356107b8565b005b3480156102db57600080fd5b506102526107de565b3480156102f057600080fd5b506102cd6107e4565b34801561030557600080fd5b5061025261085a565b34801561031a57600080fd5b50610221610866565b34801561032f57600080fd5b50610221610875565b34801561034457600080fd5b50610252610884565b34801561035957600080fd5b5061036261088a565b604080519115158252519081900360200190f35b34801561038257600080fd5b5061025261089a565b34801561039757600080fd5b506102526108a1565b3480156103ac57600080fd5b506102526108a7565b3480156103c157600080fd5b506102cd6108b3565b3480156103d657600080fd5b5061022161092e565b3480156103eb57600080fd5b5061025261093d565b34801561040057600080fd5b50610252610942565b34801561041557600080fd5b506102cd6004803603604081101561042c57600080fd5b50600160a060020a0381351690602001351515610952565b34801561045057600080fd5b506102526109b7565b34801561046557600080fd5b506102526109be565b34801561047a57600080fd5b506102216109c4565b34801561048f57600080fd5b506102cd600480360360208110156104a657600080fd5b50356109d3565b3480156104b957600080fd5b506102cd600480360360208110156104d057600080fd5b5035600160a060020a03166109ff565b3480156104ec57600080fd5b506102cd6004803603604081101561050357600080fd5b81019060208101813564010000000081111561051e57600080fd5b82018360208201111561053057600080fd5b8035906020019184602083028401116401000000008311171561055257600080fd5b9193509150351515610a97565b34801561056b57600080fd5b506102cd6004803603602081101561058257600080fd5b5035600160a060020a0316610b2c565b34801561059e57600080fd5b50610252600480360360208110156105b557600080fd5b5035600160a060020a0316610bc0565b3480156105d157600080fd5b50610252610bd2565b3480156105e657600080fd5b50610362600480360360208110156105fd57600080fd5b5035600160a060020a0316610bd9565b34801561061957600080fd5b50610252610bee565b6000805460a060020a900460ff161561063a57600080fd5b6007546a2dbe3b01c5aaee7a8000001161065357600080fd5b6005544281111561066357600080fd5b60065442811161067257600080fd5b83600160a060020a038116151561068857600080fd5b600160a060020a03811630141561069e57600080fd5b6106a733610c03565b156106b157600080fd5b6402540be4003a11156106c357600080fd5b67016345785d8a00003410156106d857600080fd5b600160a060020a03851660009081526009602052604090205460ff1680151560011461070357600080fd5b600554600190421080159061071e57506203f4806005540142105b1561076a57506000678ac7230489e8000034111561073b57600080fd5b600160a060020a0387166000908152600a6020526040902054678ac7230489e80000811061076857600080fd5b505b6107748782610c2d565b5060019695505050505050565b600854600160a060020a031681565b6127106c06fad6e0f539650391280000005b0481565b60065481565b6116d281565b60015481565b600054600160a060020a031633146107cf57600080fd5b6005819055620d2f0001600655565b61271081565b600054600160a060020a031633146107fb57600080fd5b60005460a060020a900460ff16151561081357600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b67016345785d8a000081565b600254600160a060020a031681565b600354600160a060020a031681565b610fa081565b60005460a060020a900460ff1681565b6203f48081565b60055481565b678ac7230489e8000081565b600054600160a060020a031633146108ca57600080fd5b60005460a060020a900460ff16156108e157600080fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b609e81565b6b0b4f21d42f59c0d52c00000081565b600054600160a060020a0316331461096957600080fd5b60065442811161097857600080fd5b610980610f12565b151561098b57600080fd5b50600160a060020a03919091166000908152600960205260409020805460ff1916911515919091179055565b62093a8081565b60075481565b600454600160a060020a031681565b600054600160a060020a031633146109ea57600080fd5b6006544281116109f957600080fd5b50600155565b600054600160a060020a03163314610a1657600080fd5b60005460025460408051600160a060020a03938416815291831660208301529183168183015290517fd710eaacc9582acea58adbbda80c3bcef84d92e024865f9cb17a9d686cbccead9181900360600190a16002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a03163314610aae57600080fd5b600654428111610abd57600080fd5b610ac5610f12565b1515610ad057600080fd5b60005b83811015610b25578260096000878785818110610aec57fe5b60209081029290920135600160a060020a0316835250810191909152604001600020805460ff1916911515919091179055600101610ad3565b5050505050565b600054600160a060020a03163314610b4357600080fd5b600160a060020a0381161515610b5857600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600a6020526000908152604090205481565b620d2f0081565b60096020526000908152604090205460ff1681565b6127106b0b4f21d42f59c0d52c0000006107a2565b600080600160a060020a0383161515610c20576000915050610c28565b50506000813b115b919050565b346000826001811115610c3c57fe5b1415610cde57600160a060020a0383166000908152600a6020526040902054610c6b818363ffffffff610f3616565b9050678ac7230489e80000811115610cdc576000610c9782678ac7230489e8000063ffffffff610f4c16565b9050610ca9838263ffffffff610f4c16565b604051909350339082156108fc029083906000818181858888f19350505050158015610cd9573d6000803e3d6000fd5b50505b505b600754600090610cfa906a2dbe3b01c5aaee7a80000090610f4c565b905060008111610d0957600080fd5b600080610d168385610f5e565b90925090506000821115610e6657600854604080517fd1a1beb4000000000000000000000000000000000000000000000000000000008152600160a060020a03898116600483015260248201859052600160448301529151919092169163d1a1beb49160648083019260209291908290030181600087803b158015610d9a57600080fd5b505af1158015610dae573d6000803e3d6000fd5b505050506040513d6020811015610dc457600080fd5b50511515610dd157600080fd5b600254604051600160a060020a039091169083156108fc029084906000818181858888f19350505050158015610e0b573d6000803e3d6000fd5b50600754610e1f908263ffffffff610f3616565b60075560408051838152602081018390528151600160a060020a038916927fa3ed4207b1480804a4590a74f4b9cc310dc0fc839af8d10e2141ca3b72fd9348928290030190a25b6000610e78858463ffffffff610f4c16565b90506000811115610eb257604051339082156108fc029083906000818181858888f19350505050158015610eb0573d6000803e3d6000fd5b505b6000866001811115610ec057fe5b1415610f0957600160a060020a0387166000908152600a6020526040902054610eef908463ffffffff610f3616565b600160a060020a0388166000908152600a60205260409020555b50505050505050565b600060065442108015610f3157506007546a2dbe3b01c5aaee7a800000115b905090565b600082820183811015610f4557fe5b9392505050565b600082821115610f5857fe5b50900390565b6001546000908202808410610f7557829150610f89565b60015484811515610f8257fe5b0491508390505b925092905056fea165627a7a72305820363cb706b66b94682d91647868faecb30ae173161e9d2e43ef05330bdd5bb148002960806040526003805460a060020a60ff021916905534801561002057600080fd5b506040516060806110b98339810180604052606081101561004057600080fd5b508051602082015160409092015160038054600160a060020a0319163317905590919081600160a060020a038116151561007957600080fd5b600160a060020a03811630141561008f57600080fd5b83600160a060020a03811615156100a557600080fd5b600160a060020a0381163014156100bb57600080fd5b60058054600160a060020a031916600160a060020a03871617905560008390556007805460ff191690556100f784640100000000610101810204565b5050505050610189565b600354600160a060020a0316331461011857600080fd5b600160a060020a038116151561012d57600080fd5b600354604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360038054600160a060020a031916600160a060020a0392909216919091179055565b610f21806101986000396000f3fe608060405234801561001057600080fd5b5060043610610175576000357c01000000000000000000000000000000000000000000000000000000009004806370a08231116100e0578063a976204f11610099578063a976204f146103b0578063d1a1beb4146103cd578063d73dd62314610401578063dd62ed3e1461042d578063eef72a3c1461045b578063f2fde38b146104cb57610175565b806370a082311461033e578063771282f6146103645780638456cb591461036c5780638da5cb5b1461037457806395d89b411461037c578063a9059cbb1461038457610175565b8063313ce56711610132578063313ce567146102d15780633f4ba83a146102d957806343b6c7d0146102e357806344e2adeb146103025780635c975abb1461030a578063661884631461031257610175565b80630483a7f61461017a57806306fdde03146101b2578063075461721461022f578063095ea7b31461025357806318160ddd1461029357806323b872dd1461029b575b600080fd5b6101a06004803603602081101561019057600080fd5b5035600160a060020a03166104f1565b60408051918252519081900360200190f35b6101ba610503565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f45781810151838201526020016101dc565b50505050905090810190601f1680156102215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61023761053a565b60408051600160a060020a039092168252519081900360200190f35b61027f6004803603604081101561026957600080fd5b50600160a060020a038135169060200135610549565b604080519115158252519081900360200190f35b6101a0610574565b61027f600480360360608110156102b157600080fd5b50600160a060020a0381358116916020810135909116906040013561057a565b6101a06105a7565b6102e16105ac565b005b6102e1600480360360208110156102f957600080fd5b50351515610624565b61027f61064e565b61027f610657565b61027f6004803603604081101561032857600080fd5b50600160a060020a038135169060200135610667565b6101a06004803603602081101561035457600080fd5b5035600160a060020a031661068b565b6101a06106a6565b6102e16106ac565b610237610729565b6101ba610738565b61027f6004803603604081101561039a57600080fd5b50600160a060020a03813516906020013561076f565b6102e1600480360360208110156103c657600080fd5b5035610793565b61027f600480360360608110156103e357600080fd5b50600160a060020a03813516906020810135906040013515156107f4565b61027f6004803603604081101561041757600080fd5b50600160a060020a0381351690602001356108e3565b6101a06004803603604081101561044357600080fd5b50600160a060020a0381358116916020013516610907565b6102e16004803603602081101561047157600080fd5b81019060208101813564010000000081111561048c57600080fd5b82018360208201111561049e57600080fd5b803590602001918460208302840111640100000000831117156104c057600080fd5b509092509050610932565b6102e1600480360360208110156104e157600080fd5b5035600160a060020a03166109f4565b60066020526000908152604090205481565b60408051808201909152600981527f55524143546f6b656e0000000000000000000000000000000000000000000000602082015281565b600554600160a060020a031681565b60035460009060a060020a900460ff161561056357600080fd5b61056d8383610a89565b9392505050565b60005481565b60035460009060a060020a900460ff161561059457600080fd5b61059f848484610aef565b949350505050565b601281565b600354600160a060020a031633146105c357600080fd5b60035460a060020a900460ff1615156105db57600080fd5b6003805474ff0000000000000000000000000000000000000000191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b600354600160a060020a0316331461063b57600080fd5b6007805460ff1916911515919091179055565b60075460ff1681565b60035460a060020a900460ff1681565b60035460009060a060020a900460ff161561068157600080fd5b61056d8383610c68565b600160a060020a031660009081526001602052604090205490565b60045481565b600354600160a060020a031633146106c357600080fd5b60035460a060020a900460ff16156106da57600080fd5b6003805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b600354600160a060020a031681565b60408051808201909152600481527f5552414300000000000000000000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff161561078957600080fd5b61056d8383610d58565b600354600160a060020a031633146107aa57600080fd5b336000908152600160205260409020546107ca908263ffffffff610e3b16565b33600090815260016020526040812091909155546107ee908263ffffffff610e3b16565b60005550565b600554600090600160a060020a0316331461080e57600080fd5b8260005461082782600454610e3b90919063ffffffff16565b111561083257600080fd5b821561087f57600160a060020a038516600090815260066020526040902054610861908563ffffffff610e3b16565b600160a060020a0386166000908152600660205260409020556108c2565b600160a060020a0385166000908152600160205260409020546108a8908563ffffffff610e3b16565b600160a060020a0386166000908152600160205260409020555b6004546108d5908563ffffffff610e3b16565b600455506001949350505050565b60035460009060a060020a900460ff16156108fd57600080fd5b61056d8383610e4a565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60075460ff16151560011461094657600080fd5b60005b818110156109ef57600083838381811061095f57fe5b60209081029290920135600160a060020a0316600081815260068452604080822054338352600190955290205490935061099b92909150610e3b565b33600090815260016020908152604080832093909355600160a060020a03841682526006905220546109ce90829061076f565b50600160a060020a0316600090815260066020526040812055600101610949565b505050565b600354600160a060020a03163314610a0b57600080fd5b600160a060020a0381161515610a2057600080fd5b600354604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b6000600160a060020a0383161515610b0657600080fd5b600160a060020a038416600090815260016020526040902054821115610b2b57600080fd5b600160a060020a0384166000908152600260209081526040808320338452909152902054821115610b5b57600080fd5b600160a060020a038416600090815260016020526040902054610b84908363ffffffff610ee316565b600160a060020a038086166000908152600160205260408082209390935590851681522054610bb9908363ffffffff610e3b16565b600160a060020a038085166000908152600160209081526040808320949094559187168152600282528281203382529091522054610bfd908363ffffffff610ee316565b600160a060020a03808616600081815260026020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b336000908152600260209081526040808320600160a060020a038616845290915281205480831115610cbd57336000908152600260209081526040808320600160a060020a0388168452909152812055610cf2565b610ccd818463ffffffff610ee316565b336000908152600260209081526040808320600160a060020a03891684529091529020555b336000818152600260209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b6000600160a060020a0383161515610d6f57600080fd5b33600090815260016020526040902054821115610d8b57600080fd5b33600090815260016020526040902054610dab908363ffffffff610ee316565b3360009081526001602052604080822092909255600160a060020a03851681522054610ddd908363ffffffff610e3b16565b600160a060020a0384166000818152600160209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b60008282018381101561056d57fe5b336000908152600260209081526040808320600160a060020a0386168452909152812054610e7e908363ffffffff610e3b16565b336000818152600260209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600082821115610eef57fe5b5090039056fea165627a7a7230582068921c4264929e0e96a6a85216f4901e22f67a43d81e3fb565c67e30955a074f00290000000000000000000000005848f10bb9756ea63e241a6cbc4495d4c7386fad00000000000000000000000068462a992bd906ad025e0fa9a5a57ffe10e65a70000000000000000000000000036e080e85fcb19ade4ca5f4abaee8c199e6c4d5

Deployed Bytecode

0x608060405260043610610200576000357c0100000000000000000000000000000000000000000000000000000000900480638456cb591161011f578063db068e0e116100b2578063f906cc7b11610081578063f906cc7b14610592578063fc6e33ee146105c5578063fcdbe6df146105da578063ff70e8d91461060d57610200565b8063db068e0e14610483578063deaa59df146104ad578063e43f696e146104e0578063f2fde38b1461055f57610200565b8063a718d11b116100ee578063a718d11b14610409578063af57d23614610444578063b2450b1514610459578063c4e6c6041461046e57610200565b80638456cb59146103b55780638da5cb5b146103ca57806391aadff6146103df578063a6126595146103f457610200565b80634d1a08cd116101975780635c975abb116101665780635c975abb1461034d5780635d6470a41461037657806378e979251461038b5780637a0b0a3f146103a057610200565b80634d1a08cd146102f9578063521eb2731461030e57806359275c84146103235780635c314df01461033857610200565b80633ba0b9a9116101d35780633ba0b9a91461028e5780633e0a322d146102a35780633f423afe146102cf5780633f4ba83a146102e457610200565b80630f0922fa1461020c5780632f86f2ee1461023d5780633197cbb61461026457806337828c5214610279575b61020933610622565b50005b34801561021857600080fd5b50610221610781565b60408051600160a060020a039092168252519081900360200190f35b34801561024957600080fd5b50610252610790565b60408051918252519081900360200190f35b34801561027057600080fd5b506102526107a6565b34801561028557600080fd5b506102526107ac565b34801561029a57600080fd5b506102526107b2565b3480156102af57600080fd5b506102cd600480360360208110156102c657600080fd5b50356107b8565b005b3480156102db57600080fd5b506102526107de565b3480156102f057600080fd5b506102cd6107e4565b34801561030557600080fd5b5061025261085a565b34801561031a57600080fd5b50610221610866565b34801561032f57600080fd5b50610221610875565b34801561034457600080fd5b50610252610884565b34801561035957600080fd5b5061036261088a565b604080519115158252519081900360200190f35b34801561038257600080fd5b5061025261089a565b34801561039757600080fd5b506102526108a1565b3480156103ac57600080fd5b506102526108a7565b3480156103c157600080fd5b506102cd6108b3565b3480156103d657600080fd5b5061022161092e565b3480156103eb57600080fd5b5061025261093d565b34801561040057600080fd5b50610252610942565b34801561041557600080fd5b506102cd6004803603604081101561042c57600080fd5b50600160a060020a0381351690602001351515610952565b34801561045057600080fd5b506102526109b7565b34801561046557600080fd5b506102526109be565b34801561047a57600080fd5b506102216109c4565b34801561048f57600080fd5b506102cd600480360360208110156104a657600080fd5b50356109d3565b3480156104b957600080fd5b506102cd600480360360208110156104d057600080fd5b5035600160a060020a03166109ff565b3480156104ec57600080fd5b506102cd6004803603604081101561050357600080fd5b81019060208101813564010000000081111561051e57600080fd5b82018360208201111561053057600080fd5b8035906020019184602083028401116401000000008311171561055257600080fd5b9193509150351515610a97565b34801561056b57600080fd5b506102cd6004803603602081101561058257600080fd5b5035600160a060020a0316610b2c565b34801561059e57600080fd5b50610252600480360360208110156105b557600080fd5b5035600160a060020a0316610bc0565b3480156105d157600080fd5b50610252610bd2565b3480156105e657600080fd5b50610362600480360360208110156105fd57600080fd5b5035600160a060020a0316610bd9565b34801561061957600080fd5b50610252610bee565b6000805460a060020a900460ff161561063a57600080fd5b6007546a2dbe3b01c5aaee7a8000001161065357600080fd5b6005544281111561066357600080fd5b60065442811161067257600080fd5b83600160a060020a038116151561068857600080fd5b600160a060020a03811630141561069e57600080fd5b6106a733610c03565b156106b157600080fd5b6402540be4003a11156106c357600080fd5b67016345785d8a00003410156106d857600080fd5b600160a060020a03851660009081526009602052604090205460ff1680151560011461070357600080fd5b600554600190421080159061071e57506203f4806005540142105b1561076a57506000678ac7230489e8000034111561073b57600080fd5b600160a060020a0387166000908152600a6020526040902054678ac7230489e80000811061076857600080fd5b505b6107748782610c2d565b5060019695505050505050565b600854600160a060020a031681565b6127106c06fad6e0f539650391280000005b0481565b60065481565b6116d281565b60015481565b600054600160a060020a031633146107cf57600080fd5b6005819055620d2f0001600655565b61271081565b600054600160a060020a031633146107fb57600080fd5b60005460a060020a900460ff16151561081357600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b67016345785d8a000081565b600254600160a060020a031681565b600354600160a060020a031681565b610fa081565b60005460a060020a900460ff1681565b6203f48081565b60055481565b678ac7230489e8000081565b600054600160a060020a031633146108ca57600080fd5b60005460a060020a900460ff16156108e157600080fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b609e81565b6b0b4f21d42f59c0d52c00000081565b600054600160a060020a0316331461096957600080fd5b60065442811161097857600080fd5b610980610f12565b151561098b57600080fd5b50600160a060020a03919091166000908152600960205260409020805460ff1916911515919091179055565b62093a8081565b60075481565b600454600160a060020a031681565b600054600160a060020a031633146109ea57600080fd5b6006544281116109f957600080fd5b50600155565b600054600160a060020a03163314610a1657600080fd5b60005460025460408051600160a060020a03938416815291831660208301529183168183015290517fd710eaacc9582acea58adbbda80c3bcef84d92e024865f9cb17a9d686cbccead9181900360600190a16002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a03163314610aae57600080fd5b600654428111610abd57600080fd5b610ac5610f12565b1515610ad057600080fd5b60005b83811015610b25578260096000878785818110610aec57fe5b60209081029290920135600160a060020a0316835250810191909152604001600020805460ff1916911515919091179055600101610ad3565b5050505050565b600054600160a060020a03163314610b4357600080fd5b600160a060020a0381161515610b5857600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600a6020526000908152604090205481565b620d2f0081565b60096020526000908152604090205460ff1681565b6127106b0b4f21d42f59c0d52c0000006107a2565b600080600160a060020a0383161515610c20576000915050610c28565b50506000813b115b919050565b346000826001811115610c3c57fe5b1415610cde57600160a060020a0383166000908152600a6020526040902054610c6b818363ffffffff610f3616565b9050678ac7230489e80000811115610cdc576000610c9782678ac7230489e8000063ffffffff610f4c16565b9050610ca9838263ffffffff610f4c16565b604051909350339082156108fc029083906000818181858888f19350505050158015610cd9573d6000803e3d6000fd5b50505b505b600754600090610cfa906a2dbe3b01c5aaee7a80000090610f4c565b905060008111610d0957600080fd5b600080610d168385610f5e565b90925090506000821115610e6657600854604080517fd1a1beb4000000000000000000000000000000000000000000000000000000008152600160a060020a03898116600483015260248201859052600160448301529151919092169163d1a1beb49160648083019260209291908290030181600087803b158015610d9a57600080fd5b505af1158015610dae573d6000803e3d6000fd5b505050506040513d6020811015610dc457600080fd5b50511515610dd157600080fd5b600254604051600160a060020a039091169083156108fc029084906000818181858888f19350505050158015610e0b573d6000803e3d6000fd5b50600754610e1f908263ffffffff610f3616565b60075560408051838152602081018390528151600160a060020a038916927fa3ed4207b1480804a4590a74f4b9cc310dc0fc839af8d10e2141ca3b72fd9348928290030190a25b6000610e78858463ffffffff610f4c16565b90506000811115610eb257604051339082156108fc029083906000818181858888f19350505050158015610eb0573d6000803e3d6000fd5b505b6000866001811115610ec057fe5b1415610f0957600160a060020a0387166000908152600a6020526040902054610eef908463ffffffff610f3616565b600160a060020a0388166000908152600a60205260409020555b50505050505050565b600060065442108015610f3157506007546a2dbe3b01c5aaee7a800000115b905090565b600082820183811015610f4557fe5b9392505050565b600082821115610f5857fe5b50900390565b6001546000908202808410610f7557829150610f89565b60015484811515610f8257fe5b0491508390505b925092905056fea165627a7a72305820363cb706b66b94682d91647868faecb30ae173161e9d2e43ef05330bdd5bb1480029

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

0000000000000000000000005848f10bb9756ea63e241a6cbc4495d4c7386fad00000000000000000000000068462a992bd906ad025e0fa9a5a57ffe10e65a70000000000000000000000000036e080e85fcb19ade4ca5f4abaee8c199e6c4d5

-----Decoded View---------------
Arg [0] : _wallet (address): 0x5848F10bB9756ea63E241a6cBc4495D4c7386fAD
Arg [1] : _minerAddress (address): 0x68462a992bd906ad025E0fa9A5A57FFE10e65a70
Arg [2] : _otherAddress (address): 0x036e080e85fCb19aDe4ca5f4ABaEE8C199E6C4D5

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000005848f10bb9756ea63e241a6cbc4495d4c7386fad
Arg [1] : 00000000000000000000000068462a992bd906ad025e0fa9a5a57ffe10e65a70
Arg [2] : 000000000000000000000000036e080e85fcb19ade4ca5f4abaee8c199e6c4d5


Swarm Source

bzzr://68921c4264929e0e96a6a85216f4901e22f67a43d81e3fb565c67e30955a074f

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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.