ETH Price: $2,798.70 (+1.01%)

Contract

0x46C3b1C951756c4Bd2abf6f5AAF8c8a2Eb18e918
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Buy Tokens114378342020-12-12 11:28:061534 days ago1607772486IN
0x46C3b1C9...2Eb18e918
0.6 ETH0.0013700120.9
Buy Tokens114306362020-12-11 8:56:141535 days ago1607676974IN
0x46C3b1C9...2Eb18e918
0.0282 ETH0.0045924757.0132016
Buy Tokens114121162020-12-08 12:20:161538 days ago1607430016IN
0x46C3b1C9...2Eb18e918
0.3 ETH0.0022287334
Buy Tokens113793232020-12-03 11:19:201543 days ago1606994360IN
0x46C3b1C9...2Eb18e918
1 ETH0.0032188139.96
Buy Tokens113705412020-12-02 3:00:561544 days ago1606878056IN
0x46C3b1C9...2Eb18e918
2 ETH0.0031414839
Buy Tokens113299742020-11-25 21:31:521550 days ago1606339912IN
0x46C3b1C9...2Eb18e918
0.27 ETH0.0022942835
Buy Tokens113271722020-11-25 11:07:311551 days ago1606302451IN
0x46C3b1C9...2Eb18e918
0.55 ETH0.0029497945
Buy Tokens113205302020-11-24 10:39:141552 days ago1606214354IN
0x46C3b1C9...2Eb18e918
0.37 ETH0.00825942126
Buy Tokens113159622020-11-23 17:59:081553 days ago1606154348IN
0x46C3b1C9...2Eb18e918
0.33 ETH0.0044574668
Buy Tokens113104922020-11-22 21:33:361553 days ago1606080816IN
0x46C3b1C9...2Eb18e918
0.43 ETH0.0026875941
Buy Tokens113039572020-11-21 21:31:311554 days ago1605994291IN
0x46C3b1C9...2Eb18e918
0.59 ETH0.0032220440
Buy Tokens113032462020-11-21 19:01:451555 days ago1605985305IN
0x46C3b1C9...2Eb18e918
1.5 ETH0.0021631833
Buy Tokens113028652020-11-21 17:39:481555 days ago1605980388IN
0x46C3b1C9...2Eb18e918
0.5 ETH0.0057684888
Buy Tokens113026472020-11-21 16:51:401555 days ago1605977500IN
0x46C3b1C9...2Eb18e918
0.6 ETH0.00865273132
Buy Tokens113026082020-11-21 16:41:051555 days ago1605976865IN
0x46C3b1C9...2Eb18e918
1 ETH0.0071385108.9
Buy Tokens113020952020-11-21 14:49:371555 days ago1605970177IN
0x46C3b1C9...2Eb18e918
0.1 ETH0.0074069167
Start113020302020-11-21 14:35:201555 days ago1605969320IN
0x46C3b1C9...2Eb18e918
0 ETH0.0033501853.00000145

