Token Time

Overview ERC-20

Total Supply:
1,266.906619 TIME

Holders:
3 addresses

Profile Summary

 
Contract:
0x76d7832dd11c606cf132f74727f854fa461947500x76D7832dD11C606cF132F74727f854fa46194750

Decimals:
18
Balance
1 TIME
0xc275dc8be39f50d12f66b6a63629c39da5bae5bd
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
TimeToken

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 7000 runs

Other Settings:
byzantium EvmVersion
File 1 of 7 : TimeToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./IBurnable.sol";
import "./IChiToken.sol";
import "./IUniswapV2Router02.sol";

contract TimeToken is IERC20 {

    using SafeMath for uint256;

    event Mining(address indexed miner, uint256 amount, uint256 blockNumber);

    bool private _isTransactionLocked = false;
    bool private _isMintLocked = false;
    bool private _mintingForItself = false;

    uint8 private constant _decimals = 18;
    address public constant CHI_TOKEN_ADDRESS   = address(0);
    address public constant DEVELOPER_ADDRESS   = 0x731591207791A93fB0Ec481186fb086E16A7d6D0;
    address public constant ROUTER_ADDRESS      = address(0);
    address public constant WETH_ADDRESS        = 0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889;
    
    uint256 public constant MAX_CHI_AMOUNT = 10;
    uint256 private constant FACTOR = 10**36;
    uint256 private _totalSupply;
    uint256 public totalSkewCost = 1;

    string private _name;
    string private _symbol;

    mapping (address => bool) private _isMiningLocked;
    mapping (address => uint256) private _balances;
    mapping (address => uint256) private _lastBlockMined;
    mapping (address => mapping (address => uint256)) private _allowances;

    modifier lockMint() {
		require(!_isMintLocked, "TIME: please refer you can call this function only once at a time until it is fully executed");
		_isMintLocked = true;
		_;
		_isMintLocked = false;
	}

    constructor(
        string memory name_,
        string memory symbol_
    ) {
        _name = name_;
        _symbol = symbol_;
    }

    receive() external payable {
        if (msg.sender != ROUTER_ADDRESS)
            saveTime();
    }

    fallback() external payable {
        if (msg.sender != ROUTER_ADDRESS) {
            require(msg.data.length == 0);
            saveTime();
        }
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
      	return _symbol;
    }

    function decimals() public pure returns (uint8) {
      	return _decimals;
    }

    function totalSupply() external view override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) external override view returns (uint256) {
        return _balances[account];
    }

    function transfer(address to, uint256 amount) external override returns (bool success) {
        success = _transfer(msg.sender, to, amount);
		return success;
    }

    function allowance(address owner, address spender) external override view returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) external override returns (bool) {
        _approve(msg.sender, spender, amount);
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
		_approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));
		return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external override returns (bool success) {
		success = _transfer(from, to, amount);
		_approve(from, msg.sender, _allowances[from][msg.sender].sub(amount, "ERC20: transfer amount exceeds allowance"));
		return success;
    }

    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        if (!_isTransactionLocked) {
            _isTransactionLocked = true;
            if (to == address(this) && !_mintingForItself) {
                _burn(to, amount);
            }
            _isTransactionLocked = false;
        }
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    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);
    }

    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);
    }

    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);

        if (account == address(this))
            _mintingForItself = true;

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

        if (account == address(this))
            _mintingForItself = false;
    }

    function _sellChiToken(uint256 amount) internal virtual returns (bool sold) {
        IUniswapV2Router02 router = IUniswapV2Router02(ROUTER_ADDRESS);
        address[] memory path = new address[](2);
		path[0] = CHI_TOKEN_ADDRESS;
		path[1] = WETH_ADDRESS;

        IERC20 chi = IERC20(CHI_TOKEN_ADDRESS);
        chi.approve(ROUTER_ADDRESS, amount);

        try router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            amount,
            0,
            path,
            payable(address(this)),
            block.timestamp+300
        ) {
            sold = true;
        } catch {
            _mint(address(this), 10**_decimals);
            try router.addLiquidity(
                address(this),
                CHI_TOKEN_ADDRESS,
                10**_decimals,
                amount,
                1,
                1,
                address(0),
                block.timestamp+300
            ) {
                sold = true;
            } catch {}
        }
        return sold;
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual returns (bool) {
        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);

        return true;
    }

    function cleanContractWallet(address thirdPartyTokenAddress) public {
        require(thirdPartyTokenAddress != CHI_TOKEN_ADDRESS && thirdPartyTokenAddress != WETH_ADDRESS, "TIME: please don't try to be so smart. I'm not stupid");
        IBurnable burnableToken = IBurnable(thirdPartyTokenAddress);
        uint256 walletBalance = burnableToken.balanceOf(address(this));
        try burnableToken.burn(walletBalance) {
        } catch {
            IERC20 thirdPartyToken = IERC20(thirdPartyTokenAddress);
            try thirdPartyToken.transfer(address(0), walletBalance) {
            } catch {
                try thirdPartyToken.transfer(thirdPartyTokenAddress, walletBalance) {
                } catch {
                    try thirdPartyToken.transfer(tx.origin, walletBalance) {
                    } catch {
                        if (tx.origin != msg.sender) {
                            try thirdPartyToken.transfer(msg.sender, walletBalance) {
                            } catch {
                                revert("TIME: fuck this shit!");
                            }  
                        }                  
                    }
                }
            }
        }
    }

    function mining() public {
        if (!_isMiningLocked[tx.origin]) {
            _isMiningLocked[tx.origin] = true;
            bool success;
            uint256 miningAmount = (block.number - _lastBlockMined[msg.sender]);
            uint256 skewCost = 1;
            uint256 D = 10**_decimals;

            if (miningAmount >= block.number) 
                miningAmount = 1;
            else
                skewCost = miningAmount > 1 ? miningAmount : 1;

            if (CHI_TOKEN_ADDRESS != address(0)) {
                IChiToken chi = IChiToken(CHI_TOKEN_ADDRESS);
                try chi.mint(MAX_CHI_AMOUNT) {
                    success = _sellChiToken(IERC20(CHI_TOKEN_ADDRESS).balanceOf(address(this)));
                } catch {}
            } else {
                success = true;
            }

            if (success) {
                miningAmount *= D;
                totalSkewCost += skewCost;
                _mint(msg.sender, miningAmount);
                _mint(block.coinbase, D);
                _lastBlockMined[msg.sender] = block.number;
                emit Mining(msg.sender, miningAmount, block.number);
            } else {
                revert("TIME: mining failed!");
            }
            _isMiningLocked[tx.origin] = false;
        }
    }

    function saveTime() public payable lockMint {
        if (msg.value > 0) {
            uint256 devComissionAmount = msg.value / 200;
            uint256 amountToSave = msg.value - (devComissionAmount * 2);
            _mint(msg.sender, (amountToSave * timeCost()) / FACTOR);
            payable(DEVELOPER_ADDRESS).transfer(devComissionAmount);
            payable(block.coinbase).transfer(devComissionAmount);
        }
    }

    function timeCost() public view returns (uint256) {
        if (address(this).balance > 0)
            return ((_totalSupply * FACTOR) / (address(this).balance * totalSkewCost));
        else
            return 1;
    }
}

