ETH Price: $3,025.53 (-2.08%)

Contract

0x067683698F65Bd903D393B85Aa3fc119D76b8425
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Method Block
From
To
View All Internal Transactions
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OCL_ZVE

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 10 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import "../../ZivoeLocker.sol";

import "../../../lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol";

interface IFactory_OCL_ZVE {
    /// @notice Returns the address of the pair for tokenA and tokenB, if it has been created, else address(0).
    /// @param tokenA Address of one of pair's tokens.
    /// @param tokenB Address of pair's other token.
    /// @return pair The address of the pair.
    function getPair(address tokenA, address tokenB) external view returns (address pair);
}

interface IRouter_OCL_ZVE {
    /// @notice Adds liquidity in a pool with both ERC20 tokens A and B.
    /// @param tokenA A pool token.
    /// @param tokenB A pool token.
    /// @param amountADesired Amount tokenA to add as liquidity if B/A <= amountBDesired/amountADesired (A depreciates).
    /// @param amountBDesired Amount tokenB to add as liquidity if A/B <= amountADesired/amountBDesired (B depreciates).
    /// @param amountAMin Bounds B/A price max before the transaction reverts. Must be <= amountADesired.
    /// @param amountBMin Bounds A/B price max before the transaction reverts. Must be <= amountBDesired.
    /// @param to Recipient of the liquidity tokens.
    /// @param deadline Unix timestamp after which the transaction will revert.
    /// @return amountA The amount of tokenA sent to the pool.
    /// @return amountB The amount of tokenB sent to the pool.
    /// @return liquidity The amount of liquidity tokens minted.
    function addLiquidity(
        address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, 
        uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity);

    /// @notice Removes liquidity in a pool with both ERC20 tokens A and B.
    /// @param tokenA A pool token.
    /// @param tokenB A pool token.
    /// @param liquidity The amount of liquidity tokens to remove.
    /// @param amountAMin The minimum amount of tokenA that must be received for the transaction not to revert.
    /// @param amountBMin The minimum amount of tokenB that must be received for the transaction not to revert.
    /// @param to Recipient of the underlying assets.
    /// @param deadline Unix timestamp after which the transaction will revert.
    /// @return amountA The amount of tokenA received.
    /// @return amountB The amount of tokenB received.
    function removeLiquidity(
        address tokenA, address tokenB, uint256 liquidity, 
        uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);
}

interface IZivoeGlobals_OCL_ZVE {
    /// @notice Returns the address of the Timelock contract.
    function TLC() external view returns (address);

    /// @notice Returns the address of the ZivoeYDL contract.
    function YDL() external view returns (address);

    /// @notice Returns the address of the ZivoeToken contract.
    function ZVE() external view returns (address);

    /// @notice Returns the address of the Zivoe Laboratory.
    function ZVL() external view returns (address);

    /// @notice Returns true if an address is whitelisted as a keeper.
    function isKeeper(address) external view returns (bool);
}

interface IZivoeYDL_OCL_ZVE {
    /// @notice Returns the "stablecoin" that will be distributed via YDL.
    /// @return asset The address of the "stablecoin" that will be distributed via YDL.
    function distributedAsset() external view returns (address asset);
}


