ETH Price: $2,340.36 (+0.84%)

Contract

0xcCd05ACd3cEC7016E0EA2eF6F27A65b885344168
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Can Set Spon...206403342024-08-30 8:55:1111 days ago1725008111IN
0xcCd05ACd...885344168
0 ETH0.000080131.65959687
Set Can Set Spon...202475922024-07-06 12:53:5966 days ago1720270439IN
0xcCd05ACd...885344168
0 ETH0.000119122.467058
Set Can Set Spon...202475912024-07-06 12:53:4766 days ago1720270427IN
0xcCd05ACd...885344168
0 ETH0.000116152.40568462
Set Can Set Spon...202475902024-07-06 12:53:3566 days ago1720270415IN
0xcCd05ACd...885344168
0 ETH0.00011642.41071666
Set Can Set Spon...202475902024-07-06 12:53:3566 days ago1720270415IN
0xcCd05ACd...885344168
0 ETH0.00011642.41071666
Set Can Set Spon...202475892024-07-06 12:53:2366 days ago1720270403IN
0xcCd05ACd...885344168
0 ETH0.00011652.41282599
Set Can Set Spon...201649212024-06-24 23:48:4777 days ago1719272927IN
0xcCd05ACd...885344168
0 ETH0.000153183.17260892
Set Can Set Spon...182368132023-09-28 21:08:11347 days ago1695935291IN
0xcCd05ACd...885344168
0 ETH0.00043418.99275462
Owner Set Affiil...182339272023-09-28 11:26:47348 days ago1695900407IN
0xcCd05ACd...885344168
0 ETH0.000187657.09005136
Owner Set Affiil...182069492023-09-24 16:49:23351 days ago1695574163IN
0xcCd05ACd...885344168
0 ETH0.000343427.06713619
Set Can Set Spon...181867532023-09-21 20:53:11354 days ago1695329591IN
0xcCd05ACd...885344168
0 ETH0.0011432123.68825817
Owner Set Affiil...180662872023-09-04 23:05:23371 days ago1693868723IN
0xcCd05ACd...885344168
0 ETH0.0008574117.63979708
Owner Set Affiil...180662862023-09-04 23:05:11371 days ago1693868711IN
0xcCd05ACd...885344168
0 ETH0.0008922218.35592261
Owner Set Affiil...180662852023-09-04 23:04:59371 days ago1693868699IN
0xcCd05ACd...885344168
0 ETH0.0009098518.71866969
Owner Set Affiil...178805642023-08-09 23:17:35397 days ago1691623055IN
0xcCd05ACd...885344168
0 ETH0.000665613.69700293
Owner Set Affiil...178805622023-08-09 23:17:11397 days ago1691623031IN
0xcCd05ACd...885344168
0 ETH0.0006837614.06723746
Owner Set Affiil...178805612023-08-09 23:16:59397 days ago1691623019IN
0xcCd05ACd...885344168
0 ETH0.0007059214.52303816
Owner Set Affiil...178805592023-08-09 23:16:35397 days ago1691622995IN
0xcCd05ACd...885344168
0 ETH0.0006316112.9942428
Owner Set Affiil...178805582023-08-09 23:16:23397 days ago1691622983IN
0xcCd05ACd...885344168
0 ETH0.0006409613.18667372
Owner Set Affiil...178805572023-08-09 23:16:11397 days ago1691622971IN
0xcCd05ACd...885344168
0 ETH0.0006422313.21286142
Owner Set Affiil...178805562023-08-09 23:15:59397 days ago1691622959IN
0xcCd05ACd...885344168
0 ETH0.0006411913.19132237
Owner Set Affiil...178805542023-08-09 23:15:35397 days ago1691622935IN
0xcCd05ACd...885344168
0 ETH0.0006425413.2192794
Owner Set Affiil...178805512023-08-09 23:14:59397 days ago1691622899IN
0xcCd05ACd...885344168
0 ETH0.0006891714.17858907
Owner Set Affiil...178805502023-08-09 23:14:47397 days ago1691622887IN
0xcCd05ACd...885344168
0 ETH0.0007021814.44610008
Owner Set Affiil...178805242023-08-09 23:09:35397 days ago1691622575IN
0xcCd05ACd...885344168
0 ETH0.0007008814.41944822
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
YieldManager

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : YieldManager.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

interface IUniV2Pair {
    function getReserves() external view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast);
    function totalSupply() external view returns (uint);
    function token0() external view returns (address);
    function token1() external view returns (address);
}

interface ILockedStakingrewards {
    function balanceOf(address account) external view returns (uint256);
    function stakingToken() external view returns(address);
}

