ETH Price: $2,061.25 (-4.22%)

Contract

0xe8eEE524D1fD7281D95697D751Dd705c866DdEb5
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer196524482024-04-14 8:01:59707 days ago1713081719IN
0xe8eEE524...c866DdEb5
0 ETH0.0006495212.57231822
Transfer196521702024-04-14 7:05:59707 days ago1713078359IN
0xe8eEE524...c866DdEb5
0 ETH0.000622812.05523684
Transfer194098582024-03-11 5:46:23741 days ago1710135983IN
0xe8eEE524...c866DdEb5
0 ETH0.0017864234.57843886
Update Sale Peri...193849982024-03-07 18:11:35745 days ago1709835095IN
0xe8eEE524...c866DdEb5
0 ETH0.0036036797.30457264
Transfer192059752024-02-11 16:21:23770 days ago1707668483IN
0xe8eEE524...c866DdEb5
0 ETH0.001428227.64463301
Transfer191968312024-02-10 9:29:59771 days ago1707557399IN
0xe8eEE524...c866DdEb5
0 ETH0.00151229.26667132
Update Token Pri...191967942024-02-10 9:22:35771 days ago1707556955IN
0xe8eEE524...c866DdEb5
0 ETH0.0009397831.42876895
Invest191967892024-02-10 9:21:35771 days ago1707556895IN
0xe8eEE524...c866DdEb5
0.01 ETH0.0024865930.41448892
Update Token Pri...191967872024-02-10 9:21:11771 days ago1707556871IN
0xe8eEE524...c866DdEb5
0 ETH0.0009493231.76048536
Invest191967642024-02-10 9:16:35771 days ago1707556595IN
0xe8eEE524...c866DdEb5
0.01 ETH0.0063084733.70686369
Update Token Pri...191967152024-02-10 9:06:35771 days ago1707555995IN
0xe8eEE524...c866DdEb5
0 ETH0.0012508841.83283569
Update Token Pri...191886212024-02-09 5:54:11772 days ago1707458051IN
0xe8eEE524...c866DdEb5
0 ETH0.0020027566.97728326
Update Token Pri...191886032024-02-09 5:50:35772 days ago1707457835IN
0xe8eEE524...c866DdEb5
0 ETH0.0012252540.9757127
Transfer191833182024-02-08 12:01:47773 days ago1707393707IN
0xe8eEE524...c866DdEb5
0 ETH0.0041176287.84260162
Approve191764302024-02-07 12:51:11774 days ago1707310271IN
0xe8eEE524...c866DdEb5
0 ETH0.0014526631.14632845

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer191967892024-02-10 9:21:35771 days ago1707556895
0xe8eEE524...c866DdEb5
0.01 ETH
Transfer191967642024-02-10 9:16:35771 days ago1707556595
0xe8eEE524...c866DdEb5
0.01 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
DeFiGlobalToken

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: GPL-3.0
pragma solidity =0.8.11;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.5/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.5/contracts/token/ERC20/ERC20.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.5/contracts/security/ReentrancyGuard.sol";