/// @notice This contract manages liquidity provisioning for a Uniswap v2 or Sushi pool.
///         This contract has the following responsibilities:
///           - Allocate capital to a $ZVE/pairAsset pool.
///           - Remove capital from a $ZVE/pairAsset pool.
///           - Forward yield (profits) every 30 days to the YDL with compounding mechanisms.
contract OCL_ZVE is ZivoeLocker, ReentrancyGuard {

    using SafeERC20 for IERC20;
    
    // ---------------------
    //    State Variables
    // ---------------------

    address public immutable GBL;               /// @dev The ZivoeGlobals contract.
    address public immutable factory;           /// @dev Address for the Factory (Uniswap v2 or Sushi).
    address public immutable pairAsset;         /// @dev ERC20 that will be paired with $ZVE for Sushi pool.
    address public immutable router;            /// @dev Address for the Router (Uniswap v2 or Sushi).

    address public OCT_YDL;                     /// @dev Facilitates swaps and forwards distributedAsset() to YDL.
    
    uint256 public basis;                       /// @dev The basis used for forwardYield() accounting.
    uint256 public compoundingRateBIPS = 5000;  /// @dev The % of returns to retain, in BIPS.
    uint256 public nextYieldDistribution;       /// @dev Determines next available forwardYield() call.

    uint256 private constant BIPS = 10000;



    // -----------------
    //    Constructor
    // -----------------

    /// @notice Initializes the OCL_ZVE contract.
    /// @param DAO The administrator of this contract (intended to be ZivoeDAO).
    /// @param _GBL The ZivoeGlobals contract.
    /// @param _pairAsset ERC20 that will be paired with $ZVE for pool.
    /// @param  _OCT_YDL The contract that facilitates swaps and forwards distributedAsset() to YDL.
    constructor(address DAO, address _GBL, address _pairAsset, address _router, address _factory, address _OCT_YDL) {
        transferOwnershipAndLock(DAO);
        GBL = _GBL;
        pairAsset = _pairAsset;
        router = _router;
        factory = _factory;
        OCT_YDL = _OCT_YDL;
    }



    // ------------
    //    Events   
    // ------------

    /// @notice Emitted during pullFromLocker() and pullFromLockerPartial() and _forwardYield() [via forwardYield()].
    /// @param  amountBurned Amount of liquidity tokens burned.
    /// @param  claimedZVE Amount of ZVE claimed.
    /// @param  claimedPairAsset Amount of pairAsset claimed.
    event LiquidityTokensBurned(uint256 amountBurned, uint256 claimedZVE, uint256 claimedPairAsset);

    /// @notice Emitted during pushToLockerMulti().
    /// @param  amountMinted Amount of liquidity tokens minted.
    /// @param  depositedZVE Amount of ZVE deposited.
    /// @param  depositedPairAsset Amount of pairAsset deposited.
    event LiquidityTokensMinted(uint256 amountMinted, uint256 depositedZVE, uint256 depositedPairAsset);

    /// @notice Emitted during updateCompoundingRateBIPS().
    /// @param  oldValue The old value of compoundingRateBIPS.
    /// @param  newValue The new value of compoundingRateBIPS.
    event UpdatedCompoundingRateBIPS(uint256 oldValue, uint256 newValue);

    /// @notice Emitted during updateOCTYDL().
    /// @param  newOCT The new OCT_YDL contract.
    /// @param  oldOCT The old OCT_YDL contract.
    event UpdatedOCTYDL(address indexed newOCT, address indexed oldOCT);

    /// @notice Emitted during forwardYield().
    /// @param  asset The "asset" being distributed.
    /// @param  amount The amount distributed.
    event YieldForwarded(address indexed asset, uint256 amount);



    // ---------------
    //    Functions
    // ---------------

    /// @notice Permission for owner to call pushToLockerMulti().
    function canPushMulti() public override pure returns (bool) { return true; }

    /// @notice Permission for owner to call pullFromLocker().
    function canPull() public override pure returns (bool) { return true; }

    /// @notice Permission for owner to call pullFromLockerPartial().
    function canPullPartial() public override pure returns (bool) { return true; }

    /// @notice This pulls capital from the DAO and adds liquidity into a $ZVE/pairAsset pool.
    /// @param  assets The assets to pull from the DAO.
    /// @param  amounts The amount to pull of each asset respectively.
    /// @param  data Accompanying transaction data.
    function pushToLockerMulti(
        address[] calldata assets, uint256[] calldata amounts, bytes[] calldata data
    ) external override onlyOwner nonReentrant {
        address ZVE = IZivoeGlobals_OCL_ZVE(GBL).ZVE();
        require(
            assets[0] == pairAsset && assets[1] == ZVE,
            "OCL_ZVE::pushToLockerMulti() assets[0] != pairAsset || assets[1] != ZVE"
        );

        for (uint256 i = 0; i < 2; i++) {
            require(amounts[i] >= 10 * 10**6, "OCL_ZVE::pushToLockerMulti() amounts[i] < 10 * 10**6");
            IERC20(assets[i]).safeTransferFrom(owner(), address(this), amounts[i]);
        }

        if (nextYieldDistribution == 0) { nextYieldDistribution = block.timestamp + 30 days; }

        uint256 preBasis;
        if (basis != 0) { (preBasis,) = fetchBasis(); }

        // Router addLiquidity() endpoint.
        uint balPairAsset = IERC20(pairAsset).balanceOf(address(this));
        uint balZVE = IERC20(ZVE).balanceOf(address(this));
        IERC20(pairAsset).safeIncreaseAllowance(router, balPairAsset);
        IERC20(ZVE).safeIncreaseAllowance(router, balZVE);

        // Prevent volatility of greater than 10% in pool relative to amounts present.
        (uint256 depositedPairAsset, uint256 depositedZVE, uint256 minted) = IRouter_OCL_ZVE(router).addLiquidity(
            pairAsset, 
            ZVE, 
            balPairAsset,
            balZVE, 
            (balPairAsset * 9) / 10,
            (balZVE * 9) / 10, 
            address(this), block.timestamp + 14 days
        );
        emit LiquidityTokensMinted(minted, depositedZVE, depositedPairAsset);

        if (IERC20(pairAsset).allowance(address(this), router) > 0) {
            IERC20(pairAsset).safeDecreaseAllowance(router, IERC20(pairAsset).allowance(address(this), router));
        }
        if (IERC20(pairAsset).balanceOf(address(this)) > 0) {
            IERC20(pairAsset).safeTransfer(owner(), IERC20(pairAsset).balanceOf(address(this)));
        }

        if (IERC20(ZVE).allowance(address(this), router) > 0) {
            IERC20(ZVE).safeDecreaseAllowance(router, IERC20(ZVE).allowance(address(this), router));
        }
        if (IERC20(ZVE).balanceOf(address(this)) > 0) {
            IERC20(ZVE).safeTransfer(owner(), IERC20(ZVE).balanceOf(address(this)));
        }

        // Increase basis by difference.
        (uint256 postBasis,) = fetchBasis();
        require(postBasis > preBasis, "OCL_ZVE::pushToLockerMulti() postBasis <= preBasis");
        basis += postBasis - preBasis;
    }

    /// @notice This burns LP tokens from the $ZVE/pairAsset pool and returns them to the DAO.
    /// @param  asset The asset to burn.
    /// @param  data Accompanying transaction data.
    function pullFromLocker(address asset, bytes calldata data) external override onlyOwner nonReentrant {
        address ZVE = IZivoeGlobals_OCL_ZVE(GBL).ZVE();
        address pair = IFactory_OCL_ZVE(factory).getPair(pairAsset, ZVE);
        
        (uint amountAMin, uint amountBMin) = abi.decode(data, (uint, uint));

        // "pair" represents the liquidity pool token (minted, burned).
        // "pairAsset" represents the stablecoin paired against $ZVE.
        if (asset == pair) {
            uint256 preBalLPToken = IERC20(pair).balanceOf(address(this));
            IERC20(pair).safeIncreaseAllowance(router, preBalLPToken);

            // Router removeLiquidity() endpoint.
            (uint256 claimedPairAsset, uint256 claimedZVE) = IRouter_OCL_ZVE(router).removeLiquidity(
                pairAsset, ZVE, preBalLPToken, 
                amountAMin, amountBMin, address(this), block.timestamp + 14 days
            );
            emit LiquidityTokensBurned(preBalLPToken, claimedZVE, claimedPairAsset);
            assert(IERC20(pair).allowance(address(this), router) == 0);

            IERC20(pairAsset).safeTransfer(owner(), IERC20(pairAsset).balanceOf(address(this)));
            IERC20(ZVE).safeTransfer(owner(), IERC20(ZVE).balanceOf(address(this)));
            basis = 0;
        }
        else {
            IERC20(asset).safeTransfer(owner(), IERC20(asset).balanceOf(address(this)));
        }
    }

    /// @notice This burns LP tokens from the $ZVE/pairAsset pool and returns them to the DAO.
    /// @param  asset The asset to burn.
    /// @param  amount The amount of "asset" to burn.
    /// @param  data Accompanying transaction data.
    function pullFromLockerPartial(
        address asset, uint256 amount, bytes calldata data
    ) external override onlyOwner nonReentrant {
        address ZVE = IZivoeGlobals_OCL_ZVE(GBL).ZVE();
        address pair = IFactory_OCL_ZVE(factory).getPair(pairAsset, ZVE);
        
        (uint amountAMin, uint amountBMin) = abi.decode(data, (uint, uint));

        // "pair" represents the liquidity pool token (minted, burned).
        // "pairAsset" represents the stablecoin paired against $ZVE.
        if (asset == pair) {
            (uint256 preBasis,) = fetchBasis();
            IERC20(pair).safeIncreaseAllowance(router, amount);

            // Router removeLiquidity() endpoint.
            (uint256 claimedPairAsset, uint256 claimedZVE) = IRouter_OCL_ZVE(router).removeLiquidity(
                pairAsset, ZVE, amount, 
                amountAMin, amountBMin, address(this), block.timestamp + 14 days
            );
            emit LiquidityTokensBurned(amount, claimedZVE, claimedPairAsset);
            assert(IERC20(pair).allowance(address(this), router) == 0);
            
            IERC20(pairAsset).safeTransfer(owner(), IERC20(pairAsset).balanceOf(address(this)));
            IERC20(ZVE).safeTransfer(owner(), IERC20(ZVE).balanceOf(address(this)));
            (uint256 postBasis,) = fetchBasis();
            require(postBasis < preBasis, "OCL_ZVE::pullFromLockerPartial() postBasis >= preBasis");
            basis -= preBasis - postBasis;
        }
        else {
            IERC20(asset).safeTransfer(owner(), amount);
        }
    }

    /// @notice This forwards yield in excess of the basis.
    function forwardYield() external {
        if (IZivoeGlobals_OCL_ZVE(GBL).isKeeper(_msgSender())) {
            require(
                block.timestamp > nextYieldDistribution - 12 hours, 
                "OCL_ZVE::forwardYield() block.timestamp <= nextYieldDistribution - 12 hours"
            );
        }
        else {
            require(
                block.timestamp > nextYieldDistribution, 
                "OCL_ZVE::forwardYield() block.timestamp <= nextYieldDistribution"
            );
        }

        (uint256 amount, uint256 lp) = fetchBasis();
        if (amount > basis) { _forwardYield(amount, lp); }
        (basis,) = fetchBasis();
        nextYieldDistribution = block.timestamp + 30 days;
    }

    /// @notice This forwards yield to the YDL in the form of pairAsset.
    /// @dev    Private function, only callable via forwardYield().
    /// @param  amount Current pairAsset harvestable.
    /// @param  lp Current ZVE/pairAsset LP tokens.
    function _forwardYield(uint256 amount, uint256 lp) private nonReentrant {
        address ZVE = IZivoeGlobals_OCL_ZVE(GBL).ZVE();
        uint256 lpBurnable = (amount - basis) * lp * (BIPS - compoundingRateBIPS) / amount / BIPS;
        address pair = IFactory_OCL_ZVE(factory).getPair(pairAsset, ZVE);
        IERC20(pair).safeIncreaseAllowance(router, lpBurnable);
        (uint256 claimedPairAsset, uint256 claimedZVE) = IRouter_OCL_ZVE(router).removeLiquidity(
            pairAsset, ZVE, lpBurnable, 0, 0, address(this), block.timestamp + 14 days
        );
        emit LiquidityTokensBurned(lpBurnable, claimedZVE, claimedPairAsset);
        assert(IERC20(pair).allowance(address(this), router) == 0);
        uint balPairAsset = IERC20(pairAsset).balanceOf(address(this));
        emit YieldForwarded(pairAsset, balPairAsset);
        if (pairAsset != IZivoeYDL_OCL_ZVE(IZivoeGlobals_OCL_ZVE(GBL).YDL()).distributedAsset()) {
            IERC20(pairAsset).safeTransfer(OCT_YDL, balPairAsset);
        }
        else {
            IERC20(pairAsset).safeTransfer(IZivoeGlobals_OCL_ZVE(GBL).YDL(), balPairAsset);
        }
        IERC20(ZVE).safeTransfer(owner(), IERC20(ZVE).balanceOf(address(this)));
    }

    /// @notice Returns amount of pairAsset redeemable with current LP position.
    /// @dev    The withdrawal mechanism is ZVE/pairAsset_LP => pairAsset.
    /// @return amount Current pairAsset harvestable.
    /// @return lp Current ZVE/pairAsset LP tokens.
    function fetchBasis() public view returns (uint256 amount, uint256 lp) {
        address pool = IFactory_OCL_ZVE(factory).getPair(pairAsset, IZivoeGlobals_OCL_ZVE(GBL).ZVE());
        uint256 pairAssetBalance = IERC20(pairAsset).balanceOf(pool);
        uint256 poolTotalSupply = IERC20(pool).totalSupply();
        lp = IERC20(pool).balanceOf(address(this));
        amount = lp * pairAssetBalance / poolTotalSupply;
    }

    /// @notice Updates the compounding rate of this contract.
    /// @dev    A value of 2,000 represent 20% of the earnings stays in this contract, compounding.
    /// @param  _compoundingRateBIPS The new compounding rate value.
    function updateCompoundingRateBIPS(uint256 _compoundingRateBIPS) external {
        require(
            _msgSender() == IZivoeGlobals_OCL_ZVE(GBL).TLC(), 
            "OCL_ZVE::updateCompoundingRateBIPS() _msgSender() != IZivoeGlobals_OCL_ZVE(GBL).TLC()"
        );
        require(_compoundingRateBIPS <= BIPS, "OCL_ZVE::updateCompoundingRateBIPS() ratio > BIPS");

        emit UpdatedCompoundingRateBIPS(compoundingRateBIPS, _compoundingRateBIPS);
        compoundingRateBIPS = _compoundingRateBIPS;
    }

    /// @notice Update the OCT_YDL endpoint.
    /// @dev    This function MUST only be called by ZVL().
    /// @param  _OCT_YDL The new address for OCT_YDL.
    function updateOCTYDL(address _OCT_YDL) external {
        require(
            _msgSender() == IZivoeGlobals_OCL_ZVE(GBL).ZVL(), 
            "OCL_ZVE::updateOCTYDL() _msgSender() != IZivoeGlobals_OCL_ZVE(GBL).ZVL()"
        );
        require(_OCT_YDL != address(0), "OCL_ZVE::updateOCTYDL() _OCT_YDL == address(0)");
        emit UpdatedOCTYDL(_OCT_YDL, OCT_YDL);
        OCT_YDL = _OCT_YDL;
    }
    
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

// 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;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol)

pragma solidity ^0.8.0;

import "./ERC1155Receiver.sol";

/**
 * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens.
 *
 * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be
 * stuck.
 *
 * @dev _Available since v3.1._
 */
contract ERC1155Holder is ERC1155Receiver {
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] memory,
        uint256[] memory,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

File 7 of 19 : ERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "../IERC1155Receiver.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
    }
}

// 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);
}

// 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);
}

// 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");
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 12 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

// 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);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import "../../lib/openzeppelin-contracts/contracts/access/Ownable.sol";

