ETH Price: $3,559.79 (+6.70%)

Contract

0xec9f43c3EFB42b4ab42d315D6dC6e4735e2Da079
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unvote From197182922024-04-23 13:08:11218 days ago1713877691IN
0xec9f43c3...35e2Da079
0 ETH0.0039223413.784242
Unvote From169597172023-04-02 6:44:23605 days ago1680417863IN
0xec9f43c3...35e2Da079
0 ETH0.0067397918.02209195
Unvote From169597152023-04-02 6:43:59605 days ago1680417839IN
0xec9f43c3...35e2Da079
0 ETH0.0074190519.26597428
Transfer162157362022-12-19 2:24:47709 days ago1671416687IN
0xec9f43c3...35e2Da079
0 ETH0.0002796811.56262806
Create Lock From...154060382022-08-25 0:29:19825 days ago1661387359IN
0xec9f43c3...35e2Da079
0 ETH0.000731595
Vote To144784462022-03-29 2:33:44974 days ago1648521224IN
0xec9f43c3...35e2Da079
0 ETH0.011307129.54452253
Transfer139084002021-12-30 18:53:131062 days ago1640890393IN
0xec9f43c3...35e2Da079
0 ETH0.00273732113.1639305
Transfer139083842021-12-30 18:49:491062 days ago1640890189IN
0xec9f43c3...35e2Da079
0 ETH0.0020314183.98097524
Unvote From138355732021-12-19 12:22:011074 days ago1639916521IN
0xec9f43c3...35e2Da079
0 ETH0.0116886829.88959462
Vote To134973802021-10-27 4:51:241127 days ago1635310284IN
0xec9f43c3...35e2Da079
0 ETH0.03935751112.10634622
Create Lock From...134398882021-10-18 5:12:391136 days ago1634533959IN
0xec9f43c3...35e2Da079
0 ETH0.0082318356.25990571
Vote To133763192021-10-08 5:28:141146 days ago1633670894IN
0xec9f43c3...35e2Da079
0 ETH0.031903279.77157849
Vote To133621532021-10-06 0:12:121148 days ago1633479132IN
0xec9f43c3...35e2Da079
0 ETH0.0043058890.06239038
Create Lock From...133589022021-10-05 11:50:311149 days ago1633434631IN
0xec9f43c3...35e2Da079
0 ETH0.009174588.48864838
Vote To131781562021-09-07 10:39:191177 days ago1631011159IN
0xec9f43c3...35e2Da079
0 ETH0.0269468978.00000145
Create Lock From...131781512021-09-07 10:38:181177 days ago1631011098IN
0xec9f43c3...35e2Da079
0 ETH0.009288885.00000145
Create Lock From...131209132021-08-29 14:29:511186 days ago1630247391IN
0xec9f43c3...35e2Da079
0 ETH0.0109747575.00000145
Vote To130855842021-08-24 3:25:311191 days ago1629775531IN
0xec9f43c3...35e2Da079
0 ETH0.0287534670.41601247
Create Lock From...130855052021-08-24 3:04:251191 days ago1629774265IN
0xec9f43c3...35e2Da079
0 ETH0.011083375.74185545
Vote To130789232021-08-23 2:27:191192 days ago1629685639IN
0xec9f43c3...35e2Da079
0 ETH0.012599430.8545026
Create Lock From...130789102021-08-23 2:25:101192 days ago1629685510IN
0xec9f43c3...35e2Da079
0 ETH0.0059870740.91154417
Vote To130726792021-08-22 3:25:451193 days ago1629602745IN
0xec9f43c3...35e2Da079
0 ETH0.0011343933.61176796
Vote To130726792021-08-22 3:25:451193 days ago1629602745IN
0xec9f43c3...35e2Da079
0 ETH0.0062990815.42480256
Create Lock From...130557032021-08-19 12:31:211196 days ago1629376281IN
0xec9f43c3...35e2Da079
0 ETH0.0039994627.32955966
Vote To130553662021-08-19 11:13:581196 days ago1629371638IN
0xec9f43c3...35e2Da079
0 ETH0.0084131922.85194135
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:
BasisLockPoint

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 12 : BasisLockPoint.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.8.0;
pragma experimental ABIEncoderV2;

