ETH Price: $3,008.91 (-2.62%)

Contract

0x6282b480F0b989F0B603f821a840d964bc4715A8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deposit Senior228822162025-07-09 14:27:11131 days ago1752071231IN
0x6282b480...4bc4715A8
0 ETH0.001038647.29397797
Deposit Senior227747552025-06-24 14:01:47146 days ago1750773707IN
0x6282b480...4bc4715A8
0 ETH0.0018328911.49164996
Deposit Senior226496302025-06-07 2:09:35163 days ago1749262175IN
0x6282b480...4bc4715A8
0 ETH0.000181221.18662842
Deposit Senior225401642025-05-22 18:19:47179 days ago1747937987IN
0x6282b480...4bc4715A8
0 ETH0.0019423411.65752355
Deposit Senior220410192025-03-13 22:45:11248 days ago1741905911IN
0x6282b480...4bc4715A8
0 ETH0.000257461.51629708
Deposit Senior216533092025-01-18 18:56:47303 days ago1737226607IN
0x6282b480...4bc4715A8
0 ETH0.0024372415.96018276
Deposit Senior213203882024-12-03 7:08:47349 days ago1733209727IN
0x6282b480...4bc4715A8
0 ETH0.0030648220.06984115
Transfer Ownersh...203594622024-07-22 3:43:23483 days ago1721619803IN
0x6282b480...4bc4715A8
0 ETH0.0002942310

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
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:
ZivoeTranches

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";
import "../lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";

interface IERC20Mintable_ZivoeTranches {
    /// @notice Creates ERC20 tokens and assigns them to an address, increasing the total supply.
    /// @param account The address to send the newly created tokens to.
    /// @param amount The amount of tokens to create and send.
    function mint(address account, uint256 amount) external;
}

interface IZivoeGlobals_ZivoeTranches {
    /// @notice Returns the address of the ZivoeDAO contract.
    function DAO() external view returns (address);

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

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

    /// @notice Returns the address of the ZivoeTrancheToken ($zSTT) contract.
    function zSTT() external view returns (address);

    /// @notice Returns the address of the ZivoeTrancheToken ($zJTT) contract.
    function zJTT() 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 total circulating supply of zSTT and zJTT, accounting for defaults via markdowns.
    /// @return zSTTSupply zSTT.totalSupply() adjusted for defaults.
    /// @return zJTTSupply zJTT.totalSupply() adjusted for defaults.
    function adjustedSupplies() external view returns (uint256 zSTTSupply, uint256 zJTTSupply);

    /// @notice This function will verify if a given stablecoin has been whitelisted for use throughout system.
    /// @param stablecoin address of the stablecoin to verify acceptance for.
    function stablecoinWhitelist(address stablecoin) external view returns (bool);

    /// @notice Handles WEI standardization of a given asset amount (i.e. 6 decimal precision => 18 decimal precision).
    /// @param amount The amount of a given "asset".
    /// @param asset The asset (ERC-20) from which to standardize the amount to WEI.
    /// @return standardizedAmount The above amount standardized to 18 decimals.
    function standardize(uint256 amount, address asset) external view returns (uint256 standardizedAmount);
}