contract DeFiGlobalToken is ERC20, Ownable, ReentrancyGuard {
    // enum to represent token sale state
    enum State { 
        beforeStart, 
        running, 
        afterEnd, 
        halted 
    }
    // token state value 
    State public TokenState;

    struct UserInfo {
        uint256 amount;     // How many tokens the user has receive.
        uint256 investFund; // total invested amount.
    }
    // Info of each user that invest eth.
    mapping (address => UserInfo) public userInfo;

    // payable sale eth receiver address 
    address payable public deposit;
    // dead wallet address
    address private deadWallet = address(0x000000000000000000000000000000000000dEaD);
    // token price value
    uint256 public tokenPrice = 10000000000000000; // 0.01 ether in wei
    // hard cap of presale
    uint256 public constant hardCap = 2**256 - 1; // Infinity (practically unreachable)
    // collected eth sale fund  
    uint256 public collectedSaleFund;
    // sale start time
    uint256 public saleStart;
    // sale end time
    uint256 public saleEndTime;
    // total toke sold in pre-sale
    uint256 public totalTokenSold;
    // total new minted tokens
    uint256 public totalMintedTokens;
    // max invest value in pre-sale
    uint256 public constant maxInvestment = 50 ether;
    // min invest value in pre-sale
    uint256 public constant minInvestment = 0.01 ether;
    // token tier value to update token price
    uint256 public constant tokensPerTier = 500000 ether;
    // number of percent token price increase in each tier
    uint256 public constant priceIncreasePercentage = 30;
    // initial minted count
    uint256 public mintedCount = 0;
    // initial sale period time in second
    uint256 public salePeriod = 2592000;

    event Invest(address investor, uint256 value, uint256 tokens);
    event SalePeriodUpdate(uint _salePeriod);
    event TokenPriceUpdate(uint _salePeriod);
    event DepositAddressUpdate(address _depositor);

    constructor(address payable _deposit) 
        ERC20("DeFi Global Coin", "DFG")
    {
        _mint(msg.sender, 15000000 * 10 ** decimals());
        deposit = _deposit;
        saleStart = block.timestamp;
        saleEndTime = saleStart + salePeriod; // transferable in a month after saleStart
    }

    function updateSalePeriod(uint _salePeriod) public onlyOwner returns (bool) {
        saleEndTime = saleStart + _salePeriod;
        salePeriod = _salePeriod;
        emit SalePeriodUpdate(_salePeriod);
        return true;
    }

    function updateTokenPrice(uint _tokenPrice) public onlyOwner returns (bool) {
        tokenPrice = _tokenPrice;
        emit TokenPriceUpdate(_tokenPrice);
        return true;
    }

    function updateDepositAddress(address _depositor) public onlyOwner returns (bool) {
        deposit = payable(_depositor);
        emit DepositAddressUpdate(_depositor);
        return true;
    }

    function burn() public onlyOwner returns (bool) {
        TokenState = getCurrentState();
        require(TokenState == State.afterEnd, "The burning is allowed only after the sale ends");
        super._transfer(address(this), deadWallet, balanceOf(address(this)));
        return true;
    }

    function getCurrentState() public view returns (State) {
        if (TokenState == State.halted) {
            return State.halted;
        } else if (block.timestamp < saleStart) {
            return State.beforeStart;
        } else if (block.timestamp >= saleStart && block.timestamp < saleEndTime) {
            return State.running;
        } else {
            return State.afterEnd;
        }
    }

    function getCurrentPrice() public view returns (uint256) {
        uint256 tokensSold = totalSupply() - balanceOf(address(this));
        uint256 priceTiers = tokensSold / tokensPerTier;
        return (tokenPrice + ((tokenPrice * priceIncreasePercentage)*(priceTiers+mintedCount)) / 100);
    }

    function invest() payable public nonReentrant returns (bool) {
        UserInfo storage user = userInfo[msg.sender];

        TokenState = getCurrentState();
        require(TokenState == State.running, "Investment is allowed only during the sale");
        require(msg.value >= minInvestment && msg.value <= maxInvestment, "Investment amount not within allowed range");

        collectedSaleFund += msg.value;
        require(collectedSaleFund <= hardCap, "Hard cap reached, investment not allowed");

        uint256 tokens = (msg.value * 10**decimals()) / getCurrentPrice();
        super._transfer(address(this), msg.sender, tokens);
        totalTokenSold = totalTokenSold + tokens;
        deposit.transfer(msg.value);

        user.amount = user.amount + tokens;
        user.investFund = user.investFund + msg.value;
        
        emit Invest(msg.sender, msg.value, tokens);
        return true;
    }

    function mintTokens(uint256 amount) public onlyOwner returns (bool) {
        require(amount > 0, "Amount must be greater than zero");
        require(totalTokenSold  >= (totalSupply() * 90)/100, "Not total token sold");
        TokenState = getCurrentState();
        require(TokenState != State.afterEnd, "Sale End");
        _mint(owner(), amount);
        totalMintedTokens += amount;
        adjustTokenPrice();
        return true;
    }

    function adjustTokenPrice() internal {
        mintedCount += 1;
    }
}

File 2 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.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].
 */
