ETH Price: $3,334.54 (-0.26%)

Contract

0x9b5D9e2C2e1e96986603Be922Bc44304D6acA898
 

Multichain Info

Transaction Hash
Method
Block
From
To
0x9847fb2cd8e646b605622affe817a8f5fccac9ed59d4331716c8534607fb097b Deposit(pending)2024-12-15 1:27:1412 days ago1734226034IN
SLM.Games : Wallet
0.00006 ETH(Pending)(Pending)
Deposit214845692024-12-26 5:31:5942 hrs ago1735191119IN
SLM.Games : Wallet
0.003 ETH0.000705934.47378396
Deposit214771262024-12-25 4:33:232 days ago1735101203IN
SLM.Games : Wallet
0.000058 ETH0.000122275.56563305
Deposit214771002024-12-25 4:28:112 days ago1735100891IN
SLM.Games : Wallet
0.00008 ETH0.000107654.90001924
Deposit214770842024-12-25 4:24:592 days ago1735100699IN
SLM.Games : Wallet
0.0002 ETH0.000122715.58542272
Deposit214768132024-12-25 3:30:472 days ago1735097447IN
SLM.Games : Wallet
0.000008 ETH0.000081713.71959202
Deposit213559322024-12-08 6:18:3519 days ago1733638715IN
SLM.Games : Wallet
0.01 ETH0.001325038.39787126
Deposit212888272024-11-28 21:17:4729 days ago1732828667IN
SLM.Games : Wallet
0.0031 ETH0.001170387.4171602
Withdraw211326112024-11-07 1:52:3550 days ago1730944355IN
SLM.Games : Wallet
0 ETH0.0020925819.53879055
Deposit211258822024-11-06 3:19:4751 days ago1730863187IN
SLM.Games : Wallet
0.5 ETH0.0106129967.25851483
Deposit210452902024-10-25 21:22:1163 days ago1729891331IN
SLM.Games : Wallet
0.005 ETH0.000853235.40727319
Deposit210452182024-10-25 21:07:4763 days ago1729890467IN
SLM.Games : Wallet
0.001 ETH0.000762314.83109868
Deposit209097142024-10-06 23:11:3582 days ago1728256295IN
SLM.Games : Wallet
0.0005 ETH0.000505095.0509284
Withdraw208955742024-10-04 23:53:3584 days ago1728086015IN
SLM.Games : Wallet
0 ETH0.000419723.15053627
Withdraw208955162024-10-04 23:41:4784 days ago1728085307IN
SLM.Games : Wallet
0 ETH0.000409873.07688527
Deposit208954852024-10-04 23:35:3584 days ago1728084935IN
SLM.Games : Wallet
0 ETH0.00059882.92600341
Deposit208890342024-10-04 2:01:5984 days ago1728007319IN
SLM.Games : Wallet
0.043 ETH0.000744274.71677545
Deposit208878582024-10-03 22:06:3585 days ago1727993195IN
SLM.Games : Wallet
0.00001 ETH0.000983616.23398879
Withdraw207548482024-09-15 8:34:11103 days ago1726389251IN
SLM.Games : Wallet
0 ETH0.000196071.83096853
Deposit207537292024-09-15 4:49:23103 days ago1726375763IN
SLM.Games : Wallet
0.11 ETH0.000351832.22973242
Withdraw207416202024-09-13 12:13:11105 days ago1726229591IN
SLM.Games : Wallet
0 ETH0.00041612.76830126
Withdraw207416142024-09-13 12:11:59105 days ago1726229519IN
SLM.Games : Wallet
0 ETH0.000327833.06141107
Withdraw206801852024-09-04 22:24:11114 days ago1725488651IN
SLM.Games : Wallet
0 ETH0.000448213.3821168
Deposit206800882024-09-04 22:04:47114 days ago1725487487IN
SLM.Games : Wallet
0 ETH0.000850174.15454783
Deposit206718442024-09-03 18:28:23115 days ago1725388103IN
SLM.Games : Wallet
0.0118 ETH0.000384012.4336314
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
214845692024-12-26 5:31:5942 hrs ago1735191119
SLM.Games : Wallet
SLM.Games : Wallet
0.003 ETH
213559322024-12-08 6:18:3519 days ago1733638715
SLM.Games : Wallet
SLM.Games : Wallet
0.01 ETH
212888272024-11-28 21:17:4729 days ago1732828667
SLM.Games : Wallet
SLM.Games : Wallet
0.0031 ETH
211326112024-11-07 1:52:3550 days ago1730944355
SLM.Games : Wallet
0.718793 ETH
211258822024-11-06 3:19:4751 days ago1730863187
SLM.Games : Wallet
SLM.Games : Wallet
0.5 ETH
210452902024-10-25 21:22:1163 days ago1729891331
SLM.Games : Wallet
SLM.Games : Wallet
0.005 ETH
210452182024-10-25 21:07:4763 days ago1729890467
SLM.Games : Wallet
SLM.Games : Wallet
0.001 ETH
208890342024-10-04 2:01:5984 days ago1728007319
SLM.Games : Wallet
SLM.Games : Wallet
0.043 ETH
208878582024-10-03 22:06:3585 days ago1727993195
SLM.Games : Wallet
SLM.Games : Wallet
0.00001 ETH
207548482024-09-15 8:34:11103 days ago1726389251
SLM.Games : Wallet
0.838 ETH
207537292024-09-15 4:49:23103 days ago1726375763
SLM.Games : Wallet
SLM.Games : Wallet
0.11 ETH
207416142024-09-13 12:11:59105 days ago1726229519
SLM.Games : Wallet
0.001743 ETH
206718442024-09-03 18:28:23115 days ago1725388103
SLM.Games : Wallet
SLM.Games : Wallet
0.0118 ETH
206385562024-08-30 2:57:59119 days ago1724986679
SLM.Games : Wallet
SLM.Games : Wallet
0.0026 ETH
206354632024-08-29 16:34:47120 days ago1724949287
SLM.Games : Wallet
SLM.Games : Wallet
0.025 ETH
206354132024-08-29 16:24:35120 days ago1724948675
SLM.Games : Wallet
SLM.Games : Wallet
0.009 ETH
206045262024-08-25 8:51:11124 days ago1724575871
SLM.Games : Wallet
SLM.Games : Wallet
0.0008 ETH
205623562024-08-19 11:24:11130 days ago1724066651
SLM.Games : Wallet
SLM.Games : Wallet
0.002 ETH
204083002024-07-28 23:20:23152 days ago1722208823
SLM.Games : Wallet
SLM.Games : Wallet
0.00012 ETH
203528842024-07-21 5:41:23159 days ago1721540483
SLM.Games : Wallet
SLM.Games : Wallet
0.02 ETH
202677032024-07-09 8:19:47171 days ago1720513187
SLM.Games : Wallet
SLM.Games : Wallet
0.037 ETH
202458202024-07-06 6:56:35174 days ago1720248995
SLM.Games : Wallet
SLM.Games : Wallet
0.053 ETH
202306822024-07-04 4:12:23176 days ago1720066343
SLM.Games : Wallet
SLM.Games : Wallet
0.016115 ETH
202160442024-07-02 3:07:11178 days ago1719889631
SLM.Games : Wallet
SLM.Games : Wallet
0.012 ETH
202068382024-06-30 20:17:35180 days ago1719778655
SLM.Games : Wallet
SLM.Games : Wallet
0.015 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Wallet

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : Wallet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

