ETH Price: $2,920.72 (+4.54%)
 
Transaction Hash
Method
Block
From
To
Zap Out201319862024-06-20 9:16:23141 days ago1718874983IN
0x58bF4d8C...Ae3927FFa
0 ETH0.008541999.15947349
Zap Out198816752024-05-16 9:34:59176 days ago1715852099IN
0x58bF4d8C...Ae3927FFa
0 ETH0.004615214.42082442
Zap Out195811872024-04-04 8:23:47218 days ago1712219027IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0176319818.01418735
Zap Out195038712024-03-24 10:40:47229 days ago1711276847IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0158818216.29724545
Zap Out191397312024-02-02 9:10:23280 days ago1706865023IN
0x58bF4d8C...Ae3927FFa
0 ETH0.030214921.08029069
Zap Out188570442023-12-24 17:14:47319 days ago1703438087IN
0x58bF4d8C...Ae3927FFa
0 ETH0.022278721.34032888
Zap Out188558112023-12-24 13:06:35319 days ago1703423195IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0056540319.38844282
Zap Out188158912023-12-18 22:37:35325 days ago1702939055IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0214588362.3680041
Zap Out181343192023-09-14 11:47:35421 days ago1694692055IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0095280110.82905168
Zap Out181329402023-09-14 7:10:11421 days ago1694675411IN
0x58bF4d8C...Ae3927FFa
0 ETH0.010824889.52690848
Zap Out181329232023-09-14 7:06:47421 days ago1694675207IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0092789210.31270044
Zap Out180655732023-09-04 20:42:11430 days ago1693860131IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0197800721.98380061
Zap Out179971642023-08-26 6:49:35440 days ago1693032575IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0175178512.57655541
Zap Out177409522023-07-21 10:34:35476 days ago1689935675IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0160775417.86856033
Zap Out176565012023-07-09 13:39:35487 days ago1688909975IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0190530819.96653071
Zap Out175300412023-06-21 19:12:35505 days ago1687374755IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0246665624.42415144
Zap Out174580932023-06-11 16:36:11515 days ago1686501371IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0195177617.62224533
Zap Out174430962023-06-09 13:53:47517 days ago1686318827IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0194651921.23153441
Zap Out173885262023-06-01 21:09:11525 days ago1685653751IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0099531434.11975657
Zap Out172966452023-05-19 22:59:35538 days ago1684537175IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0400105834.39939279
Zap Out171212522023-04-25 5:38:47563 days ago1682401127IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0116865739.96339873
Zap Out170958042023-04-21 16:00:11566 days ago1682092811IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0472489840.76059563
Zap Out170476112023-04-14 20:00:35573 days ago1681502435IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0268077525.461553
Zap Out170231092023-04-11 6:33:11577 days ago1681194791IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0237703520.06562016
Zap Out170230322023-04-11 6:17:35577 days ago1681193855IN
0x58bF4d8C...Ae3927FFa
0 ETH0.0201532719.76838459
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
201319862024-06-20 9:16:23141 days ago1718874983
0x58bF4d8C...Ae3927FFa
1.04696532 ETH
201319862024-06-20 9:16:23141 days ago1718874983
0x58bF4d8C...Ae3927FFa
1.04696532 ETH
198816752024-05-16 9:34:59176 days ago1715852099
0x58bF4d8C...Ae3927FFa
0.33310766 ETH
198816752024-05-16 9:34:59176 days ago1715852099
0x58bF4d8C...Ae3927FFa
0.33310766 ETH
195038712024-03-24 10:40:47229 days ago1711276847
0x58bF4d8C...Ae3927FFa
3.12467939 ETH
195038712024-03-24 10:40:47229 days ago1711276847
0x58bF4d8C...Ae3927FFa
3.12467939 ETH
188570442023-12-24 17:14:47319 days ago1703438087
0x58bF4d8C...Ae3927FFa
0.63965613 ETH
188570442023-12-24 17:14:47319 days ago1703438087
0x58bF4d8C...Ae3927FFa
0.63965613 ETH
188558112023-12-24 13:06:35319 days ago1703423195
0x58bF4d8C...Ae3927FFa
0.03639731 ETH
188558112023-12-24 13:06:35319 days ago1703423195
0x58bF4d8C...Ae3927FFa
0.03639731 ETH
181343192023-09-14 11:47:35421 days ago1694692055
0x58bF4d8C...Ae3927FFa
0.1186482 ETH
181343192023-09-14 11:47:35421 days ago1694692055
0x58bF4d8C...Ae3927FFa
0.1186482 ETH
181329402023-09-14 7:10:11421 days ago1694675411
0x58bF4d8C...Ae3927FFa
0.24663519 ETH
181329402023-09-14 7:10:11421 days ago1694675411
0x58bF4d8C...Ae3927FFa
0.24663519 ETH
181329232023-09-14 7:06:47421 days ago1694675207
0x58bF4d8C...Ae3927FFa
0.30912152 ETH
181329232023-09-14 7:06:47421 days ago1694675207
0x58bF4d8C...Ae3927FFa
0.30912152 ETH
180655732023-09-04 20:42:11430 days ago1693860131
0x58bF4d8C...Ae3927FFa
2.02026389 ETH
180655732023-09-04 20:42:11430 days ago1693860131
0x58bF4d8C...Ae3927FFa
2.02026389 ETH
177409522023-07-21 10:34:35476 days ago1689935675
0x58bF4d8C...Ae3927FFa
0.29797717 ETH
177409522023-07-21 10:34:35476 days ago1689935675
0x58bF4d8C...Ae3927FFa
0.29797717 ETH
175300412023-06-21 19:12:35505 days ago1687374755
0x58bF4d8C...Ae3927FFa
0.24672797 ETH
175300412023-06-21 19:12:35505 days ago1687374755
0x58bF4d8C...Ae3927FFa
0.24672797 ETH
174430962023-06-09 13:53:47517 days ago1686318827
0x58bF4d8C...Ae3927FFa
0.37877534 ETH
174430962023-06-09 13:53:47517 days ago1686318827
0x58bF4d8C...Ae3927FFa
0.37877534 ETH
173885262023-06-01 21:09:11525 days ago1685653751
0x58bF4d8C...Ae3927FFa
0.03497257 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ZapOutCurveGVault

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : ZapOutCurveGVault.sol
// Copyright (C) 2021 Zapper (Zapper.Fi)

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Affero General Public License for more details.

///@author Zapper, modified and adapted for Grizzly.fi.
///@notice This contract removes liquidity from Grizzly Vaults to ETH or ERC20 Tokens.
///@notice These files have been changed from the original Zapper ones.

// SPDX-License-Identifier: GPL-2.0

pragma solidity 0.8.0;

import {IVault} from "./interfaces/IVault.sol";
import {IWETH} from "./interfaces/IWETH.sol";
import {IERC20} from "./interfaces/IERC20.sol";
import {ICurveSwap} from "./interfaces/ICurveSwap.sol";
import {ICurveEthSwap} from "./interfaces/ICurveEthSwap.sol";
import {ICurveRegistry} from "./interfaces/ICurveRegistry.sol";

import {ZapOutBase} from "./ZapOutBase.sol";
import {SafeERC20} from "./libraries/SafeERC20.sol";
import {Address} from "./libraries/Address.sol";