import 'hardhat/console.sol';
import {ERC20, ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol';
import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol';
import {Math} from '@openzeppelin/contracts/math/Math.sol';
import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import {SafeERC20} from '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';

import {Operator} from '../access/Operator.sol';

interface ILock {
    // ==== Lock ====
    struct LockPool {
        bool enable;
        uint256 recipK;
        bool siglePool;
        address store;
        uint256 pid;
        uint256 totalAmount;
        uint256 totalTime;
        uint256 totalUser;
    }
    struct UserLock {
        uint256 amount;
        uint256 end;
    }

    event CreateLock(
        address indexed _pool,
        address indexed _owner,
        uint256 _amount,
        uint256 _end
    );

    function calculatePoints(
        address _pool,
        uint256 _amount,
        uint256 _time
    ) external view returns (uint256);

    function createLock(
        address _owner,
        uint256 _amount,
        uint256 _end
    ) external;

    function createLockFromUser(
        address _pool,
        uint256 _amount,
        uint256 _end
    ) external;

    function canWithdraw(
        address _pool,
        address _owner,
        uint256 _amount
    ) external view returns (bool);

    function checkWithdraw(
        address _pool,
        address _owner,
        uint256 _amount
    ) external;

    // ==== Vote ====
    struct RewardPool {
        bool enable;
        uint256 totalVote;
    }

    event VoteTo(
        address indexed _rewardPool,
        address indexed _owner,
        uint256 _amount
    );
    event UnvoteFrom(
        address indexed _rewardPool,
        address indexed _owner,
        uint256 _amount
    );

    function voteSupply(address _rewardPool) external view returns (uint256);

    function voteBalanceOf(address _rewardPool, address _owner)
        external
        view
        returns (uint256);

    function voteTo(address _rewardPool, uint256 _amount) external;

    function unvoteFrom(address _rewardPool, uint256 _amount) external;

    // ==== Manager ====
    event SetLockPool(
        address indexed _pool,
        bool _enable,
        uint256 _recipK,
        bool _siglePool,
        address indexed _store,
        uint256 _pid
    );

    event SetRewardPool(address indexed _pool, bool _enable);
}

interface ISingleStore {
    function balanceOf(address _owner) external view returns (uint256);
}

interface IMultiStore {
    function balanceOf(uint256 _pid, address _owner)
        external
        view
        returns (uint256);
}

interface IRewardPool {
    function onVoteChange(address _owner) external;
}

contract BasisLockPoint is ERC20Burnable, ILock, Operator {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    // ==== Lock ====
    // pool => LockPool
    mapping(address => LockPool) public lockPools;
    // pool => user => UserLock
    mapping(address => mapping(address => UserLock)) public userLock;

    uint256 public MIN_LOCK_TIME = 7 days;
    uint256 public MAX_LOCK_TIME = 1460 days;
    uint256 public MIN_LOCK_AMOUNT = 1e17;

    // ==== Vote ====
    // pool => RewardPool
    mapping(address => RewardPool) public rewardPools;
    // pool => user => amount
    mapping(address => mapping(address => uint256)) public userVote;

    // ==== Manager ====
    uint256 public autoVotePercent = 100;
    bool public pauseTransfer = true;
    uint256 public fee = 0;
    bool migrate = false;

    constructor() ERC20('Basis Lock Point', 'BLP') {
        _setupDecimals(2);
    }

    modifier checkMigrate {
        require(!migrate, 'migrate pause!');
        _;
    }

    // ==== Lock ====
    modifier checkFromLockPool {
        require(lockPools[_msgSender()].enable, 'BLP: not from lock pool');
        _;
    }

    function calculatePoints(
        address _pool,
        uint256 _amount,
        uint256 _time
    ) public view override returns (uint256) {
        return _amount.mul(_time).div(lockPools[_pool].recipK);
    }

    function createLock(
        address _owner,
        uint256 _amount,
        uint256 _end
    ) external override checkFromLockPool {
        update(_msgSender(), _owner);
        _createLock(_msgSender(), _owner, _amount, _end);
    }

    function createLockFromUser(
        address _pool,
        uint256 _amount,
        uint256 _end
    ) external override {
        update(_pool, _msgSender());
        _createLock(_pool, _msgSender(), _amount, _end);
    }

    function _getStoreBalance(address _pool, address _owner)
        internal
        view
        returns (uint256)
    {
        LockPool memory pool = lockPools[_pool];
        if (pool.siglePool) {
            return ISingleStore(pool.store).balanceOf(_owner);
        } else {
            return IMultiStore(pool.store).balanceOf(pool.pid, _owner);
        }
    }

    function getUserLock(address _pool, address _owner)
        public
        view
        returns (UserLock memory)
    {
        UserLock memory user = userLock[_pool][_owner];
        if (user.end <= block.timestamp) {
            user.amount = 0;
            user.end = 0;
        }
        return user;
    }

    function preCreateLock(
        address _pool,
        address _owner,
        uint256 _amount,
        uint256 _end
    ) public view returns (uint256) {
        require(
            block.timestamp < _end &&
                _end.sub(block.timestamp) >= MIN_LOCK_TIME,
            'BLP: cannt short than MIN_LOCK_TIME'
        );
        require(
            _end.sub(block.timestamp) <= MAX_LOCK_TIME,
            'BLP: cannt long than MAX_LOCK_TIME'
        );
        UserLock memory user = getUserLock(_pool, _owner);
        require(
            _amount >= MIN_LOCK_AMOUNT || (user.amount > 0 && _amount == 0),
            'BLP: cannt less than MIN_LOCK_AMOUNT'
        );
        require(_end >= user.end, 'BLP: cannt reduce time');

        uint256 pointAmount = calculatePoints(
            _pool,
            user.amount,
            _end.sub(user.end)
        ).add(calculatePoints(_pool, _amount, _end.sub(block.timestamp)));

        return pointAmount;
    }

    function _createLock(
        address _pool,
        address _owner,
        uint256 _amount,
        uint256 _end
    ) internal checkMigrate {
        uint256 pointAmount = preCreateLock(_pool, _owner, _amount, _end);
        UserLock memory user = getUserLock(_pool, _owner);
        uint256 storeBalance = _getStoreBalance(_pool, _owner);

        require(
            _amount <= storeBalance.sub(user.amount),
            'BLP: lock amount too much'
        );

        // write
        LockPool memory pool = lockPools[_pool];
        if (pointAmount > 0) {
            _mint(_owner, pointAmount);
        }

        pool.totalAmount = pool.totalAmount.add(_amount);
        pool.totalTime = pool.totalTime.add(_end.sub(user.end));
        if (user.end == 0) pool.totalUser += 1; //new user
        lockPools[_pool] = pool;

        user.amount = user.amount.add(_amount);
        user.end = _end;
        userLock[_pool][_owner] = user;

        emit CreateLock(_pool, _owner, _amount, _end);

        // auto vote
        if (
            rewardPools[_pool].enable && autoVotePercent > 0 && pointAmount > 0
        ) {
            _voteTo(
                _owner,
                _pool,
                pointAmount.mul(autoVotePercent).div(100),
                false
            );
        }
    }

    function canWithdraw(
        address _pool,
        address _owner,
        uint256 _amount
    ) public view override returns (bool) {
        uint256 storeBalance = _getStoreBalance(_pool, _owner);
        UserLock memory user = getUserLock(_pool, _owner);
        return _amount <= storeBalance.sub(user.amount);
    }

    function update(address _pool, address _owner)
        public
        returns (UserLock memory)
    {
        UserLock memory user = userLock[_pool][_owner];
        if (user.end <= block.timestamp && user.end > 0) {
            LockPool memory pool = lockPools[_pool];
            pool.totalAmount = pool.totalAmount.sub(user.amount);
            pool.totalTime = pool.totalTime.sub(user.end);
            pool.totalUser = pool.totalUser.sub(1);
            lockPools[_pool] = pool;

            user.amount = 0;
            user.end = 0;
            userLock[_pool][_owner] = user;
        }

        return user;
    }

    function checkWithdraw(
        address _pool,
        address _owner,
        uint256 _amount
    ) external override {
        uint256 storeBalance = _getStoreBalance(_pool, _owner);
        UserLock memory user = update(_pool, _owner);
        require(
            _amount <= storeBalance.sub(user.amount),
            'BLP: cannt withdraw lock limit'
        );
    }

    // ==== Vote ====
    function voteSupply(address _rewardPool)
        external
        view
        override
        returns (uint256)
    {
        RewardPool memory pool = rewardPools[_rewardPool];
        return pool.totalVote;
    }

    function voteBalanceOf(address _rewardPool, address _owner)
        external
        view
        override
        returns (uint256)
    {
        return userVote[_rewardPool][_owner];
    }

    function _voteTo(
        address _owner,
        address _rewardPool,
        uint256 _amount,
        bool callback
    ) internal {
        RewardPool memory pool = rewardPools[_rewardPool];
        require(pool.enable, 'BLP: not in reward pools');
        _transfer(_owner, address(this), _amount);
        userVote[_rewardPool][_owner] = userVote[_rewardPool][_owner].add(
            _amount
        );
        pool.totalVote = pool.totalVote.add(_amount);
        rewardPools[_rewardPool] = pool;
        if (callback) IRewardPool(_rewardPool).onVoteChange(_owner);
        emit VoteTo(_rewardPool, _owner, _amount);
    }

    function voteTo(address _rewardPool, uint256 _amount)
        public
        override
        checkMigrate
    {
        _voteTo(_msgSender(), _rewardPool, _amount, true);
    }

    function unvoteFrom(address _rewardPool, uint256 _amount)
        public
        override
        checkMigrate
    {
        RewardPool memory pool = rewardPools[_rewardPool];
        require(pool.enable, 'BLP: not in reward pools');
        address _owner = _msgSender();
        userVote[_rewardPool][_owner] = userVote[_rewardPool][_owner].sub(
            _amount
        );
        pool.totalVote = pool.totalVote.sub(_amount);
        rewardPools[_rewardPool] = pool;
        IRewardPool(_rewardPool).onVoteChange(_owner);

        _transfer(address(this), _owner, _amount);

        emit UnvoteFrom(_rewardPool, _owner, _amount);
    }

    // ==== Manager ====
    function setLockPool(
        address _pool,
        bool _enable,
        uint256 _recipK,
        bool _siglePool,
        address _store,
        uint256 _pid
    ) external onlyOwner {
        LockPool memory pool = lockPools[_pool];
        pool.enable = _enable;
        pool.siglePool = _siglePool;
        pool.recipK = _recipK;
        pool.store = _store;
        pool.pid = _pid;
        lockPools[_pool] = pool;
        emit SetLockPool(_pool, _enable, _recipK, _siglePool, _store, _pid);
    }

    function setRewardPool(address _pool, bool _enable) external onlyOwner {
        RewardPool memory pool = rewardPools[_pool];
        pool.enable = true;
        rewardPools[_pool] = pool;
        emit SetRewardPool(_pool, _enable);
    }

    function setMigrate(bool _migrate) external onlyOwner {
        migrate = _migrate;
    }

    function setAutoVotePercent(uint8 _autoVotePercent) external onlyOwner {
        autoVotePercent = _autoVotePercent;
    }

    // ==== Token ====

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal override {
        if (pauseTransfer) {
            require(
                sender == address(this) || recipient == address(this),
                'BLP: pause transfer'
            );
            super._transfer(sender, recipient, amount);
        } else {
            if (sender == address(this) || recipient == address(this)) {
                super._transfer(sender, recipient, amount);
            } else {
                uint256 burnAmount = amount.mul(fee).div(10000);
                if (burnAmount > 0) _burn(sender, burnAmount);
                super._transfer(sender, recipient, amount.sub(burnAmount));
            }
        }
    }

    function setDecimals(uint8 _decimals) external onlyOwner {
        _setupDecimals(_decimals);
    }

    function setTokenConfig(bool _pauseTransfer, uint256 _fee)
        external
        onlyOwner
    {
        pauseTransfer = _pauseTransfer;
        fee = _fee;
    }
}

File 2 of 12 : 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 3 of 12 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 4 of 12 : 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 12 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";

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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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

File 6 of 12 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    using SafeMath for uint256;

    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}