Latest 16 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
114378342020-12-12 11:28:061534 days ago1607772486
0x46C3b1C9...2Eb18e918
0.6 ETH
114306362020-12-11 8:56:141535 days ago1607676974
0x46C3b1C9...2Eb18e918
0.0282 ETH
114121162020-12-08 12:20:161538 days ago1607430016
0x46C3b1C9...2Eb18e918
0.3 ETH
113793232020-12-03 11:19:201543 days ago1606994360
0x46C3b1C9...2Eb18e918
1 ETH
113705412020-12-02 3:00:561544 days ago1606878056
0x46C3b1C9...2Eb18e918
2 ETH
113299742020-11-25 21:31:521550 days ago1606339912
0x46C3b1C9...2Eb18e918
0.27 ETH
113271722020-11-25 11:07:311551 days ago1606302451
0x46C3b1C9...2Eb18e918
0.55 ETH
113205302020-11-24 10:39:141552 days ago1606214354
0x46C3b1C9...2Eb18e918
0.37 ETH
113159622020-11-23 17:59:081553 days ago1606154348
0x46C3b1C9...2Eb18e918
0.33 ETH
113104922020-11-22 21:33:361553 days ago1606080816
0x46C3b1C9...2Eb18e918
0.43 ETH
113039572020-11-21 21:31:311554 days ago1605994291
0x46C3b1C9...2Eb18e918
0.59 ETH
113032462020-11-21 19:01:451555 days ago1605985305
0x46C3b1C9...2Eb18e918
1.5 ETH
113028652020-11-21 17:39:481555 days ago1605980388
0x46C3b1C9...2Eb18e918
0.5 ETH
113026472020-11-21 16:51:401555 days ago1605977500
0x46C3b1C9...2Eb18e918
0.6 ETH
113026082020-11-21 16:41:051555 days ago1605976865
0x46C3b1C9...2Eb18e918
1 ETH
113020952020-11-21 14:49:371555 days ago1605970177
0x46C3b1C9...2Eb18e918
0.1 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Presale

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-11-19
*/

// 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.
 */
contract Context {
    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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


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

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

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

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;
    using Address for address;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public override view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public override view returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public override view returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal { }
}


