ETH Price: $3,283.70 (+0.12%)
Gas: 4 Gwei

Contract

0x4ae9e68bD76EBa868be20376eea343e8Dee02077
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Ownersh...128579962021-07-19 15:59:351104 days ago1626710375IN
0x4ae9e68b...8Dee02077
0 ETH0.0010063535
Toggle Contract ...125011582021-05-25 3:45:031159 days ago1621914303IN
0x4ae9e68b...8Dee02077
0 ETH0.0012221746
Zap Out124999082021-05-24 22:59:541159 days ago1621897194IN
0x4ae9e68b...8Dee02077
0 ETH0.0107872452
Zap Out124998522021-05-24 22:46:361159 days ago1621896396IN
0x4ae9e68b...8Dee02077
0 ETH0.0131750855
Zap Out124977442021-05-24 15:16:431160 days ago1621869403IN
0x4ae9e68b...8Dee02077
0 ETH0.0535773550.00000112
Zap Out124968842021-05-24 12:03:211160 days ago1621857801IN
0x4ae9e68b...8Dee02077
0 ETH0.0339943455
Zap Out124965992021-05-24 11:01:091160 days ago1621854069IN
0x4ae9e68b...8Dee02077
0 ETH0.0193831632
Zap Out124965782021-05-24 10:57:371160 days ago1621853857IN
0x4ae9e68b...8Dee02077
0 ETH0.014664433.00000145
Zap Out124964602021-05-24 10:27:181160 days ago1621852038IN
0x4ae9e68b...8Dee02077
0 ETH0.0179599241
Zap Out124958532021-05-24 8:14:001160 days ago1621844040IN
0x4ae9e68b...8Dee02077
0 ETH0.0528059289
Zap Out124954962021-05-24 6:48:051160 days ago1621838885IN
0x4ae9e68b...8Dee02077
0 ETH0.019790731.0100001
Zap Out124954592021-05-24 6:40:441160 days ago1621838444IN
0x4ae9e68b...8Dee02077
0 ETH0.0131274731.01999999
Zap Out124949052021-05-24 4:30:331160 days ago1621830633IN
0x4ae9e68b...8Dee02077
0 ETH0.0072606435.00000112
Zap Out124948802021-05-24 4:24:241160 days ago1621830264IN
0x4ae9e68b...8Dee02077
0 ETH0.0163993440.50000123
Zap Out124941402021-05-24 1:39:261160 days ago1621820366IN
0x4ae9e68b...8Dee02077
0 ETH0.0072302436
Zap Out124940052021-05-24 1:10:401160 days ago1621818640IN
0x4ae9e68b...8Dee02077
0 ETH0.0237737536
Zap Out124939122021-05-24 0:50:441160 days ago1621817444IN
0x4ae9e68b...8Dee02077
0 ETH0.012768158.3
Zap Out124936102021-05-23 23:41:231160 days ago1621813283IN
0x4ae9e68b...8Dee02077
0 ETH0.025827640
Zap Out124935132021-05-23 23:19:231160 days ago1621811963IN
0x4ae9e68b...8Dee02077
0 ETH0.0279630241.00000145
Zap Out124918722021-05-23 17:13:001161 days ago1621789980IN
0x4ae9e68b...8Dee02077
0 ETH0.31345638523
Zap Out124918172021-05-23 17:01:461161 days ago1621789306IN
0x4ae9e68b...8Dee02077
0 ETH0.10579418482
Zap Out124917872021-05-23 16:54:491161 days ago1621788889IN
0x4ae9e68b...8Dee02077
0 ETH0.35947165502
Zap Out124913092021-05-23 15:13:311161 days ago1621782811IN
0x4ae9e68b...8Dee02077
0 ETH0.0452779107
Zap Out124912052021-05-23 14:53:481161 days ago1621781628IN
0x4ae9e68b...8Dee02077
0 ETH0.1019642225.6
Zap Out124910882021-05-23 14:25:041161 days ago1621779904IN
0x4ae9e68b...8Dee02077
0 ETH0.08335791155
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
125008792021-05-25 2:44:321159 days ago1621910672
0x4ae9e68b...8Dee02077
0.0436224 ETH
125008792021-05-25 2:44:321159 days ago1621910672
0x4ae9e68b...8Dee02077
0.0436224 ETH
125008402021-05-25 2:37:421159 days ago1621910262
0x4ae9e68b...8Dee02077
0.12840307 ETH
125008402021-05-25 2:37:421159 days ago1621910262
0x4ae9e68b...8Dee02077
0.12840307 ETH
125005272021-05-25 1:18:381159 days ago1621905518
0x4ae9e68b...8Dee02077
0.55369707 ETH
125005272021-05-25 1:18:381159 days ago1621905518
0x4ae9e68b...8Dee02077
0.55369707 ETH
124991752021-05-24 20:23:241160 days ago1621887804
0x4ae9e68b...8Dee02077
0.71695668 ETH
124991752021-05-24 20:23:241160 days ago1621887804
0x4ae9e68b...8Dee02077
0.71695668 ETH
124988432021-05-24 19:11:551160 days ago1621883515
0x4ae9e68b...8Dee02077
6.05958352 ETH
124988432021-05-24 19:11:551160 days ago1621883515
0x4ae9e68b...8Dee02077
6.05958352 ETH
124981892021-05-24 16:44:531160 days ago1621874693
0x4ae9e68b...8Dee02077
60.66033687 ETH
124981892021-05-24 16:44:531160 days ago1621874693
0x4ae9e68b...8Dee02077
60.66033687 ETH
124981632021-05-24 16:40:011160 days ago1621874401
0x4ae9e68b...8Dee02077
24.73670515 ETH
124981632021-05-24 16:40:011160 days ago1621874401
0x4ae9e68b...8Dee02077
24.73670515 ETH
124971822021-05-24 13:13:531160 days ago1621862033
0x4ae9e68b...8Dee02077
256.54685912 ETH
124971822021-05-24 13:13:531160 days ago1621862033
0x4ae9e68b...8Dee02077
256.54685912 ETH
124968842021-05-24 12:03:211160 days ago1621857801
0x4ae9e68b...8Dee02077
42.64887334 ETH
124968842021-05-24 12:03:211160 days ago1621857801
0x4ae9e68b...8Dee02077
42.64887334 ETH
124965992021-05-24 11:01:091160 days ago1621854069
0x4ae9e68b...8Dee02077
1.8766534 ETH
124965992021-05-24 11:01:091160 days ago1621854069
0x4ae9e68b...8Dee02077
1.8766534 ETH
124965992021-05-24 11:01:091160 days ago1621854069
0x4ae9e68b...8Dee02077
0.08558439 ETH
124965992021-05-24 11:01:091160 days ago1621854069
0x4ae9e68b...8Dee02077
0.08558439 ETH
124965782021-05-24 10:57:371160 days ago1621853857
0x4ae9e68b...8Dee02077
0.06538985 ETH
124965782021-05-24 10:57:371160 days ago1621853857
0x4ae9e68b...8Dee02077
0.06538985 ETH
124964212021-05-24 10:19:171160 days ago1621851557
0x4ae9e68b...8Dee02077
11.19927427 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Curve_ZapOut_General_V4_0_1

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv2 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-04-24
*/

// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗
// ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║
// ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║
// ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║
// ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██║░░░░░██║
// ╚══════╝╚═╝░░╚═╝╚═╝░░░░░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝╚═╝░░░░░╚═╝
// Copyright (C) 2021 zapper

// 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
///@notice This contract removes liquidity from Curve pools

// File: oz/GSN/Context.sol

pragma solidity ^0.5.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 GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

// File: oz/ownership/Ownable.sol

pragma solidity ^0.5.0;

/**
 * @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.
 *
 * 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.
 */
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() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: oz/token/ERC20/IERC20.sol

pragma solidity ^0.5.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: oz/math/SafeMath.sol

pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: oz/utils/Address.sol