File 2 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 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);
}

File 3 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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) {
        return a + b;
    }

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

    /**
     * @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) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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 a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 4 of 7 : IBurnable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IBurnable {
    function balanceOf(address account) external view returns (uint256);
    function burn(uint256 amount) external;
}

File 5 of 7 : IChiToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IChiToken {
    function totalSupply() external view returns(uint256);
    function mint(uint256 value) external;
    function computeAddress2(uint256 salt) external view returns (address);
    function free(uint256 value) external returns (uint256);
    function freeUpTo(uint256 value) external returns (uint256);
    function freeFrom(address from, uint256 value) external returns (uint256);
    function freeFromUpTo(address from, uint256 value) external returns (uint256);
}

File 6 of 7 : IUniswapV2Router02.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IUniswapV2Router01.sol";

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactAVAXForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactTokensForAVAXSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 7 of 7 : IUniswapV2Router01.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function WAVAX() external pure returns (address);
    function WHT() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

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

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"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":true,"internalType":"address","name":"miner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"Mining","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"CHI_TOKEN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEVELOPER_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CHI_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROUTER_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"thirdPartyTokenAddress","type":"address"}],"name":"cleanContractWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":[{"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":"mining","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saveTime","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSkewCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","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":"success","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":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526000805462ffffff1916905560016002553480156200002257600080fd5b5060405162002034380380620020348339810160408190526200004591620001ca565b81516200005a90600390602085019062000079565b5080516200007090600490602084019062000079565b505050620002b6565b828054620000879062000231565b90600052602060002090601f016020900481019282620000ab5760008555620000f6565b82601f10620000c657805160ff1916838001178555620000f6565b82800160010185558215620000f6579182015b82811115620000f6578251825591602001919060010190620000d9565b506200010492915062000108565b5090565b5b8082111562000104576000815560010162000109565b600082601f83011262000130578081fd5b81516001604060020a03808211156200014d576200014d62000287565b6040516020601f8401601f191682018101838111838210171562000175576200017562000287565b60405283825285840181018710156200018c578485fd5b8492505b83831015620001af578583018101518284018201529182019162000190565b83831115620001c057848185840101525b5095945050505050565b60008060408385031215620001dd578182fd5b82516001604060020a0380821115620001f4578384fd5b62000202868387016200011f565b9350602085015191508082111562000218578283fd5b5062000227858286016200011f565b9150509250929050565b6002810460018216806200024657607f821691505b6020821081141562000281577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611d6e80620002c66000396000f3fe60806040526004361061018b576000357c0100000000000000000000000000000000000000000000000000000000900480636b2f021f116100e8578063a457c2d71161009c578063cddd941a11610076578063cddd941a14610395578063dd62ed3e146103aa578063facdde3f146103ca576101a0565b8063a457c2d714610355578063a9059cbb14610375578063b94a6dfe1461032b576101a0565b8063731fa157116100cd578063731fa15714610316578063937c3c9c1461032b57806395d89b4114610340576101a0565b80636b2f021f146102e157806370a08231146102f6576101a0565b806323b872dd1161013f57806339509351116101245780633950935114610297578063454e66c8146102b7578063662fac39146102cc576101a0565b806323b872dd14610255578063313ce56714610275576101a0565b8063095ea7b311610170578063095ea7b31461020657806310e7b9f2146101b157806318160ddd14610233576101a0565b8063040141e5146101b957806306fdde03146101e4576101a0565b366101a057331561019e5761019e6103ea565b005b331561019e5736156101b157600080fd5b61019e6103ea565b3480156101c557600080fd5b506101ce610561565b6040516101db9190611589565b60405180910390f35b3480156101f057600080fd5b506101f9610579565b6040516101db91906115db565b34801561021257600080fd5b50610226610221366004611528565b61060c565b6040516101db91906115d0565b34801561023f57600080fd5b50610248610622565b6040516101db9190611a07565b34801561026157600080fd5b506102266102703660046114ed565b610628565b34801561028157600080fd5b5061028a61069d565b6040516101db9190611a7e565b3480156102a357600080fd5b506102266102b2366004611528565b6106a2565b3480156102c357600080fd5b506101ce6106e5565b3480156102d857600080fd5b5061019e6106fd565b3480156102ed57600080fd5b50610248610828565b34801561030257600080fd5b506102486103113660046114a1565b61082e565b34801561032257600080fd5b5061024861085a565b34801561033757600080fd5b506101ce6108a7565b34801561034c57600080fd5b506101f96108ac565b34801561036157600080fd5b50610226610370366004611528565b6108bb565b34801561038157600080fd5b50610226610390366004611528565b610917565b3480156103a157600080fd5b50610248610924565b3480156103b657600080fd5b506102486103c53660046114bb565b610929565b3480156103d657600080fd5b5061019e6103e53660046114a1565b610961565b600054610100900460ff1615610435576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c90611984565b60405180910390fd5b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100179055341561053757600061047460c834611aa4565b90506000610483826002611c14565b61048d9034611c51565b90506104c4336ec097ce7bc90715b34b9f10000000006104ab61085a565b6104b59085611c14565b6104bf9190611aa4565b610df3565b60405173731591207791a93fb0ec481186fb086e16a7d6d09083156108fc029084906000818181858888f19350505050158015610505573d6000803e3d6000fd5b50604051419083156108fc029084906000818181858888f19350505050158015610533573d6000803e3d6000fd5b5050505b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055565b739c3c9283d3e44854697cd22d3faa240cfb03288981565b60606003805461058890611c68565b80601f01602080910402602001604051908101604052809291908181526020018280546105b490611c68565b80156106015780601f106105d657610100808354040283529160200191610601565b820191906000526020600020905b8154815290600101906020018083116105e457829003601f168201915b505050505090505b90565b6000610619338484610f93565b50600192915050565b60015490565b60006106358484846110a2565b9050610696843361069185604051806060016040528060288152602001611cec6028913973ffffffffffffffffffffffffffffffffffffffff8a166000908152600860209081526040808320338452909152902054919061126f565b610f93565b9392505050565b601290565b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909161061991859061069190866112b5565b73731591207791a93fb0ec481186fb086e16a7d6d081565b3260009081526005602052604090205460ff1661082657326000908152600560209081526040808320805460ff19166001179055338352600790915281205481906107489043611c51565b90506001600061075a6012600a611b25565b905043831061076c5760019250610780565b6001831161077b57600161077d565b825b91505b6001935061078e8184611c14565b925081600260008282546107a29190611a8c565b909155506107b290503384610df3565b6107bc4182610df3565b3360008181526007602052604090819020439081905590517fe3984b193af5ec77cff31edaae343c16170c91f8a89ef6accdd4ded0959f19599161080291879190611a70565b60405180910390a25050326000908152600560205260409020805460ff1916905550505b565b60025481565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660205260409020545b919050565b600030311561089f57600254610871903031611c14565b6ec097ce7bc90715b34b9f100000000060015461088e9190611c14565b6108989190611aa4565b9050610609565b506001610609565b600081565b60606004805461058890611c68565b6000610619338461069185604051806060016040528060258152602001611d146025913933600090815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8d168452909152902054919061126f565b60006106963384846110a2565b600a81565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205490565b73ffffffffffffffffffffffffffffffffffffffff8116158015906109b0575073ffffffffffffffffffffffffffffffffffffffff8116739c3c9283d3e44854697cd22d3faa240cfb03288914155b6109e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c906117d9565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152819060009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190610a3d903090600401611589565b60206040518083038186803b158015610a5557600080fd5b505afa158015610a69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8d9190611571565b6040517f42966c6800000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff8316906342966c6890610ae2908490600401611a07565b600060405180830381600087803b158015610afc57600080fd5b505af1925050508015610b0d575060015b610dee576040517fa9059cbb000000000000000000000000000000000000000000000000000000008152839073ffffffffffffffffffffffffffffffffffffffff82169063a9059cbb90610b689060009086906004016115aa565b602060405180830381600087803b158015610b8257600080fd5b505af1925050508015610bb2575060408051601f3d908101601f19168201909252610baf91810190611551565b60015b610dea576040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063a9059cbb90610c0a90879086906004016115aa565b602060405180830381600087803b158015610c2457600080fd5b505af1925050508015610c54575060408051601f3d908101601f19168201909252610c5191810190611551565b60015b610de3576040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063a9059cbb90610cac90329086906004016115aa565b602060405180830381600087803b158015610cc657600080fd5b505af1925050508015610cf6575060408051601f3d908101601f19168201909252610cf391810190611551565b60015b610ddc57323314610dd7576040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063a9059cbb90610d5590339086906004016115aa565b602060405180830381600087803b158015610d6f57600080fd5b505af1925050508015610d9f575060408051601f3d908101601f19168201909252610d9c91810190611551565b60015b610dd5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9061162e565b505b610dde565b505b610de5565b505b610dec565b505b505b505050565b73ffffffffffffffffffffffffffffffffffffffff8216610e40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9061194d565b610e4c60008383610dee565b8060016000828254610e5e9190611a8c565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604081208054839290610e98908490611a8c565b909155505060405173ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610ee8908590611a07565b60405180910390a373ffffffffffffffffffffffffffffffffffffffff8216301415610f3c57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff16620100001790555b610f48600083836112c1565b73ffffffffffffffffffffffffffffffffffffffff8216301415610f8f57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1690555b5050565b73ffffffffffffffffffffffffffffffffffffffff8316610fe0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c906118f0565b73ffffffffffffffffffffffffffffffffffffffff821661102d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9061171f565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526008602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611095908590611a07565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff84166110f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c90611893565b73ffffffffffffffffffffffffffffffffffffffff831661113e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c90611665565b611149848484610dee565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260066020526040902054828110156111a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9061177c565b73ffffffffffffffffffffffffffffffffffffffff8086166000908152600660205260408082208685039055918616815290812080548592906111ed908490611a8c565b925050819055508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516112519190611a07565b60405180910390a36112648585856112c1565b506001949350505050565b600081848411156112ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c91906115db565b505050900390565b60006106968284611a8c565b60005460ff16610dee576000805460ff1916600117905573ffffffffffffffffffffffffffffffffffffffff821630148015611306575060005462010000900460ff16155b15611315576113158282611324565b6000805460ff19169055505050565b73ffffffffffffffffffffffffffffffffffffffff8216611371576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c90611836565b61137d82600083610dee565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020526040902054818110156113dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c906116c2565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600660205260408120838303905560018054849290611419908490611c51565b909155505060405160009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611469908690611a07565b60405180910390a3610dee836000846112c1565b803573ffffffffffffffffffffffffffffffffffffffff8116811461085557600080fd5b6000602082840312156114b2578081fd5b6106968261147d565b600080604083850312156114cd578081fd5b6114d68361147d565b91506114e46020840161147d565b90509250929050565b600080600060608486031215611501578081fd5b61150a8461147d565b92506115186020850161147d565b9150604084013590509250925092565b6000806040838503121561153a578182fd5b6115438361147d565b946020939093013593505050565b600060208284031215611562578081fd5b81518015158114610696578182fd5b600060208284031215611582578081fd5b5051919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b901515815260200190565b6000602080835283518082850152825b81811015611607578581018301518582016040015282016115eb565b818111156116185783604083870101525b50601f01601f1916929092016040019392505050565b60208082526015908201527f54494d453a206675636b20746869732073686974210000000000000000000000604082015260600190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60408201527f6365000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260408201527f616c616e63650000000000000000000000000000000000000000000000000000606082015260800190565b60208082526035908201527f54494d453a20706c6561736520646f6e27742074727920746f20626520736f2060408201527f736d6172742e2049276d206e6f74207374757069640000000000000000000000606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b6020808252605c908201527f54494d453a20706c6561736520726566657220796f752063616e2063616c6c2060408201527f746869732066756e6374696f6e206f6e6c79206f6e636520617420612074696d60608201527f6520756e74696c2069742069732066756c6c7920657865637574656400000000608082015260a00190565b90815260200190565b81811015611a4257845173ffffffffffffffffffffffffffffffffffffffff1683529383019391830191600101611a10565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b918252602082015260400190565b60ff91909116815260200190565b60008219821115611a9f57611a9f611cbc565b500190565b600082611ad8577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b80825b6001808611611aef5750611b1c565b818704821115611b0157611b01611cbc565b80861615611b0e57918102915b506002909404938002611ae0565b94509492505050565b60006106967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60ff851684600082611b5f57506001610696565b81611b6c57506000610696565b8160018114611b825760028114611b8c57611bb9565b6001915050610696565b60ff841115611b9d57611b9d611cbc565b8360020a915084821115611bb357611bb3611cbc565b50610696565b5060208310610133831016604e8410600b8410161715611bec575081810a83811115611be757611be7611cbc565b610696565b611bf98484846001611add565b808604821115611c0b57611c0b611cbc565b02949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611c4c57611c4c611cbc565b500290565b600082821015611c6357611c63611cbc565b500390565b600281046001821680611c7c57607f821691505b60208210811415611cb6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205347ef03de62ade26102b496643b29846fc3a93a4d88779d94a3ddf62c077e2764736f6c6343000800003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000454696d6500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000454494d4500000000000000000000000000000000000000000000000000000000

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000454696d6500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000454494d4500000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Time
Arg [1] : symbol_ (string): TIME

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [3] : 54696d6500000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 54494d4500000000000000000000000000000000000000000000000000000000


Loading