contract ZapOutCurveGVault is ZapOutBase {
    using SafeERC20 for IERC20;

    address private constant wethTokenAddress =
        address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);

    ICurveRegistry public curveReg;

    mapping(address => bool) internal v2Pool;

    constructor(ICurveRegistry _curveRegistry) {
        approvedTargets[0xDef1C0ded9bec7F1a1670819833240f027b25EfF] = true;
        v2Pool[0xD51a44d3FaE010294C616388b506AcdA1bfAAE46] = true;
        curveReg = _curveRegistry;
    }

    event zapCurveOut(
        address sender,
        address pool,
        address token,
        uint256 tokensRec
    );
    event curveRegistryUpdated(
        ICurveRegistry newCurveReg,
        ICurveRegistry oldCurveReg
    );
    event approvedV2Pool(address pool, bool approved);
    event Sweep(address indexed token, uint256 amount);

    /**
    @notice This method removes the liquidity from curve pools to ETH/ERC tokens
    @param gVault Grizzly Vault from which to remove liquidity
    @param amountIn Indicates the quantity of Vault tokens to remove (shares)
    @param swapAddress indicates Curve swap address for the pool
    @param intermediateToken specifies in which token to exit the curve pool
    @param toToken indicates the ETH/ERC token to which tokens to convert
    @param minToTokens indicates the minimum amount of toTokens to receive
    @param _swapTarget Execution target for the first swap
    @param _swapCallData DEX quote data
    @return toTokensBought- indicates the amount of toTokens received
    */
    function ZapOut(
        address gVault,
        uint256 amountIn,
        address swapAddress,
        address intermediateToken,
        address toToken,
        uint256 minToTokens,
        address _swapTarget,
        bytes calldata _swapCallData
    ) external stopInEmergency returns (uint256) {
        address underlyingToken = IVault(gVault).token();
        address poolTokenAddress = curveReg.getTokenAddress(swapAddress); // ERC20 Curve LP Token
        // Safety check for underlying Vault Token = address LP
        require(poolTokenAddress == underlyingToken, "Wrong LpAddress");

        _pullTokens(gVault, amountIn);

        // Get the LP Tokens by withdrawing from Vault
        uint256 underlyingTokenReceived = _vaultWithdraw(
            gVault,
            amountIn,
            underlyingToken
        );

        if (intermediateToken == address(0)) {
            intermediateToken = ETHAddress;
        }

        // Perform zapOut
        uint256 toTokensBought = _zapOut(
            swapAddress,
            underlyingTokenReceived,
            intermediateToken,
            toToken,
            _swapTarget,
            _swapCallData
        );

        require(toTokensBought >= minToTokens, "High Slippage");

        // Transfer tokens
        if (toToken == address(0)) {
            Address.sendValue(payable(msg.sender), toTokensBought);
        } else {
            IERC20(toToken).safeTransfer(msg.sender, toTokensBought);
        }

        emit zapCurveOut(msg.sender, swapAddress, toToken, toTokensBought);

        return toTokensBought;
    }

    function _vaultWithdraw(
        address fromVault,
        uint256 amount,
        address underlyingVaultToken
    ) internal returns (uint256 underlyingReceived) {
        uint256 iniUnderlyingBal = _getBalance(underlyingVaultToken);

        IVault(fromVault).withdraw(amount, address(this), 10, msg.sender);

        underlyingReceived =
            _getBalance(underlyingVaultToken) -
            iniUnderlyingBal;
    }

    function _zapOut(
        address swapAddress,
        uint256 incomingCrv,
        address intermediateToken,
        address toToken,
        address _swapTarget,
        bytes memory _swapCallData
    ) internal returns (uint256 toTokensBought) {
        /// @return true if the pool contains the token, false otherwise
        /// @return index of the token in the pool, 0 if pool does not contain the token
        (bool isUnderlying, uint256 underlyingIndex) = curveReg
            .isUnderlyingToken(swapAddress, intermediateToken);

        // Not Metapool
        if (isUnderlying) {
            uint256 intermediateBought = _exitCurve(
                swapAddress,
                incomingCrv,
                underlyingIndex,
                intermediateToken
            );

            if (intermediateToken == ETHAddress) intermediateToken = address(0);

            toTokensBought = _fillQuote(
                intermediateToken,
                toToken,
                intermediateBought,
                _swapTarget,
                _swapCallData
            );
        } else {
            // From Metapool: Token that trades with another underlying base pool [MIM, 3Pool]
            address[4] memory poolTokens = curveReg.getPoolTokens(swapAddress);
            address intermediateSwapAddress;
            uint8 i;
            for (; i < 4; i++) {
                if (curveReg.getSwapAddress(poolTokens[i]) != address(0)) {
                    intermediateSwapAddress = curveReg.getSwapAddress(
                        poolTokens[i]
                    );
                    break;
                }
            }
            // _exitCurve to intermediateSwapAddress Token
            uint256 intermediateCrvBought = _exitMetaCurve(
                swapAddress,
                incomingCrv,
                i,
                poolTokens[i]
            );
            // _performZapOut: fromPool = intermediateSwapAddress
            toTokensBought = _zapOut(
                intermediateSwapAddress,
                intermediateCrvBought,
                intermediateToken,
                toToken,
                _swapTarget,
                _swapCallData
            );
        }
    }

    /**
    @notice This method removes the liquidity from meta curve pools
    @param swapAddress indicates the curve pool address from which liquidity to be removed.
    @param incomingCrv indicates the amount of liquidity to be removed from the pool
    @param index indicates the index of underlying token of the pool in which liquidity will be removed. 
    @return tokensReceived- indicates the amount of reserve tokens received 
    */
    function _exitMetaCurve(
        address swapAddress,
        uint256 incomingCrv,
        uint256 index,
        address exitTokenAddress
    ) internal returns (uint256) {
        address tokenAddress = curveReg.getTokenAddress(swapAddress);
        _approveToken(tokenAddress, swapAddress);

        uint256 iniTokenBal = IERC20(exitTokenAddress).balanceOf(address(this));
        ICurveSwap(swapAddress).remove_liquidity_one_coin(
            incomingCrv,
            int128(uint128(index)),
            0
        );
        uint256 tokensReceived = (
            IERC20(exitTokenAddress).balanceOf(address(this))
        ) - iniTokenBal;

        require(tokensReceived > 0, "Could not receive reserve tokens");

        return tokensReceived;
    }

    /**
    @notice This method removes the liquidity from given curve pool
    @param swapAddress indicates the curve pool address from which liquidity to be removed.
    @param incomingCrv indicates the amount of liquidity to be removed from the pool
    @param index indicates the index of underlying token of the pool in which liquidity will be removed. 
    @return tokensReceived- indicates the amount of reserve tokens received 
    */
    function _exitCurve(
        address swapAddress,
        uint256 incomingCrv,
        uint256 index,
        address exitTokenAddress
    ) internal returns (uint256) {
        address depositAddress = curveReg.getDepositAddress(swapAddress);

        address tokenAddress = curveReg.getTokenAddress(swapAddress);
        _approveToken(tokenAddress, depositAddress);

        address balanceToken = exitTokenAddress == ETHAddress
            ? address(0)
            : exitTokenAddress;

        uint256 iniTokenBal = _getBalance(balanceToken);

        if (curveReg.shouldAddUnderlying(swapAddress)) {
            // Aave
            ICurveSwap(depositAddress).remove_liquidity_one_coin(
                incomingCrv,
                int128(uint128(index)),
                0,
                true
            );
        } else if (v2Pool[swapAddress]) {
            ICurveSwap(depositAddress).remove_liquidity_one_coin(
                incomingCrv,
                index,
                0
            );
        } else {
            ICurveSwap(depositAddress).remove_liquidity_one_coin(
                incomingCrv,
                int128(uint128(index)),
                0
            );
        }

        uint256 tokensReceived = _getBalance(balanceToken) - iniTokenBal;

        require(tokensReceived > 0, "Could not receive reserve tokens");

        return tokensReceived;
    }

    /**
    @notice This method swaps the fromToken to toToken using the 0x swap
    @param _fromTokenAddress indicates the ETH/ERC20 token
    @param _toTokenAddress indicates the ETH/ERC20 token
    @param _amount indicates the amount of from tokens to swap
    @param _swapTarget Execution target for the first swap
    @param _swapCallData DEX quote data
    */
    function _fillQuote(
        address _fromTokenAddress,
        address _toTokenAddress,
        uint256 _amount,
        address _swapTarget,
        bytes memory _swapCallData
    ) internal returns (uint256 amountBought) {
        if (_fromTokenAddress == _toTokenAddress) return _amount;

        if (
            _fromTokenAddress == wethTokenAddress &&
            _toTokenAddress == address(0)
        ) {
            IWETH(wethTokenAddress).withdraw(_amount);
            return _amount;
        } else if (
            _fromTokenAddress == address(0) &&
            _toTokenAddress == wethTokenAddress
        ) {
            IWETH(wethTokenAddress).deposit{value: _amount}();
            return _amount;
        }

        uint256 valueToSend;
        if (_fromTokenAddress == address(0)) valueToSend = _amount;
        else _approveToken(_fromTokenAddress, _swapTarget, _amount);

        uint256 iniBal = _getBalance(_toTokenAddress);
        require(approvedTargets[_swapTarget], "Target not Authorized");
        (bool success, ) = _swapTarget.call{value: valueToSend}(_swapCallData);
        require(success, "Error Swapping Tokens");
        uint256 finalBal = _getBalance(_toTokenAddress);

        amountBought = finalBal - iniBal;

        require(amountBought > 0, "Swapped To Invalid Intermediate");
    }

    /**
    @notice Utility function to determine the quantity and address of a token being removed
    @param swapAddress indicates the curve pool address from which liquidity to be removed
    @param tokenAddress token to be removed
    @param liquidity Quantity of LP tokens to remove
    @return amount Quantity of token removed
    */
    function removeLiquidityReturn(
        address swapAddress,
        address tokenAddress,
        uint256 liquidity
    ) external view returns (uint256 amount) {
        if (tokenAddress == address(0)) tokenAddress = ETHAddress;
        (bool underlying, uint256 index) = curveReg.isUnderlyingToken(
            swapAddress,
            tokenAddress
        );
        if (underlying) {
            if (v2Pool[swapAddress]) {
                return
                    ICurveSwap(curveReg.getDepositAddress(swapAddress))
                        .calc_withdraw_one_coin(liquidity, uint256(index));
            } else if (curveReg.shouldAddUnderlying(swapAddress)) {
                return
                    ICurveSwap(curveReg.getDepositAddress(swapAddress))
                        .calc_withdraw_one_coin(
                            liquidity,
                            int128(uint128(index)),
                            true
                        );
            } else {
                return
                    ICurveSwap(curveReg.getDepositAddress(swapAddress))
                        .calc_withdraw_one_coin(
                            liquidity,
                            int128(uint128(index))
                        );
            }
        } else {
            address[4] memory poolTokens = curveReg.getPoolTokens(swapAddress);
            address intermediateSwapAddress;
            for (uint256 i = 0; i < 4; i++) {
                intermediateSwapAddress = curveReg.getSwapAddress(
                    poolTokens[i]
                );
                if (intermediateSwapAddress != address(0)) break;
            }
            uint256 metaTokensRec = ICurveSwap(swapAddress)
                .calc_withdraw_one_coin(liquidity, int128(1));

            (, index) = curveReg.isUnderlyingToken(
                intermediateSwapAddress,
                tokenAddress
            );

            return
                ICurveSwap(intermediateSwapAddress).calc_withdraw_one_coin(
                    metaTokensRec,
                    int128(uint128(index))
                );
        }
    }

    function updateCurveRegistry(ICurveRegistry newCurveRegistry)
        external
        onlyOwner
    {
        require(newCurveRegistry != curveReg, "Already using this Registry");
        ICurveRegistry oldCurveReg = curveReg;
        curveReg = newCurveRegistry;
        emit curveRegistryUpdated(curveReg, oldCurveReg);
    }

    function setV2Pool(address[] calldata pool, bool[] calldata isV2Pool)
        external
        onlyOwner
    {
        require(pool.length == isV2Pool.length, "Invalid Input length");

        for (uint256 i = 0; i < pool.length; i++) {
            v2Pool[pool[i]] = isV2Pool[i];
            emit approvedV2Pool(pool[i], isV2Pool[i]);
        }
    }

    /// @notice Sweep tokens or ETH in case they get stuck in the contract
    function sweep(address[] memory _tokens, bool _ETH) external onlyOwner {
        if (_ETH) {
            uint256 balance = address(this).balance;
            (bool success, ) = msg.sender.call{value: address(this).balance}(
                ""
            );
            require(success, "Sending ETH failed");
            emit Sweep(ETHAddress, balance);
        }
        for (uint256 i = 0; i < _tokens.length; i++) {
            uint256 amount = IERC20(_tokens[i]).balanceOf(address(this));
            IERC20(_tokens[i]).safeTransfer(owner(), amount);
            emit Sweep(_tokens[i], amount);
        }
    }
}

File 2 of 12 : IVault.sol
interface IVault {
    function deposit(uint256) external;

    function deposit(uint256 amount, address recipient)
        external
        returns (uint256);

    function withdraw(uint256) external;

    function withdraw(uint256 maxShares, address recipient, uint256 maxLoss)
        external
        returns (uint256);

    function withdraw(uint256 maxShares, address recipient, uint256 maxLoss, address endRecipient)
        external
        returns (uint256);

    function getPricePerFullShare() external view returns (uint256);

    function token() external view returns (address);

    function decimals() external view returns (uint256);

    // V2
    function pricePerShare() external view returns (uint256);
}

File 3 of 12 : IWETH.sol
interface IWETH {
    function deposit() external payable;

    function withdraw(uint256 wad) external;
}

File 4 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    function decimals() external view returns (uint8);

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

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 5 of 12 : ICurveSwap.sol
interface ICurveSwap {
    function remove_liquidity_one_coin(
        uint256 _token_amount,
        int128 i,
        uint256 min_amount
    ) external;

