ETH Price: $3,479.00 (+0.75%)

Contract

0xEFeadeb2445E8e2b0c027001bA3d67b29D5a84e7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Buy Big Circle165973902023-02-10 9:13:47684 days ago1676020427IN
0xEFeadeb2...29D5a84e7
0 ETH0.0037304927.23622301
Buy Big Circle165480852023-02-03 11:54:35691 days ago1675425275IN
0xEFeadeb2...29D5a84e7
0 ETH0.0030567922.31755615
Buy Big Circle164638532023-01-22 17:31:35702 days ago1674408695IN
0xEFeadeb2...29D5a84e7
0 ETH0.002904121.20281639
Buy Big Circle163556732023-01-07 15:02:47717 days ago1673103767IN
0xEFeadeb2...29D5a84e7
0 ETH0.002589518.90589847
Easy Buy From Pi163090092023-01-01 2:44:47724 days ago1672541087IN
0xEFeadeb2...29D5a84e7
0 ETH0.0108203215.01622144
Easy Buy From Pi161510322022-12-10 1:30:47746 days ago1670635847IN
0xEFeadeb2...29D5a84e7
0 ETH0.0098773713.45221909
Easy Buy From Pi160899352022-12-01 12:23:59755 days ago1669897439IN
0xEFeadeb2...29D5a84e7
0 ETH0.0091293613.10746554
Easy Buy From Pi160640252022-11-27 21:32:35758 days ago1669584755IN
0xEFeadeb2...29D5a84e7
0 ETH0.0088744212.31590712
Easy Buy Small C...159972052022-11-18 13:29:35768 days ago1668778175IN
0xEFeadeb2...29D5a84e7
0.0777 ETH0.0068588910.93726242
Easy Sell Small ...159718752022-11-15 0:31:47771 days ago1668472307IN
0xEFeadeb2...29D5a84e7
0 ETH0.0092445319.9887904
Easy Sell Small ...159525722022-11-12 7:54:47774 days ago1668239687IN
0xEFeadeb2...29D5a84e7
0 ETH0.0072091515.58782765
Easy Buy From Pi158749522022-11-01 11:42:47785 days ago1667302967IN
0xEFeadeb2...29D5a84e7
0 ETH0.0078701911.29961817
Easy Buy Small C...157815872022-10-19 10:34:59798 days ago1666175699IN
0xEFeadeb2...29D5a84e7
2.116 ETH0.0104192614.12442711
Easy Buy From Pi157654642022-10-17 4:31:23800 days ago1665981083IN
0xEFeadeb2...29D5a84e7
0 ETH0.0104538114.50758161
Easy Buy Small C...157257262022-10-11 15:20:47805 days ago1665501647IN
0xEFeadeb2...29D5a84e7
0.09477316 ETH0.02208333.91187866
Easy Buy From Pi156880212022-10-06 8:58:35811 days ago1665046715IN
0xEFeadeb2...29D5a84e7
0 ETH0.006656429.23764872
Easy Buy From Pi156584672022-10-02 5:48:11815 days ago1664689691IN
0xEFeadeb2...29D5a84e7
0 ETH0.002196063.30151845
Easy Buy From Pi156584632022-10-02 5:47:23815 days ago1664689643IN
0xEFeadeb2...29D5a84e7
0 ETH0.000157723.03866435
Easy Buy From Pi156577182022-10-02 3:17:59815 days ago1664680679IN
0xEFeadeb2...29D5a84e7
0 ETH0.005343477.2773977
Easy Buy From Pi156559032022-10-01 21:12:35815 days ago1664658755IN
0xEFeadeb2...29D5a84e7
0 ETH0.005475268.23139857
Easy Buy From Pi156558462022-10-01 21:00:59815 days ago1664658059IN
0xEFeadeb2...29D5a84e7
0 ETH0.004656026.99967342
Easy Buy From Pi156529782022-10-01 11:21:11816 days ago1664623271IN
0xEFeadeb2...29D5a84e7
0 ETH0.005071937.03854208
Easy Buy From Pi156141592022-09-26 1:06:59821 days ago1664154419IN
0xEFeadeb2...29D5a84e7
0 ETH0.005292957.34535176
Easy Buy From Pi155680022022-09-19 13:57:35828 days ago1663595855IN
0xEFeadeb2...29D5a84e7
0 ETH0.0107617514.93493823
Easy Buy Small C...155534972022-09-17 13:07:59830 days ago1663420079IN
0xEFeadeb2...29D5a84e7
0.17447 ETH0.004336346.91478129
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
159972052022-11-18 13:29:35768 days ago1668778175
0xEFeadeb2...29D5a84e7
0.03885 ETH
159972052022-11-18 13:29:35768 days ago1668778175
0xEFeadeb2...29D5a84e7
0.03885 ETH
159718752022-11-15 0:31:47771 days ago1668472307
0xEFeadeb2...29D5a84e7
0.0383678 ETH
159718752022-11-15 0:31:47771 days ago1668472307
0xEFeadeb2...29D5a84e7
0.0383678 ETH
159525722022-11-12 7:54:47774 days ago1668239687
0xEFeadeb2...29D5a84e7
0.57781762 ETH
159525722022-11-12 7:54:47774 days ago1668239687
0xEFeadeb2...29D5a84e7
0.57781762 ETH
157815872022-10-19 10:34:59798 days ago1666175699
0xEFeadeb2...29D5a84e7
1.058 ETH
157815872022-10-19 10:34:59798 days ago1666175699
0xEFeadeb2...29D5a84e7
1.058 ETH
157257262022-10-11 15:20:47805 days ago1665501647
0xEFeadeb2...29D5a84e7
0.04738658 ETH
157257262022-10-11 15:20:47805 days ago1665501647
0xEFeadeb2...29D5a84e7
0.04738658 ETH
155534972022-09-17 13:07:59830 days ago1663420079
0xEFeadeb2...29D5a84e7
0.087235 ETH
155534972022-09-17 13:07:59830 days ago1663420079
0xEFeadeb2...29D5a84e7
0.087235 ETH
155320262022-09-14 8:50:32833 days ago1663145432
0xEFeadeb2...29D5a84e7
0.13097991 ETH
155320262022-09-14 8:50:32833 days ago1663145432
0xEFeadeb2...29D5a84e7
0.13097991 ETH
154530842022-09-01 13:14:45846 days ago1662038085
0xEFeadeb2...29D5a84e7
0.04528942 ETH
154530842022-09-01 13:14:45846 days ago1662038085
0xEFeadeb2...29D5a84e7
0.04528942 ETH
154530502022-09-01 13:08:14846 days ago1662037694
0xEFeadeb2...29D5a84e7
0.04531255 ETH
154530502022-09-01 13:08:14846 days ago1662037694
0xEFeadeb2...29D5a84e7
0.04531255 ETH
153317232022-08-13 6:03:20865 days ago1660370600
0xEFeadeb2...29D5a84e7
0.15125 ETH
153317232022-08-13 6:03:20865 days ago1660370600
0xEFeadeb2...29D5a84e7
0.15125 ETH
153282842022-08-12 17:32:18865 days ago1660325538
0xEFeadeb2...29D5a84e7
0.048 ETH
153282842022-08-12 17:32:18865 days ago1660325538
0xEFeadeb2...29D5a84e7
0.048 ETH
152985872022-08-08 1:02:27870 days ago1659920547
0xEFeadeb2...29D5a84e7
0.0484 ETH
152985872022-08-08 1:02:27870 days ago1659920547
0xEFeadeb2...29D5a84e7
0.0484 ETH
152900092022-08-06 17:17:54871 days ago1659806274
0xEFeadeb2...29D5a84e7
0.4775 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CircleDirect

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 28 : CircleDirect.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity 0.7.4;

import "./interfaces/IPi.sol";
import "./interfaces/IPETH.sol";
import "./openzeppelin/TokensRecoverable.sol";
import "./openzeppelin/Owned.sol";
import "./interfaces/IUniswapV2Factory.sol";
import "./interfaces/IPiTransferGate.sol";
import "./interfaces/IUniswapV2Router02.sol";
import "./interfaces/IERC31337.sol";
import "./interfaces/IpETH_Direct.sol";
import "./openzeppelin/ReentrancyGuard.sol";
import "./interfaces/IVault.sol";
import "./interfaces/IERC1155Pi.sol";
import "./interfaces/IEventGate.sol";
import "./interfaces/IERC20.sol";
import "./interfaces/IUniswapV2Pair.sol";


