ETH Price: $3,557.78 (+6.94%)

Contract

0xd2f6B9225Ed446C1b445AC0656c8cCC97d096fB8
 
Transaction Hash
Method
Block
From
To
Withdraw Tokens210417462024-10-25 9:30:4733 days ago1729848647IN
0xd2f6B922...97d096fB8
0 ETH0.001015897.024
Withdraw Tokens199313002024-05-23 8:10:11188 days ago1716451811IN
0xd2f6B922...97d096fB8
0 ETH0.0021319414.74047748
Withdraw Tokens196816672024-04-18 10:11:59223 days ago1713435119IN
0xd2f6B922...97d096fB8
0 ETH0.0039050627
Withdraw Tokens196816672024-04-18 10:11:59223 days ago1713435119IN
0xd2f6B922...97d096fB8
0 ETH0.0039050627
Withdraw Tokens190639972024-01-22 18:19:11309 days ago1705947551IN
0xd2f6B922...97d096fB8
0 ETH0.0027664619.12762413
Make Deposit189330052024-01-04 9:14:35328 days ago1704359675IN
0xd2f6B922...97d096fB8
0 ETH0.0019348971.90793828
Make Deposit189330032024-01-04 9:14:11328 days ago1704359651IN
0xd2f6B922...97d096fB8
0 ETH0.0016196660.19265284
Withdraw Tokens186060852023-11-19 13:14:47374 days ago1700399687IN
0xd2f6B922...97d096fB8
0 ETH0.003615825
Withdraw Tokens186058932023-11-19 12:35:59374 days ago1700397359IN
0xd2f6B922...97d096fB8
0 ETH0.0067053846.36172015
Withdraw Tokens183591472023-10-15 23:46:47408 days ago1697413607IN
0xd2f6B922...97d096fB8
0 ETH0.001012427
Withdraw Tokens183496772023-10-14 16:01:23410 days ago1697299283IN
0xd2f6B922...97d096fB8
0 ETH0.001135677.85282829
Withdraw Tokens183449662023-10-14 0:11:59410 days ago1697242319IN
0xd2f6B922...97d096fB8
0 ETH0.001243697.92649898
Withdraw Tokens183448692023-10-13 23:52:35410 days ago1697241155IN
0xd2f6B922...97d096fB8
0 ETH0.001176167.37055537
Retrieve Tokens177765532023-07-26 10:07:47490 days ago1690366067IN
0xd2f6B922...97d096fB8
0 ETH0.0011560716.72904512
Retrieve Tokens ...177765402023-07-26 10:05:11490 days ago1690365911IN
0xd2f6B922...97d096fB8
0 ETH0.0021524917.91253165
Transfer165985332023-02-10 13:03:23656 days ago1676034203IN
0xd2f6B922...97d096fB8
0.00282473 ETH0.0006904532.87900912
Make Deposit155592112022-09-18 8:21:59801 days ago1663489319IN
0xd2f6B922...97d096fB8
0 ETH0.00013975.19209718
Make Deposit155592112022-09-18 8:21:59801 days ago1663489319IN
0xd2f6B922...97d096fB8
0 ETH0.00013975.19209718
Make Deposit155592102022-09-18 8:21:47801 days ago1663489307IN
0xd2f6B922...97d096fB8
0 ETH0.000106253.94878994
Make Deposit155592102022-09-18 8:21:47801 days ago1663489307IN
0xd2f6B922...97d096fB8
0 ETH0.000106253.94878994
Make Deposit155592102022-09-18 8:21:47801 days ago1663489307IN
0xd2f6B922...97d096fB8
0 ETH0.000106253.94878994
Make Deposit155592102022-09-18 8:21:47801 days ago1663489307IN
0xd2f6B922...97d096fB8
0 ETH0.000133164.94878994
Make Deposit155592102022-09-18 8:21:47801 days ago1663489307IN
0xd2f6B922...97d096fB8
0 ETH0.000106253.94878994
Make Deposit155592102022-09-18 8:21:47801 days ago1663489307IN
0xd2f6B922...97d096fB8
0 ETH0.000106253.94878994
Make Deposit155592102022-09-18 8:21:47801 days ago1663489307IN
0xd2f6B922...97d096fB8
0 ETH0.000106253.94878994
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
InfinityDeposit

Compiler Version
v0.6.2+commit.bacdbe57

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : InfinityDeposit.sol
pragma solidity ^0.6.2;

/*
    TENSET IS THE BEST !!!
    DIAMOND HANDS
*/

import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

import "./Package.sol";
import "./RetrieveTokensFeature.sol";

