ETH Price: $2,288.32 (+1.06%)

Contract

0xf12ABc5A69f3AF945E75Dd58bB6E591A8664Ec2E
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040188680502023-12-26 6:22:23256 days ago1703571743IN
 Create: DeltaRewardPool
0 ETH0.0290381214.32385552

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DeltaRewardPool

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 10 : DeltaRewardPool.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/IDeltaRewardPool.sol";

contract DeltaRewardPool is IDeltaRewardPool, Ownable, ReentrancyGuard {
    using Address for address;
    using SafeERC20 for IERC20;

    bool private initialized;

    uint256 public constant monthTime = 30 days;

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 stakeTime; // month; limit = 36;
        uint256 stakeDuration;
        uint256 power; // How much weight the user has provided.
        uint256 reward; // Reward
        uint256 allReward; // Reward
        uint256 rewardPerTokenPaid;
    }
    address public devAddress;

    uint256 public constant MIN_DEPOSIT_AMOUNT = 0.00001 ether;
    uint256 public constant MIN_WITHDRAW_AMOUNT = 0.00001 ether;

    uint256 public constant basRate = 100000;
    uint256 public punishRate = 10000; // basRate = 100000; limit = 36;
    uint256[] public stakeTimeRatio; // basRate = 100000; limit = 36;

    // tokens of the pool!
    address public rewardToken;
    address public stakedToken;

    // all reward for pool
    uint256 public totalReward;

    uint256 public curCycleStartTime;
    uint256 public startStakeTime;

    uint256 public poolSurplusReward;
    uint256 public curCycleReward;
    uint256 public nextCycleReward;
    uint256 public nextDuration;

    uint256 public cycleTimes;
    uint256 public periodFinish;

    uint256 public totalPower;
    uint256 public totalAmount;

    uint256 public rewardPerTokenStored;
    uint256 public lastUpdateTime;
    uint256 public rewardRate;

    // Info of each user that stakes tokens.
    mapping(address => UserInfo) public userInfo;

    event Stake(
        address indexed user,
        uint256 amount,
        uint256 power,
        uint256 duration
    );

    event Withdraw(
        address indexed user,
        uint256 punish,
        uint256 amount,
        uint256 power
    );
    event Harvest(address indexed user, uint256 amount);
    event SetStakeTimeRatio(uint256[] _stakeTimeRatio);
    event SetPunishRate(uint256 punishRate);
    event AddStakeTimeRatio(uint256[] _stakeTimeRatio);
    event AddNextCycleReward(uint256 rewardAmount);
    event SetRewardConfig(uint256 nextCycleReward, uint256 nextDuration);
    event StartNewEpoch(uint256 reward, uint256 duration);

    function initialize(
        address _owner,
        address _devAddress,
        address _rewardToken,
        address _stakedToken,
        uint256 _curCycleStartTime,
        uint256 _duration,
        uint256 _nextCycleReward,
        uint256[] memory _stakeTimeRatio
    ) external {
        require(!initialized, "initialize: Already initialized!");
        _transferOwnership(_owner);

        devAddress = _devAddress;

        rewardToken = _rewardToken;
        stakedToken = _stakedToken;
        curCycleStartTime = _curCycleStartTime - _duration; // start time - duration
        periodFinish = _curCycleStartTime;
        nextDuration = _duration;
        startStakeTime = periodFinish;
        nextCycleReward = _nextCycleReward;
        stakeTimeRatio = _stakeTimeRatio;
        punishRate = 10000;

        initialized = true;
    }

    //for reward
    function notifyMintAmount(uint256 addNextReward) external onlyOwner {
        uint256 balanceBefore = IERC20(rewardToken).balanceOf(address(this));
        IERC20(rewardToken).safeTransferFrom(
            msg.sender,
            address(this),
            addNextReward
        );
        uint256 balanceEnd = IERC20(rewardToken).balanceOf(address(this));

        poolSurplusReward = poolSurplusReward + (balanceEnd - balanceBefore);
        emit AddNextCycleReward(poolSurplusReward);
    }

    function setNextCycleReward(
        uint256 _nextCycleReward,
        uint256 _nextDuration
    ) external onlyOwner {
        nextCycleReward = _nextCycleReward;
        nextDuration = _nextDuration;
        emit SetRewardConfig(nextCycleReward, nextDuration);
    }

    function setStakeTimeRatio(
        uint256[] memory _stakeTimeRatio
    ) external onlyOwner {
        stakeTimeRatio = _stakeTimeRatio;
        emit SetStakeTimeRatio(_stakeTimeRatio);
    }

    function setPunishRate(
        uint256 _punishRate
    ) external onlyOwner {
        _punishRate = punishRate;
        emit SetPunishRate(_punishRate);
    }


    function addStakeTimeRatio(
        uint256[] memory _stakeTimeRatio
    ) external onlyOwner {
        for (uint256 i = 0; i < _stakeTimeRatio.length; i++) {
            stakeTimeRatio.push(_stakeTimeRatio[i]);
        }
        emit AddStakeTimeRatio(_stakeTimeRatio);
    }

    modifier checkNextEpoch() {
        if (block.timestamp >= periodFinish) {
            curCycleReward = nextCycleReward;
            require(
                poolSurplusReward >= nextCycleReward,
                "poolSurplusReward is not enough"
            );
            poolSurplusReward = poolSurplusReward - nextCycleReward;
            curCycleStartTime = block.timestamp;
            periodFinish = block.timestamp + (nextDuration);
            cycleTimes++;
            lastUpdateTime = curCycleStartTime;
            rewardRate = curCycleReward / (nextDuration);
            totalReward = totalReward + (curCycleReward);
            emit StartNewEpoch(curCycleReward, nextDuration);
        }
        _;
    }

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            UserInfo storage user = userInfo[account];
            user.reward = earned(account);
            user.rewardPerTokenPaid = rewardPerTokenStored;
        }
        _;
    }

    function rewardPerToken() public view returns (uint256) {
        if (totalSupply() == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored +
            (((lastTimeRewardApplicable() - lastUpdateTime) *
                rewardRate *
                1e18) / totalSupply());
    }

    function stake(
        uint256 _amount,
        uint256 _durationType
    ) external checkNextEpoch updateReward(msg.sender) nonReentrant {
        // check stake amount
        require(block.timestamp >= startStakeTime, "not start");
        require(_amount > 0, "Cannot stake 0");
        require(_durationType > 0, "stake time is too short");
        require(_durationType <= 36, "stake time is too long");
        UserInfo storage user = userInfo[msg.sender];
        if (user.amount == 0 || _amount > 0) {
            require(
                _amount > MIN_DEPOSIT_AMOUNT,
                "Deposit amount must be greater than MIN_DEPOSIT_AMOUNT"
            );
        }

        uint256 reward = earned(msg.sender);
        if (reward > 0) {
            safeTokenTransfer(msg.sender, reward);
            user.allReward = user.allReward + (reward);
            user.reward = 0;
            emit Harvest(msg.sender, reward);
        }

        // check duration
        if (
            user.stakeTime + (user.stakeDuration * (monthTime)) >=
            block.timestamp
        ) {
            uint256 lockDuration = user.stakeTime +
                (user.stakeDuration * (monthTime)) -
                (block.timestamp);
            require(
                _durationType * (monthTime) >= lockDuration,
                "Can only increase staked duration"
            );
        }

        // transfer token to this contract
        uint256 balanceBefore = IERC20(stakedToken).balanceOf(address(this));
        IERC20(stakedToken).safeTransferFrom(
            msg.sender,
            address(this),
            _amount
        );
        uint256 balanceEnd = IERC20(stakedToken).balanceOf(address(this));
        uint256 currentAmount = balanceEnd - balanceBefore;
        uint256 stakePower = (currentAmount * (stakeTimeRatio[_durationType])) /
            (basRate);

        // update user info
        user.amount = user.amount + (currentAmount);
        user.stakeTime = block.timestamp;
        user.stakeDuration = _durationType;
        user.power = user.power + (stakePower);

        // update total info
        totalAmount = totalAmount + (currentAmount);
        totalPower = totalPower + (stakePower);

        emit Stake(msg.sender, currentAmount, stakePower, _durationType);
    }

    // Withdraw without caring about punish
    function withdraw(
        uint256 amount
    ) external checkNextEpoch updateReward(msg.sender) nonReentrant {
        require(
            amount > MIN_WITHDRAW_AMOUNT,
            "Withdraw amount must be greater than MIN_WITHDRAW_AMOUNT"
        );
        UserInfo storage user = userInfo[msg.sender];
        require(user.amount > 0, "no stake amount");
        require(user.amount >= amount, "Overdrawing");

        uint256 reward = earned(msg.sender);
        if (reward > 0) {
            safeTokenTransfer(msg.sender, reward);
            user.allReward = user.allReward + (reward);
            user.reward = 0;
            emit Harvest(msg.sender, reward);
        }

        // calculate withdraw power
        uint256 withdrawPower = (amount *
            (stakeTimeRatio[user.stakeDuration])) / (basRate);

        // update user info
        user.amount = user.amount - amount;
        user.power = user.power - withdrawPower;

        // update total info
        totalAmount = totalAmount - amount;
        totalPower = totalPower - withdrawPower;

        uint256 punish = punishStake(msg.sender, amount);
        // transfer token to user
        if (punish > 0) {
            IERC20(stakedToken).safeTransfer(devAddress, punish);
        }

        IERC20(stakedToken).safeTransfer(msg.sender, amount - punish);

        emit Withdraw(msg.sender, punish, amount, withdrawPower);
    }

    // (1-(lockTime/stakeTime))*10%
    function punishStake(
        address user,
        uint256 withdrawAmount
    ) public view returns (uint256) {
        UserInfo memory _userInfo = userInfo[user];
        uint256 stakeTime = _userInfo.stakeTime;
        uint256 _stakeDuration = _userInfo.stakeDuration;
        uint256 shouldDuration = _stakeDuration * monthTime;
        uint256 stopStake = stakeTime + shouldDuration;
        if (stopStake > block.timestamp) {
            uint256 lockTime = block.timestamp - stakeTime;
            uint256 punishRatio = (((1e18 -
                ((lockTime * 1e18) / shouldDuration)) * punishRate) / basRate);
            return (punishRatio * withdrawAmount) / 1e18;
        } else {
            return 0;
        }
    }

    function harvest()
        external
        checkNextEpoch
        updateReward(msg.sender)
        nonReentrant
    {
        uint256 reward = earned(msg.sender);
        require(reward > 0, "no reward");
        safeTokenTransfer(msg.sender, reward);
        UserInfo storage user = userInfo[msg.sender];
        user.allReward = user.allReward + (reward);
        user.reward = 0;
        emit Harvest(msg.sender, reward);
    }

    function lastTimeRewardApplicable() internal view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function earned(address account) public view returns (uint256) {
        UserInfo memory user = userInfo[account];
        return
            (user.power * (rewardPerToken() - (user.rewardPerTokenPaid))) /
            (1e18) +
            (user.reward);
    }

    function totalSupply() public view returns (uint256) {
        return totalPower;
    }

    function getUserStakeInfo(
        address user
    )
        external
        view
        override
        returns (
            uint256 power,
            uint256 amount,
            uint256 stakeTime,
            uint256 stakeDuration
        )
    {
        UserInfo memory _userInfo = userInfo[user];

        power = _userInfo.power;
        amount = _userInfo.amount;
        stakeTime = _userInfo.stakeTime;
        stakeDuration = _userInfo.stakeDuration;
    }

    // Safe slt transfer function, just in case if rounding error causes pool to not have enough SLTs.
    function safeTokenTransfer(address _to, uint256 _amount) internal {
        require(rewardToken != address(0x0), "No harvest began");
        uint256 tokenBalance = IERC20(rewardToken).balanceOf(address(this));
        if (_amount > tokenBalance) {
            IERC20(rewardToken).transfer(_to, tokenBalance);
        } else {
            IERC20(rewardToken).transfer(_to, _amount);
        }
    }
}