contract Presale {

    using SafeMath for uint;

    uint public constant INITIAL_SUPPLY     = 38927.77e18;
    uint public constant FIRST_PHASE_CAP    = 8750e18; //200
    uint public constant SECOND_PHASE_CAP   = 11664e18; //300
    uint public constant THIRD_PHASE_CAP    = 17535e18; //501

    uint public firstPhaseSold;
    uint public secondPhaseSold;
    uint public thirdPhaseSold;
    
    uint public firstPhaseEthReceive;
    uint public secondPhaseEthReceive;
    uint public thirdPhaseEthReceive;
    
    uint public startTime;
    uint public finishTime;

    IERC20 public token;
    
    address payable public owner;

    constructor(address tokenAddress) public {
        token = IERC20(tokenAddress);
        owner = msg.sender;
    }

    function start(uint _finishTime) public {
        require(msg.sender == owner, "onlyOwner");
        require(startTime == 0, "already started");
        startTime = block.timestamp;
        finishTime = _finishTime;
    }

    receive() external payable {
        buyTokens();
    }

    function buyTokens() public payable {
        require(block.timestamp > startTime, "not started yet");
        require(block.timestamp < finishTime, "sale is closed");
        
        uint rest;
        uint ethValue = msg.value;

        rest = buyTokens(msg.sender, ethValue);
        msg.sender.transfer(rest);
        owner.transfer(address(this).balance);
    }

    function withdrawUnsoldTokens() public {
        require(msg.sender == owner, "onlyOwner");
        require(finishTime != 0 && block.timestamp > finishTime, "wait for finish time");

        token.transfer(owner, token.balanceOf(address(this)));
    }
    
    function buyTokens(address to, uint ethValue) internal returns(uint) {
        uint price;
        uint amount;
        uint rest;

        uint stage = getCurrentStage();
        require(stage < 4, "sale closed");

        price = getCurrentPrice();
        require(price > 0, "sale closed");
        
        amount = ethValue.mul(1e18).div(price);
        
        if(stage == 1) {            
            if(firstPhaseSold.add(amount) > FIRST_PHASE_CAP) {
                amount = FIRST_PHASE_CAP.sub(firstPhaseSold);
                rest = amount.mul(price);
                ethValue = amount.mul(price).div(1e18);
            }
            firstPhaseEthReceive += ethValue;
            firstPhaseSold += amount;
        } else if(stage == 2) {
            if(secondPhaseSold.add(amount) > SECOND_PHASE_CAP) {
                amount = SECOND_PHASE_CAP.sub(secondPhaseSold);
                rest = amount.mul(price);
                ethValue = amount.mul(price).div(1e18);
            }
            secondPhaseEthReceive += ethValue;
            secondPhaseSold += amount;
        } else if(stage == 3) {
            if(thirdPhaseSold.add(amount) > THIRD_PHASE_CAP) {
                amount = THIRD_PHASE_CAP.sub(thirdPhaseSold);
                rest = amount.mul(price);
                ethValue = amount.mul(price).div(1e18);
            }
            thirdPhaseEthReceive += ethValue;
            thirdPhaseSold += amount;
        }

        require(amount > 0, "nothing to sale");

        token.transfer(to, amount);
        return rest.div(1e18);
    }


    function getCurrentStage() public view returns (uint) {
        if(firstPhaseSold < FIRST_PHASE_CAP) {
            return 1;
        }

        if(secondPhaseSold < SECOND_PHASE_CAP) {
            return 2;
        }

        if(thirdPhaseSold < THIRD_PHASE_CAP) {
            return 3;
        }

        return 4;
    }

    function getCurrentPrice() public view returns (uint) {

        uint stage = getCurrentStage();
        if (stage == 1) {
            return 22857142850000000;
        }

        if (stage == 2) {
            return 25720164600000000;
        }

        if (stage == 3) {
            return 28571428570000000;
        }

        return 0;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FIRST_PHASE_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SECOND_PHASE_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"THIRD_PHASE_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"finishTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstPhaseEthReceive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstPhaseSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondPhaseEthReceive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondPhaseSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_finishTime","type":"uint256"}],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"thirdPhaseEthReceive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"thirdPhaseSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawUnsoldTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b506040516114fc3803806114fc8339818101604052602081101561003357600080fd5b810190808051906020019092919050505080600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050611426806100d66000396000f3fe6080604052600436106101185760003560e01c806395805dad116100a0578063eb91d37e11610064578063eb91d37e14610377578063ec9e29a7146103a2578063ed064b29146103cd578063eedbe31d146103f8578063fc0c546a1461042357610127565b806395805dad146102c5578063a1ceeb4714610300578063c8bdbfb61461032b578063d0febe4c14610342578063eb0a9cce1461034c57610127565b80635958611e116100e75780635958611e146101d857806378e97925146102035780637a3ce38d1461022e5780638da5cb5b146102595780638f8b29dc1461029a57610127565b80630a93f12f1461012c5780631aa1ac0f146101575780632b1869d1146101825780632ff2e9dc146101ad57610127565b3661012757610125610464565b005b600080fd5b34801561013857600080fd5b50610141610618565b6040518082815260200191505060405180910390f35b34801561016357600080fd5b5061016c610626565b6040518082815260200191505060405180910390f35b34801561018e57600080fd5b5061019761062c565b6040518082815260200191505060405180910390f35b3480156101b957600080fd5b506101c2610632565b6040518082815260200191505060405180910390f35b3480156101e457600080fd5b506101ed610640565b6040518082815260200191505060405180910390f35b34801561020f57600080fd5b50610218610646565b6040518082815260200191505060405180910390f35b34801561023a57600080fd5b5061024361064c565b6040518082815260200191505060405180910390f35b34801561026557600080fd5b5061026e610652565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102a657600080fd5b506102af610678565b6040518082815260200191505060405180910390f35b3480156102d157600080fd5b506102fe600480360360208110156102e857600080fd5b810190808035906020019092919050505061067e565b005b34801561030c57600080fd5b506103156107ca565b6040518082815260200191505060405180910390f35b34801561033757600080fd5b506103406107d8565b005b61034a610464565b005b34801561035857600080fd5b50610361610ad7565b6040518082815260200191505060405180910390f35b34801561038357600080fd5b5061038c610add565b6040518082815260200191505060405180910390f35b3480156103ae57600080fd5b506103b7610b3e565b6040518082815260200191505060405180910390f35b3480156103d957600080fd5b506103e2610b44565b6040518082815260200191505060405180910390f35b34801561040457600080fd5b5061040d610b52565b6040518082815260200191505060405180910390f35b34801561042f57600080fd5b50610438610bb3565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60065442116104db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f6e6f74207374617274656420796574000000000000000000000000000000000081525060200191505060405180910390fd5b6007544210610552576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f73616c6520697320636c6f73656400000000000000000000000000000000000081525060200191505060405180910390fd5b6000803490506105623382610bd9565b91503373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156105aa573d6000803e3d6000fd5b50600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610613573d6000803e3d6000fd5b505050565b6901da56a4b0835bf8000081565b60015481565b60005481565b69083e4754f6d5cbe9000081565b60075481565b60065481565b60025481565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610741576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f6f6e6c794f776e6572000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600654146107b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f616c72656164792073746172746564000000000000000000000000000000000081525060200191505060405180910390fd5b426006819055508060078190555050565b6903b693025b969a9c000081565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461089b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f6f6e6c794f776e6572000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600754141580156108af575060075442115b610921576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f7761697420666f722066696e6973682074696d6500000000000000000000000081525060200191505060405180910390fd5b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610a0b57600080fd5b505afa158015610a1f573d6000803e3d6000fd5b505050506040513d6020811015610a3557600080fd5b81019080805190602001909291905050506040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610a9957600080fd5b505af1158015610aad573d6000803e3d6000fd5b505050506040513d6020811015610ac357600080fd5b810190808051906020019092919050505050565b60035481565b600080610ae8610b52565b90506001811415610b03576651347348279480915050610b3b565b6002811415610b1c57665b605a7a8c2e00915050610b3b565b6003811415610b3557666581901aa3ea80915050610b3b565b60009150505b90565b60045481565b6902784e84597abc40000081565b60006901da56a4b0835bf800006000541015610b715760019050610bb0565b6902784e84597abc4000006001541015610b8e5760029050610bb0565b6903b693025b969a9c00006002541015610bab5760039050610bb0565b600490505b90565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000806000610be9610b52565b905060048110610c61576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f73616c6520636c6f73656400000000000000000000000000000000000000000081525060200191505060405180910390fd5b610c69610add565b935060008411610ce1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f73616c6520636c6f73656400000000000000000000000000000000000000000081525060200191505060405180910390fd5b610d0e84610d00670de0b6b3a7640000896110a790919063ffffffff16565b61112d90919063ffffffff16565b92506001811415610dc9576901da56a4b0835bf80000610d398460005461117790919063ffffffff16565b1115610da557610d5e6000546901da56a4b0835bf800006111ff90919063ffffffff16565b9250610d7384846110a790919063ffffffff16565b9150610da2670de0b6b3a7640000610d9486866110a790919063ffffffff16565b61112d90919063ffffffff16565b95505b85600360008282540192505081905550826000808282540192505081905550610f3b565b6002811415610e83576902784e84597abc400000610df28460015461117790919063ffffffff16565b1115610e5e57610e176001546902784e84597abc4000006111ff90919063ffffffff16565b9250610e2c84846110a790919063ffffffff16565b9150610e5b670de0b6b3a7640000610e4d86866110a790919063ffffffff16565b61112d90919063ffffffff16565b95505b8560046000828254019250508190555082600160008282540192505081905550610f3a565b6003811415610f39576903b693025b969a9c0000610eac8460025461117790919063ffffffff16565b1115610f1857610ed16002546903b693025b969a9c00006111ff90919063ffffffff16565b9250610ee684846110a790919063ffffffff16565b9150610f15670de0b6b3a7640000610f0786866110a790919063ffffffff16565b61112d90919063ffffffff16565b95505b85600560008282540192505081905550826002600082825401925050819055505b5b5b60008311610fb1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f6e6f7468696e6720746f2073616c65000000000000000000000000000000000081525060200191505060405180910390fd5b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb88856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561104457600080fd5b505af1158015611058573d6000803e3d6000fd5b505050506040513d602081101561106e57600080fd5b81019080805190602001909291905050505061109b670de0b6b3a76400008361112d90919063ffffffff16565b94505050505092915050565b6000808314156110ba5760009050611127565b60008284029050828482816110cb57fe5b0414611122576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806113d06021913960400191505060405180910390fd5b809150505b92915050565b600061116f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611249565b905092915050565b6000808284019050838110156111f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600061124183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061130f565b905092915050565b600080831182906112f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112ba57808201518184015260208101905061129f565b50505050905090810190601f1680156112e75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161130157fe5b049050809150509392505050565b60008383111582906113bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611381578082015181840152602081019050611366565b50505050905090810190601f1680156113ae5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838503905080915050939250505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220af089955c883df1fbbacecb32400ab3a399925c008b0b2f6494d21bbf026c85964736f6c634300060c003300000000000000000000000075abdbc10eeee99cf708d3273e34de3c161428e4

Deployed Bytecode

0x6080604052600436106101185760003560e01c806395805dad116100a0578063eb91d37e11610064578063eb91d37e14610377578063ec9e29a7146103a2578063ed064b29146103cd578063eedbe31d146103f8578063fc0c546a1461042357610127565b806395805dad146102c5578063a1ceeb4714610300578063c8bdbfb61461032b578063d0febe4c14610342578063eb0a9cce1461034c57610127565b80635958611e116100e75780635958611e146101d857806378e97925146102035780637a3ce38d1461022e5780638da5cb5b146102595780638f8b29dc1461029a57610127565b80630a93f12f1461012c5780631aa1ac0f146101575780632b1869d1146101825780632ff2e9dc146101ad57610127565b3661012757610125610464565b005b600080fd5b34801561013857600080fd5b50610141610618565b6040518082815260200191505060405180910390f35b34801561016357600080fd5b5061016c610626565b6040518082815260200191505060405180910390f35b34801561018e57600080fd5b5061019761062c565b6040518082815260200191505060405180910390f35b3480156101b957600080fd5b506101c2610632565b6040518082815260200191505060405180910390f35b3480156101e457600080fd5b506101ed610640565b6040518082815260200191505060405180910390f35b34801561020f57600080fd5b50610218610646565b6040518082815260200191505060405180910390f35b34801561023a57600080fd5b5061024361064c565b6040518082815260200191505060405180910390f35b34801561026557600080fd5b5061026e610652565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102a657600080fd5b506102af610678565b6040518082815260200191505060405180910390f35b3480156102d157600080fd5b506102fe600480360360208110156102e857600080fd5b810190808035906020019092919050505061067e565b005b34801561030c57600080fd5b506103156107ca565b6040518082815260200191505060405180910390f35b34801561033757600080fd5b506103406107d8565b005b61034a610464565b005b34801561035857600080fd5b50610361610ad7565b6040518082815260200191505060405180910390f35b34801561038357600080fd5b5061038c610add565b6040518082815260200191505060405180910390f35b3480156103ae57600080fd5b506103b7610b3e565b6040518082815260200191505060405180910390f35b3480156103d957600080fd5b506103e2610b44565b6040518082815260200191505060405180910390f35b34801561040457600080fd5b5061040d610b52565b6040518082815260200191505060405180910390f35b34801561042f57600080fd5b50610438610bb3565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60065442116104db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f6e6f74207374617274656420796574000000000000000000000000000000000081525060200191505060405180910390fd5b6007544210610552576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f73616c6520697320636c6f73656400000000000000000000000000000000000081525060200191505060405180910390fd5b6000803490506105623382610bd9565b91503373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156105aa573d6000803e3d6000fd5b50600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610613573d6000803e3d6000fd5b505050565b6901da56a4b0835bf8000081565b60015481565b60005481565b69083e4754f6d5cbe9000081565b60075481565b60065481565b60025481565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610741576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f6f6e6c794f776e6572000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600654146107b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f616c72656164792073746172746564000000000000000000000000000000000081525060200191505060405180910390fd5b426006819055508060078190555050565b6903b693025b969a9c000081565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461089b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f6f6e6c794f776e6572000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600754141580156108af575060075442115b610921576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f7761697420666f722066696e6973682074696d6500000000000000000000000081525060200191505060405180910390fd5b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610a0b57600080fd5b505afa158015610a1f573d6000803e3d6000fd5b505050506040513d6020811015610a3557600080fd5b81019080805190602001909291905050506040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610a9957600080fd5b505af1158015610aad573d6000803e3d6000fd5b505050506040513d6020811015610ac357600080fd5b810190808051906020019092919050505050565b60035481565b600080610ae8610b52565b90506001811415610b03576651347348279480915050610b3b565b6002811415610b1c57665b605a7a8c2e00915050610b3b565b6003811415610b3557666581901aa3ea80915050610b3b565b60009150505b90565b60045481565b6902784e84597abc40000081565b60006901da56a4b0835bf800006000541015610b715760019050610bb0565b6902784e84597abc4000006001541015610b8e5760029050610bb0565b6903b693025b969a9c00006002541015610bab5760039050610bb0565b600490505b90565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000806000610be9610b52565b905060048110610c61576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f73616c6520636c6f73656400000000000000000000000000000000000000000081525060200191505060405180910390fd5b610c69610add565b935060008411610ce1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f73616c6520636c6f73656400000000000000000000000000000000000000000081525060200191505060405180910390fd5b610d0e84610d00670de0b6b3a7640000896110a790919063ffffffff16565b61112d90919063ffffffff16565b92506001811415610dc9576901da56a4b0835bf80000610d398460005461117790919063ffffffff16565b1115610da557610d5e6000546901da56a4b0835bf800006111ff90919063ffffffff16565b9250610d7384846110a790919063ffffffff16565b9150610da2670de0b6b3a7640000610d9486866110a790919063ffffffff16565b61112d90919063ffffffff16565b95505b85600360008282540192505081905550826000808282540192505081905550610f3b565b6002811415610e83576902784e84597abc400000610df28460015461117790919063ffffffff16565b1115610e5e57610e176001546902784e84597abc4000006111ff90919063ffffffff16565b9250610e2c84846110a790919063ffffffff16565b9150610e5b670de0b6b3a7640000610e4d86866110a790919063ffffffff16565b61112d90919063ffffffff16565b95505b8560046000828254019250508190555082600160008282540192505081905550610f3a565b6003811415610f39576903b693025b969a9c0000610eac8460025461117790919063ffffffff16565b1115610f1857610ed16002546903b693025b969a9c00006111ff90919063ffffffff16565b9250610ee684846110a790919063ffffffff16565b9150610f15670de0b6b3a7640000610f0786866110a790919063ffffffff16565b61112d90919063ffffffff16565b95505b85600560008282540192505081905550826002600082825401925050819055505b5b5b60008311610fb1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f6e6f7468696e6720746f2073616c65000000000000000000000000000000000081525060200191505060405180910390fd5b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb88856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561104457600080fd5b505af1158015611058573d6000803e3d6000fd5b505050506040513d602081101561106e57600080fd5b81019080805190602001909291905050505061109b670de0b6b3a76400008361112d90919063ffffffff16565b94505050505092915050565b6000808314156110ba5760009050611127565b60008284029050828482816110cb57fe5b0414611122576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806113d06021913960400191505060405180910390fd5b809150505b92915050565b600061116f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611249565b905092915050565b6000808284019050838110156111f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600061124183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061130f565b905092915050565b600080831182906112f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112ba57808201518184015260208101905061129f565b50505050905090810190601f1680156112e75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161130157fe5b049050809150509392505050565b60008383111582906113bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611381578082015181840152602081019050611366565b50505050905090810190601f1680156113ae5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838503905080915050939250505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220af089955c883df1fbbacecb32400ab3a399925c008b0b2f6494d21bbf026c85964736f6c634300060c0033

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

00000000000000000000000075abdbc10eeee99cf708d3273e34de3c161428e4

-----Decoded View---------------
Arg [0] : tokenAddress (address): 0x75ABDbc10eEEe99CF708D3273e34de3c161428E4

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000075abdbc10eeee99cf708d3273e34de3c161428e4


Deployed Bytecode Sourcemap

25747:4065:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26810:11;:9;:11::i;:::-;25747:4065;;;;;25865:49;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26088:27;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26055:26;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;25805:53;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26313:22;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26285:21;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26122:26;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26376:28;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;26240:32;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26538:226;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;25990:50;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;27222:256;;;;;;;;;;;;;:::i;:::-;;26837:377;;;:::i;:::-;;26161:32;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;29448:361;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26200:33;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;25927:50;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;29105:335;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26344:19;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;26837:377;26910:9;;26892:15;:27;26884:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26976:10;;26958:15;:28;26950:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27026:9;27046:13;27062:9;27046:25;;27091:31;27101:10;27113:8;27091:9;:31::i;:::-;27084:38;;27133:10;:19;;:25;27153:4;27133:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27169:5;;;;;;;;;;;:14;;:37;27184:21;27169:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26837:377;;:::o;25865:49::-;25907:7;25865:49;:::o;26088:27::-;;;;:::o;26055:26::-;;;;:::o;25805:53::-;25847:11;25805:53;:::o;26313:22::-;;;;:::o;26285:21::-;;;;:::o;26122:26::-;;;;:::o;26376:28::-;;;;;;;;;;;;;:::o;26240:32::-;;;;:::o;26538:226::-;26611:5;;;;;;;;;;;26597:19;;:10;:19;;;26589:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26662:1;26649:9;;:14;26641:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26706:15;26694:9;:27;;;;26745:11;26732:10;:24;;;;26538:226;:::o;25990:50::-;26032:8;25990:50;:::o;27222:256::-;27294:5;;;;;;;;;;;27280:19;;:10;:19;;;27272:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27346:1;27332:10;;:15;;:47;;;;;27369:10;;27351:15;:28;27332:47;27324:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27417:5;;;;;;;;;;;:14;;;27432:5;;;;;;;;;;;27439;;;;;;;;;;;:15;;;27463:4;27439:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27417:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27222:256::o;26161:32::-;;;;:::o;29448:361::-;29496:4;29515:10;29528:17;:15;:17::i;:::-;29515:30;;29569:1;29560:5;:10;29556:67;;;29594:17;29587:24;;;;;29556:67;29648:1;29639:5;:10;29635:67;;;29673:17;29666:24;;;;;29635:67;29727:1;29718:5;:10;29714:67;;;29752:17;29745:24;;;;;29714:67;29800:1;29793:8;;;29448:361;;:::o;26200:33::-;;;;:::o;25927:50::-;25969:8;25927:50;:::o;29105:335::-;29153:4;25907:7;29173:14;;:32;29170:72;;;29229:1;29222:8;;;;29170:72;25969:8;29257:15;;:34;29254:74;;;29315:1;29308:8;;;;29254:74;26032:8;29343:14;;:32;29340:72;;;29399:1;29392:8;;;;29340:72;29431:1;29424:8;;29105:335;;:::o;26344:19::-;;;;;;;;;;;;;:::o;27490:1605::-;27553:4;27570:10;27591:11;27613:9;27635:10;27648:17;:15;:17::i;:::-;27635:30;;27692:1;27684:5;:9;27676:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27730:17;:15;:17::i;:::-;27722:25;;27774:1;27766:5;:9;27758:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27821:29;27844:5;27821:18;27834:4;27821:8;:12;;:18;;;;:::i;:::-;:22;;:29;;;;:::i;:::-;27812:38;;27883:1;27874:5;:10;27871:1095;;;25907:7;27916:26;27935:6;27916:14;;:18;;:26;;;;:::i;:::-;:44;27913:228;;;27990:35;28010:14;;25907:7;27990:19;;:35;;;;:::i;:::-;27981:44;;28051:17;28062:5;28051:6;:10;;:17;;;;:::i;:::-;28044:24;;28098:27;28120:4;28098:17;28109:5;28098:6;:10;;:17;;;;:::i;:::-;:21;;:27;;;;:::i;:::-;28087:38;;27913:228;28179:8;28155:20;;:32;;;;;;;;;;;28220:6;28202:14;;:24;;;;;;;;;;;27871:1095;;;28256:1;28247:5;:10;28244:722;;;25969:8;28277:27;28297:6;28277:15;;:19;;:27;;;;:::i;:::-;:46;28274:232;;;28353:37;28374:15;;25969:8;28353:20;;:37;;;;:::i;:::-;28344:46;;28416:17;28427:5;28416:6;:10;;:17;;;;:::i;:::-;28409:24;;28463:27;28485:4;28463:17;28474:5;28463:6;:10;;:17;;;;:::i;:::-;:21;;:27;;;;:::i;:::-;28452:38;;28274:232;28545:8;28520:21;;:33;;;;;;;;;;;28587:6;28568:15;;:25;;;;;;;;;;;28244:722;;;28623:1;28614:5;:10;28611:355;;;26032:8;28644:26;28663:6;28644:14;;:18;;:26;;;;:::i;:::-;:44;28641:228;;;28718:35;28738:14;;26032:8;28718:19;;:35;;;;:::i;:::-;28709:44;;28779:17;28790:5;28779:6;:10;;:17;;;;:::i;:::-;28772:24;;28826:27;28848:4;28826:17;28837:5;28826:6;:10;;:17;;;;:::i;:::-;:21;;:27;;;;:::i;:::-;28815:38;;28641:228;28907:8;28883:20;;:32;;;;;;;;;;;28948:6;28930:14;;:24;;;;;;;;;;;28611:355;28244:722;27871:1095;28995:1;28986:6;:10;28978:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29029:5;;;;;;;;;;;:14;;;29044:2;29048:6;29029:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29073:14;29082:4;29073;:8;;:14;;;;:::i;:::-;29066:21;;;;;;27490:1605;;;;:::o;3128:471::-;3186:7;3436:1;3431;:6;3427:47;;;3461:1;3454:8;;;;3427:47;3486:9;3502:1;3498;:5;3486:17;;3531:1;3526;3522;:5;;;;;;:10;3514:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3590:1;3583:8;;;3128:471;;;;;:::o;4075:132::-;4133:7;4160:39;4164:1;4167;4160:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;4153:46;;4075:132;;;;:::o;1774:181::-;1832:7;1852:9;1868:1;1864;:5;1852:17;;1893:1;1888;:6;;1880:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1946:1;1939:8;;;1774:181;;;;:::o;2238:136::-;2296:7;2323:43;2327:1;2330;2323:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2316:50;;2238:136;;;;:::o;4703:278::-;4789:7;4821:1;4817;:5;4824:12;4809:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4848:9;4864:1;4860;:5;;;;;;4848:17;;4972:1;4965:8;;;4703:278;;;;;:::o;2677:192::-;2763:7;2796:1;2791;:6;;2799:12;2783:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2823:9;2839:1;2835;:5;2823:17;;2860:1;2853:8;;;2677:192;;;;;:::o

Swarm Source

ipfs://af089955c883df1fbbacecb32400ab3a399925c008b0b2f6494d21bbf026c859

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.