/// @notice  This contract will facilitate ongoing liquidity provision to Zivoe tranches - Junior, Senior.
///          This contract will be permissioned by $zJTT and $zSTT to call mint().
///          This contract will support a whitelist for stablecoins to provide as liquidity.
contract ZivoeTranches is ZivoeLocker, ReentrancyGuard {

    using SafeERC20 for IERC20;

    // ---------------------
    //    State Variables
    // ---------------------

    address public immutable GBL;   /// @dev The ZivoeGlobals contract.

    /// @dev This ratio represents the maximum size allowed for junior tranche, relative to senior tranche.
    ///      A value of 2,000 represent 20%, thus junior tranche at maximum can be 20% the size of senior tranche.
    uint256 public maxTrancheRatioBIPS = 2000;

    /// @dev These two values control the min/max $ZVE minted per stablecoin deposited to ZivoeTranches.
    uint256 public minZVEPerJTTMint = 0;
    uint256 public maxZVEPerJTTMint = 0;

    /// @dev Basis points ratio between zJTT.totalSupply():zSTT.totalSupply() for maximum rewards (affects above slope).
    uint256 public lowerRatioIncentiveBIPS = 1000;
    uint256 public upperRatioIncentiveBIPS = 2500;

    bool public tranchesUnlocked;   /// @dev Prevents contract from supporting functionality until unlocked.
    bool public paused = true;      /// @dev Temporary mechanism for pausing deposits.

    uint256 private constant BIPS = 10000;



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

    /// @notice Initializes the ZivoeTranches contract.
    /// @param _GBL The ZivoeGlobals contract.
    constructor(address _GBL) { GBL = _GBL; }



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

    /// @notice Emitted during depositJunior().
    /// @param  account The account depositing stablecoins to junior tranche.
    /// @param  asset The stablecoin deposited.
    /// @param  amount The amount of stablecoins deposited.
    /// @param  incentives The amount of incentives ($ZVE) distributed.
    event JuniorDeposit(address indexed account, address indexed asset, uint256 amount, uint256 incentives);

    /// @notice Emitted during depositSenior().
    /// @param  account The account depositing stablecoins to senior tranche.
    /// @param  asset The stablecoin deposited.
    /// @param  amount The amount of stablecoins deposited.
    /// @param  incentives The amount of incentives ($ZVE) distributed.
    event SeniorDeposit(address indexed account, address indexed asset, uint256 amount, uint256 incentives);

    /// @notice Emitted during updateLowerRatioIncentiveBIPS().
    /// @param  oldValue The old value of lowerRatioJTT.
    /// @param  newValue The new value of lowerRatioJTT.
    event UpdatedLowerRatioIncentiveBIPS(uint256 oldValue, uint256 newValue);

    /// @notice Emitted during updateMaxTrancheRatio().
    /// @param  oldValue The old value of maxTrancheRatioBIPS.
    /// @param  newValue The new value of maxTrancheRatioBIPS.
    event UpdatedMaxTrancheRatioBIPS(uint256 oldValue, uint256 newValue);

    /// @notice Emitted during updateMaxZVEPerJTTMint().
    /// @param  oldValue The old value of maxZVEPerJTTMint.
    /// @param  newValue The new value of maxZVEPerJTTMint.
    event UpdatedMaxZVEPerJTTMint(uint256 oldValue, uint256 newValue);

    /// @notice Emitted during updateMinZVEPerJTTMint().
    /// @param  oldValue The old value of minZVEPerJTTMint.
    /// @param  newValue The new value of minZVEPerJTTMint.
    event UpdatedMinZVEPerJTTMint(uint256 oldValue, uint256 newValue);

    /// @notice Emitted during updateUpperRatioIncentiveBIPS().
    /// @param  oldValue The old value of upperRatioJTT.
    /// @param  newValue The new value of upperRatioJTT.
    event UpdatedUpperRatioIncentiveBIPS(uint256 oldValue, uint256 newValue);



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

    modifier notPaused() {
        require(!paused, "ZivoeTranches::whenPaused() notPaused");
        _;
    }

    modifier onlyGovernance() {
        require(
            _msgSender() == IZivoeGlobals_ZivoeTranches(GBL).TLC(), 
            "ZivoeTranches::onlyGovernance() _msgSender() != IZivoeGlobals_ZivoeTranches(GBL).TLC()"
        );
        _;
    }


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

    /// @notice Permission for owner to call pushToLocker().
    function canPush() 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, does any necessary pre-conversions, and escrows ZVE for incentives.
    /// @param asset The asset to pull from the DAO.
    /// @param amount The amount of asset to pull from the DAO.
    /// @param data Accompanying transaction data.
    function pushToLocker(address asset, uint256 amount, bytes calldata data) external override onlyOwner {
        require(
            asset == IZivoeGlobals_ZivoeTranches(GBL).ZVE(), 
            "ZivoeTranches::pushToLocker() asset != IZivoeGlobals_ZivoeTranches(GBL).ZVE()"
        );
        IERC20(asset).safeTransferFrom(owner(), address(this), amount);
    }

    /// @notice Checks if stablecoin deposits into the Junior Tranche are open.
    /// @param  amount The amount to deposit.
    /// @param  asset The asset (stablecoin) to deposit.
    /// @return open Will return "true" if the deposits into the Junior Tranche are open.
    function isJuniorOpen(uint256 amount, address asset) public view returns (bool open) {
        uint256 convertedAmount = IZivoeGlobals_ZivoeTranches(GBL).standardize(amount, asset);
        (uint256 seniorSupp, uint256 juniorSupp) = IZivoeGlobals_ZivoeTranches(GBL).adjustedSupplies();
        return convertedAmount + juniorSupp <= seniorSupp * maxTrancheRatioBIPS / BIPS;
    }
    
    /// @notice Returns the total rewards in $ZVE for a certain junior tranche deposit amount.
    /// @dev Input amount MUST be in WEI (use GBL.standardize(amount, asset)).
    /// @dev Output amount MUST be in WEI.
    /// @param deposit The amount supplied to the junior tranche.
    /// @return reward The rewards in $ZVE to be received.
    function rewardZVEJuniorDeposit(uint256 deposit) public view returns (uint256 reward) {

        (uint256 seniorSupp, uint256 juniorSupp) = IZivoeGlobals_ZivoeTranches(GBL).adjustedSupplies();

        uint256 avgRate;    // The avg ZVE per stablecoin deposit reward, used for reward calculation.

        uint256 diffRate = maxZVEPerJTTMint - minZVEPerJTTMint;

        uint256 startRatio = juniorSupp * BIPS / seniorSupp;
        uint256 finalRatio = (juniorSupp + deposit) * BIPS / seniorSupp;
        uint256 avgRatio = (startRatio + finalRatio) / 2;

        if (avgRatio <= lowerRatioIncentiveBIPS) {
            avgRate = maxZVEPerJTTMint;
        } else if (avgRatio >= upperRatioIncentiveBIPS) {
            avgRate = minZVEPerJTTMint;
        } else {
            avgRate = maxZVEPerJTTMint - diffRate * (avgRatio - lowerRatioIncentiveBIPS) / (upperRatioIncentiveBIPS - lowerRatioIncentiveBIPS);
        }

        reward = avgRate * deposit / 1 ether;

        // Reduce if ZVE balance < reward.
        if (IERC20(IZivoeGlobals_ZivoeTranches(GBL).ZVE()).balanceOf(address(this)) < reward) {
            reward = IERC20(IZivoeGlobals_ZivoeTranches(GBL).ZVE()).balanceOf(address(this));
        }
    }

    /// @notice Returns the total rewards in $ZVE for a certain senior tranche deposit amount.
    /// @dev Input amount MUST be in WEI (use GBL.standardize(amount, asset)).
    /// @dev Output amount MUST be in WEI.
    /// @param deposit The amount supplied to the senior tranche.
    /// @return reward The rewards in $ZVE to be received.
    function rewardZVESeniorDeposit(uint256 deposit) public view returns (uint256 reward) {

        (uint256 seniorSupp, uint256 juniorSupp) = IZivoeGlobals_ZivoeTranches(GBL).adjustedSupplies();

        uint256 avgRate;    // The avg ZVE per stablecoin deposit reward, used for reward calculation.

        uint256 diffRate = maxZVEPerJTTMint - minZVEPerJTTMint;

        uint256 startRatio = juniorSupp * BIPS / seniorSupp;
        uint256 finalRatio = juniorSupp * BIPS / (seniorSupp + deposit);
        uint256 avgRatio = (startRatio + finalRatio) / 2;

        if (avgRatio <= lowerRatioIncentiveBIPS) {
            avgRate = minZVEPerJTTMint;
        } else if (avgRatio >= upperRatioIncentiveBIPS) {
            avgRate = maxZVEPerJTTMint;
        } else {
            avgRate = minZVEPerJTTMint + diffRate * (avgRatio - lowerRatioIncentiveBIPS) / (upperRatioIncentiveBIPS - lowerRatioIncentiveBIPS);
        }

        reward = avgRate * deposit / 1 ether;

        // Reduce if ZVE balance < reward.
        if (IERC20(IZivoeGlobals_ZivoeTranches(GBL).ZVE()).balanceOf(address(this)) < reward) {
            reward = IERC20(IZivoeGlobals_ZivoeTranches(GBL).ZVE()).balanceOf(address(this));
        }
    }

    /// @notice Deposit stablecoins into the junior tranche.
    /// @dev    Mints Zivoe Junior Tranche ($zJTT) tokens in 1:1 ratio.
    /// @param  amount The amount to deposit.
    /// @param  asset The asset (stablecoin) to deposit.
    function depositJunior(uint256 amount, address asset) public notPaused nonReentrant {
        require(
            IZivoeGlobals_ZivoeTranches(GBL).stablecoinWhitelist(asset), 
            "ZivoeTranches::depositJunior() !IZivoeGlobals_ZivoeTranches(GBL).stablecoinWhitelist(asset)"
        );
        require(tranchesUnlocked, "ZivoeTranches::depositJunior() !tranchesUnlocked");

        address depositor = _msgSender();

        IERC20(asset).safeTransferFrom(depositor, IZivoeGlobals_ZivoeTranches(GBL).DAO(), amount);
        
        uint256 convertedAmount = IZivoeGlobals_ZivoeTranches(GBL).standardize(amount, asset);

        require(isJuniorOpen(amount, asset),"ZivoeTranches::depositJunior() !isJuniorOpen(amount, asset)");

        uint256 incentives = rewardZVEJuniorDeposit(convertedAmount);
        emit JuniorDeposit(depositor, asset, amount, incentives);

        // Ordering important, transfer ZVE rewards prior to minting zJTT() due to totalSupply() changes.
        IERC20(IZivoeGlobals_ZivoeTranches(GBL).ZVE()).safeTransfer(depositor, incentives);
        IERC20Mintable_ZivoeTranches(IZivoeGlobals_ZivoeTranches(GBL).zJTT()).mint(depositor, convertedAmount);
    }

    /// @notice Deposit stablecoins into the senior tranche.
    /// @dev    Mints Zivoe Senior Tranche ($zSTT) tokens in 1:1 ratio.
    /// @param  amount The amount to deposit.
    /// @param  asset The asset (stablecoin) to deposit.
    function depositSenior(uint256 amount, address asset) public notPaused nonReentrant {
        require(
            IZivoeGlobals_ZivoeTranches(GBL).stablecoinWhitelist(asset), 
            "ZivoeTranches::depositSenior() !IZivoeGlobals_ZivoeTranches(GBL).stablecoinWhitelist(asset)"
        );
        require(tranchesUnlocked, "ZivoeTranches::depositSenior() !tranchesUnlocked");

        address depositor = _msgSender();

        IERC20(asset).safeTransferFrom(depositor, IZivoeGlobals_ZivoeTranches(GBL).DAO(), amount);
        
        uint256 convertedAmount = IZivoeGlobals_ZivoeTranches(GBL).standardize(amount, asset);

        uint256 incentives = rewardZVESeniorDeposit(convertedAmount);

        emit SeniorDeposit(depositor, asset, amount, incentives);

        // Ordering important, transfer ZVE rewards prior to minting zJTT() due to totalSupply() changes.
        IERC20(IZivoeGlobals_ZivoeTranches(GBL).ZVE()).safeTransfer(depositor, incentives);
        IERC20Mintable_ZivoeTranches(IZivoeGlobals_ZivoeTranches(GBL).zSTT()).mint(depositor, convertedAmount);
    }

    /// @notice Deposit stablecoins to both tranches simultaneously
    /// @param amountSenior The amount to deposit to senior tranche
    /// @param assetSenior The asset to deposit to senior tranche
    /// @param amountJunior The amount to deposit to senior tranche
    /// @param assetJunior The asset to deposit to senior tranche
    function depositBoth(uint256 amountSenior, address assetSenior, uint256 amountJunior, address assetJunior) external {
        depositSenior(amountSenior, assetSenior);
        depositJunior(amountJunior, assetJunior);
    }

    /// @notice Deposit stablecoins to both tranches simultaneously, inverse order
    /// @param amountSenior The amount to deposit to senior tranche
    /// @param assetSenior The asset to deposit to senior tranche
    /// @param amountJunior The amount to deposit to senior tranche
    /// @param assetJunior The asset to deposit to senior tranche
    function depositBothInverse(uint256 amountSenior, address assetSenior, uint256 amountJunior, address assetJunior) external {
        depositJunior(amountJunior, assetJunior);
        depositSenior(amountSenior, assetSenior);
    }

    /// @notice Pauses or unpauses the contract, enabling or disabling depositJunior() and depositSenior().
    function switchPause() external {
        require(
            _msgSender() == IZivoeGlobals_ZivoeTranches(GBL).ZVL(), 
            "ZivoeTranches::switchPause() _msgSender() != IZivoeGlobals_ZivoeTranches(GBL).ZVL()"
        );
        paused = !paused;
    }

    /// @notice Updates the lower ratio between tranches for minting incentivization model.
    /// @dev    A value of 1,000 represents 10%, indicating that maximum $ZVE incentives are offered for
    ///         minting $zJTT (Junior Tranche Tokens) when the actual tranche ratio is <=10%.
    ///         Likewise, due to inverse relationship between incentives for $zJTT and $zSTT minting,
    ///         a value of 1,000 represents 10%, indicating that minimum $ZVE incentives are offered for
    ///         minting $zSTT (Senior Tranche Tokens) when the actual tranche ratio is <=10% 
    /// @param  _lowerRatioIncentiveBIPS The lower ratio to incentivize minting.
    function updateLowerRatioIncentiveBIPS(uint256 _lowerRatioIncentiveBIPS) external onlyGovernance {
        require(
            _lowerRatioIncentiveBIPS >= 1000, 
            "ZivoeTranches::updateLowerRatioIncentiveBIPS() _lowerRatioIncentiveBIPS < 1000")
        ;
        require(
            _lowerRatioIncentiveBIPS < upperRatioIncentiveBIPS, 
            "ZivoeTranches::updateLowerRatioIncentiveBIPS() _lowerRatioIncentiveBIPS >= upperRatioIncentiveBIPS"
        );
        emit UpdatedLowerRatioIncentiveBIPS(lowerRatioIncentiveBIPS, _lowerRatioIncentiveBIPS);
        lowerRatioIncentiveBIPS = _lowerRatioIncentiveBIPS; 
    }

    /// @notice Updates the maximum size of junior tranche, relative to senior tranche.
    /// @dev    A value of 2,000 represents 20% (basis points), meaning the junior tranche 
    ///         at maximum can be 20% the size of senior tranche.
    /// @param  ratio The new ratio value.
    function updateMaxTrancheRatio(uint256 ratio) external onlyGovernance {
        require(ratio <= 4500, "ZivoeTranches::updateMaxTrancheRatio() ratio > 4500");
        emit UpdatedMaxTrancheRatioBIPS(maxTrancheRatioBIPS, ratio);
        maxTrancheRatioBIPS = ratio;
    }

    /// @notice Updates the maximum $ZVE minted per stablecoin deposited to ZivoeTranches.
    /// @param  max Maximum $ZVE minted per stablecoin.
    function updateMaxZVEPerJTTMint(uint256 max) external onlyGovernance {
        require(minZVEPerJTTMint < max, "ZivoeTranches::updateMaxZVEPerJTTMint() minZVEPerJTTMint >= max");
        require(max < 0.5 * 10**18, "ZivoeTranches::updateMaxZVEPerJTTMint() max >= 0.5 * 10**18");
        emit UpdatedMaxZVEPerJTTMint(maxZVEPerJTTMint, max);
        maxZVEPerJTTMint = max; 
    }

    /// @notice Updates the minimum $ZVE minted per stablecoin deposited to ZivoeTranches.
    /// @param  min Minimum $ZVE minted per stablecoin.
    function updateMinZVEPerJTTMint(uint256 min) external onlyGovernance {
        require(min < maxZVEPerJTTMint, "ZivoeTranches::updateMinZVEPerJTTMint() min >= maxZVEPerJTTMint");
        emit UpdatedMinZVEPerJTTMint(minZVEPerJTTMint, min);
        minZVEPerJTTMint = min;
    }

    /// @notice Updates the upper ratio between tranches for minting incentivization model.
    /// @dev    A value of 2,000 represents 20%, indicating that minimum $ZVE incentives are offered for
    ///         minting $zJTT (Junior Tranche Tokens) when the actual tranche ratio is >= 20%.
    ///         Likewise, due to inverse relationship between incentives for $zJTT and $zSTT minting,
    ///         a value of 2,000 represents 20%, indicating that maximum $ZVE incentives are offered for
    ///         minting $zSTT (Senior Tranche Tokens) when the actual tranche ratio is >= 20%.
    /// @param  _upperRatioIncentiveBIPS The upper ratio to incentivize minting.
    function updateUpperRatioIncentiveBIPS(uint256 _upperRatioIncentiveBIPS) external onlyGovernance {
        require(
            lowerRatioIncentiveBIPS < _upperRatioIncentiveBIPS, 
            "ZivoeTranches::updateUpperRatioIncentiveBIPS() lowerRatioIncentiveBIPS >= _upperRatioIncentiveBIPS"
        );
        require(
            _upperRatioIncentiveBIPS <= 2500, 
            "ZivoeTranches::updateUpperRatioIncentiveBIPS() _upperRatioIncentiveBIPS > 2500"
        );
        emit UpdatedUpperRatioIncentiveBIPS(upperRatioIncentiveBIPS, _upperRatioIncentiveBIPS);
        upperRatioIncentiveBIPS = _upperRatioIncentiveBIPS; 
    }

    /// @notice Unlocks this contract for distributions, sets some initial variables.
    function unlock() external {
        require(
            _msgSender() == IZivoeGlobals_ZivoeTranches(GBL).ITO(), 
            "ZivoeTranches::unlock() _msgSender() != IZivoeGlobals_ZivoeTranches(GBL).ITO()"
        );
        tranchesUnlocked = true;
    }

}