pragma solidity ^0.5.5;

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;

        bytes32 accountHash =
            0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account)
        internal
        pure
        returns (address payable)
    {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(
            address(this).balance >= amount,
            "Address: insufficient balance"
        );

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

// File: oz/token/ERC20/SafeERC20.sol

pragma solidity ^0.5.0;

/**
 * @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 ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

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

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

    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).add(value);
        callOptionalReturn(
            token,
            abi.encodeWithSelector(
                token.approve.selector,
                spender,
                newAllowance
            )
        );
    }

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "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: contracts/_base/ZapBaseV1.sol

pragma solidity ^0.5.7;

contract ZapBaseV1 is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    bool public stopped = false;

    // if true, goodwill is not deducted
    mapping(address => bool) public feeWhitelist;

    uint256 public goodwill;
    // % share of goodwill (0-100 %)
    uint256 affiliateSplit;
    // restrict affiliates
    mapping(address => bool) public affiliates;
    // affiliate => token => amount
    mapping(address => mapping(address => uint256)) public affiliateBalance;
    // token => amount
    mapping(address => uint256) public totalAffiliateBalance;

    address internal constant ETHAddress =
        0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    constructor(uint256 _goodwill, uint256 _affiliateSplit) public {
        goodwill = _goodwill;
        affiliateSplit = _affiliateSplit;
    }

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

    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, uint256(-1));
        }
    }

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

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

    function set_feeWhitelist(address zapAddress, bool status)
        external
        onlyOwner
    {
        feeWhitelist[zapAddress] = status;
    }

    function set_new_goodwill(uint256 _new_goodwill) public onlyOwner {
        require(
            _new_goodwill >= 0 && _new_goodwill <= 100,
            "GoodWill Value not allowed"
        );
        goodwill = _new_goodwill;
    }

    function set_new_affiliateSplit(uint256 _new_affiliateSplit)
        external
        onlyOwner
    {
        require(
            _new_affiliateSplit <= 100,
            "Affiliate Split Value not allowed"
        );
        affiliateSplit = _new_affiliateSplit;
    }

    function set_affiliate(address _affiliate, bool _status)
        external
        onlyOwner
    {
        affiliates[_affiliate] = _status;
    }

    ///@notice Withdraw goodwill share, retaining affilliate share
    function withdrawTokens(address[] calldata tokens) external onlyOwner {
        for (uint256 i = 0; i < tokens.length; i++) {
            uint256 qty;

            if (tokens[i] == ETHAddress) {
                qty = address(this).balance.sub(
                    totalAffiliateBalance[tokens[i]]
                );
                Address.sendValue(Address.toPayable(owner()), qty);
            } else {
                qty = IERC20(tokens[i]).balanceOf(address(this)).sub(
                    totalAffiliateBalance[tokens[i]]
                );
                IERC20(tokens[i]).safeTransfer(owner(), qty);
            }
        }
    }

    ///@notice Withdraw affilliate share, retaining goodwill share
    function affilliateWithdraw(address[] calldata tokens) external {
        uint256 tokenBal;
        for (uint256 i = 0; i < tokens.length; i++) {
            tokenBal = affiliateBalance[msg.sender][tokens[i]];
            affiliateBalance[msg.sender][tokens[i]] = 0;
            totalAffiliateBalance[tokens[i]] = totalAffiliateBalance[tokens[i]]
                .sub(tokenBal);

            if (tokens[i] == ETHAddress) {
                Address.sendValue(msg.sender, tokenBal);
            } else {
                IERC20(tokens[i]).safeTransfer(msg.sender, tokenBal);
            }
        }
    }

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

// File: contracts/_base/ZapOutBaseV2.sol

pragma solidity ^0.5.7;

contract ZapOutBaseV2_0_1 is ZapBaseV1 {
    function _pullTokens(
        address token,
        uint256 amount,
        bool shouldSellEntireBalance
    ) internal returns (uint256) {
        if (shouldSellEntireBalance) {
            require(
                Address.isContract(msg.sender),
                "ERR: shouldSellEntireBalance is true for EOA"
            );

            IERC20 _token = IERC20(token);
            uint256 balance = _token.balanceOf(msg.sender);
            _token.safeTransferFrom(msg.sender, address(this), balance);

            return balance;
        } else {
            IERC20(token).safeTransferFrom(msg.sender, address(this), amount);

            return amount;
        }
    }

    function _subtractGoodwill(
        address token,
        uint256 amount,
        address affiliate,
        bool enableGoodwill
    ) internal returns (uint256 totalGoodwillPortion) {
        bool whitelisted = feeWhitelist[msg.sender];
        if (enableGoodwill && !whitelisted && goodwill > 0) {
            totalGoodwillPortion = SafeMath.div(
                SafeMath.mul(amount, goodwill),
                10000
            );

            if (affiliates[affiliate]) {
                if (token == address(0)) {
                    token = ETHAddress;
                }

                uint256 affiliatePortion =
                    totalGoodwillPortion.mul(affiliateSplit).div(100);
                affiliateBalance[affiliate][token] = affiliateBalance[
                    affiliate
                ][token]
                    .add(affiliatePortion);
                totalAffiliateBalance[token] = totalAffiliateBalance[token].add(
                    affiliatePortion
                );
            }
        }
    }
}

// File: contracts/Curve/Curve_Registry_V2.sol

// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗
// ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║
// ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║
// ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║
// ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██║░░░░░██║
// ╚══════╝╚═╝░░╚═╝╚═╝░░░░░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝╚═╝░░░░░╚═╝
// Copyright (C) 2020 zapper

// 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
///@notice Registry for Curve Pools with Utility functions.

pragma solidity ^0.5.7;

interface ICurveAddressProvider {
    function get_registry() external view returns (address);

    function get_address(uint256 _id) external view returns (address);
}

interface ICurveRegistry {
    function get_pool_from_lp_token(address lpToken)
        external
        view
        returns (address);

    function get_lp_token(address swapAddress) external view returns (address);

    function get_n_coins(address _pool)
        external
        view
        returns (uint256[2] memory);

    function get_coins(address _pool) external view returns (address[8] memory);

    function get_underlying_coins(address _pool)
        external
        view
        returns (address[8] memory);
}

interface ICurveFactoryRegistry {
    function get_n_coins(address _pool)
        external
        view
        returns (uint256, uint256);

    function get_coins(address _pool) external view returns (address[2] memory);

    function get_underlying_coins(address _pool)
        external
        view
        returns (address[8] memory);
}

contract Curve_Registry_V2 is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    ICurveAddressProvider private constant CurveAddressProvider =
        ICurveAddressProvider(0x0000000022D53366457F9d5E68Ec105046FC4383);
    ICurveRegistry public CurveRegistry;

    ICurveFactoryRegistry public FactoryRegistry;

    address private constant wbtcToken =
        0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599;
    address private constant sbtcCrvToken =
        0x075b1bb99792c9E1041bA13afEf80C91a1e70fB3;
    address internal constant ETHAddress =
        0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    mapping(address => bool) public shouldAddUnderlying;
    mapping(address => address) private depositAddresses;

    constructor() public {
        CurveRegistry = ICurveRegistry(CurveAddressProvider.get_registry());
        FactoryRegistry = ICurveFactoryRegistry(
            CurveAddressProvider.get_address(3)
        );
    }

    function isCurvePool(address swapAddress) public view returns (bool) {
        if (CurveRegistry.get_lp_token(swapAddress) != address(0)) {
            return true;
        }
        return false;
    }

    function isFactoryPool(address swapAddress) public view returns (bool) {
        if (FactoryRegistry.get_coins(swapAddress)[0] != address(0)) {
            return true;
        }
        return false;
    }

    /**
    @notice This function is used to get the curve pool deposit address
    @notice The deposit address is used for pools with wrapped (c, y) tokens
    @param swapAddress Curve swap address for the pool
    @return curve pool deposit address or the swap address not mapped
    */
    function getDepositAddress(address swapAddress)
        external
        view
        returns (address depositAddress)
    {
        depositAddress = depositAddresses[swapAddress];
        if (depositAddress == address(0)) return swapAddress;
    }

    /**
    @notice This function is used to get the curve pool swap address
    @notice The token and swap address is the same for metapool factory pools
    @param swapAddress Curve swap address for the pool
    @return curve pool swap address or address(0) if pool doesnt exist
    */
    function getSwapAddress(address tokenAddress)
        external
        view
        returns (address swapAddress)
    {
        swapAddress = CurveRegistry.get_pool_from_lp_token(tokenAddress);
        if (swapAddress != address(0)) {
            return swapAddress;
        }
        if (isFactoryPool(swapAddress)) {
            return tokenAddress;
        }
        return address(0);
    }

    /**
    @notice This function is used to check the curve pool token address
    @notice The token and swap address is the same for metapool factory pools
    @param swapAddress Curve swap address for the pool
    @return curve pool token address or address(0) if pool doesnt exist
    */
    function getTokenAddress(address swapAddress)
        external
        view
        returns (address tokenAddress)
    {
        tokenAddress = CurveRegistry.get_lp_token(swapAddress);
        if (tokenAddress != address(0)) {
            return tokenAddress;
        }
        if (isFactoryPool(swapAddress)) {
            return swapAddress;
        }
        return address(0);
    }

    /**
    @notice Checks the number of non-underlying tokens in a pool
    @param swapAddress Curve swap address for the pool
    @return number of underlying tokens in the pool
    */
    function getNumTokens(address swapAddress) public view returns (uint256) {
        if (isCurvePool(swapAddress)) {
            return CurveRegistry.get_n_coins(swapAddress)[0];
        } else {
            (uint256 numTokens, ) = FactoryRegistry.get_n_coins(swapAddress);
            return numTokens;
        }
    }

    /**
    @notice This function is used to check if the curve pool is a metapool
    @notice all factory pools are metapools
    @param swapAddress Curve swap address for the pool
    @return true if the pool is a metapool, false otherwise
    */
    function isMetaPool(address swapAddress) public view returns (bool) {
        if (isCurvePool(swapAddress)) {
            uint256[2] memory poolTokenCounts =
                CurveRegistry.get_n_coins(swapAddress);
            if (poolTokenCounts[0] == poolTokenCounts[1]) return false;
            else return true;
        }
        if (isFactoryPool(swapAddress)) return true;
    }

    /**
    @notice This function returns an array of underlying pool token addresses
    @param swapAddress Curve swap address for the pool
    @return returns 4 element array containing the addresses of the pool tokens (0 address if pool contains < 4 tokens)
    */
    function getPoolTokens(address swapAddress)
        public
        view
        returns (address[4] memory poolTokens)
    {
        if (isMetaPool(swapAddress)) {
            if (isFactoryPool(swapAddress)) {
                address[2] memory poolUnderlyingCoins =
                    FactoryRegistry.get_coins(swapAddress);
                for (uint256 i = 0; i < 2; i++) {
                    poolTokens[i] = poolUnderlyingCoins[i];
                }
            } else {
                address[8] memory poolUnderlyingCoins =
                    CurveRegistry.get_coins(swapAddress);
                for (uint256 i = 0; i < 2; i++) {
                    poolTokens[i] = poolUnderlyingCoins[i];
                }
            }

            return poolTokens;
        } else {
            address[8] memory poolUnderlyingCoins;
            if (isBtcPool(swapAddress) && !isMetaPool(swapAddress)) {
                poolUnderlyingCoins = CurveRegistry.get_coins(swapAddress);
            } else {
                poolUnderlyingCoins = CurveRegistry.get_underlying_coins(
                    swapAddress
                );
            }
            for (uint256 i = 0; i < 4; i++) {
                poolTokens[i] = poolUnderlyingCoins[i];
            }
        }
    }

    /**
    @notice This function checks if the curve pool contains WBTC
    @param swapAddress Curve swap address for the pool
    @return true if the pool contains WBTC, false otherwise
    */
    function isBtcPool(address swapAddress) public view returns (bool) {
        address[8] memory poolTokens = CurveRegistry.get_coins(swapAddress);
        for (uint256 i = 0; i < 4; i++) {
            if (poolTokens[i] == wbtcToken || poolTokens[i] == sbtcCrvToken)
                return true;
        }
        return false;
    }

    /**
    @notice This function checks if the curve pool contains ETH
    @param swapAddress Curve swap address for the pool
    @return true if the pool contains ETH, false otherwise
    */
    function isEthPool(address swapAddress) external view returns (bool) {
        address[8] memory poolTokens = CurveRegistry.get_coins(swapAddress);
        for (uint256 i = 0; i < 4; i++) {
            if (poolTokens[i] == ETHAddress) {
                return true;
            }
        }
        return false;
    }

    /**
    @notice This function is used to check if the pool contains the token
    @param swapAddress Curve swap address for the pool
    @param tokenContractAddress contract address of the token
    @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
    */
    function isUnderlyingToken(
        address swapAddress,
        address tokenContractAddress
    ) external view returns (bool, uint256) {
        address[4] memory poolTokens = getPoolTokens(swapAddress);
        for (uint256 i = 0; i < 4; i++) {
            if (poolTokens[i] == address(0)) return (false, 0);
            if (poolTokens[i] == tokenContractAddress) return (true, i);
        }
    }

    /**
    @notice Updates to the latest curve registry from the address provider
    */
    function update_curve_registry() external onlyOwner {
        address new_address = CurveAddressProvider.get_registry();

        require(address(CurveRegistry) != new_address, "Already updated");

        CurveRegistry = ICurveRegistry(new_address);
    }

    /**
    @notice Updates to the latest curve registry from the address provider
    */
    function update_factory_registry() external onlyOwner {
        address new_address = CurveAddressProvider.get_address(3);

        require(address(FactoryRegistry) != new_address, "Already updated");

        FactoryRegistry = ICurveFactoryRegistry(new_address);
    }

    /**
    @notice Add new pools which use the _use_underlying bool
    @param swapAddresses Curve swap addresses for the pool
    @param addUnderlying True if underlying tokens are always added
    */
    function updateShouldAddUnderlying(
        address[] calldata swapAddresses,
        bool[] calldata addUnderlying
    ) external onlyOwner {
        require(
            swapAddresses.length == addUnderlying.length,
            "Mismatched arrays"
        );
        for (uint256 i = 0; i < swapAddresses.length; i++) {
            shouldAddUnderlying[swapAddresses[i]] = addUnderlying[i];
        }
    }

    /**
    @notice Add new pools which use uamounts for add_liquidity
    @param swapAddresses Curve swap addresses to map from
    @param _depositAddresses Curve deposit addresses to map to
    */
    function updateDepositAddresses(
        address[] calldata swapAddresses,
        address[] calldata _depositAddresses
    ) external onlyOwner {
        require(
            swapAddresses.length == _depositAddresses.length,
            "Mismatched arrays"
        );
        for (uint256 i = 0; i < swapAddresses.length; i++) {
            depositAddresses[swapAddresses[i]] = _depositAddresses[i];
        }
    }

    /**
    //@notice Add new pools which use the _use_underlying bool
    */
    function withdrawTokens(address[] calldata tokens) external onlyOwner {
        for (uint256 i = 0; i < tokens.length; i++) {
            uint256 qty;

            if (tokens[i] == ETHAddress) {
                qty = address(this).balance;
                Address.sendValue(Address.toPayable(owner()), qty);
            } else {
                qty = IERC20(tokens[i]).balanceOf(address(this));
                IERC20(tokens[i]).safeTransfer(owner(), qty);
            }
        }
    }
}

// File: contracts/Curve/Curve_ZapOut_General_V4.sol

pragma solidity ^0.5.7;

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 calc_withdraw_one_coin(uint256 tokenAmount, int128 index)
        external
        view
        returns (uint256);
}