contract InfinityDeposit is RetrieveTokensFeature, Package {
    using SafeMath for uint256;

    IERC20 public Tenset;
    struct Deposit {
        address withdrawalAddress;
        uint256 tokenAmount;
        uint256 unlockTime;
        uint256 idxPackage;
        bool    withdrawn;
    }

    uint256 public depositId;
    uint256[] public allDepositIds;
    uint256 public totalUsersBalance;

    mapping (address => uint256[]) public depositsByWithdrawalAddress;
    mapping (uint256 => Deposit) public lockedToken;
    mapping(address => uint256) public walletTokenBalance;

    event LogWithdrawal(uint256 Id, uint256 IndexPackage, address WithdrawalAddress, uint256 Amount);
    event LogDeposit(uint256 Id, uint256 IndexPackage, address WithdrawalAddress, uint256 Amount, uint256 BonusAmount, uint256 UnlockTime);
    event LogExtend(uint256 Id, uint256 IndexPackage, address WithdrawalAddress, uint256 UnlockTime);

    constructor(address addrToken) public {
        Tenset = IERC20(addrToken);
    }

    function makeDeposit(address _withdrawalAddress, uint256 _idxPackage, uint256 _amount) public canBuy(_idxPackage, _amount) returns(uint256 _id) {
        //update balance in address
        uint256 tensetFixedBalance = _amount.sub(_decreaseAmountFee(_amount));

        walletTokenBalance[_withdrawalAddress] = walletTokenBalance[_withdrawalAddress].add(tensetFixedBalance);
        totalUsersBalance += tensetFixedBalance;

        _id = ++depositId;
        lockedToken[_id].withdrawalAddress = _withdrawalAddress;
        lockedToken[_id].tokenAmount = tensetFixedBalance;
        lockedToken[_id].unlockTime = _deltaTimestamp(_idxPackage);
        lockedToken[_id].idxPackage = _idxPackage;
        lockedToken[_id].withdrawn = false;

        allDepositIds.push(_id);
        depositsByWithdrawalAddress[_withdrawalAddress].push(_id);

        // transfer tokens into contract
        require(Tenset.transferFrom(msg.sender, address(this), _amount));
        // Count bonus from package without decrease fee
        uint256 WithBonusAmount = tensetFixedBalance.mul(availablePackage[_idxPackage].dailyPercentage).div(100).add(tensetFixedBalance);
        emit LogDeposit(_id, _idxPackage, _withdrawalAddress, tensetFixedBalance, WithBonusAmount, lockedToken[_id].unlockTime);
    }

    /**
     *Extend lock Duration
    */
    function extendLockDuration(uint256 _id) public {
        require(!lockedToken[_id].withdrawn);
        require(msg.sender == lockedToken[_id].withdrawalAddress);
        require(activePackage(lockedToken[_id].idxPackage), "Package is not active");

        //set new unlock time
        lockedToken[_id].unlockTime = _deltaTimestamp(lockedToken[_id].idxPackage);
        emit LogExtend(_id, lockedToken[_id].idxPackage, lockedToken[_id].withdrawalAddress, lockedToken[_id].unlockTime);
    }

    /**
     *withdraw tokens
    */
    function withdrawTokens(uint256 _id) public {
        require(block.timestamp >= lockedToken[_id].unlockTime);
        require(msg.sender == lockedToken[_id].withdrawalAddress);
        require(!lockedToken[_id].withdrawn);

        lockedToken[_id].withdrawn = true;
        uint256 _idPackage = lockedToken[_id].idxPackage;
        //update balance in address
        walletTokenBalance[msg.sender] = walletTokenBalance[msg.sender].sub(lockedToken[_id].tokenAmount);
        totalUsersBalance -= lockedToken[_id].tokenAmount;

        //remove this id from this address
        uint256 j;
        uint256 arrLength = depositsByWithdrawalAddress[lockedToken[_id].withdrawalAddress].length;

        for (j=0; j<arrLength; j++) {
            if (depositsByWithdrawalAddress[lockedToken[_id].withdrawalAddress][j] == _id) {
                depositsByWithdrawalAddress[lockedToken[_id].withdrawalAddress][j] = depositsByWithdrawalAddress[lockedToken[_id].withdrawalAddress][arrLength - 1];
                depositsByWithdrawalAddress[lockedToken[_id].withdrawalAddress].pop();
                break;
            }
        }

        // transfer tokens to wallet address
        require(Tenset.transfer(msg.sender, lockedToken[_id].tokenAmount));
        emit LogWithdrawal(_id, _idPackage, msg.sender, lockedToken[_id].tokenAmount);
    }

    function getTotalTokenBalance() view public returns (uint256) {
        return Tenset.balanceOf(address(this));
    }

    /*get total token balance by address*/
    function getTokenBalanceByAddress(address _walletAddress) view public returns (uint256) {
        return walletTokenBalance[_walletAddress];
    }

    /*get allDepositIds*/
    function getAllDepositIds() view public returns (uint256[] memory) {
        return allDepositIds;
    }

    /*get getDepositDetails*/
    function getDepositDetails(uint256 _id) view public returns (uint256 package, address _withdrawalAddress, uint256 _tokenAmount, uint256 _unlockTime, bool _withdrawn) {
        return(lockedToken[_id].idxPackage, lockedToken[_id].withdrawalAddress, lockedToken[_id].tokenAmount, lockedToken[_id].unlockTime,lockedToken[_id].withdrawn);
    }

    /*get DepositsByWithdrawalAddress*/
    function getDepositsByWithdrawalAddress(address _withdrawalAddress) view public returns (uint256[] memory) {
        return depositsByWithdrawalAddress[_withdrawalAddress];
    }

    function retrieveTokensFromStaking(address to) public onlyOwner() {
        RetrieveTokensFeature.retrieveTokens(to, address(Tenset), getStakingPool());
    }

    function getStakingPool() public view returns(uint256 _pool) {
        _pool = getTotalTokenBalance().sub(totalUsersBalance);
    }
}