File 7 of 12 : 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 8 of 12 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 9 of 12 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 12 : 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 11 of 12 : Operator.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.8.0;

import {Context, Ownable} from '@openzeppelin/contracts/access/Ownable.sol';

abstract contract Operator is Context, Ownable {
    address private _operator;

    event OperatorTransferred(
        address indexed previousOperator,
        address indexed newOperator
    );

    constructor() {
        _operator = _msgSender();
        emit OperatorTransferred(address(0), _operator);
    }

    function operator() public view returns (address) {
        return _operator;
    }

    modifier onlyOperator() {
        require(
            _operator == _msgSender(),
            'operator: caller is not the operator'
        );
        _;
    }

    function isOperator() public view returns (bool) {
        return _msgSender() == _operator;
    }

    function transferOperator(address newOperator_) public onlyOwner {
        _transferOperator(newOperator_);
    }

    function _transferOperator(address newOperator_) internal {
        require(
            newOperator_ != address(0),
            'operator: zero address given for new operator'
        );
        emit OperatorTransferred(address(0), newOperator_);
        _operator = newOperator_;
    }
}

File 12 of 12 : console.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;

library console {
	address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);

	function _sendLogPayload(bytes memory payload) private view {
		uint256 payloadLength = payload.length;
		address consoleAddress = CONSOLE_ADDRESS;
		assembly {
			let payloadStart := add(payload, 32)
			let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
		}
	}

	function log() internal view {
		_sendLogPayload(abi.encodeWithSignature("log()"));
	}

	function logInt(int p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(int)", p0));
	}

	function logUint(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function logString(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function logBool(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function logAddress(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function logBytes(bytes memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
	}

	function logBytes1(bytes1 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
	}

	function logBytes2(bytes2 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
	}

	function logBytes3(bytes3 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
	}

	function logBytes4(bytes4 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
	}

	function logBytes5(bytes5 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
	}

	function logBytes6(bytes6 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
	}

	function logBytes7(bytes7 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
	}

	function logBytes8(bytes8 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
	}

	function logBytes9(bytes9 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
	}

	function logBytes10(bytes10 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
	}

	function logBytes11(bytes11 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
	}

	function logBytes12(bytes12 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
	}

	function logBytes13(bytes13 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
	}

	function logBytes14(bytes14 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
	}

	function logBytes15(bytes15 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
	}

	function logBytes16(bytes16 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
	}

	function logBytes17(bytes17 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
	}

	function logBytes18(bytes18 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
	}

	function logBytes19(bytes19 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
	}

	function logBytes20(bytes20 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
	}

	function logBytes21(bytes21 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
	}

	function logBytes22(bytes22 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
	}

	function logBytes23(bytes23 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
	}

	function logBytes24(bytes24 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
	}

	function logBytes25(bytes25 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
	}

	function logBytes26(bytes26 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
	}

	function logBytes27(bytes27 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
	}

	function logBytes28(bytes28 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
	}

	function logBytes29(bytes29 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
	}

	function logBytes30(bytes30 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
	}

	function logBytes31(bytes31 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
	}

	function logBytes32(bytes32 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
	}

	function log(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function log(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function log(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function log(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function log(uint p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1));
	}

	function log(uint p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1));
	}

	function log(uint p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1));
	}

	function log(uint p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1));
	}

	function log(string memory p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1));
	}

	function log(string memory p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
	}

	function log(string memory p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
	}

	function log(string memory p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
	}

	function log(bool p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1));
	}

	function log(bool p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
	}

	function log(bool p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
	}

	function log(bool p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
	}

	function log(address p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1));
	}

	function log(address p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
	}

	function log(address p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
	}

	function log(address p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
	}

	function log(uint p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2));
	}

	function log(uint p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2));
	}

	function log(uint p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2));
	}

	function log(uint p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2));
	}

	function log(uint p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2));
	}

	function log(uint p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2));
	}

	function log(uint p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2));
	}

	function log(uint p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2));
	}

	function log(uint p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2));
	}

	function log(uint p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2));
	}

	function log(uint p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2));
	}

	function log(uint p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
	}

	function log(string memory p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2));
	}

	function log(string memory p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
	}

	function log(string memory p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
	}

	function log(string memory p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
	}

	function log(bool p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2));
	}

	function log(bool p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2));
	}

	function log(bool p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2));
	}

	function log(bool p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
	}

	function log(bool p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2));
	}

	function log(bool p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
	}

	function log(bool p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
	}

	function log(bool p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
	}

	function log(bool p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2));
	}

	function log(bool p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
	}

	function log(bool p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
	}

	function log(bool p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
	}

	function log(address p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2));
	}

	function log(address p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2));
	}

	function log(address p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2));
	}

	function log(address p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2));
	}

	function log(address p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2));
	}

	function log(address p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
	}

	function log(address p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
	}

	function log(address p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
	}

	function log(address p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2));
	}

	function log(address p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
	}

	function log(address p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
	}

	function log(address p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
	}

	function log(address p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2));
	}

	function log(address p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
	}

	function log(address p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
	}

	function log(address p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
	}

	function log(uint p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
	}

}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_pool","type":"address"},{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_end","type":"uint256"}],"name":"CreateLock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_pool","type":"address"},{"indexed":false,"internalType":"bool","name":"_enable","type":"bool"},{"indexed":false,"internalType":"uint256","name":"_recipK","type":"uint256"},{"indexed":false,"internalType":"bool","name":"_siglePool","type":"bool"},{"indexed":true,"internalType":"address","name":"_store","type":"address"},{"indexed":false,"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"SetLockPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_pool","type":"address"},{"indexed":false,"internalType":"bool","name":"_enable","type":"bool"}],"name":"SetRewardPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_rewardPool","type":"address"},{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"UnvoteFrom","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_rewardPool","type":"address"},{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"VoteTo","type":"event"},{"inputs":[],"name":"MAX_LOCK_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_LOCK_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_LOCK_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoVotePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"calculatePoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"canWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"checkWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"createLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"createLockFromUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"name":"getUserLock","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"internalType":"struct ILock.UserLock","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lockPools","outputs":[{"internalType":"bool","name":"enable","type":"bool"},{"internalType":"uint256","name":"recipK","type":"uint256"},{"internalType":"bool","name":"siglePool","type":"bool"},{"internalType":"address","name":"store","type":"address"},{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"totalTime","type":"uint256"},{"internalType":"uint256","name":"totalUser","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"preCreateLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardPools","outputs":[{"internalType":"bool","name":"enable","type":"bool"},{"internalType":"uint256","name":"totalVote","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_autoVotePercent","type":"uint8"}],"name":"setAutoVotePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_decimals","type":"uint8"}],"name":"setDecimals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"bool","name":"_enable","type":"bool"},{"internalType":"uint256","name":"_recipK","type":"uint256"},{"internalType":"bool","name":"_siglePool","type":"bool"},{"internalType":"address","name":"_store","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"setLockPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_migrate","type":"bool"}],"name":"setMigrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"bool","name":"_enable","type":"bool"}],"name":"setRewardPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pauseTransfer","type":"bool"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardPool","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unvoteFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"name":"update","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"internalType":"struct ILock.UserLock","name":"","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userLock","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userVote","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardPool","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"name":"voteBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardPool","type":"address"}],"name":"voteSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardPool","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"voteTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405262093a80600955630784ce00600a5567016345785d8a0000600b556064600e55600f805460ff1990811660011790915560006010556011805490911690553480156200004f57600080fd5b506040518060400160405280601081526020016f10985cda5cc8131bd8dac8141bda5b9d60821b815250604051806040016040528060038152602001620424c560ec1b8152508160039080519060200190620000ad929190620001b7565b508051620000c3906004906020840190620001b7565b50506005805460ff19166012179055506000620000df6200019d565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200013f6200019d565b600680546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3620001976002620001a1565b62000263565b3390565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620001ef57600085556200023a565b82601f106200020a57805160ff19168380011785556200023a565b828001600101855582156200023a579182015b828111156200023a5782518255916020019190600101906200021d565b50620002489291506200024c565b5090565b5b808211156200024857600081556001016200024d565b612e8e80620002736000396000f3fe608060405234801561001057600080fd5b50600436106102955760003560e01c806370a0823111610167578063a457c2d7116100ce578063dd62ed3e11610087578063dd62ed3e146105b5578063dd764abf146105c8578063ddca3f43146105d0578063ec83067c146105d8578063f2fde38b146105eb578063fa78668f146105fe57610295565b8063a457c2d714610543578063a8f697cc14610556578063a9059cbb14610569578063b2972b461461057c578063bd77347a1461058f578063c640752d146105a257610295565b80638a19d547116101205780638a19d547146104e95780638da5cb5b146104f157806390a70139146104f957806394691da0146105015780639529fb971461051457806395d89b411461053b57610295565b806370a0823114610482578063715018a61461049557806379cc67901461049d5780637a1395aa146104b05780637cf7dfd6146104c357806387482cce146104d657610295565b806329593bf41161020b5780633ff03207116101c45780633ff032071461042457806342966c681461042c5780634456eda21461043f578063570ca73514610447578063650e15051461045c578063681c2fa71461046f57610295565b806329593bf4146103a257806329605e77146103b55780632a9772fc146103c8578063313ce567146103db578063372d9448146103f0578063395093511461041157610295565b806316e123701161025d57806316e123701461032e57806318160ddd146103415780631cc17c52146103495780631ddd34261461036957806323b872dd1461037c5780632712f9a31461038f57610295565b806301c3710f1461029a57806306fdde03146102c4578063095ea7b3146102d9578063113bcd5e146102f957806312d00cee1461030e575b600080fd5b6102ad6102a83660046126e0565b610606565b6040516102bb929190612c40565b60405180910390f35b6102cc61062a565b6040516102bb919061298c565b6102ec6102e736600461281c565b6106c0565b6040516102bb9190612911565b61030c61030736600461278e565b6106de565b005b61032161031c3660046126c6565b6107cf565b6040516102bb9190612c20565b61030c61033c366004612712565b61080b565b610321610864565b61035c6103573660046126e0565b61086a565b6040516102bb9190612c09565b61030c6103773660046128dc565b6108c8565b6102ec61038a366004612712565b610932565b61030c61039d366004612891565b6109b9565b61030c6103b036600461281c565b610a32565b61030c6103c33660046126c6565b610c09565b61030c6103d636600461281c565b610c77565b6103e3610cb2565b6040516102bb9190612c4e565b6104036103fe3660046126c6565b610cbb565b6040516102bb92919061291c565b6102ec61041f36600461281c565b610cda565b610321610d28565b61030c61043a3660046128ac565b610d2e565b6102ec610d3f565b61044f610d65565b6040516102bb91906128fd565b61030c61046a366004612845565b610d74565b61032161047d3660046126e0565b610de3565b6103216104903660046126c6565b610e00565b61030c610e1b565b61030c6104ab36600461281c565b610ecd565b61030c6104be3660046128dc565b610f1d565b61030c6104d1366004612845565b610f88565b61030c6104e43660046127b7565b610fa8565b61032161124a565b61044f611250565b6102ec611264565b6102ec61050f366004612712565b61126d565b6105276105223660046126c6565b6112a5565b6040516102bb98979695949392919061292c565b6102cc6112f3565b6102ec61055136600461281c565b611354565b610321610564366004612845565b6113bc565b6102ec61057736600461281c565b6113f4565b61032161058a36600461274d565b611408565b61030c61059d366004612877565b611510565b61035c6105b03660046126e0565b611585565b6103216105c33660046126e0565b61176f565b61032161179a565b6103216117a0565b6103216105e63660046126e0565b6117a6565b61030c6105f93660046126c6565b6117d1565b6103216118df565b60086020908152600092835260408084209091529082529020805460019091015482565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106b65780601f1061068b576101008083540402835291602001916106b6565b820191906000526020600020905b81548152906001019060200180831161069957829003601f168201915b5050505050905090565b60006106d46106cd6118e5565b84846118e9565b5060015b92915050565b6106e66118e5565b6001600160a01b03166106f7611250565b6001600160a01b031614610740576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b6001600160a01b0382166000818152600c602081815260408084208151808301835281546001808401805484880190815291845297899052959094528051151560ff199094169390931790559151909255519091907f462775876313d723c39d461237c9d387a87cc507c798e652bc0aedbf7a8959af906107c2908590612911565b60405180910390a2505050565b6001600160a01b0381166000908152600c60209081526040918290208251808401909352805460ff16151583526001015491018190525b919050565b600061081784846119d5565b905060006108258585611585565b8051909150610835908390611b1d565b83111561085d5760405162461bcd60e51b815260040161085490612a07565b60405180910390fd5b5050505050565b60025490565b610872612685565b6001600160a01b0380841660009081526008602090815260408083209386168352928152908290208251808401909352805483526001015490820181905242106108c157600080825260208201525b9392505050565b6108d06118e5565b6001600160a01b03166108e1611250565b6001600160a01b03161461092a576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b60ff16600e55565b600061093f848484611b7a565b6109af8461094b6118e5565b6109aa85604051806060016040528060288152602001612d5e602891396001600160a01b038a166000908152600160205260408120906109896118e5565b6001600160a01b031681526020810191909152604001600020549190611c48565b6118e9565b5060019392505050565b6109c16118e5565b6001600160a01b03166109d2611250565b6001600160a01b031614610a1b576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b600f805460ff191692151592909217909155601055565b60115460ff1615610a555760405162461bcd60e51b8152600401610854906129df565b6001600160a01b0382166000908152600c60209081526040918290208251808401909352805460ff16151580845260019091015491830191909152610aac5760405162461bcd60e51b815260040161085490612b90565b6000610ab66118e5565b6001600160a01b038086166000908152600d6020908152604080832093851683529290522054909150610ae99084611b1d565b6001600160a01b038086166000908152600d60209081526040808320938616835292815291902091909155820151610b219084611b1d565b60208381019182526001600160a01b0386166000818152600c9092526040918290208551815460ff1916901515178155925160019093019290925551631ab2d90160e11b8152633565b20290610b7b9084906004016128fd565b600060405180830381600087803b158015610b9557600080fd5b505af1158015610ba9573d6000803e3d6000fd5b50505050610bb8308285611b7a565b806001600160a01b0316846001600160a01b03167fa744d769d439814976637cb6552d136067bc8e59b7b76c112d49e3fcf07456a785604051610bfb9190612c20565b60405180910390a350505050565b610c116118e5565b6001600160a01b0316610c22611250565b6001600160a01b031614610c6b576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b610c7481611cdf565b50565b60115460ff1615610c9a5760405162461bcd60e51b8152600401610854906129df565b610cae610ca56118e5565b83836001611d7c565b5050565b60055460ff1690565b600c602052600090815260409020805460019091015460ff9091169082565b60006106d4610ce76118e5565b846109aa8560016000610cf86118e5565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611f33565b60095481565b610c74610d396118e5565b82611f8d565b6006546000906001600160a01b0316610d566118e5565b6001600160a01b031614905090565b6006546001600160a01b031690565b60076000610d806118e5565b6001600160a01b0316815260208101919091526040016000205460ff16610db95760405162461bcd60e51b815260040161085490612a81565b610dca610dc46118e5565b84611585565b50610dde610dd66118e5565b848484612089565b505050565b600d60209081526000928352604080842090915290825290205481565b6001600160a01b031660009081526020819052604090205490565b610e236118e5565b6001600160a01b0316610e34611250565b6001600160a01b031614610e7d576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b6000610eff82604051806060016040528060248152602001612da660249139610ef8866105c36118e5565b9190611c48565b9050610f1383610f0d6118e5565b836118e9565b610dde8383611f8d565b610f256118e5565b6001600160a01b0316610f36611250565b6001600160a01b031614610f7f576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b610c7481612364565b610f94836105b06118e5565b50610dde83610fa16118e5565b8484612089565b610fb06118e5565b6001600160a01b0316610fc1611250565b6001600160a01b03161461100a576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b600060076000886001600160a01b03166001600160a01b03168152602001908152602001600020604051806101000160405290816000820160009054906101000a900460ff16151515158152602001600182015481526020016002820160009054906101000a900460ff161515151581526020016002820160019054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200160038201548152602001600482015481526020016005820154815260200160068201548152505090508581600001901515908115158152505083816040019015159081151581525050848160200181815250508281606001906001600160a01b031690816001600160a01b031681525050818160800181815250508060076000896001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020160006101000a81548160ff02191690831515021790555060608201518160020160016101000a8154816001600160a01b0302191690836001600160a01b031602179055506080820151816003015560a0820151816004015560c0820151816005015560e08201518160060155905050826001600160a01b0316876001600160a01b03167fed02be42bf9aa4eb3f25accc08b3761cba01cb6fa8741ddd4681df789d21d5fd88888887604051611239949392919061296d565b60405180910390a350505050505050565b600e5481565b60055461010090046001600160a01b031690565b600f5460ff1681565b60008061127a85856119d5565b90506000611288868661086a565b8051909150611298908390611b1d565b9093111595945050505050565b600760205260009081526040902080546001820154600283015460038401546004850154600586015460069096015460ff9586169694958416946101009094046001600160a01b0316939088565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106b65780601f1061068b576101008083540402835291602001916106b6565b60006106d46113616118e5565b846109aa85604051806060016040528060258152602001612e34602591396001600061138b6118e5565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611c48565b6001600160a01b0383166000908152600760205260408120600101546113ec906113e6858561237a565b906123d3565b949350505050565b60006106d46114016118e5565b8484611b7a565b6000814210801561142457506009546114218342611b1d565b10155b6114405760405162461bcd60e51b815260040161085490612a3e565b600a5461144d8342611b1d565b111561146b5760405162461bcd60e51b815260040161085490612bc7565b6000611477868661086a565b9050600b54841015806114935750805115801590611493575083155b6114af5760405162461bcd60e51b815260040161085490612ab8565b80602001518310156114d35760405162461bcd60e51b815260040161085490612b60565b60006115056114e788876105648842611b1d565b835160208501516114ff918b91610564908a90611b1d565b90611f33565b979650505050505050565b6115186118e5565b6001600160a01b0316611529611250565b6001600160a01b031614611572576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b6011805460ff1916911515919091179055565b61158d612685565b6001600160a01b0380841660009081526008602090815260408083209386168352928152908290208251808401909352805483526001015490820181905242108015906115de575060008160200151115b156108c1576001600160a01b0380851660009081526007602090815260409182902082516101008082018552825460ff90811615158352600184015494830194909452600283015493841615159482019490945292909104909216606082015260038201546080820152600482015460a08201819052600583015460c083015260069092015460e08201528251909161167691611b1d565b60a0820152602082015160c082015161168e91611b1d565b60c082015260e08101516116a3906001611b1d565b60e082019081526001600160a01b0380871660008181526007602090815260408083208751815490151560ff1991821617825583890151600180840191909155838a015160028401805460608d01518b1661010002610100600160a81b0319931515919095161791909116929092179091556080890151600383015560a0890151600483015560c0909801516005820155955160069096019590955581875286810182815292825260088152848220938916825292909252919020835181559051910155905092915050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600b5481565b60105481565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b6117d96118e5565b6001600160a01b03166117ea611250565b6001600160a01b031614611833576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b6001600160a01b0381166118785760405162461bcd60e51b8152600401808060200182810382526026815260200180612ca26026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600a5481565b3390565b6001600160a01b03831661192e5760405162461bcd60e51b8152600401808060200182810382526024815260200180612e106024913960400191505060405180910390fd5b6001600160a01b0382166119735760405162461bcd60e51b8152600401808060200182810382526022815260200180612cc86022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03808316600090815260076020908152604080832081516101008082018452825460ff90811615158352600184015495830195909552600283015494851615801594830194909452909304909416606083015260038401546080830152600484015460a0830152600584015460c083015260069093015460e08201529091611ae65780606001516001600160a01b03166370a08231846040518263ffffffff1660e01b8152600401611a8e91906128fd565b60206040518083038186803b158015611aa657600080fd5b505afa158015611aba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ade91906128c4565b9150506106d8565b60608101516080820151604051631b2b776160e11b81526001600160a01b0390921691633656eec291611a8e918790600401612c29565b600082821115611b74576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600f5460ff1615611bd0576001600160a01b038316301480611ba457506001600160a01b03821630145b611bc05760405162461bcd60e51b815260040161085490612b33565b611bcb83838361243a565b610dde565b6001600160a01b038316301480611bef57506001600160a01b03821630145b15611bff57611bcb83838361243a565b6000611c1c6127106113e66010548561237a90919063ffffffff16565b90508015611c2e57611c2e8482611f8d565b611c428484611c3d8585611b1d565b61243a565b50505050565b60008184841115611cd75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c9c578181015183820152602001611c84565b50505050905090810190601f168015611cc95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038116611d245760405162461bcd60e51b815260040180806020018281038252602d815260200180612d10602d913960400191505060405180910390fd5b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166000908152600c60209081526040918290208251808401909352805460ff16151580845260019091015491830191909152611dd35760405162461bcd60e51b815260040161085490612b90565b611dde853085611b7a565b6001600160a01b038085166000908152600d6020908152604080832093891683529290522054611e0e9084611f33565b6001600160a01b038086166000908152600d60209081526040808320938a16835292815291902091909155810151611e469084611f33565b60208281019182526001600160a01b0386166000908152600c909152604090208251815460ff191690151517815590516001909101558115611ee157604051631ab2d90160e11b81526001600160a01b03851690633565b20290611eae9088906004016128fd565b600060405180830381600087803b158015611ec857600080fd5b505af1158015611edc573d6000803e3d6000fd5b505050505b846001600160a01b0316846001600160a01b03167fc6550958e4f1a3a09d8d1009499cf628de235f3cbf76087b9729de809ae0b2df85604051611f249190612c20565b60405180910390a35050505050565b6000828201838110156108c1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216611fd25760405162461bcd60e51b8152600401808060200182810382526021815260200180612dca6021913960400191505060405180910390fd5b611fde82600083610dde565b61201b81604051806060016040528060228152602001612c80602291396001600160a01b0385166000908152602081905260409020549190611c48565b6001600160a01b0383166000908152602081905260409020556002546120419082611b1d565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60115460ff16156120ac5760405162461bcd60e51b8152600401610854906129df565b60006120ba85858585611408565b905060006120c8868661086a565b905060006120d687876119d5565b82519091506120e6908290611b1d565b8511156121055760405162461bcd60e51b815260040161085490612afc565b6001600160a01b0380881660009081526007602090815260409182902082516101008082018552825460ff90811615158352600184015494830194909452600283015493841615159482019490945292909104909216606082015260038201546080820152600482015460a0820152600582015460c082015260069091015460e08201528315612199576121998785612595565b60a08101516121a89087611f33565b60a082015260208301516121cc906121c1908790611b1d565b60c083015190611f33565b60c082015260208301516121e65760e08101805160010190525b6001600160a01b038089166000908152600760209081526040918290208451815490151560ff1991821617825591850151600182015591840151600283018054606087015190951661010002610100600160a81b0319921515959093169490941716179091556080820151600382015560a0820151600482015560c0820151600582015560e082015160069091015582516122819087611f33565b835260208084018681526001600160a01b03808b166000818152600885526040808220938d168083529390955284902087518155925160019093019290925591517fe356af80a11f509f7eec1a00df84d4532994c459e0c13c5fb0c71e6fcdf9b651906122f1908a908a90612c40565b60405180910390a36001600160a01b0388166000908152600c602052604090205460ff16801561232357506000600e54115b801561232f5750600084115b1561235a5761235a878961235360646113e6600e548a61237a90919063ffffffff16565b6000611d7c565b5050505050505050565b6005805460ff191660ff92909216919091179055565b600082612389575060006106d8565b8282028284828161239657fe5b04146108c15760405162461bcd60e51b8152600401808060200182810382526021815260200180612d3d6021913960400191505060405180910390fd5b6000808211612429576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161243257fe5b049392505050565b6001600160a01b03831661247f5760405162461bcd60e51b8152600401808060200182810382526025815260200180612deb6025913960400191505060405180910390fd5b6001600160a01b0382166124c45760405162461bcd60e51b8152600401808060200182810382526023815260200180612c5d6023913960400191505060405180910390fd5b6124cf838383610dde565b61250c81604051806060016040528060268152602001612cea602691396001600160a01b0386166000908152602081905260409020549190611c48565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461253b9082611f33565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6001600160a01b0382166125f0576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6125fc60008383610dde565b6002546126099082611f33565b6002556001600160a01b03821660009081526020819052604090205461262f9082611f33565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b604051806040016040528060008152602001600081525090565b80356001600160a01b038116811461080657600080fd5b8035801515811461080657600080fd5b6000602082840312156126d7578081fd5b6108c18261269f565b600080604083850312156126f2578081fd5b6126fb8361269f565b91506127096020840161269f565b90509250929050565b600080600060608486031215612726578081fd5b61272f8461269f565b925061273d6020850161269f565b9150604084013590509250925092565b60008060008060808587031215612762578081fd5b61276b8561269f565b93506127796020860161269f565b93969395505050506040820135916060013590565b600080604083850312156127a0578182fd5b6127a98361269f565b9150612709602084016126b6565b60008060008060008060c087890312156127cf578182fd5b6127d88761269f565b95506127e6602088016126b6565b9450604087013593506127fb606088016126b6565b92506128096080880161269f565b915060a087013590509295509295509295565b6000806040838503121561282e578182fd5b6128378361269f565b946020939093013593505050565b600080600060608486031215612859578283fd5b6128628461269f565b95602085013595506040909401359392505050565b600060208284031215612888578081fd5b6108c1826126b6565b600080604083850312156128a3578182fd5b612837836126b6565b6000602082840312156128bd578081fd5b5035919050565b6000602082840312156128d5578081fd5b5051919050565b6000602082840312156128ed578081fd5b813560ff811681146108c1578182fd5b6001600160a01b0391909116815260200190565b901515815260200190565b9115158252602082015260400190565b9715158852602088019690965293151560408701526001600160a01b03929092166060860152608085015260a084015260c083015260e08201526101000190565b9315158452602084019290925215156040830152606082015260800190565b6000602080835283518082850152825b818110156129b85785810183015185820160400152820161299c565b818111156129c95783604083870101525b50601f01601f1916929092016040019392505050565b6020808252600e908201526d6d6967726174652070617573652160901b604082015260600190565b6020808252601e908201527f424c503a2063616e6e74207769746864726177206c6f636b206c696d69740000604082015260600190565b60208082526023908201527f424c503a2063616e6e742073686f7274207468616e204d494e5f4c4f434b5f54604082015262494d4560e81b606082015260800190565b60208082526017908201527f424c503a206e6f742066726f6d206c6f636b20706f6f6c000000000000000000604082015260600190565b60208082526024908201527f424c503a2063616e6e74206c657373207468616e204d494e5f4c4f434b5f414d60408201526313d5539560e21b606082015260800190565b60208082526019908201527f424c503a206c6f636b20616d6f756e7420746f6f206d75636800000000000000604082015260600190565b6020808252601390820152722126281d103830bab9b2903a3930b739b332b960691b604082015260600190565b602080825260169082015275424c503a2063616e6e74207265647563652074696d6560501b604082015260600190565b60208082526018908201527f424c503a206e6f7420696e2072657761726420706f6f6c730000000000000000604082015260600190565b60208082526022908201527f424c503a2063616e6e74206c6f6e67207468616e204d41585f4c4f434b5f54496040820152614d4560f01b606082015260800190565b815181526020918201519181019190915260400190565b90815260200190565b9182526001600160a01b0316602082015260400190565b918252602082015260400190565b60ff9190911681526020019056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63656f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f9b39394d4e7de63add2bda6ce932ab28d67a6674f68de81f92b664145fbe30664736f6c63430007060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102955760003560e01c806370a0823111610167578063a457c2d7116100ce578063dd62ed3e11610087578063dd62ed3e146105b5578063dd764abf146105c8578063ddca3f43146105d0578063ec83067c146105d8578063f2fde38b146105eb578063fa78668f146105fe57610295565b8063a457c2d714610543578063a8f697cc14610556578063a9059cbb14610569578063b2972b461461057c578063bd77347a1461058f578063c640752d146105a257610295565b80638a19d547116101205780638a19d547146104e95780638da5cb5b146104f157806390a70139146104f957806394691da0146105015780639529fb971461051457806395d89b411461053b57610295565b806370a0823114610482578063715018a61461049557806379cc67901461049d5780637a1395aa146104b05780637cf7dfd6146104c357806387482cce146104d657610295565b806329593bf41161020b5780633ff03207116101c45780633ff032071461042457806342966c681461042c5780634456eda21461043f578063570ca73514610447578063650e15051461045c578063681c2fa71461046f57610295565b806329593bf4146103a257806329605e77146103b55780632a9772fc146103c8578063313ce567146103db578063372d9448146103f0578063395093511461041157610295565b806316e123701161025d57806316e123701461032e57806318160ddd146103415780631cc17c52146103495780631ddd34261461036957806323b872dd1461037c5780632712f9a31461038f57610295565b806301c3710f1461029a57806306fdde03146102c4578063095ea7b3146102d9578063113bcd5e146102f957806312d00cee1461030e575b600080fd5b6102ad6102a83660046126e0565b610606565b6040516102bb929190612c40565b60405180910390f35b6102cc61062a565b6040516102bb919061298c565b6102ec6102e736600461281c565b6106c0565b6040516102bb9190612911565b61030c61030736600461278e565b6106de565b005b61032161031c3660046126c6565b6107cf565b6040516102bb9190612c20565b61030c61033c366004612712565b61080b565b610321610864565b61035c6103573660046126e0565b61086a565b6040516102bb9190612c09565b61030c6103773660046128dc565b6108c8565b6102ec61038a366004612712565b610932565b61030c61039d366004612891565b6109b9565b61030c6103b036600461281c565b610a32565b61030c6103c33660046126c6565b610c09565b61030c6103d636600461281c565b610c77565b6103e3610cb2565b6040516102bb9190612c4e565b6104036103fe3660046126c6565b610cbb565b6040516102bb92919061291c565b6102ec61041f36600461281c565b610cda565b610321610d28565b61030c61043a3660046128ac565b610d2e565b6102ec610d3f565b61044f610d65565b6040516102bb91906128fd565b61030c61046a366004612845565b610d74565b61032161047d3660046126e0565b610de3565b6103216104903660046126c6565b610e00565b61030c610e1b565b61030c6104ab36600461281c565b610ecd565b61030c6104be3660046128dc565b610f1d565b61030c6104d1366004612845565b610f88565b61030c6104e43660046127b7565b610fa8565b61032161124a565b61044f611250565b6102ec611264565b6102ec61050f366004612712565b61126d565b6105276105223660046126c6565b6112a5565b6040516102bb98979695949392919061292c565b6102cc6112f3565b6102ec61055136600461281c565b611354565b610321610564366004612845565b6113bc565b6102ec61057736600461281c565b6113f4565b61032161058a36600461274d565b611408565b61030c61059d366004612877565b611510565b61035c6105b03660046126e0565b611585565b6103216105c33660046126e0565b61176f565b61032161179a565b6103216117a0565b6103216105e63660046126e0565b6117a6565b61030c6105f93660046126c6565b6117d1565b6103216118df565b60086020908152600092835260408084209091529082529020805460019091015482565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106b65780601f1061068b576101008083540402835291602001916106b6565b820191906000526020600020905b81548152906001019060200180831161069957829003601f168201915b5050505050905090565b60006106d46106cd6118e5565b84846118e9565b5060015b92915050565b6106e66118e5565b6001600160a01b03166106f7611250565b6001600160a01b031614610740576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b6001600160a01b0382166000818152600c602081815260408084208151808301835281546001808401805484880190815291845297899052959094528051151560ff199094169390931790559151909255519091907f462775876313d723c39d461237c9d387a87cc507c798e652bc0aedbf7a8959af906107c2908590612911565b60405180910390a2505050565b6001600160a01b0381166000908152600c60209081526040918290208251808401909352805460ff16151583526001015491018190525b919050565b600061081784846119d5565b905060006108258585611585565b8051909150610835908390611b1d565b83111561085d5760405162461bcd60e51b815260040161085490612a07565b60405180910390fd5b5050505050565b60025490565b610872612685565b6001600160a01b0380841660009081526008602090815260408083209386168352928152908290208251808401909352805483526001015490820181905242106108c157600080825260208201525b9392505050565b6108d06118e5565b6001600160a01b03166108e1611250565b6001600160a01b03161461092a576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b60ff16600e55565b600061093f848484611b7a565b6109af8461094b6118e5565b6109aa85604051806060016040528060288152602001612d5e602891396001600160a01b038a166000908152600160205260408120906109896118e5565b6001600160a01b031681526020810191909152604001600020549190611c48565b6118e9565b5060019392505050565b6109c16118e5565b6001600160a01b03166109d2611250565b6001600160a01b031614610a1b576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b600f805460ff191692151592909217909155601055565b60115460ff1615610a555760405162461bcd60e51b8152600401610854906129df565b6001600160a01b0382166000908152600c60209081526040918290208251808401909352805460ff16151580845260019091015491830191909152610aac5760405162461bcd60e51b815260040161085490612b90565b6000610ab66118e5565b6001600160a01b038086166000908152600d6020908152604080832093851683529290522054909150610ae99084611b1d565b6001600160a01b038086166000908152600d60209081526040808320938616835292815291902091909155820151610b219084611b1d565b60208381019182526001600160a01b0386166000818152600c9092526040918290208551815460ff1916901515178155925160019093019290925551631ab2d90160e11b8152633565b20290610b7b9084906004016128fd565b600060405180830381600087803b158015610b9557600080fd5b505af1158015610ba9573d6000803e3d6000fd5b50505050610bb8308285611b7a565b806001600160a01b0316846001600160a01b03167fa744d769d439814976637cb6552d136067bc8e59b7b76c112d49e3fcf07456a785604051610bfb9190612c20565b60405180910390a350505050565b610c116118e5565b6001600160a01b0316610c22611250565b6001600160a01b031614610c6b576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b610c7481611cdf565b50565b60115460ff1615610c9a5760405162461bcd60e51b8152600401610854906129df565b610cae610ca56118e5565b83836001611d7c565b5050565b60055460ff1690565b600c602052600090815260409020805460019091015460ff9091169082565b60006106d4610ce76118e5565b846109aa8560016000610cf86118e5565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611f33565b60095481565b610c74610d396118e5565b82611f8d565b6006546000906001600160a01b0316610d566118e5565b6001600160a01b031614905090565b6006546001600160a01b031690565b60076000610d806118e5565b6001600160a01b0316815260208101919091526040016000205460ff16610db95760405162461bcd60e51b815260040161085490612a81565b610dca610dc46118e5565b84611585565b50610dde610dd66118e5565b848484612089565b505050565b600d60209081526000928352604080842090915290825290205481565b6001600160a01b031660009081526020819052604090205490565b610e236118e5565b6001600160a01b0316610e34611250565b6001600160a01b031614610e7d576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b6000610eff82604051806060016040528060248152602001612da660249139610ef8866105c36118e5565b9190611c48565b9050610f1383610f0d6118e5565b836118e9565b610dde8383611f8d565b610f256118e5565b6001600160a01b0316610f36611250565b6001600160a01b031614610f7f576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b610c7481612364565b610f94836105b06118e5565b50610dde83610fa16118e5565b8484612089565b610fb06118e5565b6001600160a01b0316610fc1611250565b6001600160a01b03161461100a576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b600060076000886001600160a01b03166001600160a01b03168152602001908152602001600020604051806101000160405290816000820160009054906101000a900460ff16151515158152602001600182015481526020016002820160009054906101000a900460ff161515151581526020016002820160019054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200160038201548152602001600482015481526020016005820154815260200160068201548152505090508581600001901515908115158152505083816040019015159081151581525050848160200181815250508281606001906001600160a01b031690816001600160a01b031681525050818160800181815250508060076000896001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020160006101000a81548160ff02191690831515021790555060608201518160020160016101000a8154816001600160a01b0302191690836001600160a01b031602179055506080820151816003015560a0820151816004015560c0820151816005015560e08201518160060155905050826001600160a01b0316876001600160a01b03167fed02be42bf9aa4eb3f25accc08b3761cba01cb6fa8741ddd4681df789d21d5fd88888887604051611239949392919061296d565b60405180910390a350505050505050565b600e5481565b60055461010090046001600160a01b031690565b600f5460ff1681565b60008061127a85856119d5565b90506000611288868661086a565b8051909150611298908390611b1d565b9093111595945050505050565b600760205260009081526040902080546001820154600283015460038401546004850154600586015460069096015460ff9586169694958416946101009094046001600160a01b0316939088565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106b65780601f1061068b576101008083540402835291602001916106b6565b60006106d46113616118e5565b846109aa85604051806060016040528060258152602001612e34602591396001600061138b6118e5565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611c48565b6001600160a01b0383166000908152600760205260408120600101546113ec906113e6858561237a565b906123d3565b949350505050565b60006106d46114016118e5565b8484611b7a565b6000814210801561142457506009546114218342611b1d565b10155b6114405760405162461bcd60e51b815260040161085490612a3e565b600a5461144d8342611b1d565b111561146b5760405162461bcd60e51b815260040161085490612bc7565b6000611477868661086a565b9050600b54841015806114935750805115801590611493575083155b6114af5760405162461bcd60e51b815260040161085490612ab8565b80602001518310156114d35760405162461bcd60e51b815260040161085490612b60565b60006115056114e788876105648842611b1d565b835160208501516114ff918b91610564908a90611b1d565b90611f33565b979650505050505050565b6115186118e5565b6001600160a01b0316611529611250565b6001600160a01b031614611572576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b6011805460ff1916911515919091179055565b61158d612685565b6001600160a01b0380841660009081526008602090815260408083209386168352928152908290208251808401909352805483526001015490820181905242108015906115de575060008160200151115b156108c1576001600160a01b0380851660009081526007602090815260409182902082516101008082018552825460ff90811615158352600184015494830194909452600283015493841615159482019490945292909104909216606082015260038201546080820152600482015460a08201819052600583015460c083015260069092015460e08201528251909161167691611b1d565b60a0820152602082015160c082015161168e91611b1d565b60c082015260e08101516116a3906001611b1d565b60e082019081526001600160a01b0380871660008181526007602090815260408083208751815490151560ff1991821617825583890151600180840191909155838a015160028401805460608d01518b1661010002610100600160a81b0319931515919095161791909116929092179091556080890151600383015560a0890151600483015560c0909801516005820155955160069096019590955581875286810182815292825260088152848220938916825292909252919020835181559051910155905092915050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600b5481565b60105481565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b6117d96118e5565b6001600160a01b03166117ea611250565b6001600160a01b031614611833576040805162461bcd60e51b81526020600482018190526024820152600080516020612d86833981519152604482015290519081900360640190fd5b6001600160a01b0381166118785760405162461bcd60e51b8152600401808060200182810382526026815260200180612ca26026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600a5481565b3390565b6001600160a01b03831661192e5760405162461bcd60e51b8152600401808060200182810382526024815260200180612e106024913960400191505060405180910390fd5b6001600160a01b0382166119735760405162461bcd60e51b8152600401808060200182810382526022815260200180612cc86022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03808316600090815260076020908152604080832081516101008082018452825460ff90811615158352600184015495830195909552600283015494851615801594830194909452909304909416606083015260038401546080830152600484015460a0830152600584015460c083015260069093015460e08201529091611ae65780606001516001600160a01b03166370a08231846040518263ffffffff1660e01b8152600401611a8e91906128fd565b60206040518083038186803b158015611aa657600080fd5b505afa158015611aba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ade91906128c4565b9150506106d8565b60608101516080820151604051631b2b776160e11b81526001600160a01b0390921691633656eec291611a8e918790600401612c29565b600082821115611b74576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600f5460ff1615611bd0576001600160a01b038316301480611ba457506001600160a01b03821630145b611bc05760405162461bcd60e51b815260040161085490612b33565b611bcb83838361243a565b610dde565b6001600160a01b038316301480611bef57506001600160a01b03821630145b15611bff57611bcb83838361243a565b6000611c1c6127106113e66010548561237a90919063ffffffff16565b90508015611c2e57611c2e8482611f8d565b611c428484611c3d8585611b1d565b61243a565b50505050565b60008184841115611cd75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c9c578181015183820152602001611c84565b50505050905090810190601f168015611cc95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038116611d245760405162461bcd60e51b815260040180806020018281038252602d815260200180612d10602d913960400191505060405180910390fd5b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166000908152600c60209081526040918290208251808401909352805460ff16151580845260019091015491830191909152611dd35760405162461bcd60e51b815260040161085490612b90565b611dde853085611b7a565b6001600160a01b038085166000908152600d6020908152604080832093891683529290522054611e0e9084611f33565b6001600160a01b038086166000908152600d60209081526040808320938a16835292815291902091909155810151611e469084611f33565b60208281019182526001600160a01b0386166000908152600c909152604090208251815460ff191690151517815590516001909101558115611ee157604051631ab2d90160e11b81526001600160a01b03851690633565b20290611eae9088906004016128fd565b600060405180830381600087803b158015611ec857600080fd5b505af1158015611edc573d6000803e3d6000fd5b505050505b846001600160a01b0316846001600160a01b03167fc6550958e4f1a3a09d8d1009499cf628de235f3cbf76087b9729de809ae0b2df85604051611f249190612c20565b60405180910390a35050505050565b6000828201838110156108c1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216611fd25760405162461bcd60e51b8152600401808060200182810382526021815260200180612dca6021913960400191505060405180910390fd5b611fde82600083610dde565b61201b81604051806060016040528060228152602001612c80602291396001600160a01b0385166000908152602081905260409020549190611c48565b6001600160a01b0383166000908152602081905260409020556002546120419082611b1d565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60115460ff16156120ac5760405162461bcd60e51b8152600401610854906129df565b60006120ba85858585611408565b905060006120c8868661086a565b905060006120d687876119d5565b82519091506120e6908290611b1d565b8511156121055760405162461bcd60e51b815260040161085490612afc565b6001600160a01b0380881660009081526007602090815260409182902082516101008082018552825460ff90811615158352600184015494830194909452600283015493841615159482019490945292909104909216606082015260038201546080820152600482015460a0820152600582015460c082015260069091015460e08201528315612199576121998785612595565b60a08101516121a89087611f33565b60a082015260208301516121cc906121c1908790611b1d565b60c083015190611f33565b60c082015260208301516121e65760e08101805160010190525b6001600160a01b038089166000908152600760209081526040918290208451815490151560ff1991821617825591850151600182015591840151600283018054606087015190951661010002610100600160a81b0319921515959093169490941716179091556080820151600382015560a0820151600482015560c0820151600582015560e082015160069091015582516122819087611f33565b835260208084018681526001600160a01b03808b166000818152600885526040808220938d168083529390955284902087518155925160019093019290925591517fe356af80a11f509f7eec1a00df84d4532994c459e0c13c5fb0c71e6fcdf9b651906122f1908a908a90612c40565b60405180910390a36001600160a01b0388166000908152600c602052604090205460ff16801561232357506000600e54115b801561232f5750600084115b1561235a5761235a878961235360646113e6600e548a61237a90919063ffffffff16565b6000611d7c565b5050505050505050565b6005805460ff191660ff92909216919091179055565b600082612389575060006106d8565b8282028284828161239657fe5b04146108c15760405162461bcd60e51b8152600401808060200182810382526021815260200180612d3d6021913960400191505060405180910390fd5b6000808211612429576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161243257fe5b049392505050565b6001600160a01b03831661247f5760405162461bcd60e51b8152600401808060200182810382526025815260200180612deb6025913960400191505060405180910390fd5b6001600160a01b0382166124c45760405162461bcd60e51b8152600401808060200182810382526023815260200180612c5d6023913960400191505060405180910390fd5b6124cf838383610dde565b61250c81604051806060016040528060268152602001612cea602691396001600160a01b0386166000908152602081905260409020549190611c48565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461253b9082611f33565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6001600160a01b0382166125f0576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6125fc60008383610dde565b6002546126099082611f33565b6002556001600160a01b03821660009081526020819052604090205461262f9082611f33565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b604051806040016040528060008152602001600081525090565b80356001600160a01b038116811461080657600080fd5b8035801515811461080657600080fd5b6000602082840312156126d7578081fd5b6108c18261269f565b600080604083850312156126f2578081fd5b6126fb8361269f565b91506127096020840161269f565b90509250929050565b600080600060608486031215612726578081fd5b61272f8461269f565b925061273d6020850161269f565b9150604084013590509250925092565b60008060008060808587031215612762578081fd5b61276b8561269f565b93506127796020860161269f565b93969395505050506040820135916060013590565b600080604083850312156127a0578182fd5b6127a98361269f565b9150612709602084016126b6565b60008060008060008060c087890312156127cf578182fd5b6127d88761269f565b95506127e6602088016126b6565b9450604087013593506127fb606088016126b6565b92506128096080880161269f565b915060a087013590509295509295509295565b6000806040838503121561282e578182fd5b6128378361269f565b946020939093013593505050565b600080600060608486031215612859578283fd5b6128628461269f565b95602085013595506040909401359392505050565b600060208284031215612888578081fd5b6108c1826126b6565b600080604083850312156128a3578182fd5b612837836126b6565b6000602082840312156128bd578081fd5b5035919050565b6000602082840312156128d5578081fd5b5051919050565b6000602082840312156128ed578081fd5b813560ff811681146108c1578182fd5b6001600160a01b0391909116815260200190565b901515815260200190565b9115158252602082015260400190565b9715158852602088019690965293151560408701526001600160a01b03929092166060860152608085015260a084015260c083015260e08201526101000190565b9315158452602084019290925215156040830152606082015260800190565b6000602080835283518082850152825b818110156129b85785810183015185820160400152820161299c565b818111156129c95783604083870101525b50601f01601f1916929092016040019392505050565b6020808252600e908201526d6d6967726174652070617573652160901b604082015260600190565b6020808252601e908201527f424c503a2063616e6e74207769746864726177206c6f636b206c696d69740000604082015260600190565b60208082526023908201527f424c503a2063616e6e742073686f7274207468616e204d494e5f4c4f434b5f54604082015262494d4560e81b606082015260800190565b60208082526017908201527f424c503a206e6f742066726f6d206c6f636b20706f6f6c000000000000000000604082015260600190565b60208082526024908201527f424c503a2063616e6e74206c657373207468616e204d494e5f4c4f434b5f414d60408201526313d5539560e21b606082015260800190565b60208082526019908201527f424c503a206c6f636b20616d6f756e7420746f6f206d75636800000000000000604082015260600190565b6020808252601390820152722126281d103830bab9b2903a3930b739b332b960691b604082015260600190565b602080825260169082015275424c503a2063616e6e74207265647563652074696d6560501b604082015260600190565b60208082526018908201527f424c503a206e6f7420696e2072657761726420706f6f6c730000000000000000604082015260600190565b60208082526022908201527f424c503a2063616e6e74206c6f6e67207468616e204d41585f4c4f434b5f54496040820152614d4560f01b606082015260800190565b815181526020918201519181019190915260400190565b90815260200190565b9182526001600160a01b0316602082015260400190565b918252602082015260400190565b60ff9190911681526020019056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63656f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f9b39394d4e7de63add2bda6ce932ab28d67a6674f68de81f92b664145fbe30664736f6c63430007060033

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.