ETH Price: $3,345.70 (+0.31%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Transaction Hash
Method
Block
From
To
Transfer122882262021-04-22 5:47:271349 days ago1619070447IN
0xa408E53a...e0958B691
0.5 ETH0.0035014115
Transfer122774862021-04-20 14:11:251351 days ago1618927885IN
0xa408E53a...e0958B691
0.5 ETH0.0076498251.25000182
Transfer122727662021-04-19 20:47:191352 days ago1618865239IN
0xa408E53a...e0958B691
0.5 ETH0.0060894200
Transfer122727342021-04-19 20:41:071352 days ago1618864867IN
0xa408E53a...e0958B691
0.5 ETH0.00691146227
Transfer122727182021-04-19 20:38:571352 days ago1618864737IN
0xa408E53a...e0958B691
0.5 ETH0.00593716195
Transfer122700052021-04-19 10:39:031352 days ago1618828743IN
0xa408E53a...e0958B691
0.2 ETH0.00487152160
Transfer122696592021-04-19 9:16:271352 days ago1618823787IN
0xa408E53a...e0958B691
0.0001 ETH0.003381161
Transfer122666232021-04-18 21:47:171353 days ago1618782437IN
0xa408E53a...e0958B691
0.5 ETH0.00639387210
Transfer122665982021-04-18 21:41:401353 days ago1618782100IN
0xa408E53a...e0958B691
0.5 ETH0.00639387210
Transfer122665872021-04-18 21:39:371353 days ago1618781977IN
0xa408E53a...e0958B691
0.5 ETH0.00319693105
Transfer122665682021-04-18 21:35:231353 days ago1618781723IN
0xa408E53a...e0958B691
0.5 ETH0.00365364120.00000145
Transfer122665292021-04-18 21:27:411353 days ago1618781261IN
0xa408E53a...e0958B691
0.5 ETH0.00334917110
Transfer122662252021-04-18 20:20:131353 days ago1618777213IN
0xa408E53a...e0958B691
0.5 ETH0.0030447100
Transfer122659622021-04-18 19:21:301353 days ago1618773690IN
0xa408E53a...e0958B691
0.5 ETH0.0028924695.00000762
Transfer122659332021-04-18 19:16:551353 days ago1618773415IN
0xa408E53a...e0958B691
0.5 ETH0.00398551130.9
Transfer122657982021-04-18 18:48:001353 days ago1618771680IN
0xa408E53a...e0958B691
0.5 ETH0.002457117
Transfer122657972021-04-18 18:47:581353 days ago1618771678IN
0xa408E53a...e0958B691
0.5 ETH0.00365364120
Transfer122657962021-04-18 18:47:371353 days ago1618771657IN
0xa408E53a...e0958B691
0.2 ETH0.00395811130
Transfer122657902021-04-18 18:45:361353 days ago1618771536IN
0xa408E53a...e0958B691
0.15 ETH0.00365364120
Transfer122657822021-04-18 18:44:031353 days ago1618771443IN
0xa408E53a...e0958B691
0.3 ETH0.00322738106
Transfer122657802021-04-18 18:43:441353 days ago1618771424IN
0xa408E53a...e0958B691
0.1 ETH0.00334917110
Transfer122657782021-04-18 18:43:171353 days ago1618771397IN
0xa408E53a...e0958B691
0.5 ETH0.00380587125
Transfer122657742021-04-18 18:41:561353 days ago1618771316IN
0xa408E53a...e0958B691
0.5 ETH0.00307514101
Transfer122657502021-04-18 18:36:531353 days ago1618771013IN
0xa408E53a...e0958B691
0.5 ETH0.00441481145
Transfer122657482021-04-18 18:35:421353 days ago1618770942IN
0xa408E53a...e0958B691
0.3 ETH0.00441481145
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
122655112021-04-18 17:44:571353 days ago1618767897
0xa408E53a...e0958B691
0.03 ETH
122655112021-04-18 17:44:571353 days ago1618767897
0xa408E53a...e0958B691
0.47 ETH
122655112021-04-18 17:44:571353 days ago1618767897
0xa408E53a...e0958B691
0.5 ETH
122655112021-04-18 17:44:571353 days ago1618767897
0xa408E53a...e0958B691
0.2 ETH
122655112021-04-18 17:44:571353 days ago1618767897
0xa408E53a...e0958B691
0.5 ETH
122655112021-04-18 17:44:571353 days ago1618767897
0xa408E53a...e0958B691
0.5 ETH
122655112021-04-18 17:44:571353 days ago1618767897
0xa408E53a...e0958B691
0.5 ETH
122655112021-04-18 17:44:571353 days ago1618767897
0xa408E53a...e0958B691
0.5 ETH
122655102021-04-18 17:44:451353 days ago1618767885
0xa408E53a...e0958B691
0.5 ETH
122655102021-04-18 17:44:451353 days ago1618767885
0xa408E53a...e0958B691
0.5 ETH
122655102021-04-18 17:44:451353 days ago1618767885
0xa408E53a...e0958B691
0.5 ETH
122655102021-04-18 17:44:451353 days ago1618767885
0xa408E53a...e0958B691
0.2 ETH
122655102021-04-18 17:44:451353 days ago1618767885
0xa408E53a...e0958B691
0.5 ETH
122655102021-04-18 17:44:451353 days ago1618767885
0xa408E53a...e0958B691
0.45 ETH
122655102021-04-18 17:44:451353 days ago1618767885
0xa408E53a...e0958B691
0.5 ETH
122655102021-04-18 17:44:451353 days ago1618767885
0xa408E53a...e0958B691
0.5 ETH
122655102021-04-18 17:44:451353 days ago1618767885
0xa408E53a...e0958B691
0.5 ETH
122655102021-04-18 17:44:451353 days ago1618767885
0xa408E53a...e0958B691
0.5 ETH
122655092021-04-18 17:44:141353 days ago1618767854
0xa408E53a...e0958B691
0.1 ETH
122655092021-04-18 17:44:141353 days ago1618767854
0xa408E53a...e0958B691
0.5 ETH
122655092021-04-18 17:44:141353 days ago1618767854
0xa408E53a...e0958B691
0.5 ETH
122655092021-04-18 17:44:141353 days ago1618767854
0xa408E53a...e0958B691
0.5 ETH
122655092021-04-18 17:44:141353 days ago1618767854
0xa408E53a...e0958B691
0.5 ETH
122655092021-04-18 17:44:141353 days ago1618767854
0xa408E53a...e0958B691
0.5 ETH
122655092021-04-18 17:44:141353 days ago1618767854
0xa408E53a...e0958B691
0.5 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DigiSale

Compiler Version
v0.6.4+commit.1dca32f3

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-04-18
*/

// File: @openzeppelin/contracts/math/SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot 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-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// File: @openzeppelin/contracts/GSN/Context.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: 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
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: @openzeppelin/contracts/utils/Address.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: contracts/DigiSale.sol

pragma solidity 0.6.4;






contract DigiSale is ReentrancyGuard, Ownable {

    using SafeMath for uint256;
    using Address for address payable;

    mapping(address => uint256) participants;

    uint256 buyPrice;
    uint256 minimalGoal;
    uint256 hardCap;

    IERC20 crowdsaleToken;

    uint256 tokenDecimals = 18;

    event SellToken(address recepient, uint tokensSold, uint value);

    address payable fundingAddress;
    uint256 public totalCollected;
    uint256 totalSold;
    uint256 start;
    bool stopped = false;

    constructor(
        IERC20 _token,
        address payable _fundingAddress
    ) public {
        minimalGoal = 10000000000000000000;
        hardCap = 150000000000000000000;
        buyPrice = 9090909091000; // 0,000009090909091 ETH
        crowdsaleToken = _token;
        fundingAddress = _fundingAddress;
        start = getTime();
    }

    function getToken()
    external
    view
    returns(address)
    {
        return address(crowdsaleToken);
    }

    receive() external payable {
        require(msg.value >= 100000000000000000, "Min 0.1 ETH");
        require(msg.value <= 500000000000000000, "Max 0.5 ETH");
        sell(msg.sender, msg.value);
    }

    function sell(address payable _recepient, uint256 _value) internal
        nonReentrant
        whenCrowdsaleAlive()
    {
        uint256 newTotalCollected = totalCollected.add(_value);

        if (hardCap < newTotalCollected) {
            // Refund anything above the hard cap
            uint256 refund = newTotalCollected.sub(hardCap);
            uint256 diff = _value.sub(refund);
            _recepient.sendValue(refund);
            _value = diff;
            newTotalCollected = totalCollected.add(_value);
        }

        // Token amount per price
        uint256 tokensSold = (_value).mul(10 ** tokenDecimals).div(buyPrice);


        // Send user tokens
        require(crowdsaleToken.transfer(_recepient, tokensSold), "Error transfering");

        emit SellToken(_recepient, tokensSold, _value);

        // Save participants
        participants[_recepient] = participants[_recepient].add(_value);

        fundingAddress.sendValue(_value);

        // Update total ETH
        totalCollected = totalCollected.add(_value);

        // Update tokens sold
        totalSold = totalSold.add(tokensSold);
    }

  function totalTokensNeeded() external view returns (uint256) {
    return hardCap.mul(10 ** tokenDecimals).div(buyPrice);
  }

  function stop()
    external
    onlyOwner()
  {
        stopped = true;
  }

  function unstop()
    external
    onlyOwner()
  {
        stopped = false;
  }

  function returnUnsold()
    external
    nonReentrant
    onlyOwner()
  {
    crowdsaleToken.transfer(fundingAddress, crowdsaleToken.balanceOf(address(this)));
  }

  function getTime()
    public
    view
    returns(uint256)
  {
    return block.timestamp;
  }

  function isActive()
    public
    view
    returns(bool)
  {
    return (
      totalCollected < hardCap && !stopped
    );
  }

  function isSuccessful()
    public
    view
    returns(bool)
  {
    return (
      totalCollected >= minimalGoal
    );
  }

  modifier whenCrowdsaleAlive() {
    require(isActive());
    _;
  }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"address payable","name":"_fundingAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recepient","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokensSold","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SellToken","type":"event"},{"inputs":[],"name":"getTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSuccessful","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"returnUnsold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokensNeeded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260126007556000600c60006101000a81548160ff02191690831515021790555034801561003057600080fd5b506040516118d83803806118d88339818101604052604081101561005357600080fd5b810190808051906020019092919080519060200190929190505050600160008190555060006100866101ee60201b60201c565b905080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350678ac7230489e80000600481905550680821ab0d4414980000600581905550650844a46834b860038190555081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506101e16101f660201b60201c565b600b8190555050506101fe565b600033905090565b600042905090565b6116cb8061020d6000396000f3fe6080604052600436106100ab5760003560e01c8063b2ea088d11610064578063b2ea088d146102f3578063bba8bd201461030a578063e29eb83614610335578063ec4cd0cf14610360578063f2fde38b1461038f578063f8bd71c7146103e0576101b8565b806307da68f5146101bd57806321df0da7146101d457806322f3e2d41461022b578063557ed1ba1461025a578063715018a6146102855780638da5cb5b1461029c576101b8565b366101b85767016345785d8a000034101561012e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f4d696e20302e312045544800000000000000000000000000000000000000000081525060200191505060405180910390fd5b6706f05b59d3b200003411156101ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f4d617820302e352045544800000000000000000000000000000000000000000081525060200191505060405180910390fd5b6101b633346103f7565b005b600080fd5b3480156101c957600080fd5b506101d261083f565b005b3480156101e057600080fd5b506101e9610926565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023757600080fd5b50610240610950565b604051808215151515815260200191505060405180910390f35b34801561026657600080fd5b5061026f610977565b6040518082815260200191505060405180910390f35b34801561029157600080fd5b5061029a61097f565b005b3480156102a857600080fd5b506102b1610b0a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102ff57600080fd5b50610308610b34565b005b34801561031657600080fd5b5061031f610e69565b6040518082815260200191505060405180910390f35b34801561034157600080fd5b5061034a610e9e565b6040518082815260200191505060405180910390f35b34801561036c57600080fd5b50610375610ea4565b604051808215151515815260200191505060405180910390f35b34801561039b57600080fd5b506103de600480360360208110156103b257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610eb3565b005b3480156103ec57600080fd5b506103f56110c3565b005b60026000541415610470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550610480610950565b61048957600080fd5b60006104a0826009546111aa90919063ffffffff16565b90508060055410156105225760006104c36005548361123290919063ffffffff16565b905060006104da828561123290919063ffffffff16565b9050610505828673ffffffffffffffffffffffffffffffffffffffff1661127c90919063ffffffff16565b80935061051d846009546111aa90919063ffffffff16565b925050505b6000610550600354610542600754600a0a866113b690919063ffffffff16565b61143c90919063ffffffff16565b9050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156105fb57600080fd5b505af115801561060f573d6000803e3d6000fd5b505050506040513d602081101561062557600080fd5b81019080805190602001909291905050506106a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f4572726f72207472616e73666572696e6700000000000000000000000000000081525060200191505060405180910390fd5b7fa8ff15eb642b39da3ab82bb74a87b76cc3e1aef2b82b70bc2a35458386db29aa848285604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a161076d83600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111aa90919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506107fb83600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661127c90919063ffffffff16565b610810836009546111aa90919063ffffffff16565b60098190555061082b81600a546111aa90919063ffffffff16565b600a81905550505060016000819055505050565b610847611486565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610909576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6001600c60006101000a81548160ff021916908315150217905550565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006005546009541080156109725750600c60009054906101000a900460ff16155b905090565b600042905090565b610987611486565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a49576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60026000541415610bad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550610bbd611486565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c7f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610d7f57600080fd5b505afa158015610d93573d6000803e3d6000fd5b505050506040513d6020811015610da957600080fd5b81019080805190602001909291905050506040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610e2357600080fd5b505af1158015610e37573d6000803e3d6000fd5b505050506040513d6020811015610e4d57600080fd5b8101908080519060200190929190505050506001600081905550565b6000610e99600354610e8b600754600a0a6005546113b690919063ffffffff16565b61143c90919063ffffffff16565b905090565b60095481565b60006004546009541015905090565b610ebb611486565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f7d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611003576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806116156026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6110cb611486565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461118d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000600c60006101000a81548160ff021916908315150217905550565b600080828401905083811015611228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600061127483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061148e565b905092915050565b804710156112f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a20696e73756666696369656e742062616c616e636500000081525060200191505060405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405180600001905060006040518083038185875af1925050503d8060008114611352576040519150601f19603f3d011682016040523d82523d6000602084013e611357565b606091505b50509050806113b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603a81526020018061163b603a913960400191505060405180910390fd5b505050565b6000808314156113c95760009050611436565b60008284029050828482816113da57fe5b0414611431576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806116756021913960400191505060405180910390fd5b809150505b92915050565b600061147e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061154e565b905092915050565b600033905090565b600083831115829061153b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115005780820151818401526020810190506114e5565b50505050905090810190601f16801561152d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600080831182906115fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115bf5780820151818401526020810190506115a4565b50505050905090810190601f1680156115ec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161160657fe5b04905080915050939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220341a712bd13110b356b7e4454c8c78c8e6d3f638bcfba6a75b59ff88b52b9f5c64736f6c634300060400330000000000000000000000003cbf23c081faa5419810ce0f6bc1ecb73006d848000000000000000000000000461a66090e15bc417fb0c75981eb6113b5e72ce4

Deployed Bytecode

0x6080604052600436106100ab5760003560e01c8063b2ea088d11610064578063b2ea088d146102f3578063bba8bd201461030a578063e29eb83614610335578063ec4cd0cf14610360578063f2fde38b1461038f578063f8bd71c7146103e0576101b8565b806307da68f5146101bd57806321df0da7146101d457806322f3e2d41461022b578063557ed1ba1461025a578063715018a6146102855780638da5cb5b1461029c576101b8565b366101b85767016345785d8a000034101561012e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f4d696e20302e312045544800000000000000000000000000000000000000000081525060200191505060405180910390fd5b6706f05b59d3b200003411156101ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f4d617820302e352045544800000000000000000000000000000000000000000081525060200191505060405180910390fd5b6101b633346103f7565b005b600080fd5b3480156101c957600080fd5b506101d261083f565b005b3480156101e057600080fd5b506101e9610926565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023757600080fd5b50610240610950565b604051808215151515815260200191505060405180910390f35b34801561026657600080fd5b5061026f610977565b6040518082815260200191505060405180910390f35b34801561029157600080fd5b5061029a61097f565b005b3480156102a857600080fd5b506102b1610b0a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102ff57600080fd5b50610308610b34565b005b34801561031657600080fd5b5061031f610e69565b6040518082815260200191505060405180910390f35b34801561034157600080fd5b5061034a610e9e565b6040518082815260200191505060405180910390f35b34801561036c57600080fd5b50610375610ea4565b604051808215151515815260200191505060405180910390f35b34801561039b57600080fd5b506103de600480360360208110156103b257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610eb3565b005b3480156103ec57600080fd5b506103f56110c3565b005b60026000541415610470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550610480610950565b61048957600080fd5b60006104a0826009546111aa90919063ffffffff16565b90508060055410156105225760006104c36005548361123290919063ffffffff16565b905060006104da828561123290919063ffffffff16565b9050610505828673ffffffffffffffffffffffffffffffffffffffff1661127c90919063ffffffff16565b80935061051d846009546111aa90919063ffffffff16565b925050505b6000610550600354610542600754600a0a866113b690919063ffffffff16565b61143c90919063ffffffff16565b9050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156105fb57600080fd5b505af115801561060f573d6000803e3d6000fd5b505050506040513d602081101561062557600080fd5b81019080805190602001909291905050506106a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f4572726f72207472616e73666572696e6700000000000000000000000000000081525060200191505060405180910390fd5b7fa8ff15eb642b39da3ab82bb74a87b76cc3e1aef2b82b70bc2a35458386db29aa848285604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a161076d83600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111aa90919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506107fb83600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661127c90919063ffffffff16565b610810836009546111aa90919063ffffffff16565b60098190555061082b81600a546111aa90919063ffffffff16565b600a81905550505060016000819055505050565b610847611486565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610909576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6001600c60006101000a81548160ff021916908315150217905550565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006005546009541080156109725750600c60009054906101000a900460ff16155b905090565b600042905090565b610987611486565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a49576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60026000541415610bad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550610bbd611486565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c7f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610d7f57600080fd5b505afa158015610d93573d6000803e3d6000fd5b505050506040513d6020811015610da957600080fd5b81019080805190602001909291905050506040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610e2357600080fd5b505af1158015610e37573d6000803e3d6000fd5b505050506040513d6020811015610e4d57600080fd5b8101908080519060200190929190505050506001600081905550565b6000610e99600354610e8b600754600a0a6005546113b690919063ffffffff16565b61143c90919063ffffffff16565b905090565b60095481565b60006004546009541015905090565b610ebb611486565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f7d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611003576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806116156026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6110cb611486565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461118d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000600c60006101000a81548160ff021916908315150217905550565b600080828401905083811015611228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600061127483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061148e565b905092915050565b804710156112f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a20696e73756666696369656e742062616c616e636500000081525060200191505060405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405180600001905060006040518083038185875af1925050503d8060008114611352576040519150601f19603f3d011682016040523d82523d6000602084013e611357565b606091505b50509050806113b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603a81526020018061163b603a913960400191505060405180910390fd5b505050565b6000808314156113c95760009050611436565b60008284029050828482816113da57fe5b0414611431576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806116756021913960400191505060405180910390fd5b809150505b92915050565b600061147e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061154e565b905092915050565b600033905090565b600083831115829061153b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115005780820151818401526020810190506114e5565b50505050905090810190601f16801561152d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600080831182906115fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115bf5780820151818401526020810190506115a4565b50505050905090810190601f1680156115ec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161160657fe5b04905080915050939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220341a712bd13110b356b7e4454c8c78c8e6d3f638bcfba6a75b59ff88b52b9f5c64736f6c63430006040033

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

0000000000000000000000003cbf23c081faa5419810ce0f6bc1ecb73006d848000000000000000000000000461a66090e15bc417fb0c75981eb6113b5e72ce4

-----Decoded View---------------
Arg [0] : _token (address): 0x3CbF23c081fAA5419810ce0F6BC1ECb73006d848
Arg [1] : _fundingAddress (address): 0x461A66090E15bc417fB0c75981eB6113b5E72CE4

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003cbf23c081faa5419810ce0f6bc1ecb73006d848
Arg [1] : 000000000000000000000000461a66090e15bc417fb0c75981eb6113b5e72ce4


Deployed Bytecode Sourcemap

20452:3350:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21534:18;21521:9;:31;;21513:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21600:18;21587:9;:31;;21579:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21645:27;21650:10;21662:9;21645:4;:27::i;:::-;20452:3350;;12:1:-1;9;2:12;22987:81:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;22987:81:0;;;:::i;:::-;;21347:120;;5:9:-1;2:2;;;27:1;24;17:12;2:2;21347:120:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23446:136;;5:9:-1;2:2;;;27:1;24;17:12;2:2;23446:136:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23339:101;;5:9:-1;2:2;;;27:1;24;17:12;2:2;23339:101:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;10915:148;;5:9:-1;2:2;;;27:1;24;17:12;2:2;10915:148:0;;;:::i;:::-;;10273:79;;5:9:-1;2:2;;;27:1;24;17:12;2:2;10273:79:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23164:169;;5:9:-1;2:2;;;27:1;24;17:12;2:2;23164:169:0;;;:::i;:::-;;22854:127;;5:9:-1;2:2;;;27:1;24;17:12;2:2;22854:127:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20878:29;;5:9:-1;2:2;;;27:1;24;17:12;2:2;20878:29:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23588:133;;5:9:-1;2:2;;;27:1;24;17:12;2:2;23588:133:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;11218:244;;5:9:-1;2:2;;;27:1;24;17:12;2:2;11218:244:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;11218:244:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;23074:84;;5:9:-1;2:2;;;27:1;24;17:12;2:2;23074:84:0;;;:::i;:::-;;21688:1160;7182:1;7788:7;;:19;;7780:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7182:1;7921:7;:18;;;;23772:10:::1;:8;:10::i;:::-;23764:19;;12:1:-1;9::::0;2:12:::1;23764:19:0;21823:25:::2;21851:26;21870:6;21851:14;;:18;;:26;;;;:::i;:::-;21823:54;;21904:17;21894:7;;:27;21890:338;;;21989:14;22006:30;22028:7;;22006:17;:21;;:30;;;;:::i;:::-;21989:47;;22051:12;22066:18;22077:6;22066;:10;;:18;;;;:::i;:::-;22051:33;;22099:28;22120:6;22099:10;:20;;;;:28;;;;:::i;:::-;22151:4;22142:13;;22190:26;22209:6;22190:14;;:18;;:26;;;;:::i;:::-;22170:46;;21890:338;;;22275:18;22296:47;22334:8;;22296:33;22315:13;;22309:2;:19;22297:6;22296:12;;:33;;;;:::i;:::-;:37;;:47;;;;:::i;:::-;22275:68;;22395:14;;;;;;;;;;;:23;;;22419:10;22431;22395:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;22395:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;22395:47:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;22395:47:0;;;;;;;;;;;;;;;;22387:77;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;22482:41;22492:10;22504;22516:6;22482:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22593:36;22622:6;22593:12;:24;22606:10;22593:24;;;;;;;;;;;;;;;;:28;;:36;;;;:::i;:::-;22566:12;:24;22579:10;22566:24;;;;;;;;;;;;;;;:63;;;;22642:32;22667:6;22642:14;;;;;;;;;;;:24;;;;:32;;;;:::i;:::-;22733:26;22752:6;22733:14;;:18;;:26;;;;:::i;:::-;22716:14;:43;;;;22815:25;22829:10;22815:9;;:13;;:25;;;;:::i;:::-;22803:9;:37;;;;23790:1;;7138::::0;8100:7;:22;;;;21688:1160;;:::o;22987:81::-;10495:12;:10;:12::i;:::-;10485:22;;:6;;;;;;;;;;;:22;;;10477:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23058:4:::1;23048:7;;:14;;;;;;;;;;;;;;;;;;22987:81::o:0;21347:120::-;21404:7;21444:14;;;;;;;;;;;21429:30;;21347:120;:::o;23446:136::-;23501:4;23550:7;;23533:14;;:24;:36;;;;;23562:7;;;;;;;;;;;23561:8;23533:36;23517:59;;23446:136;:::o;23339:101::-;23393:7;23419:15;23412:22;;23339:101;:::o;10915:148::-;10495:12;:10;:12::i;:::-;10485:22;;:6;;;;;;;;;;;:22;;;10477:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11022:1:::1;10985:40;;11006:6;;;;;;;;;;;10985:40;;;;;;;;;;;;11053:1;11036:6;;:19;;;;;;;;;;;;;;;;;;10915:148::o:0;10273:79::-;10311:7;10338:6;;;;;;;;;;;10331:13;;10273:79;:::o;23164:169::-;7182:1;7788:7;;:19;;7780:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7182:1;7921:7;:18;;;;10495:12:::1;:10;:12::i;:::-;10485:22;;:6;;;;;;;;;;;:22;;;10477:67;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;23247:14:::2;;;;;;;;;;;:23;;;23271:14;;;;;;;;;;;23287;;;;;;;;;;;:24;;;23320:4;23287:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;23287:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;23287:39:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;23287:39:0;;;;;;;;;;;;;;;;23247:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;23247:80:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;23247:80:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;23247:80:0;;;;;;;;;;;;;;;;;7138:1:::0;8100:7;:22;;;;23164:169::o;22854:127::-;22906:7;22929:46;22966:8;;22929:32;22947:13;;22941:2;:19;22929:7;;:11;;:32;;;;:::i;:::-;:36;;:46;;;;:::i;:::-;22922:53;;22854:127;:::o;20878:29::-;;;;:::o;23588:133::-;23647:4;23697:11;;23679:14;;:29;;23663:52;;23588:133;:::o;11218:244::-;10495:12;:10;:12::i;:::-;10485:22;;:6;;;;;;;;;;;:22;;;10477:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11327:1:::1;11307:22;;:8;:22;;;;11299:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11417:8;11388:38;;11409:6;;;;;;;;;;;11388:38;;;;;;;;;;;;11446:8;11437:6;;:17;;;;;;;;;;;;;;;;;;11218:244:::0;:::o;23074:84::-;10495:12;:10;:12::i;:::-;10485:22;;:6;;;;;;;;;;;:22;;;10477:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23147:5:::1;23137:7;;:15;;;;;;;;;;;;;;;;;;23074:84::o:0;956:181::-;1014:7;1034:9;1050:1;1046;:5;1034:17;;1075:1;1070;:6;;1062:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1128:1;1121:8;;;956:181;;;;:::o;1420:136::-;1478:7;1505:43;1509:1;1512;1505:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1498:50;;1420:136;;;;:::o;16457:397::-;16572:6;16547:21;:31;;16539:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16704:12;16722:9;:14;;16745:6;16722:35;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;16703:54:0;;;16776:7;16768:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16457:397;;;:::o;2310:471::-;2368:7;2618:1;2613;:6;2609:47;;;2643:1;2636:8;;;;2609:47;2668:9;2684:1;2680;:5;2668:17;;2713:1;2708;2704;:5;;;;;;:10;2696:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2772:1;2765:8;;;2310:471;;;;;:::o;3257:132::-;3315:7;3342:39;3346:1;3349;3342:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;3335:46;;3257:132;;;;:::o;8794:106::-;8847:15;8882:10;8875:17;;8794:106;:::o;1859:192::-;1945:7;1978:1;1973;:6;;1981:12;1965:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1965:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2005:9;2021:1;2017;:5;2005:17;;2042:1;2035:8;;;1859:192;;;;;:::o;3885:278::-;3971:7;4003:1;3999;:5;4006:12;3991:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;3991:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4030:9;4046:1;4042;:5;;;;;;4030:17;;4154:1;4147:8;;;3885:278;;;;;:::o

Swarm Source

ipfs://341a712bd13110b356b7e4454c8c78c8e6d3f638bcfba6a75b59ff88b52b9f5c

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.