    function remove_liquidity_one_coin(
        uint256 _token_amount,
        int128 i,
        uint256 min_amount,
        bool removeUnderlying
    ) external;

    function remove_liquidity_one_coin(
        uint256 _token_amount,
        uint256 i,
        uint256 min_amount
    ) external;

    function calc_withdraw_one_coin(uint256 tokenAmount, int128 index)
        external
        view
        returns (uint256);

    function calc_withdraw_one_coin(
        uint256 tokenAmount,
        int128 index,
        bool _use_underlying
    ) external view returns (uint256);

    function calc_withdraw_one_coin(uint256 tokenAmount, uint256 index)
        external
        view
        returns (uint256);
}

File 6 of 12 : ICurveEthSwap.sol
interface ICurveEthSwap {
    function add_liquidity(uint256[2] calldata amounts, uint256 min_mint_amount)
        external
        payable
        returns (uint256);
}

File 7 of 12 : ICurveRegistry.sol
interface ICurveRegistry {
    function getSwapAddress(address tokenAddress)
        external
        view
        returns (address swapAddress);

    function getTokenAddress(address swapAddress)
        external
        view
        returns (address tokenAddress);

    function getDepositAddress(address swapAddress)
        external
        view
        returns (address depositAddress);

    function getPoolTokens(address swapAddress)
        external
        view
        returns (address[4] memory poolTokens);

    function shouldAddUnderlying(address swapAddress)
        external
        view
        returns (bool);

    function getNumTokens(address swapAddress)
        external
        view
        returns (uint8 numTokens);

    function isBtcPool(address swapAddress) external view returns (bool);

    function isEthPool(address swapAddress) external view returns (bool);

    function isUnderlyingToken(
        address swapAddress,
        address tokenContractAddress
    ) external view returns (bool, uint8);
}

File 8 of 12 : ZapOutBase.sol
// SPDX-License-Identifier: GPL-2.0

pragma solidity 0.8.0;

import {Ownable} from "./libraries/Ownable.sol";
import {SafeERC20} from "./libraries/SafeERC20.sol";
import {Address} from "./libraries/Address.sol";

import {IERC20} from "./interfaces/IERC20.sol";

abstract contract ZapOutBase is Ownable {
    using SafeERC20 for IERC20;
    bool public stopped = false;

    // SwapTarget => approval status
    mapping(address => bool) public approvedTargets;

    address internal constant ETHAddress =
        0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    event ApprovedTarget(address target, bool approved);
    event Stopped(bool stopped);

    // Circuit breaker modifiers
    modifier stopInEmergency() {
        if (stopped) {
            revert("Temporarily Paused");
        } else {
            _;
        }
    }

    /**
        @dev Transfer tokens from msg.sender to this contract
        @param token The ERC20 token to transfer to this contract
        @param amount the amount of tokens to be transferred
        @return Quantity of tokens transferred to this contract
     */
    function _pullTokens(address token, uint256 amount)
        internal
        returns (uint256)
    {
        IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
        return amount;
    }

    function _getBalance(address token)
        internal
        view
        returns (uint256 balance)
    {
        if (token == address(0)) {
            balance = address(this).balance;
        } else {
            balance = IERC20(token).balanceOf(address(this));
        }
    }

    function _approveToken(address token, address spender) internal {
        IERC20 _token = IERC20(token);
        if (_token.allowance(address(this), spender) > 0) return;
        else {
            _token.safeApprove(spender, type(uint256).max);
        }
    }

    function _approveToken(
        address token,
        address spender,
        uint256 amount
    ) internal {
        IERC20(token).safeApprove(spender, 0);
        IERC20(token).safeApprove(spender, amount);
    }

    // - to Pause the contract
    function toggleContractActive() external onlyOwner {
        stopped = !stopped;
        emit Stopped(stopped);
    }

    ///@notice Withdraw tokens like a sweep function
    function withdrawTokens(address[] calldata tokens) external onlyOwner {
        for (uint256 i = 0; i < tokens.length; i++) {
            uint256 qty;
            // Check weather if is native or just ERC20
            if (tokens[i] == ETHAddress) {
                qty = address(this).balance;
                Address.sendValue(payable(owner()), qty);
            } else {
                qty = IERC20(tokens[i]).balanceOf(address(this));
                IERC20(tokens[i]).safeTransfer(owner(), qty);
            }
        }
    }

    function setApprovedTargets(
        address[] calldata targets,
        bool[] calldata isApproved
    ) external onlyOwner {
        require(targets.length == isApproved.length, "Invalid Input length");

        for (uint256 i = 0; i < targets.length; i++) {
            approvedTargets[targets[i]] = isApproved[i];
            emit ApprovedTarget(targets[i], isApproved[i]);
        }
    }

    receive() external payable {
        require(msg.sender != tx.origin, "Do not send ETH directly");
    }
}