abstract contract OwnableLocked is Ownable {
    
    bool public locked; /// @dev A variable "locked" that prevents future ownership transfer.

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier unlocked() {
        require(!locked, "OwnableLocked::unlocked() locked");
        _;
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner and if !locked.
     */
    function transferOwnershipAndLock(address newOwner) public onlyOwner unlocked {
        require(newOwner != address(0), "OwnableLocked::transferOwnershipAndLock() newOwner == address(0)");
        locked = true;
        _transferOwnership(newOwner);
    }

}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import "./libraries/OwnableLocked.sol";

import "../lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC721/utils/ERC721Holder.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC1155/IERC1155.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC1155/utils/ERC1155Holder.sol";



/// @notice  This contract standardizes communication between the DAO and lockers.
abstract contract ZivoeLocker is OwnableLocked, ERC1155Holder, ERC721Holder {
    
    using SafeERC20 for IERC20;

    // -----------------
    //    Constructor
    // -----------------

    /// @notice Initializes the ZivoeLocker contract.
    constructor() {}



    // ---------------
    //    Functions
    // ---------------

    /// @notice Permission for calling pushToLocker().
    function canPush() public virtual view returns (bool) { return false; }

    /// @notice Permission for calling pullFromLocker().
    function canPull() public virtual view returns (bool) { return false; }

    /// @notice Permission for calling pullFromLockerPartial().
    function canPullPartial() public virtual view returns (bool) { return false; }

    /// @notice Permission for calling pushToLockerMulti().
    function canPushMulti() public virtual view returns (bool) { return false; }

    /// @notice Permission for calling pullFromLockerMulti().
    function canPullMulti() public virtual view returns (bool) { return false; }

    /// @notice Permission for calling pullFromLockerMultiPartial().
    function canPullMultiPartial() public virtual view returns (bool) { return false; }

    /// @notice Permission for calling pushToLockerERC721().
    function canPushERC721() public virtual view returns (bool) { return false; }

    /// @notice Permission for calling pullFromLockerERC721().
    function canPullERC721() public virtual view returns (bool) { return false; }

    /// @notice Permission for calling pushToLockerMultiERC721().
    function canPushMultiERC721() public virtual view returns (bool) { return false; }

    /// @notice Permission for calling pullFromLockerMultiERC721().
    function canPullMultiERC721() public virtual view returns (bool) { return false; }

    /// @notice Permission for calling pushToLockerERC1155().
    function canPushERC1155() public virtual view returns (bool) { return false; }

    /// @notice Permission for calling pullFromLockerERC1155().
    function canPullERC1155() public virtual view returns (bool) { return false; }

    /// @notice Migrates specific amount of ERC20 from owner() to locker.
    /// @param  asset The asset to migrate.
    /// @param  amount The amount of "asset" to migrate.
    /// @param  data Accompanying transaction data.
    function pushToLocker(address asset, uint256 amount, bytes calldata data) external virtual onlyOwner {
        require(canPush(), "ZivoeLocker::pushToLocker() !canPush()");
        IERC20(asset).safeTransferFrom(owner(), address(this), amount);
    }

    /// @notice Migrates entire ERC20 balance from locker to owner().
    /// @param  asset The asset to migrate.
    /// @param  data Accompanying transaction data.
    function pullFromLocker(address asset, bytes calldata data) external virtual onlyOwner {
        require(canPull(), "ZivoeLocker::pullFromLocker() !canPull()");
        IERC20(asset).safeTransfer(owner(), IERC20(asset).balanceOf(address(this)));
    }

    /// @notice Migrates specific amount of ERC20 from locker to owner().
    /// @param  asset The asset to migrate.
    /// @param  amount The amount of "asset" to migrate.
    /// @param  data Accompanying transaction data.
    function pullFromLockerPartial(address asset, uint256 amount, bytes calldata data) external virtual onlyOwner {
        require(canPullPartial(), "ZivoeLocker::pullFromLockerPartial() !canPullPartial()");
        IERC20(asset).safeTransfer(owner(), amount);
    }

    /// @notice Migrates specific amounts of ERC20s from owner() to locker.
    /// @param  assets The assets to migrate.
    /// @param  amounts The amounts of "assets" to migrate, corresponds to "assets" by position in array.
    /// @param  data Accompanying transaction data.
    function pushToLockerMulti(
        address[] calldata assets, uint256[] calldata amounts, bytes[] calldata data
    ) external virtual onlyOwner {
        require(canPushMulti(), "ZivoeLocker::pushToLockerMulti() !canPushMulti()");
        for (uint256 i = 0; i < assets.length; i++) {
            IERC20(assets[i]).safeTransferFrom(owner(), address(this), amounts[i]);
        }
    }

    /// @notice Migrates full amount of ERC20s from locker to owner().
    /// @param  assets The assets to migrate.
    /// @param  data Accompanying transaction data.
    function pullFromLockerMulti(address[] calldata assets, bytes[] calldata data) external virtual onlyOwner {
        require(canPullMulti(), "ZivoeLocker::pullFromLockerMulti() !canPullMulti()");
        for (uint256 i = 0; i < assets.length; i++) {
            IERC20(assets[i]).safeTransfer(owner(), IERC20(assets[i]).balanceOf(address(this)));
        }
    }

    /// @notice Migrates specific amounts of ERC20s from locker to owner().
    /// @param  assets The assets to migrate.
    /// @param  amounts The amounts of "assets" to migrate, corresponds to "assets" by position in array.
    /// @param  data Accompanying transaction data.
    function pullFromLockerMultiPartial(
        address[] calldata assets, uint256[] calldata amounts, bytes[] calldata data
    ) external virtual onlyOwner {
        require(canPullMultiPartial(), "ZivoeLocker::pullFromLockerMultiPartial() !canPullMultiPartial()");
        for (uint256 i = 0; i < assets.length; i++) {
            IERC20(assets[i]).safeTransfer(owner(), amounts[i]);
        }
    }

    /// @notice Migrates an ERC721 from owner() to locker.
    /// @param  asset The NFT contract.
    /// @param  tokenId The ID of the NFT to migrate.
    /// @param  data Accompanying transaction data.
    function pushToLockerERC721(address asset, uint256 tokenId, bytes calldata data) external virtual onlyOwner {
        require(canPushERC721(), "ZivoeLocker::pushToLockerERC721() !canPushERC721()");
        IERC721(asset).safeTransferFrom(owner(), address(this), tokenId, data);
    }

    /// @notice Migrates an ERC721 from locker to owner().
    /// @param  asset The NFT contract.
    /// @param  tokenId The ID of the NFT to migrate.
    /// @param  data Accompanying transaction data.
    function pullFromLockerERC721(address asset, uint256 tokenId, bytes calldata data) external virtual onlyOwner {
        require(canPullERC721(), "ZivoeLocker::pullFromLockerERC721() !canPullERC721()");
        IERC721(asset).safeTransferFrom(address(this), owner(), tokenId, data);
    }

    /// @notice Migrates ERC721s from owner() to locker.
    /// @param  assets The NFT contracts.
    /// @param  tokenIds The IDs of the NFTs to migrate.
    /// @param  data Accompanying transaction data.
    function pushToLockerMultiERC721(
        address[] calldata assets, uint256[] calldata tokenIds, bytes[] calldata data
    ) external virtual onlyOwner {
        require(canPushMultiERC721(), "ZivoeLocker::pushToLockerMultiERC721() !canPushMultiERC721()");
        for (uint256 i = 0; i < assets.length; i++) {
           IERC721(assets[i]).safeTransferFrom(owner(), address(this), tokenIds[i], data[i]);
        }
    }

    /// @notice Migrates ERC721s from locker to owner().
    /// @param  assets The NFT contracts.
    /// @param  tokenIds The IDs of the NFTs to migrate.
    /// @param  data Accompanying transaction data.
    function pullFromLockerMultiERC721(
        address[] calldata assets, uint256[] calldata tokenIds, bytes[] calldata data
    ) external virtual onlyOwner {
        require(canPullMultiERC721(), "ZivoeLocker::pullFromLockerMultiERC721() !canPullMultiERC721()");
        for (uint256 i = 0; i < assets.length; i++) {
           IERC721(assets[i]).safeTransferFrom(address(this), owner(), tokenIds[i], data[i]);
        }
    }

    /// @notice Migrates ERC1155 assets from owner() to locker.
    /// @param  asset The ERC1155 contract.
    /// @param  ids The IDs of the assets within the ERC1155 to migrate.
    /// @param  amounts The amounts to migrate.
    /// @param  data Accompanying transaction data.
    function pushToLockerERC1155(
        address asset, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data
    ) external virtual onlyOwner {
        require(canPushERC1155(), "ZivoeLocker::pushToLockerERC1155() !canPushERC1155()");
        IERC1155(asset).safeBatchTransferFrom(owner(), address(this), ids, amounts, data);
    }

    /// @notice Migrates ERC1155 assets from locker to owner().
    /// @param  asset The ERC1155 contract.
    /// @param  ids The IDs of the assets within the ERC1155 to migrate.
    /// @param  amounts The amounts to migrate.
    /// @param  data Accompanying transaction data.
    function pullFromLockerERC1155(
        address asset, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data
    ) external virtual onlyOwner {
        require(canPullERC1155(), "ZivoeLocker::pullFromLockerERC1155() !canPullERC1155()");
        IERC1155(asset).safeBatchTransferFrom(address(this), owner(), ids, amounts, data);
    }

}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"DAO","type":"address"},{"internalType":"address","name":"_GBL","type":"address"},{"internalType":"address","name":"_pairAsset","type":"address"},{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_OCT_YDL","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountBurned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimedZVE","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimedPairAsset","type":"uint256"}],"name":"LiquidityTokensBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountMinted","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositedZVE","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositedPairAsset","type":"uint256"}],"name":"LiquidityTokensMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdatedCompoundingRateBIPS","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newOCT","type":"address"},{"indexed":true,"internalType":"address","name":"oldOCT","type":"address"}],"name":"UpdatedOCTYDL","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"YieldForwarded","type":"event"},{"inputs":[],"name":"GBL","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OCT_YDL","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"basis","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canPull","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"canPullERC1155","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canPullERC721","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canPullMulti","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canPullMultiERC721","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canPullMultiPartial","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canPullPartial","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"canPush","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canPushERC1155","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canPushERC721","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canPushMulti","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"canPushMultiERC721","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"compoundingRateBIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fetchBasis","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forwardYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextYieldDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairAsset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pullFromLocker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pullFromLockerERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pullFromLockerERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"pullFromLockerMulti","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"pullFromLockerMultiERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"pullFromLockerMultiPartial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pullFromLockerPartial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pushToLocker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pushToLockerERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pushToLockerERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"pushToLockerMulti","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"pushToLockerMultiERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnershipAndLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_compoundingRateBIPS","type":"uint256"}],"name":"updateCompoundingRateBIPS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_OCT_YDL","type":"address"}],"name":"updateOCTYDL","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040526113886004553480156200001857600080fd5b506040516200451f3803806200451f8339810160408190526200003b9162000266565b620000463362000090565b600180556200005586620000e0565b6001600160a01b0394851660805292841660c05290831660e052821660a052600280546001600160a01b0319169190921617905550620002e7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620000ea620001eb565b600054600160a01b900460ff16156200014a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c654c6f636b65643a3a756e6c6f636b65642829206c6f636b656460448201526064015b60405180910390fd5b6001600160a01b038116620001ca576040805162461bcd60e51b81526020600482015260248101919091527f4f776e61626c654c6f636b65643a3a7472616e736665724f776e65727368697060448201527f416e644c6f636b2829206e65774f776e6572203d3d2061646472657373283029606482015260840162000141565b6000805460ff60a01b1916600160a01b179055620001e88162000090565b50565b6000546001600160a01b03163314620002475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000141565b565b80516001600160a01b03811681146200026157600080fd5b919050565b60008060008060008060c087890312156200028057600080fd5b6200028b8762000249565b95506200029b6020880162000249565b9450620002ab6040880162000249565b9350620002bb6060880162000249565b9250620002cb6080880162000249565b9150620002db60a0880162000249565b90509295509295509295565b60805160a05160c05160e05161407d620004a2600039600081816104ce015281816112fa0152818161132e015281816113610152818161151001528181611584015281816115d50152818161180b0152818161187f015281816118b001528181612070015281816120a2015281816121b1015281816124ae015281816124e0015281816125ef01528181612ec801528181612efa0152613009015260008181610459015281816107350152818161083a01528181610f71015281816111e2015281816112d801528181611388015281816114e1015281816115a50152818161165c0152818161169d0152818161173b015281816117bb01528181611f43015281816120c9015281816123e60152818161250701528181612e3901528181612f21015281816130990152818161311301528181613262015281816132a0015261335d0152600081816103e50152818161070601528181611f14015281816123b70152612e0a0152600081816102f90152818161054d0152818161075601528181610eed01528181611b3d01528181611e8e015281816123310152818161286601528181612d350152818161317601526132d3015261407d6000f3fe608060405234801561001057600080fd5b506004361061020f5760003560e01c806301ffc9a714610214578063082b00971461023c5780630abf922014610251578063120521761461026e578063150b7a021461028157806315e98744146102ad5780631852b383146102c057806319165874146102c75780631d9389e9146102da578063215cccdd146102ed5780632f08d48b146102c05780633c117244146102c05780633ce8d432146102f45780633eda81ad146102c0578063422b201814610328578063423156321461033b57806358289c7e1461034e57806364c77735146102ed5780636a7ab9af14610361578063715018a6146103745780637efee3a81461037c5780638b648ee2146102c05780638da5cb5b14610393578063a4a3e79d146102ed578063a785a3a81461039b578063b0607cf8146102c0578063b892bcc0146103ae578063bc197c81146103c1578063c45a0155146103e0578063cd45e1fb14610407578063cf10b7ab146102c0578063cf3090121461041a578063d284af941461042e578063d8f2a78b14610441578063dd913bdb146102c0578063e7f44629146102c0578063e94eafe114610454578063f1641cbe1461047b578063f23a6e611461048e578063f2fde38b146104ad578063f385cecb146104c0578063f887ea40146104c9578063f988dc3f146104f0578063fd76f59d146104f9578063ff4a67611461050c575b600080fd5b610227610222366004613615565b610514565b60405190151581526020015b60405180910390f35b61024f61024a366004613646565b61054b565b005b6102596106ff565b60408051928352602083019190915201610233565b61024f61027c3660046136bc565b6109bb565b61029461028f3660046137cc565b610a28565b6040516001600160e01b03199091168152602001610233565b61024f6102bb36600461387b565b610a39565b6000610227565b61024f6102d5366004613914565b610b8e565b61024f6102e83660046136bc565b610cdd565b6001610227565b61031b7f000000000000000000000000000000000000000000000000000000000000000081565b6040516102339190613973565b61024f610336366004613987565b610d48565b61024f6103493660046136bc565b610db7565b61024f61035c366004613a33565b610e1c565b61024f61036f36600461387b565b610ed9565b61024f611aee565b61038560045481565b604051908152602001610233565b61031b611b2c565b61024f6103a9366004613a33565b611b3b565b61024f6103bc36600461387b565b611d1d565b6102946103cf366004613ac4565b63bc197c8160e01b95945050505050565b61031b7f000000000000000000000000000000000000000000000000000000000000000081565b61024f610415366004613b71565b611e7a565b60005461022790600160a01b900460ff1681565b61024f61043c36600461387b565b612267565b61024f61044f3660046136bc565b61231d565b61031b7f000000000000000000000000000000000000000000000000000000000000000081565b60025461031b906001600160a01b031681565b61029461049c366004613bc5565b63f23a6e6160e01b95945050505050565b61024f6104bb366004613a33565b612749565b61038560035481565b61031b7f000000000000000000000000000000000000000000000000000000000000000081565b61038560055481565b61024f610507366004613987565b6127ea565b61024f612857565b60006001600160e01b03198216630271189760e51b148061054557506301ffc9a760e01b6001600160e01b03198316145b92915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c76d41c86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cd9190613c2d565b6001600160a01b0316336001600160a01b0316146106645760405162461bcd60e51b8152602060048201526055602482015260008051602061400883398151915260448201527f50532829205f6d736753656e646572282920213d20495a69766f65476c6f62616064820152746c735f4f434c5f5a56452847424c292e544c43282960581b608482015260a4015b60405180910390fd5b6127108111156106be5760405162461bcd60e51b815260206004820152603160248201526000805160206140088339815191526044820152705053282920726174696f203e204249505360781b606482015260840161065b565b60045460408051918252602082018390527f57bfd573022baa4c3a1987e85a21dd1c49512aa4068ab6fa93c8747e1e46f5c5910160405180910390a1600455565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a439057f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d69190613c2d565b6040518363ffffffff1660e01b81526004016107f3929190613c4a565b602060405180830381865afa158015610810573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108349190613c2d565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231836040518263ffffffff1660e01b81526004016108849190613973565b602060405180830381865afa1580156108a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c59190613c64565b90506000826001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610907573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092b9190613c64565b6040516370a0823160e01b81529091506001600160a01b038416906370a082319061095a903090600401613973565b602060405180830381865afa158015610977573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099b9190613c64565b9350806109a88386613c93565b6109b29190613caa565b94505050509091565b6109c36129fa565b60405162461bcd60e51b815260206004820152603460248201527f5a69766f654c6f636b65723a3a70756c6c46726f6d4c6f636b65724552433732604482015273312829202163616e50756c6c455243373231282960601b606482015260840161065b565b630a85bd0160e11b5b949350505050565b610a416129fa565b60405162461bcd60e51b815260206004820152603e6024820152600080516020613f8883398151915260448201527f4552433732312829202163616e50756c6c4d756c746945524337323128290000606482015260840161065b565b85811015610b8557868682818110610ab757610ab7613d29565b9050602002016020810190610acc9190613a33565b6001600160a01b031663b88d4fde30610ae3611b2c565b888886818110610af557610af5613d29565b90506020020135878787818110610b0e57610b0e613d29565b9050602002810190610b209190613d3f565b6040518663ffffffff1660e01b8152600401610b40959493929190613cf5565b600060405180830381600087803b158015610b5a57600080fd5b505af1158015610b6e573d6000803e3d6000fd5b505050508080610b7d90613d85565b915050610a9d565b50505050505050565b610b966129fa565b60405162461bcd60e51b81526020600482015260326024820152600080516020613f888339815191526044820152712829202163616e50756c6c4d756c7469282960701b606482015260840161065b565b83811015610cd657610cc4610bfa611b2c565b868684818110610c0c57610c0c613d29565b9050602002016020810190610c219190613a33565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610c4c9190613973565b602060405180830381865afa158015610c69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8d9190613c64565b878785818110610c9f57610c9f613d29565b9050602002016020810190610cb49190613a33565b6001600160a01b03169190612a59565b80610cce81613d85565b915050610be7565b5050505050565b610ce56129fa565b60405162461bcd60e51b815260206004820152603260248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b65724552433732312860448201527129202163616e50757368455243373231282960701b606482015260840161065b565b610d506129fa565b60405162461bcd60e51b815260206004820152603660248201527f5a69766f654c6f636b65723a3a70756c6c46726f6d4c6f636b6572455243313160448201527535352829202163616e50756c6c45524331313535282960501b606482015260840161065b565b610dbf6129fa565b60405162461bcd60e51b815260206004820152602660248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b65722829202163616e60448201526550757368282960d01b606482015260840161065b565b50505050565b610e246129fa565b600054600160a01b900460ff1615610e4e5760405162461bcd60e51b815260040161065b90613d9e565b6001600160a01b038116610eba576040805162461bcd60e51b815260206004820152602481019190915260008051602061402883398151915260448201527f416e644c6f636b2829206e65774f776e6572203d3d2061646472657373283029606482015260840161065b565b6000805460ff60a01b1916600160a01b179055610ed681612ae7565b50565b610ee16129fa565b610ee9612b37565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6d9190613c2d565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031687876000818110610fac57610fac613d29565b9050602002016020810190610fc19190613a33565b6001600160a01b031614801561100f5750806001600160a01b031687876001818110610fef57610fef613d29565b90506020020160208101906110049190613a33565b6001600160a01b0316145b6110915760405162461bcd60e51b815260206004820152604760248201527f4f434c5f5a56453a3a70757368546f4c6f636b65724d756c746928292061737360448201527f6574735b305d20213d20706169724173736574207c7c206173736574735b315d60648201526620213d205a564560c81b608482015260a40161065b565b60005b600281101561119457629896808686838181106110b3576110b3613d29565b9050602002013510156111255760405162461bcd60e51b815260206004820152603460248201527f4f434c5f5a56453a3a70757368546f4c6f636b65724d756c7469282920616d6f6044820152733ab73a39adb4ae901e101898101510189815151b60611b606482015260840161065b565b611182611130611b2c565b3088888581811061114357611143613d29565b905060200201358b8b8681811061115c5761115c613d29565b90506020020160208101906111719190613a33565b6001600160a01b0316929190612aaf565b8061118c81613d85565b915050611094565b506005546000036111b0576111ac4262278d00613dd3565b6005555b60006003546000146111c8576111c46106ff565b5090505b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190611217903090600401613973565b602060405180830381865afa158015611234573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112589190613c64565b90506000836001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016112889190613973565b602060405180830381865afa1580156112a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c99190613c64565b905061131f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000084612b90565b6113536001600160a01b0385167f000000000000000000000000000000000000000000000000000000000000000083612b90565b600080806001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663e8e337007f0000000000000000000000000000000000000000000000000000000000000000898888600a6113b7836009613c93565b6113c19190613caa565b600a6113ce8c6009613c93565b6113d89190613caa565b306113e64262127500613dd3565b60405160e08a901b6001600160e01b03191681526001600160a01b039889166004820152968816602488015260448701959095526064860193909352608485019190915260a484015290921660c482015260e4810191909152610104016060604051808303816000875af1158015611462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114869190613de6565b9250925092507fa5cdca7be74e3766c7307cd26228e9451bf1ea4762d3fa95f7f1ae65099ac0d48183856040516114bf93929190613e14565b60405180910390a1604051636eb1769f60e11b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063dd62ed3e906115389030907f000000000000000000000000000000000000000000000000000000000000000090600401613c4a565b602060405180830381865afa158015611555573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115799190613c64565b1115611683576116837f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663dd62ed3e307f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b8152600401611611929190613c4a565b602060405180830381865afa15801561162e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116529190613c64565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190612c2d565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906116d2903090600401613973565b602060405180830381865afa1580156116ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117139190613c64565b11156117e2576117e2611724611b2c565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190611770903090600401613973565b602060405180830381865afa15801561178d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b19190613c64565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190612a59565b604051636eb1769f60e11b81526000906001600160a01b0389169063dd62ed3e906118339030907f000000000000000000000000000000000000000000000000000000000000000090600401613c4a565b602060405180830381865afa158015611850573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118749190613c64565b111561193e5761193e7f0000000000000000000000000000000000000000000000000000000000000000886001600160a01b031663dd62ed3e307f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b81526004016118ec929190613c4a565b602060405180830381865afa158015611909573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192d9190613c64565b6001600160a01b038a169190612c2d565b6040516370a0823160e01b81526000906001600160a01b038916906370a082319061196d903090600401613973565b602060405180830381865afa15801561198a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ae9190613c64565b1115611a3d57611a3d6119bf611b2c565b6040516370a0823160e01b81526001600160a01b038a16906370a08231906119eb903090600401613973565b602060405180830381865afa158015611a08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2c9190613c64565b6001600160a01b038a169190612a59565b6000611a476106ff565b509050868111611ab45760405162461bcd60e51b815260206004820152603260248201527f4f434c5f5a56453a3a70757368546f4c6f636b65724d756c7469282920706f73604482015271744261736973203c3d20707265426173697360701b606482015260840161065b565b611abe8782613e2a565b60036000828254611acf9190613dd3565b90915550506001805550611ae69650505050505050565b505050505050565b611af66129fa565b600054600160a01b900460ff1615611b205760405162461bcd60e51b815260040161065b90613d9e565b611b2a6000612ae7565b565b6000546001600160a01b031690565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316620960456040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bbc9190613c2d565b6001600160a01b0316336001600160a01b031614611c535760405162461bcd60e51b815260206004820152604860248201527f4f434c5f5a56453a3a7570646174654f435459444c2829205f6d736753656e6460448201527f6572282920213d20495a69766f65476c6f62616c735f4f434c5f5a56452847426064820152674c292e5a564c282960c01b608482015260a40161065b565b6001600160a01b038116611cc05760405162461bcd60e51b815260206004820152602e60248201527f4f434c5f5a56453a3a7570646174654f435459444c2829205f4f43545f59444c60448201526d203d3d206164647265737328302960901b606482015260840161065b565b6002546040516001600160a01b03918216918316907f82f2be5c35e63cad0f00b86cbce7d31261fd13665d7c5b210a5828dd5494d05390600090a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b611d256129fa565b60405162461bcd60e51b815260206004820152603c60248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b65724d756c7469455260448201527b433732312829202163616e507573684d756c7469455243373231282960201b606482015260840161065b565b85811015610b8557868682818110611dac57611dac613d29565b9050602002016020810190611dc19190613a33565b6001600160a01b031663b88d4fde611dd7611b2c565b30888886818110611dea57611dea613d29565b90506020020135878787818110611e0357611e03613d29565b9050602002810190611e159190613d3f565b6040518663ffffffff1660e01b8152600401611e35959493929190613cf5565b600060405180830381600087803b158015611e4f57600080fd5b505af1158015611e63573d6000803e3d6000fd5b505050508080611e7290613d85565b915050611d92565b611e826129fa565b611e8a612b37565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611eea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0e9190613c2d565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a439057f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b8152600401611f80929190613c4a565b602060405180830381865afa158015611f9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc19190613c2d565b9050600080611fd285870187613e3d565b91509150826001600160a01b0316876001600160a01b03160361224a576040516370a0823160e01b81526000906001600160a01b038516906370a082319061201e903090600401613973565b602060405180830381865afa15801561203b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061205f9190613c64565b90506120956001600160a01b0385167f000000000000000000000000000000000000000000000000000000000000000083612b90565b6000806001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663baa2abde7f000000000000000000000000000000000000000000000000000000000000000089868989306120fa4262127500613dd3565b6040518863ffffffff1660e01b815260040161211c9796959493929190613e5f565b60408051808303816000875af115801561213a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061215e9190613e9f565b91509150600080516020613fa883398151915283828460405161218393929190613e14565b60405180910390a1604051636eb1769f60e11b81526001600160a01b0387169063dd62ed3e906121d99030907f000000000000000000000000000000000000000000000000000000000000000090600401613c4a565b602060405180830381865afa1580156121f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061221a9190613c64565b1561222757612227613ec3565b612232611724611b2c565b61223d6119bf611b2c565b5050600060035550612255565b6122556119bf611b2c565b5050505061226260018055565b505050565b61226f6129fa565b6040805162461bcd60e51b8152602060048201526024810191909152600080516020613f8883398151915260448201527f5061727469616c2829202163616e50756c6c4d756c74695061727469616c2829606482015260840161065b565b85811015610b855761230b6122e0611b2c565b8686848181106122f2576122f2613d29565b90506020020135898985818110610c9f57610c9f613d29565b8061231581613d85565b9150506122cd565b6123256129fa565b61232d612b37565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561238d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123b19190613c2d565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a439057f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b8152600401612423929190613c4a565b602060405180830381865afa158015612440573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124649190613c2d565b905060008061247585870187613e3d565b91509150826001600160a01b0316886001600160a01b03160361272057600061249c6106ff565b5090506124d36001600160a01b0385167f00000000000000000000000000000000000000000000000000000000000000008a612b90565b6000806001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663baa2abde7f0000000000000000000000000000000000000000000000000000000000000000898d8989306125384262127500613dd3565b6040518863ffffffff1660e01b815260040161255a9796959493929190613e5f565b60408051808303816000875af1158015612578573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061259c9190613e9f565b91509150600080516020613fa88339815191528a82846040516125c193929190613e14565b60405180910390a1604051636eb1769f60e11b81526001600160a01b0387169063dd62ed3e906126179030907f000000000000000000000000000000000000000000000000000000000000000090600401613c4a565b602060405180830381865afa158015612634573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126589190613c64565b1561266557612665613ec3565b612670611724611b2c565b61267b6119bf611b2c565b60006126856106ff565b5090508381106126f65760405162461bcd60e51b815260206004820152603660248201527f4f434c5f5a56453a3a70756c6c46726f6d4c6f636b65725061727469616c282960448201527520706f73744261736973203e3d20707265426173697360501b606482015260840161065b565b6127008185613e2a565b600360008282546127119190613e2a565b9091555061273c945050505050565b61273c61272b611b2c565b6001600160a01b038a169089612a59565b50505050610e1660018055565b6127516129fa565b600054600160a01b900460ff161561277b5760405162461bcd60e51b815260040161065b90613d9e565b6001600160a01b0381166127e15760405162461bcd60e51b815260206004820152603960248201526000805160206140288339815191526044820152782829206e65774f776e6572203d3d206164647265737328302960381b606482015260840161065b565b610ed681612ae7565b6127f26129fa565b60405162461bcd60e51b815260206004820152603460248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b6572455243313135356044820152732829202163616e5075736845524331313535282960601b606482015260840161065b565b6040516335d2155560e11b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636ba42aaa906128a3903390600401613973565b602060405180830381865afa1580156128c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128e49190613ed9565b156129625761a8c06005546128f99190613e2a565b421161295d5760405162461bcd60e51b815260206004820152604b6024820152600080516020613fc88339815191526044820152600080516020613fe883398151915260648201526a202d20313220686f75727360a81b608482015260a40161065b565b6129b7565b60055442116129b7576040805162461bcd60e51b8152602060048201526024810191909152600080516020613fc88339815191526044820152600080516020613fe8833981519152606482015260840161065b565b6000806129c26106ff565b915091506003548211156129da576129da8282612d29565b6129e26106ff565b506003556129f34262278d00613dd3565b6005555050565b33612a03611b2c565b6001600160a01b031614611b2a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161065b565b6122628363a9059cbb60e01b8484604051602401612a78929190613efb565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613420565b6040516001600160a01b0380851660248301528316604482015260648101829052610e169085906323b872dd60e01b90608401612a78565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403612b895760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161065b565b6002600155565b600081846001600160a01b031663dd62ed3e30866040518363ffffffff1660e01b8152600401612bc1929190613c4a565b602060405180830381865afa158015612bde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c029190613c64565b612c0c9190613dd3565b9050610e168463095ea7b360e01b8584604051602401612a78929190613efb565b604051636eb1769f60e11b81526000906001600160a01b0385169063dd62ed3e90612c5e9030908790600401613c4a565b602060405180830381865afa158015612c7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c9f9190613c64565b905081811015612d035760405162461bcd60e51b815260206004820152602960248201527f5361666545524332303a2064656372656173656420616c6c6f77616e63652062604482015268656c6f77207a65726f60b81b606482015260840161065b565b60405182820390610cd690869063095ea7b360e01b90612a789088908690602401613efb565b612d31612b37565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612db59190613c2d565b9050600061271084600454612710612dcd9190613e2a565b8560035488612ddc9190613e2a565b612de69190613c93565b612df09190613c93565b612dfa9190613caa565b612e049190613caa565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a439057f0000000000000000000000000000000000000000000000000000000000000000856040518363ffffffff1660e01b8152600401612e76929190613c4a565b602060405180830381865afa158015612e93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eb79190613c2d565b9050612eed6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612b90565b6000806001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663baa2abde7f00000000000000000000000000000000000000000000000000000000000000008787858030612f524262127500613dd3565b6040518863ffffffff1660e01b8152600401612f749796959493929190613e5f565b60408051808303816000875af1158015612f92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fb69190613e9f565b91509150600080516020613fa8833981519152848284604051612fdb93929190613e14565b60405180910390a1604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e906130319030907f000000000000000000000000000000000000000000000000000000000000000090600401613c4a565b602060405180830381865afa15801561304e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130729190613c64565b1561307f5761307f613ec3565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906130ce903090600401613973565b602060405180830381865afa1580156130eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061310f9190613c64565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f2ec253acc0d75b9476cdb2c2032d960c699aae29d5176adaafbe7c983de498c98260405161316c91815260200190565b60405180910390a27f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166372d6724a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156131d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131f69190613c2d565b6001600160a01b0316635df8d1686040518163ffffffff1660e01b8152600401602060405180830381865afa158015613233573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132579190613c2d565b6001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146132ce576002546132c9906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683612a59565b613384565b6133847f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166372d6724a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561332f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133539190613c2d565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169083612a59565b61340d61338f611b2c565b6040516370a0823160e01b81526001600160a01b038916906370a08231906133bb903090600401613973565b602060405180830381865afa1580156133d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133fc9190613c64565b6001600160a01b0389169190612a59565b50505050505061341c60018055565b5050565b6000613475826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134f29092919063ffffffff16565b80519091501561226257808060200190518101906134939190613ed9565b6122625760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161065b565b6060610a31848460008585600080866001600160a01b031685876040516135199190613f38565b60006040518083038185875af1925050503d8060008114613556576040519150601f19603f3d011682016040523d82523d6000602084013e61355b565b606091505b509150915061356c87838387613577565b979650505050505050565b606083156135e65782516000036135df576001600160a01b0385163b6135df5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161065b565b5081610a31565b610a3183838151156135fb5781518083602001fd5b8060405162461bcd60e51b815260040161065b9190613f54565b60006020828403121561362757600080fd5b81356001600160e01b03198116811461363f57600080fd5b9392505050565b60006020828403121561365857600080fd5b5035919050565b6001600160a01b0381168114610ed657600080fd5b60008083601f84011261368657600080fd5b5081356001600160401b0381111561369d57600080fd5b6020830191508360208285010111156136b557600080fd5b9250929050565b600080600080606085870312156136d257600080fd5b84356136dd8161365f565b93506020850135925060408501356001600160401b038111156136ff57600080fd5b61370b87828801613674565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561375557613755613717565b604052919050565b600082601f83011261376e57600080fd5b81356001600160401b0381111561378757613787613717565b61379a601f8201601f191660200161372d565b8181528460208386010111156137af57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080608085870312156137e257600080fd5b84356137ed8161365f565b935060208501356137fd8161365f565b92506040850135915060608501356001600160401b0381111561381f57600080fd5b61382b8782880161375d565b91505092959194509250565b60008083601f84011261384957600080fd5b5081356001600160401b0381111561386057600080fd5b6020830191508360208260051b85010111156136b557600080fd5b6000806000806000806060878903121561389457600080fd5b86356001600160401b03808211156138ab57600080fd5b6138b78a838b01613837565b909850965060208901359150808211156138d057600080fd5b6138dc8a838b01613837565b909650945060408901359150808211156138f557600080fd5b5061390289828a01613837565b979a9699509497509295939492505050565b6000806000806040858703121561392a57600080fd5b84356001600160401b038082111561394157600080fd5b61394d88838901613837565b9096509450602087013591508082111561396657600080fd5b5061370b87828801613837565b6001600160a01b0391909116815260200190565b60008060008060008060006080888a0312156139a257600080fd5b87356139ad8161365f565b965060208801356001600160401b03808211156139c957600080fd5b6139d58b838c01613837565b909850965060408a01359150808211156139ee57600080fd5b6139fa8b838c01613837565b909650945060608a0135915080821115613a1357600080fd5b50613a208a828b01613674565b989b979a50959850939692959293505050565b600060208284031215613a4557600080fd5b813561363f8161365f565b600082601f830112613a6157600080fd5b813560206001600160401b03821115613a7c57613a7c613717565b8160051b613a8b82820161372d565b9283528481018201928281019087851115613aa557600080fd5b83870192505b8483101561356c57823582529183019190830190613aab565b600080600080600060a08688031215613adc57600080fd5b8535613ae78161365f565b94506020860135613af78161365f565b935060408601356001600160401b0380821115613b1357600080fd5b613b1f89838a01613a50565b94506060880135915080821115613b3557600080fd5b613b4189838a01613a50565b93506080880135915080821115613b5757600080fd5b50613b648882890161375d565b9150509295509295909350565b600080600060408486031215613b8657600080fd5b8335613b918161365f565b925060208401356001600160401b03811115613bac57600080fd5b613bb886828701613674565b9497909650939450505050565b600080600080600060a08688031215613bdd57600080fd5b8535613be88161365f565b94506020860135613bf88161365f565b9350604086013592506060860135915060808601356001600160401b03811115613c2157600080fd5b613b648882890161375d565b600060208284031215613c3f57600080fd5b815161363f8161365f565b6001600160a01b0392831681529116602082015260400190565b600060208284031215613c7657600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761054557610545613c7d565b600082613cc757634e487b7160e01b600052601260045260246000fd5b500490565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905260009061356c9083018486613ccc565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112613d5657600080fd5b8301803591506001600160401b03821115613d7057600080fd5b6020019150368190038213156136b557600080fd5b600060018201613d9757613d97613c7d565b5060010190565b6020808252818101527f4f776e61626c654c6f636b65643a3a756e6c6f636b65642829206c6f636b6564604082015260600190565b8082018082111561054557610545613c7d565b600080600060608486031215613dfb57600080fd5b8351925060208401519150604084015190509250925092565b9283526020830191909152604082015260600190565b8181038181111561054557610545613c7d565b60008060408385031215613e5057600080fd5b50508035926020909101359150565b6001600160a01b039788168152958716602087015260408601949094526060850192909252608084015290921660a082015260c081019190915260e00190565b60008060408385031215613eb257600080fd5b505080516020909101519092909150565b634e487b7160e01b600052600160045260246000fd5b600060208284031215613eeb57600080fd5b8151801515811461363f57600080fd5b6001600160a01b03929092168252602082015260400190565b60005b83811015613f2f578181015183820152602001613f17565b50506000910152565b60008251613f4a818460208701613f14565b9190910192915050565b6020815260008251806020840152613f73816040850160208701613f14565b601f01601f1916919091016040019291505056fe5a69766f654c6f636b65723a3a70756c6c46726f6d4c6f636b65724d756c7469f6b22913402136a40c9190d44d677ef54b4041e13ee42148c1554638ae454f394f434c5f5a56453a3a666f72776172645969656c64282920626c6f636b2e74696d657374616d70203c3d206e6578745969656c64446973747269627574696f6e4f434c5f5a56453a3a757064617465436f6d706f756e64696e675261746542494f776e61626c654c6f636b65643a3a7472616e736665724f776e657273686970a26469706673582212208076d3f200f614b3dadcbf6ebc81025d8cfd5cd334d20f3397fb238af195e2e564736f6c63430008110033000000000000000000000000b65a66621d7de34afec9b9ac0755133051550dd7000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f0000000000000000000000006172f8103d156c49532e610232d33f0796e6ef87

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061020f5760003560e01c806301ffc9a714610214578063082b00971461023c5780630abf922014610251578063120521761461026e578063150b7a021461028157806315e98744146102ad5780631852b383146102c057806319165874146102c75780631d9389e9146102da578063215cccdd146102ed5780632f08d48b146102c05780633c117244146102c05780633ce8d432146102f45780633eda81ad146102c0578063422b201814610328578063423156321461033b57806358289c7e1461034e57806364c77735146102ed5780636a7ab9af14610361578063715018a6146103745780637efee3a81461037c5780638b648ee2146102c05780638da5cb5b14610393578063a4a3e79d146102ed578063a785a3a81461039b578063b0607cf8146102c0578063b892bcc0146103ae578063bc197c81146103c1578063c45a0155146103e0578063cd45e1fb14610407578063cf10b7ab146102c0578063cf3090121461041a578063d284af941461042e578063d8f2a78b14610441578063dd913bdb146102c0578063e7f44629146102c0578063e94eafe114610454578063f1641cbe1461047b578063f23a6e611461048e578063f2fde38b146104ad578063f385cecb146104c0578063f887ea40146104c9578063f988dc3f146104f0578063fd76f59d146104f9578063ff4a67611461050c575b600080fd5b610227610222366004613615565b610514565b60405190151581526020015b60405180910390f35b61024f61024a366004613646565b61054b565b005b6102596106ff565b60408051928352602083019190915201610233565b61024f61027c3660046136bc565b6109bb565b61029461028f3660046137cc565b610a28565b6040516001600160e01b03199091168152602001610233565b61024f6102bb36600461387b565b610a39565b6000610227565b61024f6102d5366004613914565b610b8e565b61024f6102e83660046136bc565b610cdd565b6001610227565b61031b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da6681565b6040516102339190613973565b61024f610336366004613987565b610d48565b61024f6103493660046136bc565b610db7565b61024f61035c366004613a33565b610e1c565b61024f61036f36600461387b565b610ed9565b61024f611aee565b61038560045481565b604051908152602001610233565b61031b611b2c565b61024f6103a9366004613a33565b611b3b565b61024f6103bc36600461387b565b611d1d565b6102946103cf366004613ac4565b63bc197c8160e01b95945050505050565b61031b7f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b61024f610415366004613b71565b611e7a565b60005461022790600160a01b900460ff1681565b61024f61043c36600461387b565b612267565b61024f61044f3660046136bc565b61231d565b61031b7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b60025461031b906001600160a01b031681565b61029461049c366004613bc5565b63f23a6e6160e01b95945050505050565b61024f6104bb366004613a33565b612749565b61038560035481565b61031b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b61038560055481565b61024f610507366004613987565b6127ea565b61024f612857565b60006001600160e01b03198216630271189760e51b148061054557506301ffc9a760e01b6001600160e01b03198316145b92915050565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663c76d41c86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cd9190613c2d565b6001600160a01b0316336001600160a01b0316146106645760405162461bcd60e51b8152602060048201526055602482015260008051602061400883398151915260448201527f50532829205f6d736753656e646572282920213d20495a69766f65476c6f62616064820152746c735f4f434c5f5a56452847424c292e544c43282960581b608482015260a4015b60405180910390fd5b6127108111156106be5760405162461bcd60e51b815260206004820152603160248201526000805160206140088339815191526044820152705053282920726174696f203e204249505360781b606482015260840161065b565b60045460408051918252602082018390527f57bfd573022baa4c3a1987e85a21dd1c49512aa4068ab6fa93c8747e1e46f5c5910160405180910390a1600455565b60008060007f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6001600160a01b031663e6a439057f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb487f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d69190613c2d565b6040518363ffffffff1660e01b81526004016107f3929190613c4a565b602060405180830381865afa158015610810573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108349190613c2d565b905060007f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03166370a08231836040518263ffffffff1660e01b81526004016108849190613973565b602060405180830381865afa1580156108a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c59190613c64565b90506000826001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610907573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092b9190613c64565b6040516370a0823160e01b81529091506001600160a01b038416906370a082319061095a903090600401613973565b602060405180830381865afa158015610977573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099b9190613c64565b9350806109a88386613c93565b6109b29190613caa565b94505050509091565b6109c36129fa565b60405162461bcd60e51b815260206004820152603460248201527f5a69766f654c6f636b65723a3a70756c6c46726f6d4c6f636b65724552433732604482015273312829202163616e50756c6c455243373231282960601b606482015260840161065b565b630a85bd0160e11b5b949350505050565b610a416129fa565b60405162461bcd60e51b815260206004820152603e6024820152600080516020613f8883398151915260448201527f4552433732312829202163616e50756c6c4d756c746945524337323128290000606482015260840161065b565b85811015610b8557868682818110610ab757610ab7613d29565b9050602002016020810190610acc9190613a33565b6001600160a01b031663b88d4fde30610ae3611b2c565b888886818110610af557610af5613d29565b90506020020135878787818110610b0e57610b0e613d29565b9050602002810190610b209190613d3f565b6040518663ffffffff1660e01b8152600401610b40959493929190613cf5565b600060405180830381600087803b158015610b5a57600080fd5b505af1158015610b6e573d6000803e3d6000fd5b505050508080610b7d90613d85565b915050610a9d565b50505050505050565b610b966129fa565b60405162461bcd60e51b81526020600482015260326024820152600080516020613f888339815191526044820152712829202163616e50756c6c4d756c7469282960701b606482015260840161065b565b83811015610cd657610cc4610bfa611b2c565b868684818110610c0c57610c0c613d29565b9050602002016020810190610c219190613a33565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610c4c9190613973565b602060405180830381865afa158015610c69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8d9190613c64565b878785818110610c9f57610c9f613d29565b9050602002016020810190610cb49190613a33565b6001600160a01b03169190612a59565b80610cce81613d85565b915050610be7565b5050505050565b610ce56129fa565b60405162461bcd60e51b815260206004820152603260248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b65724552433732312860448201527129202163616e50757368455243373231282960701b606482015260840161065b565b610d506129fa565b60405162461bcd60e51b815260206004820152603660248201527f5a69766f654c6f636b65723a3a70756c6c46726f6d4c6f636b6572455243313160448201527535352829202163616e50756c6c45524331313535282960501b606482015260840161065b565b610dbf6129fa565b60405162461bcd60e51b815260206004820152602660248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b65722829202163616e60448201526550757368282960d01b606482015260840161065b565b50505050565b610e246129fa565b600054600160a01b900460ff1615610e4e5760405162461bcd60e51b815260040161065b90613d9e565b6001600160a01b038116610eba576040805162461bcd60e51b815260206004820152602481019190915260008051602061402883398151915260448201527f416e644c6f636b2829206e65774f776e6572203d3d2061646472657373283029606482015260840161065b565b6000805460ff60a01b1916600160a01b179055610ed681612ae7565b50565b610ee16129fa565b610ee9612b37565b60007f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6d9190613c2d565b90507f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b031687876000818110610fac57610fac613d29565b9050602002016020810190610fc19190613a33565b6001600160a01b031614801561100f5750806001600160a01b031687876001818110610fef57610fef613d29565b90506020020160208101906110049190613a33565b6001600160a01b0316145b6110915760405162461bcd60e51b815260206004820152604760248201527f4f434c5f5a56453a3a70757368546f4c6f636b65724d756c746928292061737360448201527f6574735b305d20213d20706169724173736574207c7c206173736574735b315d60648201526620213d205a564560c81b608482015260a40161065b565b60005b600281101561119457629896808686838181106110b3576110b3613d29565b9050602002013510156111255760405162461bcd60e51b815260206004820152603460248201527f4f434c5f5a56453a3a70757368546f4c6f636b65724d756c7469282920616d6f6044820152733ab73a39adb4ae901e101898101510189815151b60611b606482015260840161065b565b611182611130611b2c565b3088888581811061114357611143613d29565b905060200201358b8b8681811061115c5761115c613d29565b90506020020160208101906111719190613a33565b6001600160a01b0316929190612aaf565b8061118c81613d85565b915050611094565b506005546000036111b0576111ac4262278d00613dd3565b6005555b60006003546000146111c8576111c46106ff565b5090505b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4816906370a0823190611217903090600401613973565b602060405180830381865afa158015611234573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112589190613c64565b90506000836001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016112889190613973565b602060405180830381865afa1580156112a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c99190613c64565b905061131f6001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48167f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612b90565b6113536001600160a01b0385167f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d83612b90565b600080806001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1663e8e337007f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48898888600a6113b7836009613c93565b6113c19190613caa565b600a6113ce8c6009613c93565b6113d89190613caa565b306113e64262127500613dd3565b60405160e08a901b6001600160e01b03191681526001600160a01b039889166004820152968816602488015260448701959095526064860193909352608485019190915260a484015290921660c482015260e4810191909152610104016060604051808303816000875af1158015611462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114869190613de6565b9250925092507fa5cdca7be74e3766c7307cd26228e9451bf1ea4762d3fa95f7f1ae65099ac0d48183856040516114bf93929190613e14565b60405180910390a1604051636eb1769f60e11b81526000906001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48169063dd62ed3e906115389030907f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d90600401613c4a565b602060405180830381865afa158015611555573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115799190613c64565b1115611683576116837f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b031663dd62ed3e307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6040518363ffffffff1660e01b8152600401611611929190613c4a565b602060405180830381865afa15801561162e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116529190613c64565b6001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48169190612c2d565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4816906370a08231906116d2903090600401613973565b602060405180830381865afa1580156116ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117139190613c64565b11156117e2576117e2611724611b2c565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4816906370a0823190611770903090600401613973565b602060405180830381865afa15801561178d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b19190613c64565b6001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48169190612a59565b604051636eb1769f60e11b81526000906001600160a01b0389169063dd62ed3e906118339030907f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d90600401613c4a565b602060405180830381865afa158015611850573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118749190613c64565b111561193e5761193e7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d886001600160a01b031663dd62ed3e307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6040518363ffffffff1660e01b81526004016118ec929190613c4a565b602060405180830381865afa158015611909573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192d9190613c64565b6001600160a01b038a169190612c2d565b6040516370a0823160e01b81526000906001600160a01b038916906370a082319061196d903090600401613973565b602060405180830381865afa15801561198a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ae9190613c64565b1115611a3d57611a3d6119bf611b2c565b6040516370a0823160e01b81526001600160a01b038a16906370a08231906119eb903090600401613973565b602060405180830381865afa158015611a08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2c9190613c64565b6001600160a01b038a169190612a59565b6000611a476106ff565b509050868111611ab45760405162461bcd60e51b815260206004820152603260248201527f4f434c5f5a56453a3a70757368546f4c6f636b65724d756c7469282920706f73604482015271744261736973203c3d20707265426173697360701b606482015260840161065b565b611abe8782613e2a565b60036000828254611acf9190613dd3565b90915550506001805550611ae69650505050505050565b505050505050565b611af66129fa565b600054600160a01b900460ff1615611b205760405162461bcd60e51b815260040161065b90613d9e565b611b2a6000612ae7565b565b6000546001600160a01b031690565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316620960456040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bbc9190613c2d565b6001600160a01b0316336001600160a01b031614611c535760405162461bcd60e51b815260206004820152604860248201527f4f434c5f5a56453a3a7570646174654f435459444c2829205f6d736753656e6460448201527f6572282920213d20495a69766f65476c6f62616c735f4f434c5f5a56452847426064820152674c292e5a564c282960c01b608482015260a40161065b565b6001600160a01b038116611cc05760405162461bcd60e51b815260206004820152602e60248201527f4f434c5f5a56453a3a7570646174654f435459444c2829205f4f43545f59444c60448201526d203d3d206164647265737328302960901b606482015260840161065b565b6002546040516001600160a01b03918216918316907f82f2be5c35e63cad0f00b86cbce7d31261fd13665d7c5b210a5828dd5494d05390600090a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b611d256129fa565b60405162461bcd60e51b815260206004820152603c60248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b65724d756c7469455260448201527b433732312829202163616e507573684d756c7469455243373231282960201b606482015260840161065b565b85811015610b8557868682818110611dac57611dac613d29565b9050602002016020810190611dc19190613a33565b6001600160a01b031663b88d4fde611dd7611b2c565b30888886818110611dea57611dea613d29565b90506020020135878787818110611e0357611e03613d29565b9050602002810190611e159190613d3f565b6040518663ffffffff1660e01b8152600401611e35959493929190613cf5565b600060405180830381600087803b158015611e4f57600080fd5b505af1158015611e63573d6000803e3d6000fd5b505050508080611e7290613d85565b915050611d92565b611e826129fa565b611e8a612b37565b60007f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611eea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0e9190613c2d565b905060007f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6001600160a01b031663e6a439057f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48846040518363ffffffff1660e01b8152600401611f80929190613c4a565b602060405180830381865afa158015611f9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc19190613c2d565b9050600080611fd285870187613e3d565b91509150826001600160a01b0316876001600160a01b03160361224a576040516370a0823160e01b81526000906001600160a01b038516906370a082319061201e903090600401613973565b602060405180830381865afa15801561203b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061205f9190613c64565b90506120956001600160a01b0385167f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d83612b90565b6000806001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1663baa2abde7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4889868989306120fa4262127500613dd3565b6040518863ffffffff1660e01b815260040161211c9796959493929190613e5f565b60408051808303816000875af115801561213a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061215e9190613e9f565b91509150600080516020613fa883398151915283828460405161218393929190613e14565b60405180910390a1604051636eb1769f60e11b81526001600160a01b0387169063dd62ed3e906121d99030907f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d90600401613c4a565b602060405180830381865afa1580156121f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061221a9190613c64565b1561222757612227613ec3565b612232611724611b2c565b61223d6119bf611b2c565b5050600060035550612255565b6122556119bf611b2c565b5050505061226260018055565b505050565b61226f6129fa565b6040805162461bcd60e51b8152602060048201526024810191909152600080516020613f8883398151915260448201527f5061727469616c2829202163616e50756c6c4d756c74695061727469616c2829606482015260840161065b565b85811015610b855761230b6122e0611b2c565b8686848181106122f2576122f2613d29565b90506020020135898985818110610c9f57610c9f613d29565b8061231581613d85565b9150506122cd565b6123256129fa565b61232d612b37565b60007f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561238d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123b19190613c2d565b905060007f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6001600160a01b031663e6a439057f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48846040518363ffffffff1660e01b8152600401612423929190613c4a565b602060405180830381865afa158015612440573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124649190613c2d565b905060008061247585870187613e3d565b91509150826001600160a01b0316886001600160a01b03160361272057600061249c6106ff565b5090506124d36001600160a01b0385167f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8a612b90565b6000806001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1663baa2abde7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48898d8989306125384262127500613dd3565b6040518863ffffffff1660e01b815260040161255a9796959493929190613e5f565b60408051808303816000875af1158015612578573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061259c9190613e9f565b91509150600080516020613fa88339815191528a82846040516125c193929190613e14565b60405180910390a1604051636eb1769f60e11b81526001600160a01b0387169063dd62ed3e906126179030907f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d90600401613c4a565b602060405180830381865afa158015612634573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126589190613c64565b1561266557612665613ec3565b612670611724611b2c565b61267b6119bf611b2c565b60006126856106ff565b5090508381106126f65760405162461bcd60e51b815260206004820152603660248201527f4f434c5f5a56453a3a70756c6c46726f6d4c6f636b65725061727469616c282960448201527520706f73744261736973203e3d20707265426173697360501b606482015260840161065b565b6127008185613e2a565b600360008282546127119190613e2a565b9091555061273c945050505050565b61273c61272b611b2c565b6001600160a01b038a169089612a59565b50505050610e1660018055565b6127516129fa565b600054600160a01b900460ff161561277b5760405162461bcd60e51b815260040161065b90613d9e565b6001600160a01b0381166127e15760405162461bcd60e51b815260206004820152603960248201526000805160206140288339815191526044820152782829206e65774f776e6572203d3d206164647265737328302960381b606482015260840161065b565b610ed681612ae7565b6127f26129fa565b60405162461bcd60e51b815260206004820152603460248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b6572455243313135356044820152732829202163616e5075736845524331313535282960601b606482015260840161065b565b6040516335d2155560e11b81527f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031690636ba42aaa906128a3903390600401613973565b602060405180830381865afa1580156128c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128e49190613ed9565b156129625761a8c06005546128f99190613e2a565b421161295d5760405162461bcd60e51b815260206004820152604b6024820152600080516020613fc88339815191526044820152600080516020613fe883398151915260648201526a202d20313220686f75727360a81b608482015260a40161065b565b6129b7565b60055442116129b7576040805162461bcd60e51b8152602060048201526024810191909152600080516020613fc88339815191526044820152600080516020613fe8833981519152606482015260840161065b565b6000806129c26106ff565b915091506003548211156129da576129da8282612d29565b6129e26106ff565b506003556129f34262278d00613dd3565b6005555050565b33612a03611b2c565b6001600160a01b031614611b2a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161065b565b6122628363a9059cbb60e01b8484604051602401612a78929190613efb565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613420565b6040516001600160a01b0380851660248301528316604482015260648101829052610e169085906323b872dd60e01b90608401612a78565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403612b895760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161065b565b6002600155565b600081846001600160a01b031663dd62ed3e30866040518363ffffffff1660e01b8152600401612bc1929190613c4a565b602060405180830381865afa158015612bde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c029190613c64565b612c0c9190613dd3565b9050610e168463095ea7b360e01b8584604051602401612a78929190613efb565b604051636eb1769f60e11b81526000906001600160a01b0385169063dd62ed3e90612c5e9030908790600401613c4a565b602060405180830381865afa158015612c7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c9f9190613c64565b905081811015612d035760405162461bcd60e51b815260206004820152602960248201527f5361666545524332303a2064656372656173656420616c6c6f77616e63652062604482015268656c6f77207a65726f60b81b606482015260840161065b565b60405182820390610cd690869063095ea7b360e01b90612a789088908690602401613efb565b612d31612b37565b60007f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612db59190613c2d565b9050600061271084600454612710612dcd9190613e2a565b8560035488612ddc9190613e2a565b612de69190613c93565b612df09190613c93565b612dfa9190613caa565b612e049190613caa565b905060007f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6001600160a01b031663e6a439057f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48856040518363ffffffff1660e01b8152600401612e76929190613c4a565b602060405180830381865afa158015612e93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eb79190613c2d565b9050612eed6001600160a01b0382167f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612b90565b6000806001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1663baa2abde7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488787858030612f524262127500613dd3565b6040518863ffffffff1660e01b8152600401612f749796959493929190613e5f565b60408051808303816000875af1158015612f92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fb69190613e9f565b91509150600080516020613fa8833981519152848284604051612fdb93929190613e14565b60405180910390a1604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e906130319030907f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d90600401613c4a565b602060405180830381865afa15801561304e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130729190613c64565b1561307f5761307f613ec3565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4816906370a08231906130ce903090600401613973565b602060405180830381865afa1580156130eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061310f9190613c64565b90507f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03167f2ec253acc0d75b9476cdb2c2032d960c699aae29d5176adaafbe7c983de498c98260405161316c91815260200190565b60405180910390a27f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b03166372d6724a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156131d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131f69190613c2d565b6001600160a01b0316635df8d1686040518163ffffffff1660e01b8152600401602060405180830381865afa158015613233573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132579190613c2d565b6001600160a01b03167f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b0316146132ce576002546132c9906001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488116911683612a59565b613384565b6133847f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b03166372d6724a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561332f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133539190613c2d565b6001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48169083612a59565b61340d61338f611b2c565b6040516370a0823160e01b81526001600160a01b038916906370a08231906133bb903090600401613973565b602060405180830381865afa1580156133d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133fc9190613c64565b6001600160a01b0389169190612a59565b50505050505061341c60018055565b5050565b6000613475826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134f29092919063ffffffff16565b80519091501561226257808060200190518101906134939190613ed9565b6122625760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161065b565b6060610a31848460008585600080866001600160a01b031685876040516135199190613f38565b60006040518083038185875af1925050503d8060008114613556576040519150601f19603f3d011682016040523d82523d6000602084013e61355b565b606091505b509150915061356c87838387613577565b979650505050505050565b606083156135e65782516000036135df576001600160a01b0385163b6135df5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161065b565b5081610a31565b610a3183838151156135fb5781518083602001fd5b8060405162461bcd60e51b815260040161065b9190613f54565b60006020828403121561362757600080fd5b81356001600160e01b03198116811461363f57600080fd5b9392505050565b60006020828403121561365857600080fd5b5035919050565b6001600160a01b0381168114610ed657600080fd5b60008083601f84011261368657600080fd5b5081356001600160401b0381111561369d57600080fd5b6020830191508360208285010111156136b557600080fd5b9250929050565b600080600080606085870312156136d257600080fd5b84356136dd8161365f565b93506020850135925060408501356001600160401b038111156136ff57600080fd5b61370b87828801613674565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561375557613755613717565b604052919050565b600082601f83011261376e57600080fd5b81356001600160401b0381111561378757613787613717565b61379a601f8201601f191660200161372d565b8181528460208386010111156137af57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080608085870312156137e257600080fd5b84356137ed8161365f565b935060208501356137fd8161365f565b92506040850135915060608501356001600160401b0381111561381f57600080fd5b61382b8782880161375d565b91505092959194509250565b60008083601f84011261384957600080fd5b5081356001600160401b0381111561386057600080fd5b6020830191508360208260051b85010111156136b557600080fd5b6000806000806000806060878903121561389457600080fd5b86356001600160401b03808211156138ab57600080fd5b6138b78a838b01613837565b909850965060208901359150808211156138d057600080fd5b6138dc8a838b01613837565b909650945060408901359150808211156138f557600080fd5b5061390289828a01613837565b979a9699509497509295939492505050565b6000806000806040858703121561392a57600080fd5b84356001600160401b038082111561394157600080fd5b61394d88838901613837565b9096509450602087013591508082111561396657600080fd5b5061370b87828801613837565b6001600160a01b0391909116815260200190565b60008060008060008060006080888a0312156139a257600080fd5b87356139ad8161365f565b965060208801356001600160401b03808211156139c957600080fd5b6139d58b838c01613837565b909850965060408a01359150808211156139ee57600080fd5b6139fa8b838c01613837565b909650945060608a0135915080821115613a1357600080fd5b50613a208a828b01613674565b989b979a50959850939692959293505050565b600060208284031215613a4557600080fd5b813561363f8161365f565b600082601f830112613a6157600080fd5b813560206001600160401b03821115613a7c57613a7c613717565b8160051b613a8b82820161372d565b9283528481018201928281019087851115613aa557600080fd5b83870192505b8483101561356c57823582529183019190830190613aab565b600080600080600060a08688031215613adc57600080fd5b8535613ae78161365f565b94506020860135613af78161365f565b935060408601356001600160401b0380821115613b1357600080fd5b613b1f89838a01613a50565b94506060880135915080821115613b3557600080fd5b613b4189838a01613a50565b93506080880135915080821115613b5757600080fd5b50613b648882890161375d565b9150509295509295909350565b600080600060408486031215613b8657600080fd5b8335613b918161365f565b925060208401356001600160401b03811115613bac57600080fd5b613bb886828701613674565b9497909650939450505050565b600080600080600060a08688031215613bdd57600080fd5b8535613be88161365f565b94506020860135613bf88161365f565b9350604086013592506060860135915060808601356001600160401b03811115613c2157600080fd5b613b648882890161375d565b600060208284031215613c3f57600080fd5b815161363f8161365f565b6001600160a01b0392831681529116602082015260400190565b600060208284031215613c7657600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761054557610545613c7d565b600082613cc757634e487b7160e01b600052601260045260246000fd5b500490565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905260009061356c9083018486613ccc565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112613d5657600080fd5b8301803591506001600160401b03821115613d7057600080fd5b6020019150368190038213156136b557600080fd5b600060018201613d9757613d97613c7d565b5060010190565b6020808252818101527f4f776e61626c654c6f636b65643a3a756e6c6f636b65642829206c6f636b6564604082015260600190565b8082018082111561054557610545613c7d565b600080600060608486031215613dfb57600080fd5b8351925060208401519150604084015190509250925092565b9283526020830191909152604082015260600190565b8181038181111561054557610545613c7d565b60008060408385031215613e5057600080fd5b50508035926020909101359150565b6001600160a01b039788168152958716602087015260408601949094526060850192909252608084015290921660a082015260c081019190915260e00190565b60008060408385031215613eb257600080fd5b505080516020909101519092909150565b634e487b7160e01b600052600160045260246000fd5b600060208284031215613eeb57600080fd5b8151801515811461363f57600080fd5b6001600160a01b03929092168252602082015260400190565b60005b83811015613f2f578181015183820152602001613f17565b50506000910152565b60008251613f4a818460208701613f14565b9190910192915050565b6020815260008251806020840152613f73816040850160208701613f14565b601f01601f1916919091016040019291505056fe5a69766f654c6f636b65723a3a70756c6c46726f6d4c6f636b65724d756c7469f6b22913402136a40c9190d44d677ef54b4041e13ee42148c1554638ae454f394f434c5f5a56453a3a666f72776172645969656c64282920626c6f636b2e74696d657374616d70203c3d206e6578745969656c64446973747269627574696f6e4f434c5f5a56453a3a757064617465436f6d706f756e64696e675261746542494f776e61626c654c6f636b65643a3a7472616e736665724f776e657273686970a26469706673582212208076d3f200f614b3dadcbf6ebc81025d8cfd5cd334d20f3397fb238af195e2e564736f6c63430008110033

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

000000000000000000000000b65a66621d7de34afec9b9ac0755133051550dd7000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f0000000000000000000000006172f8103d156c49532e610232d33f0796e6ef87

-----Decoded View---------------
Arg [0] : DAO (address): 0xB65a66621D7dE34afec9b9AC0755133051550dD7
Arg [1] : _GBL (address): 0xEa537eB0bBcC7783bDF7c595bF9371984583dA66
Arg [2] : _pairAsset (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [3] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [4] : _factory (address): 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f
Arg [5] : _OCT_YDL (address): 0x6172f8103d156c49532E610232d33F0796E6EF87

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000b65a66621d7de34afec9b9ac0755133051550dd7
Arg [1] : 000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66
Arg [2] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [3] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [4] : 0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
Arg [5] : 0000000000000000000000006172f8103d156c49532e610232d33f0796e6ef87


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

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.