contract YieldManager is ReentrancyGuard {
    using SafeERC20 for IERC20;
    mapping(address => address) public affiliateLookup;
    mapping(address => address) public vestingLookup;

    event AffiliateSet(address indexed sponsor, address indexed client);
    event NewOwner(address owner);
    event NewCanSetSponsor(address canSet, bool status);
    event NewStaking(address staking);
    event NewLPStaking(address lpStaking);
    event NewYFlow(address yflow);
    event NewLPFactor(uint lpFactor);
    event VestingSet(address client, address vesting);

    // struct configStruct
    // val1 client:  withdrawal fee sponsor: % of fee
    struct configStruct {
        uint level;
        uint val1;
        uint val2;
        uint val3;
        uint val4;
    }

    configStruct[] public clientLevels;
    configStruct[] public sponsorLevels;

    address[] public stakingAddresses;
    address[] public lpStakingAddresses;

    address public owner;
    mapping(address => bool) public canSetSponsor;

    address public YFlowAddress;
    uint public lpFactor = 1;

    // only owner modifier
    modifier onlyOwner {
        _onlyOwner();
        _;
    }

    // only owner view
    function _onlyOwner() private view {
        require(msg.sender == owner, "Only the contract owner may perform this action");
    }

    constructor(address _YFlow) {
        owner = msg.sender;
        YFlowAddress = _YFlow;
        //set client levels initial
        clientLevels.push(
            configStruct({
                level: 0,
                val1: 0,
                // performance fee
                val2: 1500,
                // mgmt fee
                val3: 100,
                // mgmt fee fixed
                val4: 200
            })
        );
        clientLevels.push(
            configStruct({
                level: 500 * 10 ** 18,
                val1: 0,
                val2: 1250,
                val3: 100,
                val4: 200
            })
        );
        clientLevels.push(
            configStruct({
                level: 10000 * 10 ** 18,
                val1: 0,
                val2: 1000,
                val3: 100,
                val4: 200
            })
        );
        clientLevels.push(
            configStruct({
                level: 100000 * 10 ** 18,
                val1: 0,
                val2: 750,
                val3: 75,
                val4: 125
            })
        );
        clientLevels.push(
            configStruct({
                level: 1000000 * 10 ** 18,
                val1: 0,
                val2: 500,
                val3: 75,
                val4: 125
            })
        );

        //set sponsor levels initial
        sponsorLevels.push(
            configStruct({
                level: 0,
                val1: 0,
                val2: 0,
                val3: 0,
                val4: 0
            })
        );
        sponsorLevels.push(
            configStruct({
                level: 500 * 10 ** 18,
                val1: 1000,
                val2: 1500,
                val3: 0,
                val4: 0
            })
        );
        sponsorLevels.push(
            configStruct({
                level: 10000 * 10 ** 18,
                val1: 1500,
                val2: 2500,
                val3: 0,
                val4: 0
            })
        );
        sponsorLevels.push(
            configStruct({
                level: 100000 * 10 ** 18,
                val1: 2000,
                val2: 5000,
                val3: 0,
                val4: 0
            })
        );
        sponsorLevels.push(
            configStruct({
                level: 500000 * 10 ** 18,
                val1: 2500,
                val2: 7500,
                val3: 0,
                val4: 0
            })
        );
    }

    function setYflow(address _Yflow) public onlyOwner {
        YFlowAddress = _Yflow;
        emit NewYFlow(YFlowAddress);
    }

    function setLPFactor(uint _lpFactor) public onlyOwner {
        lpFactor = _lpFactor;
        emit NewLPFactor(lpFactor);
    }

    //updates client levels
    function setClientLevels(uint[] memory levels, uint[] memory val1s, uint[] memory val2s, uint[] memory val3s, uint[] memory val4s) public onlyOwner {
        require(levels.length == val1s.length, "length mismatch");
        require(val1s.length == val2s.length, "length mismatch");
        require(val2s.length == val3s.length, "length mismatch");
        require(val3s.length == val4s.length, "length mismatch");
        delete clientLevels;

        for (uint i=0; i<levels.length; i++) {
            clientLevels.push(
                configStruct({
                    level: levels[i],
                    val1: val1s[i],
                    val2: val2s[i],
                    val3: val3s[i],
                    val4: val4s[i]
            })
            );
        }
    }

    //updates client levels
    function setSponsorLevels(uint[] memory levels, uint[] memory val1s, uint[] memory val2s, uint[] memory val3s, uint[] memory val4s) public onlyOwner {
        require(levels.length == val1s.length, "length mismatch");
        require(val1s.length == val2s.length, "length mismatch");
        require(val2s.length == val3s.length, "length mismatch");
        require(val3s.length == val4s.length, "length mismatch");
        delete sponsorLevels;

        for (uint i=0; i<levels.length; i++) {
            sponsorLevels.push(
                configStruct({
                    level: levels[i],
                    val1: val1s[i],
                    val2: val2s[i],
                    val3: val3s[i],
                    val4: val4s[i]
            })
            );
        }
    }

    // returns sponsor
    function getAffiliate(address client) public view returns (address) {
        return affiliateLookup[client];
    }

    function setAffiliate(address client, address sponsor) public {
        require (canSetSponsor[msg.sender] == true, "not allowed to set sponsor");
        require(affiliateLookup[client] == address(0), "sponsor already set");
        affiliateLookup[client] = sponsor;
        emit AffiliateSet(sponsor, client);
    }

    function ownerSetAffiiliate(address client, address sponsor) public onlyOwner {
        affiliateLookup[client] = sponsor;
        emit AffiliateSet(sponsor, client);
    }

    function ownerSetVestingAddress(address client, address vesting) public onlyOwner {
        vestingLookup[client] = vesting;
        emit VestingSet(client, vesting);
    }

    function setStakingAddress(address[] memory stakingContract) public onlyOwner {
        delete stakingAddresses;

        for (uint i=0; i<stakingContract.length; i++) {
            stakingAddresses.push(stakingContract[i]);
            emit NewStaking(stakingContract[i]);
        }
    }

    function setLPStakingAddress(address[] memory stakingContract) public onlyOwner {
        delete lpStakingAddresses;
        for (uint i=0; i<stakingContract.length; i++) {
            lpStakingAddresses.push(stakingContract[i]);
            emit NewLPStaking(stakingContract[i]);
        }
    }

    function calcLPTokenBonus(uint liquidity, address lpAddress) public view returns (uint) {
        address _token0 = IUniV2Pair(lpAddress).token0();                                // gas savings
        address _token1 = IUniV2Pair(lpAddress).token1();                                // gas savings
        uint balance0 = IERC20(_token0).balanceOf(lpAddress);
        uint balance1 = IERC20(_token1).balanceOf(lpAddress);

        uint _totalSupply = IUniV2Pair(lpAddress).totalSupply(); // gas savings, must be defined here since totalSupply can update in _mintFee
        uint amount0 = (liquidity * balance0) / _totalSupply; // using balances ensures pro-rata distribution
        uint amount1 = (liquidity * balance1) / _totalSupply; // using balances ensures pro-rata distribution

        if ( _token0 == YFlowAddress) {
            return amount0 * lpFactor;
        }

        return amount1 * lpFactor;
    }

    function getUserStakedAmount(address user) public view returns (uint) {
        uint stakedTokens;

        // check normal staking
        for (uint i = 0; i < stakingAddresses.length; i++) {
            uint tempStaked = ILockedStakingrewards(stakingAddresses[i])
                .balanceOf(user);
            stakedTokens += tempStaked;

            // check if user is in vesting
                if (vestingLookup[user] != (address(0))) {
                    uint tempStakedVester = ILockedStakingrewards(stakingAddresses[i])
                        .balanceOf(vestingLookup[user]);
                    stakedTokens += tempStakedVester;
            }
        }

        // check lp staking
        for (uint i = 0; i < lpStakingAddresses.length; i++) {
            uint tempStaked = ILockedStakingrewards(lpStakingAddresses[i])
                .balanceOf(user);

            address lpAddress = ILockedStakingrewards(lpStakingAddresses[i]).stakingToken();
            uint userCalc = calcLPTokenBonus(tempStaked,lpAddress);
            stakedTokens += userCalc;
        }

        return stakedTokens;
    }

    function getUserFactors(
        address user,
        uint typer
    ) public view returns (uint, uint, uint, uint) {
        uint stakedtokens = getUserStakedAmount(user);

        // if its for client
        if (typer == 0) {
            // check normal staking
            if (stakedtokens < clientLevels[1].level) {
                return (
                    clientLevels[0].val1,
                    clientLevels[0].val2,
                    clientLevels[0].val3,
                    clientLevels[0].val4
                );
            } else if (
                stakedtokens >= clientLevels[1].level &&
                stakedtokens < clientLevels[2].level
            ) {
                return (
                    clientLevels[1].val1,
                    clientLevels[1].val2,
                    clientLevels[1].val3,
                    clientLevels[1].val4
                );
            } else if (
                stakedtokens >= clientLevels[2].level &&
                stakedtokens < clientLevels[3].level
            ) {
                return (
                    clientLevels[2].val1,
                    clientLevels[2].val2,
                    clientLevels[2].val3,
                    clientLevels[2].val4
                );
            } else if (
                stakedtokens >= clientLevels[3].level &&
                stakedtokens < clientLevels[4].level
            ) {
                return (
                    clientLevels[3].val1,
                    clientLevels[3].val2,
                    clientLevels[3].val3,
                    clientLevels[3].val4
                );
            } else {
                return (
                    clientLevels[4].val1,
                    clientLevels[4].val2,
                    clientLevels[4].val3,
                    clientLevels[4].val4
                );
            }
        }

        // else we calculate sponsor
        if (stakedtokens < sponsorLevels[1].level) {
            return (
                sponsorLevels[0].val1,
                sponsorLevels[0].val2,
                sponsorLevels[0].val3,
                sponsorLevels[0].val4
            );
        } else if (
            stakedtokens >= sponsorLevels[1].level &&
            stakedtokens < sponsorLevels[2].level
        ) {
            return (
                sponsorLevels[1].val1,
                sponsorLevels[1].val2,
                sponsorLevels[1].val3,
                sponsorLevels[1].val4
            );
        } else if (
            stakedtokens >= sponsorLevels[2].level &&
            stakedtokens < sponsorLevels[3].level
        ) {
            return (
                sponsorLevels[2].val1,
                sponsorLevels[2].val2,
                sponsorLevels[2].val3,
                sponsorLevels[2].val4
            );
        } else if (
            stakedtokens >= sponsorLevels[3].level &&
            stakedtokens < sponsorLevels[4].level
        ) {
            return (
                sponsorLevels[3].val1,
                sponsorLevels[3].val2,
                sponsorLevels[3].val3,
                sponsorLevels[3].val4
            );
        } else {
            return (
                sponsorLevels[4].val1,
                sponsorLevels[4].val2,
                sponsorLevels[4].val3,
                sponsorLevels[4].val4
            );
        }
    }

    function newOwner(address newOwner_) external {
        require(msg.sender == owner, "Only factory owner");
        require(newOwner_ != address(0), "No zero address for newOwner");

        owner = newOwner_;
        emit NewOwner(owner);
    }

    function setCanSetSponsor(address factoryContract, bool val) external onlyOwner {
        canSetSponsor[factoryContract] = val;
        emit NewCanSetSponsor(factoryContract, val);
    }
}