File 9 of 12 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {IERC20} from "../interfaces/IERC20.sol";
import {Address} from "./Address.sol";

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

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

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

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

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

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

    /**
     * @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 10 of 12 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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.4._
     */
    function functionDelegateCall(address target, bytes memory data)
        internal
        returns (bytes memory)
    {
        return
            functionDelegateCall(
                target,
                data,
                "Address: low-level delegate call failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        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 11 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {Context} from "./Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

File 12 of 12 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ICurveRegistry","name":"_curveRegistry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovedTarget","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"stopped","type":"bool"}],"name":"Stopped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Sweep","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"approvedV2Pool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract ICurveRegistry","name":"newCurveReg","type":"address"},{"indexed":false,"internalType":"contract ICurveRegistry","name":"oldCurveReg","type":"address"}],"name":"curveRegistryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokensRec","type":"uint256"}],"name":"zapCurveOut","type":"event"},{"inputs":[{"internalType":"address","name":"gVault","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"swapAddress","type":"address"},{"internalType":"address","name":"intermediateToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"uint256","name":"minToTokens","type":"uint256"},{"internalType":"address","name":"_swapTarget","type":"address"},{"internalType":"bytes","name":"_swapCallData","type":"bytes"}],"name":"ZapOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedTargets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curveReg","outputs":[{"internalType":"contract ICurveRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"swapAddress","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"removeLiquidityReturn","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"bool[]","name":"isApproved","type":"bool[]"}],"name":"setApprovedTargets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"pool","type":"address[]"},{"internalType":"bool[]","name":"isV2Pool","type":"bool[]"}],"name":"setV2Pool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"bool","name":"_ETH","type":"bool"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleContractActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ICurveRegistry","name":"newCurveRegistry","type":"address"}],"name":"updateCurveRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260008060146101000a81548160ff0219169083151502179055503480156200002b57600080fd5b506040516200543b3803806200543b83398181016040528101906200005191906200023f565b6000620000636200022060201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350600180600073def1c0ded9bec7f1a1670819833240f027b25eff73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016003600073d51a44d3fae010294c616388b506acda1bfaae4673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050620002cd565b600033905090565b6000815190506200023981620002b3565b92915050565b6000602082840312156200025257600080fd5b6000620002628482850162000228565b91505092915050565b6000620002788262000293565b9050919050565b60006200028c826200026b565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b620002be816200027f565b8114620002ca57600080fd5b50565b61515e80620002dd6000396000f3fe6080604052600436106100e15760003560e01c80639735a6341161007f578063dee5b7e011610059578063dee5b7e014610300578063e59533821461033d578063f2fde38b14610366578063f99b277e1461038f57610157565b80639735a634146102715780639779d1a61461029a578063cbd6cfe3146102d757610157565b8063715018a6116100bb578063715018a6146101c757806375f12b21146101de57806389599dce146102095780638da5cb5b1461024657610157565b80631385d24c1461015c578063374b09f8146101735780635ecb16cd1461019e57610157565b36610157573273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161014c90614a5f565b60405180910390fd5b005b600080fd5b34801561016857600080fd5b506101716103b8565b005b34801561017f57600080fd5b506101886104a6565b6040516101959190614999565b60405180910390f35b3480156101aa57600080fd5b506101c560048036038101906101c09190613fe7565b6104cc565b005b3480156101d357600080fd5b506101dc610777565b005b3480156101ea57600080fd5b506101f36108b1565b604051610200919061497e565b60405180910390f35b34801561021557600080fd5b50610230600480360381019061022b9190613ef0565b6108c4565b60405161023d9190614c5f565b60405180910390f35b34801561025257600080fd5b5061025b610c75565b604051610268919061486c565b60405180910390f35b34801561027d57600080fd5b506102986004803603810190610293919061402c565b610c9e565b005b3480156102a657600080fd5b506102c160048036038101906102bc9190613e4f565b610f4e565b6040516102ce919061497e565b60405180910390f35b3480156102e357600080fd5b506102fe60048036038101906102f991906140a1565b610f6e565b005b34801561030c57600080fd5b5061032760048036038101906103229190613ea1565b6112f8565b6040516103349190614c5f565b60405180910390f35b34801561034957600080fd5b50610364600480360381019061035f9190614183565b611c9a565b005b34801561037257600080fd5b5061038d60048036038101906103889190613e4f565b611e6e565b005b34801561039b57600080fd5b506103b660048036038101906103b1919061402c565b612017565b005b6103c06122c7565b73ffffffffffffffffffffffffffffffffffffffff166103de610c75565b73ffffffffffffffffffffffffffffffffffffffff1614610434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042b90614bbf565b60405180910390fd5b600060149054906101000a900460ff1615600060146101000a81548160ff0219169083151502179055507f593eae32baa13087e4ace6c5bdb2bca644d29310634cb44a78f0f2a640c6af0e600060149054906101000a900460ff1660405161049c919061497e565b60405180910390a1565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6104d46122c7565b73ffffffffffffffffffffffffffffffffffffffff166104f2610c75565b73ffffffffffffffffffffffffffffffffffffffff1614610548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053f90614bbf565b60405180910390fd5b60005b8282905081101561077257600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168484848181106105bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906105d19190613e4f565b73ffffffffffffffffffffffffffffffffffffffff161415610606574790506106016105fb610c75565b826122cf565b61075e565b83838381811061063f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906106549190613e4f565b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161068c919061486c565b60206040518083038186803b1580156106a457600080fd5b505afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906141ac565b905061075d6106e9610c75565b82868686818110610723577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906107389190613e4f565b73ffffffffffffffffffffffffffffffffffffffff166123c39092919063ffffffff16565b5b50808061076a90614fd3565b91505061054b565b505050565b61077f6122c7565b73ffffffffffffffffffffffffffffffffffffffff1661079d610c75565b73ffffffffffffffffffffffffffffffffffffffff16146107f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ea90614bbf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600060149054906101000a900460ff1681565b60008060149054906101000a900460ff1615610915576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090c90614b1f565b60405180910390fd5b60008a73ffffffffffffffffffffffffffffffffffffffff1663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561095d57600080fd5b505afa158015610971573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109959190613e78565b90506000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b8d7b6698b6040518263ffffffff1660e01b81526004016109f4919061486c565b60206040518083038186803b158015610a0c57600080fd5b505afa158015610a20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a449190613e78565b90508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ab4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aab90614a1f565b60405180910390fd5b610abe8c8c612449565b506000610acc8d8d85612481565b9050600073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff161415610b1b5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee99505b6000610b6f8c838d8d8c8c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612540565b905088811015610bb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bab90614a7f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff161415610bf857610bf333826122cf565b610c24565b610c2333828c73ffffffffffffffffffffffffffffffffffffffff166123c39092919063ffffffff16565b5b7f227bc9617ebed3986bf46163ed6e33e26e5dbd0e94c8e4b57539f2deb8a6964d338d8c84604051610c5994939291906148b0565b60405180910390a1809450505050509998505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610ca66122c7565b73ffffffffffffffffffffffffffffffffffffffff16610cc4610c75565b73ffffffffffffffffffffffffffffffffffffffff1614610d1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1190614bbf565b60405180910390fd5b818190508484905014610d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5990614b7f565b60405180910390fd5b60005b84849050811015610f4757828282818110610da9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610dbe91906140f5565b60016000878785818110610dfb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610e109190613e4f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f97f1bde783db021cb1dbed0963fb128437eff372ed88708a8eef8d06c1224de4858583818110610ebb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610ed09190613e4f565b848484818110610f09577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610f1e91906140f5565b604051610f2c92919061492c565b60405180910390a18080610f3f90614fd3565b915050610d65565b5050505050565b60016020528060005260406000206000915054906101000a900460ff1681565b610f766122c7565b73ffffffffffffffffffffffffffffffffffffffff16610f94610c75565b73ffffffffffffffffffffffffffffffffffffffff1614610fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe190614bbf565b60405180910390fd5b801561110657600047905060003373ffffffffffffffffffffffffffffffffffffffff164760405161101b90614857565b60006040518083038185875af1925050503d8060008114611058576040519150601f19603f3d011682016040523d82523d6000602084013e61105d565b606091505b50509050806110a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109890614abf565b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff167fab2246061d7b0dd3631d037e3f6da75782ae489eeb9f6af878a4b25df9b07c77836040516110fb9190614c5f565b60405180910390a250505b60005b82518110156112f357600083828151811061114d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161118d919061486c565b60206040518083038186803b1580156111a557600080fd5b505afa1580156111b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111dd91906141ac565b90506112516111ea610c75565b82868581518110611224577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166123c39092919063ffffffff16565b83828151811061128a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff167fab2246061d7b0dd3631d037e3f6da75782ae489eeb9f6af878a4b25df9b07c77826040516112d79190614c5f565b60405180910390a25080806112eb90614fd3565b915050611109565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156113465773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee92505b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e09fa3087876040518363ffffffff1660e01b81526004016113a6929190614887565b604080518083038186803b1580156113bd57600080fd5b505afa1580156113d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f59190614147565b60ff169150915081156118c157600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561159257600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d83a7f67876040518263ffffffff1660e01b81526004016114af919061486c565b60206040518083038186803b1580156114c757600080fd5b505afa1580156114db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ff9190613e78565b73ffffffffffffffffffffffffffffffffffffffff16634fb08c5e85836040518363ffffffff1660e01b8152600401611539929190614d9b565b60206040518083038186803b15801561155157600080fd5b505afa158015611565573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061158991906141ac565b92505050611c93565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166329a552a4876040518263ffffffff1660e01b81526004016115ed919061486c565b60206040518083038186803b15801561160557600080fd5b505afa158015611619573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163d919061411e565b1561178357600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d83a7f67876040518263ffffffff1660e01b815260040161169d919061486c565b60206040518083038186803b1580156116b557600080fd5b505afa1580156116c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ed9190613e78565b73ffffffffffffffffffffffffffffffffffffffff1663c532a774858360016040518463ffffffff1660e01b815260040161172a93929190614ce8565b60206040518083038186803b15801561174257600080fd5b505afa158015611756573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177a91906141ac565b92505050611c93565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d83a7f67876040518263ffffffff1660e01b81526004016117de919061486c565b60206040518083038186803b1580156117f657600080fd5b505afa15801561180a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061182e9190613e78565b73ffffffffffffffffffffffffffffffffffffffff1663cc2b27d785836040518363ffffffff1660e01b8152600401611868929190614cbf565b60206040518083038186803b15801561188057600080fd5b505afa158015611894573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b891906141ac565b92505050611c93565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca4f2803886040518263ffffffff1660e01b815260040161191e919061486c565b60806040518083038186803b15801561193657600080fd5b505afa15801561194a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196e9190613fbe565b9050600080600090505b6004811015611ab757600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bbff1a668483600481106119f8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516040518263ffffffff1660e01b8152600401611a19919061486c565b60206040518083038186803b158015611a3157600080fd5b505afa158015611a45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a699190613e78565b9150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611aa457611ab7565b8080611aaf90614fd3565b915050611978565b5060008873ffffffffffffffffffffffffffffffffffffffff1663cc2b27d78860016040518363ffffffff1660e01b8152600401611af6929190614cbf565b60206040518083038186803b158015611b0e57600080fd5b505afa158015611b22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b4691906141ac565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e09fa30838a6040518363ffffffff1660e01b8152600401611ba5929190614887565b604080518083038186803b158015611bbc57600080fd5b505afa158015611bd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf49190614147565b90508060ff169050809450508173ffffffffffffffffffffffffffffffffffffffff1663cc2b27d782866040518363ffffffff1660e01b8152600401611c3b929190614cbf565b60206040518083038186803b158015611c5357600080fd5b505afa158015611c67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8b91906141ac565b955050505050505b9392505050565b611ca26122c7565b73ffffffffffffffffffffffffffffffffffffffff16611cc0610c75565b73ffffffffffffffffffffffffffffffffffffffff1614611d16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0d90614bbf565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611da7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9e90614a3f565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3bfa22957bb3555c21a718f0461471871bb81b45b9cfad4e41f448914d98d6ad600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051611e629291906149b4565b60405180910390a15050565b611e766122c7565b73ffffffffffffffffffffffffffffffffffffffff16611e94610c75565b73ffffffffffffffffffffffffffffffffffffffff1614611eea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee190614bbf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5190614a9f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61201f6122c7565b73ffffffffffffffffffffffffffffffffffffffff1661203d610c75565b73ffffffffffffffffffffffffffffffffffffffff1614612093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208a90614bbf565b60405180910390fd5b8181905084849050146120db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d290614b7f565b60405180910390fd5b60005b848490508110156122c057828282818110612122577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061213791906140f5565b60036000878785818110612174577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906121899190613e4f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f033f7e0822a03f1a8f7ab142fbb33bf6002f347d8fb02825b45d7c8d1dbd30ab858583818110612234577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906122499190613e4f565b848484818110612282577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061229791906140f5565b6040516122a592919061492c565b60405180910390a180806122b890614fd3565b9150506120de565b5050505050565b600033905090565b80471015612312576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230990614b3f565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161233890614857565b60006040518083038185875af1925050503d8060008114612375576040519150601f19603f3d011682016040523d82523d6000602084013e61237a565b606091505b50509050806123be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b590614aff565b60405180910390fd5b505050565b6124448363a9059cbb60e01b84846040516024016123e2929190614955565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506129c6565b505050565b60006124783330848673ffffffffffffffffffffffffffffffffffffffff16612a8d909392919063ffffffff16565b81905092915050565b60008061248d83612b16565b90508473ffffffffffffffffffffffffffffffffffffffff16635f0f48bd8530600a336040518563ffffffff1660e01b81526004016124cf9493929190614c7a565b602060405180830381600087803b1580156124e957600080fd5b505af11580156124fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252191906141ac565b508061252c84612b16565b6125369190614eb0565b9150509392505050565b6000806000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e09fa308a896040518363ffffffff1660e01b81526004016125a2929190614887565b604080518083038186803b1580156125b957600080fd5b505afa1580156125cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125f19190614147565b60ff1691509150811561267057600061260c8a8a848b612be5565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16141561265b57600097505b612668888883898961307b565b9350506129ba565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca4f28038b6040518263ffffffff1660e01b81526004016126cd919061486c565b60806040518083038186803b1580156126e557600080fd5b505afa1580156126f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061271d9190613fbe565b90506000805b60048160ff16101561295257600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bbff1a66858460ff16600481106127c1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516040518263ffffffff1660e01b81526004016127e2919061486c565b60206040518083038186803b1580156127fa57600080fd5b505afa15801561280e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128329190613e78565b73ffffffffffffffffffffffffffffffffffffffff161461293f57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bbff1a66848360ff16600481106128c7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516040518263ffffffff1660e01b81526004016128e8919061486c565b60206040518083038186803b15801561290057600080fd5b505afa158015612914573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129389190613e78565b9150612952565b808061294a9061501c565b915050612723565b60006129a38d8d8460ff16878660ff1660048110612999577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516134ba565b90506129b383828d8d8d8d612540565b9650505050505b50509695505050505050565b6000612a28826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661375a9092919063ffffffff16565b9050600081511115612a885780806020019051810190612a48919061411e565b612a87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7e90614bff565b60405180910390fd5b5b505050565b612b10846323b872dd60e01b858585604051602401612aae939291906148f5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506129c6565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b5457479050612be0565b8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401612b8d919061486c565b60206040518083038186803b158015612ba557600080fd5b505afa158015612bb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bdd91906141ac565b90505b919050565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d83a7f67876040518263ffffffff1660e01b8152600401612c43919061486c565b60206040518083038186803b158015612c5b57600080fd5b505afa158015612c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c939190613e78565b90506000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b8d7b669886040518263ffffffff1660e01b8152600401612cf2919061486c565b60206040518083038186803b158015612d0a57600080fd5b505afa158015612d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d429190613e78565b9050612d4e8183613772565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612d9d5784612da0565b60005b90506000612dad82612b16565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166329a552a48a6040518263ffffffff1660e01b8152600401612e0a919061486c565b60206040518083038186803b158015612e2257600080fd5b505afa158015612e36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e5a919061411e565b15612ed7578373ffffffffffffffffffffffffffffffffffffffff1663517a55a38989600060016040518563ffffffff1660e01b8152600401612ea09493929190614d56565b600060405180830381600087803b158015612eba57600080fd5b505af1158015612ece573d6000803e3d6000fd5b50505050613010565b600360008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612f9e578373ffffffffffffffffffffffffffffffffffffffff1663f1dc3cc9898960006040518463ffffffff1660e01b8152600401612f6793929190614dc4565b600060405180830381600087803b158015612f8157600080fd5b505af1158015612f95573d6000803e3d6000fd5b5050505061300f565b8373ffffffffffffffffffffffffffffffffffffffff16631a4d01d2898960006040518463ffffffff1660e01b8152600401612fdc93929190614d1f565b600060405180830381600087803b158015612ff657600080fd5b505af115801561300a573d6000803e3d6000fd5b505050505b5b60008161301c84612b16565b6130269190614eb0565b90506000811161306b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306290614b9f565b60405180910390fd5b8095505050505050949350505050565b60008473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156130b9578390506134b1565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161480156131345750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b156131c05773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d856040518263ffffffff1660e01b81526004016131869190614c5f565b600060405180830381600087803b1580156131a057600080fd5b505af11580156131b4573d6000803e3d6000fd5b505050508390506134b1565b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614801561323b575073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b156132bd5773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561329c57600080fd5b505af11580156132b0573d6000803e3d6000fd5b50505050508390506134b1565b60008073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614156132fb57849050613307565b613306878587613861565b5b600061331287612b16565b9050600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166133a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613397906149ff565b60405180910390fd5b60008573ffffffffffffffffffffffffffffffffffffffff1683866040516133c89190614840565b60006040518083038185875af1925050503d8060008114613405576040519150601f19603f3d011682016040523d82523d6000602084013e61340a565b606091505b505090508061344e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161344590614adf565b60405180910390fd5b600061345989612b16565b905082816134679190614eb0565b9450600085116134ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a390614c3f565b60405180910390fd5b505050505b95945050505050565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b8d7b669876040518263ffffffff1660e01b8152600401613518919061486c565b60206040518083038186803b15801561353057600080fd5b505afa158015613544573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135689190613e78565b90506135748187613772565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016135af919061486c565b60206040518083038186803b1580156135c757600080fd5b505afa1580156135db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ff91906141ac565b90508673ffffffffffffffffffffffffffffffffffffffff16631a4d01d2878760006040518463ffffffff1660e01b815260040161363f93929190614d1f565b600060405180830381600087803b15801561365957600080fd5b505af115801561366d573d6000803e3d6000fd5b505050506000818573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016136ad919061486c565b60206040518083038186803b1580156136c557600080fd5b505afa1580156136d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136fd91906141ac565b6137079190614eb0565b90506000811161374c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161374390614b9f565b60405180910390fd5b809350505050949350505050565b606061376984846000856138bd565b90509392505050565b600082905060008173ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016137b4929190614887565b60206040518083038186803b1580156137cc57600080fd5b505afa1580156137e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061380491906141ac565b1115613810575061385d565b61385b827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8373ffffffffffffffffffffffffffffffffffffffff166139d19092919063ffffffff16565b505b5050565b61388d8260008573ffffffffffffffffffffffffffffffffffffffff166139d19092919063ffffffff16565b6138b882828573ffffffffffffffffffffffffffffffffffffffff166139d19092919063ffffffff16565b505050565b606082471015613902576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138f990614b5f565b60405180910390fd5b61390b85613b2f565b61394a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161394190614bdf565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516139739190614840565b60006040518083038185875af1925050503d80600081146139b0576040519150601f19603f3d011682016040523d82523d6000602084013e6139b5565b606091505b50915091506139c5828286613b42565b92505050949350505050565b6000811480613a6a575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401613a18929190614887565b60206040518083038186803b158015613a3057600080fd5b505afa158015613a44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a6891906141ac565b145b613aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613aa090614c1f565b60405180910390fd5b613b2a8363095ea7b360e01b8484604051602401613ac8929190614955565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506129c6565b505050565b600080823b905060008111915050919050565b60608315613b5257829050613ba2565b600083511115613b655782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b9991906149dd565b60405180910390fd5b9392505050565b6000613bbc613bb784614e2c565b614dfb565b90508082856020860282011115613bd257600080fd5b60005b85811015613c025781613be88882613c8d565b845260208401935060208301925050600181019050613bd5565b5050509392505050565b6000613c1f613c1a84614e52565b614dfb565b90508083825260208201905082856020860282011115613c3e57600080fd5b60005b85811015613c6e5781613c548882613c78565b845260208401935060208301925050600181019050613c41565b5050509392505050565b600081359050613c87816150b5565b92915050565b600081519050613c9c816150b5565b92915050565b600082601f830112613cb357600080fd5b6004613cc0848285613ba9565b91505092915050565b60008083601f840112613cdb57600080fd5b8235905067ffffffffffffffff811115613cf457600080fd5b602083019150836020820283011115613d0c57600080fd5b9250929050565b600082601f830112613d2457600080fd5b8135613d34848260208601613c0c565b91505092915050565b60008083601f840112613d4f57600080fd5b8235905067ffffffffffffffff811115613d6857600080fd5b602083019150836020820283011115613d8057600080fd5b9250929050565b600081359050613d96816150cc565b92915050565b600081519050613dab816150cc565b92915050565b60008083601f840112613dc357600080fd5b8235905067ffffffffffffffff811115613ddc57600080fd5b602083019150836001820283011115613df457600080fd5b9250929050565b600081359050613e0a816150e3565b92915050565b600081359050613e1f816150fa565b92915050565b600081519050613e34816150fa565b92915050565b600081519050613e4981615111565b92915050565b600060208284031215613e6157600080fd5b6000613e6f84828501613c78565b91505092915050565b600060208284031215613e8a57600080fd5b6000613e9884828501613c8d565b91505092915050565b600080600060608486031215613eb657600080fd5b6000613ec486828701613c78565b9350506020613ed586828701613c78565b9250506040613ee686828701613e10565b9150509250925092565b60008060008060008060008060006101008a8c031215613f0f57600080fd5b6000613f1d8c828d01613c78565b9950506020613f2e8c828d01613e10565b9850506040613f3f8c828d01613c78565b9750506060613f508c828d01613c78565b9650506080613f618c828d01613c78565b95505060a0613f728c828d01613e10565b94505060c0613f838c828d01613c78565b93505060e08a013567ffffffffffffffff811115613fa057600080fd5b613fac8c828d01613db1565b92509250509295985092959850929598565b600060808284031215613fd057600080fd5b6000613fde84828501613ca2565b91505092915050565b60008060208385031215613ffa57600080fd5b600083013567ffffffffffffffff81111561401457600080fd5b61402085828601613cc9565b92509250509250929050565b6000806000806040858703121561404257600080fd5b600085013567ffffffffffffffff81111561405c57600080fd5b61406887828801613cc9565b9450945050602085013567ffffffffffffffff81111561408757600080fd5b61409387828801613d3d565b925092505092959194509250565b600080604083850312156140b457600080fd5b600083013567ffffffffffffffff8111156140ce57600080fd5b6140da85828601613d13565b92505060206140eb85828601613d87565b9150509250929050565b60006020828403121561410757600080fd5b600061411584828501613d87565b91505092915050565b60006020828403121561413057600080fd5b600061413e84828501613d9c565b91505092915050565b6000806040838503121561415a57600080fd5b600061416885828601613d9c565b925050602061417985828601613e3a565b9150509250929050565b60006020828403121561419557600080fd5b60006141a384828501613dfb565b91505092915050565b6000602082840312156141be57600080fd5b60006141cc84828501613e25565b91505092915050565b6141de81614ee4565b82525050565b6141ed81614ef6565b82525050565b60006141fe82614e7e565b6142088185614e94565b9350614218818560208601614fa0565b80840191505092915050565b61422d81614f58565b82525050565b61423c81614f14565b82525050565b61424b81614f7c565b82525050565b61425a81614f8e565b82525050565b600061426b82614e89565b6142758185614e9f565b9350614285818560208601614fa0565b61428e816150a4565b840191505092915050565b60006142a6601583614e9f565b91507f546172676574206e6f7420417574686f72697a656400000000000000000000006000830152602082019050919050565b60006142e6600f83614e9f565b91507f57726f6e67204c704164647265737300000000000000000000000000000000006000830152602082019050919050565b6000614326601b83614e9f565b91507f416c7265616479207573696e67207468697320526567697374727900000000006000830152602082019050919050565b6000614366601883614e9f565b91507f446f206e6f742073656e6420455448206469726563746c7900000000000000006000830152602082019050919050565b60006143a6600d83614e9f565b91507f4869676820536c697070616765000000000000000000000000000000000000006000830152602082019050919050565b60006143e6602683614e9f565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061444c601283614e9f565b91507f53656e64696e6720455448206661696c656400000000000000000000000000006000830152602082019050919050565b600061448c601583614e9f565b91507f4572726f72205377617070696e6720546f6b656e7300000000000000000000006000830152602082019050919050565b60006144cc603a83614e9f565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b6000614532601283614e9f565b91507f54656d706f726172696c792050617573656400000000000000000000000000006000830152602082019050919050565b6000614572601d83614e9f565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b60006145b2602683614e9f565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614618601483614e9f565b91507f496e76616c696420496e707574206c656e6774680000000000000000000000006000830152602082019050919050565b6000614658602083614e9f565b91507f436f756c64206e6f742072656365697665207265736572766520746f6b656e736000830152602082019050919050565b6000614698602083614e9f565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006146d8600083614e94565b9150600082019050919050565b60006146f2601d83614e9f565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b6000614732602a83614e9f565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b6000614798603683614e9f565b91507f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008301527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006020830152604082019050919050565b60006147fe601f83614e9f565b91507f5377617070656420546f20496e76616c696420496e7465726d656469617465006000830152602082019050919050565b61483a81614f41565b82525050565b600061484c82846141f3565b915081905092915050565b6000614862826146cb565b9150819050919050565b600060208201905061488160008301846141d5565b92915050565b600060408201905061489c60008301856141d5565b6148a960208301846141d5565b9392505050565b60006080820190506148c560008301876141d5565b6148d260208301866141d5565b6148df60408301856141d5565b6148ec6060830184614831565b95945050505050565b600060608201905061490a60008301866141d5565b61491760208301856141d5565b6149246040830184614831565b949350505050565b600060408201905061494160008301856141d5565b61494e60208301846141e4565b9392505050565b600060408201905061496a60008301856141d5565b6149776020830184614831565b9392505050565b600060208201905061499360008301846141e4565b92915050565b60006020820190506149ae6000830184614224565b92915050565b60006040820190506149c96000830185614224565b6149d66020830184614224565b9392505050565b600060208201905081810360008301526149f78184614260565b905092915050565b60006020820190508181036000830152614a1881614299565b9050919050565b60006020820190508181036000830152614a38816142d9565b9050919050565b60006020820190508181036000830152614a5881614319565b9050919050565b60006020820190508181036000830152614a7881614359565b9050919050565b60006020820190508181036000830152614a9881614399565b9050919050565b60006020820190508181036000830152614ab8816143d9565b9050919050565b60006020820190508181036000830152614ad88161443f565b9050919050565b60006020820190508181036000830152614af88161447f565b9050919050565b60006020820190508181036000830152614b18816144bf565b9050919050565b60006020820190508181036000830152614b3881614525565b9050919050565b60006020820190508181036000830152614b5881614565565b9050919050565b60006020820190508181036000830152614b78816145a5565b9050919050565b60006020820190508181036000830152614b988161460b565b9050919050565b60006020820190508181036000830152614bb88161464b565b9050919050565b60006020820190508181036000830152614bd88161468b565b9050919050565b60006020820190508181036000830152614bf8816146e5565b9050919050565b60006020820190508181036000830152614c1881614725565b9050919050565b60006020820190508181036000830152614c388161478b565b9050919050565b60006020820190508181036000830152614c58816147f1565b9050919050565b6000602082019050614c746000830184614831565b92915050565b6000608082019050614c8f6000830187614831565b614c9c60208301866141d5565b614ca96040830185614251565b614cb660608301846141d5565b95945050505050565b6000604082019050614cd46000830185614831565b614ce16020830184614233565b9392505050565b6000606082019050614cfd6000830186614831565b614d0a6020830185614233565b614d1760408301846141e4565b949350505050565b6000606082019050614d346000830186614831565b614d416020830185614233565b614d4e6040830184614242565b949350505050565b6000608082019050614d6b6000830187614831565b614d786020830186614233565b614d856040830185614242565b614d9260608301846141e4565b95945050505050565b6000604082019050614db06000830185614831565b614dbd6020830184614831565b9392505050565b6000606082019050614dd96000830186614831565b614de66020830185614831565b614df36040830184614242565b949350505050565b6000604051905081810181811067ffffffffffffffff82111715614e2257614e21615075565b5b8060405250919050565b600067ffffffffffffffff821115614e4757614e46615075565b5b602082029050919050565b600067ffffffffffffffff821115614e6d57614e6c615075565b5b602082029050602081019050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000614ebb82614f41565b9150614ec683614f41565b925082821015614ed957614ed8615046565b5b828203905092915050565b6000614eef82614f21565b9050919050565b60008115159050919050565b6000614f0d82614ee4565b9050919050565b600081600f0b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000614f6382614f6a565b9050919050565b6000614f7582614f21565b9050919050565b6000614f8782614f41565b9050919050565b6000614f9982614f41565b9050919050565b60005b83811015614fbe578082015181840152602081019050614fa3565b83811115614fcd576000848401525b50505050565b6000614fde82614f41565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561501157615010615046565b5b600182019050919050565b600061502782614f4b565b915060ff82141561503b5761503a615046565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6150be81614ee4565b81146150c957600080fd5b50565b6150d581614ef6565b81146150e057600080fd5b50565b6150ec81614f02565b81146150f757600080fd5b50565b61510381614f41565b811461510e57600080fd5b50565b61511a81614f4b565b811461512557600080fd5b5056fea264697066735822122062f8911942e941aaec8231109d15e35ed2338f2c2a75c0721ea487fca2ab61b664736f6c63430008000033000000000000000000000000a5d0918610b1183db6c8299243b977b2ef920ce7