File 2 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

File 3 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

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

File 4 of 8 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        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) {
        // 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) {
        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) {
        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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        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) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b > 0, "SafeMath: modulo by zero");
        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) {
        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.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        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) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 5 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

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

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

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

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

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

File 6 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

File 7 of 8 : Package.sol
pragma solidity ^0.6.2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";

contract Package is Ownable {
    using SafeMath for uint256;

    function _decreaseAmountFee(uint256 _oldAmount) internal pure returns(uint256 _newAmount) {
        uint256 scaledFee = 2;
        uint256 scalledPercentage = 100;
        return _oldAmount.mul(scaledFee).div(scalledPercentage);
    }

    modifier canBuy(uint256 _idxPackage, uint256 _amount) {
        require(_idxPackage < availablePackage.length, "Index out of range");
        require(_amount > 0);
        require(availablePackage.length >= _idxPackage, "Package doesn't exists");
        require(availablePackage[_idxPackage].active, "Package is not active ");
        require(_amount.sub(_decreaseAmountFee(_amount)) > availablePackage[_idxPackage].minTokenAmount, "Amount is too small");
            _;
    }

    struct PackageItem {
        string  aliasName;
        uint256 daysLock;
        uint256 minTokenAmount;
        uint256 dailyPercentage;
        bool    active;
    }
    PackageItem[] public availablePackage;

    function showPackageDetail(uint16 _index) public view returns(string memory, uint256, uint256, uint256, bool) {
        require(_index < availablePackage.length, "Index out of range");
        return (
            availablePackage[_index].aliasName,
            availablePackage[_index].daysLock,
            availablePackage[_index].minTokenAmount,
            availablePackage[_index].dailyPercentage,
            availablePackage[_index].active
        );
    }

    function pushPackageDetail(
        string memory _aliasName,
        uint256 _daysLock,
        uint256 _minTokenAmount,
        uint256 _dailyPercentage
    ) public onlyOwner {
        PackageItem memory pkg = PackageItem({
            aliasName: _aliasName,
            daysLock: _daysLock,
            minTokenAmount: _minTokenAmount,
            dailyPercentage: _dailyPercentage,
            active: true
        });
        availablePackage.push(pkg);
    }

    function getLengthPackage() public view returns(uint256) {
        return availablePackage.length;
    }

    function _deltaTimestamp(uint256 _idxPackage) internal view returns(uint) {
        return availablePackage[_idxPackage].daysLock * 1 days + now;
    }

    function setActive(uint256 _idxPackage, bool _active) public onlyOwner {
        require(_idxPackage < availablePackage.length, "Index out of range");
        availablePackage[_idxPackage].active = _active;
    }

    function activePackage(uint _idxPackage) internal view returns(bool) {
        return availablePackage[_idxPackage].active;
    }
}