abstract 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() {
        _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 making 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;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @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 Contracts guidelines: functions revert
 * instead 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, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 this function is
     * overridden;
     *
     * 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 virtual override returns (uint8) {
        return 18;
    }

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        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 virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][spender] + 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 virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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 virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(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 virtual {
        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 Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual 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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address payable","name":"_deposit","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_depositor","type":"address"}],"name":"DepositAddressUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"investor","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"Invest","type":"event"},{"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":"uint256","name":"_salePeriod","type":"uint256"}],"name":"SalePeriodUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_salePeriod","type":"uint256"}],"name":"TokenPriceUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"TokenState","outputs":[{"internalType":"enum DeFiGlobalToken.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectedSaleFund","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentState","outputs":[{"internalType":"enum DeFiGlobalToken.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hardCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"invest","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"maxInvestment","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minInvestment","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceIncreasePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"salePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensPerTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokenSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_depositor","type":"address"}],"name":"updateDepositAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salePeriod","type":"uint256"}],"name":"updateSalePeriod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPrice","type":"uint256"}],"name":"updateTokenPrice","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"investFund","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052600a80546001600160a01b03191661dead179055662386f26fc10000600b55600060115562278d006012553480156200003c57600080fd5b5060405162001e5538038062001e558339810160408190526200005f9162000339565b6040518060400160405280601081526020016f2232a3349023b637b130b61021b7b4b760811b8152506040518060400160405280600381526020016244464760e81b8152508160039080519060200190620000bc92919062000293565b508051620000d290600490602084019062000293565b505050620000ef620000e96200015560201b60201c565b62000159565b60016006556200011c33620001076012600a62000480565b620001169062e4e1c062000491565b620001ab565b600980546001600160a01b0319166001600160a01b03831617905542600d8190556012546200014b91620004b3565b600e55506200050b565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002065760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200021a9190620004b3565b90915550506001600160a01b0382166000908152602081905260408120805483929062000249908490620004b3565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620002a190620004ce565b90600052602060002090601f016020900481019282620002c5576000855562000310565b82601f10620002e057805160ff191683800117855562000310565b8280016001018555821562000310579182015b8281111562000310578251825591602001919060010190620002f3565b506200031e92915062000322565b5090565b5b808211156200031e576000815560010162000323565b6000602082840312156200034c57600080fd5b81516001600160a01b03811681146200036457600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620003c2578160001904821115620003a657620003a66200036b565b80851615620003b457918102915b93841c939080029062000386565b509250929050565b600082620003db575060016200047a565b81620003ea575060006200047a565b81600181146200040357600281146200040e576200042e565b60019150506200047a565b60ff8411156200042257620004226200036b565b50506001821b6200047a565b5060208310610133831016604e8410600b841016171562000453575081810a6200047a565b6200045f838362000381565b80600019048211156200047657620004766200036b565b0290505b92915050565b60006200036460ff841683620003ca565b6000816000190483118215151615620004ae57620004ae6200036b565b500290565b60008219821115620004c957620004c96200036b565b500190565b600181811c90821680620004e357607f821691505b602082108114156200050557634e487b7160e01b600052602260045260246000fd5b50919050565b61193a806200051b6000396000f3fe6080604052600436106102245760003560e01c80638da5cb5b11610123578063ab0bcc41116100ab578063e8b5e51f1161006f578063e8b5e51f14610658578063eb91d37e14610660578063ed338ff114610675578063f2fde38b1461068b578063fb86a404146106ab57600080fd5b8063ab0bcc41146105b0578063b5f7f636146105c6578063cf721b15146105dc578063d0e30db0146105f2578063dd62ed3e1461061257600080fd5b80639e68c2a9116100f25780639e68c2a9146105225780639ed5c84c1461053c578063a457c2d714610552578063a8d5652e14610572578063a9059cbb1461059057600080fd5b80638da5cb5b146104a55780638e32e316146104d757806395d89b41146104ed57806397304ced1461050257600080fd5b8063378aa701116101b157806370a082311161017557806370a0823114610411578063715018a6146104475780637ff9b5961461045e578063843e6a20146104745780638ac2c6801461048a57600080fd5b8063378aa7011461037a578063395093511461039c57806344df8e70146103bc5780634e2c280c146103d1578063676c0d77146103f157600080fd5b80631959a002116101f85780631959a002146102c05780631ba853d01461030957806323b872dd14610329578063313ce56714610349578063351c9dbc1461036557600080fd5b80622e13161461022957806306fdde0314610259578063095ea7b31461027b57806318160ddd146102ab575b600080fd5b34801561023557600080fd5b506102466802b5e3af16b188000081565b6040519081526020015b60405180910390f35b34801561026557600080fd5b5061026e6106c1565b604051610250919061159d565b34801561028757600080fd5b5061029b610296366004611609565b610753565b6040519015158152602001610250565b3480156102b757600080fd5b50600254610246565b3480156102cc57600080fd5b506102f46102db366004611633565b6008602052600090815260409020805460019091015482565b60408051928352602083019190915201610250565b34801561031557600080fd5b5061029b610324366004611633565b61076d565b34801561033557600080fd5b5061029b610344366004611655565b6107fe565b34801561035557600080fd5b5060405160128152602001610250565b34801561037157600080fd5b50610246601e81565b34801561038657600080fd5b5061038f610822565b60405161025091906116a7565b3480156103a857600080fd5b5061029b6103b7366004611609565b61087d565b3480156103c857600080fd5b5061029b6108bc565b3480156103dd57600080fd5b5061029b6103ec3660046116cf565b6109bc565b3480156103fd57600080fd5b5061029b61040c3660046116cf565b610a2f565b34801561041d57600080fd5b5061024661042c366004611633565b6001600160a01b031660009081526020819052604090205490565b34801561045357600080fd5b5061045c610a91565b005b34801561046a57600080fd5b50610246600b5481565b34801561048057600080fd5b50610246600c5481565b34801561049657600080fd5b50610246662386f26fc1000081565b3480156104b157600080fd5b506005546001600160a01b03165b6040516001600160a01b039091168152602001610250565b3480156104e357600080fd5b5061024660105481565b3480156104f957600080fd5b5061026e610ac7565b34801561050e57600080fd5b5061029b61051d3660046116cf565b610ad6565b34801561052e57600080fd5b5060075461038f9060ff1681565b34801561054857600080fd5b5061024660125481565b34801561055e57600080fd5b5061029b61056d366004611609565b610c79565b34801561057e57600080fd5b506102466969e10de76676d080000081565b34801561059c57600080fd5b5061029b6105ab366004611609565b610d0b565b3480156105bc57600080fd5b50610246600d5481565b3480156105d257600080fd5b50610246600f5481565b3480156105e857600080fd5b5061024660115481565b3480156105fe57600080fd5b506009546104bf906001600160a01b031681565b34801561061e57600080fd5b5061024661062d3660046116e8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61029b610d19565b34801561066c57600080fd5b50610246610fb4565b34801561068157600080fd5b50610246600e5481565b34801561069757600080fd5b5061045c6106a6366004611633565b611033565b3480156106b757600080fd5b5061024660001981565b6060600380546106d09061171b565b80601f01602080910402602001604051908101604052809291908181526020018280546106fc9061171b565b80156107495780601f1061071e57610100808354040283529160200191610749565b820191906000526020600020905b81548152906001019060200180831161072c57829003601f168201915b5050505050905090565b6000336107618185856110ce565b60019150505b92915050565b6005546000906001600160a01b031633146107a35760405162461bcd60e51b815260040161079a90611756565b60405180910390fd5b600980546001600160a01b0319166001600160a01b0384169081179091556040519081527ffc66a529a6ad7369552d384fea57c528ff45fd3316ab4c74829ebe1828e1df31906020015b60405180910390a15060015b919050565b60003361080c8582856111f2565b610817858585611284565b506001949350505050565b6000600360075460ff16600381111561083d5761083d611691565b14156108495750600390565b600d544210156108595750600090565b600d54421015801561086c5750600e5442105b156108775750600190565b50600290565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061076190829086906108b79087906117a1565b6110ce565b6005546000906001600160a01b031633146108e95760405162461bcd60e51b815260040161079a90611756565b6108f1610822565b6007805460ff1916600183600381111561090d5761090d611691565b0217905550600260075460ff16600381111561092b5761092b611691565b146109905760405162461bcd60e51b815260206004820152602f60248201527f546865206275726e696e6720697320616c6c6f776564206f6e6c79206166746560448201526e72207468652073616c6520656e647360881b606482015260840161079a565b600a54306000818152602081905260409020546109b6926001600160a01b031690611284565b50600190565b6005546000906001600160a01b031633146109e95760405162461bcd60e51b815260040161079a90611756565b81600d546109f791906117a1565b600e5560128290556040518281527f48770a7a78bb1b24f15ce52d585f7f76e7dbb64d5a6e1477151588b2e1ade510906020016107ed565b6005546000906001600160a01b03163314610a5c5760405162461bcd60e51b815260040161079a90611756565b600b8290556040518281527f79aad831819a76fc90fb165cc99ec755dfda6c6afde0f71c0456ff14169dee9a906020016107ed565b6005546001600160a01b03163314610abb5760405162461bcd60e51b815260040161079a90611756565b610ac56000611452565b565b6060600480546106d09061171b565b6005546000906001600160a01b03163314610b035760405162461bcd60e51b815260040161079a90611756565b60008211610b535760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f604482015260640161079a565b6064610b5e60025490565b610b6990605a6117b9565b610b7391906117d8565b600f541015610bbb5760405162461bcd60e51b8152602060048201526014602482015273139bdd081d1bdd185b081d1bdad95b881cdbdb1960621b604482015260640161079a565b610bc3610822565b6007805460ff19166001836003811115610bdf57610bdf611691565b0217905550600260075460ff166003811115610bfd57610bfd611691565b1415610c365760405162461bcd60e51b815260206004820152600860248201526714d85b1948115b9960c21b604482015260640161079a565b610c51610c4b6005546001600160a01b031690565b836114a4565b8160106000828254610c6391906117a1565b90915550610c719050611583565b506001919050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610cfe5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161079a565b61081782868684036110ce565b600033610761818585611284565b600060026006541415610d6e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161079a565b6002600655336000908152600860205260409020610d8a610822565b6007805460ff19166001836003811115610da657610da6611691565b0217905550600160075460ff166003811115610dc457610dc4611691565b14610e245760405162461bcd60e51b815260206004820152602a60248201527f496e766573746d656e7420697320616c6c6f776564206f6e6c7920647572696e60448201526967207468652073616c6560b01b606482015260840161079a565b662386f26fc100003410158015610e4457506802b5e3af16b18800003411155b610ea35760405162461bcd60e51b815260206004820152602a60248201527f496e766573746d656e7420616d6f756e74206e6f742077697468696e20616c6c6044820152696f7765642072616e676560b01b606482015260840161079a565b34600c6000828254610eb591906117a1565b90915550610ec09050565b6000610eca610fb4565b610ed66012600a6118de565b610ee090346117b9565b610eea91906117d8565b9050610ef7303383611284565b80600f54610f0591906117a1565b600f556009546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610f41573d6000803e3d6000fd5b508154610f4f9082906117a1565b82556001820154610f619034906117a1565b6001830155604080513381523460208201529081018290527f4ae4bd7655e0d350876a23cd90c4227b13db560e34435c6a488150a9c844bf5f9060600160405180910390a1600192505050600160065590565b306000908152602081905260408120546002548291610fd2916118ed565b90506000610fea6969e10de76676d0800000836117d8565b9050606460115482610ffc91906117a1565b601e600b5461100b91906117b9565b61101591906117b9565b61101f91906117d8565b600b5461102c91906117a1565b9250505090565b6005546001600160a01b0316331461105d5760405162461bcd60e51b815260040161079a90611756565b6001600160a01b0381166110c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161079a565b6110cb81611452565b50565b6001600160a01b0383166111305760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161079a565b6001600160a01b0382166111915760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161079a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461127e57818110156112715760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161079a565b61127e84848484036110ce565b50505050565b6001600160a01b0383166112e85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161079a565b6001600160a01b03821661134a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161079a565b6001600160a01b038316600090815260208190526040902054818110156113c25760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161079a565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906113f99084906117a1565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161144591815260200190565b60405180910390a361127e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166114fa5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161079a565b806002600082825461150c91906117a1565b90915550506001600160a01b038216600090815260208190526040812080548392906115399084906117a1565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60016011600082825461159691906117a1565b9091555050565b600060208083528351808285015260005b818110156115ca578581018301518582016040015282016115ae565b818111156115dc576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146107f957600080fd5b6000806040838503121561161c57600080fd5b611625836115f2565b946020939093013593505050565b60006020828403121561164557600080fd5b61164e826115f2565b9392505050565b60008060006060848603121561166a57600080fd5b611673846115f2565b9250611681602085016115f2565b9150604084013590509250925092565b634e487b7160e01b600052602160045260246000fd5b60208101600483106116c957634e487b7160e01b600052602160045260246000fd5b91905290565b6000602082840312156116e157600080fd5b5035919050565b600080604083850312156116fb57600080fd5b611704836115f2565b9150611712602084016115f2565b90509250929050565b600181811c9082168061172f57607f821691505b6020821081141561175057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156117b4576117b461178b565b500190565b60008160001904831182151516156117d3576117d361178b565b500290565b6000826117f557634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561183557816000190482111561181b5761181b61178b565b8085161561182857918102915b93841c93908002906117ff565b509250929050565b60008261184c57506001610767565b8161185957506000610767565b816001811461186f576002811461187957611895565b6001915050610767565b60ff84111561188a5761188a61178b565b50506001821b610767565b5060208310610133831016604e8410600b84101617156118b8575081810a610767565b6118c283836117fa565b80600019048211156118d6576118d661178b565b029392505050565b600061164e60ff84168361183d565b6000828210156118ff576118ff61178b565b50039056fea26469706673582212205bd0fc0f60fa0779650c09c65f3933512d7868f40ebcebb52a83b8285c2e96e964736f6c634300080b0033000000000000000000000000e01624dc259719821fcc5abc49487858f775d64d

Deployed Bytecode

0x6080604052600436106102245760003560e01c80638da5cb5b11610123578063ab0bcc41116100ab578063e8b5e51f1161006f578063e8b5e51f14610658578063eb91d37e14610660578063ed338ff114610675578063f2fde38b1461068b578063fb86a404146106ab57600080fd5b8063ab0bcc41146105b0578063b5f7f636146105c6578063cf721b15146105dc578063d0e30db0146105f2578063dd62ed3e1461061257600080fd5b80639e68c2a9116100f25780639e68c2a9146105225780639ed5c84c1461053c578063a457c2d714610552578063a8d5652e14610572578063a9059cbb1461059057600080fd5b80638da5cb5b146104a55780638e32e316146104d757806395d89b41146104ed57806397304ced1461050257600080fd5b8063378aa701116101b157806370a082311161017557806370a0823114610411578063715018a6146104475780637ff9b5961461045e578063843e6a20146104745780638ac2c6801461048a57600080fd5b8063378aa7011461037a578063395093511461039c57806344df8e70146103bc5780634e2c280c146103d1578063676c0d77146103f157600080fd5b80631959a002116101f85780631959a002146102c05780631ba853d01461030957806323b872dd14610329578063313ce56714610349578063351c9dbc1461036557600080fd5b80622e13161461022957806306fdde0314610259578063095ea7b31461027b57806318160ddd146102ab575b600080fd5b34801561023557600080fd5b506102466802b5e3af16b188000081565b6040519081526020015b60405180910390f35b34801561026557600080fd5b5061026e6106c1565b604051610250919061159d565b34801561028757600080fd5b5061029b610296366004611609565b610753565b6040519015158152602001610250565b3480156102b757600080fd5b50600254610246565b3480156102cc57600080fd5b506102f46102db366004611633565b6008602052600090815260409020805460019091015482565b60408051928352602083019190915201610250565b34801561031557600080fd5b5061029b610324366004611633565b61076d565b34801561033557600080fd5b5061029b610344366004611655565b6107fe565b34801561035557600080fd5b5060405160128152602001610250565b34801561037157600080fd5b50610246601e81565b34801561038657600080fd5b5061038f610822565b60405161025091906116a7565b3480156103a857600080fd5b5061029b6103b7366004611609565b61087d565b3480156103c857600080fd5b5061029b6108bc565b3480156103dd57600080fd5b5061029b6103ec3660046116cf565b6109bc565b3480156103fd57600080fd5b5061029b61040c3660046116cf565b610a2f565b34801561041d57600080fd5b5061024661042c366004611633565b6001600160a01b031660009081526020819052604090205490565b34801561045357600080fd5b5061045c610a91565b005b34801561046a57600080fd5b50610246600b5481565b34801561048057600080fd5b50610246600c5481565b34801561049657600080fd5b50610246662386f26fc1000081565b3480156104b157600080fd5b506005546001600160a01b03165b6040516001600160a01b039091168152602001610250565b3480156104e357600080fd5b5061024660105481565b3480156104f957600080fd5b5061026e610ac7565b34801561050e57600080fd5b5061029b61051d3660046116cf565b610ad6565b34801561052e57600080fd5b5060075461038f9060ff1681565b34801561054857600080fd5b5061024660125481565b34801561055e57600080fd5b5061029b61056d366004611609565b610c79565b34801561057e57600080fd5b506102466969e10de76676d080000081565b34801561059c57600080fd5b5061029b6105ab366004611609565b610d0b565b3480156105bc57600080fd5b50610246600d5481565b3480156105d257600080fd5b50610246600f5481565b3480156105e857600080fd5b5061024660115481565b3480156105fe57600080fd5b506009546104bf906001600160a01b031681565b34801561061e57600080fd5b5061024661062d3660046116e8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61029b610d19565b34801561066c57600080fd5b50610246610fb4565b34801561068157600080fd5b50610246600e5481565b34801561069757600080fd5b5061045c6106a6366004611633565b611033565b3480156106b757600080fd5b5061024660001981565b6060600380546106d09061171b565b80601f01602080910402602001604051908101604052809291908181526020018280546106fc9061171b565b80156107495780601f1061071e57610100808354040283529160200191610749565b820191906000526020600020905b81548152906001019060200180831161072c57829003601f168201915b5050505050905090565b6000336107618185856110ce565b60019150505b92915050565b6005546000906001600160a01b031633146107a35760405162461bcd60e51b815260040161079a90611756565b60405180910390fd5b600980546001600160a01b0319166001600160a01b0384169081179091556040519081527ffc66a529a6ad7369552d384fea57c528ff45fd3316ab4c74829ebe1828e1df31906020015b60405180910390a15060015b919050565b60003361080c8582856111f2565b610817858585611284565b506001949350505050565b6000600360075460ff16600381111561083d5761083d611691565b14156108495750600390565b600d544210156108595750600090565b600d54421015801561086c5750600e5442105b156108775750600190565b50600290565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061076190829086906108b79087906117a1565b6110ce565b6005546000906001600160a01b031633146108e95760405162461bcd60e51b815260040161079a90611756565b6108f1610822565b6007805460ff1916600183600381111561090d5761090d611691565b0217905550600260075460ff16600381111561092b5761092b611691565b146109905760405162461bcd60e51b815260206004820152602f60248201527f546865206275726e696e6720697320616c6c6f776564206f6e6c79206166746560448201526e72207468652073616c6520656e647360881b606482015260840161079a565b600a54306000818152602081905260409020546109b6926001600160a01b031690611284565b50600190565b6005546000906001600160a01b031633146109e95760405162461bcd60e51b815260040161079a90611756565b81600d546109f791906117a1565b600e5560128290556040518281527f48770a7a78bb1b24f15ce52d585f7f76e7dbb64d5a6e1477151588b2e1ade510906020016107ed565b6005546000906001600160a01b03163314610a5c5760405162461bcd60e51b815260040161079a90611756565b600b8290556040518281527f79aad831819a76fc90fb165cc99ec755dfda6c6afde0f71c0456ff14169dee9a906020016107ed565b6005546001600160a01b03163314610abb5760405162461bcd60e51b815260040161079a90611756565b610ac56000611452565b565b6060600480546106d09061171b565b6005546000906001600160a01b03163314610b035760405162461bcd60e51b815260040161079a90611756565b60008211610b535760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f604482015260640161079a565b6064610b5e60025490565b610b6990605a6117b9565b610b7391906117d8565b600f541015610bbb5760405162461bcd60e51b8152602060048201526014602482015273139bdd081d1bdd185b081d1bdad95b881cdbdb1960621b604482015260640161079a565b610bc3610822565b6007805460ff19166001836003811115610bdf57610bdf611691565b0217905550600260075460ff166003811115610bfd57610bfd611691565b1415610c365760405162461bcd60e51b815260206004820152600860248201526714d85b1948115b9960c21b604482015260640161079a565b610c51610c4b6005546001600160a01b031690565b836114a4565b8160106000828254610c6391906117a1565b90915550610c719050611583565b506001919050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610cfe5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161079a565b61081782868684036110ce565b600033610761818585611284565b600060026006541415610d6e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161079a565b6002600655336000908152600860205260409020610d8a610822565b6007805460ff19166001836003811115610da657610da6611691565b0217905550600160075460ff166003811115610dc457610dc4611691565b14610e245760405162461bcd60e51b815260206004820152602a60248201527f496e766573746d656e7420697320616c6c6f776564206f6e6c7920647572696e60448201526967207468652073616c6560b01b606482015260840161079a565b662386f26fc100003410158015610e4457506802b5e3af16b18800003411155b610ea35760405162461bcd60e51b815260206004820152602a60248201527f496e766573746d656e7420616d6f756e74206e6f742077697468696e20616c6c6044820152696f7765642072616e676560b01b606482015260840161079a565b34600c6000828254610eb591906117a1565b90915550610ec09050565b6000610eca610fb4565b610ed66012600a6118de565b610ee090346117b9565b610eea91906117d8565b9050610ef7303383611284565b80600f54610f0591906117a1565b600f556009546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610f41573d6000803e3d6000fd5b508154610f4f9082906117a1565b82556001820154610f619034906117a1565b6001830155604080513381523460208201529081018290527f4ae4bd7655e0d350876a23cd90c4227b13db560e34435c6a488150a9c844bf5f9060600160405180910390a1600192505050600160065590565b306000908152602081905260408120546002548291610fd2916118ed565b90506000610fea6969e10de76676d0800000836117d8565b9050606460115482610ffc91906117a1565b601e600b5461100b91906117b9565b61101591906117b9565b61101f91906117d8565b600b5461102c91906117a1565b9250505090565b6005546001600160a01b0316331461105d5760405162461bcd60e51b815260040161079a90611756565b6001600160a01b0381166110c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161079a565b6110cb81611452565b50565b6001600160a01b0383166111305760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161079a565b6001600160a01b0382166111915760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161079a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461127e57818110156112715760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161079a565b61127e84848484036110ce565b50505050565b6001600160a01b0383166112e85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161079a565b6001600160a01b03821661134a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161079a565b6001600160a01b038316600090815260208190526040902054818110156113c25760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161079a565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906113f99084906117a1565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161144591815260200190565b60405180910390a361127e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166114fa5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161079a565b806002600082825461150c91906117a1565b90915550506001600160a01b038216600090815260208190526040812080548392906115399084906117a1565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60016011600082825461159691906117a1565b9091555050565b600060208083528351808285015260005b818110156115ca578581018301518582016040015282016115ae565b818111156115dc576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146107f957600080fd5b6000806040838503121561161c57600080fd5b611625836115f2565b946020939093013593505050565b60006020828403121561164557600080fd5b61164e826115f2565b9392505050565b60008060006060848603121561166a57600080fd5b611673846115f2565b9250611681602085016115f2565b9150604084013590509250925092565b634e487b7160e01b600052602160045260246000fd5b60208101600483106116c957634e487b7160e01b600052602160045260246000fd5b91905290565b6000602082840312156116e157600080fd5b5035919050565b600080604083850312156116fb57600080fd5b611704836115f2565b9150611712602084016115f2565b90509250929050565b600181811c9082168061172f57607f821691505b6020821081141561175057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156117b4576117b461178b565b500190565b60008160001904831182151516156117d3576117d361178b565b500290565b6000826117f557634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561183557816000190482111561181b5761181b61178b565b8085161561182857918102915b93841c93908002906117ff565b509250929050565b60008261184c57506001610767565b8161185957506000610767565b816001811461186f576002811461187957611895565b6001915050610767565b60ff84111561188a5761188a61178b565b50506001821b610767565b5060208310610133831016604e8410600b84101617156118b8575081810a610767565b6118c283836117fa565b80600019048211156118d6576118d661178b565b029392505050565b600061164e60ff84168361183d565b6000828210156118ff576118ff61178b565b50039056fea26469706673582212205bd0fc0f60fa0779650c09c65f3933512d7868f40ebcebb52a83b8285c2e96e964736f6c634300080b0033

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

000000000000000000000000e01624dc259719821fcc5abc49487858f775d64d

-----Decoded View---------------
Arg [0] : _deposit (address): 0xE01624dC259719821fcC5Abc49487858F775D64D

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e01624dc259719821fcc5abc49487858f775d64d


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

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.