Deployed Bytecode

0x6080604052600436106100e15760003560e01c80639735a6341161007f578063dee5b7e011610059578063dee5b7e014610300578063e59533821461033d578063f2fde38b14610366578063f99b277e1461038f57610157565b80639735a634146102715780639779d1a61461029a578063cbd6cfe3146102d757610157565b8063715018a6116100bb578063715018a6146101c757806375f12b21146101de57806389599dce146102095780638da5cb5b1461024657610157565b80631385d24c1461015c578063374b09f8146101735780635ecb16cd1461019e57610157565b36610157573273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161014c90614a5f565b60405180910390fd5b005b600080fd5b34801561016857600080fd5b506101716103b8565b005b34801561017f57600080fd5b506101886104a6565b6040516101959190614999565b60405180910390f35b3480156101aa57600080fd5b506101c560048036038101906101c09190613fe7565b6104cc565b005b3480156101d357600080fd5b506101dc610777565b005b3480156101ea57600080fd5b506101f36108b1565b604051610200919061497e565b60405180910390f35b34801561021557600080fd5b50610230600480360381019061022b9190613ef0565b6108c4565b60405161023d9190614c5f565b60405180910390f35b34801561025257600080fd5b5061025b610c75565b604051610268919061486c565b60405180910390f35b34801561027d57600080fd5b506102986004803603810190610293919061402c565b610c9e565b005b3480156102a657600080fd5b506102c160048036038101906102bc9190613e4f565b610f4e565b6040516102ce919061497e565b60405180910390f35b3480156102e357600080fd5b506102fe60048036038101906102f991906140a1565b610f6e565b005b34801561030c57600080fd5b5061032760048036038101906103229190613ea1565b6112f8565b6040516103349190614c5f565b60405180910390f35b34801561034957600080fd5b50610364600480360381019061035f9190614183565b611c9a565b005b34801561037257600080fd5b5061038d60048036038101906103889190613e4f565b611e6e565b005b34801561039b57600080fd5b506103b660048036038101906103b1919061402c565b612017565b005b6103c06122c7565b73ffffffffffffffffffffffffffffffffffffffff166103de610c75565b73ffffffffffffffffffffffffffffffffffffffff1614610434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042b90614bbf565b60405180910390fd5b600060149054906101000a900460ff1615600060146101000a81548160ff0219169083151502179055507f593eae32baa13087e4ace6c5bdb2bca644d29310634cb44a78f0f2a640c6af0e600060149054906101000a900460ff1660405161049c919061497e565b60405180910390a1565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6104d46122c7565b73ffffffffffffffffffffffffffffffffffffffff166104f2610c75565b73ffffffffffffffffffffffffffffffffffffffff1614610548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053f90614bbf565b60405180910390fd5b60005b8282905081101561077257600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168484848181106105bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906105d19190613e4f565b73ffffffffffffffffffffffffffffffffffffffff161415610606574790506106016105fb610c75565b826122cf565b61075e565b83838381811061063f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906106549190613e4f565b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161068c919061486c565b60206040518083038186803b1580156106a457600080fd5b505afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906141ac565b905061075d6106e9610c75565b82868686818110610723577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906107389190613e4f565b73ffffffffffffffffffffffffffffffffffffffff166123c39092919063ffffffff16565b5b50808061076a90614fd3565b91505061054b565b505050565b61077f6122c7565b73ffffffffffffffffffffffffffffffffffffffff1661079d610c75565b73ffffffffffffffffffffffffffffffffffffffff16146107f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ea90614bbf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600060149054906101000a900460ff1681565b60008060149054906101000a900460ff1615610915576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090c90614b1f565b60405180910390fd5b60008a73ffffffffffffffffffffffffffffffffffffffff1663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561095d57600080fd5b505afa158015610971573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109959190613e78565b90506000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b8d7b6698b6040518263ffffffff1660e01b81526004016109f4919061486c565b60206040518083038186803b158015610a0c57600080fd5b505afa158015610a20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a449190613e78565b90508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ab4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aab90614a1f565b60405180910390fd5b610abe8c8c612449565b506000610acc8d8d85612481565b9050600073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff161415610b1b5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee99505b6000610b6f8c838d8d8c8c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612540565b905088811015610bb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bab90614a7f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff161415610bf857610bf333826122cf565b610c24565b610c2333828c73ffffffffffffffffffffffffffffffffffffffff166123c39092919063ffffffff16565b5b7f227bc9617ebed3986bf46163ed6e33e26e5dbd0e94c8e4b57539f2deb8a6964d338d8c84604051610c5994939291906148b0565b60405180910390a1809450505050509998505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610ca66122c7565b73ffffffffffffffffffffffffffffffffffffffff16610cc4610c75565b73ffffffffffffffffffffffffffffffffffffffff1614610d1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1190614bbf565b60405180910390fd5b818190508484905014610d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5990614b7f565b60405180910390fd5b60005b84849050811015610f4757828282818110610da9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610dbe91906140f5565b60016000878785818110610dfb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610e109190613e4f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f97f1bde783db021cb1dbed0963fb128437eff372ed88708a8eef8d06c1224de4858583818110610ebb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610ed09190613e4f565b848484818110610f09577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610f1e91906140f5565b604051610f2c92919061492c565b60405180910390a18080610f3f90614fd3565b915050610d65565b5050505050565b60016020528060005260406000206000915054906101000a900460ff1681565b610f766122c7565b73ffffffffffffffffffffffffffffffffffffffff16610f94610c75565b73ffffffffffffffffffffffffffffffffffffffff1614610fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe190614bbf565b60405180910390fd5b801561110657600047905060003373ffffffffffffffffffffffffffffffffffffffff164760405161101b90614857565b60006040518083038185875af1925050503d8060008114611058576040519150601f19603f3d011682016040523d82523d6000602084013e61105d565b606091505b50509050806110a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109890614abf565b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff167fab2246061d7b0dd3631d037e3f6da75782ae489eeb9f6af878a4b25df9b07c77836040516110fb9190614c5f565b60405180910390a250505b60005b82518110156112f357600083828151811061114d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161118d919061486c565b60206040518083038186803b1580156111a557600080fd5b505afa1580156111b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111dd91906141ac565b90506112516111ea610c75565b82868581518110611224577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166123c39092919063ffffffff16565b83828151811061128a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff167fab2246061d7b0dd3631d037e3f6da75782ae489eeb9f6af878a4b25df9b07c77826040516112d79190614c5f565b60405180910390a25080806112eb90614fd3565b915050611109565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156113465773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee92505b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e09fa3087876040518363ffffffff1660e01b81526004016113a6929190614887565b604080518083038186803b1580156113bd57600080fd5b505afa1580156113d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f59190614147565b60ff169150915081156118c157600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561159257600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d83a7f67876040518263ffffffff1660e01b81526004016114af919061486c565b60206040518083038186803b1580156114c757600080fd5b505afa1580156114db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ff9190613e78565b73ffffffffffffffffffffffffffffffffffffffff16634fb08c5e85836040518363ffffffff1660e01b8152600401611539929190614d9b565b60206040518083038186803b15801561155157600080fd5b505afa158015611565573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061158991906141ac565b92505050611c93565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166329a552a4876040518263ffffffff1660e01b81526004016115ed919061486c565b60206040518083038186803b15801561160557600080fd5b505afa158015611619573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163d919061411e565b1561178357600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d83a7f67876040518263ffffffff1660e01b815260040161169d919061486c565b60206040518083038186803b1580156116b557600080fd5b505afa1580156116c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ed9190613e78565b73ffffffffffffffffffffffffffffffffffffffff1663c532a774858360016040518463ffffffff1660e01b815260040161172a93929190614ce8565b60206040518083038186803b15801561174257600080fd5b505afa158015611756573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177a91906141ac565b92505050611c93565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d83a7f67876040518263ffffffff1660e01b81526004016117de919061486c565b60206040518083038186803b1580156117f657600080fd5b505afa15801561180a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061182e9190613e78565b73ffffffffffffffffffffffffffffffffffffffff1663cc2b27d785836040518363ffffffff1660e01b8152600401611868929190614cbf565b60206040518083038186803b15801561188057600080fd5b505afa158015611894573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b891906141ac565b92505050611c93565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca4f2803886040518263ffffffff1660e01b815260040161191e919061486c565b60806040518083038186803b15801561193657600080fd5b505afa15801561194a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196e9190613fbe565b9050600080600090505b6004811015611ab757600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bbff1a668483600481106119f8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516040518263ffffffff1660e01b8152600401611a19919061486c565b60206040518083038186803b158015611a3157600080fd5b505afa158015611a45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a699190613e78565b9150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611aa457611ab7565b8080611aaf90614fd3565b915050611978565b5060008873ffffffffffffffffffffffffffffffffffffffff1663cc2b27d78860016040518363ffffffff1660e01b8152600401611af6929190614cbf565b60206040518083038186803b158015611b0e57600080fd5b505afa158015611b22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b4691906141ac565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e09fa30838a6040518363ffffffff1660e01b8152600401611ba5929190614887565b604080518083038186803b158015611bbc57600080fd5b505afa158015611bd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf49190614147565b90508060ff169050809450508173ffffffffffffffffffffffffffffffffffffffff1663cc2b27d782866040518363ffffffff1660e01b8152600401611c3b929190614cbf565b60206040518083038186803b158015611c5357600080fd5b505afa158015611c67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8b91906141ac565b955050505050505b9392505050565b611ca26122c7565b73ffffffffffffffffffffffffffffffffffffffff16611cc0610c75565b73ffffffffffffffffffffffffffffffffffffffff1614611d16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0d90614bbf565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611da7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9e90614a3f565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3bfa22957bb3555c21a718f0461471871bb81b45b9cfad4e41f448914d98d6ad600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051611e629291906149b4565b60405180910390a15050565b611e766122c7565b73ffffffffffffffffffffffffffffffffffffffff16611e94610c75565b73ffffffffffffffffffffffffffffffffffffffff1614611eea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee190614bbf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5190614a9f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61201f6122c7565b73ffffffffffffffffffffffffffffffffffffffff1661203d610c75565b73ffffffffffffffffffffffffffffffffffffffff1614612093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208a90614bbf565b60405180910390fd5b8181905084849050146120db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d290614b7f565b60405180910390fd5b60005b848490508110156122c057828282818110612122577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061213791906140f5565b60036000878785818110612174577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906121899190613e4f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f033f7e0822a03f1a8f7ab142fbb33bf6002f347d8fb02825b45d7c8d1dbd30ab858583818110612234577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906122499190613e4f565b848484818110612282577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061229791906140f5565b6040516122a592919061492c565b60405180910390a180806122b890614fd3565b9150506120de565b5050505050565b600033905090565b80471015612312576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230990614b3f565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161233890614857565b60006040518083038185875af1925050503d8060008114612375576040519150601f19603f3d011682016040523d82523d6000602084013e61237a565b606091505b50509050806123be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b590614aff565b60405180910390fd5b505050565b6124448363a9059cbb60e01b84846040516024016123e2929190614955565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506129c6565b505050565b60006124783330848673ffffffffffffffffffffffffffffffffffffffff16612a8d909392919063ffffffff16565b81905092915050565b60008061248d83612b16565b90508473ffffffffffffffffffffffffffffffffffffffff16635f0f48bd8530600a336040518563ffffffff1660e01b81526004016124cf9493929190614c7a565b602060405180830381600087803b1580156124e957600080fd5b505af11580156124fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252191906141ac565b508061252c84612b16565b6125369190614eb0565b9150509392505050565b6000806000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e09fa308a896040518363ffffffff1660e01b81526004016125a2929190614887565b604080518083038186803b1580156125b957600080fd5b505afa1580156125cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125f19190614147565b60ff1691509150811561267057600061260c8a8a848b612be5565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16141561265b57600097505b612668888883898961307b565b9350506129ba565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca4f28038b6040518263ffffffff1660e01b81526004016126cd919061486c565b60806040518083038186803b1580156126e557600080fd5b505afa1580156126f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061271d9190613fbe565b90506000805b60048160ff16101561295257600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bbff1a66858460ff16600481106127c1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516040518263ffffffff1660e01b81526004016127e2919061486c565b60206040518083038186803b1580156127fa57600080fd5b505afa15801561280e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128329190613e78565b73ffffffffffffffffffffffffffffffffffffffff161461293f57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bbff1a66848360ff16600481106128c7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516040518263ffffffff1660e01b81526004016128e8919061486c565b60206040518083038186803b15801561290057600080fd5b505afa158015612914573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129389190613e78565b9150612952565b808061294a9061501c565b915050612723565b60006129a38d8d8460ff16878660ff1660048110612999577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516134ba565b90506129b383828d8d8d8d612540565b9650505050505b50509695505050505050565b6000612a28826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661375a9092919063ffffffff16565b9050600081511115612a885780806020019051810190612a48919061411e565b612a87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7e90614bff565b60405180910390fd5b5b505050565b612b10846323b872dd60e01b858585604051602401612aae939291906148f5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506129c6565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b5457479050612be0565b8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401612b8d919061486c565b60206040518083038186803b158015612ba557600080fd5b505afa158015612bb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bdd91906141ac565b90505b919050565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d83a7f67876040518263ffffffff1660e01b8152600401612c43919061486c565b60206040518083038186803b158015612c5b57600080fd5b505afa158015612c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c939190613e78565b90506000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b8d7b669886040518263ffffffff1660e01b8152600401612cf2919061486c565b60206040518083038186803b158015612d0a57600080fd5b505afa158015612d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d429190613e78565b9050612d4e8183613772565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612d9d5784612da0565b60005b90506000612dad82612b16565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166329a552a48a6040518263ffffffff1660e01b8152600401612e0a919061486c565b60206040518083038186803b158015612e2257600080fd5b505afa158015612e36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e5a919061411e565b15612ed7578373ffffffffffffffffffffffffffffffffffffffff1663517a55a38989600060016040518563ffffffff1660e01b8152600401612ea09493929190614d56565b600060405180830381600087803b158015612eba57600080fd5b505af1158015612ece573d6000803e3d6000fd5b50505050613010565b600360008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612f9e578373ffffffffffffffffffffffffffffffffffffffff1663f1dc3cc9898960006040518463ffffffff1660e01b8152600401612f6793929190614dc4565b600060405180830381600087803b158015612f8157600080fd5b505af1158015612f95573d6000803e3d6000fd5b5050505061300f565b8373ffffffffffffffffffffffffffffffffffffffff16631a4d01d2898960006040518463ffffffff1660e01b8152600401612fdc93929190614d1f565b600060405180830381600087803b158015612ff657600080fd5b505af115801561300a573d6000803e3d6000fd5b505050505b5b60008161301c84612b16565b6130269190614eb0565b90506000811161306b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306290614b9f565b60405180910390fd5b8095505050505050949350505050565b60008473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156130b9578390506134b1565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161480156131345750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b156131c05773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d856040518263ffffffff1660e01b81526004016131869190614c5f565b600060405180830381600087803b1580156131a057600080fd5b505af11580156131b4573d6000803e3d6000fd5b505050508390506134b1565b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614801561323b575073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b156132bd5773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561329c57600080fd5b505af11580156132b0573d6000803e3d6000fd5b50505050508390506134b1565b60008073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614156132fb57849050613307565b613306878587613861565b5b600061331287612b16565b9050600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166133a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613397906149ff565b60405180910390fd5b60008573ffffffffffffffffffffffffffffffffffffffff1683866040516133c89190614840565b60006040518083038185875af1925050503d8060008114613405576040519150601f19603f3d011682016040523d82523d6000602084013e61340a565b606091505b505090508061344e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161344590614adf565b60405180910390fd5b600061345989612b16565b905082816134679190614eb0565b9450600085116134ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a390614c3f565b60405180910390fd5b505050505b95945050505050565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b8d7b669876040518263ffffffff1660e01b8152600401613518919061486c565b60206040518083038186803b15801561353057600080fd5b505afa158015613544573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135689190613e78565b90506135748187613772565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016135af919061486c565b60206040518083038186803b1580156135c757600080fd5b505afa1580156135db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ff91906141ac565b90508673ffffffffffffffffffffffffffffffffffffffff16631a4d01d2878760006040518463ffffffff1660e01b815260040161363f93929190614d1f565b600060405180830381600087803b15801561365957600080fd5b505af115801561366d573d6000803e3d6000fd5b505050506000818573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016136ad919061486c565b60206040518083038186803b1580156136c557600080fd5b505afa1580156136d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136fd91906141ac565b6137079190614eb0565b90506000811161374c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161374390614b9f565b60405180910390fd5b809350505050949350505050565b606061376984846000856138bd565b90509392505050565b600082905060008173ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016137b4929190614887565b60206040518083038186803b1580156137cc57600080fd5b505afa1580156137e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061380491906141ac565b1115613810575061385d565b61385b827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8373ffffffffffffffffffffffffffffffffffffffff166139d19092919063ffffffff16565b505b5050565b61388d8260008573ffffffffffffffffffffffffffffffffffffffff166139d19092919063ffffffff16565b6138b882828573ffffffffffffffffffffffffffffffffffffffff166139d19092919063ffffffff16565b505050565b606082471015613902576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138f990614b5f565b60405180910390fd5b61390b85613b2f565b61394a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161394190614bdf565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516139739190614840565b60006040518083038185875af1925050503d80600081146139b0576040519150601f19603f3d011682016040523d82523d6000602084013e6139b5565b606091505b50915091506139c5828286613b42565b92505050949350505050565b6000811480613a6a575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401613a18929190614887565b60206040518083038186803b158015613a3057600080fd5b505afa158015613a44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a6891906141ac565b145b613aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613aa090614c1f565b60405180910390fd5b613b2a8363095ea7b360e01b8484604051602401613ac8929190614955565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506129c6565b505050565b600080823b905060008111915050919050565b60608315613b5257829050613ba2565b600083511115613b655782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b9991906149dd565b60405180910390fd5b9392505050565b6000613bbc613bb784614e2c565b614dfb565b90508082856020860282011115613bd257600080fd5b60005b85811015613c025781613be88882613c8d565b845260208401935060208301925050600181019050613bd5565b5050509392505050565b6000613c1f613c1a84614e52565b614dfb565b90508083825260208201905082856020860282011115613c3e57600080fd5b60005b85811015613c6e5781613c548882613c78565b845260208401935060208301925050600181019050613c41565b5050509392505050565b600081359050613c87816150b5565b92915050565b600081519050613c9c816150b5565b92915050565b600082601f830112613cb357600080fd5b6004613cc0848285613ba9565b91505092915050565b60008083601f840112613cdb57600080fd5b8235905067ffffffffffffffff811115613cf457600080fd5b602083019150836020820283011115613d0c57600080fd5b9250929050565b600082601f830112613d2457600080fd5b8135613d34848260208601613c0c565b91505092915050565b60008083601f840112613d4f57600080fd5b8235905067ffffffffffffffff811115613d6857600080fd5b602083019150836020820283011115613d8057600080fd5b9250929050565b600081359050613d96816150cc565b92915050565b600081519050613dab816150cc565b92915050565b60008083601f840112613dc357600080fd5b8235905067ffffffffffffffff811115613ddc57600080fd5b602083019150836001820283011115613df457600080fd5b9250929050565b600081359050613e0a816150e3565b92915050565b600081359050613e1f816150fa565b92915050565b600081519050613e34816150fa565b92915050565b600081519050613e4981615111565b92915050565b600060208284031215613e6157600080fd5b6000613e6f84828501613c78565b91505092915050565b600060208284031215613e8a57600080fd5b6000613e9884828501613c8d565b91505092915050565b600080600060608486031215613eb657600080fd5b6000613ec486828701613c78565b9350506020613ed586828701613c78565b9250506040613ee686828701613e10565b9150509250925092565b60008060008060008060008060006101008a8c031215613f0f57600080fd5b6000613f1d8c828d01613c78565b9950506020613f2e8c828d01613e10565b9850506040613f3f8c828d01613c78565b9750506060613f508c828d01613c78565b9650506080613f618c828d01613c78565b95505060a0613f728c828d01613e10565b94505060c0613f838c828d01613c78565b93505060e08a013567ffffffffffffffff811115613fa057600080fd5b613fac8c828d01613db1565b92509250509295985092959850929598565b600060808284031215613fd057600080fd5b6000613fde84828501613ca2565b91505092915050565b60008060208385031215613ffa57600080fd5b600083013567ffffffffffffffff81111561401457600080fd5b61402085828601613cc9565b92509250509250929050565b6000806000806040858703121561404257600080fd5b600085013567ffffffffffffffff81111561405c57600080fd5b61406887828801613cc9565b9450945050602085013567ffffffffffffffff81111561408757600080fd5b61409387828801613d3d565b925092505092959194509250565b600080604083850312156140b457600080fd5b600083013567ffffffffffffffff8111156140ce57600080fd5b6140da85828601613d13565b92505060206140eb85828601613d87565b9150509250929050565b60006020828403121561410757600080fd5b600061411584828501613d87565b91505092915050565b60006020828403121561413057600080fd5b600061413e84828501613d9c565b91505092915050565b6000806040838503121561415a57600080fd5b600061416885828601613d9c565b925050602061417985828601613e3a565b9150509250929050565b60006020828403121561419557600080fd5b60006141a384828501613dfb565b91505092915050565b6000602082840312156141be57600080fd5b60006141cc84828501613e25565b91505092915050565b6141de81614ee4565b82525050565b6141ed81614ef6565b82525050565b60006141fe82614e7e565b6142088185614e94565b9350614218818560208601614fa0565b80840191505092915050565b61422d81614f58565b82525050565b61423c81614f14565b82525050565b61424b81614f7c565b82525050565b61425a81614f8e565b82525050565b600061426b82614e89565b6142758185614e9f565b9350614285818560208601614fa0565b61428e816150a4565b840191505092915050565b60006142a6601583614e9f565b91507f546172676574206e6f7420417574686f72697a656400000000000000000000006000830152602082019050919050565b60006142e6600f83614e9f565b91507f57726f6e67204c704164647265737300000000000000000000000000000000006000830152602082019050919050565b6000614326601b83614e9f565b91507f416c7265616479207573696e67207468697320526567697374727900000000006000830152602082019050919050565b6000614366601883614e9f565b91507f446f206e6f742073656e6420455448206469726563746c7900000000000000006000830152602082019050919050565b60006143a6600d83614e9f565b91507f4869676820536c697070616765000000000000000000000000000000000000006000830152602082019050919050565b60006143e6602683614e9f565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061444c601283614e9f565b91507f53656e64696e6720455448206661696c656400000000000000000000000000006000830152602082019050919050565b600061448c601583614e9f565b91507f4572726f72205377617070696e6720546f6b656e7300000000000000000000006000830152602082019050919050565b60006144cc603a83614e9f565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b6000614532601283614e9f565b91507f54656d706f726172696c792050617573656400000000000000000000000000006000830152602082019050919050565b6000614572601d83614e9f565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b60006145b2602683614e9f565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614618601483614e9f565b91507f496e76616c696420496e707574206c656e6774680000000000000000000000006000830152602082019050919050565b6000614658602083614e9f565b91507f436f756c64206e6f742072656365697665207265736572766520746f6b656e736000830152602082019050919050565b6000614698602083614e9f565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006146d8600083614e94565b9150600082019050919050565b60006146f2601d83614e9f565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b6000614732602a83614e9f565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b6000614798603683614e9f565b91507f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008301527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006020830152604082019050919050565b60006147fe601f83614e9f565b91507f5377617070656420546f20496e76616c696420496e7465726d656469617465006000830152602082019050919050565b61483a81614f41565b82525050565b600061484c82846141f3565b915081905092915050565b6000614862826146cb565b9150819050919050565b600060208201905061488160008301846141d5565b92915050565b600060408201905061489c60008301856141d5565b6148a960208301846141d5565b9392505050565b60006080820190506148c560008301876141d5565b6148d260208301866141d5565b6148df60408301856141d5565b6148ec6060830184614831565b95945050505050565b600060608201905061490a60008301866141d5565b61491760208301856141d5565b6149246040830184614831565b949350505050565b600060408201905061494160008301856141d5565b61494e60208301846141e4565b9392505050565b600060408201905061496a60008301856141d5565b6149776020830184614831565b9392505050565b600060208201905061499360008301846141e4565b92915050565b60006020820190506149ae6000830184614224565b92915050565b60006040820190506149c96000830185614224565b6149d66020830184614224565b9392505050565b600060208201905081810360008301526149f78184614260565b905092915050565b60006020820190508181036000830152614a1881614299565b9050919050565b60006020820190508181036000830152614a38816142d9565b9050919050565b60006020820190508181036000830152614a5881614319565b9050919050565b60006020820190508181036000830152614a7881614359565b9050919050565b60006020820190508181036000830152614a9881614399565b9050919050565b60006020820190508181036000830152614ab8816143d9565b9050919050565b60006020820190508181036000830152614ad88161443f565b9050919050565b60006020820190508181036000830152614af88161447f565b9050919050565b60006020820190508181036000830152614b18816144bf565b9050919050565b60006020820190508181036000830152614b3881614525565b9050919050565b60006020820190508181036000830152614b5881614565565b9050919050565b60006020820190508181036000830152614b78816145a5565b9050919050565b60006020820190508181036000830152614b988161460b565b9050919050565b60006020820190508181036000830152614bb88161464b565b9050919050565b60006020820190508181036000830152614bd88161468b565b9050919050565b60006020820190508181036000830152614bf8816146e5565b9050919050565b60006020820190508181036000830152614c1881614725565b9050919050565b60006020820190508181036000830152614c388161478b565b9050919050565b60006020820190508181036000830152614c58816147f1565b9050919050565b6000602082019050614c746000830184614831565b92915050565b6000608082019050614c8f6000830187614831565b614c9c60208301866141d5565b614ca96040830185614251565b614cb660608301846141d5565b95945050505050565b6000604082019050614cd46000830185614831565b614ce16020830184614233565b9392505050565b6000606082019050614cfd6000830186614831565b614d0a6020830185614233565b614d1760408301846141e4565b949350505050565b6000606082019050614d346000830186614831565b614d416020830185614233565b614d4e6040830184614242565b949350505050565b6000608082019050614d6b6000830187614831565b614d786020830186614233565b614d856040830185614242565b614d9260608301846141e4565b95945050505050565b6000604082019050614db06000830185614831565b614dbd6020830184614831565b9392505050565b6000606082019050614dd96000830186614831565b614de66020830185614831565b614df36040830184614242565b949350505050565b6000604051905081810181811067ffffffffffffffff82111715614e2257614e21615075565b5b8060405250919050565b600067ffffffffffffffff821115614e4757614e46615075565b5b602082029050919050565b600067ffffffffffffffff821115614e6d57614e6c615075565b5b602082029050602081019050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000614ebb82614f41565b9150614ec683614f41565b925082821015614ed957614ed8615046565b5b828203905092915050565b6000614eef82614f21565b9050919050565b60008115159050919050565b6000614f0d82614ee4565b9050919050565b600081600f0b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000614f6382614f6a565b9050919050565b6000614f7582614f21565b9050919050565b6000614f8782614f41565b9050919050565b6000614f9982614f41565b9050919050565b60005b83811015614fbe578082015181840152602081019050614fa3565b83811115614fcd576000848401525b50505050565b6000614fde82614f41565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561501157615010615046565b5b600182019050919050565b600061502782614f4b565b915060ff82141561503b5761503a615046565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6150be81614ee4565b81146150c957600080fd5b50565b6150d581614ef6565b81146150e057600080fd5b50565b6150ec81614f02565b81146150f757600080fd5b50565b61510381614f41565b811461510e57600080fd5b50565b61511a81614f4b565b811461512557600080fd5b5056fea264697066735822122062f8911942e941aaec8231109d15e35ed2338f2c2a75c0721ea487fca2ab61b664736f6c63430008000033

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

000000000000000000000000a5d0918610b1183db6c8299243b977b2ef920ce7

-----Decoded View---------------
Arg [0] : _curveRegistry (address): 0xa5d0918610b1183Db6c8299243b977B2eF920cE7

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


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.