contract CircleDirect is Owned, TokensRecoverable, ReentrancyGuard 
{
    using SafeMath for uint256;
    IPETH public immutable pETH;
    IPi public immutable pi;
    IpETH_Direct public immutable pETHDirect;
    IPiTransferGate public immutable transferGate; 
    IERC31337 public immutable CircleNFT;
    IVault vaultContract;
    IERC1155 ERC1155Token;

    address public LPAddress;

    uint256 sCircleTokenId = 1;
    uint256 eCircleTokenId = 2;
    
    IUniswapV2Router02 private uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
    IUniswapV2Factory private uniswapV2Factory = IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f);
    
    event SlippageSet(uint slippage);

    constructor(IPETH _pETH, IPi _pi, IpETH_Direct _pETH_Direct, IPiTransferGate _transferGate, IERC31337 _pETH_Liquidity, IVault _vaultContract, IERC1155 _ERC1155Token)
    {
        pETH = _pETH;
        pETHDirect = _pETH_Direct;
        transferGate = _transferGate;
        CircleNFT = _pETH_Liquidity;
        pi = _pi;
        vaultContract = _vaultContract;
        ERC1155Token = _ERC1155Token;

        LPAddress = uniswapV2Factory.getPair(address(_pETH), address(_pi));

        _pETH.approve(address(_pETH_Direct), uint256(-1));
        _pi.approve(address(_pETH_Direct), uint256(-1));

        _pETH.approve(address(_transferGate), uint256(-1));
        _pi.approve(address(_transferGate), uint256(-1));

        _pETH.approve(address(uniswapV2Router), uint256(-1));
        _pi.approve(address(uniswapV2Router), uint256(-1));
 
        IERC20(LPAddress).approve(address(uniswapV2Router), uint256(-1));

        _ERC1155Token.setApprovalForAll(address(_vaultContract),true);

    }

    receive() external payable
    {
        require (msg.sender == address(pETH));
    }
   
   
     function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _value, bytes calldata _data) external  returns(bytes4){
        return 0xf23a6e61;
    }

    function onERC1155BatchReceived(address _operator, address _from, uint256[] calldata _ids, uint256[] calldata _values, bytes calldata _data) external  returns(bytes4){
        return 0xbc197c81;
    }     

    function estimateBuyLPFromBNB(uint256 _bnb_amount) external view returns(uint256){
        uint256 bnbToBuy = _bnb_amount.div(2);
        (uint256 reserve0, uint256 reserve1,) = IUniswapV2Pair(LPAddress).getReserves(); 
        uint256 piAmount = pETHDirect.estimateBuy(bnbToBuy);
        uint256 amt1 = piAmount.mul(IUniswapV2Pair(LPAddress).totalSupply()).div(reserve0.add(piAmount));
        uint256 amt2 = bnbToBuy.mul(IUniswapV2Pair(LPAddress).totalSupply()).div(reserve1.sub(bnbToBuy));

        if(amt1>amt2) return amt2;
        else return amt1;
    }

    function estimateBuyLPFromPi(uint256 _pi_amount) external view returns(uint256){
        uint256 piToBuy = _pi_amount.div(2);
        (uint256 reserve0, uint256 reserve1,) = IUniswapV2Pair(LPAddress).getReserves(); 
        uint256 bnbAmount = pETHDirect.estimateSell(piToBuy);
        uint256 amt1 = piToBuy.mul(IUniswapV2Pair(LPAddress).totalSupply()).div(reserve0.sub(piToBuy));
        uint256 amt2 = bnbAmount.mul(IUniswapV2Pair(LPAddress).totalSupply()).div(reserve1.add(bnbAmount));
        if(amt1>amt2) return amt2;
        else return amt1;
    }

    //  BNB => CircleNFT via LP
    function easyBuySmallCircle() external payable nonReentrant
    {
        uint256 prevpiAmount = pi.balanceOf(address(this));
        uint256 prevCircleNFTAmount = ERC1155Token.balanceOf(address(this), sCircleTokenId);

        uint256 tBNB=SafeMath.div(msg.value,2);
        pETH.deposit{ value: tBNB }();

        uint256 piAmt = pETHDirect.easyBuy{ value: tBNB }();
        address LPaddress = uniswapV2Factory.getPair(address(pi), address(pETH));

        uint256 prevLPBalance = IERC20(LPaddress).balanceOf(address(this));

        (, ,  uint256 LPtokens) =transferGate.safeAddLiquidity(uniswapV2Router, pETH, tBNB, piAmt);
 
        
        IERC20(LPaddress).approve(address(CircleNFT),LPtokens);


        CircleNFT.depositTokens(LPaddress, LPtokens);
    
        uint256 currCircleNFTAmount = ERC1155Token.balanceOf(address(this), sCircleTokenId);
        
        require(currCircleNFTAmount.sub(prevCircleNFTAmount)>0,"NFT mints should be more than 1");
        ERC1155Token.safeTransferFrom(address(this), msg.sender, sCircleTokenId, currCircleNFTAmount.sub(prevCircleNFTAmount), "0x");

        // any residue sent back to buyer/seller
        uint256 currLPBalance = IERC20(LPaddress).balanceOf(address(this));
        if(currLPBalance>prevLPBalance)
            IERC20(LPaddress).transfer(msg.sender, currLPBalance.sub(prevLPBalance));

        uint256 currpiAmount = pi.balanceOf(address(this)); 
        if(currpiAmount>prevpiAmount)
            pi.transfer(msg.sender,currpiAmount.sub(prevpiAmount));
    }

    //  sCircle => eCircle
    function buyBigCircle(uint256 sCircleValue) external nonReentrant
    {
        ERC1155Token.safeTransferFrom( msg.sender, address(this), sCircleTokenId, sCircleValue, "0x");        
        uint256 mints = vaultContract.depositSmallCircle(sCircleValue);        
        ERC1155Token.safeTransferFrom(address(this), msg.sender, eCircleTokenId, mints, "0x");
    }

    // sCircle => LPs
    function sellSmallCircleToLP(address _LPToken, uint256 sCircleValue) external{
        ERC1155Token.safeTransferFrom( msg.sender, address(this), sCircleTokenId, sCircleValue, "0x");        
        uint256 claimed = vaultContract.sellSmallCircle(_LPToken, sCircleValue);
        address LPaddress = uniswapV2Factory.getPair(address(pi), address(pETH));
        IERC20(LPaddress).transfer(msg.sender, claimed);
    }


    //  pETH => small Circle
    function easyBuyFromPETH(uint256 pETHAmt) public nonReentrant returns (uint256)
    {

        uint256 prevPETHAmount = pETH.balanceOf(address(this));
        uint256 prevpiAmount = pi.balanceOf(address(this));

        pETH.transferFrom(msg.sender,address(this),pETHAmt);

        //swap half pETH to pi    
        uint256 pETHForBuy = pETHAmt.div(2);

        uint256 piAmt = pETHDirect.easyBuyFromPETH(pETHForBuy);

        address LPaddress = uniswapV2Factory.getPair(address(pi), address(pETH));
        uint256 prevLPBalance = IERC20(LPaddress).balanceOf(address(this));

        (, ,  uint256 LPtokens) =transferGate.safeAddLiquidity(uniswapV2Router, IERC20(pETH), pETHForBuy, piAmt);

        
        IERC20(LPaddress).approve(address(CircleNFT),LPtokens);

        uint256 mints = CircleNFT.depositTokens(LPaddress, LPtokens);

        ERC1155Token.safeTransferFrom(address(this), msg.sender, sCircleTokenId, mints, "0x");

        // any residue sent back to buyer/seller
        uint256 currpiAmount = pi.balanceOf(address(this)); 
        uint256 currPETHAmount = pETH.balanceOf(address(this));
        uint256 currLPBalance = IERC20(LPaddress).balanceOf(address(this));

        if(currLPBalance>prevLPBalance)
            IERC20(LPaddress).transfer(msg.sender, currLPBalance.sub(prevLPBalance));

        if(currpiAmount>prevpiAmount)
            pi.transfer(msg.sender,currpiAmount.sub(prevpiAmount));

        if(currPETHAmount>prevPETHAmount)
            pETH.transfer(msg.sender,currPETHAmount.sub(prevPETHAmount));

        return mints;
  
    }

    //  pi => small Circle
    function easyBuyFromPi(uint256 piAmt) external nonReentrant
    {
        uint256 prevpETHAmount = pETH.balanceOf(address(this));
        uint256 prevpiAmount = pi.balanceOf(address(this));

        pi.transferFrom(msg.sender,address(this),piAmt);
        
        //swap half pETH to pi    
        uint256 piForBuy = piAmt.div(2);

        uint256 pETHAmt = pETHDirect.easySellToPETH(piForBuy);

        address LPaddress = uniswapV2Factory.getPair(address(pi), address(pETH));
        uint256 prevLPBalance = IERC20(LPaddress).balanceOf(address(this));

        (, ,  uint256 LPtokens) =transferGate.safeAddLiquidity(uniswapV2Router, IERC20(pETH), pETHAmt, piForBuy);

        
        IERC20(LPaddress).approve(address(CircleNFT),LPtokens);

        uint256 mints = CircleNFT.depositTokens(LPaddress, LPtokens);
        
        ERC1155Token.safeTransferFrom(address(this), msg.sender, sCircleTokenId, mints, "0x");

        // any residue sent back to buyer/seller
        uint256 currpETHAmount = pETH.balanceOf(address(this));
        uint256 currpiAmount = pi.balanceOf(address(this)); 
        uint256 currLPBalance = IERC20(LPaddress).balanceOf(address(this));

        if(currLPBalance>prevLPBalance)
            IERC20(LPaddress).transfer(msg.sender, currLPBalance.sub(prevLPBalance));

        if(currpiAmount>prevpiAmount)
            pi.transfer(msg.sender,currpiAmount.sub(prevpiAmount));
        
        if(currpETHAmount>prevpETHAmount)
            pETH.transfer(msg.sender,currpETHAmount.sub(prevpETHAmount));

    }


     //  CircleNFT => Pi
    function easySellSmallCircleToPi(address _LPToken, uint256 sCircleValue) external nonReentrant
    {

        uint256 prevpETHAmount = pETH.balanceOf(address(this));
        uint256 prevPiAmount = pi.balanceOf(address(this));

        ERC1155Token.safeTransferFrom( msg.sender, address(this), sCircleTokenId, sCircleValue, "0x");        
        uint256 claimed = vaultContract.sellSmallCircle(_LPToken, sCircleValue);

        uniswapV2Router.removeLiquidity(address(pETH), address(pi), claimed, 0, 0, address(this), block.timestamp);
     
        
        uint256 currpETHAmount = pETH.balanceOf(address(this));
        pETHDirect.easyBuyFromPETH(currpETHAmount.sub(prevpETHAmount));

        uint256 currpiAmount = pi.balanceOf(address(this)); 
        pi.transfer(msg.sender, currpiAmount.sub(prevPiAmount));

    }


    //  CircleNFT => pETH
    function easySellSmallCircleToPETH(address _LPToken, uint256 sCircleValue) external nonReentrant
    {
        uint256 prevpETHAmount = pETH.balanceOf(address(this));
        uint256 prevPiAmount = pi.balanceOf(address(this));

        ERC1155Token.safeTransferFrom(msg.sender, address(this), sCircleTokenId, sCircleValue, "0x");        
        uint256 claimed = vaultContract.sellSmallCircle(_LPToken, sCircleValue);

        uniswapV2Router.removeLiquidity(address(pETH), address(pi), claimed, 0, 0, address(this), block.timestamp);
                
        uint256 currpiAmount = pi.balanceOf(address(this)); 
        if(currpiAmount>prevPiAmount)
            pETHDirect.easySellToPETH(currpiAmount.sub(prevPiAmount));

        uint256 currpETHAmount = pETH.balanceOf(address(this));
        if(currpETHAmount>prevpETHAmount )
            pETH.transfer(msg.sender, currpETHAmount.sub(prevpETHAmount));
    }


    //  CircleNFT => BNB
    function easySellSmallCircleToBNB(address _LPToken, uint256 sCircleValue) external nonReentrant
    {
        uint256 prevpETHAmount = pETH.balanceOf(address(this));
        uint256 prevPiAmount = pi.balanceOf(address(this));

        ERC1155Token.safeTransferFrom( msg.sender, address(this), sCircleTokenId, sCircleValue, "0x");        
        uint256 claimed = vaultContract.sellSmallCircle(_LPToken, sCircleValue);

        uniswapV2Router.removeLiquidity(address(pETH), address(pi), claimed, 0, 0, address(this), block.timestamp);
        
        uint256 currpiAmount = pi.balanceOf(address(this)); 
        pETHDirect.easySellToPETH(currpiAmount.sub(prevPiAmount));

        uint256 currpETHAmount = pETH.balanceOf(address(this));
        uint256 pETHAmt = currpETHAmount.sub(prevpETHAmount);

        uint remAmount = pETHAmt;
        if(!pETH.isIgnored(msg.sender)){
            uint feeAmount= pETHAmt.mul(pETH.FEE()).div(100000);
            remAmount = pETHAmt.sub(feeAmount);
            pETH.transfer(pETH.FEE_ADDRESS(), feeAmount);
        }

        pETH.withdraw(remAmount);

        (bool success,) = msg.sender.call{ value: remAmount }("");
        require (success, "Transfer failed");
        
        // any residue sent back to buyer/seller
        if(pi.balanceOf(address(this))>prevPiAmount)
            pi.transfer(msg.sender,pi.balanceOf(address(this)).sub(prevPiAmount));
        
        if(pETH.balanceOf(address(this))>prevpETHAmount)
            pETH.transfer(msg.sender,pETH.balanceOf(address(this)).sub(prevpETHAmount));

    }
}

File 2 of 28 : IPi.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./IGatedERC20.sol";

interface IPi is IGatedERC20
{
    
    function FEE() external view returns (uint256);
    function FEE_ADDRESS() external view returns (address);
    function isIgnored(address _ignoredAddress) external view returns (bool);
    
}

File 3 of 28 : IPETH.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./IWETH.sol";

interface IPETH is IWETH
{
    
    function FEE() external view returns (uint256);
    function FEE_ADDRESS() external view returns (address);
    function isIgnored(address _ignoredAddress) external view returns (bool);
    
}

File 4 of 28 : TokensRecoverable.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

/* ROOTKIT:
Allows recovery of unexpected tokens (airdrops, etc)
Inheriters can customize logic by overriding canRecoverTokens
*/

import "../interfaces/IERC20.sol";
import "../libraries/SafeERC20.sol";
import "./Owned.sol";
import "../interfaces/ITokensRecoverable.sol";

abstract contract TokensRecoverable is Owned, ITokensRecoverable
{
    using SafeERC20 for IERC20;

    function recoverTokens(IERC20 token) public override ownerOnly() 
    {
        require (canRecoverTokens(token));
        
        token.safeTransfer(msg.sender, token.balanceOf(address(this)));
    }

    function recoverETH(uint256 amount) public override ownerOnly() 
    {        
        msg.sender.transfer(amount);
    }

    function canRecoverTokens(IERC20 token) internal virtual view returns (bool) 
    { 
        return address(token) != address(this); 
    }
}

File 5 of 28 : Owned.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

/* ROOTKIT:
Provides ownerOnly() modifier
Allows for ownership transfer but requires the new
owner to claim (accept) ownership
Safer because no accidental transfers or renouncing
*/

import "../interfaces/IOwned.sol";

abstract contract Owned is IOwned
{
    address public override owner = msg.sender;
    address internal pendingOwner;

    modifier ownerOnly()
    {
        require (msg.sender == owner, "Owner only");
        _;
    }

    function transferOwnership(address newOwner) public override ownerOnly()
    {
        pendingOwner = newOwner;
    }

    function claimOwnership() public override
    {
        require (pendingOwner == msg.sender);
        pendingOwner = address(0);
        emit OwnershipTransferred(owner, msg.sender);
        owner = msg.sender;
    }
}

File 6 of 28 : IUniswapV2Factory.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 7 of 28 : IPiTransferGate.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
pragma experimental ABIEncoderV2;

import "./IOwned.sol";
import "./ITokensRecoverable.sol";
import "./IUniswapV2Router02.sol";
import "./IUniswapV2Factory.sol";