// 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 20 : 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 v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// 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 13 of 20 : 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":"_GBL","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"incentives","type":"uint256"}],"name":"JuniorDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"incentives","type":"uint256"}],"name":"SeniorDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdatedLowerRatioIncentiveBIPS","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdatedMaxTrancheRatioBIPS","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdatedMaxZVEPerJTTMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdatedMinZVEPerJTTMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdatedUpperRatioIncentiveBIPS","type":"event"},{"inputs":[],"name":"GBL","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"pure","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":"view","type":"function"},{"inputs":[],"name":"canPushMultiERC721","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountSenior","type":"uint256"},{"internalType":"address","name":"assetSenior","type":"address"},{"internalType":"uint256","name":"amountJunior","type":"uint256"},{"internalType":"address","name":"assetJunior","type":"address"}],"name":"depositBoth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountSenior","type":"uint256"},{"internalType":"address","name":"assetSenior","type":"address"},{"internalType":"uint256","name":"amountJunior","type":"uint256"},{"internalType":"address","name":"assetJunior","type":"address"}],"name":"depositBothInverse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"asset","type":"address"}],"name":"depositJunior","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"asset","type":"address"}],"name":"depositSenior","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"asset","type":"address"}],"name":"isJuniorOpen","outputs":[{"internalType":"bool","name":"open","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lowerRatioIncentiveBIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTrancheRatioBIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxZVEPerJTTMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minZVEPerJTTMint","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"uint256","name":"deposit","type":"uint256"}],"name":"rewardZVEJuniorDeposit","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"deposit","type":"uint256"}],"name":"rewardZVESeniorDeposit","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tranchesUnlocked","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":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lowerRatioIncentiveBIPS","type":"uint256"}],"name":"updateLowerRatioIncentiveBIPS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ratio","type":"uint256"}],"name":"updateMaxTrancheRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"name":"updateMaxZVEPerJTTMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"min","type":"uint256"}],"name":"updateMinZVEPerJTTMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_upperRatioIncentiveBIPS","type":"uint256"}],"name":"updateUpperRatioIncentiveBIPS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upperRatioIncentiveBIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a06040526107d0600255600060038190556004556103e86005556109c46006556007805461ff0019166101001790553480156200003c57600080fd5b5060405162003b6e38038062003b6e8339810160408190526200005f91620000d0565b6200006a3362000080565b600180556001600160a01b031660805262000102565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620000e357600080fd5b81516001600160a01b0381168114620000fb57600080fd5b9392505050565b6080516139a8620001c660003960008181610385015281816109a201528181610a3601528181610aec01528181610c2c01528181610e0d0152818161104401528181611256015281816114d401528181611682015281816117ce0152818161187a015281816119bd01528181611a3f01528181611b7501528181611cc101528181611d3701528181611e1201528181611e7001528181611ece015281816120f60152818161238601528181612502015281816125f6015261284401526139a86000f3fe608060405234801561001057600080fd5b506004361061027d5760003560e01c806301ffc9a714610282578063106b3e8b146102aa57806312052176146102c1578063150b7a02146102d657806315e98744146103025780631852b38314610315578063191658741461031c57806319dc197a1461032f5780631d9389e914610338578063215cccdd1461034b57806327af3c2e146103525780632cd981d4146103655780632f08d48b1461031557806337cd09f21461036d5780633c117244146103155780633ce8d432146103805780633e62445d146103b45780633eda81ad14610315578063422b2018146103c757806342315632146103da5780634aaaf769146103ed57806358289c7e146104005780635c3b9fce146104135780635c975abb1461041c57806364c777351461034b5780636a45c7321461042e5780636a7ab9af14610441578063715018a6146104545780637a46d5a41461045c5780637bcb5bb2146104695780638097be041461047c5780638a2ba9d21461048f5780638b134e16146104a25780638b648ee2146103155780638d2b41b7146104b55780638da5cb5b146104be578063a067a0f2146104c6578063a4a3e79d14610315578063a69df4b5146104d9578063b0607cf814610315578063b892bcc0146104e1578063bc197c81146104f4578063bf683be014610513578063cd45e1fb14610526578063ce87262714610539578063cf10b7ab14610315578063cf30901214610542578063d284af9414610556578063d71ecac914610569578063d8f2a78b1461057c578063dd913bdb14610315578063e7f446291461034b578063f23a6e611461058f578063f2fde38b146105ae578063fd76f59d146105c1575b600080fd5b610295610290366004612e56565b6105d4565b60405190151581526020015b60405180910390f35b6102b360035481565b6040519081526020016102a1565b6102d46102cf366004612ee4565b61060b565b005b6102e96102e4366004612ff4565b61067d565b6040516001600160e01b031990911681526020016102a1565b6102d46103103660046130a3565b61068e565b6000610295565b6102d461032a36600461313c565b6107e3565b6102b360065481565b6102d4610346366004612ee4565b610932565b6001610295565b61029561036036600461319b565b61099d565b6102d4610aea565b6102d461037b3660046131cb565b610c2a565b6103a77f000000000000000000000000000000000000000000000000000000000000000081565b6040516102a191906131e4565b6102d46103c23660046131cb565b610e0b565b6102d46103d53660046131f8565b610fcb565b6102d46103e8366004612ee4565b61103a565b6102d46103fb3660046132a4565b611183565b6102d461040e3660046132ee565b611197565b6102b360055481565b60075461029590610100900460ff1681565b6102d461043c3660046131cb565b611254565b6102d461044f3660046130a3565b6113b4565b6102d4611494565b6007546102959060ff1681565b6102d46104773660046131cb565b6114d2565b6102d461048a36600461319b565b61163b565b6102d461049d36600461319b565b611b2e565b6102d46104b03660046131cb565b611ecc565b6102b360045481565b6103a76120d1565b6102d46104d43660046132a4565b6120e0565b6102d46120f4565b6102d46104ef3660046130a3565b612222565b6102e961050236600461337f565b63bc197c8160e01b95945050505050565b6102b36105213660046131cb565b61237f565b6102d461053436600461342c565b6126f1565b6102b360025481565b60005461029590600160a01b900460ff1681565b6102d46105643660046130a3565b612787565b6102b36105773660046131cb565b61283d565b6102d461058a366004612ee4565b612999565b6102e961059d366004613480565b63f23a6e6160e01b95945050505050565b6102d46105bc3660046132ee565b6129bd565b6102d46105cf3660046131f8565b612a5e565b60006001600160e01b03198216630271189760e51b148061060557506301ffc9a760e01b6001600160e01b03198316145b92915050565b610613612acb565b60405162461bcd60e51b815260206004820152603460248201527f5a69766f654c6f636b65723a3a70756c6c46726f6d4c6f636b65724552433732604482015273312829202163616e50756c6c455243373231282960601b60648201526084015b60405180910390fd5b630a85bd0160e11b5b949350505050565b610696612acb565b60405162461bcd60e51b815260206004820152603e602482015260008051602061387383398151915260448201527f4552433732312829202163616e50756c6c4d756c7469455243373231282900006064820152608401610674565b858110156107da5786868281811061070c5761070c613545565b905060200201602081019061072191906132ee565b6001600160a01b031663b88d4fde306107386120d1565b88888681811061074a5761074a613545565b9050602002013587878781811061076357610763613545565b9050602002810190610775919061355b565b6040518663ffffffff1660e01b8152600401610795959493929190613511565b600060405180830381600087803b1580156107af57600080fd5b505af11580156107c3573d6000803e3d6000fd5b5050505080806107d2906135b7565b9150506106f2565b50505050505050565b6107eb612acb565b60405162461bcd60e51b815260206004820152603260248201526000805160206138738339815191526044820152712829202163616e50756c6c4d756c7469282960701b6064820152608401610674565b8381101561092b5761091961084f6120d1565b86868481811061086157610861613545565b905060200201602081019061087691906132ee565b6001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016108a191906131e4565b602060405180830381865afa1580156108be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e291906135d0565b8787858181106108f4576108f4613545565b905060200201602081019061090991906132ee565b6001600160a01b03169190612b2a565b80610923816135b7565b91505061083c565b5050505050565b61093a612acb565b60405162461bcd60e51b815260206004820152603260248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b65724552433732312860448201527129202163616e50757368455243373231282960701b6064820152608401610674565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663dc3c1da585856040518363ffffffff1660e01b81526004016109ee9291906135e9565b602060405180830381865afa158015610a0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2f91906135d0565b90506000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635351d09b6040518163ffffffff1660e01b81526004016040805180830381865afa158015610a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab59190613600565b9150915061271060025483610aca9190613624565b610ad4919061363b565b610ade828561365d565b11159695505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316620960456040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6b9190613670565b6001600160a01b0316336001600160a01b031614610c0d5760405162461bcd60e51b815260206004820152605360248201527f5a69766f655472616e636865733a3a73776974636850617573652829205f6d7360448201527f6753656e646572282920213d20495a69766f65476c6f62616c735f5a69766f656064820152725472616e636865732847424c292e5a564c282960681b608482015260a401610674565b6007805461ff001981166101009182900460ff1615909102179055565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c76d41c86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cac9190613670565b6001600160a01b0316336001600160a01b031614610cdc5760405162461bcd60e51b81526004016106749061368d565b6103e8811015610d475760405162461bcd60e51b815260206004820152604e602482015260008051602061389383398151915260448201526000805160206138b383398151915260648201526d069766542495053203c20313030360941b608482015260a401610674565b6006548110610dcb5760405162461bcd60e51b8152602060048201526062602482015260008051602061389383398151915260448201526000805160206138b383398151915260648201527f69766542495053203e3d207570706572526174696f496e63656e746976654249608482015261505360f01b60a482015260c401610674565b7fabc64a6d9dbf4d6cddc01ef89e9c2f663ff0382e429cd5a67cc90f08d60850b960055482604051610dfe929190613709565b60405180910390a1600555565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c76d41c86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8d9190613670565b6001600160a01b0316336001600160a01b031614610ebd5760405162461bcd60e51b81526004016106749061368d565b8060035410610f225760405162461bcd60e51b815260206004820152603f602482015260008051602061395383398151915260448201527f544d696e742829206d696e5a56455065724a54544d696e74203e3d206d6178006064820152608401610674565b6706f05b59d3b200008110610f8b5760405162461bcd60e51b815260206004820152603b602482015260008051602061395383398151915260448201527a0a89ad2dce8505240dac2f0407c7a40605c6a40544062605454627602b1b6064820152608401610674565b7fccac5b613bde20136f91de1c072dbd95e551edf4837459acb1b661f9aa472e7c60045482604051610fbe929190613709565b60405180910390a1600455565b610fd3612acb565b60405162461bcd60e51b815260206004820152603660248201527f5a69766f654c6f636b65723a3a70756c6c46726f6d4c6f636b6572455243313160448201527535352829202163616e50756c6c45524331313535282960501b6064820152608401610674565b611042612acb565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c49190613670565b6001600160a01b0316846001600160a01b0316146111605760405162461bcd60e51b815260206004820152604d60248201527f5a69766f655472616e636865733a3a70757368546f4c6f636b6572282920617360448201527f73657420213d20495a69766f65476c6f62616c735f5a69766f655472616e636860648201526c65732847424c292e5a5645282960981b608482015260a401610674565b61117d61116b6120d1565b6001600160a01b038616903086612b80565b50505050565b61118d828261163b565b61117d8484611b2e565b61119f612acb565b600054600160a01b900460ff16156111c95760405162461bcd60e51b815260040161067490613717565b6001600160a01b038116611235576040805162461bcd60e51b815260206004820152602481019190915260008051602061393383398151915260448201527f416e644c6f636b2829206e65774f776e6572203d3d20616464726573732830296064820152608401610674565b6000805460ff60a01b1916600160a01b17905561125181612bb8565b50565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c76d41c86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d69190613670565b6001600160a01b0316336001600160a01b0316146113065760405162461bcd60e51b81526004016106749061368d565b6111948111156113745760405162461bcd60e51b815260206004820152603360248201527f5a69766f655472616e636865733a3a7570646174654d61785472616e6368655260448201527206174696f282920726174696f203e203435303606c1b6064820152608401610674565b7f6d7dc9afbbe04255653ae2734ae9fd69f0d8abe3813a132cf70b163da704f2c3600254826040516113a7929190613709565b60405180910390a1600255565b6113bc612acb565b60405162461bcd60e51b815260206004820152603060248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b65724d756c7469282960448201526f202163616e507573684d756c7469282960801b6064820152608401610674565b858110156107da576114826114306120d1565b3087878581811061144357611443613545565b905060200201358a8a8681811061145c5761145c613545565b905060200201602081019061147191906132ee565b6001600160a01b0316929190612b80565b8061148c816135b7565b91505061141d565b61149c612acb565b600054600160a01b900460ff16156114c65760405162461bcd60e51b815260040161067490613717565b6114d06000612bb8565b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c76d41c86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611530573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115549190613670565b6001600160a01b0316336001600160a01b0316146115845760405162461bcd60e51b81526004016106749061368d565b60045481106115fb5760405162461bcd60e51b815260206004820152603f60248201527f5a69766f655472616e636865733a3a7570646174654d696e5a56455065724a5460448201527f544d696e742829206d696e203e3d206d61785a56455065724a54544d696e74006064820152608401610674565b7fd02ca6f1163f6a7dee847ec7e8256e4dc0810a6f2b07cd860ac3eb0b1585e3ab6003548260405161162e929190613709565b60405180910390a1600355565b600754610100900460ff16156116635760405162461bcd60e51b81526004016106749061374c565b61166b612c08565b60405163dd1db20160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063dd1db201906116b79084906004016131e4565b602060405180830381865afa1580156116d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f89190613791565b61176a5760405162461bcd60e51b815260206004820152605b60248201526000805160206138f383398151915260448201526000805160206138d383398151915260648201527a2e737461626c65636f696e57686974656c6973742861737365742960281b608482015260a401610674565b60075460ff166117c35760405162461bcd60e51b815260206004820152603060248201526000805160206138f383398151915260448201526f1d1c985b98da195cd55b9b1bd8dad95960821b6064820152608401610674565b6000339050611860817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166398fabd3a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561182a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184e9190613670565b6001600160a01b038516919086612b80565b60405163dc3c1da560e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063dc3c1da5906118b190879087906004016135e9565b602060405180830381865afa1580156118ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f291906135d0565b90506118fe848461099d565b61195c5760405162461bcd60e51b815260206004820152603b60248201526000805160206138f383398151915260448201527a69734a756e696f724f70656e28616d6f756e742c2061737365742960281b6064820152608401610674565b60006119678261237f565b9050836001600160a01b0316836001600160a01b03167fcd04ef91b89cf6947d55d506628c05935caee56e023bdd447e41b59a034a68f787846040516119ae929190613709565b60405180910390a3611a3d83827f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a19573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109099190613670565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639699177c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abf9190613670565b6001600160a01b03166340c10f1984846040518363ffffffff1660e01b8152600401611aec9291906137b3565b600060405180830381600087803b158015611b0657600080fd5b505af1158015611b1a573d6000803e3d6000fd5b50505050505050611b2a60018055565b5050565b600754610100900460ff1615611b565760405162461bcd60e51b81526004016106749061374c565b611b5e612c08565b60405163dd1db20160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063dd1db20190611baa9084906004016131e4565b602060405180830381865afa158015611bc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611beb9190613791565b611c5d5760405162461bcd60e51b815260206004820152605b602482015260008051602061385383398151915260448201526000805160206138d383398151915260648201527a2e737461626c65636f696e57686974656c6973742861737365742960281b608482015260a401610674565b60075460ff16611cb65760405162461bcd60e51b8152602060048201526030602482015260008051602061385383398151915260448201526f1d1c985b98da195cd55b9b1bd8dad95960821b6064820152608401610674565b6000339050611d1d817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166398fabd3a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561182a573d6000803e3d6000fd5b60405163dc3c1da560e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063dc3c1da590611d6e90879087906004016135e9565b602060405180830381865afa158015611d8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611daf91906135d0565b90506000611dbc8261283d565b9050836001600160a01b0316836001600160a01b03167f4c874d6e6a0f2184f4b24abe078f3422ad02b4efa73d19fbc16f0afba8145db18784604051611e03929190613709565b60405180910390a3611e6e83827f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a19573d6000803e3d6000fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c5f4f7b06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a9b573d6000803e3d6000fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c76d41c86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4e9190613670565b6001600160a01b0316336001600160a01b031614611f7e5760405162461bcd60e51b81526004016106749061368d565b80600554106120145760405162461bcd60e51b8152602060048201526062602482015260008051602061391383398151915260448201527f6e63656e74697665424950532829206c6f776572526174696f496e63656e746960648201527f766542495053203e3d205f7570706572526174696f496e63656e746976654249608482015261505360f01b60a482015260c401610674565b6109c48111156120915760405162461bcd60e51b815260206004820152604e602482015260008051602061391383398151915260448201527f6e63656e74697665424950532829205f7570706572526174696f496e63656e7460648201526d069766542495053203e20323530360941b608482015260a401610674565b7f199620c03ff2f9a6d0d7a0436d79563b3f9f2f24a2f7956e3d4d45dabca11b3e600654826040516120c4929190613709565b60405180910390a1600655565b6000546001600160a01b031690565b6120ea8484611b2e565b61117d828261163b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166315154aff6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612152573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121769190613670565b6001600160a01b0316336001600160a01b0316146122135760405162461bcd60e51b815260206004820152604e60248201527f5a69766f655472616e636865733a3a756e6c6f636b2829205f6d736753656e6460448201527f6572282920213d20495a69766f65476c6f62616c735f5a69766f655472616e6360648201526d6865732847424c292e49544f282960901b608482015260a401610674565b6007805460ff19166001179055565b61222a612acb565b60405162461bcd60e51b815260206004820152603c60248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b65724d756c7469455260448201527b433732312829202163616e507573684d756c7469455243373231282960201b6064820152608401610674565b858110156107da578686828181106122b1576122b1613545565b90506020020160208101906122c691906132ee565b6001600160a01b031663b88d4fde6122dc6120d1565b308888868181106122ef576122ef613545565b9050602002013587878781811061230857612308613545565b905060200281019061231a919061355b565b6040518663ffffffff1660e01b815260040161233a959493929190613511565b600060405180830381600087803b15801561235457600080fd5b505af1158015612368573d6000803e3d6000fd5b505050508080612377906135b7565b915050612297565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635351d09b6040518163ffffffff1660e01b81526004016040805180830381865afa1580156123e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124059190613600565b9150915060008060035460045461241c91906137cc565b905060008461242d61271086613624565b612437919061363b565b90506000856127106124498a8861365d565b6124539190613624565b61245d919061363b565b90506000600261246d838561365d565b612477919061363b565b9050600554811161248c5760045494506124e0565b600654811061249f5760035494506124e0565b6005546006546124af91906137cc565b6005546124bc90836137cc565b6124c69086613624565b6124d0919061363b565b6004546124dd91906137cc565b94505b670de0b6b3a76400006124f38a87613624565b6124fd919061363b565b9750877f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561255e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125829190613670565b6001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016125ad91906131e4565b602060405180830381865afa1580156125ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ee91906135d0565b10156126e5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612652573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126769190613670565b6001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016126a191906131e4565b602060405180830381865afa1580156126be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126e291906135d0565b97505b50505050505050919050565b6126f9612acb565b6127826127046120d1565b6040516370a0823160e01b81526001600160a01b038616906370a08231906127309030906004016131e4565b602060405180830381865afa15801561274d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061277191906135d0565b6001600160a01b0386169190612b2a565b505050565b61278f612acb565b6040805162461bcd60e51b815260206004820152602481019190915260008051602061387383398151915260448201527f5061727469616c2829202163616e50756c6c4d756c74695061727469616c28296064820152608401610674565b858110156107da5761282b6128006120d1565b86868481811061281257612812613545565b905060200201358989858181106108f4576108f4613545565b80612835816135b7565b9150506127ed565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635351d09b6040518163ffffffff1660e01b81526004016040805180830381865afa15801561289f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128c39190613600565b915091506000806003546004546128da91906137cc565b90506000846128eb61271086613624565b6128f5919061363b565b90506000612903888761365d565b61290f61271087613624565b612919919061363b565b905060006002612929838561365d565b612933919061363b565b905060055481116129485760035494506124e0565b600654811061295b5760045494506124e0565b60055460065461296b91906137cc565b60055461297890836137cc565b6129829086613624565b61298c919061363b565b6003546124dd919061365d565b6129a1612acb565b61117d6129ac6120d1565b6001600160a01b0386169085612b2a565b6129c5612acb565b600054600160a01b900460ff16156129ef5760405162461bcd60e51b815260040161067490613717565b6001600160a01b038116612a555760405162461bcd60e51b815260206004820152603960248201526000805160206139338339815191526044820152782829206e65774f776e6572203d3d206164647265737328302960381b6064820152608401610674565b61125181612bb8565b612a66612acb565b60405162461bcd60e51b815260206004820152603460248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b6572455243313135356044820152732829202163616e5075736845524331313535282960601b6064820152608401610674565b33612ad46120d1565b6001600160a01b0316146114d05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610674565b6127828363a9059cbb60e01b8484604051602401612b499291906137b3565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612c61565b6040516001600160a01b038085166024830152831660448201526064810182905261117d9085906323b872dd60e01b90608401612b49565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403612c5a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610674565b6002600155565b6000612cb6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612d339092919063ffffffff16565b8051909150156127825780806020019051810190612cd49190613791565b6127825760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610674565b6060610686848460008585600080866001600160a01b03168587604051612d5a9190613803565b60006040518083038185875af1925050503d8060008114612d97576040519150601f19603f3d011682016040523d82523d6000602084013e612d9c565b606091505b5091509150612dad87838387612db8565b979650505050505050565b60608315612e27578251600003612e20576001600160a01b0385163b612e205760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610674565b5081610686565b6106868383815115612e3c5781518083602001fd5b8060405162461bcd60e51b8152600401610674919061381f565b600060208284031215612e6857600080fd5b81356001600160e01b031981168114612e8057600080fd5b9392505050565b6001600160a01b038116811461125157600080fd5b60008083601f840112612eae57600080fd5b5081356001600160401b03811115612ec557600080fd5b602083019150836020828501011115612edd57600080fd5b9250929050565b60008060008060608587031215612efa57600080fd5b8435612f0581612e87565b93506020850135925060408501356001600160401b03811115612f2757600080fd5b612f3387828801612e9c565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612f7d57612f7d612f3f565b604052919050565b600082601f830112612f9657600080fd5b81356001600160401b03811115612faf57612faf612f3f565b612fc2601f8201601f1916602001612f55565b818152846020838601011115612fd757600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806080858703121561300a57600080fd5b843561301581612e87565b9350602085013561302581612e87565b92506040850135915060608501356001600160401b0381111561304757600080fd5b61305387828801612f85565b91505092959194509250565b60008083601f84011261307157600080fd5b5081356001600160401b0381111561308857600080fd5b6020830191508360208260051b8501011115612edd57600080fd5b600080600080600080606087890312156130bc57600080fd5b86356001600160401b03808211156130d357600080fd5b6130df8a838b0161305f565b909850965060208901359150808211156130f857600080fd5b6131048a838b0161305f565b9096509450604089013591508082111561311d57600080fd5b5061312a89828a0161305f565b979a9699509497509295939492505050565b6000806000806040858703121561315257600080fd5b84356001600160401b038082111561316957600080fd5b6131758883890161305f565b9096509450602087013591508082111561318e57600080fd5b50612f338782880161305f565b600080604083850312156131ae57600080fd5b8235915060208301356131c081612e87565b809150509250929050565b6000602082840312156131dd57600080fd5b5035919050565b6001600160a01b0391909116815260200190565b60008060008060008060006080888a03121561321357600080fd5b873561321e81612e87565b965060208801356001600160401b038082111561323a57600080fd5b6132468b838c0161305f565b909850965060408a013591508082111561325f57600080fd5b61326b8b838c0161305f565b909650945060608a013591508082111561328457600080fd5b506132918a828b01612e9c565b989b979a50959850939692959293505050565b600080600080608085870312156132ba57600080fd5b8435935060208501356132cc81612e87565b92506040850135915060608501356132e381612e87565b939692955090935050565b60006020828403121561330057600080fd5b8135612e8081612e87565b600082601f83011261331c57600080fd5b813560206001600160401b0382111561333757613337612f3f565b8160051b613346828201612f55565b928352848101820192828101908785111561336057600080fd5b83870192505b84831015612dad57823582529183019190830190613366565b600080600080600060a0868803121561339757600080fd5b85356133a281612e87565b945060208601356133b281612e87565b935060408601356001600160401b03808211156133ce57600080fd5b6133da89838a0161330b565b945060608801359150808211156133f057600080fd5b6133fc89838a0161330b565b9350608088013591508082111561341257600080fd5b5061341f88828901612f85565b9150509295509295909350565b60008060006040848603121561344157600080fd5b833561344c81612e87565b925060208401356001600160401b0381111561346757600080fd5b61347386828701612e9c565b9497909650939450505050565b600080600080600060a0868803121561349857600080fd5b85356134a381612e87565b945060208601356134b381612e87565b9350604086013592506060860135915060808601356001600160401b038111156134dc57600080fd5b61341f88828901612f85565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0386811682528516602082015260408101849052608060608201819052600090612dad90830184866134e8565b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261357257600080fd5b8301803591506001600160401b0382111561358c57600080fd5b602001915036819003821315612edd57600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016135c9576135c96135a1565b5060010190565b6000602082840312156135e257600080fd5b5051919050565b9182526001600160a01b0316602082015260400190565b6000806040838503121561361357600080fd5b505080516020909101519092909150565b8082028115828204841417610605576106056135a1565b60008261365857634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610605576106056135a1565b60006020828403121561368257600080fd5b8151612e8081612e87565b60208082526056908201527f5a69766f655472616e636865733a3a6f6e6c79476f7665726e616e636528292060408201527f5f6d736753656e646572282920213d20495a69766f65476c6f62616c735f5a69606082015275766f655472616e636865732847424c292e544c43282960501b608082015260a00190565b918252602082015260400190565b6020808252818101527f4f776e61626c654c6f636b65643a3a756e6c6f636b65642829206c6f636b6564604082015260600190565b60208082526025908201527f5a69766f655472616e636865733a3a7768656e5061757365642829206e6f7450604082015264185d5cd95960da1b606082015260800190565b6000602082840312156137a357600080fd5b81518015158114612e8057600080fd5b6001600160a01b03929092168252602082015260400190565b81810381811115610605576106056135a1565b60005b838110156137fa5781810151838201526020016137e2565b50506000910152565b600082516138158184602087016137df565b9190910192915050565b602081526000825180602084015261383e8160408501602087016137df565b601f01601f1916919091016040019291505056fe5a69766f655472616e636865733a3a6465706f73697453656e696f72282920215a69766f654c6f636b65723a3a70756c6c46726f6d4c6f636b65724d756c74695a69766f655472616e636865733a3a7570646174654c6f776572526174696f496e63656e74697665424950532829205f6c6f776572526174696f496e63656e74495a69766f65476c6f62616c735f5a69766f655472616e636865732847424c295a69766f655472616e636865733a3a6465706f7369744a756e696f72282920215a69766f655472616e636865733a3a7570646174655570706572526174696f494f776e61626c654c6f636b65643a3a7472616e736665724f776e6572736869705a69766f655472616e636865733a3a7570646174654d61785a56455065724a54a2646970667358221220c5cccdd4a21e46eb20879e75b6dcc7ec1708942b69258c22b47e6aa1f8613f8a64736f6c63430008110033000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061027d5760003560e01c806301ffc9a714610282578063106b3e8b146102aa57806312052176146102c1578063150b7a02146102d657806315e98744146103025780631852b38314610315578063191658741461031c57806319dc197a1461032f5780631d9389e914610338578063215cccdd1461034b57806327af3c2e146103525780632cd981d4146103655780632f08d48b1461031557806337cd09f21461036d5780633c117244146103155780633ce8d432146103805780633e62445d146103b45780633eda81ad14610315578063422b2018146103c757806342315632146103da5780634aaaf769146103ed57806358289c7e146104005780635c3b9fce146104135780635c975abb1461041c57806364c777351461034b5780636a45c7321461042e5780636a7ab9af14610441578063715018a6146104545780637a46d5a41461045c5780637bcb5bb2146104695780638097be041461047c5780638a2ba9d21461048f5780638b134e16146104a25780638b648ee2146103155780638d2b41b7146104b55780638da5cb5b146104be578063a067a0f2146104c6578063a4a3e79d14610315578063a69df4b5146104d9578063b0607cf814610315578063b892bcc0146104e1578063bc197c81146104f4578063bf683be014610513578063cd45e1fb14610526578063ce87262714610539578063cf10b7ab14610315578063cf30901214610542578063d284af9414610556578063d71ecac914610569578063d8f2a78b1461057c578063dd913bdb14610315578063e7f446291461034b578063f23a6e611461058f578063f2fde38b146105ae578063fd76f59d146105c1575b600080fd5b610295610290366004612e56565b6105d4565b60405190151581526020015b60405180910390f35b6102b360035481565b6040519081526020016102a1565b6102d46102cf366004612ee4565b61060b565b005b6102e96102e4366004612ff4565b61067d565b6040516001600160e01b031990911681526020016102a1565b6102d46103103660046130a3565b61068e565b6000610295565b6102d461032a36600461313c565b6107e3565b6102b360065481565b6102d4610346366004612ee4565b610932565b6001610295565b61029561036036600461319b565b61099d565b6102d4610aea565b6102d461037b3660046131cb565b610c2a565b6103a77f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da6681565b6040516102a191906131e4565b6102d46103c23660046131cb565b610e0b565b6102d46103d53660046131f8565b610fcb565b6102d46103e8366004612ee4565b61103a565b6102d46103fb3660046132a4565b611183565b6102d461040e3660046132ee565b611197565b6102b360055481565b60075461029590610100900460ff1681565b6102d461043c3660046131cb565b611254565b6102d461044f3660046130a3565b6113b4565b6102d4611494565b6007546102959060ff1681565b6102d46104773660046131cb565b6114d2565b6102d461048a36600461319b565b61163b565b6102d461049d36600461319b565b611b2e565b6102d46104b03660046131cb565b611ecc565b6102b360045481565b6103a76120d1565b6102d46104d43660046132a4565b6120e0565b6102d46120f4565b6102d46104ef3660046130a3565b612222565b6102e961050236600461337f565b63bc197c8160e01b95945050505050565b6102b36105213660046131cb565b61237f565b6102d461053436600461342c565b6126f1565b6102b360025481565b60005461029590600160a01b900460ff1681565b6102d46105643660046130a3565b612787565b6102b36105773660046131cb565b61283d565b6102d461058a366004612ee4565b612999565b6102e961059d366004613480565b63f23a6e6160e01b95945050505050565b6102d46105bc3660046132ee565b6129bd565b6102d46105cf3660046131f8565b612a5e565b60006001600160e01b03198216630271189760e51b148061060557506301ffc9a760e01b6001600160e01b03198316145b92915050565b610613612acb565b60405162461bcd60e51b815260206004820152603460248201527f5a69766f654c6f636b65723a3a70756c6c46726f6d4c6f636b65724552433732604482015273312829202163616e50756c6c455243373231282960601b60648201526084015b60405180910390fd5b630a85bd0160e11b5b949350505050565b610696612acb565b60405162461bcd60e51b815260206004820152603e602482015260008051602061387383398151915260448201527f4552433732312829202163616e50756c6c4d756c7469455243373231282900006064820152608401610674565b858110156107da5786868281811061070c5761070c613545565b905060200201602081019061072191906132ee565b6001600160a01b031663b88d4fde306107386120d1565b88888681811061074a5761074a613545565b9050602002013587878781811061076357610763613545565b9050602002810190610775919061355b565b6040518663ffffffff1660e01b8152600401610795959493929190613511565b600060405180830381600087803b1580156107af57600080fd5b505af11580156107c3573d6000803e3d6000fd5b5050505080806107d2906135b7565b9150506106f2565b50505050505050565b6107eb612acb565b60405162461bcd60e51b815260206004820152603260248201526000805160206138738339815191526044820152712829202163616e50756c6c4d756c7469282960701b6064820152608401610674565b8381101561092b5761091961084f6120d1565b86868481811061086157610861613545565b905060200201602081019061087691906132ee565b6001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016108a191906131e4565b602060405180830381865afa1580156108be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e291906135d0565b8787858181106108f4576108f4613545565b905060200201602081019061090991906132ee565b6001600160a01b03169190612b2a565b80610923816135b7565b91505061083c565b5050505050565b61093a612acb565b60405162461bcd60e51b815260206004820152603260248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b65724552433732312860448201527129202163616e50757368455243373231282960701b6064820152608401610674565b6000807f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663dc3c1da585856040518363ffffffff1660e01b81526004016109ee9291906135e9565b602060405180830381865afa158015610a0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2f91906135d0565b90506000807f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316635351d09b6040518163ffffffff1660e01b81526004016040805180830381865afa158015610a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab59190613600565b9150915061271060025483610aca9190613624565b610ad4919061363b565b610ade828561365d565b11159695505050505050565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316620960456040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6b9190613670565b6001600160a01b0316336001600160a01b031614610c0d5760405162461bcd60e51b815260206004820152605360248201527f5a69766f655472616e636865733a3a73776974636850617573652829205f6d7360448201527f6753656e646572282920213d20495a69766f65476c6f62616c735f5a69766f656064820152725472616e636865732847424c292e5a564c282960681b608482015260a401610674565b6007805461ff001981166101009182900460ff1615909102179055565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663c76d41c86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cac9190613670565b6001600160a01b0316336001600160a01b031614610cdc5760405162461bcd60e51b81526004016106749061368d565b6103e8811015610d475760405162461bcd60e51b815260206004820152604e602482015260008051602061389383398151915260448201526000805160206138b383398151915260648201526d069766542495053203c20313030360941b608482015260a401610674565b6006548110610dcb5760405162461bcd60e51b8152602060048201526062602482015260008051602061389383398151915260448201526000805160206138b383398151915260648201527f69766542495053203e3d207570706572526174696f496e63656e746976654249608482015261505360f01b60a482015260c401610674565b7fabc64a6d9dbf4d6cddc01ef89e9c2f663ff0382e429cd5a67cc90f08d60850b960055482604051610dfe929190613709565b60405180910390a1600555565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663c76d41c86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8d9190613670565b6001600160a01b0316336001600160a01b031614610ebd5760405162461bcd60e51b81526004016106749061368d565b8060035410610f225760405162461bcd60e51b815260206004820152603f602482015260008051602061395383398151915260448201527f544d696e742829206d696e5a56455065724a54544d696e74203e3d206d6178006064820152608401610674565b6706f05b59d3b200008110610f8b5760405162461bcd60e51b815260206004820152603b602482015260008051602061395383398151915260448201527a0a89ad2dce8505240dac2f0407c7a40605c6a40544062605454627602b1b6064820152608401610674565b7fccac5b613bde20136f91de1c072dbd95e551edf4837459acb1b661f9aa472e7c60045482604051610fbe929190613709565b60405180910390a1600455565b610fd3612acb565b60405162461bcd60e51b815260206004820152603660248201527f5a69766f654c6f636b65723a3a70756c6c46726f6d4c6f636b6572455243313160448201527535352829202163616e50756c6c45524331313535282960501b6064820152608401610674565b611042612acb565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c49190613670565b6001600160a01b0316846001600160a01b0316146111605760405162461bcd60e51b815260206004820152604d60248201527f5a69766f655472616e636865733a3a70757368546f4c6f636b6572282920617360448201527f73657420213d20495a69766f65476c6f62616c735f5a69766f655472616e636860648201526c65732847424c292e5a5645282960981b608482015260a401610674565b61117d61116b6120d1565b6001600160a01b038616903086612b80565b50505050565b61118d828261163b565b61117d8484611b2e565b61119f612acb565b600054600160a01b900460ff16156111c95760405162461bcd60e51b815260040161067490613717565b6001600160a01b038116611235576040805162461bcd60e51b815260206004820152602481019190915260008051602061393383398151915260448201527f416e644c6f636b2829206e65774f776e6572203d3d20616464726573732830296064820152608401610674565b6000805460ff60a01b1916600160a01b17905561125181612bb8565b50565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663c76d41c86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d69190613670565b6001600160a01b0316336001600160a01b0316146113065760405162461bcd60e51b81526004016106749061368d565b6111948111156113745760405162461bcd60e51b815260206004820152603360248201527f5a69766f655472616e636865733a3a7570646174654d61785472616e6368655260448201527206174696f282920726174696f203e203435303606c1b6064820152608401610674565b7f6d7dc9afbbe04255653ae2734ae9fd69f0d8abe3813a132cf70b163da704f2c3600254826040516113a7929190613709565b60405180910390a1600255565b6113bc612acb565b60405162461bcd60e51b815260206004820152603060248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b65724d756c7469282960448201526f202163616e507573684d756c7469282960801b6064820152608401610674565b858110156107da576114826114306120d1565b3087878581811061144357611443613545565b905060200201358a8a8681811061145c5761145c613545565b905060200201602081019061147191906132ee565b6001600160a01b0316929190612b80565b8061148c816135b7565b91505061141d565b61149c612acb565b600054600160a01b900460ff16156114c65760405162461bcd60e51b815260040161067490613717565b6114d06000612bb8565b565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663c76d41c86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611530573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115549190613670565b6001600160a01b0316336001600160a01b0316146115845760405162461bcd60e51b81526004016106749061368d565b60045481106115fb5760405162461bcd60e51b815260206004820152603f60248201527f5a69766f655472616e636865733a3a7570646174654d696e5a56455065724a5460448201527f544d696e742829206d696e203e3d206d61785a56455065724a54544d696e74006064820152608401610674565b7fd02ca6f1163f6a7dee847ec7e8256e4dc0810a6f2b07cd860ac3eb0b1585e3ab6003548260405161162e929190613709565b60405180910390a1600355565b600754610100900460ff16156116635760405162461bcd60e51b81526004016106749061374c565b61166b612c08565b60405163dd1db20160e01b81526001600160a01b037f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66169063dd1db201906116b79084906004016131e4565b602060405180830381865afa1580156116d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f89190613791565b61176a5760405162461bcd60e51b815260206004820152605b60248201526000805160206138f383398151915260448201526000805160206138d383398151915260648201527a2e737461626c65636f696e57686974656c6973742861737365742960281b608482015260a401610674565b60075460ff166117c35760405162461bcd60e51b815260206004820152603060248201526000805160206138f383398151915260448201526f1d1c985b98da195cd55b9b1bd8dad95960821b6064820152608401610674565b6000339050611860817f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b03166398fabd3a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561182a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184e9190613670565b6001600160a01b038516919086612b80565b60405163dc3c1da560e01b81526000906001600160a01b037f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66169063dc3c1da5906118b190879087906004016135e9565b602060405180830381865afa1580156118ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f291906135d0565b90506118fe848461099d565b61195c5760405162461bcd60e51b815260206004820152603b60248201526000805160206138f383398151915260448201527a69734a756e696f724f70656e28616d6f756e742c2061737365742960281b6064820152608401610674565b60006119678261237f565b9050836001600160a01b0316836001600160a01b03167fcd04ef91b89cf6947d55d506628c05935caee56e023bdd447e41b59a034a68f787846040516119ae929190613709565b60405180910390a3611a3d83827f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a19573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109099190613670565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639699177c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abf9190613670565b6001600160a01b03166340c10f1984846040518363ffffffff1660e01b8152600401611aec9291906137b3565b600060405180830381600087803b158015611b0657600080fd5b505af1158015611b1a573d6000803e3d6000fd5b50505050505050611b2a60018055565b5050565b600754610100900460ff1615611b565760405162461bcd60e51b81526004016106749061374c565b611b5e612c08565b60405163dd1db20160e01b81526001600160a01b037f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66169063dd1db20190611baa9084906004016131e4565b602060405180830381865afa158015611bc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611beb9190613791565b611c5d5760405162461bcd60e51b815260206004820152605b602482015260008051602061385383398151915260448201526000805160206138d383398151915260648201527a2e737461626c65636f696e57686974656c6973742861737365742960281b608482015260a401610674565b60075460ff16611cb65760405162461bcd60e51b8152602060048201526030602482015260008051602061385383398151915260448201526f1d1c985b98da195cd55b9b1bd8dad95960821b6064820152608401610674565b6000339050611d1d817f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b03166398fabd3a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561182a573d6000803e3d6000fd5b60405163dc3c1da560e01b81526000906001600160a01b037f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66169063dc3c1da590611d6e90879087906004016135e9565b602060405180830381865afa158015611d8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611daf91906135d0565b90506000611dbc8261283d565b9050836001600160a01b0316836001600160a01b03167f4c874d6e6a0f2184f4b24abe078f3422ad02b4efa73d19fbc16f0afba8145db18784604051611e03929190613709565b60405180910390a3611e6e83827f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a19573d6000803e3d6000fd5b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663c5f4f7b06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a9b573d6000803e3d6000fd5b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663c76d41c86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4e9190613670565b6001600160a01b0316336001600160a01b031614611f7e5760405162461bcd60e51b81526004016106749061368d565b80600554106120145760405162461bcd60e51b8152602060048201526062602482015260008051602061391383398151915260448201527f6e63656e74697665424950532829206c6f776572526174696f496e63656e746960648201527f766542495053203e3d205f7570706572526174696f496e63656e746976654249608482015261505360f01b60a482015260c401610674565b6109c48111156120915760405162461bcd60e51b815260206004820152604e602482015260008051602061391383398151915260448201527f6e63656e74697665424950532829205f7570706572526174696f496e63656e7460648201526d069766542495053203e20323530360941b608482015260a401610674565b7f199620c03ff2f9a6d0d7a0436d79563b3f9f2f24a2f7956e3d4d45dabca11b3e600654826040516120c4929190613709565b60405180910390a1600655565b6000546001600160a01b031690565b6120ea8484611b2e565b61117d828261163b565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b03166315154aff6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612152573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121769190613670565b6001600160a01b0316336001600160a01b0316146122135760405162461bcd60e51b815260206004820152604e60248201527f5a69766f655472616e636865733a3a756e6c6f636b2829205f6d736753656e6460448201527f6572282920213d20495a69766f65476c6f62616c735f5a69766f655472616e6360648201526d6865732847424c292e49544f282960901b608482015260a401610674565b6007805460ff19166001179055565b61222a612acb565b60405162461bcd60e51b815260206004820152603c60248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b65724d756c7469455260448201527b433732312829202163616e507573684d756c7469455243373231282960201b6064820152608401610674565b858110156107da578686828181106122b1576122b1613545565b90506020020160208101906122c691906132ee565b6001600160a01b031663b88d4fde6122dc6120d1565b308888868181106122ef576122ef613545565b9050602002013587878781811061230857612308613545565b905060200281019061231a919061355b565b6040518663ffffffff1660e01b815260040161233a959493929190613511565b600060405180830381600087803b15801561235457600080fd5b505af1158015612368573d6000803e3d6000fd5b505050508080612377906135b7565b915050612297565b60008060007f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316635351d09b6040518163ffffffff1660e01b81526004016040805180830381865afa1580156123e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124059190613600565b9150915060008060035460045461241c91906137cc565b905060008461242d61271086613624565b612437919061363b565b90506000856127106124498a8861365d565b6124539190613624565b61245d919061363b565b90506000600261246d838561365d565b612477919061363b565b9050600554811161248c5760045494506124e0565b600654811061249f5760035494506124e0565b6005546006546124af91906137cc565b6005546124bc90836137cc565b6124c69086613624565b6124d0919061363b565b6004546124dd91906137cc565b94505b670de0b6b3a76400006124f38a87613624565b6124fd919061363b565b9750877f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561255e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125829190613670565b6001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016125ad91906131e4565b602060405180830381865afa1580156125ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ee91906135d0565b10156126e5577f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612652573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126769190613670565b6001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016126a191906131e4565b602060405180830381865afa1580156126be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126e291906135d0565b97505b50505050505050919050565b6126f9612acb565b6127826127046120d1565b6040516370a0823160e01b81526001600160a01b038616906370a08231906127309030906004016131e4565b602060405180830381865afa15801561274d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061277191906135d0565b6001600160a01b0386169190612b2a565b505050565b61278f612acb565b6040805162461bcd60e51b815260206004820152602481019190915260008051602061387383398151915260448201527f5061727469616c2829202163616e50756c6c4d756c74695061727469616c28296064820152608401610674565b858110156107da5761282b6128006120d1565b86868481811061281257612812613545565b905060200201358989858181106108f4576108f4613545565b80612835816135b7565b9150506127ed565b60008060007f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316635351d09b6040518163ffffffff1660e01b81526004016040805180830381865afa15801561289f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128c39190613600565b915091506000806003546004546128da91906137cc565b90506000846128eb61271086613624565b6128f5919061363b565b90506000612903888761365d565b61290f61271087613624565b612919919061363b565b905060006002612929838561365d565b612933919061363b565b905060055481116129485760035494506124e0565b600654811061295b5760045494506124e0565b60055460065461296b91906137cc565b60055461297890836137cc565b6129829086613624565b61298c919061363b565b6003546124dd919061365d565b6129a1612acb565b61117d6129ac6120d1565b6001600160a01b0386169085612b2a565b6129c5612acb565b600054600160a01b900460ff16156129ef5760405162461bcd60e51b815260040161067490613717565b6001600160a01b038116612a555760405162461bcd60e51b815260206004820152603960248201526000805160206139338339815191526044820152782829206e65774f776e6572203d3d206164647265737328302960381b6064820152608401610674565b61125181612bb8565b612a66612acb565b60405162461bcd60e51b815260206004820152603460248201527f5a69766f654c6f636b65723a3a70757368546f4c6f636b6572455243313135356044820152732829202163616e5075736845524331313535282960601b6064820152608401610674565b33612ad46120d1565b6001600160a01b0316146114d05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610674565b6127828363a9059cbb60e01b8484604051602401612b499291906137b3565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612c61565b6040516001600160a01b038085166024830152831660448201526064810182905261117d9085906323b872dd60e01b90608401612b49565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403612c5a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610674565b6002600155565b6000612cb6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612d339092919063ffffffff16565b8051909150156127825780806020019051810190612cd49190613791565b6127825760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610674565b6060610686848460008585600080866001600160a01b03168587604051612d5a9190613803565b60006040518083038185875af1925050503d8060008114612d97576040519150601f19603f3d011682016040523d82523d6000602084013e612d9c565b606091505b5091509150612dad87838387612db8565b979650505050505050565b60608315612e27578251600003612e20576001600160a01b0385163b612e205760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610674565b5081610686565b6106868383815115612e3c5781518083602001fd5b8060405162461bcd60e51b8152600401610674919061381f565b600060208284031215612e6857600080fd5b81356001600160e01b031981168114612e8057600080fd5b9392505050565b6001600160a01b038116811461125157600080fd5b60008083601f840112612eae57600080fd5b5081356001600160401b03811115612ec557600080fd5b602083019150836020828501011115612edd57600080fd5b9250929050565b60008060008060608587031215612efa57600080fd5b8435612f0581612e87565b93506020850135925060408501356001600160401b03811115612f2757600080fd5b612f3387828801612e9c565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612f7d57612f7d612f3f565b604052919050565b600082601f830112612f9657600080fd5b81356001600160401b03811115612faf57612faf612f3f565b612fc2601f8201601f1916602001612f55565b818152846020838601011115612fd757600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806080858703121561300a57600080fd5b843561301581612e87565b9350602085013561302581612e87565b92506040850135915060608501356001600160401b0381111561304757600080fd5b61305387828801612f85565b91505092959194509250565b60008083601f84011261307157600080fd5b5081356001600160401b0381111561308857600080fd5b6020830191508360208260051b8501011115612edd57600080fd5b600080600080600080606087890312156130bc57600080fd5b86356001600160401b03808211156130d357600080fd5b6130df8a838b0161305f565b909850965060208901359150808211156130f857600080fd5b6131048a838b0161305f565b9096509450604089013591508082111561311d57600080fd5b5061312a89828a0161305f565b979a9699509497509295939492505050565b6000806000806040858703121561315257600080fd5b84356001600160401b038082111561316957600080fd5b6131758883890161305f565b9096509450602087013591508082111561318e57600080fd5b50612f338782880161305f565b600080604083850312156131ae57600080fd5b8235915060208301356131c081612e87565b809150509250929050565b6000602082840312156131dd57600080fd5b5035919050565b6001600160a01b0391909116815260200190565b60008060008060008060006080888a03121561321357600080fd5b873561321e81612e87565b965060208801356001600160401b038082111561323a57600080fd5b6132468b838c0161305f565b909850965060408a013591508082111561325f57600080fd5b61326b8b838c0161305f565b909650945060608a013591508082111561328457600080fd5b506132918a828b01612e9c565b989b979a50959850939692959293505050565b600080600080608085870312156132ba57600080fd5b8435935060208501356132cc81612e87565b92506040850135915060608501356132e381612e87565b939692955090935050565b60006020828403121561330057600080fd5b8135612e8081612e87565b600082601f83011261331c57600080fd5b813560206001600160401b0382111561333757613337612f3f565b8160051b613346828201612f55565b928352848101820192828101908785111561336057600080fd5b83870192505b84831015612dad57823582529183019190830190613366565b600080600080600060a0868803121561339757600080fd5b85356133a281612e87565b945060208601356133b281612e87565b935060408601356001600160401b03808211156133ce57600080fd5b6133da89838a0161330b565b945060608801359150808211156133f057600080fd5b6133fc89838a0161330b565b9350608088013591508082111561341257600080fd5b5061341f88828901612f85565b9150509295509295909350565b60008060006040848603121561344157600080fd5b833561344c81612e87565b925060208401356001600160401b0381111561346757600080fd5b61347386828701612e9c565b9497909650939450505050565b600080600080600060a0868803121561349857600080fd5b85356134a381612e87565b945060208601356134b381612e87565b9350604086013592506060860135915060808601356001600160401b038111156134dc57600080fd5b61341f88828901612f85565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0386811682528516602082015260408101849052608060608201819052600090612dad90830184866134e8565b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261357257600080fd5b8301803591506001600160401b0382111561358c57600080fd5b602001915036819003821315612edd57600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016135c9576135c96135a1565b5060010190565b6000602082840312156135e257600080fd5b5051919050565b9182526001600160a01b0316602082015260400190565b6000806040838503121561361357600080fd5b505080516020909101519092909150565b8082028115828204841417610605576106056135a1565b60008261365857634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610605576106056135a1565b60006020828403121561368257600080fd5b8151612e8081612e87565b60208082526056908201527f5a69766f655472616e636865733a3a6f6e6c79476f7665726e616e636528292060408201527f5f6d736753656e646572282920213d20495a69766f65476c6f62616c735f5a69606082015275766f655472616e636865732847424c292e544c43282960501b608082015260a00190565b918252602082015260400190565b6020808252818101527f4f776e61626c654c6f636b65643a3a756e6c6f636b65642829206c6f636b6564604082015260600190565b60208082526025908201527f5a69766f655472616e636865733a3a7768656e5061757365642829206e6f7450604082015264185d5cd95960da1b606082015260800190565b6000602082840312156137a357600080fd5b81518015158114612e8057600080fd5b6001600160a01b03929092168252602082015260400190565b81810381811115610605576106056135a1565b60005b838110156137fa5781810151838201526020016137e2565b50506000910152565b600082516138158184602087016137df565b9190910192915050565b602081526000825180602084015261383e8160408501602087016137df565b601f01601f1916919091016040019291505056fe5a69766f655472616e636865733a3a6465706f73697453656e696f72282920215a69766f654c6f636b65723a3a70756c6c46726f6d4c6f636b65724d756c74695a69766f655472616e636865733a3a7570646174654c6f776572526174696f496e63656e74697665424950532829205f6c6f776572526174696f496e63656e74495a69766f65476c6f62616c735f5a69766f655472616e636865732847424c295a69766f655472616e636865733a3a6465706f7369744a756e696f72282920215a69766f655472616e636865733a3a7570646174655570706572526174696f494f776e61626c654c6f636b65643a3a7472616e736665724f776e6572736869705a69766f655472616e636865733a3a7570646174654d61785a56455065724a54a2646970667358221220c5cccdd4a21e46eb20879e75b6dcc7ec1708942b69258c22b47e6aa1f8613f8a64736f6c63430008110033

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

000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66

-----Decoded View---------------
Arg [0] : _GBL (address): 0xEa537eB0bBcC7783bDF7c595bF9371984583dA66

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

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