File 2 of 10 : IDeltaRewardPool.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;

/**
 * @title IDeltaRewardPool
 * @dev IDeltaRewardPool interface
 * stakePool
 */
interface IDeltaRewardPool {
    function getUserStakeInfo(
        address user
    )
        external
        view
        returns (
            uint256 power,
            uint256 amount,
            uint256 stakeTime,
            uint256 stakeDuration
        );
}

File 3 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 4 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 5 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

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

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

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

File 6 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 7 of 10 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @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.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 8 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 9 of 10 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"AddNextCycleReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"_stakeTimeRatio","type":"uint256[]"}],"name":"AddStakeTimeRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"punishRate","type":"uint256"}],"name":"SetPunishRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"nextCycleReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nextDuration","type":"uint256"}],"name":"SetRewardConfig","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"_stakeTimeRatio","type":"uint256[]"}],"name":"SetStakeTimeRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"power","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"StartNewEpoch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"punish","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"power","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MIN_DEPOSIT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_WITHDRAW_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_stakeTimeRatio","type":"uint256[]"}],"name":"addStakeTimeRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"basRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curCycleReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curCycleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cycleTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserStakeInfo","outputs":[{"internalType":"uint256","name":"power","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"stakeTime","type":"uint256"},{"internalType":"uint256","name":"stakeDuration","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_devAddress","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_stakedToken","type":"address"},{"internalType":"uint256","name":"_curCycleStartTime","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_nextCycleReward","type":"uint256"},{"internalType":"uint256[]","name":"_stakeTimeRatio","type":"uint256[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"monthTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextCycleReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"addNextReward","type":"uint256"}],"name":"notifyMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolSurplusReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"punishRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"name":"punishStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nextCycleReward","type":"uint256"},{"internalType":"uint256","name":"_nextDuration","type":"uint256"}],"name":"setNextCycleReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_punishRate","type":"uint256"}],"name":"setPunishRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_stakeTimeRatio","type":"uint256[]"}],"name":"setStakeTimeRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_durationType","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakeTimeRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakedToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startStakeTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"stakeTime","type":"uint256"},{"internalType":"uint256","name":"stakeDuration","type":"uint256"},{"internalType":"uint256","name":"power","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"allReward","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405261271060035534801561001657600080fd5b5061002033610029565b60018055610079565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61226f806100886000396000f3fe608060405234801561001057600080fd5b50600436106102525760003560e01c8063715018a611610146578063b6857844116100c3578063db3ad22c11610087578063db3ad22c14610557578063df136d6514610560578063e58e171014610569578063ebe2b12b14610572578063f2fde38b1461057b578063f7c618c11461058e57600080fd5b8063b685784414610352578063c32d3ae214610491578063c8f33c9114610533578063cc7a262e1461053c578063cd3daf9d1461054f57600080fd5b80637b0a47ee1161010a5780637b0a47ee1461043e578063843892ff146104475780638da5cb5b1461045a5780639964d8901461046b5780639a6fe09f1461047e57600080fd5b8063715018a6146103fe57806371aec51514610406578063750142e61461040f578063750face5146104185780637b0472f01461042b57600080fd5b80632d9b5320116101d45780635b69aafe116101985780635b69aafe146103c65780635e5c2a5f146103cf578063602146ad146103d857806368d783e3146103e25780636908078b146103eb57600080fd5b80632d9b53201461035f5780632e1a7d4d146103685780633ad10ef61461037b5780634641257d146103ab578063583d459a146103b357600080fd5b806318160ddd1161021b57806318160ddd146102b85780631959a002146102c05780631967cf9a146103405780631a39d8ef146103495780631ea30fef1461035257600080fd5b80628cc262146102575780630a13fd6f1461027d5780630a1c4c4b146102925780630a99af09146102a55780630f92d2ee146102af575b600080fd5b61026a610265366004611e59565b6105a1565b6040519081526020015b60405180910390f35b61029061028b366004611e74565b610653565b005b61026a6102a0366004611e96565b6106a2565b61026a620186a081565b61026a600c5481565b60105461026a565b61030b6102ce366004611e59565b6015602052600090815260409020805460018201546002830154600384015460048501546005860154600690960154949593949293919290919087565b604080519788526020880196909652948601939093526060850191909152608084015260a083015260c082015260e001610274565b61026a60085481565b61026a60115481565b61026a6509184e72a00081565b61026a600e5481565b610290610376366004611ec0565b6107c9565b6002546103939061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610274565b610290610bbb565b6102906103c1366004611ec0565b610dbb565b61026a600b5481565b61026a600d5481565b61026a62278d0081565b61026a600a5481565b6102906103f9366004611f7f565b610dfe565b610290610efb565b61026a60095481565b61026a60075481565b61026a610426366004611ec0565b610f0f565b610290610439366004611e74565b610f30565b61026a60145481565b61029061045536600461201c565b611539565b6000546001600160a01b0316610393565b610290610479366004611ec0565b6115c2565b61029061048c36600461201c565b611715565b61051361049f366004611e59565b6001600160a01b0316600090815260156020908152604091829020825160e08101845281548082526001830154938201849052600283015494820185905260038301546060830181905260048401546080840152600584015460a084015260069093015460c0909201919091529093909290565b604080519485526020850193909352918301526060820152608001610274565b61026a60135481565b600654610393906001600160a01b031681565b61026a611760565b61026a60105481565b61026a60125481565b61026a60035481565b61026a600f5481565b610290610589366004611e59565b6117c9565b600554610393906001600160a01b031681565b6001600160a01b0381166000908152601560209081526040808320815160e0810183528154815260018201549381019390935260028101549183019190915260038101546060830152600481015460808301819052600582015460a084015260069091015460c08301819052670de0b6b3a76400009061061f611760565b6106299190612067565b8360600151610638919061207e565b610642919061209d565b61064c91906120bf565b9392505050565b61065b61183f565b600c829055600d81905560408051838152602081018390527fb2ea533f5e8ee630209c5faf573cde9df2c9f9f2bf22e4d080e57bcd00afd8a0910160405180910390a15050565b6001600160a01b0382166000908152601560209081526040808320815160e08101835281548152600182015493810184905260028201549281018390526003820154606082015260048201546080820152600582015460a082015260069091015460c082015291908361071862278d008361207e565b9050600061072682856120bf565b9050428111156107b957600061073c8542612067565b90506000620186a06003548584670de0b6b3a764000061075c919061207e565b610766919061209d565b61077890670de0b6b3a7640000612067565b610782919061207e565b61078c919061209d565b9050670de0b6b3a76400006107a18a8361207e565b6107ab919061209d565b9750505050505050506107c3565b6000955050505050505b92915050565b600f5442106108b357600c54600b819055600a5410156108045760405162461bcd60e51b81526004016107fb906120d7565b60405180910390fd5b600c54600a546108149190612067565b600a55426008819055600d54610829916120bf565b600f55600e805490600061083c8361210e565b9091555050600854601355600d54600b54610857919061209d565b601455600b5460075461086a91906120bf565b600755600b54600d546040517f3a3c32ccb847288c39cc6fc34b80496444cf84f6f4968f788efeb23b564560d4926108aa92908252602082015260400190565b60405180910390a15b336108bc611760565b6012556108c7611899565b6013556001600160a01b03811615610909576001600160a01b03811660009081526015602052604090206108fa826105a1565b60048201556012546006909101555b6109116118a7565b6509184e72a000821161098c5760405162461bcd60e51b815260206004820152603860248201527f576974686472617720616d6f756e74206d75737420626520677265617465722060448201527f7468616e204d494e5f57495448445241575f414d4f554e54000000000000000060648201526084016107fb565b33600090815260156020526040902080546109db5760405162461bcd60e51b815260206004820152600f60248201526e1b9bc81cdd185ad948185b5bdd5b9d608a1b60448201526064016107fb565b8054831115610a1a5760405162461bcd60e51b815260206004820152600b60248201526a4f76657264726177696e6760a81b60448201526064016107fb565b6000610a25336105a1565b90508015610a8957610a373382611901565b808260050154610a4791906120bf565b60058301556000600483015560405181815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a25b6000620186a06004846002015481548110610aa657610aa6612129565b906000526020600020015486610abc919061207e565b610ac6919061209d565b8354909150610ad6908690612067565b83556003830154610ae8908290612067565b6003840155601154610afb908690612067565b601155601054610b0c908290612067565b6010556000610b1b33876106a2565b90508015610b4657600254600654610b46916001600160a01b03918216916101009091041683611a7a565b610b6733610b548389612067565b6006546001600160a01b03169190611a7a565b604080518281526020810188905290810183905233907f02f25270a4d87bea75db541cdfe559334a275b4a233520ed6c0a2429667cca949060600160405180910390a250505050610bb760018055565b5050565b600f544210610c9c57600c54600b819055600a541015610bed5760405162461bcd60e51b81526004016107fb906120d7565b600c54600a54610bfd9190612067565b600a55426008819055600d54610c12916120bf565b600f55600e8054906000610c258361210e565b9091555050600854601355600d54600b54610c40919061209d565b601455600b54600754610c5391906120bf565b600755600b54600d546040517f3a3c32ccb847288c39cc6fc34b80496444cf84f6f4968f788efeb23b564560d492610c9392908252602082015260400190565b60405180910390a15b33610ca5611760565b601255610cb0611899565b6013556001600160a01b03811615610cf2576001600160a01b0381166000908152601560205260409020610ce3826105a1565b60048201556012546006909101555b610cfa6118a7565b6000610d05336105a1565b905060008111610d435760405162461bcd60e51b81526020600482015260096024820152681b9bc81c995dd85c9960ba1b60448201526064016107fb565b610d4d3382611901565b3360009081526015602052604090206005810154610d6c9083906120bf565b60058201556000600482015560405182815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a25050610db860018055565b50565b610dc361183f565b506003546040518181527f6fc740ddd6b65a84a7659cb9d83b31e5282dded7f1dbee08c60eb94161286537906020015b60405180910390a150565b60025460ff1615610e515760405162461bcd60e51b815260206004820181905260248201527f696e697469616c697a653a20416c726561647920696e697469616c697a65642160448201526064016107fb565b610e5a88611add565b600280546001600160a01b03808a1661010002610100600160a81b031990921691909117909155600580548883166001600160a01b0319918216179091556006805492881692909116919091179055610eb38385612067565b600855600f849055600d8390556009849055600c8290558051610edd906004906020840190611ddd565b505061271060035550506002805460ff191660011790555050505050565b610f0361183f565b610f0d6000611add565b565b60048181548110610f1f57600080fd5b600091825260209091200154905081565b600f54421061101157600c54600b819055600a541015610f625760405162461bcd60e51b81526004016107fb906120d7565b600c54600a54610f729190612067565b600a55426008819055600d54610f87916120bf565b600f55600e8054906000610f9a8361210e565b9091555050600854601355600d54600b54610fb5919061209d565b601455600b54600754610fc891906120bf565b600755600b54600d546040517f3a3c32ccb847288c39cc6fc34b80496444cf84f6f4968f788efeb23b564560d49261100892908252602082015260400190565b60405180910390a15b3361101a611760565b601255611025611899565b6013556001600160a01b03811615611067576001600160a01b0381166000908152601560205260409020611058826105a1565b60048201556012546006909101555b61106f6118a7565b6009544210156110ad5760405162461bcd60e51b81526020600482015260096024820152681b9bdd081cdd185c9d60ba1b60448201526064016107fb565b600083116110ee5760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b60448201526064016107fb565b6000821161113e5760405162461bcd60e51b815260206004820152601760248201527f7374616b652074696d6520697320746f6f2073686f727400000000000000000060448201526064016107fb565b60248211156111885760405162461bcd60e51b81526020600482015260166024820152757374616b652074696d6520697320746f6f206c6f6e6760501b60448201526064016107fb565b336000908152601560205260409020805415806111a55750600084115b1561121e576509184e72a000841161121e5760405162461bcd60e51b815260206004820152603660248201527f4465706f73697420616d6f756e74206d757374206265206772656174657220746044820152751a185b8813525397d1115413d4d25517d05353d5539560521b60648201526084016107fb565b6000611229336105a1565b9050801561128d5761123b3382611901565b80826005015461124b91906120bf565b60058301556000600483015560405181815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a25b4262278d0083600201546112a1919061207e565b83600101546112b091906120bf565b1061134e5760004262278d0084600201546112cb919061207e565b84600101546112da91906120bf565b6112e49190612067565b9050806112f462278d008761207e565b101561134c5760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c7920696e637265617365207374616b6564206475726174696f6044820152603760f91b60648201526084016107fb565b505b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611397573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bb919061213f565b6006549091506113d6906001600160a01b0316333089611b2d565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561141f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611443919061213f565b905060006114518383612067565b90506000620186a06004898154811061146c5761146c612129565b906000526020600020015483611482919061207e565b61148c919061209d565b865490915061149c9083906120bf565b86554260018701556002860188905560038601546114bb9082906120bf565b60038701556011546114ce9083906120bf565b6011556010546114df9082906120bf565b601055604080518381526020810183905290810189905233907ff556991011e831bcfac4f406d547e5e32cdd98267efab83935230d5f8d02c4469060600160405180910390a250505050505061153460018055565b505050565b61154161183f565b60005b815181101561159257600482828151811061156157611561612129565b602090810291909101810151825460018101845560009384529190922001558061158a8161210e565b915050611544565b507f54fc32aac22a9df890b159ce2d19980cb99fbe04e506172e861eb4e865dd99dc81604051610df39190612158565b6115ca61183f565b6005546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611613573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611637919061213f565b600554909150611652906001600160a01b0316333085611b2d565b6005546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561169b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116bf919061213f565b90506116cb8282612067565b600a546116d891906120bf565b600a8190556040519081527f8528f2e2f29ef4d4137a19f29c2f8a153aceefbddb2306f48bf18268b0d3cff49060200160405180910390a1505050565b61171d61183f565b8051611730906004906020840190611ddd565b507f9dcf0840ede0c57ccb0e0d300ed8554578f8d304519e72af52aed91c3628cbf081604051610df39190612158565b600061176b60105490565b611776575060125490565b601054601454601354611787611899565b6117919190612067565b61179b919061207e565b6117ad90670de0b6b3a764000061207e565b6117b7919061209d565b6012546117c491906120bf565b905090565b6117d161183f565b6001600160a01b0381166118365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107fb565b610db881611add565b6000546001600160a01b03163314610f0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fb565b60006117c442600f54611b65565b600260015414156118fa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107fb565b6002600155565b6005546001600160a01b031661194c5760405162461bcd60e51b815260206004820152601060248201526f2737903430b93b32b9ba103132b3b0b760811b60448201526064016107fb565b6005546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611995573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b9919061213f565b905080821115611a415760055460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490529091169063a9059cbb906044015b6020604051808303816000875af1158015611a17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3b919061219c565b50505050565b60055460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb906044016119f8565b6040516001600160a01b03831660248201526044810182905261153490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611b7b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611a3b9085906323b872dd60e01b90608401611aa6565b6000818310611b74578161064c565b5090919050565b6000611bd0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c509092919063ffffffff16565b9050805160001480611bf1575080806020019051810190611bf1919061219c565b6115345760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016107fb565b6060611c5f8484600085611c67565b949350505050565b606082471015611cc85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016107fb565b600080866001600160a01b03168587604051611ce491906121ea565b60006040518083038185875af1925050503d8060008114611d21576040519150601f19603f3d011682016040523d82523d6000602084013e611d26565b606091505b5091509150611d3787838387611d42565b979650505050505050565b60608315611dae578251611da7576001600160a01b0385163b611da75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107fb565b5081611c5f565b611c5f8383815115611dc35781518083602001fd5b8060405162461bcd60e51b81526004016107fb9190612206565b828054828255906000526020600020908101928215611e18579160200282015b82811115611e18578251825591602001919060010190611dfd565b50611e24929150611e28565b5090565b5b80821115611e245760008155600101611e29565b80356001600160a01b0381168114611e5457600080fd5b919050565b600060208284031215611e6b57600080fd5b61064c82611e3d565b60008060408385031215611e8757600080fd5b50508035926020909101359150565b60008060408385031215611ea957600080fd5b611eb283611e3d565b946020939093013593505050565b600060208284031215611ed257600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611f0057600080fd5b8135602067ffffffffffffffff80831115611f1d57611f1d611ed9565b8260051b604051601f19603f83011681018181108482111715611f4257611f42611ed9565b604052938452858101830193838101925087851115611f6057600080fd5b83870191505b84821015611d3757813583529183019190830190611f66565b600080600080600080600080610100898b031215611f9c57600080fd5b611fa589611e3d565b9750611fb360208a01611e3d565b9650611fc160408a01611e3d565b9550611fcf60608a01611e3d565b94506080890135935060a0890135925060c0890135915060e089013567ffffffffffffffff81111561200057600080fd5b61200c8b828c01611eef565b9150509295985092959890939650565b60006020828403121561202e57600080fd5b813567ffffffffffffffff81111561204557600080fd5b611c5f84828501611eef565b634e487b7160e01b600052601160045260246000fd5b60008282101561207957612079612051565b500390565b600081600019048311821515161561209857612098612051565b500290565b6000826120ba57634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156120d2576120d2612051565b500190565b6020808252601f908201527f706f6f6c537572706c7573526577617264206973206e6f7420656e6f75676800604082015260600190565b600060001982141561212257612122612051565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561215157600080fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b8181101561219057835183529284019291840191600101612174565b50909695505050505050565b6000602082840312156121ae57600080fd5b8151801515811461064c57600080fd5b60005b838110156121d95781810151838201526020016121c1565b83811115611a3b5750506000910152565b600082516121fc8184602087016121be565b9190910192915050565b60208152600082518060208401526122258160408501602087016121be565b601f01601f1916919091016040019291505056fea2646970667358221220480734935892176e2fe6a127bd9baf0aa134b6bab3d90bcea2fa61ef56bafee464736f6c634300080c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102525760003560e01c8063715018a611610146578063b6857844116100c3578063db3ad22c11610087578063db3ad22c14610557578063df136d6514610560578063e58e171014610569578063ebe2b12b14610572578063f2fde38b1461057b578063f7c618c11461058e57600080fd5b8063b685784414610352578063c32d3ae214610491578063c8f33c9114610533578063cc7a262e1461053c578063cd3daf9d1461054f57600080fd5b80637b0a47ee1161010a5780637b0a47ee1461043e578063843892ff146104475780638da5cb5b1461045a5780639964d8901461046b5780639a6fe09f1461047e57600080fd5b8063715018a6146103fe57806371aec51514610406578063750142e61461040f578063750face5146104185780637b0472f01461042b57600080fd5b80632d9b5320116101d45780635b69aafe116101985780635b69aafe146103c65780635e5c2a5f146103cf578063602146ad146103d857806368d783e3146103e25780636908078b146103eb57600080fd5b80632d9b53201461035f5780632e1a7d4d146103685780633ad10ef61461037b5780634641257d146103ab578063583d459a146103b357600080fd5b806318160ddd1161021b57806318160ddd146102b85780631959a002146102c05780631967cf9a146103405780631a39d8ef146103495780631ea30fef1461035257600080fd5b80628cc262146102575780630a13fd6f1461027d5780630a1c4c4b146102925780630a99af09146102a55780630f92d2ee146102af575b600080fd5b61026a610265366004611e59565b6105a1565b6040519081526020015b60405180910390f35b61029061028b366004611e74565b610653565b005b61026a6102a0366004611e96565b6106a2565b61026a620186a081565b61026a600c5481565b60105461026a565b61030b6102ce366004611e59565b6015602052600090815260409020805460018201546002830154600384015460048501546005860154600690960154949593949293919290919087565b604080519788526020880196909652948601939093526060850191909152608084015260a083015260c082015260e001610274565b61026a60085481565b61026a60115481565b61026a6509184e72a00081565b61026a600e5481565b610290610376366004611ec0565b6107c9565b6002546103939061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610274565b610290610bbb565b6102906103c1366004611ec0565b610dbb565b61026a600b5481565b61026a600d5481565b61026a62278d0081565b61026a600a5481565b6102906103f9366004611f7f565b610dfe565b610290610efb565b61026a60095481565b61026a60075481565b61026a610426366004611ec0565b610f0f565b610290610439366004611e74565b610f30565b61026a60145481565b61029061045536600461201c565b611539565b6000546001600160a01b0316610393565b610290610479366004611ec0565b6115c2565b61029061048c36600461201c565b611715565b61051361049f366004611e59565b6001600160a01b0316600090815260156020908152604091829020825160e08101845281548082526001830154938201849052600283015494820185905260038301546060830181905260048401546080840152600584015460a084015260069093015460c0909201919091529093909290565b604080519485526020850193909352918301526060820152608001610274565b61026a60135481565b600654610393906001600160a01b031681565b61026a611760565b61026a60105481565b61026a60125481565b61026a60035481565b61026a600f5481565b610290610589366004611e59565b6117c9565b600554610393906001600160a01b031681565b6001600160a01b0381166000908152601560209081526040808320815160e0810183528154815260018201549381019390935260028101549183019190915260038101546060830152600481015460808301819052600582015460a084015260069091015460c08301819052670de0b6b3a76400009061061f611760565b6106299190612067565b8360600151610638919061207e565b610642919061209d565b61064c91906120bf565b9392505050565b61065b61183f565b600c829055600d81905560408051838152602081018390527fb2ea533f5e8ee630209c5faf573cde9df2c9f9f2bf22e4d080e57bcd00afd8a0910160405180910390a15050565b6001600160a01b0382166000908152601560209081526040808320815160e08101835281548152600182015493810184905260028201549281018390526003820154606082015260048201546080820152600582015460a082015260069091015460c082015291908361071862278d008361207e565b9050600061072682856120bf565b9050428111156107b957600061073c8542612067565b90506000620186a06003548584670de0b6b3a764000061075c919061207e565b610766919061209d565b61077890670de0b6b3a7640000612067565b610782919061207e565b61078c919061209d565b9050670de0b6b3a76400006107a18a8361207e565b6107ab919061209d565b9750505050505050506107c3565b6000955050505050505b92915050565b600f5442106108b357600c54600b819055600a5410156108045760405162461bcd60e51b81526004016107fb906120d7565b60405180910390fd5b600c54600a546108149190612067565b600a55426008819055600d54610829916120bf565b600f55600e805490600061083c8361210e565b9091555050600854601355600d54600b54610857919061209d565b601455600b5460075461086a91906120bf565b600755600b54600d546040517f3a3c32ccb847288c39cc6fc34b80496444cf84f6f4968f788efeb23b564560d4926108aa92908252602082015260400190565b60405180910390a15b336108bc611760565b6012556108c7611899565b6013556001600160a01b03811615610909576001600160a01b03811660009081526015602052604090206108fa826105a1565b60048201556012546006909101555b6109116118a7565b6509184e72a000821161098c5760405162461bcd60e51b815260206004820152603860248201527f576974686472617720616d6f756e74206d75737420626520677265617465722060448201527f7468616e204d494e5f57495448445241575f414d4f554e54000000000000000060648201526084016107fb565b33600090815260156020526040902080546109db5760405162461bcd60e51b815260206004820152600f60248201526e1b9bc81cdd185ad948185b5bdd5b9d608a1b60448201526064016107fb565b8054831115610a1a5760405162461bcd60e51b815260206004820152600b60248201526a4f76657264726177696e6760a81b60448201526064016107fb565b6000610a25336105a1565b90508015610a8957610a373382611901565b808260050154610a4791906120bf565b60058301556000600483015560405181815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a25b6000620186a06004846002015481548110610aa657610aa6612129565b906000526020600020015486610abc919061207e565b610ac6919061209d565b8354909150610ad6908690612067565b83556003830154610ae8908290612067565b6003840155601154610afb908690612067565b601155601054610b0c908290612067565b6010556000610b1b33876106a2565b90508015610b4657600254600654610b46916001600160a01b03918216916101009091041683611a7a565b610b6733610b548389612067565b6006546001600160a01b03169190611a7a565b604080518281526020810188905290810183905233907f02f25270a4d87bea75db541cdfe559334a275b4a233520ed6c0a2429667cca949060600160405180910390a250505050610bb760018055565b5050565b600f544210610c9c57600c54600b819055600a541015610bed5760405162461bcd60e51b81526004016107fb906120d7565b600c54600a54610bfd9190612067565b600a55426008819055600d54610c12916120bf565b600f55600e8054906000610c258361210e565b9091555050600854601355600d54600b54610c40919061209d565b601455600b54600754610c5391906120bf565b600755600b54600d546040517f3a3c32ccb847288c39cc6fc34b80496444cf84f6f4968f788efeb23b564560d492610c9392908252602082015260400190565b60405180910390a15b33610ca5611760565b601255610cb0611899565b6013556001600160a01b03811615610cf2576001600160a01b0381166000908152601560205260409020610ce3826105a1565b60048201556012546006909101555b610cfa6118a7565b6000610d05336105a1565b905060008111610d435760405162461bcd60e51b81526020600482015260096024820152681b9bc81c995dd85c9960ba1b60448201526064016107fb565b610d4d3382611901565b3360009081526015602052604090206005810154610d6c9083906120bf565b60058201556000600482015560405182815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a25050610db860018055565b50565b610dc361183f565b506003546040518181527f6fc740ddd6b65a84a7659cb9d83b31e5282dded7f1dbee08c60eb94161286537906020015b60405180910390a150565b60025460ff1615610e515760405162461bcd60e51b815260206004820181905260248201527f696e697469616c697a653a20416c726561647920696e697469616c697a65642160448201526064016107fb565b610e5a88611add565b600280546001600160a01b03808a1661010002610100600160a81b031990921691909117909155600580548883166001600160a01b0319918216179091556006805492881692909116919091179055610eb38385612067565b600855600f849055600d8390556009849055600c8290558051610edd906004906020840190611ddd565b505061271060035550506002805460ff191660011790555050505050565b610f0361183f565b610f0d6000611add565b565b60048181548110610f1f57600080fd5b600091825260209091200154905081565b600f54421061101157600c54600b819055600a541015610f625760405162461bcd60e51b81526004016107fb906120d7565b600c54600a54610f729190612067565b600a55426008819055600d54610f87916120bf565b600f55600e8054906000610f9a8361210e565b9091555050600854601355600d54600b54610fb5919061209d565b601455600b54600754610fc891906120bf565b600755600b54600d546040517f3a3c32ccb847288c39cc6fc34b80496444cf84f6f4968f788efeb23b564560d49261100892908252602082015260400190565b60405180910390a15b3361101a611760565b601255611025611899565b6013556001600160a01b03811615611067576001600160a01b0381166000908152601560205260409020611058826105a1565b60048201556012546006909101555b61106f6118a7565b6009544210156110ad5760405162461bcd60e51b81526020600482015260096024820152681b9bdd081cdd185c9d60ba1b60448201526064016107fb565b600083116110ee5760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b60448201526064016107fb565b6000821161113e5760405162461bcd60e51b815260206004820152601760248201527f7374616b652074696d6520697320746f6f2073686f727400000000000000000060448201526064016107fb565b60248211156111885760405162461bcd60e51b81526020600482015260166024820152757374616b652074696d6520697320746f6f206c6f6e6760501b60448201526064016107fb565b336000908152601560205260409020805415806111a55750600084115b1561121e576509184e72a000841161121e5760405162461bcd60e51b815260206004820152603660248201527f4465706f73697420616d6f756e74206d757374206265206772656174657220746044820152751a185b8813525397d1115413d4d25517d05353d5539560521b60648201526084016107fb565b6000611229336105a1565b9050801561128d5761123b3382611901565b80826005015461124b91906120bf565b60058301556000600483015560405181815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a25b4262278d0083600201546112a1919061207e565b83600101546112b091906120bf565b1061134e5760004262278d0084600201546112cb919061207e565b84600101546112da91906120bf565b6112e49190612067565b9050806112f462278d008761207e565b101561134c5760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c7920696e637265617365207374616b6564206475726174696f6044820152603760f91b60648201526084016107fb565b505b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611397573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bb919061213f565b6006549091506113d6906001600160a01b0316333089611b2d565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561141f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611443919061213f565b905060006114518383612067565b90506000620186a06004898154811061146c5761146c612129565b906000526020600020015483611482919061207e565b61148c919061209d565b865490915061149c9083906120bf565b86554260018701556002860188905560038601546114bb9082906120bf565b60038701556011546114ce9083906120bf565b6011556010546114df9082906120bf565b601055604080518381526020810183905290810189905233907ff556991011e831bcfac4f406d547e5e32cdd98267efab83935230d5f8d02c4469060600160405180910390a250505050505061153460018055565b505050565b61154161183f565b60005b815181101561159257600482828151811061156157611561612129565b602090810291909101810151825460018101845560009384529190922001558061158a8161210e565b915050611544565b507f54fc32aac22a9df890b159ce2d19980cb99fbe04e506172e861eb4e865dd99dc81604051610df39190612158565b6115ca61183f565b6005546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611613573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611637919061213f565b600554909150611652906001600160a01b0316333085611b2d565b6005546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561169b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116bf919061213f565b90506116cb8282612067565b600a546116d891906120bf565b600a8190556040519081527f8528f2e2f29ef4d4137a19f29c2f8a153aceefbddb2306f48bf18268b0d3cff49060200160405180910390a1505050565b61171d61183f565b8051611730906004906020840190611ddd565b507f9dcf0840ede0c57ccb0e0d300ed8554578f8d304519e72af52aed91c3628cbf081604051610df39190612158565b600061176b60105490565b611776575060125490565b601054601454601354611787611899565b6117919190612067565b61179b919061207e565b6117ad90670de0b6b3a764000061207e565b6117b7919061209d565b6012546117c491906120bf565b905090565b6117d161183f565b6001600160a01b0381166118365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107fb565b610db881611add565b6000546001600160a01b03163314610f0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fb565b60006117c442600f54611b65565b600260015414156118fa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107fb565b6002600155565b6005546001600160a01b031661194c5760405162461bcd60e51b815260206004820152601060248201526f2737903430b93b32b9ba103132b3b0b760811b60448201526064016107fb565b6005546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611995573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b9919061213f565b905080821115611a415760055460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490529091169063a9059cbb906044015b6020604051808303816000875af1158015611a17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3b919061219c565b50505050565b60055460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb906044016119f8565b6040516001600160a01b03831660248201526044810182905261153490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611b7b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611a3b9085906323b872dd60e01b90608401611aa6565b6000818310611b74578161064c565b5090919050565b6000611bd0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c509092919063ffffffff16565b9050805160001480611bf1575080806020019051810190611bf1919061219c565b6115345760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016107fb565b6060611c5f8484600085611c67565b949350505050565b606082471015611cc85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016107fb565b600080866001600160a01b03168587604051611ce491906121ea565b60006040518083038185875af1925050503d8060008114611d21576040519150601f19603f3d011682016040523d82523d6000602084013e611d26565b606091505b5091509150611d3787838387611d42565b979650505050505050565b60608315611dae578251611da7576001600160a01b0385163b611da75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107fb565b5081611c5f565b611c5f8383815115611dc35781518083602001fd5b8060405162461bcd60e51b81526004016107fb9190612206565b828054828255906000526020600020908101928215611e18579160200282015b82811115611e18578251825591602001919060010190611dfd565b50611e24929150611e28565b5090565b5b80821115611e245760008155600101611e29565b80356001600160a01b0381168114611e5457600080fd5b919050565b600060208284031215611e6b57600080fd5b61064c82611e3d565b60008060408385031215611e8757600080fd5b50508035926020909101359150565b60008060408385031215611ea957600080fd5b611eb283611e3d565b946020939093013593505050565b600060208284031215611ed257600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611f0057600080fd5b8135602067ffffffffffffffff80831115611f1d57611f1d611ed9565b8260051b604051601f19603f83011681018181108482111715611f4257611f42611ed9565b604052938452858101830193838101925087851115611f6057600080fd5b83870191505b84821015611d3757813583529183019190830190611f66565b600080600080600080600080610100898b031215611f9c57600080fd5b611fa589611e3d565b9750611fb360208a01611e3d565b9650611fc160408a01611e3d565b9550611fcf60608a01611e3d565b94506080890135935060a0890135925060c0890135915060e089013567ffffffffffffffff81111561200057600080fd5b61200c8b828c01611eef565b9150509295985092959890939650565b60006020828403121561202e57600080fd5b813567ffffffffffffffff81111561204557600080fd5b611c5f84828501611eef565b634e487b7160e01b600052601160045260246000fd5b60008282101561207957612079612051565b500390565b600081600019048311821515161561209857612098612051565b500290565b6000826120ba57634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156120d2576120d2612051565b500190565b6020808252601f908201527f706f6f6c537572706c7573526577617264206973206e6f7420656e6f75676800604082015260600190565b600060001982141561212257612122612051565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561215157600080fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b8181101561219057835183529284019291840191600101612174565b50909695505050505050565b6000602082840312156121ae57600080fd5b8151801515811461064c57600080fd5b60005b838110156121d95781810151838201526020016121c1565b83811115611a3b5750506000910152565b600082516121fc8184602087016121be565b9190910192915050565b60208152600082518060208401526122258160408501602087016121be565b601f01601f1916919091016040019291505056fea2646970667358221220480734935892176e2fe6a127bd9baf0aa134b6bab3d90bcea2fa61ef56bafee464736f6c634300080c0033