enum AddressState
{
    Unknown,
    NotPool,
    DisallowedPool,
    AllowedPool
} 
struct TransferGateTarget
{
    address destination;
    uint256 amount;
}

interface IPiTransferGate is IOwned, ITokensRecoverable
{   


    function allowedPoolTokensCount() external view returns (uint256);
    function setUnrestrictedController(address unrestrictedController, bool allow) external;

    function setFreeParticipant(address participant, bool free) external;

    function setUnrestricted(bool _unrestricted) external;

    function setParameters(address _dev, address _stake, uint16 _stakeRate, uint16 _burnRate, uint16 _devRate) external;
    function allowPool(IUniswapV2Factory _uniswapV2Factory, IERC20 token) external;

    function safeAddLiquidity(IUniswapV2Router02 _uniswapRouter02, IERC20 token, uint256 tokenAmount, uint256 PiAmount//, uint256 minTokenAmount, uint256 minPiAmount
// ,uint256 deadline //stack deep issue coming so had to use fix values
    ) external returns (uint256 PiUsed, uint256 tokenUsed, uint256 liquidity);

    function handleTransfer(address msgSender, address from, address to, uint256 amount) external
    returns (uint256 burn, TransferGateTarget[] memory targets);

  
}

File 8 of 28 : IUniswapV2Router02.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 9 of 28 : IERC31337.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

import "./IWrappedERC20Multiple.sol";
import "./IFloorCalculator.sol";

interface IERC31337 is IWrappedERC20Multiple
{
    function floorCalculator() external view returns (IFloorCalculator);
    function sweepers(address _sweeper) external view returns (bool);
    
    function setFloorCalculator(IFloorCalculator _floorCalculator) external;
    function setSweeper(address _sweeper, bool _allow) external;
    function sweepFloor(address _to) external returns (uint256 amountSwept);
}

File 10 of 28 : IpETH_Direct.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

interface IpETH_Direct 
{


    function estimateBuy(uint256 piBNBAmountIn) external view returns (uint256 PiAmount);

    function estimateSell(uint256 PiAmountIn) external view returns (uint256 ethAmount);

    function easyBuy() external payable returns (uint256 PiAmount);
    function easyBuyFromPETH(uint256 piBNBIn) external  returns (uint256 PiAmount);

    function easySell(uint256 PiAmountIn) external returns (uint256 piBNBAmount);
    function easySellToPETH(uint256 PiAmountIn) external returns (uint256 piBNBAmount);

    function buyFromPETH(uint256 piBNBIn, uint256 dMagicOutMin) external returns (uint256 PiAmount);
    function buy(uint256 piBNBIn, uint256 dMagicOutMin) external payable returns (uint256 PiAmount);

    function sell(uint256 PiAmountIn, uint256 piBNBOutMin) external returns (uint256 piBNBAmount);
}

File 11 of 28 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        _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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 12 of 28 : IVault.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

interface IVault {
    
    function depositSmallCircle(uint256 amount) external returns (uint256 bigCircles);

    function sellSmallCircle(address _LPToken, uint256 amount) external returns (uint256 claimedBack);
    
}

File 13 of 28 : IERC1155Pi.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "../openzeppelin/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);

    function totalSupply(
        uint256 _id
    ) external view returns (uint256);
    
    /**
     * @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);


    function setContracts(address _GameContract) external returns (bool);

    function create( address _to, uint256 _initialSupply, string calldata _Uri, bytes calldata _data) external returns(uint256) ;
  
    function mint(address to, uint256 id, uint256 value, bytes memory data) external;

    function mintBatch(address to, uint256[] memory ids, uint256[] memory values, bytes memory data) external;

    function burn(address owner, uint256 id, uint256 value) external;

    function burnBatch(address owner, uint256[] memory ids, uint256[] memory values) external;


    /**
     * @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 be 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;
}

File 14 of 28 : IEventGate.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

interface IEventGate
{

    function handleZap(address sender, address recipient, uint256 amount) external returns(uint256);
    function enableGate(bool allow) external;
    function enabledGate() external view returns(bool);

}

File 15 of 28 : IERC20.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

interface IERC20 
{
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);

    function totalSupply() external view returns (uint256);
    function balanceOf(address _account) external view returns (uint256);
    function transfer(address _recipient, uint256 _amount) external returns (bool);
    function allowance(address _owner, address _spender) external view returns (uint256);
    function approve(address _spender, uint256 _amount) external returns (bool);
    function transferFrom(address _sender, address _recipient, uint256 _amount) external returns (bool);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
}

File 16 of 28 : IUniswapV2Pair.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 17 of 28 : IGatedERC20.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

import "./IERC20.sol";
import "./IPiTransferGate.sol";

interface IGatedERC20 is IERC20
{
    function transferGate() external view returns (IPiTransferGate);

    function setTransferGate(IPiTransferGate _transferGate) external;
}

File 18 of 28 : IOwned.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

interface IOwned
{
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    function owner() external view returns (address);

    function transferOwnership(address newOwner) external;
    function claimOwnership() external;
}

File 19 of 28 : ITokensRecoverable.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

import "./IERC20.sol";

interface ITokensRecoverable
{
    function recoverTokens(IERC20 token) external;
    function recoverETH(uint256 amount) external; 
}

File 20 of 28 : IUniswapV2Router01.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 21 of 28 : IWETH.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

import "./IERC20.sol";
import "./IWrappedERC20Events.sol";

interface IWETH is IERC20, IWrappedERC20Events
{    
    function deposit() external payable;
    function withdraw(uint256 _amount) external;
}

File 22 of 28 : IWrappedERC20Events.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

interface IWrappedERC20Events
{
    event Deposit(address indexed from, uint256 amount);
    event Withdrawal(address indexed to, uint256 amount);
}

File 23 of 28 : SafeERC20.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

/* ROOTKIT:
Modified to remove some junk
Also modified to remove silly restrictions (traps!) within safeApprove
*/

import "../interfaces/IERC20.sol";
import "./SafeMath.sol";
import "./Address.sol";

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

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {        
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }


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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 24 of 28 : SafeMath.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

/* ROOTKIT:
O wherefore art thou 8 point O
*/