interface IXToken {
    function mint(address _to, uint256 _amount) external;

    function balanceOf(address account) external view returns (uint256);
}

contract Wallet is Ownable, ReentrancyGuard, Pausable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    struct TokenConfig {
        bool enable;
        bool own;
        uint256 minAmount;
    }

    struct Inlog {
        uint64 id;
        address from;
        address token;
        uint256 amount;
        string memo;
        uint256 blockNumber;
        uint256 timestamp;
    }

    struct Outlog {
        uint64 id;
        uint256 blockNumber;
        uint256 timestamp;
    }

    address public admin;
    mapping(address => TokenConfig) public tokenConfigs;

    uint64 public currentInlogId;
    mapping(uint64 => Inlog) private _inlogs;
    mapping(uint64 => Outlog) private _outlogs;

    constructor(address _admin, uint64 _inlogId) {
        admin = _admin;
        currentInlogId = _inlogId;
    }

    receive() external payable {}

    function _check(address _token, uint256 _amount) private view {
        require(_amount > 0, "Wallet: invalid amount");

        TokenConfig memory _conf = tokenConfigs[_token];
        require(_conf.enable, "Wallet: token is not enable");

        if (_conf.minAmount > 0) {
            require(_amount >= _conf.minAmount, "Wallet: less than min amount");
        }
    }

    function getMessageHash(
        uint64 _id,
        address _token,
        address _to,
        uint256 _amount,
        uint256 _expiration
    ) private pure returns (bytes32) {
        return
            keccak256(abi.encodePacked(_id, _token, _to, _amount, _expiration));
    }

    function getEthSignedMessageHash(bytes32 _messageHash)
        public
        pure
        returns (bytes32)
    {
        /*
        Signature is produced by signing a keccak256 hash with the following format:
        "\x19Ethereum Signed Message\n" + len(msg) + msg
        */
        return
            keccak256(
                abi.encodePacked(
                    "\x19Ethereum Signed Message:\n32",
                    _messageHash
                )
            );
    }

    function splitSignature(bytes memory sig)
        private
        pure
        returns (
            bytes32 r,
            bytes32 s,
            uint8 v
        )
    {
        require(sig.length == 65, "invalid signature length");

        assembly {
            /*
            First 32 bytes stores the length of the signature

            add(sig, 32) = pointer of sig + 32
            effectively, skips first 32 bytes of signature

            mload(p) loads next 32 bytes starting at the memory address p into memory
            */

            // first 32 bytes, after the length prefix
            r := mload(add(sig, 32))
            // second 32 bytes
            s := mload(add(sig, 64))
            // final byte (first byte of the next 32 bytes)
            v := byte(0, mload(add(sig, 96)))
        }

        // implicitly return (r, s, v)
    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    function setAdmin(address _admin) public onlyOwner {
        admin = _admin;
    }

    function regToken(address _token, TokenConfig memory _config)
        public
        onlyOwner
    {
        tokenConfigs[_token] = _config;
    }

    function setInlogId(uint64 _inlogId) public onlyOwner {
        currentInlogId = _inlogId;
    }

    function getInlog(uint64 _id) public view returns (Inlog memory) {
        return _inlogs[_id];
    }

    function getInlogs(uint64 _fromId, uint64 _limit)
        public
        view
        returns (Inlog[] memory)
    {
        if (_limit == 0 || _fromId > currentInlogId) {
            return new Inlog[](0);
        }

        if (_fromId + _limit > currentInlogId + 1) {
            _limit = currentInlogId + 1 - _fromId;
        }

        Inlog[] memory _records = new Inlog[](_limit);
        for (uint64 _i = _fromId; _i < _fromId + _limit; _i++) {
            _records[_i - _fromId] = getInlog(_i);
        }

        return _records;
    }

    function getOutlog(uint64 _id) public view returns (Outlog memory) {
        return _outlogs[_id];
    }

    function deposit(
        address _token,
        uint256 _amount,
        string memory _memo
    ) public payable whenNotPaused nonReentrant {
        _check(_token, _amount);

        currentInlogId++;
        _inlogs[currentInlogId] = Inlog({
            id: currentInlogId,
            from: msg.sender,
            token: _token,
            amount: _amount,
            memo: _memo,
            blockNumber: block.number,
            timestamp: block.timestamp
        });

        // base token
        if (_token == address(0)) {
            require(_amount == msg.value, "Wallet: amount not equal value");
            (payable(address(this))).transfer(_amount);
        } else {
            // ERC20 token
            IERC20(_token).safeTransferFrom(msg.sender, address(this), _amount);
        }
    }

    function withdraw(
        uint64 _id,
        address _token,
        address payable _to,
        uint256 _amount,
        uint256 _expiration,
        bytes memory _signature
    ) public whenNotPaused nonReentrant {
        require(_expiration > block.timestamp, "withdraw expired");

        bytes32 hash = getMessageHash(_id, _token, _to, _amount, _expiration);
        bytes32 ethhash = getEthSignedMessageHash(hash);
        (bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature);
        require(ecrecover(ethhash, v, r, s) == admin, "no auth withdraw");

        Outlog memory log = _outlogs[_id];
        require(log.id == 0, "already withdrawn");

        _outlogs[_id] = Outlog({
            id: _id,
            blockNumber: block.number,
            timestamp: block.timestamp
        });

        if (_token == address(0)) {
            _to.transfer(_amount);
        } else {
            TokenConfig memory _conf = tokenConfigs[_token];
            if (_conf.own) {
                uint256 balance = IXToken(_token).balanceOf(address(this));
                if (balance < _amount) {
                    IXToken(_token).mint(address(this), _amount - balance);
                }
            }
            IERC20(_token).safeTransfer(_to, _amount);
        }
    }

    // withdraw tokens that are sent here by mistake
    function ownerWithdraw(
        address _token,
        address payable _to,
        uint256 _amount
    ) public onlyOwner {
        if (_token == address(0)) {
            _to.transfer(_amount);
        } else {
            IERC20(_token).safeTransfer(_to, _amount);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

File 3 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 9 : 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 6 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 8 of 9 : 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 9 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"uint64","name":"_inlogId","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentInlogId","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"string","name":"_memo","type":"string"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_messageHash","type":"bytes32"}],"name":"getEthSignedMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint64","name":"_id","type":"uint64"}],"name":"getInlog","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"memo","type":"string"},{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct Wallet.Inlog","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_fromId","type":"uint64"},{"internalType":"uint64","name":"_limit","type":"uint64"}],"name":"getInlogs","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"memo","type":"string"},{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct Wallet.Inlog[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_id","type":"uint64"}],"name":"getOutlog","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct Wallet.Outlog","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ownerWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"components":[{"internalType":"bool","name":"enable","type":"bool"},{"internalType":"bool","name":"own","type":"bool"},{"internalType":"uint256","name":"minAmount","type":"uint256"}],"internalType":"struct Wallet.TokenConfig","name":"_config","type":"tuple"}],"name":"regToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_inlogId","type":"uint64"}],"name":"setInlogId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenConfigs","outputs":[{"internalType":"bool","name":"enable","type":"bool"},{"internalType":"bool","name":"own","type":"bool"},{"internalType":"uint256","name":"minAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_id","type":"uint64"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_expiration","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162001f8438038062001f848339810160408190526200003491620000e0565b6200003f3362000090565b60018055600280546001600160a01b03909316610100026001600160a81b031990931692909217909155600480546001600160401b039092166001600160401b031990921691909117905562000132565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060408385031215620000f3578182fd5b82516001600160a01b03811681146200010a578283fd5b60208401519092506001600160401b038116811462000127578182fd5b809150509250929050565b611e4280620001426000396000f3fe6080604052600436106101185760003560e01c80637d632427116100a0578063bfe07da611610064578063bfe07da61461036d578063dce6549914610380578063f2fde38b146103ad578063f851a440146103cd578063fa540801146103f25761011f565b80637d632427146102835780637d77166b146102bb5780637edc50ea146102db5780638456cb59146103265780638da5cb5b1461033b5761011f565b80633f4ba83a116100e75780633f4ba83a146101f6578063432bf2fb1461020b5780635c975abb1461022b578063704b6c021461024e578063715018a61461026e5761011f565b80631b69dc5f1461012457806327971f64146101875780632bcaa0e2146101b45780633bdd9942146101d65761011f565b3661011f57005b600080fd5b34801561013057600080fd5b5061016561013f3660046118b8565b6003602052600090815260409020805460019091015460ff808316926101009004169083565b6040805193151584529115156020840152908201526060015b60405180910390f35b34801561019357600080fd5b506101a76101a2366004611a3b565b610420565b60405161017e9190611cab565b3480156101c057600080fd5b506101d46101cf3660046118d4565b61053a565b005b3480156101e257600080fd5b506101d46101f1366004611a55565b6105d0565b34801561020257600080fd5b506101d4610a6f565b34801561021757600080fd5b506101d4610226366004611a3b565b610aa3565b34801561023757600080fd5b5060025460ff16604051901515815260200161017e565b34801561025a57600080fd5b506101d46102693660046118b8565b610af0565b34801561027a57600080fd5b506101d4610b42565b34801561028f57600080fd5b506004546102a3906001600160401b031681565b6040516001600160401b03909116815260200161017e565b3480156102c757600080fd5b506101d46102d6366004611914565b610b76565b3480156102e757600080fd5b506102fb6102f6366004611a3b565b610bf1565b6040805182516001600160401b0316815260208084015190820152918101519082015260600161017e565b34801561033257600080fd5b506101d4610c62565b34801561034757600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200161017e565b6101d461037b366004611986565b610c94565b34801561038c57600080fd5b506103a061039b366004611aea565b610ece565b60405161017e9190611bd8565b3480156103b957600080fd5b506101d46103c83660046118b8565b611086565b3480156103d957600080fd5b506002546103559061010090046001600160a01b031681565b3480156103fe57600080fd5b5061041261040d366004611a0b565b611121565b60405190815260200161017e565b610428611759565b6001600160401b03828116600090815260056020908152604091829020825160e08101845281549485168152600160401b9094046001600160a01b03908116928501929092526001810154909116918301919091526002810154606083015260038101805460808401919061049c90611d84565b80601f01602080910402602001604051908101604052809291908181526020018280546104c890611d84565b80156105155780601f106104ea57610100808354040283529160200191610515565b820191906000526020600020905b8154815290600101906020018083116104f857829003601f168201915b505050505081526020016004820154815260200160058201548152505090505b919050565b6000546001600160a01b0316331461056d5760405162461bcd60e51b815260040161056490611c76565b60405180910390fd5b6001600160a01b0383166105b7576040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156105b1573d6000803e3d6000fd5b506105cb565b6105cb6001600160a01b0384168383611174565b505050565b60025460ff16156105f35760405162461bcd60e51b815260040161056490611c4c565b600260015414156106465760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610564565b600260015542821161068d5760405162461bcd60e51b815260206004820152601060248201526f1dda5d1a191c985dc8195e1c1a5c995960821b6044820152606401610564565b604080516001600160c01b031960c089901b166020808301919091526bffffffffffffffffffffffff19606089811b8216602885015288901b16603c830152605082018690526070808301869052835180840390910181526090909201909252805191012060006106fd82611121565b9050600080600061070d866111d7565b6002546040805160008152602081018083528a905260ff8416918101919091526060810185905260808101849052939650919450925061010090046001600160a01b03169060019060a0016020604051602081039080840390855afa15801561077a573d6000803e3d6000fd5b505050602060405103516001600160a01b0316146107cd5760405162461bcd60e51b815260206004820152601060248201526f6e6f206175746820776974686472617760801b6044820152606401610564565b6001600160401b03808c16600090815260066020908152604091829020825160608101845281549094168085526001820154928501929092526002015491830191909152156108525760405162461bcd60e51b815260206004820152601160248201527030b63932b0b23c903bb4ba34323930bbb760791b6044820152606401610564565b604080516060810182526001600160401b038e81168083524360208085019182524285870190815260009384526006909152949091209251835467ffffffffffffffff1916921691909117825551600182015590516002909101556001600160a01b038b166108f7576040516001600160a01b038b16908a156108fc02908b906000818181858888f193505050501580156108f1573d6000803e3d6000fd5b50610a5d565b6001600160a01b038b166000908152600360209081526040918290208251606081018452815460ff80821615158352610100909104161580159382019390935260019091015492810192909252610a47576040516370a0823160e01b81523060048201526000906001600160a01b038e16906370a082319060240160206040518083038186803b15801561098a57600080fd5b505afa15801561099e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c29190611a23565b90508a811015610a45576001600160a01b038d166340c10f19306109e6848f611d19565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610a2c57600080fd5b505af1158015610a40573d6000803e3d6000fd5b505050505b505b610a5b6001600160a01b038d168c8c611174565b505b50506001805550505050505050505050565b6000546001600160a01b03163314610a995760405162461bcd60e51b815260040161056490611c76565b610aa161124b565b565b6000546001600160a01b03163314610acd5760405162461bcd60e51b815260040161056490611c76565b6004805467ffffffffffffffff19166001600160401b0392909216919091179055565b6000546001600160a01b03163314610b1a5760405162461bcd60e51b815260040161056490611c76565b600280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000546001600160a01b03163314610b6c5760405162461bcd60e51b815260040161056490611c76565b610aa160006112de565b6000546001600160a01b03163314610ba05760405162461bcd60e51b815260040161056490611c76565b6001600160a01b0391909116600090815260036020908152604091829020835181549285015161ffff1990931690151561ff0019161761010092151592909202919091178155910151600190910155565b610c1e604051806060016040528060006001600160401b0316815260200160008152602001600081525090565b506001600160401b03908116600090815260066020908152604091829020825160608101845281549094168452600181015491840191909152600201549082015290565b6000546001600160a01b03163314610c8c5760405162461bcd60e51b815260040161056490611c76565b610aa161132e565b60025460ff1615610cb75760405162461bcd60e51b815260040161056490611c4c565b60026001541415610d0a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610564565b6002600155610d198383611386565b600480546001600160401b0316906000610d3283611dbf565b82546001600160401b039182166101009390930a9283029282021916919091179091556040805160e08101825260045483168082523360208084019182526001600160a01b038a8116858701908152606086018b8152608087018b81524360a08901524260c0890152600096875260058552979095208651815495518416600160401b026001600160e01b03199096169916989098179390931787559151600187018054919093166001600160a01b0319909116179091559051600285015591518051919450610e099260038501929101906117b1565b5060a0820151600482015560c0909101516005909101556001600160a01b038316610eb057348214610e7d5760405162461bcd60e51b815260206004820152601e60248201527f57616c6c65743a20616d6f756e74206e6f7420657175616c2076616c756500006044820152606401610564565b604051309083156108fc029084906000818181858888f19350505050158015610eaa573d6000803e3d6000fd5b50610ec5565b610ec56001600160a01b0384163330856114c6565b50506001805550565b60606001600160401b0382161580610ef457506004546001600160401b03908116908416115b15610f32576040805160008082526020820190925290610f2a565b610f17611759565b815260200190600190039081610f0f5790505b509050611080565b600454610f49906001600160401b03166001611cee565b6001600160401b0316610f5c8385611cee565b6001600160401b03161115610f91576004548390610f84906001600160401b03166001611cee565b610f8e9190611d30565b91505b6000826001600160401b03166001600160401b03811115610fc257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ffb57816020015b610fe8611759565b815260200190600190039081610fe05790505b509050835b61100a8486611cee565b6001600160401b0316816001600160401b0316101561107c5761102c81610420565b826110378784611d30565b6001600160401b03168151811061105e57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061107490611dbf565b915050611000565b5090505b92915050565b6000546001600160a01b031633146110b05760405162461bcd60e51b815260040161056490611c76565b6001600160a01b0381166111155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610564565b61111e816112de565b50565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6040516001600160a01b0383166024820152604481018290526105cb90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611504565b6000806000835160411461122d5760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610564565b50505060208101516040820151606090920151909260009190911a90565b60025460ff166112945760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610564565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60025460ff16156113515760405162461bcd60e51b815260040161056490611c4c565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112c13390565b600081116113cf5760405162461bcd60e51b815260206004820152601660248201527515d85b1b195d0e881a5b9d985b1a5908185b5bdd5b9d60521b6044820152606401610564565b6001600160a01b0382166000908152600360209081526040918290208251606081018452815460ff808216151580845261010090920416151593820193909352600190910154928101929092526114685760405162461bcd60e51b815260206004820152601b60248201527f57616c6c65743a20746f6b656e206973206e6f7420656e61626c6500000000006044820152606401610564565b6040810151156105cb5780604001518210156105cb5760405162461bcd60e51b815260206004820152601c60248201527f57616c6c65743a206c657373207468616e206d696e20616d6f756e74000000006044820152606401610564565b6040516001600160a01b03808516602483015283166044820152606481018290526114fe9085906323b872dd60e01b906084016111a0565b50505050565b6000611559826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115d69092919063ffffffff16565b8051909150156105cb578080602001905181019061157791906119ef565b6105cb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610564565b60606115e584846000856115ef565b90505b9392505050565b6060824710156116505760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610564565b6001600160a01b0385163b6116a75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610564565b600080866001600160a01b031685876040516116c39190611bbc565b60006040518083038185875af1925050503d8060008114611700576040519150601f19603f3d011682016040523d82523d6000602084013e611705565b606091505b5091509150611715828286611720565b979650505050505050565b6060831561172f5750816115e8565b82511561173f5782518084602001fd5b8160405162461bcd60e51b81526004016105649190611c39565b6040518060e0016040528060006001600160401b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016060815260200160008152602001600081525090565b8280546117bd90611d84565b90600052602060002090601f0160209004810192826117df5760008555611825565b82601f106117f857805160ff1916838001178555611825565b82800160010185558215611825579182015b8281111561182557825182559160200191906001019061180a565b50611831929150611835565b5090565b5b808211156118315760008155600101611836565b60006001600160401b0383111561186357611863611dfc565b611876601f8401601f1916602001611cbe565b905082815283838301111561188a57600080fd5b828260208301376000602084830101529392505050565b80356001600160401b038116811461053557600080fd5b6000602082840312156118c9578081fd5b81356115e881611e12565b6000806000606084860312156118e8578182fd5b83356118f381611e12565b9250602084013561190381611e12565b929592945050506040919091013590565b6000808284036080811215611927578283fd5b833561193281611e12565b92506060601f1982011215611945578182fd5b506119506060611cbe565b602084013561195e81611e27565b8152604084013561196e81611e27565b60208201526060939093013560408401525092909150565b60008060006060848603121561199a578283fd5b83356119a581611e12565b92506020840135915060408401356001600160401b038111156119c6578182fd5b8401601f810186136119d6578182fd5b6119e58682356020840161184a565b9150509250925092565b600060208284031215611a00578081fd5b81516115e881611e27565b600060208284031215611a1c578081fd5b5035919050565b600060208284031215611a34578081fd5b5051919050565b600060208284031215611a4c578081fd5b6115e8826118a1565b60008060008060008060c08789031215611a6d578182fd5b611a76876118a1565b95506020870135611a8681611e12565b94506040870135611a9681611e12565b9350606087013592506080870135915060a08701356001600160401b03811115611abe578182fd5b8701601f81018913611ace578182fd5b611add8982356020840161184a565b9150509295509295509295565b60008060408385031215611afc578182fd5b611b05836118a1565b9150611b13602084016118a1565b90509250929050565b60008151808452611b34816020860160208601611d58565b601f01601f19169290920160200192915050565b60006001600160401b038251168352602082015160018060a01b038082166020860152806040850151166040860152505060608201516060840152608082015160e06080850152611b9c60e0850182611b1c565b905060a083015160a085015260c083015160c08501528091505092915050565b60008251611bce818460208701611d58565b9190910192915050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b82811015611c2c57603f19888603018452611c1a858351611b48565b94509285019290850190600101611bfe565b5092979650505050505050565b6000602082526115e86020830184611b1c565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082526115e86020830184611b48565b604051601f8201601f191681016001600160401b0381118282101715611ce657611ce6611dfc565b604052919050565b60006001600160401b03808316818516808303821115611d1057611d10611de6565b01949350505050565b600082821015611d2b57611d2b611de6565b500390565b60006001600160401b0383811690831681811015611d5057611d50611de6565b039392505050565b60005b83811015611d73578181015183820152602001611d5b565b838111156114fe5750506000910152565b600181811c90821680611d9857607f821691505b60208210811415611db957634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160401b0380831681811415611ddc57611ddc611de6565b6001019392505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461111e57600080fd5b801515811461111e57600080fdfea164736f6c6343000803000a00000000000000000000000072c92cab8fdec47cff31f369026b2e258d4d75030000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101185760003560e01c80637d632427116100a0578063bfe07da611610064578063bfe07da61461036d578063dce6549914610380578063f2fde38b146103ad578063f851a440146103cd578063fa540801146103f25761011f565b80637d632427146102835780637d77166b146102bb5780637edc50ea146102db5780638456cb59146103265780638da5cb5b1461033b5761011f565b80633f4ba83a116100e75780633f4ba83a146101f6578063432bf2fb1461020b5780635c975abb1461022b578063704b6c021461024e578063715018a61461026e5761011f565b80631b69dc5f1461012457806327971f64146101875780632bcaa0e2146101b45780633bdd9942146101d65761011f565b3661011f57005b600080fd5b34801561013057600080fd5b5061016561013f3660046118b8565b6003602052600090815260409020805460019091015460ff808316926101009004169083565b6040805193151584529115156020840152908201526060015b60405180910390f35b34801561019357600080fd5b506101a76101a2366004611a3b565b610420565b60405161017e9190611cab565b3480156101c057600080fd5b506101d46101cf3660046118d4565b61053a565b005b3480156101e257600080fd5b506101d46101f1366004611a55565b6105d0565b34801561020257600080fd5b506101d4610a6f565b34801561021757600080fd5b506101d4610226366004611a3b565b610aa3565b34801561023757600080fd5b5060025460ff16604051901515815260200161017e565b34801561025a57600080fd5b506101d46102693660046118b8565b610af0565b34801561027a57600080fd5b506101d4610b42565b34801561028f57600080fd5b506004546102a3906001600160401b031681565b6040516001600160401b03909116815260200161017e565b3480156102c757600080fd5b506101d46102d6366004611914565b610b76565b3480156102e757600080fd5b506102fb6102f6366004611a3b565b610bf1565b6040805182516001600160401b0316815260208084015190820152918101519082015260600161017e565b34801561033257600080fd5b506101d4610c62565b34801561034757600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200161017e565b6101d461037b366004611986565b610c94565b34801561038c57600080fd5b506103a061039b366004611aea565b610ece565b60405161017e9190611bd8565b3480156103b957600080fd5b506101d46103c83660046118b8565b611086565b3480156103d957600080fd5b506002546103559061010090046001600160a01b031681565b3480156103fe57600080fd5b5061041261040d366004611a0b565b611121565b60405190815260200161017e565b610428611759565b6001600160401b03828116600090815260056020908152604091829020825160e08101845281549485168152600160401b9094046001600160a01b03908116928501929092526001810154909116918301919091526002810154606083015260038101805460808401919061049c90611d84565b80601f01602080910402602001604051908101604052809291908181526020018280546104c890611d84565b80156105155780601f106104ea57610100808354040283529160200191610515565b820191906000526020600020905b8154815290600101906020018083116104f857829003601f168201915b505050505081526020016004820154815260200160058201548152505090505b919050565b6000546001600160a01b0316331461056d5760405162461bcd60e51b815260040161056490611c76565b60405180910390fd5b6001600160a01b0383166105b7576040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156105b1573d6000803e3d6000fd5b506105cb565b6105cb6001600160a01b0384168383611174565b505050565b60025460ff16156105f35760405162461bcd60e51b815260040161056490611c4c565b600260015414156106465760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610564565b600260015542821161068d5760405162461bcd60e51b815260206004820152601060248201526f1dda5d1a191c985dc8195e1c1a5c995960821b6044820152606401610564565b604080516001600160c01b031960c089901b166020808301919091526bffffffffffffffffffffffff19606089811b8216602885015288901b16603c830152605082018690526070808301869052835180840390910181526090909201909252805191012060006106fd82611121565b9050600080600061070d866111d7565b6002546040805160008152602081018083528a905260ff8416918101919091526060810185905260808101849052939650919450925061010090046001600160a01b03169060019060a0016020604051602081039080840390855afa15801561077a573d6000803e3d6000fd5b505050602060405103516001600160a01b0316146107cd5760405162461bcd60e51b815260206004820152601060248201526f6e6f206175746820776974686472617760801b6044820152606401610564565b6001600160401b03808c16600090815260066020908152604091829020825160608101845281549094168085526001820154928501929092526002015491830191909152156108525760405162461bcd60e51b815260206004820152601160248201527030b63932b0b23c903bb4ba34323930bbb760791b6044820152606401610564565b604080516060810182526001600160401b038e81168083524360208085019182524285870190815260009384526006909152949091209251835467ffffffffffffffff1916921691909117825551600182015590516002909101556001600160a01b038b166108f7576040516001600160a01b038b16908a156108fc02908b906000818181858888f193505050501580156108f1573d6000803e3d6000fd5b50610a5d565b6001600160a01b038b166000908152600360209081526040918290208251606081018452815460ff80821615158352610100909104161580159382019390935260019091015492810192909252610a47576040516370a0823160e01b81523060048201526000906001600160a01b038e16906370a082319060240160206040518083038186803b15801561098a57600080fd5b505afa15801561099e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c29190611a23565b90508a811015610a45576001600160a01b038d166340c10f19306109e6848f611d19565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610a2c57600080fd5b505af1158015610a40573d6000803e3d6000fd5b505050505b505b610a5b6001600160a01b038d168c8c611174565b505b50506001805550505050505050505050565b6000546001600160a01b03163314610a995760405162461bcd60e51b815260040161056490611c76565b610aa161124b565b565b6000546001600160a01b03163314610acd5760405162461bcd60e51b815260040161056490611c76565b6004805467ffffffffffffffff19166001600160401b0392909216919091179055565b6000546001600160a01b03163314610b1a5760405162461bcd60e51b815260040161056490611c76565b600280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000546001600160a01b03163314610b6c5760405162461bcd60e51b815260040161056490611c76565b610aa160006112de565b6000546001600160a01b03163314610ba05760405162461bcd60e51b815260040161056490611c76565b6001600160a01b0391909116600090815260036020908152604091829020835181549285015161ffff1990931690151561ff0019161761010092151592909202919091178155910151600190910155565b610c1e604051806060016040528060006001600160401b0316815260200160008152602001600081525090565b506001600160401b03908116600090815260066020908152604091829020825160608101845281549094168452600181015491840191909152600201549082015290565b6000546001600160a01b03163314610c8c5760405162461bcd60e51b815260040161056490611c76565b610aa161132e565b60025460ff1615610cb75760405162461bcd60e51b815260040161056490611c4c565b60026001541415610d0a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610564565b6002600155610d198383611386565b600480546001600160401b0316906000610d3283611dbf565b82546001600160401b039182166101009390930a9283029282021916919091179091556040805160e08101825260045483168082523360208084019182526001600160a01b038a8116858701908152606086018b8152608087018b81524360a08901524260c0890152600096875260058552979095208651815495518416600160401b026001600160e01b03199096169916989098179390931787559151600187018054919093166001600160a01b0319909116179091559051600285015591518051919450610e099260038501929101906117b1565b5060a0820151600482015560c0909101516005909101556001600160a01b038316610eb057348214610e7d5760405162461bcd60e51b815260206004820152601e60248201527f57616c6c65743a20616d6f756e74206e6f7420657175616c2076616c756500006044820152606401610564565b604051309083156108fc029084906000818181858888f19350505050158015610eaa573d6000803e3d6000fd5b50610ec5565b610ec56001600160a01b0384163330856114c6565b50506001805550565b60606001600160401b0382161580610ef457506004546001600160401b03908116908416115b15610f32576040805160008082526020820190925290610f2a565b610f17611759565b815260200190600190039081610f0f5790505b509050611080565b600454610f49906001600160401b03166001611cee565b6001600160401b0316610f5c8385611cee565b6001600160401b03161115610f91576004548390610f84906001600160401b03166001611cee565b610f8e9190611d30565b91505b6000826001600160401b03166001600160401b03811115610fc257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ffb57816020015b610fe8611759565b815260200190600190039081610fe05790505b509050835b61100a8486611cee565b6001600160401b0316816001600160401b0316101561107c5761102c81610420565b826110378784611d30565b6001600160401b03168151811061105e57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061107490611dbf565b915050611000565b5090505b92915050565b6000546001600160a01b031633146110b05760405162461bcd60e51b815260040161056490611c76565b6001600160a01b0381166111155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610564565b61111e816112de565b50565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6040516001600160a01b0383166024820152604481018290526105cb90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611504565b6000806000835160411461122d5760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610564565b50505060208101516040820151606090920151909260009190911a90565b60025460ff166112945760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610564565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60025460ff16156113515760405162461bcd60e51b815260040161056490611c4c565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112c13390565b600081116113cf5760405162461bcd60e51b815260206004820152601660248201527515d85b1b195d0e881a5b9d985b1a5908185b5bdd5b9d60521b6044820152606401610564565b6001600160a01b0382166000908152600360209081526040918290208251606081018452815460ff808216151580845261010090920416151593820193909352600190910154928101929092526114685760405162461bcd60e51b815260206004820152601b60248201527f57616c6c65743a20746f6b656e206973206e6f7420656e61626c6500000000006044820152606401610564565b6040810151156105cb5780604001518210156105cb5760405162461bcd60e51b815260206004820152601c60248201527f57616c6c65743a206c657373207468616e206d696e20616d6f756e74000000006044820152606401610564565b6040516001600160a01b03808516602483015283166044820152606481018290526114fe9085906323b872dd60e01b906084016111a0565b50505050565b6000611559826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115d69092919063ffffffff16565b8051909150156105cb578080602001905181019061157791906119ef565b6105cb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610564565b60606115e584846000856115ef565b90505b9392505050565b6060824710156116505760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610564565b6001600160a01b0385163b6116a75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610564565b600080866001600160a01b031685876040516116c39190611bbc565b60006040518083038185875af1925050503d8060008114611700576040519150601f19603f3d011682016040523d82523d6000602084013e611705565b606091505b5091509150611715828286611720565b979650505050505050565b6060831561172f5750816115e8565b82511561173f5782518084602001fd5b8160405162461bcd60e51b81526004016105649190611c39565b6040518060e0016040528060006001600160401b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016060815260200160008152602001600081525090565b8280546117bd90611d84565b90600052602060002090601f0160209004810192826117df5760008555611825565b82601f106117f857805160ff1916838001178555611825565b82800160010185558215611825579182015b8281111561182557825182559160200191906001019061180a565b50611831929150611835565b5090565b5b808211156118315760008155600101611836565b60006001600160401b0383111561186357611863611dfc565b611876601f8401601f1916602001611cbe565b905082815283838301111561188a57600080fd5b828260208301376000602084830101529392505050565b80356001600160401b038116811461053557600080fd5b6000602082840312156118c9578081fd5b81356115e881611e12565b6000806000606084860312156118e8578182fd5b83356118f381611e12565b9250602084013561190381611e12565b929592945050506040919091013590565b6000808284036080811215611927578283fd5b833561193281611e12565b92506060601f1982011215611945578182fd5b506119506060611cbe565b602084013561195e81611e27565b8152604084013561196e81611e27565b60208201526060939093013560408401525092909150565b60008060006060848603121561199a578283fd5b83356119a581611e12565b92506020840135915060408401356001600160401b038111156119c6578182fd5b8401601f810186136119d6578182fd5b6119e58682356020840161184a565b9150509250925092565b600060208284031215611a00578081fd5b81516115e881611e27565b600060208284031215611a1c578081fd5b5035919050565b600060208284031215611a34578081fd5b5051919050565b600060208284031215611a4c578081fd5b6115e8826118a1565b60008060008060008060c08789031215611a6d578182fd5b611a76876118a1565b95506020870135611a8681611e12565b94506040870135611a9681611e12565b9350606087013592506080870135915060a08701356001600160401b03811115611abe578182fd5b8701601f81018913611ace578182fd5b611add8982356020840161184a565b9150509295509295509295565b60008060408385031215611afc578182fd5b611b05836118a1565b9150611b13602084016118a1565b90509250929050565b60008151808452611b34816020860160208601611d58565b601f01601f19169290920160200192915050565b60006001600160401b038251168352602082015160018060a01b038082166020860152806040850151166040860152505060608201516060840152608082015160e06080850152611b9c60e0850182611b1c565b905060a083015160a085015260c083015160c08501528091505092915050565b60008251611bce818460208701611d58565b9190910192915050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b82811015611c2c57603f19888603018452611c1a858351611b48565b94509285019290850190600101611bfe565b5092979650505050505050565b6000602082526115e86020830184611b1c565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082526115e86020830184611b48565b604051601f8201601f191681016001600160401b0381118282101715611ce657611ce6611dfc565b604052919050565b60006001600160401b03808316818516808303821115611d1057611d10611de6565b01949350505050565b600082821015611d2b57611d2b611de6565b500390565b60006001600160401b0383811690831681811015611d5057611d50611de6565b039392505050565b60005b83811015611d73578181015183820152602001611d5b565b838111156114fe5750506000910152565b600181811c90821680611d9857607f821691505b60208210811415611db957634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160401b0380831681811415611ddc57611ddc611de6565b6001019392505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461111e57600080fd5b801515811461111e57600080fdfea164736f6c6343000803000a

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

00000000000000000000000072c92cab8fdec47cff31f369026b2e258d4d75030000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _admin (address): 0x72C92cAB8FdeC47cff31f369026b2e258d4D7503
Arg [1] : _inlogId (uint64): 0

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000072c92cab8fdec47cff31f369026b2e258d4d7503
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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