File 2 of 6 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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;
    }
}

File 3 of 6 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-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 4 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 5 of 6 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-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;

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

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

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

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

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

    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");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_YFlow","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sponsor","type":"address"},{"indexed":true,"internalType":"address","name":"client","type":"address"}],"name":"AffiliateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"canSet","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"NewCanSetSponsor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"lpFactor","type":"uint256"}],"name":"NewLPFactor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"lpStaking","type":"address"}],"name":"NewLPStaking","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"NewOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"staking","type":"address"}],"name":"NewStaking","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"yflow","type":"address"}],"name":"NewYFlow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"client","type":"address"},{"indexed":false,"internalType":"address","name":"vesting","type":"address"}],"name":"VestingSet","type":"event"},{"inputs":[],"name":"YFlowAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"affiliateLookup","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"address","name":"lpAddress","type":"address"}],"name":"calcLPTokenBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"canSetSponsor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"clientLevels","outputs":[{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"val1","type":"uint256"},{"internalType":"uint256","name":"val2","type":"uint256"},{"internalType":"uint256","name":"val3","type":"uint256"},{"internalType":"uint256","name":"val4","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"client","type":"address"}],"name":"getAffiliate","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"typer","type":"uint256"}],"name":"getUserFactors","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lpStakingAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner_","type":"address"}],"name":"newOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"client","type":"address"},{"internalType":"address","name":"sponsor","type":"address"}],"name":"ownerSetAffiiliate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"client","type":"address"},{"internalType":"address","name":"vesting","type":"address"}],"name":"ownerSetVestingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"client","type":"address"},{"internalType":"address","name":"sponsor","type":"address"}],"name":"setAffiliate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"factoryContract","type":"address"},{"internalType":"bool","name":"val","type":"bool"}],"name":"setCanSetSponsor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"levels","type":"uint256[]"},{"internalType":"uint256[]","name":"val1s","type":"uint256[]"},{"internalType":"uint256[]","name":"val2s","type":"uint256[]"},{"internalType":"uint256[]","name":"val3s","type":"uint256[]"},{"internalType":"uint256[]","name":"val4s","type":"uint256[]"}],"name":"setClientLevels","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lpFactor","type":"uint256"}],"name":"setLPFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"stakingContract","type":"address[]"}],"name":"setLPStakingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"levels","type":"uint256[]"},{"internalType":"uint256[]","name":"val1s","type":"uint256[]"},{"internalType":"uint256[]","name":"val2s","type":"uint256[]"},{"internalType":"uint256[]","name":"val3s","type":"uint256[]"},{"internalType":"uint256[]","name":"val4s","type":"uint256[]"}],"name":"setSponsorLevels","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"stakingContract","type":"address[]"}],"name":"setStakingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_Yflow","type":"address"}],"name":"setYflow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"sponsorLevels","outputs":[{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"val1","type":"uint256"},{"internalType":"uint256","name":"val2","type":"uint256"},{"internalType":"uint256","name":"val3","type":"uint256"},{"internalType":"uint256","name":"val4","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vestingLookup","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526001600a553480156200001657600080fd5b5060405162003a7938038062003a7983398181016040528101906200003c9190620006f8565b600160008190555033600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060036040518060a0016040528060008152602001600081526020016105dc81526020016064815260200160c881525090806001815401808255809150506001900390600052602060002090600502016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155505060036040518060a00160405280681b1ae4d6e2ef5000008152602001600081526020016104e281526020016064815260200160c881525090806001815401808255809150506001900390600052602060002090600502016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155505060036040518060a0016040528069021e19e0c9bab24000008152602001600081526020016103e881526020016064815260200160c881525090806001815401808255809150506001900390600052602060002090600502016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155505060036040518060a0016040528069152d02c7e14af68000008152602001600081526020016102ee8152602001604b8152602001607d81525090806001815401808255809150506001900390600052602060002090600502016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155505060036040518060a0016040528069d3c21bcecceda10000008152602001600081526020016101f48152602001604b8152602001607d81525090806001815401808255809150506001900390600052602060002090600502016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155505060046040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090806001815401808255809150506001900390600052602060002090600502016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155505060046040518060a00160405280681b1ae4d6e2ef50000081526020016103e881526020016105dc815260200160008152602001600081525090806001815401808255809150506001900390600052602060002090600502016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155505060046040518060a0016040528069021e19e0c9bab240000081526020016105dc81526020016109c4815260200160008152602001600081525090806001815401808255809150506001900390600052602060002090600502016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155505060046040518060a0016040528069152d02c7e14af680000081526020016107d08152602001611388815260200160008152602001600081525090806001815401808255809150506001900390600052602060002090600502016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155505060046040518060a001604052806969e10de76676d080000081526020016109c48152602001611d4c8152602001600081526020016000815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030155608082015181600401555050506200072a565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620006c08262000693565b9050919050565b620006d281620006b3565b8114620006de57600080fd5b50565b600081519050620006f281620006c7565b92915050565b6000602082840312156200071157620007106200068e565b5b60006200072184828501620006e1565b91505092915050565b61333f806200073a6000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806386516e13116100de578063a2278b5711610097578063bc2eec1411610071578063bc2eec1414610499578063c63ff1b8146104b5578063d569597a146104d1578063ea64ae8a1461050557610173565b8063a2278b571461041d578063bc019eed1461044d578063bc2cb99d1461047d57610173565b806386516e131461031e5780638b3ca6071461034e5780638da5cb5b1461036c5780639311518d1461038a57806394465b21146103ba57806399e289c4146103ea57610173565b80634f62723b116101305780634f62723b1461026257806350fdfb0b1461027e57806353c0aee31461029a5780637352e4b8146102b6578063844085d1146102d2578063859524541461030257610173565b8063035c6972146101785780630887bb8a146101a85780630b86be22146101dc578063325d21ae1461020c578063367c5a391461022a5780634320226f14610246575b600080fd5b610192600480360381019061018d91906127ae565b610521565b60405161019f91906127ea565b60405180910390f35b6101c260048036038101906101bd919061283b565b610554565b6040516101d3959493929190612877565b60405180910390f35b6101f660048036038101906101f191906127ae565b61059a565b60405161020391906128e5565b60405180910390f35b6102146105ba565b60405161022191906127ea565b60405180910390f35b610244600480360381019061023f9190612a59565b6105e0565b005b610260600480360381019061025b9190612b60565b610835565b005b61027c60048036038101906102779190612bcc565b610919565b005b6102986004803603810190610293919061283b565b6109b5565b005b6102b460048036038101906102af9190612ccf565b610a00565b005b6102d060048036038101906102cb9190612b60565b610b07565b005b6102ec60048036038101906102e791906127ae565b610d44565b6040516102f991906127ea565b60405180910390f35b61031c600480360381019061031791906127ae565b610d77565b005b6103386004803603810190610333919061283b565b610f13565b60405161034591906127ea565b60405180910390f35b610356610f52565b6040516103639190612d18565b60405180910390f35b610374610f58565b60405161038191906127ea565b60405180910390f35b6103a4600480360381019061039f919061283b565b610f7e565b6040516103b191906127ea565b60405180910390f35b6103d460048036038101906103cf91906127ae565b610fbd565b6040516103e19190612d18565b60405180910390f35b61040460048036038101906103ff9190612d33565b611426565b6040516104149493929190612d73565b60405180910390f35b61043760048036038101906104329190612db8565b611d7b565b6040516104449190612d18565b60405180910390f35b610467600480360381019061046291906127ae565b612096565b60405161047491906127ea565b60405180910390f35b610497600480360381019061049291906127ae565b6120ff565b005b6104b360048036038101906104ae9190612a59565b6121a4565b005b6104cf60048036038101906104ca9190612b60565b6123f9565b005b6104eb60048036038101906104e6919061283b565b6124bc565b6040516104fc959493929190612877565b60405180910390f35b61051f600480360381019061051a9190612ccf565b612502565b005b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6004818154811061056457600080fd5b90600052602060002090600502016000915090508060000154908060010154908060020154908060030154908060040154905085565b60086020528060005260406000206000915054906101000a900460ff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6105e8612609565b835185511461062c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062390612e55565b60405180910390fd5b8251845114610670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066790612e55565b60405180910390fd5b81518351146106b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ab90612e55565b60405180910390fd5b80518251146106f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ef90612e55565b60405180910390fd5b60036000610706919061269b565b60005b855181101561082d5760036040518060a0016040528088848151811061073257610731612e75565b5b6020026020010151815260200187848151811061075257610751612e75565b5b6020026020010151815260200186848151811061077257610771612e75565b5b6020026020010151815260200185848151811061079257610791612e75565b5b602002602001015181526020018484815181106107b2576107b1612e75565b5b6020026020010151815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030155608082015181600401555050808061082590612ed3565b915050610709565b505050505050565b61083d612609565b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f2ed9076138ae3eae90b938672a5f6a8a6c8344fcb761da922e964686dc4c6acf60405160405180910390a35050565b610921612609565b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fb0b06a1cfa6047b5b67040060d3b85800bcbfc749cb0946b6f3798c5b14cf8f782826040516109a9929190612f1b565b60405180910390a15050565b6109bd612609565b80600a819055507f9d7d5348574fc5c7ffedc299cd998b80c5ae1783ceed763ed5d87e72672faf6c600a546040516109f59190612d18565b60405180910390a150565b610a08612609565b60056000610a1691906126bf565b60005b8151811015610b03576005828281518110610a3757610a36612e75565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f2c6713130292411e5e1bab429ca8ac9d5028b9e81f3a25fdadd4532bc4f875d8828281518110610ad357610ad2612e75565b5b6020026020010151604051610ae891906127ea565b60405180910390a18080610afb90612ed3565b915050610a19565b5050565b60011515600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9190612f90565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f90612ffc565b60405180910390fd5b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f2ed9076138ae3eae90b938672a5f6a8a6c8344fcb761da922e964686dc4c6acf60405160405180910390a35050565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfe90613068565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6d906130d4565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3edd90e7770f06fafde38004653b33870066c33bfc923ff6102acd601f85dfbc600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610f0891906127ea565b60405180910390a150565b60058181548110610f2357600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60068181548110610f8e57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060005b60058054905081101561126c57600060058281548110610fe657610fe5612e75565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b815260040161104991906127ea565b602060405180830381865afa158015611066573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108a9190613109565b905080836110989190613136565b9250600073ffffffffffffffffffffffffffffffffffffffff16600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112585760006005838154811061114357611142612e75565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b815260040161120591906127ea565b602060405180830381865afa158015611222573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112469190613109565b905080846112549190613136565b9350505b50808061126490612ed3565b915050610fc3565b5060005b60068054905081101561141c5760006006828154811061129357611292612e75565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b81526004016112f691906127ea565b602060405180830381865afa158015611313573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113379190613109565b905060006006838154811061134f5761134e612e75565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166372f702f36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e8919061317f565b905060006113f68383611d7b565b905080856114049190613136565b9450505050808061141490612ed3565b915050611270565b5080915050919050565b600080600080600061143787610fbd565b9050600086036118db57600360018154811061145657611455612e75565b5b90600052602060002090600502016000015481101561151957600360008154811061148457611483612e75565b5b90600052602060002090600502016001015460036000815481106114ab576114aa612e75565b5b90600052602060002090600502016002015460036000815481106114d2576114d1612e75565b5b90600052602060002090600502016003015460036000815481106114f9576114f8612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b600360018154811061152e5761152d612e75565b5b90600052602060002090600502016000015481101580156115745750600360028154811061155f5761155e612e75565b5b90600052602060002090600502016000015481105b1561162357600360018154811061158e5761158d612e75565b5b90600052602060002090600502016001015460036001815481106115b5576115b4612e75565b5b90600052602060002090600502016002015460036001815481106115dc576115db612e75565b5b906000526020600020906005020160030154600360018154811061160357611602612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b600360028154811061163857611637612e75565b5b906000526020600020906005020160000154811015801561167d57506003808154811061166857611667612e75565b5b90600052602060002090600502016000015481105b1561172c57600360028154811061169757611696612e75565b5b90600052602060002090600502016001015460036002815481106116be576116bd612e75565b5b90600052602060002090600502016002015460036002815481106116e5576116e4612e75565b5b906000526020600020906005020160030154600360028154811061170c5761170b612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b600380815481106117405761173f612e75565b5b90600052602060002090600502016000015481101580156117865750600360048154811061177157611770612e75565b5b90600052602060002090600502016000015481105b15611831576003808154811061179f5761179e612e75565b5b906000526020600020906005020160010154600380815481106117c5576117c4612e75565b5b906000526020600020906005020160020154600380815481106117eb576117ea612e75565b5b9060005260206000209060050201600301546003808154811061181157611810612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b600360048154811061184657611845612e75565b5b906000526020600020906005020160010154600360048154811061186d5761186c612e75565b5b906000526020600020906005020160020154600360048154811061189457611893612e75565b5b90600052602060002090600502016003015460036004815481106118bb576118ba612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b60046001815481106118f0576118ef612e75565b5b9060005260206000209060050201600001548110156119b357600460008154811061191e5761191d612e75565b5b906000526020600020906005020160010154600460008154811061194557611944612e75565b5b906000526020600020906005020160020154600460008154811061196c5761196b612e75565b5b906000526020600020906005020160030154600460008154811061199357611992612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b60046001815481106119c8576119c7612e75565b5b9060005260206000209060050201600001548110158015611a0e575060046002815481106119f9576119f8612e75565b5b90600052602060002090600502016000015481105b15611abd576004600181548110611a2857611a27612e75565b5b9060005260206000209060050201600101546004600181548110611a4f57611a4e612e75565b5b9060005260206000209060050201600201546004600181548110611a7657611a75612e75565b5b9060005260206000209060050201600301546004600181548110611a9d57611a9c612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b6004600281548110611ad257611ad1612e75565b5b9060005260206000209060050201600001548110158015611b1857506004600381548110611b0357611b02612e75565b5b90600052602060002090600502016000015481105b15611bc7576004600281548110611b3257611b31612e75565b5b9060005260206000209060050201600101546004600281548110611b5957611b58612e75565b5b9060005260206000209060050201600201546004600281548110611b8057611b7f612e75565b5b9060005260206000209060050201600301546004600281548110611ba757611ba6612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b6004600381548110611bdc57611bdb612e75565b5b9060005260206000209060050201600001548110158015611c21575060048081548110611c0c57611c0b612e75565b5b90600052602060002090600502016000015481105b15611cd0576004600381548110611c3b57611c3a612e75565b5b9060005260206000209060050201600101546004600381548110611c6257611c61612e75565b5b9060005260206000209060050201600201546004600381548110611c8957611c88612e75565b5b9060005260206000209060050201600301546004600381548110611cb057611caf612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b60048081548110611ce457611ce3612e75565b5b90600052602060002090600502016001015460048081548110611d0a57611d09612e75565b5b90600052602060002090600502016002015460048081548110611d3057611d2f612e75565b5b90600052602060002090600502016003015460048081548110611d5657611d55612e75565b5b9060005260206000209060050201600401549450945094509450505b92959194509250565b6000808273ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611dc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ded919061317f565b905060008373ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e60919061317f565b905060008273ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401611e9d91906127ea565b602060405180830381865afa158015611eba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ede9190613109565b905060008273ffffffffffffffffffffffffffffffffffffffff166370a08231876040518263ffffffff1660e01b8152600401611f1b91906127ea565b602060405180830381865afa158015611f38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5c9190613109565b905060008673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fcf9190613109565b9050600081848a611fe091906131ac565b611fea919061321d565b9050600082848b611ffb91906131ac565b612005919061321d565b9050600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff160361207857600a548261206a91906131ac565b975050505050505050612090565b600a548161208691906131ac565b9750505050505050505b92915050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b612107612609565b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f9149ead865838873730b7606c2c757affb87a6588ee0990c7ed1e963d7216181600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161219991906127ea565b60405180910390a150565b6121ac612609565b83518551146121f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e790612e55565b60405180910390fd5b8251845114612234576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222b90612e55565b60405180910390fd5b8151835114612278576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226f90612e55565b60405180910390fd5b80518251146122bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b390612e55565b60405180910390fd5b600460006122ca919061269b565b60005b85518110156123f15760046040518060a001604052808884815181106122f6576122f5612e75565b5b6020026020010151815260200187848151811061231657612315612e75565b5b6020026020010151815260200186848151811061233657612335612e75565b5b6020026020010151815260200185848151811061235657612355612e75565b5b6020026020010151815260200184848151811061237657612375612e75565b5b602002602001015181525090806001815401808255809150506001900390600052602060002090600502016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155505080806123e990612ed3565b9150506122cd565b505050505050565b612401612609565b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f2fd8b46b063fcff14cb2502aa1d0dae2d2ad7153d477ccc3aa0532af8890315c82826040516124b092919061324e565b60405180910390a15050565b600381815481106124cc57600080fd5b90600052602060002090600502016000915090508060000154908060010154908060020154908060030154908060040154905085565b61250a612609565b6006600061251891906126bf565b60005b815181101561260557600682828151811061253957612538612e75565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe5c1e32008929e1c995d225c22ec62feb8971a75982d65bd58870b2dc51f25fc8282815181106125d5576125d4612e75565b5b60200260200101516040516125ea91906127ea565b60405180910390a180806125fd90612ed3565b91505061251b565b5050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612699576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612690906132e9565b60405180910390fd5b565b50805460008255600502906000526020600020908101906126bc91906126e0565b50565b50805460008255906000526020600020908101906126dd919061271f565b50565b5b8082111561271b576000808201600090556001820160009055600282016000905560038201600090556004820160009055506005016126e1565b5090565b5b80821115612738576000816000905550600101612720565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061277b82612750565b9050919050565b61278b81612770565b811461279657600080fd5b50565b6000813590506127a881612782565b92915050565b6000602082840312156127c4576127c3612746565b5b60006127d284828501612799565b91505092915050565b6127e481612770565b82525050565b60006020820190506127ff60008301846127db565b92915050565b6000819050919050565b61281881612805565b811461282357600080fd5b50565b6000813590506128358161280f565b92915050565b60006020828403121561285157612850612746565b5b600061285f84828501612826565b91505092915050565b61287181612805565b82525050565b600060a08201905061288c6000830188612868565b6128996020830187612868565b6128a66040830186612868565b6128b36060830185612868565b6128c06080830184612868565b9695505050505050565b60008115159050919050565b6128df816128ca565b82525050565b60006020820190506128fa60008301846128d6565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61294e82612905565b810181811067ffffffffffffffff8211171561296d5761296c612916565b5b80604052505050565b600061298061273c565b905061298c8282612945565b919050565b600067ffffffffffffffff8211156129ac576129ab612916565b5b602082029050602081019050919050565b600080fd5b60006129d56129d084612991565b612976565b905080838252602082019050602084028301858111156129f8576129f76129bd565b5b835b81811015612a215780612a0d8882612826565b8452602084019350506020810190506129fa565b5050509392505050565b600082601f830112612a4057612a3f612900565b5b8135612a508482602086016129c2565b91505092915050565b600080600080600060a08688031215612a7557612a74612746565b5b600086013567ffffffffffffffff811115612a9357612a9261274b565b5b612a9f88828901612a2b565b955050602086013567ffffffffffffffff811115612ac057612abf61274b565b5b612acc88828901612a2b565b945050604086013567ffffffffffffffff811115612aed57612aec61274b565b5b612af988828901612a2b565b935050606086013567ffffffffffffffff811115612b1a57612b1961274b565b5b612b2688828901612a2b565b925050608086013567ffffffffffffffff811115612b4757612b4661274b565b5b612b5388828901612a2b565b9150509295509295909350565b60008060408385031215612b7757612b76612746565b5b6000612b8585828601612799565b9250506020612b9685828601612799565b9150509250929050565b612ba9816128ca565b8114612bb457600080fd5b50565b600081359050612bc681612ba0565b92915050565b60008060408385031215612be357612be2612746565b5b6000612bf185828601612799565b9250506020612c0285828601612bb7565b9150509250929050565b600067ffffffffffffffff821115612c2757612c26612916565b5b602082029050602081019050919050565b6000612c4b612c4684612c0c565b612976565b90508083825260208201905060208402830185811115612c6e57612c6d6129bd565b5b835b81811015612c975780612c838882612799565b845260208401935050602081019050612c70565b5050509392505050565b600082601f830112612cb657612cb5612900565b5b8135612cc6848260208601612c38565b91505092915050565b600060208284031215612ce557612ce4612746565b5b600082013567ffffffffffffffff811115612d0357612d0261274b565b5b612d0f84828501612ca1565b91505092915050565b6000602082019050612d2d6000830184612868565b92915050565b60008060408385031215612d4a57612d49612746565b5b6000612d5885828601612799565b9250506020612d6985828601612826565b9150509250929050565b6000608082019050612d886000830187612868565b612d956020830186612868565b612da26040830185612868565b612daf6060830184612868565b95945050505050565b60008060408385031215612dcf57612dce612746565b5b6000612ddd85828601612826565b9250506020612dee85828601612799565b9150509250929050565b600082825260208201905092915050565b7f6c656e677468206d69736d617463680000000000000000000000000000000000600082015250565b6000612e3f600f83612df8565b9150612e4a82612e09565b602082019050919050565b60006020820190508181036000830152612e6e81612e32565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612ede82612805565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612f1057612f0f612ea4565b5b600182019050919050565b6000604082019050612f3060008301856127db565b612f3d60208301846128d6565b9392505050565b7f6e6f7420616c6c6f77656420746f207365742073706f6e736f72000000000000600082015250565b6000612f7a601a83612df8565b9150612f8582612f44565b602082019050919050565b60006020820190508181036000830152612fa981612f6d565b9050919050565b7f73706f6e736f7220616c72656164792073657400000000000000000000000000600082015250565b6000612fe6601383612df8565b9150612ff182612fb0565b602082019050919050565b6000602082019050818103600083015261301581612fd9565b9050919050565b7f4f6e6c7920666163746f7279206f776e65720000000000000000000000000000600082015250565b6000613052601283612df8565b915061305d8261301c565b602082019050919050565b6000602082019050818103600083015261308181613045565b9050919050565b7f4e6f207a65726f206164647265737320666f72206e65774f776e657200000000600082015250565b60006130be601c83612df8565b91506130c982613088565b602082019050919050565b600060208201905081810360008301526130ed816130b1565b9050919050565b6000815190506131038161280f565b92915050565b60006020828403121561311f5761311e612746565b5b600061312d848285016130f4565b91505092915050565b600061314182612805565b915061314c83612805565b925082820190508082111561316457613163612ea4565b5b92915050565b60008151905061317981612782565b92915050565b60006020828403121561319557613194612746565b5b60006131a38482850161316a565b91505092915050565b60006131b782612805565b91506131c283612805565b92508282026131d081612805565b915082820484148315176131e7576131e6612ea4565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061322882612805565b915061323383612805565b925082613243576132426131ee565b5b828204905092915050565b600060408201905061326360008301856127db565b61327060208301846127db565b9392505050565b7f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660008201527f6f726d207468697320616374696f6e0000000000000000000000000000000000602082015250565b60006132d3602f83612df8565b91506132de82613277565b604082019050919050565b60006020820190508181036000830152613302816132c6565b905091905056fea2646970667358221220bc138cab911a09d5ae62730f4bf58e6a1767967111791882712b0ccbfc4a846264736f6c634300081100330000000000000000000000004d21351469a6728043cacf89ecb4d1e8ec20a70c

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101735760003560e01c806386516e13116100de578063a2278b5711610097578063bc2eec1411610071578063bc2eec1414610499578063c63ff1b8146104b5578063d569597a146104d1578063ea64ae8a1461050557610173565b8063a2278b571461041d578063bc019eed1461044d578063bc2cb99d1461047d57610173565b806386516e131461031e5780638b3ca6071461034e5780638da5cb5b1461036c5780639311518d1461038a57806394465b21146103ba57806399e289c4146103ea57610173565b80634f62723b116101305780634f62723b1461026257806350fdfb0b1461027e57806353c0aee31461029a5780637352e4b8146102b6578063844085d1146102d2578063859524541461030257610173565b8063035c6972146101785780630887bb8a146101a85780630b86be22146101dc578063325d21ae1461020c578063367c5a391461022a5780634320226f14610246575b600080fd5b610192600480360381019061018d91906127ae565b610521565b60405161019f91906127ea565b60405180910390f35b6101c260048036038101906101bd919061283b565b610554565b6040516101d3959493929190612877565b60405180910390f35b6101f660048036038101906101f191906127ae565b61059a565b60405161020391906128e5565b60405180910390f35b6102146105ba565b60405161022191906127ea565b60405180910390f35b610244600480360381019061023f9190612a59565b6105e0565b005b610260600480360381019061025b9190612b60565b610835565b005b61027c60048036038101906102779190612bcc565b610919565b005b6102986004803603810190610293919061283b565b6109b5565b005b6102b460048036038101906102af9190612ccf565b610a00565b005b6102d060048036038101906102cb9190612b60565b610b07565b005b6102ec60048036038101906102e791906127ae565b610d44565b6040516102f991906127ea565b60405180910390f35b61031c600480360381019061031791906127ae565b610d77565b005b6103386004803603810190610333919061283b565b610f13565b60405161034591906127ea565b60405180910390f35b610356610f52565b6040516103639190612d18565b60405180910390f35b610374610f58565b60405161038191906127ea565b60405180910390f35b6103a4600480360381019061039f919061283b565b610f7e565b6040516103b191906127ea565b60405180910390f35b6103d460048036038101906103cf91906127ae565b610fbd565b6040516103e19190612d18565b60405180910390f35b61040460048036038101906103ff9190612d33565b611426565b6040516104149493929190612d73565b60405180910390f35b61043760048036038101906104329190612db8565b611d7b565b6040516104449190612d18565b60405180910390f35b610467600480360381019061046291906127ae565b612096565b60405161047491906127ea565b60405180910390f35b610497600480360381019061049291906127ae565b6120ff565b005b6104b360048036038101906104ae9190612a59565b6121a4565b005b6104cf60048036038101906104ca9190612b60565b6123f9565b005b6104eb60048036038101906104e6919061283b565b6124bc565b6040516104fc959493929190612877565b60405180910390f35b61051f600480360381019061051a9190612ccf565b612502565b005b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6004818154811061056457600080fd5b90600052602060002090600502016000915090508060000154908060010154908060020154908060030154908060040154905085565b60086020528060005260406000206000915054906101000a900460ff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6105e8612609565b835185511461062c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062390612e55565b60405180910390fd5b8251845114610670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066790612e55565b60405180910390fd5b81518351146106b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ab90612e55565b60405180910390fd5b80518251146106f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ef90612e55565b60405180910390fd5b60036000610706919061269b565b60005b855181101561082d5760036040518060a0016040528088848151811061073257610731612e75565b5b6020026020010151815260200187848151811061075257610751612e75565b5b6020026020010151815260200186848151811061077257610771612e75565b5b6020026020010151815260200185848151811061079257610791612e75565b5b602002602001015181526020018484815181106107b2576107b1612e75565b5b6020026020010151815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030155608082015181600401555050808061082590612ed3565b915050610709565b505050505050565b61083d612609565b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f2ed9076138ae3eae90b938672a5f6a8a6c8344fcb761da922e964686dc4c6acf60405160405180910390a35050565b610921612609565b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fb0b06a1cfa6047b5b67040060d3b85800bcbfc749cb0946b6f3798c5b14cf8f782826040516109a9929190612f1b565b60405180910390a15050565b6109bd612609565b80600a819055507f9d7d5348574fc5c7ffedc299cd998b80c5ae1783ceed763ed5d87e72672faf6c600a546040516109f59190612d18565b60405180910390a150565b610a08612609565b60056000610a1691906126bf565b60005b8151811015610b03576005828281518110610a3757610a36612e75565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f2c6713130292411e5e1bab429ca8ac9d5028b9e81f3a25fdadd4532bc4f875d8828281518110610ad357610ad2612e75565b5b6020026020010151604051610ae891906127ea565b60405180910390a18080610afb90612ed3565b915050610a19565b5050565b60011515600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9190612f90565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f90612ffc565b60405180910390fd5b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f2ed9076138ae3eae90b938672a5f6a8a6c8344fcb761da922e964686dc4c6acf60405160405180910390a35050565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfe90613068565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6d906130d4565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3edd90e7770f06fafde38004653b33870066c33bfc923ff6102acd601f85dfbc600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610f0891906127ea565b60405180910390a150565b60058181548110610f2357600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60068181548110610f8e57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060005b60058054905081101561126c57600060058281548110610fe657610fe5612e75565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b815260040161104991906127ea565b602060405180830381865afa158015611066573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108a9190613109565b905080836110989190613136565b9250600073ffffffffffffffffffffffffffffffffffffffff16600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112585760006005838154811061114357611142612e75565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b815260040161120591906127ea565b602060405180830381865afa158015611222573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112469190613109565b905080846112549190613136565b9350505b50808061126490612ed3565b915050610fc3565b5060005b60068054905081101561141c5760006006828154811061129357611292612e75565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b81526004016112f691906127ea565b602060405180830381865afa158015611313573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113379190613109565b905060006006838154811061134f5761134e612e75565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166372f702f36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e8919061317f565b905060006113f68383611d7b565b905080856114049190613136565b9450505050808061141490612ed3565b915050611270565b5080915050919050565b600080600080600061143787610fbd565b9050600086036118db57600360018154811061145657611455612e75565b5b90600052602060002090600502016000015481101561151957600360008154811061148457611483612e75565b5b90600052602060002090600502016001015460036000815481106114ab576114aa612e75565b5b90600052602060002090600502016002015460036000815481106114d2576114d1612e75565b5b90600052602060002090600502016003015460036000815481106114f9576114f8612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b600360018154811061152e5761152d612e75565b5b90600052602060002090600502016000015481101580156115745750600360028154811061155f5761155e612e75565b5b90600052602060002090600502016000015481105b1561162357600360018154811061158e5761158d612e75565b5b90600052602060002090600502016001015460036001815481106115b5576115b4612e75565b5b90600052602060002090600502016002015460036001815481106115dc576115db612e75565b5b906000526020600020906005020160030154600360018154811061160357611602612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b600360028154811061163857611637612e75565b5b906000526020600020906005020160000154811015801561167d57506003808154811061166857611667612e75565b5b90600052602060002090600502016000015481105b1561172c57600360028154811061169757611696612e75565b5b90600052602060002090600502016001015460036002815481106116be576116bd612e75565b5b90600052602060002090600502016002015460036002815481106116e5576116e4612e75565b5b906000526020600020906005020160030154600360028154811061170c5761170b612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b600380815481106117405761173f612e75565b5b90600052602060002090600502016000015481101580156117865750600360048154811061177157611770612e75565b5b90600052602060002090600502016000015481105b15611831576003808154811061179f5761179e612e75565b5b906000526020600020906005020160010154600380815481106117c5576117c4612e75565b5b906000526020600020906005020160020154600380815481106117eb576117ea612e75565b5b9060005260206000209060050201600301546003808154811061181157611810612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b600360048154811061184657611845612e75565b5b906000526020600020906005020160010154600360048154811061186d5761186c612e75565b5b906000526020600020906005020160020154600360048154811061189457611893612e75565b5b90600052602060002090600502016003015460036004815481106118bb576118ba612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b60046001815481106118f0576118ef612e75565b5b9060005260206000209060050201600001548110156119b357600460008154811061191e5761191d612e75565b5b906000526020600020906005020160010154600460008154811061194557611944612e75565b5b906000526020600020906005020160020154600460008154811061196c5761196b612e75565b5b906000526020600020906005020160030154600460008154811061199357611992612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b60046001815481106119c8576119c7612e75565b5b9060005260206000209060050201600001548110158015611a0e575060046002815481106119f9576119f8612e75565b5b90600052602060002090600502016000015481105b15611abd576004600181548110611a2857611a27612e75565b5b9060005260206000209060050201600101546004600181548110611a4f57611a4e612e75565b5b9060005260206000209060050201600201546004600181548110611a7657611a75612e75565b5b9060005260206000209060050201600301546004600181548110611a9d57611a9c612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b6004600281548110611ad257611ad1612e75565b5b9060005260206000209060050201600001548110158015611b1857506004600381548110611b0357611b02612e75565b5b90600052602060002090600502016000015481105b15611bc7576004600281548110611b3257611b31612e75565b5b9060005260206000209060050201600101546004600281548110611b5957611b58612e75565b5b9060005260206000209060050201600201546004600281548110611b8057611b7f612e75565b5b9060005260206000209060050201600301546004600281548110611ba757611ba6612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b6004600381548110611bdc57611bdb612e75565b5b9060005260206000209060050201600001548110158015611c21575060048081548110611c0c57611c0b612e75565b5b90600052602060002090600502016000015481105b15611cd0576004600381548110611c3b57611c3a612e75565b5b9060005260206000209060050201600101546004600381548110611c6257611c61612e75565b5b9060005260206000209060050201600201546004600381548110611c8957611c88612e75565b5b9060005260206000209060050201600301546004600381548110611cb057611caf612e75565b5b906000526020600020906005020160040154945094509450945050611d72565b60048081548110611ce457611ce3612e75565b5b90600052602060002090600502016001015460048081548110611d0a57611d09612e75565b5b90600052602060002090600502016002015460048081548110611d3057611d2f612e75565b5b90600052602060002090600502016003015460048081548110611d5657611d55612e75565b5b9060005260206000209060050201600401549450945094509450505b92959194509250565b6000808273ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611dc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ded919061317f565b905060008373ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e60919061317f565b905060008273ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401611e9d91906127ea565b602060405180830381865afa158015611eba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ede9190613109565b905060008273ffffffffffffffffffffffffffffffffffffffff166370a08231876040518263ffffffff1660e01b8152600401611f1b91906127ea565b602060405180830381865afa158015611f38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5c9190613109565b905060008673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fcf9190613109565b9050600081848a611fe091906131ac565b611fea919061321d565b9050600082848b611ffb91906131ac565b612005919061321d565b9050600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff160361207857600a548261206a91906131ac565b975050505050505050612090565b600a548161208691906131ac565b9750505050505050505b92915050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b612107612609565b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f9149ead865838873730b7606c2c757affb87a6588ee0990c7ed1e963d7216181600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161219991906127ea565b60405180910390a150565b6121ac612609565b83518551146121f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e790612e55565b60405180910390fd5b8251845114612234576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222b90612e55565b60405180910390fd5b8151835114612278576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226f90612e55565b60405180910390fd5b80518251146122bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b390612e55565b60405180910390fd5b600460006122ca919061269b565b60005b85518110156123f15760046040518060a001604052808884815181106122f6576122f5612e75565b5b6020026020010151815260200187848151811061231657612315612e75565b5b6020026020010151815260200186848151811061233657612335612e75565b5b6020026020010151815260200185848151811061235657612355612e75565b5b6020026020010151815260200184848151811061237657612375612e75565b5b602002602001015181525090806001815401808255809150506001900390600052602060002090600502016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155505080806123e990612ed3565b9150506122cd565b505050505050565b612401612609565b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f2fd8b46b063fcff14cb2502aa1d0dae2d2ad7153d477ccc3aa0532af8890315c82826040516124b092919061324e565b60405180910390a15050565b600381815481106124cc57600080fd5b90600052602060002090600502016000915090508060000154908060010154908060020154908060030154908060040154905085565b61250a612609565b6006600061251891906126bf565b60005b815181101561260557600682828151811061253957612538612e75565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe5c1e32008929e1c995d225c22ec62feb8971a75982d65bd58870b2dc51f25fc8282815181106125d5576125d4612e75565b5b60200260200101516040516125ea91906127ea565b60405180910390a180806125fd90612ed3565b91505061251b565b5050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612699576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612690906132e9565b60405180910390fd5b565b50805460008255600502906000526020600020908101906126bc91906126e0565b50565b50805460008255906000526020600020908101906126dd919061271f565b50565b5b8082111561271b576000808201600090556001820160009055600282016000905560038201600090556004820160009055506005016126e1565b5090565b5b80821115612738576000816000905550600101612720565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061277b82612750565b9050919050565b61278b81612770565b811461279657600080fd5b50565b6000813590506127a881612782565b92915050565b6000602082840312156127c4576127c3612746565b5b60006127d284828501612799565b91505092915050565b6127e481612770565b82525050565b60006020820190506127ff60008301846127db565b92915050565b6000819050919050565b61281881612805565b811461282357600080fd5b50565b6000813590506128358161280f565b92915050565b60006020828403121561285157612850612746565b5b600061285f84828501612826565b91505092915050565b61287181612805565b82525050565b600060a08201905061288c6000830188612868565b6128996020830187612868565b6128a66040830186612868565b6128b36060830185612868565b6128c06080830184612868565b9695505050505050565b60008115159050919050565b6128df816128ca565b82525050565b60006020820190506128fa60008301846128d6565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61294e82612905565b810181811067ffffffffffffffff8211171561296d5761296c612916565b5b80604052505050565b600061298061273c565b905061298c8282612945565b919050565b600067ffffffffffffffff8211156129ac576129ab612916565b5b602082029050602081019050919050565b600080fd5b60006129d56129d084612991565b612976565b905080838252602082019050602084028301858111156129f8576129f76129bd565b5b835b81811015612a215780612a0d8882612826565b8452602084019350506020810190506129fa565b5050509392505050565b600082601f830112612a4057612a3f612900565b5b8135612a508482602086016129c2565b91505092915050565b600080600080600060a08688031215612a7557612a74612746565b5b600086013567ffffffffffffffff811115612a9357612a9261274b565b5b612a9f88828901612a2b565b955050602086013567ffffffffffffffff811115612ac057612abf61274b565b5b612acc88828901612a2b565b945050604086013567ffffffffffffffff811115612aed57612aec61274b565b5b612af988828901612a2b565b935050606086013567ffffffffffffffff811115612b1a57612b1961274b565b5b612b2688828901612a2b565b925050608086013567ffffffffffffffff811115612b4757612b4661274b565b5b612b5388828901612a2b565b9150509295509295909350565b60008060408385031215612b7757612b76612746565b5b6000612b8585828601612799565b9250506020612b9685828601612799565b9150509250929050565b612ba9816128ca565b8114612bb457600080fd5b50565b600081359050612bc681612ba0565b92915050565b60008060408385031215612be357612be2612746565b5b6000612bf185828601612799565b9250506020612c0285828601612bb7565b9150509250929050565b600067ffffffffffffffff821115612c2757612c26612916565b5b602082029050602081019050919050565b6000612c4b612c4684612c0c565b612976565b90508083825260208201905060208402830185811115612c6e57612c6d6129bd565b5b835b81811015612c975780612c838882612799565b845260208401935050602081019050612c70565b5050509392505050565b600082601f830112612cb657612cb5612900565b5b8135612cc6848260208601612c38565b91505092915050565b600060208284031215612ce557612ce4612746565b5b600082013567ffffffffffffffff811115612d0357612d0261274b565b5b612d0f84828501612ca1565b91505092915050565b6000602082019050612d2d6000830184612868565b92915050565b60008060408385031215612d4a57612d49612746565b5b6000612d5885828601612799565b9250506020612d6985828601612826565b9150509250929050565b6000608082019050612d886000830187612868565b612d956020830186612868565b612da26040830185612868565b612daf6060830184612868565b95945050505050565b60008060408385031215612dcf57612dce612746565b5b6000612ddd85828601612826565b9250506020612dee85828601612799565b9150509250929050565b600082825260208201905092915050565b7f6c656e677468206d69736d617463680000000000000000000000000000000000600082015250565b6000612e3f600f83612df8565b9150612e4a82612e09565b602082019050919050565b60006020820190508181036000830152612e6e81612e32565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612ede82612805565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612f1057612f0f612ea4565b5b600182019050919050565b6000604082019050612f3060008301856127db565b612f3d60208301846128d6565b9392505050565b7f6e6f7420616c6c6f77656420746f207365742073706f6e736f72000000000000600082015250565b6000612f7a601a83612df8565b9150612f8582612f44565b602082019050919050565b60006020820190508181036000830152612fa981612f6d565b9050919050565b7f73706f6e736f7220616c72656164792073657400000000000000000000000000600082015250565b6000612fe6601383612df8565b9150612ff182612fb0565b602082019050919050565b6000602082019050818103600083015261301581612fd9565b9050919050565b7f4f6e6c7920666163746f7279206f776e65720000000000000000000000000000600082015250565b6000613052601283612df8565b915061305d8261301c565b602082019050919050565b6000602082019050818103600083015261308181613045565b9050919050565b7f4e6f207a65726f206164647265737320666f72206e65774f776e657200000000600082015250565b60006130be601c83612df8565b91506130c982613088565b602082019050919050565b600060208201905081810360008301526130ed816130b1565b9050919050565b6000815190506131038161280f565b92915050565b60006020828403121561311f5761311e612746565b5b600061312d848285016130f4565b91505092915050565b600061314182612805565b915061314c83612805565b925082820190508082111561316457613163612ea4565b5b92915050565b60008151905061317981612782565b92915050565b60006020828403121561319557613194612746565b5b60006131a38482850161316a565b91505092915050565b60006131b782612805565b91506131c283612805565b92508282026131d081612805565b915082820484148315176131e7576131e6612ea4565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061322882612805565b915061323383612805565b925082613243576132426131ee565b5b828204905092915050565b600060408201905061326360008301856127db565b61327060208301846127db565b9392505050565b7f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660008201527f6f726d207468697320616374696f6e0000000000000000000000000000000000602082015250565b60006132d3602f83612df8565b91506132de82613277565b604082019050919050565b60006020820190508181036000830152613302816132c6565b905091905056fea2646970667358221220bc138cab911a09d5ae62730f4bf58e6a1767967111791882712b0ccbfc4a846264736f6c63430008110033

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

0000000000000000000000004d21351469a6728043cacf89ecb4d1e8ec20a70c

-----Decoded View---------------
Arg [0] : _YFlow (address): 0x4D21351469A6728043cACF89ecB4d1E8Ec20A70C

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004d21351469a6728043cacf89ecb4d1e8ec20a70c


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.