library SafeMath 
{
    function add(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) 
    {
        require(b <= a, errorMessage);
        uint256 c = a - b;
        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) 
        {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }
    
    function div(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) 
    {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        return c;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) 
    {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 25 of 28 : Address.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

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

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

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.3._
     */
    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.3._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

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

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 26 of 28 : IWrappedERC20Multiple.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

import "./IERC20.sol";
import "./IWrappedERC20Events.sol";

interface IWrappedERC20Multiple is IERC20, IWrappedERC20Events
{
    function depositTokens(address LPAddress, uint256 _amount) external returns (uint256 totalNFTsToGive);
}

File 27 of 28 : IFloorCalculator.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!

pragma solidity ^0.7.4;
import "./IERC20.sol";

interface IFloorCalculator
{
    function calculateSubFloorPETH(IERC20 wrappedToken, IERC20 backingToken) external view returns (uint256);
    function calculateSubFloorCircleNFT(IERC20[] memory wrappedTokens, IERC20 backingToken) external view returns ( uint256);
}

File 28 of 28 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IPETH","name":"_pETH","type":"address"},{"internalType":"contract IPi","name":"_pi","type":"address"},{"internalType":"contract IpETH_Direct","name":"_pETH_Direct","type":"address"},{"internalType":"contract IPiTransferGate","name":"_transferGate","type":"address"},{"internalType":"contract IERC31337","name":"_pETH_Liquidity","type":"address"},{"internalType":"contract IVault","name":"_vaultContract","type":"address"},{"internalType":"contract IERC1155","name":"_ERC1155Token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"slippage","type":"uint256"}],"name":"SlippageSet","type":"event"},{"inputs":[],"name":"CircleNFT","outputs":[{"internalType":"contract IERC31337","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LPAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"sCircleValue","type":"uint256"}],"name":"buyBigCircle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pETHAmt","type":"uint256"}],"name":"easyBuyFromPETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"piAmt","type":"uint256"}],"name":"easyBuyFromPi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"easyBuySmallCircle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_LPToken","type":"address"},{"internalType":"uint256","name":"sCircleValue","type":"uint256"}],"name":"easySellSmallCircleToBNB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_LPToken","type":"address"},{"internalType":"uint256","name":"sCircleValue","type":"uint256"}],"name":"easySellSmallCircleToPETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_LPToken","type":"address"},{"internalType":"uint256","name":"sCircleValue","type":"uint256"}],"name":"easySellSmallCircleToPi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bnb_amount","type":"uint256"}],"name":"estimateBuyLPFromBNB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pi_amount","type":"uint256"}],"name":"estimateBuyLPFromPi","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"onERC1155Received","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":"pETH","outputs":[{"internalType":"contract IPETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pETHDirect","outputs":[{"internalType":"contract IpETH_Direct","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pi","outputs":[{"internalType":"contract IPi","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_LPToken","type":"address"},{"internalType":"uint256","name":"sCircleValue","type":"uint256"}],"name":"sellSmallCircleToLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferGate","outputs":[{"internalType":"contract IPiTransferGate","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

610120604052600080546001600160a01b0319908116331790915560016006556002600755600880548216737a250d5630b4cf539739df2c5dacb4c659f2488d17905560098054909116735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f1790553480156200006e57600080fd5b50604051620056c0380380620056c0833981810160405260e08110156200009457600080fd5b50805160208083015160408085015160608087015160808089015160a0808b015160c09b8c015160016002556001600160601b03198c881b811690955287871b8516909c5284861b841660e05282861b8416610100529488901b909216909152600380546001600160a01b038086166001600160a01b03199283161790925560048054838d169216919091178155600954875163e6a4390560e01b8152838c169281019290925282891660248301529651999a9799959893979296949592949091169263e6a4390592604480840193829003018186803b1580156200017857600080fd5b505afa1580156200018d573d6000803e3d6000fd5b505050506040513d6020811015620001a457600080fd5b5051600580546001600160a01b0319166001600160a01b039283161790556040805163095ea7b360e01b81528783166004820152600019602482015290519189169163095ea7b3916044808201926020929091908290030181600087803b1580156200020f57600080fd5b505af115801562000224573d6000803e3d6000fd5b505050506040513d60208110156200023b57600080fd5b50506040805163095ea7b360e01b81526001600160a01b038781166004830152600019602483015291519188169163095ea7b3916044808201926020929091908290030181600087803b1580156200029257600080fd5b505af1158015620002a7573d6000803e3d6000fd5b505050506040513d6020811015620002be57600080fd5b50506040805163095ea7b360e01b81526001600160a01b038681166004830152600019602483015291519189169163095ea7b3916044808201926020929091908290030181600087803b1580156200031557600080fd5b505af11580156200032a573d6000803e3d6000fd5b505050506040513d60208110156200034157600080fd5b50506040805163095ea7b360e01b81526001600160a01b038681166004830152600019602483015291519188169163095ea7b3916044808201926020929091908290030181600087803b1580156200039857600080fd5b505af1158015620003ad573d6000803e3d6000fd5b505050506040513d6020811015620003c457600080fd5b50506008546040805163095ea7b360e01b81526001600160a01b039283166004820152600019602482015290519189169163095ea7b3916044808201926020929091908290030181600087803b1580156200041e57600080fd5b505af115801562000433573d6000803e3d6000fd5b505050506040513d60208110156200044a57600080fd5b50506008546040805163095ea7b360e01b81526001600160a01b039283166004820152600019602482015290519188169163095ea7b3916044808201926020929091908290030181600087803b158015620004a457600080fd5b505af1158015620004b9573d6000803e3d6000fd5b505050506040513d6020811015620004d057600080fd5b50506005546008546040805163095ea7b360e01b81526001600160a01b03928316600482015260001960248201529051919092169163095ea7b39160448083019260209291908290030181600087803b1580156200052d57600080fd5b505af115801562000542573d6000803e3d6000fd5b505050506040513d60208110156200055957600080fd5b50506040805163a22cb46560e01b81526001600160a01b0384811660048301526001602483015291519183169163a22cb4659160448082019260009290919082900301818387803b158015620005ae57600080fd5b505af1158015620005c3573d6000803e3d6000fd5b505050505050505050505060805160601c60a05160601c60c05160601c60e05160601c6101005160601c614f1d620007a360003980610f275280610fd9528061194e5280611a035280613459528061350e528061424c525080610e9652806118bd52806133c852806147ec5250806107655280610a5f5280610c70528061168d528061235952806131985280613ab452806140585280614687525080610a3b5280610aed5280610d1152806112fe52806113a95280611562528061160452806117385280611bcf5280611d625280612045528061221752806122da52806127dc528061287b52806128af5280612e35528061306d5280613243528061361d528061386d5280613d3c5280613f0e5280613fd152806143735280614545528061473b52806147ba52508061015452806109195280610bfa5280610d395280610e5852806114c95280611760528061187f5280611b125280611e175280611fac52806121ef528061240d52806124b35280612537528061259e52806125cd52806126ce52806129c25280612a615280612a955280612e5d5280612fd4528061310f528061326b528061338a52806136da52806139225280613ca35280613ee652806140ee528061419952806142da528061451d52806146085250614f1d6000f3fe6080604052600436106101445760003560e01c80638afce952116100b6578063a72dd5791161006f578063a72dd579146103fe578063b497534314610437578063bc197c811461044c578063d33355531461059d578063f23a6e61146105c7578063f2fde38b1461066757610180565b80638afce9521461030e5780638d63bdc8146103475780638da5cb5b146103715780639b316eb4146103865780639c103b61146103b0578063a4cb8cf5146103e957610180565b8063399d5b9b11610108578063399d5b9b1461024f5780634685939e146102645780634d31b3171461026c5780634e71e0c8146102965780635d67be7b146102ab57806384e03b2e146102e457610180565b8063046b5ddc1461018557806307b08747146101c1578063120f2eda146101f257806316114acd146102075780632dd9868d1461023a57610180565b3661018057336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461017e57600080fd5b005b600080fd5b34801561019157600080fd5b506101af600480360360208110156101a857600080fd5b503561069a565b60408051918252519081900360200190f35b3480156101cd57600080fd5b506101d6610917565b604080516001600160a01b039092168252519081900360200190f35b3480156101fe57600080fd5b506101d661093b565b34801561021357600080fd5b5061017e6004803603602081101561022a57600080fd5b50356001600160a01b031661094a565b34801561024657600080fd5b506101d6610a39565b34801561025b57600080fd5b506101d6610a5d565b61017e610a81565b34801561027857600080fd5b5061017e6004803603602081101561028f57600080fd5b503561145d565b3480156102a257600080fd5b5061017e611ecd565b3480156102b757600080fd5b5061017e600480360360408110156102ce57600080fd5b506001600160a01b038135169060200135611f40565b3480156102f057600080fd5b5061017e6004803603602081101561030757600080fd5b5035612b00565b34801561031a57600080fd5b5061017e6004803603604081101561033157600080fd5b506001600160a01b038135169060200135612cff565b34801561035357600080fd5b506101af6004803603602081101561036a57600080fd5b5035612f66565b34801561037d57600080fd5b506101d66139da565b34801561039257600080fd5b506101af600480360360208110156103a957600080fd5b50356139e9565b3480156103bc57600080fd5b5061017e600480360360408110156103d357600080fd5b506001600160a01b038135169060200135613c37565b3480156103f557600080fd5b506101d661424a565b34801561040a57600080fd5b5061017e6004803603604081101561042157600080fd5b506001600160a01b03813516906020013561426e565b34801561044357600080fd5b506101d66147ea565b34801561045857600080fd5b50610580600480360360a081101561046f57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104a257600080fd5b8201836020820111156104b457600080fd5b803590602001918460208302840111600160201b831117156104d557600080fd5b919390929091602081019035600160201b8111156104f257600080fd5b82018360208201111561050457600080fd5b803590602001918460208302840111600160201b8311171561052557600080fd5b919390929091602081019035600160201b81111561054257600080fd5b82018360208201111561055457600080fd5b803590602001918460018302840111600160201b8311171561057557600080fd5b50909250905061480e565b604080516001600160e01b03199092168252519081900360200190f35b3480156105a957600080fd5b5061017e600480360360208110156105c057600080fd5b5035614822565b3480156105d357600080fd5b50610580600480360360a08110156105ea57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561062957600080fd5b82018360208201111561063b57600080fd5b803590602001918460018302840111600160201b8311171561065c57600080fd5b50909250905061489f565b34801561067357600080fd5b5061017e6004803603602081101561068a57600080fd5b50356001600160a01b03166148b1565b6000806106a883600261491f565b9050600080600560009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156106fb57600080fd5b505afa15801561070f573d6000803e3d6000fd5b505050506040513d606081101561072557600080fd5b50805160209182015160408051635994866d60e01b81526004810188905290516001600160701b0393841696509290911693506000926001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692635994866d926024808201939291829003018186803b1580156107a857600080fd5b505afa1580156107bc573d6000803e3d6000fd5b505050506040513d60208110156107d257600080fd5b5051905060006108646107e5858761496a565b600554604080516318160ddd60e01b8152905161085e926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561082b57600080fd5b505afa15801561083f573d6000803e3d6000fd5b505050506040513d602081101561085557600080fd5b505188906149ac565b9061491f565b905060006108ee6108758585614a05565b600554604080516318160ddd60e01b8152905161085e926001600160a01b0316916318160ddd916004808301926020929190829003018186803b1580156108bb57600080fd5b505afa1580156108cf573d6000803e3d6000fd5b505050506040513d60208110156108e557600080fd5b505186906149ac565b905080821115610905579550610912945050505050565b5094506109129350505050565b919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6005546001600160a01b031681565b6000546001600160a01b03163314610996576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b61099f81614a5f565b6109a857600080fd5b610a3633826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156109f957600080fd5b505afa158015610a0d573d6000803e3d6000fd5b505050506040513d6020811015610a2357600080fd5b50516001600160a01b0384169190614a71565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600280541415610ac6576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028055604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b158015610b3457600080fd5b505afa158015610b48573d6000803e3d6000fd5b505050506040513d6020811015610b5e57600080fd5b50516004805460065460408051627eeac760e11b815230948101949094526024840191909152519293506000926001600160a01b039091169162fdd58e916044808301926020929190829003018186803b158015610bbb57600080fd5b505afa158015610bcf573d6000803e3d6000fd5b505050506040513d6020811015610be557600080fd5b505190506000610bf634600261491f565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c5357600080fd5b505af1158015610c67573d6000803e3d6000fd5b505050505060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c8b913ac836040518263ffffffff1660e01b81526004016020604051808303818588803b158015610cc957600080fd5b505af1158015610cdd573d6000803e3d6000fd5b50505050506040513d6020811015610cf457600080fd5b50516009546040805163e6a4390560e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f0000000000000000000000000000000000000000000000000000000000000000811660248301529151939450600093919092169163e6a43905916044808301926020929190829003018186803b158015610d9157600080fd5b505afa158015610da5573d6000803e3d6000fd5b505050506040513d6020811015610dbb57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038416916370a08231916024808301926020929190829003018186803b158015610e0957600080fd5b505afa158015610e1d573d6000803e3d6000fd5b505050506040513d6020811015610e3357600080fd5b505160085460408051637df6dc2560e01b81526001600160a01b0392831660048201527f000000000000000000000000000000000000000000000000000000000000000083166024820152604481018890526064810187905290519293506000927f000000000000000000000000000000000000000000000000000000000000000090921691637df6dc259160848082019260609290919082900301818787803b158015610ee057600080fd5b505af1158015610ef4573d6000803e3d6000fd5b505050506040513d6060811015610f0a57600080fd5b50604090810151815163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820183905292519193509185169163095ea7b39160448083019260209291908290030181600087803b158015610f8457600080fd5b505af1158015610f98573d6000803e3d6000fd5b505050506040513d6020811015610fae57600080fd5b5050604080516366168bd760e01b81526001600160a01b0385811660048301526024820184905291517f0000000000000000000000000000000000000000000000000000000000000000909216916366168bd7916044808201926020929091908290030181600087803b15801561102457600080fd5b505af1158015611038573d6000803e3d6000fd5b505050506040513d602081101561104e57600080fd5b50506004805460065460408051627eeac760e11b815230948101949094526024840191909152516000926001600160a01b039092169162fdd58e916044808301926020929190829003018186803b1580156110a857600080fd5b505afa1580156110bc573d6000803e3d6000fd5b505050506040513d60208110156110d257600080fd5b5051905060006110e2828961496a565b11611134576040805162461bcd60e51b815260206004820152601f60248201527f4e4654206d696e74732073686f756c64206265206d6f7265207468616e203100604482015290519081900360640190fd5b6004546006546001600160a01b039091169063f242432a903090339061115a868d61496a565b604080516001600160e01b031960e088901b1681526001600160a01b0395861660048201529390941660248401526044830191909152606482015260a06084820152600260a482015261060f60f31b60c4820152905160e480830192600092919082900301818387803b1580156111d057600080fd5b505af11580156111e4573d6000803e3d6000fd5b505050506000846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561123757600080fd5b505afa15801561124b573d6000803e3d6000fd5b505050506040513d602081101561126157600080fd5b50519050838111156112fa576001600160a01b03851663a9059cbb33611287848861496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156112cd57600080fd5b505af11580156112e1573d6000803e3d6000fd5b505050506040513d60208110156112f757600080fd5b50505b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561136957600080fd5b505afa15801561137d573d6000803e3d6000fd5b505050506040513d602081101561139357600080fd5b505190508981111561144c576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb336113d9848e61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561141f57600080fd5b505af1158015611433573d6000803e3d6000fd5b505050506040513d602081101561144957600080fd5b50505b505060016002555050505050505050565b6002805414156114a2576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028055604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b15801561151057600080fd5b505afa158015611524573d6000803e3d6000fd5b505050506040513d602081101561153a57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b1580156115a857600080fd5b505afa1580156115bc573d6000803e3d6000fd5b505050506040513d60208110156115d257600080fd5b5051604080516323b872dd60e01b81523360048201523060248201526044810186905290519192506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd916064808201926020929091908290030181600087803b15801561164d57600080fd5b505af1158015611661573d6000803e3d6000fd5b505050506040513d602081101561167757600080fd5b506000905061168784600261491f565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323873669836040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156116f157600080fd5b505af1158015611705573d6000803e3d6000fd5b505050506040513d602081101561171b57600080fd5b50516009546040805163e6a4390560e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f0000000000000000000000000000000000000000000000000000000000000000811660248301529151939450600093919092169163e6a43905916044808301926020929190829003018186803b1580156117b857600080fd5b505afa1580156117cc573d6000803e3d6000fd5b505050506040513d60208110156117e257600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561183057600080fd5b505afa158015611844573d6000803e3d6000fd5b505050506040513d602081101561185a57600080fd5b505160085460408051637df6dc2560e01b81526001600160a01b0392831660048201527f000000000000000000000000000000000000000000000000000000000000000083166024820152604481018790526064810188905290519293506000927f000000000000000000000000000000000000000000000000000000000000000090921691637df6dc259160848082019260609290919082900301818787803b15801561190757600080fd5b505af115801561191b573d6000803e3d6000fd5b505050506040513d606081101561193157600080fd5b50604090810151815163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820183905292519193509185169163095ea7b39160448083019260209291908290030181600087803b1580156119ab57600080fd5b505af11580156119bf573d6000803e3d6000fd5b505050506040513d60208110156119d557600080fd5b5050604080516366168bd760e01b81526001600160a01b0385811660048301526024820184905291516000927f000000000000000000000000000000000000000000000000000000000000000016916366168bd791604480830192602092919082900301818787803b158015611a4a57600080fd5b505af1158015611a5e573d6000803e3d6000fd5b505050506040513d6020811015611a7457600080fd5b50516004805460065460408051637921219560e11b8152309481019490945233602485015260448401919091526064830184905260a06084840152600260a484015261060f60f31b60c4840152519293506001600160a01b03169163f242432a9160e48082019260009290919082900301818387803b158015611af657600080fd5b505af1158015611b0a573d6000803e3d6000fd5b5050505060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611b7d57600080fd5b505afa158015611b91573d6000803e3d6000fd5b505050506040513d6020811015611ba757600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b158015611c1557600080fd5b505afa158015611c29573d6000803e3d6000fd5b505050506040513d6020811015611c3f57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038916916370a08231916024808301926020929190829003018186803b158015611c8d57600080fd5b505afa158015611ca1573d6000803e3d6000fd5b505050506040513d6020811015611cb757600080fd5b5051905085811115611d50576001600160a01b03871663a9059cbb33611cdd848a61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611d2357600080fd5b505af1158015611d37573d6000803e3d6000fd5b505050506040513d6020811015611d4d57600080fd5b50505b89821115611e05576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb33611d92858e61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611dd857600080fd5b505af1158015611dec573d6000803e3d6000fd5b505050506040513d6020811015611e0257600080fd5b50505b8a831115611eba576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb33611e47868f61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611e8d57600080fd5b505af1158015611ea1573d6000803e3d6000fd5b505050506040513d6020811015611eb757600080fd5b50505b5050600160025550505050505050505050565b6001546001600160a01b03163314611ee457600080fd5b600180546001600160a01b03191690556000805460405133926001600160a01b03909216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b03191633179055565b600280541415611f85576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028055604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b158015611ff357600080fd5b505afa158015612007573d6000803e3d6000fd5b505050506040513d602081101561201d57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b15801561208b57600080fd5b505afa15801561209f573d6000803e3d6000fd5b505050506040513d60208110156120b557600080fd5b50516004805460065460408051637921219560e11b8152339481019490945230602485015260448401919091526064830187905260a06084840152600260a484015261060f60f31b60c4840152519293506001600160a01b03169163f242432a9160e48082019260009290919082900301818387803b15801561213757600080fd5b505af115801561214b573d6000803e3d6000fd5b5050600354604080516320c3cc8b60e21b81526001600160a01b0389811660048301526024820189905291516000955091909216925063830f322c9160448082019260209290919082900301818787803b1580156121a857600080fd5b505af11580156121bc573d6000803e3d6000fd5b505050506040513d60208110156121d257600080fd5b505160085460408051635d5155ef60e11b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f00000000000000000000000000000000000000000000000000000000000000008116602483015260448201859052600060648301819052608483018190523060a48401524260c4840152835195965093169363baa2abde9360e480840194938390030190829087803b15801561228b57600080fd5b505af115801561229f573d6000803e3d6000fd5b505050506040513d60408110156122b557600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b15801561232157600080fd5b505afa158015612335573d6000803e3d6000fd5b505050506040513d602081101561234b57600080fd5b505190506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166323873669612388838661496a565b6040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156123be57600080fd5b505af11580156123d2573d6000803e3d6000fd5b505050506040513d60208110156123e857600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b15801561245457600080fd5b505afa158015612468573d6000803e3d6000fd5b505050506040513d602081101561247e57600080fd5b50519050600061248e828761496a565b60408051637cb55b3b60e11b8152336004820152905191925082916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163f96ab676916024808301926020929190829003018186803b1580156124f957600080fd5b505afa15801561250d573d6000803e3d6000fd5b505050506040513d602081101561252357600080fd5b50516126cc57600061258e620186a061085e7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c57981b56040518163ffffffff1660e01b815260040160206040518083038186803b1580156108bb57600080fd5b905061259a838261496a565b91507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663eb1edd616040518163ffffffff1660e01b815260040160206040518083038186803b15801561262457600080fd5b505afa158015612638573d6000803e3d6000fd5b505050506040513d602081101561264e57600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482018590525160448083019260209291908290030181600087803b15801561269e57600080fd5b505af11580156126b2573d6000803e3d6000fd5b505050506040513d60208110156126c857600080fd5b5050505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561273257600080fd5b505af1158015612746573d6000803e3d6000fd5b50506040516000925033915083908381818185875af1925050503d806000811461278c576040519150601f19603f3d011682016040523d82523d6000602084013e612791565b606091505b50509050806127d9576040805162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b867f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561284757600080fd5b505afa15801561285b573d6000803e3d6000fd5b505050506040513d602081101561287157600080fd5b505111156129bf577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb3361294c8a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561291a57600080fd5b505afa15801561292e573d6000803e3d6000fd5b505050506040513d602081101561294457600080fd5b50519061496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561299257600080fd5b505af11580156129a6573d6000803e3d6000fd5b505050506040513d60208110156129bc57600080fd5b50505b877f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612a2d57600080fd5b505afa158015612a41573d6000803e3d6000fd5b505050506040513d6020811015612a5757600080fd5b5051111561144c577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb336113d98b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561291a57600080fd5b600280541415612b45576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028080556004805460065460408051637921219560e11b8152339481019490945230602485015260448401919091526064830185905260a0608484015260a483019390935261060f60f31b60c483015291516001600160a01b039092169163f242432a9160e48082019260009290919082900301818387803b158015612bcb57600080fd5b505af1158015612bdf573d6000803e3d6000fd5b50506003546040805163636f0ad160e01b8152600481018690529051600094506001600160a01b03909216925063636f0ad191602480830192602092919082900301818787803b158015612c3257600080fd5b505af1158015612c46573d6000803e3d6000fd5b505050506040513d6020811015612c5c57600080fd5b50516004805460075460408051637921219560e11b8152309481019490945233602485015260448401919091526064830184905260a06084840152600260a484015261060f60f31b60c4840152519293506001600160a01b03169163f242432a9160e48082019260009290919082900301818387803b158015612cde57600080fd5b505af1158015612cf2573d6000803e3d6000fd5b5050600160025550505050565b6004805460065460408051637921219560e11b8152339481019490945230602485015260448401919091526064830184905260a06084840152600260a484015261060f60f31b60c4840152516001600160a01b039091169163f242432a9160e480830192600092919082900301818387803b158015612d7d57600080fd5b505af1158015612d91573d6000803e3d6000fd5b5050600354604080516320c3cc8b60e21b81526001600160a01b0387811660048301526024820187905291516000955091909216925063830f322c9160448082019260209290919082900301818787803b158015612dee57600080fd5b505af1158015612e02573d6000803e3d6000fd5b505050506040513d6020811015612e1857600080fd5b50516009546040805163e6a4390560e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f0000000000000000000000000000000000000000000000000000000000000000811660248301529151939450600093919092169163e6a43905916044808301926020929190829003018186803b158015612eb557600080fd5b505afa158015612ec9573d6000803e3d6000fd5b505050506040513d6020811015612edf57600080fd5b50516040805163a9059cbb60e01b81523360048201526024810185905290519192506001600160a01b0383169163a9059cbb916044808201926020929091908290030181600087803b158015612f3457600080fd5b505af1158015612f48573d6000803e3d6000fd5b505050506040513d6020811015612f5e57600080fd5b505050505050565b6000600280541415612fad576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028055604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b15801561301b57600080fd5b505afa15801561302f573d6000803e3d6000fd5b505050506040513d602081101561304557600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b1580156130b357600080fd5b505afa1580156130c7573d6000803e3d6000fd5b505050506040513d60208110156130dd57600080fd5b5051604080516323b872dd60e01b81523360048201523060248201526044810187905290519192506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd916064808201926020929091908290030181600087803b15801561315857600080fd5b505af115801561316c573d6000803e3d6000fd5b505050506040513d602081101561318257600080fd5b506000905061319285600261491f565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638d63bdc8836040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156131fc57600080fd5b505af1158015613210573d6000803e3d6000fd5b505050506040513d602081101561322657600080fd5b50516009546040805163e6a4390560e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f0000000000000000000000000000000000000000000000000000000000000000811660248301529151939450600093919092169163e6a43905916044808301926020929190829003018186803b1580156132c357600080fd5b505afa1580156132d7573d6000803e3d6000fd5b505050506040513d60208110156132ed57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561333b57600080fd5b505afa15801561334f573d6000803e3d6000fd5b505050506040513d602081101561336557600080fd5b505160085460408051637df6dc2560e01b81526001600160a01b0392831660048201527f000000000000000000000000000000000000000000000000000000000000000083166024820152604481018890526064810187905290519293506000927f000000000000000000000000000000000000000000000000000000000000000090921691637df6dc259160848082019260609290919082900301818787803b15801561341257600080fd5b505af1158015613426573d6000803e3d6000fd5b505050506040513d606081101561343c57600080fd5b50604090810151815163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820183905292519193509185169163095ea7b39160448083019260209291908290030181600087803b1580156134b657600080fd5b505af11580156134ca573d6000803e3d6000fd5b505050506040513d60208110156134e057600080fd5b5050604080516366168bd760e01b81526001600160a01b0385811660048301526024820184905291516000927f000000000000000000000000000000000000000000000000000000000000000016916366168bd791604480830192602092919082900301818787803b15801561355557600080fd5b505af1158015613569573d6000803e3d6000fd5b505050506040513d602081101561357f57600080fd5b50516004805460065460408051637921219560e11b8152309481019490945233602485015260448401919091526064830184905260a06084840152600260a484015261060f60f31b60c4840152519293506001600160a01b03169163f242432a9160e48082019260009290919082900301818387803b15801561360157600080fd5b505af1158015613615573d6000803e3d6000fd5b5050505060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561368857600080fd5b505afa15801561369c573d6000803e3d6000fd5b505050506040513d60208110156136b257600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b15801561372057600080fd5b505afa158015613734573d6000803e3d6000fd5b505050506040513d602081101561374a57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038916916370a08231916024808301926020929190829003018186803b15801561379857600080fd5b505afa1580156137ac573d6000803e3d6000fd5b505050506040513d60208110156137c257600080fd5b505190508581111561385b576001600160a01b03871663a9059cbb336137e8848a61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561382e57600080fd5b505af1158015613842573d6000803e3d6000fd5b505050506040513d602081101561385857600080fd5b50505b89831115613910576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb3361389d868e61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156138e357600080fd5b505af11580156138f7573d6000803e3d6000fd5b505050506040513d602081101561390d57600080fd5b50505b8a8211156139c5576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb33613952858f61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561399857600080fd5b505af11580156139ac573d6000803e3d6000fd5b505050506040513d60208110156139c257600080fd5b50505b50506001600255509998505050505050505050565b6000546001600160a01b031681565b6000806139f783600261491f565b9050600080600560009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015613a4a57600080fd5b505afa158015613a5e573d6000803e3d6000fd5b505050506040513d6060811015613a7457600080fd5b50805160209182015160408051630c6b42fb60e11b81526004810188905290516001600160701b0393841696509290911693506000926001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016926318d685f6926024808201939291829003018186803b158015613af757600080fd5b505afa158015613b0b573d6000803e3d6000fd5b505050506040513d6020811015613b2157600080fd5b505190506000613bad613b348584614a05565b600554604080516318160ddd60e01b8152905161085e926001600160a01b0316916318160ddd916004808301926020929190829003018186803b158015613b7a57600080fd5b505afa158015613b8e573d6000803e3d6000fd5b505050506040513d6020811015613ba457600080fd5b505185906149ac565b905060006108ee613bbe858861496a565b600554604080516318160ddd60e01b8152905161085e926001600160a01b0316916318160ddd916004808301926020929190829003018186803b158015613c0457600080fd5b505afa158015613c18573d6000803e3d6000fd5b505050506040513d6020811015613c2e57600080fd5b505189906149ac565b600280541415613c7c576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028055604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b158015613cea57600080fd5b505afa158015613cfe573d6000803e3d6000fd5b505050506040513d6020811015613d1457600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b158015613d8257600080fd5b505afa158015613d96573d6000803e3d6000fd5b505050506040513d6020811015613dac57600080fd5b50516004805460065460408051637921219560e11b8152339481019490945230602485015260448401919091526064830187905260a06084840152600260a484015261060f60f31b60c4840152519293506001600160a01b03169163f242432a9160e48082019260009290919082900301818387803b158015613e2e57600080fd5b505af1158015613e42573d6000803e3d6000fd5b5050600354604080516320c3cc8b60e21b81526001600160a01b0389811660048301526024820189905291516000955091909216925063830f322c9160448082019260209290919082900301818787803b158015613e9f57600080fd5b505af1158015613eb3573d6000803e3d6000fd5b505050506040513d6020811015613ec957600080fd5b505160085460408051635d5155ef60e11b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f00000000000000000000000000000000000000000000000000000000000000008116602483015260448201859052600060648301819052608483018190523060a48401524260c4840152835195965093169363baa2abde9360e480840194938390030190829087803b158015613f8257600080fd5b505af1158015613f96573d6000803e3d6000fd5b505050506040513d6040811015613fac57600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b15801561401857600080fd5b505afa15801561402c573d6000803e3d6000fd5b505050506040513d602081101561404257600080fd5b50519050828111156140ea576001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166323873669614087838661496a565b6040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156140bd57600080fd5b505af11580156140d1573d6000803e3d6000fd5b505050506040513d60208110156140e757600080fd5b50505b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561415957600080fd5b505afa15801561416d573d6000803e3d6000fd5b505050506040513d602081101561418357600080fd5b505190508481111561423c576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb336141c9848961496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561420f57600080fd5b505af1158015614223573d6000803e3d6000fd5b505050506040513d602081101561423957600080fd5b50505b505060016002555050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6002805414156142b3576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028055604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b15801561432157600080fd5b505afa158015614335573d6000803e3d6000fd5b505050506040513d602081101561434b57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b1580156143b957600080fd5b505afa1580156143cd573d6000803e3d6000fd5b505050506040513d60208110156143e357600080fd5b50516004805460065460408051637921219560e11b8152339481019490945230602485015260448401919091526064830187905260a06084840152600260a484015261060f60f31b60c4840152519293506001600160a01b03169163f242432a9160e48082019260009290919082900301818387803b15801561446557600080fd5b505af1158015614479573d6000803e3d6000fd5b5050600354604080516320c3cc8b60e21b81526001600160a01b0389811660048301526024820189905291516000955091909216925063830f322c9160448082019260209290919082900301818787803b1580156144d657600080fd5b505af11580156144ea573d6000803e3d6000fd5b505050506040513d602081101561450057600080fd5b505160085460408051635d5155ef60e11b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f00000000000000000000000000000000000000000000000000000000000000008116602483015260448201859052600060648301819052608483018190523060a48401524260c4840152835195965093169363baa2abde9360e480840194938390030190829087803b1580156145b957600080fd5b505af11580156145cd573d6000803e3d6000fd5b505050506040513d60408110156145e357600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b15801561464f57600080fd5b505afa158015614663573d6000803e3d6000fd5b505050506040513d602081101561467957600080fd5b505190506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016638d63bdc86146b6838761496a565b6040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156146ec57600080fd5b505af1158015614700573d6000803e3d6000fd5b505050506040513d602081101561471657600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b15801561478257600080fd5b505afa158015614796573d6000803e3d6000fd5b505050506040513d60208110156147ac57600080fd5b505190506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb336141c9848861496a565b7f000000000000000000000000000000000000000000000000000000000000000081565b63bc197c8160e01b98975050505050505050565b6000546001600160a01b0316331461486e576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b604051339082156108fc029083906000818181858888f1935050505015801561489b573d6000803e3d6000fd5b5050565b63f23a6e6160e01b9695505050505050565b6000546001600160a01b031633146148fd576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600061496183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614ac8565b90505b92915050565b600061496183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614b6c565b6000826149bb57506000614964565b828202828482816149c857fe5b04146149615760405162461bcd60e51b8152600401808060200182810382526021815260200180614e9d6021913960400191505060405180910390fd5b600082820183811015614961576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038116301415919050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052614ac3908490614bc6565b505050565b60008183614b545760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614b19578181015183820152602001614b01565b50505050905090810190601f168015614b465780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581614b6057fe5b049150505b9392505050565b60008184841115614bbe5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614b19578181015183820152602001614b01565b505050900390565b6060614c1b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c779092919063ffffffff16565b805190915015614ac357808060200190516020811015614c3a57600080fd5b5051614ac35760405162461bcd60e51b815260040180806020018281038252602a815260200180614ebe602a913960400191505060405180910390fd5b6060614c868484600085614c8e565b949350505050565b606082471015614ccf5760405162461bcd60e51b8152600401808060200182810382526026815260200180614e776026913960400191505060405180910390fd5b614cd885614dea565b614d29576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310614d685780518252601f199092019160209182019101614d49565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614dca576040519150601f19603f3d011682016040523d82523d6000602084013e614dcf565b606091505b5091509150614ddf828286614df0565b979650505050505050565b3b151590565b60608315614dff575081614b65565b825115614e0f5782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315614b19578181015183820152602001614b0156fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204baeee806b8710af3eb6ebe3ab80cc2f1a29c1c4523628c10d9de4a72bec807964736f6c63430007040033000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725100000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87070000000000000000000000002e8a85b131a2cfbcb339a493652bb201c1331c08000000000000000000000000dec31f7d5174326a29f96fd2964e81ed1a767bc0000000000000000000000000bfcf45366679384bad328f08af39c449f4b03de100000000000000000000000010af395dfc1d91a2be91a99b1deea3c0d3e5cb52000000000000000000000000cf5dbc399f3112bac87f57018a3389911241237b

Deployed Bytecode

0x6080604052600436106101445760003560e01c80638afce952116100b6578063a72dd5791161006f578063a72dd579146103fe578063b497534314610437578063bc197c811461044c578063d33355531461059d578063f23a6e61146105c7578063f2fde38b1461066757610180565b80638afce9521461030e5780638d63bdc8146103475780638da5cb5b146103715780639b316eb4146103865780639c103b61146103b0578063a4cb8cf5146103e957610180565b8063399d5b9b11610108578063399d5b9b1461024f5780634685939e146102645780634d31b3171461026c5780634e71e0c8146102965780635d67be7b146102ab57806384e03b2e146102e457610180565b8063046b5ddc1461018557806307b08747146101c1578063120f2eda146101f257806316114acd146102075780632dd9868d1461023a57610180565b3661018057336001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e7251161461017e57600080fd5b005b600080fd5b34801561019157600080fd5b506101af600480360360208110156101a857600080fd5b503561069a565b60408051918252519081900360200190f35b3480156101cd57600080fd5b506101d6610917565b604080516001600160a01b039092168252519081900360200190f35b3480156101fe57600080fd5b506101d661093b565b34801561021357600080fd5b5061017e6004803603602081101561022a57600080fd5b50356001600160a01b031661094a565b34801561024657600080fd5b506101d6610a39565b34801561025b57600080fd5b506101d6610a5d565b61017e610a81565b34801561027857600080fd5b5061017e6004803603602081101561028f57600080fd5b503561145d565b3480156102a257600080fd5b5061017e611ecd565b3480156102b757600080fd5b5061017e600480360360408110156102ce57600080fd5b506001600160a01b038135169060200135611f40565b3480156102f057600080fd5b5061017e6004803603602081101561030757600080fd5b5035612b00565b34801561031a57600080fd5b5061017e6004803603604081101561033157600080fd5b506001600160a01b038135169060200135612cff565b34801561035357600080fd5b506101af6004803603602081101561036a57600080fd5b5035612f66565b34801561037d57600080fd5b506101d66139da565b34801561039257600080fd5b506101af600480360360208110156103a957600080fd5b50356139e9565b3480156103bc57600080fd5b5061017e600480360360408110156103d357600080fd5b506001600160a01b038135169060200135613c37565b3480156103f557600080fd5b506101d661424a565b34801561040a57600080fd5b5061017e6004803603604081101561042157600080fd5b506001600160a01b03813516906020013561426e565b34801561044357600080fd5b506101d66147ea565b34801561045857600080fd5b50610580600480360360a081101561046f57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104a257600080fd5b8201836020820111156104b457600080fd5b803590602001918460208302840111600160201b831117156104d557600080fd5b919390929091602081019035600160201b8111156104f257600080fd5b82018360208201111561050457600080fd5b803590602001918460208302840111600160201b8311171561052557600080fd5b919390929091602081019035600160201b81111561054257600080fd5b82018360208201111561055457600080fd5b803590602001918460018302840111600160201b8311171561057557600080fd5b50909250905061480e565b604080516001600160e01b03199092168252519081900360200190f35b3480156105a957600080fd5b5061017e600480360360208110156105c057600080fd5b5035614822565b3480156105d357600080fd5b50610580600480360360a08110156105ea57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561062957600080fd5b82018360208201111561063b57600080fd5b803590602001918460018302840111600160201b8311171561065c57600080fd5b50909250905061489f565b34801561067357600080fd5b5061017e6004803603602081101561068a57600080fd5b50356001600160a01b03166148b1565b6000806106a883600261491f565b9050600080600560009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156106fb57600080fd5b505afa15801561070f573d6000803e3d6000fd5b505050506040513d606081101561072557600080fd5b50805160209182015160408051635994866d60e01b81526004810188905290516001600160701b0393841696509290911693506000926001600160a01b037f0000000000000000000000002e8a85b131a2cfbcb339a493652bb201c1331c081692635994866d926024808201939291829003018186803b1580156107a857600080fd5b505afa1580156107bc573d6000803e3d6000fd5b505050506040513d60208110156107d257600080fd5b5051905060006108646107e5858761496a565b600554604080516318160ddd60e01b8152905161085e926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561082b57600080fd5b505afa15801561083f573d6000803e3d6000fd5b505050506040513d602081101561085557600080fd5b505188906149ac565b9061491f565b905060006108ee6108758585614a05565b600554604080516318160ddd60e01b8152905161085e926001600160a01b0316916318160ddd916004808301926020929190829003018186803b1580156108bb57600080fd5b505afa1580156108cf573d6000803e3d6000fd5b505050506040513d60208110156108e557600080fd5b505186906149ac565b905080821115610905579550610912945050505050565b5094506109129350505050565b919050565b7f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725181565b6005546001600160a01b031681565b6000546001600160a01b03163314610996576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b61099f81614a5f565b6109a857600080fd5b610a3633826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156109f957600080fd5b505afa158015610a0d573d6000803e3d6000fd5b505050506040513d6020811015610a2357600080fd5b50516001600160a01b0384169190614a71565b50565b7f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa870781565b7f0000000000000000000000002e8a85b131a2cfbcb339a493652bb201c1331c0881565b600280541415610ac6576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028055604080516370a0823160e01b815230600482015290516000916001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa870716916370a0823191602480820192602092909190829003018186803b158015610b3457600080fd5b505afa158015610b48573d6000803e3d6000fd5b505050506040513d6020811015610b5e57600080fd5b50516004805460065460408051627eeac760e11b815230948101949094526024840191909152519293506000926001600160a01b039091169162fdd58e916044808301926020929190829003018186803b158015610bbb57600080fd5b505afa158015610bcf573d6000803e3d6000fd5b505050506040513d6020811015610be557600080fd5b505190506000610bf634600261491f565b90507f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72516001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c5357600080fd5b505af1158015610c67573d6000803e3d6000fd5b505050505060007f0000000000000000000000002e8a85b131a2cfbcb339a493652bb201c1331c086001600160a01b031663c8b913ac836040518263ffffffff1660e01b81526004016020604051808303818588803b158015610cc957600080fd5b505af1158015610cdd573d6000803e3d6000fd5b50505050506040513d6020811015610cf457600080fd5b50516009546040805163e6a4390560e01b81526001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa8707811660048301527f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e7251811660248301529151939450600093919092169163e6a43905916044808301926020929190829003018186803b158015610d9157600080fd5b505afa158015610da5573d6000803e3d6000fd5b505050506040513d6020811015610dbb57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038416916370a08231916024808301926020929190829003018186803b158015610e0957600080fd5b505afa158015610e1d573d6000803e3d6000fd5b505050506040513d6020811015610e3357600080fd5b505160085460408051637df6dc2560e01b81526001600160a01b0392831660048201527f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725183166024820152604481018890526064810187905290519293506000927f000000000000000000000000dec31f7d5174326a29f96fd2964e81ed1a767bc090921691637df6dc259160848082019260609290919082900301818787803b158015610ee057600080fd5b505af1158015610ef4573d6000803e3d6000fd5b505050506040513d6060811015610f0a57600080fd5b50604090810151815163095ea7b360e01b81526001600160a01b037f000000000000000000000000bfcf45366679384bad328f08af39c449f4b03de1811660048301526024820183905292519193509185169163095ea7b39160448083019260209291908290030181600087803b158015610f8457600080fd5b505af1158015610f98573d6000803e3d6000fd5b505050506040513d6020811015610fae57600080fd5b5050604080516366168bd760e01b81526001600160a01b0385811660048301526024820184905291517f000000000000000000000000bfcf45366679384bad328f08af39c449f4b03de1909216916366168bd7916044808201926020929091908290030181600087803b15801561102457600080fd5b505af1158015611038573d6000803e3d6000fd5b505050506040513d602081101561104e57600080fd5b50506004805460065460408051627eeac760e11b815230948101949094526024840191909152516000926001600160a01b039092169162fdd58e916044808301926020929190829003018186803b1580156110a857600080fd5b505afa1580156110bc573d6000803e3d6000fd5b505050506040513d60208110156110d257600080fd5b5051905060006110e2828961496a565b11611134576040805162461bcd60e51b815260206004820152601f60248201527f4e4654206d696e74732073686f756c64206265206d6f7265207468616e203100604482015290519081900360640190fd5b6004546006546001600160a01b039091169063f242432a903090339061115a868d61496a565b604080516001600160e01b031960e088901b1681526001600160a01b0395861660048201529390941660248401526044830191909152606482015260a06084820152600260a482015261060f60f31b60c4820152905160e480830192600092919082900301818387803b1580156111d057600080fd5b505af11580156111e4573d6000803e3d6000fd5b505050506000846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561123757600080fd5b505afa15801561124b573d6000803e3d6000fd5b505050506040513d602081101561126157600080fd5b50519050838111156112fa576001600160a01b03851663a9059cbb33611287848861496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156112cd57600080fd5b505af11580156112e1573d6000803e3d6000fd5b505050506040513d60208110156112f757600080fd5b50505b60007f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87076001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561136957600080fd5b505afa15801561137d573d6000803e3d6000fd5b505050506040513d602081101561139357600080fd5b505190508981111561144c576001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87071663a9059cbb336113d9848e61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561141f57600080fd5b505af1158015611433573d6000803e3d6000fd5b505050506040513d602081101561144957600080fd5b50505b505060016002555050505050505050565b6002805414156114a2576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028055604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725116916370a0823191602480820192602092909190829003018186803b15801561151057600080fd5b505afa158015611524573d6000803e3d6000fd5b505050506040513d602081101561153a57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa870716916370a08231916024808301926020929190829003018186803b1580156115a857600080fd5b505afa1580156115bc573d6000803e3d6000fd5b505050506040513d60208110156115d257600080fd5b5051604080516323b872dd60e01b81523360048201523060248201526044810186905290519192506001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa870716916323b872dd916064808201926020929091908290030181600087803b15801561164d57600080fd5b505af1158015611661573d6000803e3d6000fd5b505050506040513d602081101561167757600080fd5b506000905061168784600261491f565b905060007f0000000000000000000000002e8a85b131a2cfbcb339a493652bb201c1331c086001600160a01b03166323873669836040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156116f157600080fd5b505af1158015611705573d6000803e3d6000fd5b505050506040513d602081101561171b57600080fd5b50516009546040805163e6a4390560e01b81526001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa8707811660048301527f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e7251811660248301529151939450600093919092169163e6a43905916044808301926020929190829003018186803b1580156117b857600080fd5b505afa1580156117cc573d6000803e3d6000fd5b505050506040513d60208110156117e257600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561183057600080fd5b505afa158015611844573d6000803e3d6000fd5b505050506040513d602081101561185a57600080fd5b505160085460408051637df6dc2560e01b81526001600160a01b0392831660048201527f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725183166024820152604481018790526064810188905290519293506000927f000000000000000000000000dec31f7d5174326a29f96fd2964e81ed1a767bc090921691637df6dc259160848082019260609290919082900301818787803b15801561190757600080fd5b505af115801561191b573d6000803e3d6000fd5b505050506040513d606081101561193157600080fd5b50604090810151815163095ea7b360e01b81526001600160a01b037f000000000000000000000000bfcf45366679384bad328f08af39c449f4b03de1811660048301526024820183905292519193509185169163095ea7b39160448083019260209291908290030181600087803b1580156119ab57600080fd5b505af11580156119bf573d6000803e3d6000fd5b505050506040513d60208110156119d557600080fd5b5050604080516366168bd760e01b81526001600160a01b0385811660048301526024820184905291516000927f000000000000000000000000bfcf45366679384bad328f08af39c449f4b03de116916366168bd791604480830192602092919082900301818787803b158015611a4a57600080fd5b505af1158015611a5e573d6000803e3d6000fd5b505050506040513d6020811015611a7457600080fd5b50516004805460065460408051637921219560e11b8152309481019490945233602485015260448401919091526064830184905260a06084840152600260a484015261060f60f31b60c4840152519293506001600160a01b03169163f242432a9160e48082019260009290919082900301818387803b158015611af657600080fd5b505af1158015611b0a573d6000803e3d6000fd5b5050505060007f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611b7d57600080fd5b505afa158015611b91573d6000803e3d6000fd5b505050506040513d6020811015611ba757600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa870716916370a08231916024808301926020929190829003018186803b158015611c1557600080fd5b505afa158015611c29573d6000803e3d6000fd5b505050506040513d6020811015611c3f57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038916916370a08231916024808301926020929190829003018186803b158015611c8d57600080fd5b505afa158015611ca1573d6000803e3d6000fd5b505050506040513d6020811015611cb757600080fd5b5051905085811115611d50576001600160a01b03871663a9059cbb33611cdd848a61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611d2357600080fd5b505af1158015611d37573d6000803e3d6000fd5b505050506040513d6020811015611d4d57600080fd5b50505b89821115611e05576001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87071663a9059cbb33611d92858e61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611dd857600080fd5b505af1158015611dec573d6000803e3d6000fd5b505050506040513d6020811015611e0257600080fd5b50505b8a831115611eba576001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72511663a9059cbb33611e47868f61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611e8d57600080fd5b505af1158015611ea1573d6000803e3d6000fd5b505050506040513d6020811015611eb757600080fd5b50505b5050600160025550505050505050505050565b6001546001600160a01b03163314611ee457600080fd5b600180546001600160a01b03191690556000805460405133926001600160a01b03909216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b03191633179055565b600280541415611f85576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028055604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725116916370a0823191602480820192602092909190829003018186803b158015611ff357600080fd5b505afa158015612007573d6000803e3d6000fd5b505050506040513d602081101561201d57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa870716916370a08231916024808301926020929190829003018186803b15801561208b57600080fd5b505afa15801561209f573d6000803e3d6000fd5b505050506040513d60208110156120b557600080fd5b50516004805460065460408051637921219560e11b8152339481019490945230602485015260448401919091526064830187905260a06084840152600260a484015261060f60f31b60c4840152519293506001600160a01b03169163f242432a9160e48082019260009290919082900301818387803b15801561213757600080fd5b505af115801561214b573d6000803e3d6000fd5b5050600354604080516320c3cc8b60e21b81526001600160a01b0389811660048301526024820189905291516000955091909216925063830f322c9160448082019260209290919082900301818787803b1580156121a857600080fd5b505af11580156121bc573d6000803e3d6000fd5b505050506040513d60208110156121d257600080fd5b505160085460408051635d5155ef60e11b81526001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e7251811660048301527f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87078116602483015260448201859052600060648301819052608483018190523060a48401524260c4840152835195965093169363baa2abde9360e480840194938390030190829087803b15801561228b57600080fd5b505af115801561229f573d6000803e3d6000fd5b505050506040513d60408110156122b557600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa870716916370a0823191602480820192602092909190829003018186803b15801561232157600080fd5b505afa158015612335573d6000803e3d6000fd5b505050506040513d602081101561234b57600080fd5b505190506001600160a01b037f0000000000000000000000002e8a85b131a2cfbcb339a493652bb201c1331c08166323873669612388838661496a565b6040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156123be57600080fd5b505af11580156123d2573d6000803e3d6000fd5b505050506040513d60208110156123e857600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725116916370a0823191602480820192602092909190829003018186803b15801561245457600080fd5b505afa158015612468573d6000803e3d6000fd5b505050506040513d602081101561247e57600080fd5b50519050600061248e828761496a565b60408051637cb55b3b60e11b8152336004820152905191925082916001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e7251169163f96ab676916024808301926020929190829003018186803b1580156124f957600080fd5b505afa15801561250d573d6000803e3d6000fd5b505050506040513d602081101561252357600080fd5b50516126cc57600061258e620186a061085e7f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72516001600160a01b031663c57981b56040518163ffffffff1660e01b815260040160206040518083038186803b1580156108bb57600080fd5b905061259a838261496a565b91507f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72516001600160a01b031663a9059cbb7f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72516001600160a01b031663eb1edd616040518163ffffffff1660e01b815260040160206040518083038186803b15801561262457600080fd5b505afa158015612638573d6000803e3d6000fd5b505050506040513d602081101561264e57600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482018590525160448083019260209291908290030181600087803b15801561269e57600080fd5b505af11580156126b2573d6000803e3d6000fd5b505050506040513d60208110156126c857600080fd5b5050505b7f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72516001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561273257600080fd5b505af1158015612746573d6000803e3d6000fd5b50506040516000925033915083908381818185875af1925050503d806000811461278c576040519150601f19603f3d011682016040523d82523d6000602084013e612791565b606091505b50509050806127d9576040805162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b867f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87076001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561284757600080fd5b505afa15801561285b573d6000803e3d6000fd5b505050506040513d602081101561287157600080fd5b505111156129bf577f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87076001600160a01b031663a9059cbb3361294c8a7f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87076001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561291a57600080fd5b505afa15801561292e573d6000803e3d6000fd5b505050506040513d602081101561294457600080fd5b50519061496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561299257600080fd5b505af11580156129a6573d6000803e3d6000fd5b505050506040513d60208110156129bc57600080fd5b50505b877f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612a2d57600080fd5b505afa158015612a41573d6000803e3d6000fd5b505050506040513d6020811015612a5757600080fd5b5051111561144c577f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72516001600160a01b031663a9059cbb336113d98b7f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561291a57600080fd5b600280541415612b45576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028080556004805460065460408051637921219560e11b8152339481019490945230602485015260448401919091526064830185905260a0608484015260a483019390935261060f60f31b60c483015291516001600160a01b039092169163f242432a9160e48082019260009290919082900301818387803b158015612bcb57600080fd5b505af1158015612bdf573d6000803e3d6000fd5b50506003546040805163636f0ad160e01b8152600481018690529051600094506001600160a01b03909216925063636f0ad191602480830192602092919082900301818787803b158015612c3257600080fd5b505af1158015612c46573d6000803e3d6000fd5b505050506040513d6020811015612c5c57600080fd5b50516004805460075460408051637921219560e11b8152309481019490945233602485015260448401919091526064830184905260a06084840152600260a484015261060f60f31b60c4840152519293506001600160a01b03169163f242432a9160e48082019260009290919082900301818387803b158015612cde57600080fd5b505af1158015612cf2573d6000803e3d6000fd5b5050600160025550505050565b6004805460065460408051637921219560e11b8152339481019490945230602485015260448401919091526064830184905260a06084840152600260a484015261060f60f31b60c4840152516001600160a01b039091169163f242432a9160e480830192600092919082900301818387803b158015612d7d57600080fd5b505af1158015612d91573d6000803e3d6000fd5b5050600354604080516320c3cc8b60e21b81526001600160a01b0387811660048301526024820187905291516000955091909216925063830f322c9160448082019260209290919082900301818787803b158015612dee57600080fd5b505af1158015612e02573d6000803e3d6000fd5b505050506040513d6020811015612e1857600080fd5b50516009546040805163e6a4390560e01b81526001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa8707811660048301527f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e7251811660248301529151939450600093919092169163e6a43905916044808301926020929190829003018186803b158015612eb557600080fd5b505afa158015612ec9573d6000803e3d6000fd5b505050506040513d6020811015612edf57600080fd5b50516040805163a9059cbb60e01b81523360048201526024810185905290519192506001600160a01b0383169163a9059cbb916044808201926020929091908290030181600087803b158015612f3457600080fd5b505af1158015612f48573d6000803e3d6000fd5b505050506040513d6020811015612f5e57600080fd5b505050505050565b6000600280541415612fad576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028055604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725116916370a0823191602480820192602092909190829003018186803b15801561301b57600080fd5b505afa15801561302f573d6000803e3d6000fd5b505050506040513d602081101561304557600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa870716916370a08231916024808301926020929190829003018186803b1580156130b357600080fd5b505afa1580156130c7573d6000803e3d6000fd5b505050506040513d60208110156130dd57600080fd5b5051604080516323b872dd60e01b81523360048201523060248201526044810187905290519192506001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725116916323b872dd916064808201926020929091908290030181600087803b15801561315857600080fd5b505af115801561316c573d6000803e3d6000fd5b505050506040513d602081101561318257600080fd5b506000905061319285600261491f565b905060007f0000000000000000000000002e8a85b131a2cfbcb339a493652bb201c1331c086001600160a01b0316638d63bdc8836040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156131fc57600080fd5b505af1158015613210573d6000803e3d6000fd5b505050506040513d602081101561322657600080fd5b50516009546040805163e6a4390560e01b81526001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa8707811660048301527f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e7251811660248301529151939450600093919092169163e6a43905916044808301926020929190829003018186803b1580156132c357600080fd5b505afa1580156132d7573d6000803e3d6000fd5b505050506040513d60208110156132ed57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561333b57600080fd5b505afa15801561334f573d6000803e3d6000fd5b505050506040513d602081101561336557600080fd5b505160085460408051637df6dc2560e01b81526001600160a01b0392831660048201527f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725183166024820152604481018890526064810187905290519293506000927f000000000000000000000000dec31f7d5174326a29f96fd2964e81ed1a767bc090921691637df6dc259160848082019260609290919082900301818787803b15801561341257600080fd5b505af1158015613426573d6000803e3d6000fd5b505050506040513d606081101561343c57600080fd5b50604090810151815163095ea7b360e01b81526001600160a01b037f000000000000000000000000bfcf45366679384bad328f08af39c449f4b03de1811660048301526024820183905292519193509185169163095ea7b39160448083019260209291908290030181600087803b1580156134b657600080fd5b505af11580156134ca573d6000803e3d6000fd5b505050506040513d60208110156134e057600080fd5b5050604080516366168bd760e01b81526001600160a01b0385811660048301526024820184905291516000927f000000000000000000000000bfcf45366679384bad328f08af39c449f4b03de116916366168bd791604480830192602092919082900301818787803b15801561355557600080fd5b505af1158015613569573d6000803e3d6000fd5b505050506040513d602081101561357f57600080fd5b50516004805460065460408051637921219560e11b8152309481019490945233602485015260448401919091526064830184905260a06084840152600260a484015261060f60f31b60c4840152519293506001600160a01b03169163f242432a9160e48082019260009290919082900301818387803b15801561360157600080fd5b505af1158015613615573d6000803e3d6000fd5b5050505060007f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87076001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561368857600080fd5b505afa15801561369c573d6000803e3d6000fd5b505050506040513d60208110156136b257600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725116916370a08231916024808301926020929190829003018186803b15801561372057600080fd5b505afa158015613734573d6000803e3d6000fd5b505050506040513d602081101561374a57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038916916370a08231916024808301926020929190829003018186803b15801561379857600080fd5b505afa1580156137ac573d6000803e3d6000fd5b505050506040513d60208110156137c257600080fd5b505190508581111561385b576001600160a01b03871663a9059cbb336137e8848a61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561382e57600080fd5b505af1158015613842573d6000803e3d6000fd5b505050506040513d602081101561385857600080fd5b50505b89831115613910576001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87071663a9059cbb3361389d868e61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156138e357600080fd5b505af11580156138f7573d6000803e3d6000fd5b505050506040513d602081101561390d57600080fd5b50505b8a8211156139c5576001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72511663a9059cbb33613952858f61496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561399857600080fd5b505af11580156139ac573d6000803e3d6000fd5b505050506040513d60208110156139c257600080fd5b50505b50506001600255509998505050505050505050565b6000546001600160a01b031681565b6000806139f783600261491f565b9050600080600560009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015613a4a57600080fd5b505afa158015613a5e573d6000803e3d6000fd5b505050506040513d6060811015613a7457600080fd5b50805160209182015160408051630c6b42fb60e11b81526004810188905290516001600160701b0393841696509290911693506000926001600160a01b037f0000000000000000000000002e8a85b131a2cfbcb339a493652bb201c1331c0816926318d685f6926024808201939291829003018186803b158015613af757600080fd5b505afa158015613b0b573d6000803e3d6000fd5b505050506040513d6020811015613b2157600080fd5b505190506000613bad613b348584614a05565b600554604080516318160ddd60e01b8152905161085e926001600160a01b0316916318160ddd916004808301926020929190829003018186803b158015613b7a57600080fd5b505afa158015613b8e573d6000803e3d6000fd5b505050506040513d6020811015613ba457600080fd5b505185906149ac565b905060006108ee613bbe858861496a565b600554604080516318160ddd60e01b8152905161085e926001600160a01b0316916318160ddd916004808301926020929190829003018186803b158015613c0457600080fd5b505afa158015613c18573d6000803e3d6000fd5b505050506040513d6020811015613c2e57600080fd5b505189906149ac565b600280541415613c7c576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028055604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725116916370a0823191602480820192602092909190829003018186803b158015613cea57600080fd5b505afa158015613cfe573d6000803e3d6000fd5b505050506040513d6020811015613d1457600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa870716916370a08231916024808301926020929190829003018186803b158015613d8257600080fd5b505afa158015613d96573d6000803e3d6000fd5b505050506040513d6020811015613dac57600080fd5b50516004805460065460408051637921219560e11b8152339481019490945230602485015260448401919091526064830187905260a06084840152600260a484015261060f60f31b60c4840152519293506001600160a01b03169163f242432a9160e48082019260009290919082900301818387803b158015613e2e57600080fd5b505af1158015613e42573d6000803e3d6000fd5b5050600354604080516320c3cc8b60e21b81526001600160a01b0389811660048301526024820189905291516000955091909216925063830f322c9160448082019260209290919082900301818787803b158015613e9f57600080fd5b505af1158015613eb3573d6000803e3d6000fd5b505050506040513d6020811015613ec957600080fd5b505160085460408051635d5155ef60e11b81526001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e7251811660048301527f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87078116602483015260448201859052600060648301819052608483018190523060a48401524260c4840152835195965093169363baa2abde9360e480840194938390030190829087803b158015613f8257600080fd5b505af1158015613f96573d6000803e3d6000fd5b505050506040513d6040811015613fac57600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa870716916370a0823191602480820192602092909190829003018186803b15801561401857600080fd5b505afa15801561402c573d6000803e3d6000fd5b505050506040513d602081101561404257600080fd5b50519050828111156140ea576001600160a01b037f0000000000000000000000002e8a85b131a2cfbcb339a493652bb201c1331c08166323873669614087838661496a565b6040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156140bd57600080fd5b505af11580156140d1573d6000803e3d6000fd5b505050506040513d60208110156140e757600080fd5b50505b60007f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561415957600080fd5b505afa15801561416d573d6000803e3d6000fd5b505050506040513d602081101561418357600080fd5b505190508481111561423c576001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e72511663a9059cbb336141c9848961496a565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561420f57600080fd5b505af1158015614223573d6000803e3d6000fd5b505050506040513d602081101561423957600080fd5b50505b505060016002555050505050565b7f000000000000000000000000bfcf45366679384bad328f08af39c449f4b03de181565b6002805414156142b3576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e57833981519152604482015290519081900360640190fd5b60028055604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725116916370a0823191602480820192602092909190829003018186803b15801561432157600080fd5b505afa158015614335573d6000803e3d6000fd5b505050506040513d602081101561434b57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa870716916370a08231916024808301926020929190829003018186803b1580156143b957600080fd5b505afa1580156143cd573d6000803e3d6000fd5b505050506040513d60208110156143e357600080fd5b50516004805460065460408051637921219560e11b8152339481019490945230602485015260448401919091526064830187905260a06084840152600260a484015261060f60f31b60c4840152519293506001600160a01b03169163f242432a9160e48082019260009290919082900301818387803b15801561446557600080fd5b505af1158015614479573d6000803e3d6000fd5b5050600354604080516320c3cc8b60e21b81526001600160a01b0389811660048301526024820189905291516000955091909216925063830f322c9160448082019260209290919082900301818787803b1580156144d657600080fd5b505af11580156144ea573d6000803e3d6000fd5b505050506040513d602081101561450057600080fd5b505160085460408051635d5155ef60e11b81526001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e7251811660048301527f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87078116602483015260448201859052600060648301819052608483018190523060a48401524260c4840152835195965093169363baa2abde9360e480840194938390030190829087803b1580156145b957600080fd5b505af11580156145cd573d6000803e3d6000fd5b505050506040513d60408110156145e357600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725116916370a0823191602480820192602092909190829003018186803b15801561464f57600080fd5b505afa158015614663573d6000803e3d6000fd5b505050506040513d602081101561467957600080fd5b505190506001600160a01b037f0000000000000000000000002e8a85b131a2cfbcb339a493652bb201c1331c0816638d63bdc86146b6838761496a565b6040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156146ec57600080fd5b505af1158015614700573d6000803e3d6000fd5b505050506040513d602081101561471657600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa870716916370a0823191602480820192602092909190829003018186803b15801561478257600080fd5b505afa158015614796573d6000803e3d6000fd5b505050506040513d60208110156147ac57600080fd5b505190506001600160a01b037f00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87071663a9059cbb336141c9848861496a565b7f000000000000000000000000dec31f7d5174326a29f96fd2964e81ed1a767bc081565b63bc197c8160e01b98975050505050505050565b6000546001600160a01b0316331461486e576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b604051339082156108fc029083906000818181858888f1935050505015801561489b573d6000803e3d6000fd5b5050565b63f23a6e6160e01b9695505050505050565b6000546001600160a01b031633146148fd576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600061496183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614ac8565b90505b92915050565b600061496183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614b6c565b6000826149bb57506000614964565b828202828482816149c857fe5b04146149615760405162461bcd60e51b8152600401808060200182810382526021815260200180614e9d6021913960400191505060405180910390fd5b600082820183811015614961576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038116301415919050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052614ac3908490614bc6565b505050565b60008183614b545760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614b19578181015183820152602001614b01565b50505050905090810190601f168015614b465780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581614b6057fe5b049150505b9392505050565b60008184841115614bbe5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614b19578181015183820152602001614b01565b505050900390565b6060614c1b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c779092919063ffffffff16565b805190915015614ac357808060200190516020811015614c3a57600080fd5b5051614ac35760405162461bcd60e51b815260040180806020018281038252602a815260200180614ebe602a913960400191505060405180910390fd5b6060614c868484600085614c8e565b949350505050565b606082471015614ccf5760405162461bcd60e51b8152600401808060200182810382526026815260200180614e776026913960400191505060405180910390fd5b614cd885614dea565b614d29576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310614d685780518252601f199092019160209182019101614d49565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614dca576040519150601f19603f3d011682016040523d82523d6000602084013e614dcf565b606091505b5091509150614ddf828286614df0565b979650505050505050565b3b151590565b60608315614dff575081614b65565b825115614e0f5782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315614b19578181015183820152602001614b0156fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204baeee806b8710af3eb6ebe3ab80cc2f1a29c1c4523628c10d9de4a72bec807964736f6c63430007040033

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

000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e725100000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa87070000000000000000000000002e8a85b131a2cfbcb339a493652bb201c1331c08000000000000000000000000dec31f7d5174326a29f96fd2964e81ed1a767bc0000000000000000000000000bfcf45366679384bad328f08af39c449f4b03de100000000000000000000000010af395dfc1d91a2be91a99b1deea3c0d3e5cb52000000000000000000000000cf5dbc399f3112bac87f57018a3389911241237b

-----Decoded View---------------
Arg [0] : _pETH (address): 0xbb9Bb97BD5A7d94431bB4DD134886522034e7251
Arg [1] : _pi (address): 0x37613D64258c0FE09d5E53EeCb091DA5b8fA8707
Arg [2] : _pETH_Direct (address): 0x2E8A85b131A2cFBcb339a493652bB201c1331c08
Arg [3] : _transferGate (address): 0xdec31F7d5174326a29F96Fd2964E81ED1a767Bc0
Arg [4] : _pETH_Liquidity (address): 0xBFcF45366679384bad328F08Af39c449F4b03dE1
Arg [5] : _vaultContract (address): 0x10AF395dFc1d91a2be91a99B1dEea3c0D3E5cB52
Arg [6] : _ERC1155Token (address): 0xcF5DbC399F3112bac87f57018A3389911241237B

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000bb9bb97bd5a7d94431bb4dd134886522034e7251
Arg [1] : 00000000000000000000000037613d64258c0fe09d5e53eecb091da5b8fa8707
Arg [2] : 0000000000000000000000002e8a85b131a2cfbcb339a493652bb201c1331c08
Arg [3] : 000000000000000000000000dec31f7d5174326a29f96fd2964e81ed1a767bc0
Arg [4] : 000000000000000000000000bfcf45366679384bad328f08af39c449f4b03de1
Arg [5] : 00000000000000000000000010af395dfc1d91a2be91a99b1deea3c0d3e5cb52
Arg [6] : 000000000000000000000000cf5dbc399f3112bac87f57018a3389911241237b


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.