contract Curve_ZapOut_General_V4_0_1 is ZapOutBaseV2_0_1 {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    Curve_Registry_V2 public curveReg;

    constructor(
        Curve_Registry_V2 _curveRegistry,
        uint256 _goodwill,
        uint256 _affiliateSplit
    ) public ZapBaseV1(_goodwill, _affiliateSplit) {
        curveReg = _curveRegistry;
    }

    event zapOut(
        address sender,
        address pool,
        address token,
        uint256 tokensRec
    );

    /**
    @notice This method removes the liquidity from curve pools to ETH/ERC tokens
    @param swapAddress indicates Curve swap address for the pool
    @param incomingCrv indicates the amount of lp tokens to remove
    @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 Excecution target for the first swap
    @param _swapCallData DEX quote data
    @param affiliate Affiliate address to share fees
    @param shouldSellEntireBalance True if incomingCrv is determined at execution time (i.e. contract is caller)
    @return ToTokensBought- indicates the amount of toTokens received
     */
    function ZapOut(
        address swapAddress,
        uint256 incomingCrv,
        address intermediateToken,
        address toToken,
        uint256 minToTokens,
        address _swapTarget,
        bytes calldata _swapCallData,
        address affiliate,
        bool shouldSellEntireBalance
    ) external stopInEmergency returns (uint256 ToTokensBought) {
        address poolTokenAddress = curveReg.getTokenAddress(swapAddress);

        // get lp tokens
        incomingCrv = _pullTokens(
            poolTokenAddress,
            incomingCrv,
            shouldSellEntireBalance
        );

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

        // perform zapOut
        ToTokensBought = _zapOut(
            swapAddress,
            incomingCrv,
            intermediateToken,
            toToken,
            _swapTarget,
            _swapCallData
        );
        require(ToTokensBought >= minToTokens, "High Slippage");

        uint256 totalGoodwillPortion;

        // Transfer tokens
        if (toToken == address(0)) {
            totalGoodwillPortion = _subtractGoodwill(
                ETHAddress,
                ToTokensBought,
                affiliate,
                true
            );
            Address.sendValue(
                msg.sender,
                ToTokensBought.sub(totalGoodwillPortion)
            );
        } else {
            totalGoodwillPortion = _subtractGoodwill(
                toToken,
                ToTokensBought,
                affiliate,
                true
            );

            IERC20(toToken).safeTransfer(
                msg.sender,
                ToTokensBought.sub(totalGoodwillPortion)
            );
        }

        emit zapOut(msg.sender, swapAddress, toToken, ToTokensBought);

        return ToTokensBought.sub(totalGoodwillPortion);
    }

    function _zapOut(
        address swapAddress,
        uint256 incomingCrv,
        address intermediateToken,
        address toToken,
        address _swapTarget,
        bytes memory _swapCallData
    ) internal returns (uint256 ToTokensBought) {
        (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
            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 tokensReceived) {
        require(incomingCrv > 0, "Insufficient lp tokens");

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

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

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

    /**
    @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 tokensReceived) {
        require(incomingCrv > 0, "Insufficient lp tokens");

        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(index),
                0,
                true
            );
        } else {
            ICurveSwap(depositAddress).remove_liquidity_one_coin(
                incomingCrv,
                int128(index),
                0
            );
        }

        tokensReceived = _getBalance(balanceToken).sub(iniTokenBal);

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

    /**
    @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 Excecution 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;
        uint256 valueToSend;
        if (_fromTokenAddress == ETHAddress || _fromTokenAddress == address(0))
            valueToSend = _amount;
        else _approveToken(_fromTokenAddress, _swapTarget);

        uint256 iniBal = _getBalance(_toTokenAddress);
        (bool success, ) = _swapTarget.call.value(valueToSend)(_swapCallData);
        require(success, "Error Swapping Tokens");
        uint256 finalBal = _getBalance(_toTokenAddress);

        amountBought = finalBal.sub(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) {
            return
                ICurveSwap(curveReg.getDepositAddress(swapAddress))
                    .calc_withdraw_one_coin(liquidity, int128(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, 1);

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract Curve_Registry_V2","name":"_curveRegistry","type":"address"},{"internalType":"uint256","name":"_goodwill","type":"uint256"},{"internalType":"uint256","name":"_affiliateSplit","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"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":"zapOut","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[{"internalType":"address","name":"swapAddress","type":"address"},{"internalType":"uint256","name":"incomingCrv","type":"uint256"},{"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"},{"internalType":"address","name":"affiliate","type":"address"},{"internalType":"bool","name":"shouldSellEntireBalance","type":"bool"}],"name":"ZapOut","outputs":[{"internalType":"uint256","name":"ToTokensBought","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"affiliateBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"affiliates","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"affilliateWithdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"curveReg","outputs":[{"internalType":"contract Curve_Registry_V2","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"feeWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"goodwill","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"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"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_affiliate","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"set_affiliate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"zapAddress","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"set_feeWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_new_affiliateSplit","type":"uint256"}],"name":"set_new_affiliateSplit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_new_goodwill","type":"uint256"}],"name":"set_new_goodwill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"toggleContractActive","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalAffiliateBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract Curve_Registry_V2","name":"newCurveRegistry","type":"address"}],"name":"updateCurveRegistry","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"withdrawTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526000805460ff60a01b191690553480156200001e57600080fd5b5060405162002f3138038062002f31833981810160405260608110156200004457600080fd5b5080516020820151604090920151909190818160006200006c6001600160e01b03620000e716565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506002919091556003555050600780546001600160a01b0319166001600160a01b0392909216919091179055620000eb565b3390565b612e3680620000fb6000396000f3fe60806040526004361061012a5760003560e01c80635ecb16cd116100ab578063d408f6571161006f578063d408f65714610480578063d8f6eb5b146104b3578063dee5b7e014610577578063e5953382146105ba578063f2fde38b146105ed578063fbec27bf146106205761012a565b80635ecb16cd146103af578063715018a61461042c57806375f12b21146104415780638da5cb5b146104565780638f32d59b1461046b5761012a565b8063374b09f8116100f2578063374b09f8146102bd5780633ff428c7146102ee5780634f51e29414610329578063550bfa56146103705780635de0398e1461039a5761012a565b806301e980d4146101815780630dc9de85146101ab5780631385d24c146102285780631781261f1461023d57806318b135e31461028a575b3332141561017f576040805162461bcd60e51b815260206004820152601860248201527f446f206e6f742073656e6420455448206469726563746c790000000000000000604482015290519081900360640190fd5b005b34801561018d57600080fd5b5061017f600480360360208110156101a457600080fd5b503561065b565b3480156101b757600080fd5b5061017f600480360360208110156101ce57600080fd5b8101906020810181356401000000008111156101e957600080fd5b8201836020820111156101fb57600080fd5b8035906020019184602083028401116401000000008311171561021d57600080fd5b5090925090506106e7565b34801561023457600080fd5b5061017f6108c7565b34801561024957600080fd5b506102786004803603604081101561026057600080fd5b506001600160a01b038135811691602001351661092f565b60408051918252519081900360200190f35b34801561029657600080fd5b50610278600480360360208110156102ad57600080fd5b50356001600160a01b031661094c565b3480156102c957600080fd5b506102d261095e565b604080516001600160a01b039092168252519081900360200190f35b3480156102fa57600080fd5b5061017f6004803603604081101561031157600080fd5b506001600160a01b038135169060200135151561096d565b34801561033557600080fd5b5061035c6004803603602081101561034c57600080fd5b50356001600160a01b03166109df565b604080519115158252519081900360200190f35b34801561037c57600080fd5b5061017f6004803603602081101561039357600080fd5b50356109f4565b3480156103a657600080fd5b50610278610a96565b3480156103bb57600080fd5b5061017f600480360360208110156103d257600080fd5b8101906020810181356401000000008111156103ed57600080fd5b8201836020820111156103ff57600080fd5b8035906020019184602083028401116401000000008311171561042157600080fd5b509092509050610a9c565b34801561043857600080fd5b5061017f610c9f565b34801561044d57600080fd5b5061035c610d30565b34801561046257600080fd5b506102d2610d40565b34801561047757600080fd5b5061035c610d4f565b34801561048c57600080fd5b5061035c600480360360208110156104a357600080fd5b50356001600160a01b0316610d73565b3480156104bf57600080fd5b5061027860048036036101208110156104d757600080fd5b6001600160a01b0382358116926020810135926040820135831692606083013581169260808101359260a08201359092169181019060e0810160c082013564010000000081111561052757600080fd5b82018360208201111561053957600080fd5b8035906020019184600183028401116401000000008311171561055b57600080fd5b91935091506001600160a01b0381351690602001351515610d88565b34801561058357600080fd5b506102786004803603606081101561059a57600080fd5b506001600160a01b0381358116916020810135909116906040013561104b565b3480156105c657600080fd5b5061017f600480360360208110156105dd57600080fd5b50356001600160a01b03166114ef565b3480156105f957600080fd5b5061017f6004803603602081101561061057600080fd5b50356001600160a01b03166115bb565b34801561062c57600080fd5b5061017f6004803603604081101561064357600080fd5b506001600160a01b038135169060200135151561160e565b610663610d4f565b6106a2576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b60648111156106e25760405162461bcd60e51b8152600401808060200182810382526021815260200180612d356021913960400191505060405180910390fd5b600355565b6000805b828110156108c1573360009081526005602052604081209085858481811061070f57fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020549150600060056000336001600160a01b03166001600160a01b03168152602001908152602001600020600086868581811061077757fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020819055506107fe82600660008787868181106107bf57fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b031681526020019081526020016000205461168090919063ffffffff16565b6006600086868581811061080e57fe5b602090810292909201356001600160a01b03168352508101919091526040016000205573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84848381811061085257fe5b905060200201356001600160a01b03166001600160a01b031614156108805761087b33836116cb565b6108b9565b6108b9338386868581811061089157fe5b905060200201356001600160a01b03166001600160a01b03166117b09092919063ffffffff16565b6001016106eb565b50505050565b6108cf610d4f565b61090e576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b600560209081526000928352604080842090915290825290205481565b60066020526000908152604090205481565b6007546001600160a01b031681565b610975610d4f565b6109b4576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b60046020526000908152604090205460ff1681565b6109fc610d4f565b610a3b576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b6064811115610a91576040805162461bcd60e51b815260206004820152601a60248201527f476f6f6457696c6c2056616c7565206e6f7420616c6c6f776564000000000000604482015290519081900360640190fd5b600255565b60025481565b610aa4610d4f565b610ae3576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b60005b81811015610c9a57600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee848484818110610b1157fe5b905060200201356001600160a01b03166001600160a01b03161415610ba357610b8360066000868686818110610b4357fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020544761168090919063ffffffff16565b9050610b9e610b98610b93610d40565b611802565b826116cb565b610c91565b610c7760066000868686818110610bb657fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002054858585818110610bf357fe5b604080516370a0823160e01b81523060048201529051602092830294909401356001600160a01b0316936370a08231935060248083019392829003018186803b158015610c3f57600080fd5b505afa158015610c53573d6000803e3d6000fd5b505050506040513d6020811015610c6957600080fd5b50519063ffffffff61168016565b9050610c91610c84610d40565b8286868681811061089157fe5b50600101610ae6565b505050565b610ca7610d4f565b610ce6576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600054600160a01b900460ff1681565b6000546001600160a01b031690565b600080546001600160a01b0316610d64611809565b6001600160a01b031614905090565b60016020526000908152604090205460ff1681565b60008054600160a01b900460ff1615610ddd576040805162461bcd60e51b815260206004820152601260248201527115195b5c1bdc985c9a5b1e4814185d5cd95960721b604482015290519081900360640190fd5b6007546040805163b8d7b66960e01b81526001600160a01b038e811660048301529151600093929092169163b8d7b66991602480820192602092909190829003018186803b158015610e2e57600080fd5b505afa158015610e42573d6000803e3d6000fd5b505050506040513d6020811015610e5857600080fd5b50519050610e67818c8561180d565b9a506001600160a01b038a16610e8f5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee99505b610ed38c8c8c8c8b8b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061191892505050565b915087821015610f1a576040805162461bcd60e51b815260206004820152600d60248201526c4869676820536c69707061676560981b604482015290519081900360640190fd5b60006001600160a01b038a16610f6b57610f4b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84876001611c30565b9050610f6633610f61858463ffffffff61168016565b6116cb565b610fa5565b610f788a84876001611c30565b9050610fa533610f8e858463ffffffff61168016565b6001600160a01b038d16919063ffffffff6117b016565b7ff2d3e32195f8631c70e1d996c9bd5d4a3369d0580786dcd662bf13139310355d338e8c8660405180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b03168152602001836001600160a01b03166001600160a01b0316815260200182815260200194505050505060405180910390a161103a838263ffffffff61168016565b9d9c50505050505050505050505050565b60006001600160a01b0383166110735773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee92505b600754604080516301e09fa360e41b81526001600160a01b038781166004830152868116602483015282516000948594921692631e09fa30926044808301939192829003018186803b1580156110c857600080fd5b505afa1580156110dc573d6000803e3d6000fd5b505050506040513d60408110156110f257600080fd5b5080516020909101519092509050811561120a576007546040805163d83a7f6760e01b81526001600160a01b0389811660048301529151919092169163d83a7f67916024808301926020929190829003018186803b15801561115357600080fd5b505afa158015611167573d6000803e3d6000fd5b505050506040513d602081101561117d57600080fd5b50516040805163cc2b27d760e01b815260048101879052600f84810b900b602482015290516001600160a01b039092169163cc2b27d791604480820192602092909190829003018186803b1580156111d457600080fd5b505afa1580156111e8573d6000803e3d6000fd5b505050506040513d60208110156111fe57600080fd5b505192506114e8915050565b611212612c95565b6007546040805163ca4f280360e01b81526001600160a01b038a811660048301529151919092169163ca4f2803916024808301926080929190829003018186803b15801561125f57600080fd5b505afa158015611273573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250608081101561129857600080fd5b5090506000805b600481101561135a576007546001600160a01b031663bbff1a668483600481106112c557fe5b60200201516040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561131057600080fd5b505afa158015611324573d6000803e3d6000fd5b505050506040513d602081101561133a57600080fd5b505191506001600160a01b038216156113525761135a565b60010161129f565b506000886001600160a01b031663cc2b27d78860016040518363ffffffff1660e01b81526004018083815260200182600f0b81526020019250505060206040518083038186803b1580156113ad57600080fd5b505afa1580156113c1573d6000803e3d6000fd5b505050506040513d60208110156113d757600080fd5b5051600754604080516301e09fa360e41b81526001600160a01b0386811660048301528c81166024830152825194955090921692631e09fa30926044808201939291829003018186803b15801561142d57600080fd5b505afa158015611441573d6000803e3d6000fd5b505050506040513d604081101561145757600080fd5b506020908101516040805163cc2b27d760e01b815260048101859052600f83810b900b602482015290519196506001600160a01b0385169263cc2b27d792604480840193829003018186803b1580156114af57600080fd5b505afa1580156114c3573d6000803e3d6000fd5b505050506040513d60208110156114d957600080fd5b505195506114e8945050505050565b9392505050565b6114f7610d4f565b611536576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b6007546001600160a01b0382811691161415611599576040805162461bcd60e51b815260206004820152601b60248201527f416c7265616479207573696e6720746869732052656769737472790000000000604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6115c3610d4f565b611602576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b61160b81611d8a565b50565b611616610d4f565b611655576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b60006116c283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611e2a565b90505b92915050565b80471015611720576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d806000811461176b576040519150601f19603f3d011682016040523d82523d6000602084013e611770565b606091505b5050905080610c9a5760405162461bcd60e51b815260040180806020018281038252603a815260200180612cda603a913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610c9a908490611ec1565b805b919050565b3390565b600081156118f65761181e33612079565b6118595760405162461bcd60e51b815260040180806020018281038252602c815260200180612d76602c913960400191505060405180910390fd5b604080516370a0823160e01b8152336004820152905185916000916001600160a01b038416916370a08231916024808301926020929190829003018186803b1580156118a457600080fd5b505afa1580156118b8573d6000803e3d6000fd5b505050506040513d60208110156118ce57600080fd5b505190506118ed6001600160a01b03831633308463ffffffff6120b516565b91506114e89050565b6119116001600160a01b03851633308663ffffffff6120b516565b50816114e8565b600754604080516301e09fa360e41b81526001600160a01b03898116600483015287811660248301528251600094859485949390911692631e09fa309260448083019392829003018186803b15801561197057600080fd5b505afa158015611984573d6000803e3d6000fd5b505050506040513d604081101561199a57600080fd5b508051602090910151909250905081156119fd5760006119bc8a8a848b61210f565b90506001600160a01b03881673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156119e857600097505b6119f5888883898961248d565b935050611c24565b611a05612c95565b6007546040805163ca4f280360e01b81526001600160a01b038d811660048301529151919092169163ca4f2803916024808301926080929190829003018186803b158015611a5257600080fd5b505afa158015611a66573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506080811015611a8b57600080fd5b5090506000805b60048160ff161015611bec576007546000906001600160a01b031663bbff1a668560ff851660048110611ac157fe5b60200201516040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611b0c57600080fd5b505afa158015611b20573d6000803e3d6000fd5b505050506040513d6020811015611b3657600080fd5b50516001600160a01b031614611be4576007546001600160a01b031663bbff1a668460ff841660048110611b6657fe5b60200201516040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611bb157600080fd5b505afa158015611bc5573d6000803e3d6000fd5b505050506040513d6020811015611bdb57600080fd5b50519150611bec565b600101611a92565b6000611c0d8d8d60ff8516878160048110611c0357fe5b602002015161267b565b9050611c1d83828d8d8d8d611918565b9650505050505b50509695505050505050565b3360009081526001602052604081205460ff16828015611c4e575080155b8015611c5c57506000600254115b15611d8157611c78611c70866002546128ec565b612710612945565b6001600160a01b03851660009081526004602052604090205490925060ff1615611d81576001600160a01b038616611cc25773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee95505b6000611cea6064611cde600354866128ec90919063ffffffff16565b9063ffffffff61294516565b6001600160a01b038087166000908152600560209081526040808320938c1683529290522054909150611d23908263ffffffff61298716565b6001600160a01b038087166000908152600560209081526040808320938c168352928152828220939093556006909252902054611d66908263ffffffff61298716565b6001600160a01b038816600090815260066020526040902055505b50949350505050565b6001600160a01b038116611dcf5760405162461bcd60e51b8152600401808060200182810382526026815260200180612cb46026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115611eb95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e7e578181015183820152602001611e66565b50505050905090810190601f168015611eab5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b611ed3826001600160a01b0316612079565b611f24576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611f625780518252601f199092019160209182019101611f43565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611fc4576040519150601f19603f3d011682016040523d82523d6000602084013e611fc9565b606091505b509150915081612020576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156108c15780806020019051602081101561203c57600080fd5b50516108c15760405162461bcd60e51b815260040180806020018281038252602a815260200180612da2602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906120ad57508115155b949350505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108c1908590611ec1565b600080841161215e576040805162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e74206c7020746f6b656e7360501b604482015290519081900360640190fd5b6007546040805163d83a7f6760e01b81526001600160a01b0388811660048301529151600093929092169163d83a7f6791602480820192602092909190829003018186803b1580156121af57600080fd5b505afa1580156121c3573d6000803e3d6000fd5b505050506040513d60208110156121d957600080fd5b50516007546040805163b8d7b66960e01b81526001600160a01b038a811660048301529151939450600093919092169163b8d7b669916024808301926020929190829003018186803b15801561222e57600080fd5b505afa158015612242573d6000803e3d6000fd5b505050506040513d602081101561225857600080fd5b5051905061226681836129e1565b60006001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146122925784612295565b60005b905060006122a282612a8e565b60075460408051630a6954a960e21b81526001600160a01b038d8116600483015291519394509116916329a552a491602480820192602092909190829003018186803b1580156122f157600080fd5b505afa158015612305573d6000803e3d6000fd5b505050506040513d602081101561231b57600080fd5b50511561239f576040805163517a55a360e01b8152600481018a9052600f89810b900b60248201526000604482018190526001606483015291516001600160a01b0387169263517a55a3926084808201939182900301818387803b15801561238257600080fd5b505af1158015612396573d6000803e3d6000fd5b50505050612411565b60408051630d2680e960e11b8152600481018a9052600f89810b900b602482015260006044820181905291516001600160a01b03871692631a4d01d2926064808201939182900301818387803b1580156123f857600080fd5b505af115801561240c573d6000803e3d6000fd5b505050505b61242a8161241e84612a8e565b9063ffffffff61168016565b945060008511612481576040805162461bcd60e51b815260206004820181905260248201527f436f756c64206e6f742072656365697665207265736572766520746f6b656e73604482015290519081900360640190fd5b50505050949350505050565b6000846001600160a01b0316866001600160a01b031614156124b0575082612672565b60006001600160a01b03871673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14806124e457506001600160a01b038716155b156124f05750836124fa565b6124fa87856129e1565b600061250587612a8e565b90506000856001600160a01b031683866040518082805190602001908083835b602083106125445780518252601f199092019160209182019101612525565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146125a6576040519150601f19603f3d011682016040523d82523d6000602084013e6125ab565b606091505b50509050806125f9576040805162461bcd60e51b81526020600482015260156024820152744572726f72205377617070696e6720546f6b656e7360581b604482015290519081900360640190fd5b600061260489612a8e565b9050612616818463ffffffff61168016565b94506000851161266d576040805162461bcd60e51b815260206004820152601f60248201527f5377617070656420546f20496e76616c696420496e7465726d65646961746500604482015290519081900360640190fd5b505050505b95945050505050565b60008084116126ca576040805162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e74206c7020746f6b656e7360501b604482015290519081900360640190fd5b6007546040805163b8d7b66960e01b81526001600160a01b0388811660048301529151600093929092169163b8d7b66991602480820192602092909190829003018186803b15801561271b57600080fd5b505afa15801561272f573d6000803e3d6000fd5b505050506040513d602081101561274557600080fd5b5051905061275381876129e1565b604080516370a0823160e01b815230600482015290516000916001600160a01b038616916370a0823191602480820192602092909190829003018186803b15801561279d57600080fd5b505afa1580156127b1573d6000803e3d6000fd5b505050506040513d60208110156127c757600080fd5b505160408051630d2680e960e11b815260048101899052600f88810b900b602482015260006044820181905291519293506001600160a01b038a1692631a4d01d29260648084019391929182900301818387803b15801561282757600080fd5b505af115801561283b573d6000803e3d6000fd5b5050604080516370a0823160e01b8152306004820152905161288b93508492506001600160a01b038816916370a08231916024808301926020929190829003018186803b158015610c3f57600080fd5b9250600083116128e2576040805162461bcd60e51b815260206004820181905260248201527f436f756c64206e6f742072656365697665207265736572766520746f6b656e73604482015290519081900360640190fd5b5050949350505050565b6000826128fb575060006116c5565b8282028284828161290857fe5b04146116c25760405162461bcd60e51b8152600401808060200182810382526021815260200180612d146021913960400191505060405180910390fd5b60006116c283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612b1d565b6000828201838110156116c2576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60408051636eb1769f60e11b81523060048201526001600160a01b038381166024830152915184926000929084169163dd62ed3e91604480820192602092909190829003018186803b158015612a3657600080fd5b505afa158015612a4a573d6000803e3d6000fd5b505050506040513d6020811015612a6057600080fd5b50511115612a6e5750612a8a565b610c9a6001600160a01b0382168360001963ffffffff612b8216565b5050565b60006001600160a01b038216612aa5575047611804565b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b158015612aeb57600080fd5b505afa158015612aff573d6000803e3d6000fd5b505050506040513d6020811015612b1557600080fd5b505192915050565b60008183612b6c5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611e7e578181015183820152602001611e66565b506000838581612b7857fe5b0495945050505050565b801580612c08575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015612bda57600080fd5b505afa158015612bee573d6000803e3d6000fd5b505050506040513d6020811015612c0457600080fd5b5051155b612c435760405162461bcd60e51b8152600401808060200182810382526036815260200180612dcc6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610c9a908490611ec1565b6040518060800160405280600490602082028038833950919291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77416666696c696174652053706c69742056616c7565206e6f7420616c6c6f7765644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552523a2073686f756c6453656c6c456e7469726542616c616e6365206973207472756520666f7220454f415361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a723158204201ddda25d77b37ff0a485f88893fe5118d996f02eb04f3ce587c83f73cf4a664736f6c634300051100320000000000000000000000008aee0a8a05a319bfca41ff2e95c48f3f8638321100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061012a5760003560e01c80635ecb16cd116100ab578063d408f6571161006f578063d408f65714610480578063d8f6eb5b146104b3578063dee5b7e014610577578063e5953382146105ba578063f2fde38b146105ed578063fbec27bf146106205761012a565b80635ecb16cd146103af578063715018a61461042c57806375f12b21146104415780638da5cb5b146104565780638f32d59b1461046b5761012a565b8063374b09f8116100f2578063374b09f8146102bd5780633ff428c7146102ee5780634f51e29414610329578063550bfa56146103705780635de0398e1461039a5761012a565b806301e980d4146101815780630dc9de85146101ab5780631385d24c146102285780631781261f1461023d57806318b135e31461028a575b3332141561017f576040805162461bcd60e51b815260206004820152601860248201527f446f206e6f742073656e6420455448206469726563746c790000000000000000604482015290519081900360640190fd5b005b34801561018d57600080fd5b5061017f600480360360208110156101a457600080fd5b503561065b565b3480156101b757600080fd5b5061017f600480360360208110156101ce57600080fd5b8101906020810181356401000000008111156101e957600080fd5b8201836020820111156101fb57600080fd5b8035906020019184602083028401116401000000008311171561021d57600080fd5b5090925090506106e7565b34801561023457600080fd5b5061017f6108c7565b34801561024957600080fd5b506102786004803603604081101561026057600080fd5b506001600160a01b038135811691602001351661092f565b60408051918252519081900360200190f35b34801561029657600080fd5b50610278600480360360208110156102ad57600080fd5b50356001600160a01b031661094c565b3480156102c957600080fd5b506102d261095e565b604080516001600160a01b039092168252519081900360200190f35b3480156102fa57600080fd5b5061017f6004803603604081101561031157600080fd5b506001600160a01b038135169060200135151561096d565b34801561033557600080fd5b5061035c6004803603602081101561034c57600080fd5b50356001600160a01b03166109df565b604080519115158252519081900360200190f35b34801561037c57600080fd5b5061017f6004803603602081101561039357600080fd5b50356109f4565b3480156103a657600080fd5b50610278610a96565b3480156103bb57600080fd5b5061017f600480360360208110156103d257600080fd5b8101906020810181356401000000008111156103ed57600080fd5b8201836020820111156103ff57600080fd5b8035906020019184602083028401116401000000008311171561042157600080fd5b509092509050610a9c565b34801561043857600080fd5b5061017f610c9f565b34801561044d57600080fd5b5061035c610d30565b34801561046257600080fd5b506102d2610d40565b34801561047757600080fd5b5061035c610d4f565b34801561048c57600080fd5b5061035c600480360360208110156104a357600080fd5b50356001600160a01b0316610d73565b3480156104bf57600080fd5b5061027860048036036101208110156104d757600080fd5b6001600160a01b0382358116926020810135926040820135831692606083013581169260808101359260a08201359092169181019060e0810160c082013564010000000081111561052757600080fd5b82018360208201111561053957600080fd5b8035906020019184600183028401116401000000008311171561055b57600080fd5b91935091506001600160a01b0381351690602001351515610d88565b34801561058357600080fd5b506102786004803603606081101561059a57600080fd5b506001600160a01b0381358116916020810135909116906040013561104b565b3480156105c657600080fd5b5061017f600480360360208110156105dd57600080fd5b50356001600160a01b03166114ef565b3480156105f957600080fd5b5061017f6004803603602081101561061057600080fd5b50356001600160a01b03166115bb565b34801561062c57600080fd5b5061017f6004803603604081101561064357600080fd5b506001600160a01b038135169060200135151561160e565b610663610d4f565b6106a2576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b60648111156106e25760405162461bcd60e51b8152600401808060200182810382526021815260200180612d356021913960400191505060405180910390fd5b600355565b6000805b828110156108c1573360009081526005602052604081209085858481811061070f57fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020549150600060056000336001600160a01b03166001600160a01b03168152602001908152602001600020600086868581811061077757fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020819055506107fe82600660008787868181106107bf57fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b031681526020019081526020016000205461168090919063ffffffff16565b6006600086868581811061080e57fe5b602090810292909201356001600160a01b03168352508101919091526040016000205573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84848381811061085257fe5b905060200201356001600160a01b03166001600160a01b031614156108805761087b33836116cb565b6108b9565b6108b9338386868581811061089157fe5b905060200201356001600160a01b03166001600160a01b03166117b09092919063ffffffff16565b6001016106eb565b50505050565b6108cf610d4f565b61090e576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b600560209081526000928352604080842090915290825290205481565b60066020526000908152604090205481565b6007546001600160a01b031681565b610975610d4f565b6109b4576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b60046020526000908152604090205460ff1681565b6109fc610d4f565b610a3b576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b6064811115610a91576040805162461bcd60e51b815260206004820152601a60248201527f476f6f6457696c6c2056616c7565206e6f7420616c6c6f776564000000000000604482015290519081900360640190fd5b600255565b60025481565b610aa4610d4f565b610ae3576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b60005b81811015610c9a57600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee848484818110610b1157fe5b905060200201356001600160a01b03166001600160a01b03161415610ba357610b8360066000868686818110610b4357fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020544761168090919063ffffffff16565b9050610b9e610b98610b93610d40565b611802565b826116cb565b610c91565b610c7760066000868686818110610bb657fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002054858585818110610bf357fe5b604080516370a0823160e01b81523060048201529051602092830294909401356001600160a01b0316936370a08231935060248083019392829003018186803b158015610c3f57600080fd5b505afa158015610c53573d6000803e3d6000fd5b505050506040513d6020811015610c6957600080fd5b50519063ffffffff61168016565b9050610c91610c84610d40565b8286868681811061089157fe5b50600101610ae6565b505050565b610ca7610d4f565b610ce6576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600054600160a01b900460ff1681565b6000546001600160a01b031690565b600080546001600160a01b0316610d64611809565b6001600160a01b031614905090565b60016020526000908152604090205460ff1681565b60008054600160a01b900460ff1615610ddd576040805162461bcd60e51b815260206004820152601260248201527115195b5c1bdc985c9a5b1e4814185d5cd95960721b604482015290519081900360640190fd5b6007546040805163b8d7b66960e01b81526001600160a01b038e811660048301529151600093929092169163b8d7b66991602480820192602092909190829003018186803b158015610e2e57600080fd5b505afa158015610e42573d6000803e3d6000fd5b505050506040513d6020811015610e5857600080fd5b50519050610e67818c8561180d565b9a506001600160a01b038a16610e8f5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee99505b610ed38c8c8c8c8b8b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061191892505050565b915087821015610f1a576040805162461bcd60e51b815260206004820152600d60248201526c4869676820536c69707061676560981b604482015290519081900360640190fd5b60006001600160a01b038a16610f6b57610f4b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84876001611c30565b9050610f6633610f61858463ffffffff61168016565b6116cb565b610fa5565b610f788a84876001611c30565b9050610fa533610f8e858463ffffffff61168016565b6001600160a01b038d16919063ffffffff6117b016565b7ff2d3e32195f8631c70e1d996c9bd5d4a3369d0580786dcd662bf13139310355d338e8c8660405180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b03168152602001836001600160a01b03166001600160a01b0316815260200182815260200194505050505060405180910390a161103a838263ffffffff61168016565b9d9c50505050505050505050505050565b60006001600160a01b0383166110735773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee92505b600754604080516301e09fa360e41b81526001600160a01b038781166004830152868116602483015282516000948594921692631e09fa30926044808301939192829003018186803b1580156110c857600080fd5b505afa1580156110dc573d6000803e3d6000fd5b505050506040513d60408110156110f257600080fd5b5080516020909101519092509050811561120a576007546040805163d83a7f6760e01b81526001600160a01b0389811660048301529151919092169163d83a7f67916024808301926020929190829003018186803b15801561115357600080fd5b505afa158015611167573d6000803e3d6000fd5b505050506040513d602081101561117d57600080fd5b50516040805163cc2b27d760e01b815260048101879052600f84810b900b602482015290516001600160a01b039092169163cc2b27d791604480820192602092909190829003018186803b1580156111d457600080fd5b505afa1580156111e8573d6000803e3d6000fd5b505050506040513d60208110156111fe57600080fd5b505192506114e8915050565b611212612c95565b6007546040805163ca4f280360e01b81526001600160a01b038a811660048301529151919092169163ca4f2803916024808301926080929190829003018186803b15801561125f57600080fd5b505afa158015611273573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250608081101561129857600080fd5b5090506000805b600481101561135a576007546001600160a01b031663bbff1a668483600481106112c557fe5b60200201516040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561131057600080fd5b505afa158015611324573d6000803e3d6000fd5b505050506040513d602081101561133a57600080fd5b505191506001600160a01b038216156113525761135a565b60010161129f565b506000886001600160a01b031663cc2b27d78860016040518363ffffffff1660e01b81526004018083815260200182600f0b81526020019250505060206040518083038186803b1580156113ad57600080fd5b505afa1580156113c1573d6000803e3d6000fd5b505050506040513d60208110156113d757600080fd5b5051600754604080516301e09fa360e41b81526001600160a01b0386811660048301528c81166024830152825194955090921692631e09fa30926044808201939291829003018186803b15801561142d57600080fd5b505afa158015611441573d6000803e3d6000fd5b505050506040513d604081101561145757600080fd5b506020908101516040805163cc2b27d760e01b815260048101859052600f83810b900b602482015290519196506001600160a01b0385169263cc2b27d792604480840193829003018186803b1580156114af57600080fd5b505afa1580156114c3573d6000803e3d6000fd5b505050506040513d60208110156114d957600080fd5b505195506114e8945050505050565b9392505050565b6114f7610d4f565b611536576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b6007546001600160a01b0382811691161415611599576040805162461bcd60e51b815260206004820152601b60248201527f416c7265616479207573696e6720746869732052656769737472790000000000604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6115c3610d4f565b611602576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b61160b81611d8a565b50565b611616610d4f565b611655576040805162461bcd60e51b81526020600482018190526024820152600080516020612d56833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b60006116c283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611e2a565b90505b92915050565b80471015611720576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d806000811461176b576040519150601f19603f3d011682016040523d82523d6000602084013e611770565b606091505b5050905080610c9a5760405162461bcd60e51b815260040180806020018281038252603a815260200180612cda603a913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610c9a908490611ec1565b805b919050565b3390565b600081156118f65761181e33612079565b6118595760405162461bcd60e51b815260040180806020018281038252602c815260200180612d76602c913960400191505060405180910390fd5b604080516370a0823160e01b8152336004820152905185916000916001600160a01b038416916370a08231916024808301926020929190829003018186803b1580156118a457600080fd5b505afa1580156118b8573d6000803e3d6000fd5b505050506040513d60208110156118ce57600080fd5b505190506118ed6001600160a01b03831633308463ffffffff6120b516565b91506114e89050565b6119116001600160a01b03851633308663ffffffff6120b516565b50816114e8565b600754604080516301e09fa360e41b81526001600160a01b03898116600483015287811660248301528251600094859485949390911692631e09fa309260448083019392829003018186803b15801561197057600080fd5b505afa158015611984573d6000803e3d6000fd5b505050506040513d604081101561199a57600080fd5b508051602090910151909250905081156119fd5760006119bc8a8a848b61210f565b90506001600160a01b03881673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156119e857600097505b6119f5888883898961248d565b935050611c24565b611a05612c95565b6007546040805163ca4f280360e01b81526001600160a01b038d811660048301529151919092169163ca4f2803916024808301926080929190829003018186803b158015611a5257600080fd5b505afa158015611a66573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506080811015611a8b57600080fd5b5090506000805b60048160ff161015611bec576007546000906001600160a01b031663bbff1a668560ff851660048110611ac157fe5b60200201516040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611b0c57600080fd5b505afa158015611b20573d6000803e3d6000fd5b505050506040513d6020811015611b3657600080fd5b50516001600160a01b031614611be4576007546001600160a01b031663bbff1a668460ff841660048110611b6657fe5b60200201516040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611bb157600080fd5b505afa158015611bc5573d6000803e3d6000fd5b505050506040513d6020811015611bdb57600080fd5b50519150611bec565b600101611a92565b6000611c0d8d8d60ff8516878160048110611c0357fe5b602002015161267b565b9050611c1d83828d8d8d8d611918565b9650505050505b50509695505050505050565b3360009081526001602052604081205460ff16828015611c4e575080155b8015611c5c57506000600254115b15611d8157611c78611c70866002546128ec565b612710612945565b6001600160a01b03851660009081526004602052604090205490925060ff1615611d81576001600160a01b038616611cc25773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee95505b6000611cea6064611cde600354866128ec90919063ffffffff16565b9063ffffffff61294516565b6001600160a01b038087166000908152600560209081526040808320938c1683529290522054909150611d23908263ffffffff61298716565b6001600160a01b038087166000908152600560209081526040808320938c168352928152828220939093556006909252902054611d66908263ffffffff61298716565b6001600160a01b038816600090815260066020526040902055505b50949350505050565b6001600160a01b038116611dcf5760405162461bcd60e51b8152600401808060200182810382526026815260200180612cb46026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115611eb95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e7e578181015183820152602001611e66565b50505050905090810190601f168015611eab5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b611ed3826001600160a01b0316612079565b611f24576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611f625780518252601f199092019160209182019101611f43565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611fc4576040519150601f19603f3d011682016040523d82523d6000602084013e611fc9565b606091505b509150915081612020576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156108c15780806020019051602081101561203c57600080fd5b50516108c15760405162461bcd60e51b815260040180806020018281038252602a815260200180612da2602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906120ad57508115155b949350505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108c1908590611ec1565b600080841161215e576040805162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e74206c7020746f6b656e7360501b604482015290519081900360640190fd5b6007546040805163d83a7f6760e01b81526001600160a01b0388811660048301529151600093929092169163d83a7f6791602480820192602092909190829003018186803b1580156121af57600080fd5b505afa1580156121c3573d6000803e3d6000fd5b505050506040513d60208110156121d957600080fd5b50516007546040805163b8d7b66960e01b81526001600160a01b038a811660048301529151939450600093919092169163b8d7b669916024808301926020929190829003018186803b15801561222e57600080fd5b505afa158015612242573d6000803e3d6000fd5b505050506040513d602081101561225857600080fd5b5051905061226681836129e1565b60006001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146122925784612295565b60005b905060006122a282612a8e565b60075460408051630a6954a960e21b81526001600160a01b038d8116600483015291519394509116916329a552a491602480820192602092909190829003018186803b1580156122f157600080fd5b505afa158015612305573d6000803e3d6000fd5b505050506040513d602081101561231b57600080fd5b50511561239f576040805163517a55a360e01b8152600481018a9052600f89810b900b60248201526000604482018190526001606483015291516001600160a01b0387169263517a55a3926084808201939182900301818387803b15801561238257600080fd5b505af1158015612396573d6000803e3d6000fd5b50505050612411565b60408051630d2680e960e11b8152600481018a9052600f89810b900b602482015260006044820181905291516001600160a01b03871692631a4d01d2926064808201939182900301818387803b1580156123f857600080fd5b505af115801561240c573d6000803e3d6000fd5b505050505b61242a8161241e84612a8e565b9063ffffffff61168016565b945060008511612481576040805162461bcd60e51b815260206004820181905260248201527f436f756c64206e6f742072656365697665207265736572766520746f6b656e73604482015290519081900360640190fd5b50505050949350505050565b6000846001600160a01b0316866001600160a01b031614156124b0575082612672565b60006001600160a01b03871673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14806124e457506001600160a01b038716155b156124f05750836124fa565b6124fa87856129e1565b600061250587612a8e565b90506000856001600160a01b031683866040518082805190602001908083835b602083106125445780518252601f199092019160209182019101612525565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146125a6576040519150601f19603f3d011682016040523d82523d6000602084013e6125ab565b606091505b50509050806125f9576040805162461bcd60e51b81526020600482015260156024820152744572726f72205377617070696e6720546f6b656e7360581b604482015290519081900360640190fd5b600061260489612a8e565b9050612616818463ffffffff61168016565b94506000851161266d576040805162461bcd60e51b815260206004820152601f60248201527f5377617070656420546f20496e76616c696420496e7465726d65646961746500604482015290519081900360640190fd5b505050505b95945050505050565b60008084116126ca576040805162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e74206c7020746f6b656e7360501b604482015290519081900360640190fd5b6007546040805163b8d7b66960e01b81526001600160a01b0388811660048301529151600093929092169163b8d7b66991602480820192602092909190829003018186803b15801561271b57600080fd5b505afa15801561272f573d6000803e3d6000fd5b505050506040513d602081101561274557600080fd5b5051905061275381876129e1565b604080516370a0823160e01b815230600482015290516000916001600160a01b038616916370a0823191602480820192602092909190829003018186803b15801561279d57600080fd5b505afa1580156127b1573d6000803e3d6000fd5b505050506040513d60208110156127c757600080fd5b505160408051630d2680e960e11b815260048101899052600f88810b900b602482015260006044820181905291519293506001600160a01b038a1692631a4d01d29260648084019391929182900301818387803b15801561282757600080fd5b505af115801561283b573d6000803e3d6000fd5b5050604080516370a0823160e01b8152306004820152905161288b93508492506001600160a01b038816916370a08231916024808301926020929190829003018186803b158015610c3f57600080fd5b9250600083116128e2576040805162461bcd60e51b815260206004820181905260248201527f436f756c64206e6f742072656365697665207265736572766520746f6b656e73604482015290519081900360640190fd5b5050949350505050565b6000826128fb575060006116c5565b8282028284828161290857fe5b04146116c25760405162461bcd60e51b8152600401808060200182810382526021815260200180612d146021913960400191505060405180910390fd5b60006116c283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612b1d565b6000828201838110156116c2576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60408051636eb1769f60e11b81523060048201526001600160a01b038381166024830152915184926000929084169163dd62ed3e91604480820192602092909190829003018186803b158015612a3657600080fd5b505afa158015612a4a573d6000803e3d6000fd5b505050506040513d6020811015612a6057600080fd5b50511115612a6e5750612a8a565b610c9a6001600160a01b0382168360001963ffffffff612b8216565b5050565b60006001600160a01b038216612aa5575047611804565b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b158015612aeb57600080fd5b505afa158015612aff573d6000803e3d6000fd5b505050506040513d6020811015612b1557600080fd5b505192915050565b60008183612b6c5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611e7e578181015183820152602001611e66565b506000838581612b7857fe5b0495945050505050565b801580612c08575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015612bda57600080fd5b505afa158015612bee573d6000803e3d6000fd5b505050506040513d6020811015612c0457600080fd5b5051155b612c435760405162461bcd60e51b8152600401808060200182810382526036815260200180612dcc6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610c9a908490611ec1565b6040518060800160405280600490602082028038833950919291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77416666696c696174652053706c69742056616c7565206e6f7420616c6c6f7765644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552523a2073686f756c6453656c6c456e7469726542616c616e6365206973207472756520666f7220454f415361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a723158204201ddda25d77b37ff0a485f88893fe5118d996f02eb04f3ce587c83f73cf4a664736f6c63430005110032

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

0000000000000000000000008aee0a8a05a319bfca41ff2e95c48f3f8638321100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _curveRegistry (address): 0x8AEE0a8A05A319BfCa41fF2E95C48f3F86383211
Arg [1] : _goodwill (uint256): 0
Arg [2] : _affiliateSplit (uint256): 0

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000008aee0a8a05a319bfca41ff2e95c48f3f86383211
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

42225:11512:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26162:10;26176:9;26162:23;;26154:60;;;;;-1:-1:-1;;;26154:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;42225:11512;24251:278;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24251:278:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24251:278:0;;:::i;25493:614::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25493:614:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25493:614:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;25493:614:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;25493:614:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;25493:614:0;;-1:-1:-1;25493:614:0;-1:-1:-1;25493:614:0;:::i;23750:86::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23750:86:0;;;:::i;22288:71::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22288:71:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;22288:71:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;22390:56;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22390:56:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22390:56:0;-1:-1:-1;;;;;22390:56:0;;:::i;42357:33::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42357:33:0;;;:::i;:::-;;;;-1:-1:-1;;;;;42357:33:0;;;;;;;;;;;;;;24537:150;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24537:150:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;24537:150:0;;;;;;;;;;:::i;22202:42::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22202:42:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22202:42:0;-1:-1:-1;;;;;22202:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;24005:238;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24005:238:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24005:238:0;;:::i;22077:23::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22077:23:0;;;:::i;24763:654::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24763:654:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;24763:654:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;24763:654:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;24763:654:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;24763:654:0;;-1:-1:-1;24763:654:0;-1:-1:-1;24763:654:0;:::i;4735:140::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4735:140:0;;;:::i;21946:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21946:27:0;;;:::i;3924:79::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3924:79:0;;;:::i;4290:94::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4290:94:0;;;:::i;22024:44::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22024:44:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22024:44:0;-1:-1:-1;;;;;22024:44:0;;:::i;43552:1947::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43552:1947:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;43552:1947:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;43552:1947:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;43552:1947:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;43552:1947:0;;-1:-1:-1;43552:1947:0;-1:-1:-1;;;;;;43552:1947:0;;;;;;;;;;:::i;52095:1399::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52095:1399:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;52095:1399:0;;;;;;;;;;;;;;;;;:::i;53502:232::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53502:232:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;53502:232:0;-1:-1:-1;;;;;53502:232:0;;:::i;5030:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5030:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5030:109:0;-1:-1:-1;;;;;5030:109:0;;:::i;23844:153::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23844:153:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;23844:153:0;;;;;;;;;;:::i;24251:278::-;4136:9;:7;:9::i;:::-;4128:54;;;;;-1:-1:-1;;;4128:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4128:54:0;;;;;;;;;;;;;;;24410:3;24387:19;:26;;24365:109;;;;-1:-1:-1;;;24365:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24485:14;:36;24251:278::o;25493:614::-;25568:16;;25595:505;25615:17;;;25595:505;;;25682:10;25665:28;;;;:16;:28;;;;;;25694:6;;25701:1;25694:9;;;;;;;;;;;;;-1:-1:-1;;;;;25694:9:0;-1:-1:-1;;;;;25665:39:0;-1:-1:-1;;;;;25665:39:0;;;;;;;;;;;;;25654:50;;25761:1;25719:16;:28;25736:10;-1:-1:-1;;;;;25719:28:0;-1:-1:-1;;;;;25719:28:0;;;;;;;;;;;;:39;25748:6;;25755:1;25748:9;;;;;;;;;;;;;-1:-1:-1;;;;;25748:9:0;-1:-1:-1;;;;;25719:39:0;-1:-1:-1;;;;;25719:39:0;;;;;;;;;;;;:43;;;;25812:64;25867:8;25812:21;:32;25834:6;;25841:1;25834:9;;;;;;;;;;;;;-1:-1:-1;;;;;25834:9:0;-1:-1:-1;;;;;25812:32:0;-1:-1:-1;;;;;25812:32:0;;;;;;;;;;;;;:54;;:64;;;;:::i;:::-;25777:21;:32;25799:6;;25806:1;25799:9;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25799:9:0;25777:32;;-1:-1:-1;25777:32:0;;;;;;;;-1:-1:-1;25777:32:0;:99;22503:42;25897:6;;25904:1;25897:9;;;;;;;;;;;;;-1:-1:-1;;;;;25897:9:0;-1:-1:-1;;;;;25897:23:0;;25893:196;;;25941:39;25959:10;25971:8;25941:17;:39::i;:::-;25893:196;;;26021:52;26052:10;26064:8;26028:6;;26035:1;26028:9;;;;;;;;;;;;;-1:-1:-1;;;;;26028:9:0;-1:-1:-1;;;;;26021:30:0;;;:52;;;;;:::i;:::-;25634:3;;25595:505;;;;25493:614;;;:::o;23750:86::-;4136:9;:7;:9::i;:::-;4128:54;;;;;-1:-1:-1;;;4128:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4128:54:0;;;;;;;;;;;;;;;23821:7;;;-1:-1:-1;;;;23810:18:0;;-1:-1:-1;;;23821:7:0;;;;;;23820:8;23810:18;;;;;;23750:86::o;22288:71::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;22390:56::-;;;;;;;;;;;;;:::o;42357:33::-;;;-1:-1:-1;;;;;42357:33:0;;:::o;24537:150::-;4136:9;:7;:9::i;:::-;4128:54;;;;;-1:-1:-1;;;4128:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4128:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;24647:22:0;;;;;;;;:10;:22;;;;;:32;;-1:-1:-1;;24647:32:0;;;;;;;;;;24537:150::o;22202:42::-;;;;;;;;;;;;;;;:::o;24005:238::-;4136:9;:7;:9::i;:::-;4128:54;;;;;-1:-1:-1;;;4128:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4128:54:0;;;;;;;;;;;;;;;24143:3;24126:13;:20;;24082:118;;;;;-1:-1:-1;;;24082:118:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24211:8;:24;24005:238::o;22077:23::-;;;;:::o;24763:654::-;4136:9;:7;:9::i;:::-;4128:54;;;;;-1:-1:-1;;;4128:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4128:54:0;;;;;;;;;;;;;;;24849:9;24844:566;24864:17;;;24844:566;;;24903:11;22503:42;24935:6;;24942:1;24935:9;;;;;;;;;;;;;-1:-1:-1;;;;;24935:9:0;-1:-1:-1;;;;;24935:23:0;;24931:468;;;24985:99;25033:21;:32;25055:6;;25062:1;25055:9;;;;;;;;;;;;;-1:-1:-1;;;;;25055:9:0;-1:-1:-1;;;;;25033:32:0;-1:-1:-1;;;;;25033:32:0;;;;;;;;;;;;;24985:21;:25;;:99;;;;:::i;:::-;24979:105;;25103:50;25121:26;25139:7;:5;:7::i;:::-;25121:17;:26::i;:::-;25149:3;25103:17;:50::i;:::-;24931:468;;;25200:120;25269:21;:32;25291:6;;25298:1;25291:9;;;;;;;;;;;;;-1:-1:-1;;;;;25291:9:0;-1:-1:-1;;;;;25269:32:0;-1:-1:-1;;;;;25269:32:0;;;;;;;;;;;;;25207:6;;25214:1;25207:9;;;;;;;25200:42;;;-1:-1:-1;;;25200:42:0;;25236:4;25200:42;;;;;;25207:9;;;;;;;;;-1:-1:-1;;;;;25207:9:0;;25200:27;;-1:-1:-1;25200:42:0;;;;;25207:9;25200:42;;;;;25207:9;25200:42;;;5:2:-1;;;;30:1;27;20:12;5:2;25200:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25200:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25200:42:0;;:120;:46;:120;:::i;:::-;25194:126;;25339:44;25370:7;:5;:7::i;:::-;25379:3;25346:6;;25353:1;25346:9;;;;;;25339:44;-1:-1:-1;24883:3:0;;24844:566;;;;24763:654;;:::o;4735:140::-;4136:9;:7;:9::i;:::-;4128:54;;;;;-1:-1:-1;;;4128:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4128:54:0;;;;;;;;;;;;;;;4834:1;4818:6;;4797:40;;-1:-1:-1;;;;;4818:6:0;;;;4797:40;;4834:1;;4797:40;4865:1;4848:19;;-1:-1:-1;;;;;;4848:19:0;;;4735:140::o;21946:27::-;;;-1:-1:-1;;;21946:27:0;;;;;:::o;3924:79::-;3962:7;3989:6;-1:-1:-1;;;;;3989:6:0;3924:79;:::o;4290:94::-;4330:4;4370:6;;-1:-1:-1;;;;;4370:6:0;4354:12;:10;:12::i;:::-;-1:-1:-1;;;;;4354:22:0;;4347:29;;4290:94;:::o;22024:44::-;;;;;;;;;;;;;;;:::o;43552:1947::-;43897:22;22781:7;;-1:-1:-1;;;22781:7:0;;;;22777:102;;;22805:28;;;-1:-1:-1;;;22805:28:0;;;;;;;;;;;;-1:-1:-1;;;22805:28:0;;;;;;;;;;;;;;22777:102;43959:8;;:37;;;-1:-1:-1;;;43959:37:0;;-1:-1:-1;;;;;43959:37:0;;;;;;;;;43932:24;;43959:8;;;;;:24;;:37;;;;;;;;;;;;;;;:8;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;43959:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43959:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43959:37:0;;-1:-1:-1;44049:117:0;43959:37;44106:11;44132:23;44049:11;:117::i;:::-;44035:131;-1:-1:-1;;;;;;44183:31:0;;44179:94;;22503:42;44231:30;;44179:94;44329:178;44351:11;44377;44403:17;44435:7;44457:11;44483:13;;44329:178;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;44329:7:0;;-1:-1:-1;;;44329:178:0:i;:::-;44312:195;;44544:11;44526:14;:29;;44518:55;;;;;-1:-1:-1;;;44518:55:0;;;;;;;;;;;;-1:-1:-1;;;44518:55:0;;;;;;;;;;;;;;;44586:28;-1:-1:-1;;;;;44659:21:0;;44655:703;;44720:145;22503:42;44785:14;44818:9;44846:4;44720:17;:145::i;:::-;44697:168;-1:-1:-1;44880:120:0;44916:10;44945:40;:14;44697:168;44945:40;:18;:40;:::i;:::-;44880:17;:120::i;:::-;44655:703;;;45056:142;45092:7;45118:14;45151:9;45179:4;45056:17;:142::i;:::-;45033:165;-1:-1:-1;45215:131:0;45262:10;45291:40;:14;45033:165;45291:40;:18;:40;:::i;:::-;-1:-1:-1;;;;;45215:28:0;;;:131;;:28;:131;:::i;:::-;45375:56;45382:10;45394:11;45407:7;45416:14;45375:56;;;;-1:-1:-1;;;;;45375:56:0;-1:-1:-1;;;;;45375:56:0;;;;;;-1:-1:-1;;;;;45375:56:0;-1:-1:-1;;;;;45375:56:0;;;;;;-1:-1:-1;;;;;45375:56:0;-1:-1:-1;;;;;45375:56:0;;;;;;;;;;;;;;;;;;;;;;;45451:40;:14;45470:20;45451:40;:18;:40;:::i;:::-;45444:47;43552:1947;-1:-1:-1;;;;;;;;;;;;;43552:1947:0:o;52095:1399::-;52245:14;-1:-1:-1;;;;;52276:26:0;;52272:57;;22503:42;52304:25;;52272:57;52388:8;;:53;;;-1:-1:-1;;;52388:53:0;;-1:-1:-1;;;;;52388:53:0;;;;;;;;;;;;;;;;52341:15;;;;52388:8;;;:26;;:53;;;;;;;;;;;;:8;:53;;;5:2:-1;;;;30:1;27;20:12;5:2;52388:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52388:53:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52388:53:0;;;;;;;;;-1:-1:-1;52388:53:0;-1:-1:-1;52452:1035:0;;;;52518:8;;:39;;;-1:-1:-1;;;52518:39:0;;-1:-1:-1;;;;;52518:39:0;;;;;;;;;:8;;;;;:26;;:39;;;;;;;;;;;;;;:8;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;52518:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52518:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52518:39:0;52507:122;;;-1:-1:-1;;;52507:122:0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52507:96:0;;;;;;:122;;;;;52518:39;;52507:122;;;;;;;;:96;:122;;;5:2:-1;;;;30:1;27;20:12;5:2;52507:122:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52507:122:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52507:122:0;;-1:-1:-1;52483:146:0;;-1:-1:-1;;52483:146:0;52452:1035;52662:28;;:::i;:::-;52693:8;;:35;;;-1:-1:-1;;;52693:35:0;;-1:-1:-1;;;;;52693:35:0;;;;;;;;;:8;;;;;:22;;:35;;;;;;;;;;;;;;:8;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;52693:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52693:35:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;13:3;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;52693:35:0;-1:-1:-1;52743:31:0;;52789:238;52813:1;52809;:5;52789:238;;;52866:8;;-1:-1:-1;;;;;52866:8:0;:23;52912:10;52923:1;52912:13;;;;;;;;;;;52866:78;;;;;;;;;;;;;-1:-1:-1;;;;;52866:78:0;-1:-1:-1;;;;;52866:78:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52866:78:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52866:78:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52866:78:0;;-1:-1:-1;;;;;;52967:37:0;;;52963:48;;53006:5;;52963:48;52816:3;;52789:238;;;;53041:21;53093:11;-1:-1:-1;;;;;53082:46:0;;53129:9;53140:1;53082:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53082:60:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53082:60:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;53082:60:0;53171:8;;:114;;;-1:-1:-1;;;53171:114:0;;-1:-1:-1;;;;;53171:114:0;;;;;;;;;;;;;;;;53082:60;;-1:-1:-1;53171:8:0;;;;:26;;:114;;;;;;;;;;;;:8;:114;;;5:2:-1;;;;30:1;27;20:12;5:2;53171:114:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53171:114:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;53171:114:0;;;;;;53326:149;;-1:-1:-1;;;53326:149:0;;;;;;;;;;;;;;;;;;;;53171:114;;-1:-1:-1;;;;;;53326:58:0;;;;;:149;;;;;;;;;;:58;:149;;;5:2:-1;;;;30:1;27;20:12;5:2;53326:149:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53326:149:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;53326:149:0;;-1:-1:-1;53302:173:0;;-1:-1:-1;;;;;53302:173:0;52095:1399;;;;;;:::o;53502:232::-;4136:9;:7;:9::i;:::-;4128:54;;;;;-1:-1:-1;;;4128:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4128:54:0;;;;;;;;;;;;;;;53648:8;;-1:-1:-1;;;;;53628:28:0;;;53648:8;;53628:28;;53620:68;;;;;-1:-1:-1;;;53620:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;53699:8;:27;;-1:-1:-1;;;;;;53699:27:0;-1:-1:-1;;;;;53699:27:0;;;;;;;;;;53502:232::o;5030:109::-;4136:9;:7;:9::i;:::-;4128:54;;;;;-1:-1:-1;;;4128:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4128:54:0;;;;;;;;;;;;;;;5103:28;5122:8;5103:18;:28::i;:::-;5030:109;:::o;23844:153::-;4136:9;:7;:9::i;:::-;4128:54;;;;;-1:-1:-1;;;4128:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4128:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;23956:24:0;;;;;;;;:12;:24;;;;;:33;;-1:-1:-1;;23956:33:0;;;;;;;;;;23844:153::o;9896:136::-;9954:7;9981:43;9985:1;9988;9981:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;9974:50;;9896:136;;;;;:::o;16889:445::-;17018:6;16993:21;:31;;16971:110;;;;;-1:-1:-1;;;16971:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;17168:32;;17150:12;;-1:-1:-1;;;;;17168:14:0;;;17189:6;;17150:12;17168:32;17150:12;17168:32;17189:6;17168:14;:32;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;17149:51:0;;;17233:7;17211:115;;;;-1:-1:-1;;;17211:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17967:247;18137:58;;;-1:-1:-1;;;;;18137:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;18137:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;18084:122:0;;18117:5;;18084:18;:122::i;15753:159::-;15895:7;15753:159;;;;:::o;2627:98::-;2707:10;2627:98;:::o;26347:693::-;26481:7;26505:23;26501:532;;;26571:30;26590:10;26571:18;:30::i;:::-;26545:136;;;;-1:-1:-1;;;26545:136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26760:28;;;-1:-1:-1;;;26760:28:0;;26777:10;26760:28;;;;;;26721:5;;26698:13;;-1:-1:-1;;;;;26760:16:0;;;;;:28;;;;;;;;;;;;;;:16;:28;;;5:2:-1;;;;30:1;27;20:12;5:2;26760:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26760:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26760:28:0;;-1:-1:-1;26803:59:0;-1:-1:-1;;;;;26803:23:0;;26827:10;26847:4;26760:28;26803:59;:23;:59;:::i;:::-;26886:7;-1:-1:-1;26879:14:0;;-1:-1:-1;26879:14:0;26501:532;26926:65;-1:-1:-1;;;;;26926:30:0;;26957:10;26977:4;26984:6;26926:65;:30;:65;:::i;:::-;-1:-1:-1;27015:6:0;27008:13;;45507:2013;45833:8;;:58;;;-1:-1:-1;;;45833:58:0;;-1:-1:-1;;;;;45833:58:0;;;;;;;;;;;;;;;;45738:22;;;;;;45833:8;;;;;:26;;:58;;;;;;;;;;;:8;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;45833:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;45833:58:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;45833:58:0;;;;;;;;;-1:-1:-1;45833:58:0;-1:-1:-1;45929:1584:0;;;;45962:26;46008:175;46041:11;46075;46109:15;46147:17;46008:10;:175::i;:::-;45962:221;-1:-1:-1;;;;;;46204:31:0;;22503:42;46204:31;46200:67;;;46265:1;46237:30;;46200:67;46301:186;46330:17;46366:7;46392:18;46429:11;46459:13;46301:10;:186::i;:::-;46284:203;;45929:1584;;;;46550:28;;:::i;:::-;46581:8;;:35;;;-1:-1:-1;;;46581:35:0;;-1:-1:-1;;;;;46581:35:0;;;;;;;;;:8;;;;;:22;;:35;;;;;;;;;;;;;;:8;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;46581:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;46581:35:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;13:3;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;46581:35:0;-1:-1:-1;46631:31:0;;46699:294;46710:1;46706;:5;;;46699:294;;;46741:8;;46791:1;;-1:-1:-1;;;;;46741:8:0;:23;46765:10;:13;;;;;;;;;;;;;;46741:38;;;;;;;;;;;;;-1:-1:-1;;;;;46741:38:0;-1:-1:-1;;;;;46741:38:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46741:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;46741:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;46741:38:0;-1:-1:-1;;;;;46741:52:0;;46737:241;;46844:8;;-1:-1:-1;;;;;46844:8:0;:23;46894:10;:13;;;;;;;;;;;;;;46844:86;;;;;;;;;;;;;-1:-1:-1;;;;;46844:86:0;-1:-1:-1;;;;;46844:86:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46844:86:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;46844:86:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;46844:86:0;;-1:-1:-1;46953:5:0;;46737:241;46713:3;;46699:294;;;47067:29;47116:58;47131:11;47144;47116:58;;;47160:10;47116:58;47160:13;;;;;;;;;;;47116:14;:58::i;:::-;47067:107;;47273:228;47299:23;47341:21;47381:17;47417:7;47443:11;47473:13;47273:7;:228::i;:::-;47256:245;;45929:1584;;;;;45507:2013;;;;;;;;;;:::o;27048:1058::-;27280:10;27207:28;27267:24;;;:12;:24;;;;;;;;27306:14;:30;;;;;27325:11;27324:12;27306:30;:46;;;;;27351:1;27340:8;;:12;27306:46;27302:797;;;27392:100;27423:30;27436:6;27444:8;;27423:12;:30::i;:::-;27472:5;27392:12;:100::i;:::-;-1:-1:-1;;;;;27513:21:0;;;;;;:10;:21;;;;;;27369:123;;-1:-1:-1;27513:21:0;;27509:579;;;-1:-1:-1;;;;;27559:19:0;;27555:86;;22503:42;27603:18;;27555:86;27661:24;27709:49;27754:3;27709:40;27734:14;;27709:20;:24;;:40;;;;:::i;:::-;:44;:49;:44;:49;:::i;:::-;-1:-1:-1;;;;;27814:67:0;;;;;;;:16;:67;;;;;;;;:74;;;;;;;;;;27661:97;;-1:-1:-1;27814:118:0;;27661:97;27814:118;:100;:118;:::i;:::-;-1:-1:-1;;;;;27777:27:0;;;;;;;:16;:27;;;;;;;;:34;;;;;;;;;;;:155;;;;27982:21;:28;;;;;;:90;;28037:16;27982:90;:32;:90;:::i;:::-;-1:-1:-1;;;;;27951:28:0;;;;;;:21;:28;;;;;:121;-1:-1:-1;27509:579:0;27048:1058;;;;;;;:::o;5245:266::-;-1:-1:-1;;;;;5333:22:0;;5311:110;;;;-1:-1:-1;;;5311:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5458:6;;;5437:38;;-1:-1:-1;;;;;5437:38:0;;;;5458:6;;;5437:38;;;5486:6;:17;;-1:-1:-1;;;;;;5486:17:0;-1:-1:-1;;;;;5486:17:0;;;;;;;;;;5245:266::o;10369:226::-;10489:7;10525:12;10517:6;;;;10509:29;;;;-1:-1:-1;;;10509:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;10509:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10561:5:0;;;10369:226::o;20591:1176::-;21195:27;21203:5;-1:-1:-1;;;;;21195:25:0;;:27::i;:::-;21187:71;;;;;-1:-1:-1;;;21187:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21332:12;21346:23;21381:5;-1:-1:-1;;;;;21373:19:0;21393:4;21373:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;21373:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;21331:67:0;;;;21417:7;21409:52;;;;;-1:-1:-1;;;21409:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21478:17;;:21;21474:286;;21651:10;21640:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21640:30:0;21614:134;;;;-1:-1:-1;;;21614:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14880:656;14940:4;15436:20;;15266:66;15485:23;;;;;;:42;;-1:-1:-1;15512:15:0;;;15485:42;15477:51;14880:656;-1:-1:-1;;;;14880:656:0:o;18222:284::-;18419:68;;;-1:-1:-1;;;;;18419:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;18419:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;18366:132:0;;18399:5;;18366:18;:132::i;49232:1241::-;49396:22;49453:1;49439:11;:15;49431:50;;;;;-1:-1:-1;;;49431:50:0;;;;;;;;;;;;-1:-1:-1;;;49431:50:0;;;;;;;;;;;;;;;49519:8;;:39;;;-1:-1:-1;;;49519:39:0;;-1:-1:-1;;;;;49519:39:0;;;;;;;;;49494:22;;49519:8;;;;;:26;;:39;;;;;;;;;;;;;;;:8;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;49519:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49519:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;49519:39:0;49594:8;;:37;;;-1:-1:-1;;;49594:37:0;;-1:-1:-1;;;;;49594:37:0;;;;;;;;;49519:39;;-1:-1:-1;49571:20:0;;49594:8;;;;;:24;;:37;;;;;49519:39;;49594:37;;;;;;;:8;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;49594:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49594:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;49594:37:0;;-1:-1:-1;49642:43:0;49594:37;49670:14;49642:13;:43::i;:::-;49698:20;-1:-1:-1;;;;;49734:30:0;;22503:42;49734:30;:62;;49780:16;49734:62;;;49775:1;49734:62;49698:98;;49809:19;49831:25;49843:12;49831:11;:25::i;:::-;49873:8;;:41;;;-1:-1:-1;;;49873:41:0;;-1:-1:-1;;;;;49873:41:0;;;;;;;;;49809:47;;-1:-1:-1;49873:8:0;;;:28;;:41;;;;;;;;;;;;;;;:8;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;49873:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49873:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;49873:41:0;49869:449;;;49952:172;;;-1:-1:-1;;;49952:172:0;;;;;;;;;;;;;;;;;;50085:1;49952:172;;;;;;50105:4;49952:172;;;;;;-1:-1:-1;;;;;49952:52:0;;;;;:172;;;;;;;;;;;50085:1;49952:52;:172;;;5:2:-1;;;;30:1;27;20:12;5:2;49952:172:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49952:172:0;;;;49869:449;;;50157:149;;;-1:-1:-1;;;50157:149:0;;;;;;;;;;;;;;;;;;50290:1;50157:149;;;;;;;;-1:-1:-1;;;;;50157:52:0;;;;;:149;;;;;;;;;;;50290:1;50157:52;:149;;;5:2:-1;;;;30:1;27;20:12;5:2;50157:149:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;50157:149:0;;;;49869:449;50347:42;50377:11;50347:25;50359:12;50347:11;:25::i;:::-;:29;:42;:29;:42;:::i;:::-;50330:59;;50427:1;50410:14;:18;50402:63;;;;;-1:-1:-1;;;50402:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49232:1241;;;;;;;;;;:::o;50856:882::-;51064:20;51122:15;-1:-1:-1;;;;;51101:36:0;:17;-1:-1:-1;;;;;51101:36:0;;51097:56;;;-1:-1:-1;51146:7:0;51139:14;;51097:56;51164:19;-1:-1:-1;;;;;51198:31:0;;22503:42;51198:31;;:66;;-1:-1:-1;;;;;;51233:31:0;;;51198:66;51194:167;;;-1:-1:-1;51293:7:0;51194:167;;;51316:45;51330:17;51349:11;51316:13;:45::i;:::-;51374:14;51391:28;51403:15;51391:11;:28::i;:::-;51374:45;;51431:12;51449:11;-1:-1:-1;;;;;51449:16:0;51472:11;51485:13;51449:50;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;51449:50:0;;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;51430:69:0;;;51518:7;51510:41;;;;;-1:-1:-1;;;51510:41:0;;;;;;;;;;;;-1:-1:-1;;;51510:41:0;;;;;;;;;;;;;;;51562:16;51581:28;51593:15;51581:11;:28::i;:::-;51562:47;-1:-1:-1;51637:20:0;51562:47;51650:6;51637:20;:12;:20;:::i;:::-;51622:35;;51693:1;51678:12;:16;51670:60;;;;;-1:-1:-1;;;51670:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;50856:882;;;;;;;;;;;;:::o;47978:796::-;48146:22;48203:1;48189:11;:15;48181:50;;;;;-1:-1:-1;;;48181:50:0;;;;;;;;;;;;-1:-1:-1;;;48181:50:0;;;;;;;;;;;;;;;48267:8;;:37;;;-1:-1:-1;;;48267:37:0;;-1:-1:-1;;;;;48267:37:0;;;;;;;;;48244:20;;48267:8;;;;;:24;;:37;;;;;;;;;;;;;;;:8;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;48267:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;48267:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48267:37:0;;-1:-1:-1;48315:40:0;48267:37;48343:11;48315:13;:40::i;:::-;48390:49;;;-1:-1:-1;;;48390:49:0;;48433:4;48390:49;;;;;;48368:19;;-1:-1:-1;;;;;48390:34:0;;;;;:49;;;;;;;;;;;;;;;:34;:49;;;5:2:-1;;;;30:1;27;20:12;5:2;48390:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;48390:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48390:49:0;48450:130;;;-1:-1:-1;;;48450:130:0;;;;;;;;;;;;;;;;;;48568:1;48450:130;;;;;;;;48390:49;;-1:-1:-1;;;;;;48450:49:0;;;;;:130;;;;;48568:1;;48450:130;;;;;;48568:1;48450:49;:130;;;5:2:-1;;;;30:1;27;20:12;5:2;48450:130:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;48609:49:0;;;-1:-1:-1;;;48609:49:0;;48652:4;48609:49;;;;;;48608:82;;-1:-1:-1;48678:11:0;;-1:-1:-1;;;;;;48609:34:0;;;;;:49;;;;;;;;;;;;;;:34;:49;;;5:2:-1;;;;30:1;27;20:12;48608:82:0;48591:99;;48728:1;48711:14;:18;48703:63;;;;;-1:-1:-1;;;48703:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47978:796;;;;;;;;:::o;10846:471::-;10904:7;11149:6;11145:47;;-1:-1:-1;11179:1:0;11172:8;;11145:47;11216:5;;;11220:1;11216;:5;:1;11240:5;;;;;:10;11232:56;;;;-1:-1:-1;;;11232:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11785:132;11843:7;11870:39;11874:1;11877;11870:39;;;;;;;;;;;;;;;;;:3;:39::i;9440:181::-;9498:7;9530:5;;;9554:6;;;;9546:46;;;;;-1:-1:-1;;;9546:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;23192:261;23311:40;;;-1:-1:-1;;;23311:40:0;;23336:4;23311:40;;;;-1:-1:-1;;;;;23311:40:0;;;;;;;;;23290:5;;23267:13;;23311:16;;;;;;:40;;;;;;;;;;;;;;;:16;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;23311:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23311:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23311:40:0;:44;23307:139;;;23357:7;;;23307:139;23394:40;-1:-1:-1;;;;;23394:18:0;;23413:7;-1:-1:-1;;23394:40:0;:18;:40;:::i;23192:261::-;;;:::o;22894:290::-;22980:15;-1:-1:-1;;;;;23017:19:0;;23013:164;;-1:-1:-1;23063:21:0;23013:164;;;23127:38;;;-1:-1:-1;;;23127:38:0;;23159:4;23127:38;;;;;;-1:-1:-1;;;;;23127:23:0;;;;;:38;;;;;;;;;;;;;;:23;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;23127:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23127:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23127:38:0;;22894:290;-1:-1:-1;;22894:290:0:o;12447:379::-;12567:7;12669:12;12662:5;12654:28;;;;-1:-1:-1;;;12654:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;12654:28:0;;12693:9;12709:1;12705;:5;;;;;;;12447:379;-1:-1:-1;;;;;12447:379:0:o;18514:706::-;18932:10;;;18931:62;;-1:-1:-1;18948:39:0;;;-1:-1:-1;;;18948:39:0;;18972:4;18948:39;;;;-1:-1:-1;;;;;18948:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;18948:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18948:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18948:39:0;:44;18931:62;18909:166;;;;-1:-1:-1;;;18909:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19139:62;;;-1:-1:-1;;;;;19139:62:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;19139:62:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;19086:126:0;;19119:5;;19086:18;:126::i;42225:11512::-;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;-1:-1;42225:11512:0;;;-1:-1:-1;;42225:11512:0:o

Swarm Source

bzzr://4201ddda25d77b37ff0a485f88893fe5118d996f02eb04f3ce587c83f73cf4a6

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.