File 8 of 8 : RetrieveTokensFeature.sol
pragma solidity ^0.6.2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract RetrieveTokensFeature is Context, Ownable {

    function retrieveTokens(address to, address anotherToken, uint256 amount) virtual public onlyOwner() {
        IERC20 alienToken = IERC20(anotherToken);
        alienToken.transfer(to, amount);
    }

    function retriveETH(address payable to) virtual public onlyOwner() {
        to.transfer(address(this).balance);
    }

}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"addrToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"Id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"IndexPackage","type":"uint256"},{"indexed":false,"internalType":"address","name":"WithdrawalAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"Amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"BonusAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"UnlockTime","type":"uint256"}],"name":"LogDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"Id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"IndexPackage","type":"uint256"},{"indexed":false,"internalType":"address","name":"WithdrawalAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"UnlockTime","type":"uint256"}],"name":"LogExtend","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"Id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"IndexPackage","type":"uint256"},{"indexed":false,"internalType":"address","name":"WithdrawalAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"Amount","type":"uint256"}],"name":"LogWithdrawal","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"},{"inputs":[],"name":"Tenset","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allDepositIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availablePackage","outputs":[{"internalType":"string","name":"aliasName","type":"string"},{"internalType":"uint256","name":"daysLock","type":"uint256"},{"internalType":"uint256","name":"minTokenAmount","type":"uint256"},{"internalType":"uint256","name":"dailyPercentage","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"depositsByWithdrawalAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"extendLockDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllDepositIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getDepositDetails","outputs":[{"internalType":"uint256","name":"package","type":"uint256"},{"internalType":"address","name":"_withdrawalAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"uint256","name":"_unlockTime","type":"uint256"},{"internalType":"bool","name":"_withdrawn","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawalAddress","type":"address"}],"name":"getDepositsByWithdrawalAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLengthPackage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingPool","outputs":[{"internalType":"uint256","name":"_pool","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_walletAddress","type":"address"}],"name":"getTokenBalanceByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockedToken","outputs":[{"internalType":"address","name":"withdrawalAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"unlockTime","type":"uint256"},{"internalType":"uint256","name":"idxPackage","type":"uint256"},{"internalType":"bool","name":"withdrawn","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawalAddress","type":"address"},{"internalType":"uint256","name":"_idxPackage","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"makeDeposit","outputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_aliasName","type":"string"},{"internalType":"uint256","name":"_daysLock","type":"uint256"},{"internalType":"uint256","name":"_minTokenAmount","type":"uint256"},{"internalType":"uint256","name":"_dailyPercentage","type":"uint256"}],"name":"pushPackageDetail","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"anotherToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"retrieveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"retrieveTokensFromStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"}],"name":"retriveETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_idxPackage","type":"uint256"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_index","type":"uint16"}],"name":"showPackageDetail","outputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUsersBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"walletTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200304338038062003043833981810160405260208110156200003757600080fd5b810190808051906020019092919050505060006200005a6200014060201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000148565b600033905090565b612eeb80620001586000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c8063822b686e116100f9578063c9028aff11610097578063e0cb4c1011610071578063e0cb4c1014610a0b578063e60a955d14610a55578063f2fde38b14610a8f578063f4df7b9614610ad3576101a9565b8063c9028aff146108e0578063d02d450e14610922578063d69eca4c146109ed576101a9565b80639852099c116100d35780639852099c1461073d5780639a13ba291461075b578063a053ad3514610779578063bb941cff14610852576101a9565b8063822b686e1461059e578063890db72f146106655780638da5cb5b146106f3576101a9565b806345946334116101665780636473b1eb116101405780636473b1eb146104835780636ba03924146104c7578063715018a6146105265780637b0e1c5714610530576101a9565b806345946334146103d55780634847fdd1146103f3578063530680d814610421576101a9565b806305462c78146101ae5780630bd59ad3146101f2578063210e200a1461028b5780632440fdc2146102e3578063315a095d1461034f57806339e4ea631461037d575b600080fd5b6101f0600480360360208110156101c457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610af1565b005b6102346004803603602081101561020857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bd7565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561027757808201518184015260208101905061025c565b505050509050019250505060405180910390f35b6102cd600480360360208110156102a157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c6e565b6040518082815260200191505060405180910390f35b610339600480360360608110156102f957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050610c86565b6040518082815260200191505060405180910390f35b61037b6004803603602081101561036557600080fd5b810190808035906020019092919050505061133f565b005b6103bf6004803603602081101561039357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611992565b6040518082815260200191505060405180910390f35b6103dd6119db565b6040518082815260200191505060405180910390f35b61041f6004803603602081101561040957600080fd5b81019080803590602001909291905050506119fe565b005b61046d6004803603604081101561043757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611c44565b6040518082815260200191505060405180910390f35b6104c56004803603602081101561049957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611c72565b005b6104cf611d6b565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156105125780820151818401526020810190506104f7565b505050509050019250505060405180910390f35b61052e611dc3565b005b61059c6004803603606081101561054657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611f31565b005b6105ca600480360360208110156105b457600080fd5b81019080803590602001909291905050506120ae565b604051808060200186815260200185815260200184815260200183151515158152602001828103825287818151815260200191508051906020019080838360005b8381101561062657808201518184015260208101905061060b565b50505050905090810190601f1680156106535780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b6106916004803603602081101561067b57600080fd5b8101908080359060200190929190505050612196565b604051808681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001821515151581526020019550505050505060405180910390f35b6106fb612251565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61074561227a565b6040518082815260200191505060405180910390f35b610763612280565b6040518082815260200191505060405180910390f35b6108506004803603608081101561078f57600080fd5b81019080803590602001906401000000008111156107ac57600080fd5b8201836020820111156107be57600080fd5b803590602001918460018302840111640100000000831117156107e057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803590602001909291908035906020019092919080359060200190929190505050612286565b005b61087e6004803603602081101561086857600080fd5b81019080803590602001909291905050506123f9565b604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001838152602001821515151581526020019550505050505060405180910390f35b61090c600480360360208110156108f657600080fd5b810190808035906020019092919050505061245c565b6040518082815260200191505060405180910390f35b6109526004803603602081101561093857600080fd5b81019080803561ffff16906020019092919050505061247d565b604051808060200186815260200185815260200184815260200183151515158152602001828103825287818151815260200191508051906020019080838360005b838110156109ae578082015181840152602081019050610993565b50505050905090810190601f1680156109db5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b6109f561266d565b6040518082815260200191505060405180910390f35b610a1361274e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a8d60048036036040811015610a6b57600080fd5b8101908080359060200190929190803515159060200190929190505050612774565b005b610ad160048036036020811015610aa557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506128d7565b005b610adb612aca565b6040518082815260200191505060405180910390f35b610af9612ad7565b73ffffffffffffffffffffffffffffffffffffffff16610b17612251565b73ffffffffffffffffffffffffffffffffffffffff1614610ba0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b610bd481600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610bcf6119db565b611f31565b50565b6060600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610c6257602002820191906000526020600020905b815481526020019060010190808311610c4e575b50505050509050919050565b60086020528060005260406000206000915090505481565b600082826001805490508210610d04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e646578206f7574206f662072616e6765000000000000000000000000000081525060200191505060405180910390fd5b60008111610d1157600080fd5b816001805490501015610d8c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f5061636b61676520646f65736e2774206578697374730000000000000000000081525060200191505060405180910390fd5b60018281548110610d9957fe5b906000526020600020906005020160040160009054906101000a900460ff16610e2a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f5061636b616765206973206e6f7420616374697665200000000000000000000081525060200191505060405180910390fd5b60018281548110610e3757fe5b906000526020600020906005020160020154610e64610e5583612adf565b83612b1a90919063ffffffff16565b11610ed7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f416d6f756e7420697320746f6f20736d616c6c0000000000000000000000000081525060200191505060405180910390fd5b6000610ef4610ee586612adf565b86612b1a90919063ffffffff16565b9050610f4881600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b9d90919063ffffffff16565b600860008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550806005600082825401925050819055506003600081546001019190508190559350866007600086815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600760008681526020019081526020016000206001018190555061102586612c25565b600760008681526020019081526020016000206002018190555085600760008681526020019081526020016000206003018190555060006007600086815260200190815260200160002060040160006101000a81548160ff0219169083151502179055506004849080600181540180825580915050600190039060005260206000200160009091909190915055600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190915055600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330886040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156111f557600080fd5b505af1158015611209573d6000803e3d6000fd5b505050506040513d602081101561121f57600080fd5b810190808051906020019092919050505061123957600080fd5b600061129182611283606461127560018c8154811061125457fe5b90600052602060002090600502016003015487612c5490919063ffffffff16565b612cda90919063ffffffff16565b612b9d90919063ffffffff16565b90507fab95e8b0b0ddc202528b40025c5594cfda4f0b23026cb1b7c8e2eb9ae9131b3885888a8585600760008c815260200190815260200160002060020154604051808781526020018681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001828152602001965050505050505060405180910390a1505050509392505050565b600760008281526020019081526020016000206002015442101561136257600080fd5b6007600082815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113d057600080fd5b6007600082815260200190815260200160002060040160009054906101000a900460ff16156113fe57600080fd5b60016007600083815260200190815260200160002060040160006101000a81548160ff0219169083151502179055506000600760008381526020019081526020016000206003015490506114b06007600084815260200190815260200160002060010154600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b1a90919063ffffffff16565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506007600083815260200190815260200160002060010154600560008282540392505081905550600080600660006007600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050600091505b808210156117f85783600660006007600088815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811061162557fe5b906000526020600020015414156117eb57600660006007600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060018203815481106116b957fe5b9060005260206000200154600660006007600088815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811061174457fe5b9060005260206000200181905550600660006007600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806117d057fe5b600190038181906000526020600020016000905590556117f8565b818060010192505061159c565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3360076000888152602001908152602001600020600101546040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156118b757600080fd5b505af11580156118cb573d6000803e3d6000fd5b505050506040513d60208110156118e157600080fd5b81019080805190602001909291905050506118fb57600080fd5b7f5881498f95d2bf33420866eeead2c535ba75b61cdbf7faab60300faa4828d1308484336007600089815260200190815260200160002060010154604051808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200194505050505060405180910390a150505050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006119f96005546119eb61266d565b612b1a90919063ffffffff16565b905090565b6007600082815260200190815260200160002060040160009054906101000a900460ff1615611a2c57600080fd5b6007600082815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a9a57600080fd5b611ab96007600083815260200190815260200160002060030154612d63565b611b2b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5061636b616765206973206e6f7420616374697665000000000000000000000081525060200191505060405180910390fd5b611b4a6007600083815260200190815260200160002060030154612c25565b60076000838152602001908152602001600020600201819055507f1e21ff31046cfcadd4dcc33920fde32c34fc20deb3cfbdb084e56db445f0ce728160076000848152602001908152602001600020600301546007600085815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166007600086815260200190815260200160002060020154604051808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200194505050505060405180910390a150565b60066020528160005260406000208181548110611c5d57fe5b90600052602060002001600091509150505481565b611c7a612ad7565b73ffffffffffffffffffffffffffffffffffffffff16611c98612251565b73ffffffffffffffffffffffffffffffffffffffff1614611d21576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611d67573d6000803e3d6000fd5b5050565b60606004805480602002602001604051908101604052809291908181526020018280548015611db957602002820191906000526020600020905b815481526020019060010190808311611da5575b5050505050905090565b611dcb612ad7565b73ffffffffffffffffffffffffffffffffffffffff16611de9612251565b73ffffffffffffffffffffffffffffffffffffffff1614611e72576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b611f39612ad7565b73ffffffffffffffffffffffffffffffffffffffff16611f57612251565b73ffffffffffffffffffffffffffffffffffffffff1614611fe0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008290508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561206c57600080fd5b505af1158015612080573d6000803e3d6000fd5b505050506040513d602081101561209657600080fd5b81019080805190602001909291905050505050505050565b600181815481106120bb57fe5b9060005260206000209060050201600091509050806000018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156121675780601f1061213c57610100808354040283529160200191612167565b820191906000526020600020905b81548152906001019060200180831161214a57829003601f168201915b5050505050908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b600080600080600060076000878152602001908152602001600020600301546007600088815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166007600089815260200190815260200160002060010154600760008a815260200190815260200160002060020154600760008b815260200190815260200160002060040160009054906101000a900460ff169450945094509450945091939590929450565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60035481565b60055481565b61228e612ad7565b73ffffffffffffffffffffffffffffffffffffffff166122ac612251565b73ffffffffffffffffffffffffffffffffffffffff1614612335576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61233d612d98565b6040518060a00160405280868152602001858152602001848152602001838152602001600115158152509050600181908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000190805190602001906123b1929190612dc9565b5060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff02191690831515021790555050505050505050565b60076020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b6004818154811061246957fe5b906000526020600020016000915090505481565b60606000806000806001805490508661ffff1610612503576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e646578206f7574206f662072616e6765000000000000000000000000000081525060200191505060405180910390fd5b60018661ffff168154811061251457fe5b906000526020600020906005020160000160018761ffff168154811061253657fe5b90600052602060002090600502016001015460018861ffff168154811061255957fe5b90600052602060002090600502016002015460018961ffff168154811061257c57fe5b90600052602060002090600502016003015460018a61ffff168154811061259f57fe5b906000526020600020906005020160040160009054906101000a900460ff16848054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156126535780601f1061262857610100808354040283529160200191612653565b820191906000526020600020905b81548152906001019060200180831161263657829003601f168201915b505050505094509450945094509450945091939590929450565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561270e57600080fd5b505afa158015612722573d6000803e3d6000fd5b505050506040513d602081101561273857600080fd5b8101908080519060200190929190505050905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61277c612ad7565b73ffffffffffffffffffffffffffffffffffffffff1661279a612251565b73ffffffffffffffffffffffffffffffffffffffff1614612823576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600180549050821061289d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e646578206f7574206f662072616e6765000000000000000000000000000081525060200191505060405180910390fd5b80600183815481106128ab57fe5b906000526020600020906005020160040160006101000a81548160ff0219169083151502179055505050565b6128df612ad7565b73ffffffffffffffffffffffffffffffffffffffff166128fd612251565b73ffffffffffffffffffffffffffffffffffffffff1614612986576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612a0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612e6f6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600180549050905090565b600033905090565b60008060029050600060649050612b1181612b038487612c5490919063ffffffff16565b612cda90919063ffffffff16565b92505050919050565b600082821115612b92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b600080828401905083811015612c1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000426201518060018481548110612c3957fe5b90600052602060002090600502016001015402019050919050565b600080831415612c675760009050612cd4565b6000828402905082848281612c7857fe5b0414612ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612e956021913960400191505060405180910390fd5b809150505b92915050565b6000808211612d51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b818381612d5a57fe5b04905092915050565b600060018281548110612d7257fe5b906000526020600020906005020160040160009054906101000a900460ff169050919050565b6040518060a00160405280606081526020016000815260200160008152602001600081526020016000151581525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612e0a57805160ff1916838001178555612e38565b82800160010185558215612e38579182015b82811115612e37578251825591602001919060010190612e1c565b5b509050612e459190612e49565b5090565b612e6b91905b80821115612e67576000816000905550600101612e4f565b5090565b9056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212205ec6e588112061bb7dfd2bf5706aa9aaf897b0121bc3257ac6796e6b5ff54d9764736f6c634300060200330000000000000000000000007ff4169a6b5122b664c51c95727d87750ec07c84

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a95760003560e01c8063822b686e116100f9578063c9028aff11610097578063e0cb4c1011610071578063e0cb4c1014610a0b578063e60a955d14610a55578063f2fde38b14610a8f578063f4df7b9614610ad3576101a9565b8063c9028aff146108e0578063d02d450e14610922578063d69eca4c146109ed576101a9565b80639852099c116100d35780639852099c1461073d5780639a13ba291461075b578063a053ad3514610779578063bb941cff14610852576101a9565b8063822b686e1461059e578063890db72f146106655780638da5cb5b146106f3576101a9565b806345946334116101665780636473b1eb116101405780636473b1eb146104835780636ba03924146104c7578063715018a6146105265780637b0e1c5714610530576101a9565b806345946334146103d55780634847fdd1146103f3578063530680d814610421576101a9565b806305462c78146101ae5780630bd59ad3146101f2578063210e200a1461028b5780632440fdc2146102e3578063315a095d1461034f57806339e4ea631461037d575b600080fd5b6101f0600480360360208110156101c457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610af1565b005b6102346004803603602081101561020857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bd7565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561027757808201518184015260208101905061025c565b505050509050019250505060405180910390f35b6102cd600480360360208110156102a157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c6e565b6040518082815260200191505060405180910390f35b610339600480360360608110156102f957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050610c86565b6040518082815260200191505060405180910390f35b61037b6004803603602081101561036557600080fd5b810190808035906020019092919050505061133f565b005b6103bf6004803603602081101561039357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611992565b6040518082815260200191505060405180910390f35b6103dd6119db565b6040518082815260200191505060405180910390f35b61041f6004803603602081101561040957600080fd5b81019080803590602001909291905050506119fe565b005b61046d6004803603604081101561043757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611c44565b6040518082815260200191505060405180910390f35b6104c56004803603602081101561049957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611c72565b005b6104cf611d6b565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156105125780820151818401526020810190506104f7565b505050509050019250505060405180910390f35b61052e611dc3565b005b61059c6004803603606081101561054657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611f31565b005b6105ca600480360360208110156105b457600080fd5b81019080803590602001909291905050506120ae565b604051808060200186815260200185815260200184815260200183151515158152602001828103825287818151815260200191508051906020019080838360005b8381101561062657808201518184015260208101905061060b565b50505050905090810190601f1680156106535780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b6106916004803603602081101561067b57600080fd5b8101908080359060200190929190505050612196565b604051808681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001821515151581526020019550505050505060405180910390f35b6106fb612251565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61074561227a565b6040518082815260200191505060405180910390f35b610763612280565b6040518082815260200191505060405180910390f35b6108506004803603608081101561078f57600080fd5b81019080803590602001906401000000008111156107ac57600080fd5b8201836020820111156107be57600080fd5b803590602001918460018302840111640100000000831117156107e057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803590602001909291908035906020019092919080359060200190929190505050612286565b005b61087e6004803603602081101561086857600080fd5b81019080803590602001909291905050506123f9565b604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001838152602001821515151581526020019550505050505060405180910390f35b61090c600480360360208110156108f657600080fd5b810190808035906020019092919050505061245c565b6040518082815260200191505060405180910390f35b6109526004803603602081101561093857600080fd5b81019080803561ffff16906020019092919050505061247d565b604051808060200186815260200185815260200184815260200183151515158152602001828103825287818151815260200191508051906020019080838360005b838110156109ae578082015181840152602081019050610993565b50505050905090810190601f1680156109db5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b6109f561266d565b6040518082815260200191505060405180910390f35b610a1361274e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a8d60048036036040811015610a6b57600080fd5b8101908080359060200190929190803515159060200190929190505050612774565b005b610ad160048036036020811015610aa557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506128d7565b005b610adb612aca565b6040518082815260200191505060405180910390f35b610af9612ad7565b73ffffffffffffffffffffffffffffffffffffffff16610b17612251565b73ffffffffffffffffffffffffffffffffffffffff1614610ba0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b610bd481600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610bcf6119db565b611f31565b50565b6060600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610c6257602002820191906000526020600020905b815481526020019060010190808311610c4e575b50505050509050919050565b60086020528060005260406000206000915090505481565b600082826001805490508210610d04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e646578206f7574206f662072616e6765000000000000000000000000000081525060200191505060405180910390fd5b60008111610d1157600080fd5b816001805490501015610d8c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f5061636b61676520646f65736e2774206578697374730000000000000000000081525060200191505060405180910390fd5b60018281548110610d9957fe5b906000526020600020906005020160040160009054906101000a900460ff16610e2a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f5061636b616765206973206e6f7420616374697665200000000000000000000081525060200191505060405180910390fd5b60018281548110610e3757fe5b906000526020600020906005020160020154610e64610e5583612adf565b83612b1a90919063ffffffff16565b11610ed7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f416d6f756e7420697320746f6f20736d616c6c0000000000000000000000000081525060200191505060405180910390fd5b6000610ef4610ee586612adf565b86612b1a90919063ffffffff16565b9050610f4881600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b9d90919063ffffffff16565b600860008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550806005600082825401925050819055506003600081546001019190508190559350866007600086815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600760008681526020019081526020016000206001018190555061102586612c25565b600760008681526020019081526020016000206002018190555085600760008681526020019081526020016000206003018190555060006007600086815260200190815260200160002060040160006101000a81548160ff0219169083151502179055506004849080600181540180825580915050600190039060005260206000200160009091909190915055600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020849080600181540180825580915050600190039060005260206000200160009091909190915055600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330886040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156111f557600080fd5b505af1158015611209573d6000803e3d6000fd5b505050506040513d602081101561121f57600080fd5b810190808051906020019092919050505061123957600080fd5b600061129182611283606461127560018c8154811061125457fe5b90600052602060002090600502016003015487612c5490919063ffffffff16565b612cda90919063ffffffff16565b612b9d90919063ffffffff16565b90507fab95e8b0b0ddc202528b40025c5594cfda4f0b23026cb1b7c8e2eb9ae9131b3885888a8585600760008c815260200190815260200160002060020154604051808781526020018681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001828152602001965050505050505060405180910390a1505050509392505050565b600760008281526020019081526020016000206002015442101561136257600080fd5b6007600082815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113d057600080fd5b6007600082815260200190815260200160002060040160009054906101000a900460ff16156113fe57600080fd5b60016007600083815260200190815260200160002060040160006101000a81548160ff0219169083151502179055506000600760008381526020019081526020016000206003015490506114b06007600084815260200190815260200160002060010154600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b1a90919063ffffffff16565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506007600083815260200190815260200160002060010154600560008282540392505081905550600080600660006007600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050600091505b808210156117f85783600660006007600088815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811061162557fe5b906000526020600020015414156117eb57600660006007600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060018203815481106116b957fe5b9060005260206000200154600660006007600088815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811061174457fe5b9060005260206000200181905550600660006007600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806117d057fe5b600190038181906000526020600020016000905590556117f8565b818060010192505061159c565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3360076000888152602001908152602001600020600101546040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156118b757600080fd5b505af11580156118cb573d6000803e3d6000fd5b505050506040513d60208110156118e157600080fd5b81019080805190602001909291905050506118fb57600080fd5b7f5881498f95d2bf33420866eeead2c535ba75b61cdbf7faab60300faa4828d1308484336007600089815260200190815260200160002060010154604051808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200194505050505060405180910390a150505050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006119f96005546119eb61266d565b612b1a90919063ffffffff16565b905090565b6007600082815260200190815260200160002060040160009054906101000a900460ff1615611a2c57600080fd5b6007600082815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a9a57600080fd5b611ab96007600083815260200190815260200160002060030154612d63565b611b2b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5061636b616765206973206e6f7420616374697665000000000000000000000081525060200191505060405180910390fd5b611b4a6007600083815260200190815260200160002060030154612c25565b60076000838152602001908152602001600020600201819055507f1e21ff31046cfcadd4dcc33920fde32c34fc20deb3cfbdb084e56db445f0ce728160076000848152602001908152602001600020600301546007600085815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166007600086815260200190815260200160002060020154604051808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200194505050505060405180910390a150565b60066020528160005260406000208181548110611c5d57fe5b90600052602060002001600091509150505481565b611c7a612ad7565b73ffffffffffffffffffffffffffffffffffffffff16611c98612251565b73ffffffffffffffffffffffffffffffffffffffff1614611d21576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611d67573d6000803e3d6000fd5b5050565b60606004805480602002602001604051908101604052809291908181526020018280548015611db957602002820191906000526020600020905b815481526020019060010190808311611da5575b5050505050905090565b611dcb612ad7565b73ffffffffffffffffffffffffffffffffffffffff16611de9612251565b73ffffffffffffffffffffffffffffffffffffffff1614611e72576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b611f39612ad7565b73ffffffffffffffffffffffffffffffffffffffff16611f57612251565b73ffffffffffffffffffffffffffffffffffffffff1614611fe0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008290508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561206c57600080fd5b505af1158015612080573d6000803e3d6000fd5b505050506040513d602081101561209657600080fd5b81019080805190602001909291905050505050505050565b600181815481106120bb57fe5b9060005260206000209060050201600091509050806000018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156121675780601f1061213c57610100808354040283529160200191612167565b820191906000526020600020905b81548152906001019060200180831161214a57829003601f168201915b5050505050908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b600080600080600060076000878152602001908152602001600020600301546007600088815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166007600089815260200190815260200160002060010154600760008a815260200190815260200160002060020154600760008b815260200190815260200160002060040160009054906101000a900460ff169450945094509450945091939590929450565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60035481565b60055481565b61228e612ad7565b73ffffffffffffffffffffffffffffffffffffffff166122ac612251565b73ffffffffffffffffffffffffffffffffffffffff1614612335576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61233d612d98565b6040518060a00160405280868152602001858152602001848152602001838152602001600115158152509050600181908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000190805190602001906123b1929190612dc9565b5060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff02191690831515021790555050505050505050565b60076020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b6004818154811061246957fe5b906000526020600020016000915090505481565b60606000806000806001805490508661ffff1610612503576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e646578206f7574206f662072616e6765000000000000000000000000000081525060200191505060405180910390fd5b60018661ffff168154811061251457fe5b906000526020600020906005020160000160018761ffff168154811061253657fe5b90600052602060002090600502016001015460018861ffff168154811061255957fe5b90600052602060002090600502016002015460018961ffff168154811061257c57fe5b90600052602060002090600502016003015460018a61ffff168154811061259f57fe5b906000526020600020906005020160040160009054906101000a900460ff16848054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156126535780601f1061262857610100808354040283529160200191612653565b820191906000526020600020905b81548152906001019060200180831161263657829003601f168201915b505050505094509450945094509450945091939590929450565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561270e57600080fd5b505afa158015612722573d6000803e3d6000fd5b505050506040513d602081101561273857600080fd5b8101908080519060200190929190505050905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61277c612ad7565b73ffffffffffffffffffffffffffffffffffffffff1661279a612251565b73ffffffffffffffffffffffffffffffffffffffff1614612823576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600180549050821061289d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e646578206f7574206f662072616e6765000000000000000000000000000081525060200191505060405180910390fd5b80600183815481106128ab57fe5b906000526020600020906005020160040160006101000a81548160ff0219169083151502179055505050565b6128df612ad7565b73ffffffffffffffffffffffffffffffffffffffff166128fd612251565b73ffffffffffffffffffffffffffffffffffffffff1614612986576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612a0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612e6f6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600180549050905090565b600033905090565b60008060029050600060649050612b1181612b038487612c5490919063ffffffff16565b612cda90919063ffffffff16565b92505050919050565b600082821115612b92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b600080828401905083811015612c1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000426201518060018481548110612c3957fe5b90600052602060002090600502016001015402019050919050565b600080831415612c675760009050612cd4565b6000828402905082848281612c7857fe5b0414612ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612e956021913960400191505060405180910390fd5b809150505b92915050565b6000808211612d51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b818381612d5a57fe5b04905092915050565b600060018281548110612d7257fe5b906000526020600020906005020160040160009054906101000a900460ff169050919050565b6040518060a00160405280606081526020016000815260200160008152602001600081526020016000151581525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612e0a57805160ff1916838001178555612e38565b82800160010185558215612e38579182015b82811115612e37578251825591602001919060010190612e1c565b5b509050612e459190612e49565b5090565b612e6b91905b80821115612e67576000816000905550600101612e4f565b5090565b9056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212205ec6e588112061bb7dfd2bf5706aa9aaf897b0121bc3257ac6796e6b5ff54d9764736f6c63430006020033

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

0000000000000000000000007ff4169a6b5122b664c51c95727d87750ec07c84

-----Decoded View---------------
Arg [0] : addrToken (address): 0x7FF4169a6B5122b664c51c95727d87750eC07c84

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007ff4169a6b5122b664c51c95727d87750ec07c84


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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.