Deployed Bytecode Sourcemap

396:12470:9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11528:259;;;;;;:::i;:::-;;:::i;:::-;;;529:25:10;;;517:2;502:18;11528:259:9;;;;;;;;4071:268;;;;;;:::i;:::-;;:::i;:::-;;10220:728;;;;;;:::i;:::-;;:::i;1155:40::-;;1189:6;1155:40;;1643:30;;;;;;11793:87;11863:10;;11793:87;;1995:44;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1392:25:10;;;1448:2;1433:18;;1426:34;;;;1476:18;;;1469:34;;;;1534:2;1519:18;;1512:34;;;;1577:3;1562:19;;1555:35;1621:3;1606:19;;1599:35;1665:3;1650:19;;1643:35;1379:3;1364:19;1995:44:9;1077:607:10;1496:32:9;;;;;;1809:26;;;;;;1025:58;;1070:13;1025:58;;1713:25;;;;;;8773:1405;;;;;;:::i;:::-;;:::i;993:25::-;;;;;;;;-1:-1:-1;;;;;993:25:9;;;;;;-1:-1:-1;;;;;2038:32:10;;;2020:51;;2008:2;1993:18;993:25:9;1874:203:10;10954:431:9;;;:::i;4543:159::-;;;;;;:::i;:::-;;:::i;1608:29::-;;;;;;1679:27;;;;;;568:43;;604:7;568:43;;1570:32;;;;;;2700:849;;;;;;:::i;:::-;;:::i;1824:101:0:-;;;:::i;1534:29:9:-;;;;;;1463:26;;;;;;1273:31;;;;;;:::i;:::-;;:::i;6420:2303::-;;;;;;:::i;:::-;;:::i;1918:25::-;;;;;;4709:276;;;;;;:::i;:::-;;:::i;1201:85:0:-;1247:7;1273:6;-1:-1:-1;;;;;1273:6:0;1201:85;;3572:493:9;;;;;;:::i;:::-;;:::i;4345:192::-;;;;;;:::i;:::-;;:::i;11886:471::-;;;;;;:::i;:::-;-1:-1:-1;;;;;12177:14:9;12017:13;12177:14;;;:8;:14;;;;;;;;;12149:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11886:471;;;;;4563:25:10;;;4619:2;4604:18;;4597:34;;;;4647:18;;;4640:34;4705:2;4690:18;;4683:34;4550:3;4535:19;11886:471:9;4332:391:10;1883:29:9;;;;;;1403:26;;;;;-1:-1:-1;;;;;1403:26:9;;;6085:329;;;:::i;1778:25::-;;;;;;1842:35;;;;;;1201:33;;;;;;1744:27;;;;;;2074:198:0;;;;;;:::i;:::-;;:::i;1371:26:9:-;;;;;-1:-1:-1;;;;;1371:26:9;;;11528:259;-1:-1:-1;;;;;11624:17:9;;11582:7;11624:17;;;:8;:17;;;;;;;;11601:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11747:4;;11685:16;:14;:16::i;:::-;:44;;;;:::i;:::-;11671:4;:10;;;:59;;;;:::i;:::-;11670:82;;;;:::i;:::-;:110;;;;:::i;:::-;11651:129;11528:259;-1:-1:-1;;;11528:259:9:o;4071:268::-;1094:13:0;:11;:13::i;:::-;4199:15:9::1;:34:::0;;;4243:12:::1;:28:::0;;;4286:46:::1;::::0;;5692:25:10;;;5748:2;5733:18;;5726:34;;;4286:46:9::1;::::0;5665:18:10;4286:46:9::1;;;;;;;4071:268:::0;;:::o;10220:728::-;-1:-1:-1;;;;;10369:14:9;;10322:7;10369:14;;;:8;:14;;;;;;;;10341:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10322:7;10525:26;604:7;10341:42;10525:26;:::i;:::-;10500:51;-1:-1:-1;10561:17:9;10581:26;10500:51;10581:9;:26;:::i;:::-;10561:46;;10633:15;10621:9;:27;10617:325;;;10664:16;10683:27;10701:9;10683:15;:27;:::i;:::-;10664:46;;10724:19;1189:6;10812:10;;10793:14;10774:8;10785:4;10774:15;;;;:::i;:::-;10773:34;;;;:::i;:::-;10749:59;;:4;:59;:::i;:::-;10748:74;;;;:::i;:::-;10747:86;;;;:::i;:::-;10724:110;-1:-1:-1;10888:4:9;10856:28;10870:14;10724:110;10856:28;:::i;:::-;10855:37;;;;:::i;:::-;10848:44;;;;;;;;;;;10617:325;10930:1;10923:8;;;;;;;10220:728;;;;;:::o;8773:1405::-;5050:12;;5031:15;:31;5027:665;;5095:15;;5078:14;:32;;;5149:17;;:36;;5124:126;;;;-1:-1:-1;;;5124:126:9;;;;;;;:::i;:::-;;;;;;;;;5304:15;;5284:17;;:35;;;;:::i;:::-;5264:17;:55;5353:15;5333:17;:35;;;5416:12;;5397:32;;;:::i;:::-;5382:12;:47;5443:10;:12;;;:10;:12;;;:::i;:::-;;;;-1:-1:-1;;5486:17:9;;5469:14;:34;5548:12;;5530:14;;:31;;5548:12;5530:31;:::i;:::-;5517:10;:44;5604:14;;5589:11;;:30;;5604:14;5589:30;:::i;:::-;5575:11;:44;5652:14;;5668:12;;5638:43;;;;;;5652:14;5692:25:10;;5748:2;5733:18;;5726:34;5680:2;5665:18;;5518:248;5638:43:9;;;;;;;;5027:665;8858:10:::1;5787:16;:14;:16::i;:::-;5764:20;:39:::0;5830:26:::1;:24;:26::i;:::-;5813:14;:43:::0;-1:-1:-1;;;;;5870:21:9;::::1;::::0;5866:196:::1;;-1:-1:-1::0;;;;;5931:17:9;::::1;5907:21;5931:17:::0;;;:8:::1;:17;::::0;;;;5976:15:::1;5940:7:::0;5976:6:::1;:15::i;:::-;5962:11;::::0;::::1;:29:::0;6031:20:::1;::::0;6005:23:::1;::::0;;::::1;:46:::0;5866:196:::1;2261:21:1::2;:19;:21::i;:::-;1135:13:9::3;8914:6;:28;8893:131;;;::::0;-1:-1:-1;;;8893:131:9;;6473:2:10;8893:131:9::3;::::0;::::3;6455:21:10::0;6512:2;6492:18;;;6485:30;6551:34;6531:18;;;6524:62;6622:26;6602:18;;;6595:54;6666:19;;8893:131:9::3;6271:420:10::0;8893:131:9::3;9067:10;9034:21;9058:20:::0;;;:8:::3;:20;::::0;;;;9096:11;;9088:43:::3;;;::::0;-1:-1:-1;;;9088:43:9;;6898:2:10;9088:43:9::3;::::0;::::3;6880:21:10::0;6937:2;6917:18;;;6910:30;-1:-1:-1;;;6956:18:10;;;6949:45;7011:18;;9088:43:9::3;6696:339:10::0;9088:43:9::3;9149:11:::0;;:21;-1:-1:-1;9149:21:9::3;9141:45;;;::::0;-1:-1:-1;;;9141:45:9;;7242:2:10;9141:45:9::3;::::0;::::3;7224:21:10::0;7281:2;7261:18;;;7254:30;-1:-1:-1;;;7300:18:10;;;7293:41;7351:18;;9141:45:9::3;7040:335:10::0;9141:45:9::3;9197:14;9214:18;9221:10;9214:6;:18::i;:::-;9197:35:::0;-1:-1:-1;9246:10:9;;9242:209:::3;;9272:37;9290:10;9302:6;9272:17;:37::i;:::-;9358:6;9340:4;:14;;;:25;;;;:::i;:::-;9323:14;::::0;::::3;:42:::0;9393:1:::3;9379:11;::::0;::::3;:15:::0;9413:27:::3;::::0;529:25:10;;;9421:10:9::3;::::0;9413:27:::3;::::0;517:2:10;502:18;9413:27:9::3;;;;;;;9242:209;9497:21;1189:6;9544:14;9559:4;:18;;;9544:34;;;;;;;;:::i;:::-;;;;;;;;;9522:6;:57;;;;:::i;:::-;9521:71;;;;:::i;:::-;9645:11:::0;;9497:95;;-1:-1:-1;9645:20:9::3;::::0;9659:6;;9645:20:::3;:::i;:::-;9631:34:::0;;9688:10:::3;::::0;::::3;::::0;:26:::3;::::0;9701:13;;9688:26:::3;:::i;:::-;9675:10;::::0;::::3;:39:::0;9768:11:::3;::::0;:20:::3;::::0;9782:6;;9768:20:::3;:::i;:::-;9754:11;:34:::0;9811:10:::3;::::0;:26:::3;::::0;9824:13;;9811:26:::3;:::i;:::-;9798:10;:39:::0;9848:14:::3;9865:31;9877:10;9889:6:::0;9865:11:::3;:31::i;:::-;9848:48:::0;-1:-1:-1;9944:10:9;;9940:93:::3;;10003:10;::::0;9977:11:::3;::::0;9970:52:::3;::::0;-1:-1:-1;;;;;9977:11:9;;::::3;::::0;10003:10:::3;::::0;;::::3;;10015:6:::0;9970:32:::3;:52::i;:::-;10043:61;10076:10;10088:15;10097:6:::0;10088;:15:::3;:::i;:::-;10050:11;::::0;-1:-1:-1;;;;;10050:11:9::3;::::0;10043:61;:32:::3;:61::i;:::-;10120:51;::::0;;7714:25:10;;;7770:2;7755:18;;7748:34;;;7798:18;;;7791:34;;;10129:10:9::3;::::0;10120:51:::3;::::0;7702:2:10;7687:18;10120:51:9::3;;;;;;;8883:1295;;;;2303:20:1::2;1716:1:::0;2809:22;;2629:209;2303:20:::2;5701:1:9::1;8773:1405:::0;:::o;10954:431::-;5050:12;;5031:15;:31;5027:665;;5095:15;;5078:14;:32;;;5149:17;;:36;;5124:126;;;;-1:-1:-1;;;5124:126:9;;;;;;;:::i;:::-;5304:15;;5284:17;;:35;;;;:::i;:::-;5264:17;:55;5353:15;5333:17;:35;;;5416:12;;5397:32;;;:::i;:::-;5382:12;:47;5443:10;:12;;;:10;:12;;;:::i;:::-;;;;-1:-1:-1;;5486:17:9;;5469:14;:34;5548:12;;5530:14;;:31;;5548:12;5530:31;:::i;:::-;5517:10;:44;5604:14;;5589:11;;:30;;5604:14;5589:30;:::i;:::-;5575:11;:44;5652:14;;5668:12;;5638:43;;;;;;5652:14;5692:25:10;;5748:2;5733:18;;5726:34;5680:2;5665:18;;5518:248;5638:43:9;;;;;;;;5027:665;11034:10:::1;5787:16;:14;:16::i;:::-;5764:20;:39:::0;5830:26:::1;:24;:26::i;:::-;5813:14;:43:::0;-1:-1:-1;;;;;5870:21:9;::::1;::::0;5866:196:::1;;-1:-1:-1::0;;;;;5931:17:9;::::1;5907:21;5931:17:::0;;;:8:::1;:17;::::0;;;;5976:15:::1;5940:7:::0;5976:6:::1;:15::i;:::-;5962:11;::::0;::::1;:29:::0;6031:20:::1;::::0;6005:23:::1;::::0;;::::1;:46:::0;5866:196:::1;2261:21:1::2;:19;:21::i;:::-;11081:14:9::3;11098:18;11105:10;11098:6;:18::i;:::-;11081:35;;11143:1;11134:6;:10;11126:32;;;::::0;-1:-1:-1;;;11126:32:9;;8038:2:10;11126:32:9::3;::::0;::::3;8020:21:10::0;8077:1;8057:18;;;8050:29;-1:-1:-1;;;8095:18:10;;;8088:39;8144:18;;11126:32:9::3;7836:332:10::0;11126:32:9::3;11168:37;11186:10;11198:6;11168:17;:37::i;:::-;11248:10;11215:21;11239:20:::0;;;:8:::3;:20;::::0;;;;11286:14:::3;::::0;::::3;::::0;:25:::3;::::0;11304:6;;11286:25:::3;:::i;:::-;11269:14;::::0;::::3;:42:::0;11335:1:::3;11321:11;::::0;::::3;:15:::0;11351:27:::3;::::0;529:25:10;;;11359:10:9::3;::::0;11351:27:::3;::::0;517:2:10;502:18;11351:27:9::3;;;;;;;11071:314;;2303:20:1::2;1716:1:::0;2809:22;;2629:209;2303:20:::2;5701:1:9::1;10954:431::o:0;4543:159::-;1094:13:0;:11;:13::i;:::-;-1:-1:-1;4644:10:9::1;::::0;4669:26:::1;::::0;529:25:10;;;4669:26:9::1;::::0;517:2:10;502:18;4669:26:9::1;;;;;;;;4543:159:::0;:::o;2700:849::-;3006:11;;;;3005:12;2997:57;;;;-1:-1:-1;;;2997:57:9;;8375:2:10;2997:57:9;;;8357:21:10;;;8394:18;;;8387:30;8453:34;8433:18;;;8426:62;8505:18;;2997:57:9;8173:356:10;2997:57:9;3064:26;3083:6;3064:18;:26::i;:::-;3101:10;:24;;-1:-1:-1;;;;;3101:24:9;;;;;-1:-1:-1;;;;;;3101:24:9;;;;;;;;;;3136:11;:26;;;;;-1:-1:-1;;;;;;3136:26:9;;;;;;;3172:11;:26;;;;;;;;;;;;;;;3228:30;3249:9;3228:18;:30;:::i;:::-;3208:17;:50;3293:12;:33;;;3336:12;:24;;;3370:14;:29;;;3409:15;:34;;;3453:32;;;;-1:-1:-1;;3453:32:9;;;;;:::i;:::-;-1:-1:-1;;3508:5:9;3495:10;:18;-1:-1:-1;;3524:11:9;:18;;-1:-1:-1;;3524:18:9;3538:4;3524:18;;;-1:-1:-1;;;;;2700:849:9:o;1824:101:0:-;1094:13;:11;:13::i;:::-;1888:30:::1;1915:1;1888:18;:30::i;:::-;1824:101::o:0;1273:31:9:-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1273:31:9;:::o;6420:2303::-;5050:12;;5031:15;:31;5027:665;;5095:15;;5078:14;:32;;;5149:17;;:36;;5124:126;;;;-1:-1:-1;;;5124:126:9;;;;;;;:::i;:::-;5304:15;;5284:17;;:35;;;;:::i;:::-;5264:17;:55;5353:15;5333:17;:35;;;5416:12;;5397:32;;;:::i;:::-;5382:12;:47;5443:10;:12;;;:10;:12;;;:::i;:::-;;;;-1:-1:-1;;5486:17:9;;5469:14;:34;5548:12;;5530:14;;:31;;5548:12;5530:31;:::i;:::-;5517:10;:44;5604:14;;5589:11;;:30;;5604:14;5589:30;:::i;:::-;5575:11;:44;5652:14;;5668:12;;5638:43;;;;;;5652:14;5692:25:10;;5748:2;5733:18;;5726:34;5680:2;5665:18;;5518:248;5638:43:9;;;;;;;;5027:665;6534:10:::1;5787:16;:14;:16::i;:::-;5764:20;:39:::0;5830:26:::1;:24;:26::i;:::-;5813:14;:43:::0;-1:-1:-1;;;;;5870:21:9;::::1;::::0;5866:196:::1;;-1:-1:-1::0;;;;;5931:17:9;::::1;5907:21;5931:17:::0;;;:8:::1;:17;::::0;;;;5976:15:::1;5940:7:::0;5976:6:::1;:15::i;:::-;5962:11;::::0;::::1;:29:::0;6031:20:::1;::::0;6005:23:::1;::::0;;::::1;:46:::0;5866:196:::1;2261:21:1::2;:19;:21::i;:::-;6626:14:9::3;;6607:15;:33;;6599:55;;;::::0;-1:-1:-1;;;6599:55:9;;8736:2:10;6599:55:9::3;::::0;::::3;8718:21:10::0;8775:1;8755:18;;;8748:29;-1:-1:-1;;;8793:18:10;;;8786:39;8842:18;;6599:55:9::3;8534:332:10::0;6599:55:9::3;6682:1;6672:7;:11;6664:38;;;::::0;-1:-1:-1;;;6664:38:9;;9073:2:10;6664:38:9::3;::::0;::::3;9055:21:10::0;9112:2;9092:18;;;9085:30;-1:-1:-1;;;9131:18:10;;;9124:44;9185:18;;6664:38:9::3;8871:338:10::0;6664:38:9::3;6736:1;6720:13;:17;6712:53;;;::::0;-1:-1:-1;;;6712:53:9;;9416:2:10;6712:53:9::3;::::0;::::3;9398:21:10::0;9455:2;9435:18;;;9428:30;9494:25;9474:18;;;9467:53;9537:18;;6712:53:9::3;9214:347:10::0;6712:53:9::3;6800:2;6783:13;:19;;6775:54;;;::::0;-1:-1:-1;;;6775:54:9;;9768:2:10;6775:54:9::3;::::0;::::3;9750:21:10::0;9807:2;9787:18;;;9780:30;-1:-1:-1;;;9826:18:10;;;9819:52;9888:18;;6775:54:9::3;9566:346:10::0;6775:54:9::3;6872:10;6839:21;6863:20:::0;;;:8:::3;:20;::::0;;;;6897:11;;:16;;:31:::3;;;6927:1;6917:7;:11;6897:31;6893:203;;;1070:13;6969:7;:28;6944:141;;;::::0;-1:-1:-1;;;6944:141:9;;10119:2:10;6944:141:9::3;::::0;::::3;10101:21:10::0;10158:2;10138:18;;;10131:30;10197:34;10177:18;;;10170:62;-1:-1:-1;;;10248:18:10;;;10241:52;10310:19;;6944:141:9::3;9917:418:10::0;6944:141:9::3;7106:14;7123:18;7130:10;7123:6;:18::i;:::-;7106:35:::0;-1:-1:-1;7155:10:9;;7151:209:::3;;7181:37;7199:10;7211:6;7181:17;:37::i;:::-;7267:6;7249:4;:14;;;:25;;;;:::i;:::-;7232:14;::::0;::::3;:42:::0;7302:1:::3;7288:11;::::0;::::3;:15:::0;7322:27:::3;::::0;529:25:10;;;7330:10:9::3;::::0;7322:27:::3;::::0;517:2:10;502:18;7322:27:9::3;;;;;;;7151:209;7480:15;604:7;7431:4;:18;;;:32;;;;:::i;:::-;7413:4;:14;;;:51;;;;:::i;:::-;:82;7396:410;;7520:20;7630:15;604:7;7577:4;:18;;;:32;;;;:::i;:::-;7543:4;:14;;;:67;;;;:::i;:::-;:103;;;;:::i;:::-;7520:126:::0;-1:-1:-1;7520:126:9;7685:27:::3;604:7;7685:13:::0;:27:::3;:::i;:::-;:43;;7660:135;;;::::0;-1:-1:-1;;;7660:135:9;;10542:2:10;7660:135:9::3;::::0;::::3;10524:21:10::0;10581:2;10561:18;;;10554:30;10620:34;10600:18;;;10593:62;-1:-1:-1;;;10671:18:10;;;10664:31;10712:19;;7660:135:9::3;10340:397:10::0;7660:135:9::3;7506:300;7396:410;7890:11;::::0;7883:44:::3;::::0;-1:-1:-1;;;7883:44:9;;7921:4:::3;7883:44;::::0;::::3;2020:51:10::0;7859:21:9::3;::::0;-1:-1:-1;;;;;7890:11:9::3;::::0;7883:29:::3;::::0;1993:18:10;;7883:44:9::3;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7944:11;::::0;7859:68;;-1:-1:-1;7937:118:9::3;::::0;-1:-1:-1;;;;;7944:11:9::3;7987:10;8019:4;8038:7:::0;7937:36:::3;:118::i;:::-;8093:11;::::0;8086:44:::3;::::0;-1:-1:-1;;;8086:44:9;;8124:4:::3;8086:44;::::0;::::3;2020:51:10::0;8065:18:9::3;::::0;-1:-1:-1;;;;;8093:11:9::3;::::0;8086:29:::3;::::0;1993:18:10;;8086:44:9::3;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8065:65:::0;-1:-1:-1;8140:21:9::3;8164:26;8177:13:::0;8065:65;8164:26:::3;:::i;:::-;8140:50;;8200:18;1189:6;8239:14;8254:13;8239:29;;;;;;;;:::i;:::-;;;;;;;;;8222:13;:47;;;;:::i;:::-;8221:73;;;;:::i;:::-;8347:11:::0;;8200:94;;-1:-1:-1;8347:29:9::3;::::0;8362:13;;8347:29:::3;:::i;:::-;8333:43:::0;;8403:15:::3;8386:14;::::0;::::3;:32:::0;8428:18:::3;::::0;::::3;:34:::0;;;8485:10:::3;::::0;::::3;::::0;:25:::3;::::0;8499:10;;8485:25:::3;:::i;:::-;8472:10;::::0;::::3;:38:::0;8564:11:::3;::::0;:29:::3;::::0;8579:13;;8564:29:::3;:::i;:::-;8550:11;:43:::0;8616:10:::3;::::0;:25:::3;::::0;8630:10;;8616:25:::3;:::i;:::-;8603:10;:38:::0;8657:59:::3;::::0;;7714:25:10;;;7770:2;7755:18;;7748:34;;;7798:18;;;7791:34;;;8663:10:9::3;::::0;8657:59:::3;::::0;7702:2:10;7687:18;8657:59:9::3;;;;;;;6559:2164;;;;;;2303:20:1::2;1716:1:::0;2809:22;;2629:209;2303:20:::2;5701:1:9::1;6420:2303:::0;;:::o;4709:276::-;1094:13:0;:11;:13::i;:::-;4818:9:9::1;4813:117;4837:15;:22;4833:1;:26;4813:117;;;4880:14;4900:15;4916:1;4900:18;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;4880:39;;::::1;::::0;::::1;::::0;;-1:-1:-1;4880:39:9;;;;;;;::::1;::::0;4861:3;::::1;::::0;::::1;:::i;:::-;;;;4813:117;;;;4944:34;4962:15;4944:34;;;;;;:::i;3572:493::-:0;1094:13:0;:11;:13::i;:::-;3681:11:9::1;::::0;3674:44:::1;::::0;-1:-1:-1;;;3674:44:9;;3712:4:::1;3674:44;::::0;::::1;2020:51:10::0;3650:21:9::1;::::0;-1:-1:-1;;;;;3681:11:9::1;::::0;3674:29:::1;::::0;1993:18:10;;3674:44:9::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3735:11;::::0;3650:68;;-1:-1:-1;3728:124:9::1;::::0;-1:-1:-1;;;;;3735:11:9::1;3778:10;3810:4;3829:13:::0;3728:36:::1;:124::i;:::-;3890:11;::::0;3883:44:::1;::::0;-1:-1:-1;;;3883:44:9;;3921:4:::1;3883:44;::::0;::::1;2020:51:10::0;3862:18:9::1;::::0;-1:-1:-1;;;;;3890:11:9::1;::::0;3883:29:::1;::::0;1993:18:10;;3883:44:9::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3862:65:::0;-1:-1:-1;3979:26:9::1;3992:13:::0;3862:65;3979:26:::1;:::i;:::-;3958:17;;:48;;;;:::i;:::-;3938:17;:68:::0;;;4021:37:::1;::::0;529:25:10;;;4021:37:9::1;::::0;517:2:10;502:18;4021:37:9::1;;;;;;;3640:425;;3572:493:::0;:::o;4345:192::-;1094:13:0;:11;:13::i;:::-;4449:32:9;;::::1;::::0;:14:::1;::::0;:32:::1;::::0;::::1;::::0;::::1;:::i;:::-;;4496:34;4514:15;4496:34;;;;;;:::i;6085:329::-:0;6132:7;6155:13;11863:10;;;11793:87;6155:13;6151:76;;-1:-1:-1;6196:20:9;;;6085:329::o;6151:76::-;11863:10;;6356;;6322:14;;6293:26;:24;:26::i;:::-;:43;;;;:::i;:::-;6292:74;;;;:::i;:::-;:97;;6385:4;6292:97;:::i;:::-;6291:115;;;;:::i;:::-;6255:20;;:152;;;;:::i;:::-;6236:171;;6085:329;:::o;2074:198:0:-;1094:13;:11;:13::i;:::-;-1:-1:-1;;;;;2162:22:0;::::1;2154:73;;;::::0;-1:-1:-1;;;2154:73:0;;11770:2:10;2154:73:0::1;::::0;::::1;11752:21:10::0;11809:2;11789:18;;;11782:30;11848:34;11828:18;;;11821:62;-1:-1:-1;;;11899:18:10;;;11892:36;11945:19;;2154:73:0::1;11568:402:10::0;2154:73:0::1;2237:28;2256:8;2237:18;:28::i;1359:130::-:0;1247:7;1273:6;-1:-1:-1;;;;;1273:6:0;719:10:6;1422:23:0;1414:68;;;;-1:-1:-1;;;1414:68:0;;12177:2:10;1414:68:0;;;12159:21:10;;;12196:18;;;12189:30;12255:34;12235:18;;;12228:62;12307:18;;1414:68:0;11975:356:10;11391:131:9;11450:7;11476:39;11485:15;11502:12;;11476:8;:39::i;2336:287:1:-;1759:1;2468:7;;:19;;2460:63;;;;-1:-1:-1;;;2460:63:1;;12538:2:10;2460:63:1;;;12520:21:10;12577:2;12557:18;;;12550:30;12616:33;12596:18;;;12589:61;12667:18;;2460:63:1;12336:355:10;2460:63:1;1759:1;2598:7;:18;2336:287::o;12466:398:9:-;12550:11;;-1:-1:-1;;;;;12550:11:9;12542:56;;;;-1:-1:-1;;;12542:56:9;;12898:2:10;12542:56:9;;;12880:21:10;12937:2;12917:18;;;12910:30;-1:-1:-1;;;12956:18:10;;;12949:46;13012:18;;12542:56:9;12696:340:10;12542:56:9;12638:11;;12631:44;;-1:-1:-1;;;12631:44:9;;12669:4;12631:44;;;2020:51:10;12608:20:9;;-1:-1:-1;;;;;12638:11:9;;12631:29;;1993:18:10;;12631:44:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;12608:67;;12699:12;12689:7;:22;12685:173;;;12734:11;;12727:47;;-1:-1:-1;;;12727:47:9;;-1:-1:-1;;;;;13233:32:10;;;12727:47:9;;;13215:51:10;13282:18;;;13275:34;;;12734:11:9;;;;12727:28;;13188:18:10;;12727:47:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;5701:1:::1;6420:2303:::0;;:::o;12685:173::-;12812:11;;12805:42;;-1:-1:-1;;;12805:42:9;;-1:-1:-1;;;;;13233:32:10;;;12805:42:9;;;13215:51:10;13282:18;;;13275:34;;;12812:11:9;;;;12805:28;;13188:18:10;;12805:42:9;13041:274:10;941:175:4;1050:58;;-1:-1:-1;;;;;13233:32:10;;1050:58:4;;;13215:51:10;13282:18;;;13275:34;;;1023:86:4;;1043:5;;-1:-1:-1;;;1073:23:4;13188:18:10;;1050:58:4;;;;-1:-1:-1;;1050:58:4;;;;;;;;;;;;;;-1:-1:-1;;;;;1050:58:4;-1:-1:-1;;;;;;1050:58:4;;;;;;;;;;1023:19;:86::i;2426:187:0:-;2499:16;2518:6;;-1:-1:-1;;;;;2534:17:0;;;-1:-1:-1;;;;;;2534:17:0;;;;;;2566:40;;2518:6;;;;;;;2566:40;;2499:16;2566:40;2489:124;2426:187;:::o;1355:203:4:-;1482:68;;-1:-1:-1;;;;;13860:15:10;;;1482:68:4;;;13842:34:10;13912:15;;13892:18;;;13885:43;13944:18;;;13937:34;;;1455:96:4;;1475:5;;-1:-1:-1;;;1505:27:4;13777:18:10;;1482:68:4;13602:375:10;588:104:7;646:7;676:1;672;:5;:13;;684:1;672:13;;;-1:-1:-1;680:1:7;;665:20;-1:-1:-1;588:104:7:o;5173:642:4:-;5592:23;5618:69;5646:4;5618:69;;;;;;;;;;;;;;;;;5626:5;-1:-1:-1;;;;;5618:27:4;;;:69;;;;;:::i;:::-;5592:95;;5705:10;:17;5726:1;5705:22;:56;;;;5742:10;5731:30;;;;;;;;;;;;:::i;:::-;5697:111;;;;-1:-1:-1;;;5697:111:4;;14184:2:10;5697:111:4;;;14166:21:10;14223:2;14203:18;;;14196:30;14262:34;14242:18;;;14235:62;-1:-1:-1;;;14313:18:10;;;14306:40;14363:19;;5697:111:4;13982:406:10;4108:223:5;4241:12;4272:52;4294:6;4302:4;4308:1;4311:12;4272:21;:52::i;:::-;4265:59;4108:223;-1:-1:-1;;;;4108:223:5:o;5165:446::-;5330:12;5387:5;5362:21;:30;;5354:81;;;;-1:-1:-1;;;5354:81:5;;14595:2:10;5354:81:5;;;14577:21:10;14634:2;14614:18;;;14607:30;14673:34;14653:18;;;14646:62;-1:-1:-1;;;14724:18:10;;;14717:36;14770:19;;5354:81:5;14393:402:10;5354:81:5;5446:12;5460:23;5487:6;-1:-1:-1;;;;;5487:11:5;5506:5;5513:4;5487:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5445:73;;;;5535:69;5562:6;5570:7;5579:10;5591:12;5535:26;:69::i;:::-;5528:76;5165:446;-1:-1:-1;;;;;;;5165:446:5:o;7671:628::-;7851:12;7879:7;7875:418;;;7906:17;;7902:286;;-1:-1:-1;;;;;1702:19:5;;;8113:60;;;;-1:-1:-1;;;8113:60:5;;15544:2:10;8113:60:5;;;15526:21:10;15583:2;15563:18;;;15556:30;15622:31;15602:18;;;15595:59;15671:18;;8113:60:5;15342:353:10;8113:60:5;-1:-1:-1;8208:10:5;8201:17;;7875:418;8249:33;8257:10;8269:12;8980:17;;:21;8976:379;;9208:10;9202:17;9264:15;9251:10;9247:2;9243:19;9236:44;8976:379;9331:12;9324:20;;-1:-1:-1;;;9324:20:5;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:173:10;82:20;;-1:-1:-1;;;;;131:31:10;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;565:248::-;633:6;641;694:2;682:9;673:7;669:23;665:32;662:52;;;710:1;707;700:12;662:52;-1:-1:-1;;733:23:10;;;803:2;788:18;;;775:32;;-1:-1:-1;565:248:10:o;818:254::-;886:6;894;947:2;935:9;926:7;922:23;918:32;915:52;;;963:1;960;953:12;915:52;986:29;1005:9;986:29;:::i;:::-;976:39;1062:2;1047:18;;;;1034:32;;-1:-1:-1;;;818:254:10:o;1689:180::-;1748:6;1801:2;1789:9;1780:7;1776:23;1772:32;1769:52;;;1817:1;1814;1807:12;1769:52;-1:-1:-1;1840:23:10;;1689:180;-1:-1:-1;1689:180:10:o;2082:127::-;2143:10;2138:3;2134:20;2131:1;2124:31;2174:4;2171:1;2164:15;2198:4;2195:1;2188:15;2214:902;2268:5;2321:3;2314:4;2306:6;2302:17;2298:27;2288:55;;2339:1;2336;2329:12;2288:55;2375:6;2362:20;2401:4;2424:18;2461:2;2457;2454:10;2451:36;;;2467:18;;:::i;:::-;2513:2;2510:1;2506:10;2545:2;2539:9;2608:2;2604:7;2599:2;2595;2591:11;2587:25;2579:6;2575:38;2663:6;2651:10;2648:22;2643:2;2631:10;2628:18;2625:46;2622:72;;;2674:18;;:::i;:::-;2710:2;2703:22;2760:18;;;2836:15;;;2832:24;;;2794:15;;;;-1:-1:-1;2868:15:10;;;2865:35;;;2896:1;2893;2886:12;2865:35;2932:2;2924:6;2920:15;2909:26;;2944:142;2960:6;2955:3;2952:15;2944:142;;;3026:17;;3014:30;;3064:12;;;;2977;;;;2944:142;;3121:853;3268:6;3276;3284;3292;3300;3308;3316;3324;3377:3;3365:9;3356:7;3352:23;3348:33;3345:53;;;3394:1;3391;3384:12;3345:53;3417:29;3436:9;3417:29;:::i;:::-;3407:39;;3465:38;3499:2;3488:9;3484:18;3465:38;:::i;:::-;3455:48;;3522:38;3556:2;3545:9;3541:18;3522:38;:::i;:::-;3512:48;;3579:38;3613:2;3602:9;3598:18;3579:38;:::i;:::-;3569:48;;3664:3;3653:9;3649:19;3636:33;3626:43;;3716:3;3705:9;3701:19;3688:33;3678:43;;3768:3;3757:9;3753:19;3740:33;3730:43;;3824:3;3813:9;3809:19;3796:33;3852:18;3844:6;3841:30;3838:50;;;3884:1;3881;3874:12;3838:50;3907:61;3960:7;3951:6;3940:9;3936:22;3907:61;:::i;:::-;3897:71;;;3121:853;;;;;;;;;;;:::o;3979:348::-;4063:6;4116:2;4104:9;4095:7;4091:23;4087:32;4084:52;;;4132:1;4129;4122:12;4084:52;4172:9;4159:23;4205:18;4197:6;4194:30;4191:50;;;4237:1;4234;4227:12;4191:50;4260:61;4313:7;4304:6;4293:9;4289:22;4260:61;:::i;4728:127::-;4789:10;4784:3;4780:20;4777:1;4770:31;4820:4;4817:1;4810:15;4844:4;4841:1;4834:15;4860:125;4900:4;4928:1;4925;4922:8;4919:34;;;4933:18;;:::i;:::-;-1:-1:-1;4970:9:10;;4860:125::o;4990:168::-;5030:7;5096:1;5092;5088:6;5084:14;5081:1;5078:21;5073:1;5066:9;5059:17;5055:45;5052:71;;;5103:18;;:::i;:::-;-1:-1:-1;5143:9:10;;4990:168::o;5163:217::-;5203:1;5229;5219:132;;5273:10;5268:3;5264:20;5261:1;5254:31;5308:4;5305:1;5298:15;5336:4;5333:1;5326:15;5219:132;-1:-1:-1;5365:9:10;;5163:217::o;5385:128::-;5425:3;5456:1;5452:6;5449:1;5446:13;5443:39;;;5462:18;;:::i;:::-;-1:-1:-1;5498:9:10;;5385:128::o;5771:355::-;5973:2;5955:21;;;6012:2;5992:18;;;5985:30;6051:33;6046:2;6031:18;;6024:61;6117:2;6102:18;;5771:355::o;6131:135::-;6170:3;-1:-1:-1;;6191:17:10;;6188:43;;;6211:18;;:::i;:::-;-1:-1:-1;6258:1:10;6247:13;;6131:135::o;7380:127::-;7441:10;7436:3;7432:20;7429:1;7422:31;7472:4;7469:1;7462:15;7496:4;7493:1;7486:15;10742:184;10812:6;10865:2;10853:9;10844:7;10840:23;10836:32;10833:52;;;10881:1;10878;10871:12;10833:52;-1:-1:-1;10904:16:10;;10742:184;-1:-1:-1;10742:184:10:o;10931:632::-;11102:2;11154:21;;;11224:13;;11127:18;;;11246:22;;;11073:4;;11102:2;11325:15;;;;11299:2;11284:18;;;11073:4;11368:169;11382:6;11379:1;11376:13;11368:169;;;11443:13;;11431:26;;11512:15;;;;11477:12;;;;11404:1;11397:9;11368:169;;;-1:-1:-1;11554:3:10;;10931:632;-1:-1:-1;;;;;;10931:632:10:o;13320:277::-;13387:6;13440:2;13428:9;13419:7;13415:23;13411:32;13408:52;;;13456:1;13453;13446:12;13408:52;13488:9;13482:16;13541:5;13534:13;13527:21;13520:5;13517:32;13507:60;;13563:1;13560;13553:12;14800:258;14872:1;14882:113;14896:6;14893:1;14890:13;14882:113;;;14972:11;;;14966:18;14953:11;;;14946:39;14918:2;14911:10;14882:113;;;15013:6;15010:1;15007:13;15004:48;;;-1:-1:-1;;15048:1:10;15030:16;;15023:27;14800:258::o;15063:274::-;15192:3;15230:6;15224:13;15246:53;15292:6;15287:3;15280:4;15272:6;15268:17;15246:53;:::i;:::-;15315:16;;;;;15063:274;-1:-1:-1;;15063:274:10:o;15700:383::-;15849:2;15838:9;15831:21;15812:4;15881:6;15875:13;15924:6;15919:2;15908:9;15904:18;15897:34;15940:66;15999:6;15994:2;15983:9;15979:18;15974:2;15966:6;15962:15;15940:66;:::i;:::-;16067:2;16046:15;-1:-1:-1;;16042:29:10;16027:45;;;;16074:2;16023:54;;15700:383;-1:-1:-1;;15700:383:10:o

Swarm Source

ipfs://480734935892176e2fe6a127bd9baf0aa134b6bab3d90bcea2fa61ef56bafee4

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.