Contract 0x05D4ED0f8c3265134d94AAA5C508b6c1cB7095Fd

 
Ad
Ad
Txn Hash Method
Block
From
To
Value
0xb6c1ad7988f2ccaa59a0f584f86fefbb806c5f350a897cd69b2ff1cbed7cf29fTransfer Ownersh...128579112021-07-19 15:39:5562 days 1 hr ago0xa0863436913b1b439ccaa6fbf89408116c1dde29 IN  0x05d4ed0f8c3265134d94aaa5c508b6c1cb7095fd0 Ether0.00100558535
0xeef0f696e891fd356967c7718ce29b875a089ece6caf194e269d7f1a4f0fd9e90x60806040124414032021-05-15 21:23:28126 days 19 hrs ago0xa0863436913b1b439ccaa6fbf89408116c1dde29 IN  Create: Vesper_ZapIn_V10 Ether0.156932178
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vesper_ZapIn_V1

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-05-15
*/

// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗
// ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║
// ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║
// ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║
// ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██║░░░░░██║
// ╚══════╝╚═╝░░╚═╝╚═╝░░░░░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝╚═╝░░░░░╚═╝
// 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 adds liquidity to Vesper Vaults using ETH or ERC20 Tokens.

// 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/ZapInBaseV2.sol

pragma solidity ^0.5.7;

contract ZapInBaseV2 is ZapBaseV1 {
    function _pullTokens(
        address token,
        uint256 amount,
        address affiliate,
        bool enableGoodwill,
        bool shouldSellEntireBalance
    ) internal returns (uint256 value) {
        uint256 totalGoodwillPortion;

        if (token == address(0)) {
            require(msg.value > 0, "No eth sent");

            // subtract goodwill
            totalGoodwillPortion = _subtractGoodwill(
                ETHAddress,
                msg.value,
                affiliate,
                enableGoodwill
            );

            return msg.value.sub(totalGoodwillPortion);
        }
        require(amount > 0, "Invalid token amount");
        require(msg.value == 0, "Eth sent with token");

        //transfer token
        if (shouldSellEntireBalance) {
            require(
                Address.isContract(msg.sender),
                "ERR: shouldSellEntireBalance is true for EOA"
            );
            amount = IERC20(token).allowance(msg.sender, address(this));
        }
        IERC20(token).safeTransferFrom(msg.sender, address(this), amount);

        // subtract goodwill
        totalGoodwillPortion = _subtractGoodwill(
            token,
            amount,
            affiliate,
            enableGoodwill
        );

        return amount.sub(totalGoodwillPortion);
    }

    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/Vesper/Vesper_ZapIn_V1.sol

// SPDX-License-Identifier: GPLv2

pragma solidity ^0.5.7;

interface IVesper {
    function token() external view returns (address);

    function deposit(uint256 amount) external;
}

contract Vesper_ZapIn_V1 is ZapInBaseV2 {
    // calldata only accepted for approved zap contracts
    mapping(address => bool) public approvedTargets;

    event zapIn(address sender, address pool, uint256 tokensRec);

    constructor(uint256 _goodwill, uint256 _affiliateSplit)
        public
        ZapBaseV1(_goodwill, _affiliateSplit)
    {}

    /**
    @notice This function adds liquidity to a Vesper vaults with ETH or ERC20 tokens
    @param fromToken The token used for entry (address(0) if ether)
    @param amountIn The amount of fromToken to invest
    @param toVault Vesper vault address
    @param minVaultTokens The minimum acceptable quantity vault tokens to receive. Reverts otherwise
    @param swapTarget Excecution target for the swap or zap
    @param swapData DEX or Zap data
    @param affiliate Affiliate address
    @param shouldSellEntireBalance True if amountIn is determined at execution time (i.e. contract is caller)
    @return tokensReceived- Quantity of Vault tokens received
     */
    function ZapIn(
        address fromToken,
        uint256 amountIn,
        address toVault,
        uint256 minVaultTokens,
        address swapTarget,
        bytes calldata swapData,
        address affiliate,
        bool shouldSellEntireBalance
    ) external payable stopInEmergency returns (uint256 tokensReceived) {
        require(
            approvedTargets[swapTarget] || swapTarget == address(0),
            "Target not Authorized"
        );

        // get incoming tokens
        uint256 toInvest =
            _pullTokens(
                fromToken,
                amountIn,
                affiliate,
                true,
                shouldSellEntireBalance
            );

        address underlyingVaultToken = IVesper(toVault).token();

        // get intermediate token
        uint256 intermediateAmt =
            _fillQuote(
                fromToken,
                underlyingVaultToken,
                toInvest,
                swapTarget,
                swapData
            );

        // Deposit to Vault
        tokensReceived = _vaultDeposit(
            intermediateAmt,
            toVault,
            minVaultTokens
        );
    }

    function _vaultDeposit(
        uint256 amount,
        address toVault,
        uint256 minTokensRec
    ) internal returns (uint256 tokensReceived) {
        address underlyingVaultToken = IVesper(toVault).token();

        _approveToken(underlyingVaultToken, toVault);

        uint256 iniYVaultBal = IERC20(toVault).balanceOf(address(this));
        IVesper(toVault).deposit(amount);
        tokensReceived = IERC20(toVault).balanceOf(address(this)).sub(
            iniYVaultBal
        );
        require(tokensReceived >= minTokensRec, "Err: High Slippage");

        IERC20(toVault).safeTransfer(msg.sender, tokensReceived);
        emit zapIn(msg.sender, toVault, tokensReceived);
    }

    function _fillQuote(
        address _fromTokenAddress,
        address toToken,
        uint256 _amount,
        address _swapTarget,
        bytes memory swapCallData
    ) internal returns (uint256 amtBought) {
        uint256 valueToSend;

        if (_fromTokenAddress == toToken) {
            return _amount;
        }

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

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

        amtBought = finalBal.sub(iniBal);
    }

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"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":"uint256","name":"tokensRec","type":"uint256"}],"name":"zapIn","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"toVault","type":"address"},{"internalType":"uint256","name":"minVaultTokens","type":"uint256"},{"internalType":"address","name":"swapTarget","type":"address"},{"internalType":"bytes","name":"swapData","type":"bytes"},{"internalType":"address","name":"affiliate","type":"address"},{"internalType":"bool","name":"shouldSellEntireBalance","type":"bool"}],"name":"ZapIn","outputs":[{"internalType":"uint256","name":"tokensReceived","type":"uint256"}],"payable":true,"stateMutability":"payable","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":[{"internalType":"address","name":"","type":"address"}],"name":"approvedTargets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"bool[]","name":"isApproved","type":"bool[]"}],"name":"setApprovedTargets","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":"address[]","name":"tokens","type":"address[]"}],"name":"withdrawTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526000805460ff60a01b1916905534801561001d57600080fd5b506040516123aa3803806123aa8339818101604052604081101561004057600080fd5b5080516020909101518181600061005e6001600160e01b036100b916565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600291909155600355506100bd9050565b3390565b6122de806100cc6000396000f3fe60806040526004361061011f5760003560e01c80635ecb16cd116100a05780639735a634116100645780639735a634146105095780639779d1a6146105d4578063d408f65714610607578063f2fde38b1461063a578063fbec27bf1461066d5761011f565b80635ecb16cd1461041e578063715018a61461049957806375f12b21146104ae5780638da5cb5b146104c35780638f32d59b146104f45761011f565b80631e9a79a9116100e75780631e9a79a9146102b05780633ff428c71461035d5780634f51e29414610398578063550bfa56146103df5780635de0398e146104095761011f565b806301e980d4146101765780630dc9de85146101a05780631385d24c1461021b5780631781261f1461023057806318b135e31461027d575b33321415610174576040805162461bcd60e51b815260206004820152601860248201527f446f206e6f742073656e6420455448206469726563746c790000000000000000604482015290519081900360640190fd5b005b34801561018257600080fd5b506101746004803603602081101561019957600080fd5b50356106a8565b3480156101ac57600080fd5b50610174600480360360208110156101c357600080fd5b810190602081018135600160201b8111156101dd57600080fd5b8201836020820111156101ef57600080fd5b803590602001918460208302840111600160201b8311171561021057600080fd5b509092509050610734565b34801561022757600080fd5b50610174610914565b34801561023c57600080fd5b5061026b6004803603604081101561025357600080fd5b506001600160a01b038135811691602001351661097c565b60408051918252519081900360200190f35b34801561028957600080fd5b5061026b600480360360208110156102a057600080fd5b50356001600160a01b0316610999565b61026b60048036036101008110156102c757600080fd5b6001600160a01b038235811692602081013592604082013583169260608301359260808101359091169181019060c0810160a0820135600160201b81111561030e57600080fd5b82018360208201111561032057600080fd5b803590602001918460018302840111600160201b8311171561034157600080fd5b91935091506001600160a01b03813516906020013515156109ab565b34801561036957600080fd5b506101746004803603604081101561038057600080fd5b506001600160a01b0381351690602001351515610b59565b3480156103a457600080fd5b506103cb600480360360208110156103bb57600080fd5b50356001600160a01b0316610bcb565b604080519115158252519081900360200190f35b3480156103eb57600080fd5b506101746004803603602081101561040257600080fd5b5035610be0565b34801561041557600080fd5b5061026b610c82565b34801561042a57600080fd5b506101746004803603602081101561044157600080fd5b810190602081018135600160201b81111561045b57600080fd5b82018360208201111561046d57600080fd5b803590602001918460208302840111600160201b8311171561048e57600080fd5b509092509050610c88565b3480156104a557600080fd5b50610174610e8b565b3480156104ba57600080fd5b506103cb610f1c565b3480156104cf57600080fd5b506104d8610f2c565b604080516001600160a01b039092168252519081900360200190f35b34801561050057600080fd5b506103cb610f3b565b34801561051557600080fd5b506101746004803603604081101561052c57600080fd5b810190602081018135600160201b81111561054657600080fd5b82018360208201111561055857600080fd5b803590602001918460208302840111600160201b8311171561057957600080fd5b919390929091602081019035600160201b81111561059657600080fd5b8201836020820111156105a857600080fd5b803590602001918460208302840111600160201b831117156105c957600080fd5b509092509050610f5f565b3480156105e057600080fd5b506103cb600480360360208110156105f757600080fd5b50356001600160a01b0316611061565b34801561061357600080fd5b506103cb6004803603602081101561062a57600080fd5b50356001600160a01b0316611076565b34801561064657600080fd5b506101746004803603602081101561065d57600080fd5b50356001600160a01b031661108b565b34801561067957600080fd5b506101746004803603604081101561069057600080fd5b506001600160a01b03813516906020013515156110de565b6106b0610f3b565b6106ef576040805162461bcd60e51b815260206004820181905260248201526000805160206121fe833981519152604482015290519081900360640190fd5b606481111561072f5760405162461bcd60e51b81526004018080602001828103825260218152602001806121dd6021913960400191505060405180910390fd5b600355565b6000805b8281101561090e573360009081526005602052604081209085858481811061075c57fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020549150600060056000336001600160a01b03166001600160a01b0316815260200190815260200160002060008686858181106107c457fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b031681526020019081526020016000208190555061084b826006600087878681811061080c57fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b031681526020019081526020016000205461115090919063ffffffff16565b6006600086868581811061085b57fe5b602090810292909201356001600160a01b03168352508101919091526040016000205573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84848381811061089f57fe5b905060200201356001600160a01b03166001600160a01b031614156108cd576108c8338361119b565b610906565b61090633838686858181106108de57fe5b905060200201356001600160a01b03166001600160a01b03166112809092919063ffffffff16565b600101610738565b50505050565b61091c610f3b565b61095b576040805162461bcd60e51b815260206004820181905260248201526000805160206121fe833981519152604482015290519081900360640190fd5b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b600560209081526000928352604080842090915290825290205481565b60066020526000908152604090205481565b60008054600160a01b900460ff1615610a00576040805162461bcd60e51b815260206004820152601260248201527115195b5c1bdc985c9a5b1e4814185d5cd95960721b604482015290519081900360640190fd5b6001600160a01b03861660009081526007602052604090205460ff1680610a2e57506001600160a01b038616155b610a77576040805162461bcd60e51b815260206004820152601560248201527415185c99d95d081b9bdd08105d5d1a1bdc9a5e9959605a1b604482015290519081900360640190fd5b6000610a878b8b866001876112d2565b90506000896001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ac457600080fd5b505afa158015610ad8573d6000803e3d6000fd5b505050506040513d6020811015610aee57600080fd5b5051604080516020601f8a01819004810282018101909252888152919250600091610b3b918f91859187918e918e908e908190840183828082843760009201919091525061150092505050565b9050610b48818c8c611677565b9d9c50505050505050505050505050565b610b61610f3b565b610ba0576040805162461bcd60e51b815260206004820181905260248201526000805160206121fe833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b60046020526000908152604090205460ff1681565b610be8610f3b565b610c27576040805162461bcd60e51b815260206004820181905260248201526000805160206121fe833981519152604482015290519081900360640190fd5b6064811115610c7d576040805162461bcd60e51b815260206004820152601a60248201527f476f6f6457696c6c2056616c7565206e6f7420616c6c6f776564000000000000604482015290519081900360640190fd5b600255565b60025481565b610c90610f3b565b610ccf576040805162461bcd60e51b815260206004820181905260248201526000805160206121fe833981519152604482015290519081900360640190fd5b60005b81811015610e8657600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee848484818110610cfd57fe5b905060200201356001600160a01b03166001600160a01b03161415610d8f57610d6f60066000868686818110610d2f57fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020544761115090919063ffffffff16565b9050610d8a610d84610d7f610f2c565b6118c8565b8261119b565b610e7d565b610e6360066000868686818110610da257fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002054858585818110610ddf57fe5b604080516370a0823160e01b81523060048201529051602092830294909401356001600160a01b0316936370a08231935060248083019392829003018186803b158015610e2b57600080fd5b505afa158015610e3f573d6000803e3d6000fd5b505050506040513d6020811015610e5557600080fd5b50519063ffffffff61115016565b9050610e7d610e70610f2c565b828686868181106108de57fe5b50600101610cd2565b505050565b610e93610f3b565b610ed2576040805162461bcd60e51b815260206004820181905260248201526000805160206121fe833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600054600160a01b900460ff1681565b6000546001600160a01b031690565b600080546001600160a01b0316610f506118cf565b6001600160a01b031614905090565b610f67610f3b565b610fa6576040805162461bcd60e51b815260206004820181905260248201526000805160206121fe833981519152604482015290519081900360640190fd5b828114610ff1576040805162461bcd60e51b8152602060048201526014602482015273092dcecc2d8d2c84092dce0eae840d8cadccee8d60631b604482015290519081900360640190fd5b60005b8381101561105a5782828281811061100857fe5b9050602002013515156007600087878581811061102157fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101610ff4565b5050505050565b60076020526000908152604090205460ff1681565b60016020526000908152604090205460ff1681565b611093610f3b565b6110d2576040805162461bcd60e51b815260206004820181905260248201526000805160206121fe833981519152604482015290519081900360640190fd5b6110db816118d3565b50565b6110e6610f3b565b611125576040805162461bcd60e51b815260206004820181905260248201526000805160206121fe833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b600061119283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611973565b90505b92915050565b804710156111f0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d806000811461123b576040519150601f19603f3d011682016040523d82523d6000602084013e611240565b606091505b5050905080610e865760405162461bcd60e51b815260040180806020018281038252603a815260200180612182603a913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610e86908490611a0a565b6000806001600160a01b0387166113605760003411611326576040805162461bcd60e51b815260206004820152600b60248201526a139bc8195d1a081cd95b9d60aa1b604482015290519081900360640190fd5b61134673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee348787611bc2565b9050611358348263ffffffff61115016565b9150506114f7565b600086116113ac576040805162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081d1bdad95b88185b5bdd5b9d60621b604482015290519081900360640190fd5b34156113f5576040805162461bcd60e51b815260206004820152601360248201527222ba341039b2b73a103bb4ba34103a37b5b2b760691b604482015290519081900360640190fd5b82156114ba5761140433611d1c565b61143f5760405162461bcd60e51b815260040180806020018281038252602c81526020018061221e602c913960400191505060405180910390fd5b60408051636eb1769f60e11b815233600482015230602482015290516001600160a01b0389169163dd62ed3e916044808301926020929190829003018186803b15801561148b57600080fd5b505afa15801561149f573d6000803e3d6000fd5b505050506040513d60208110156114b557600080fd5b505195505b6114d56001600160a01b03881633308963ffffffff611d5816565b6114e187878787611bc2565b90506114f3868263ffffffff61115016565b9150505b95945050505050565b600080856001600160a01b0316876001600160a01b0316141561152657849150506114f7565b6001600160a01b03871661153b575083611545565b6115458785611db2565b600061155087611e5f565b90506000856001600160a01b031683866040518082805190602001908083835b6020831061158f5780518252601f199092019160209182019101611570565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146115f1576040519150601f19603f3d011682016040523d82523d6000602084013e6115f6565b606091505b505090508061164c576040805162461bcd60e51b815260206004820152601760248201527f4572726f72205377617070696e6720546f6b656e732031000000000000000000604482015290519081900360640190fd5b600061165789611e5f565b9050611669818463ffffffff61115016565b9a9950505050505050505050565b600080836001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156116b357600080fd5b505afa1580156116c7573d6000803e3d6000fd5b505050506040513d60208110156116dd57600080fd5b505190506116eb8185611db2565b604080516370a0823160e01b815230600482015290516000916001600160a01b038716916370a0823191602480820192602092909190829003018186803b15801561173557600080fd5b505afa158015611749573d6000803e3d6000fd5b505050506040513d602081101561175f57600080fd5b50516040805163b6b55f2560e01b81526004810189905290519192506001600160a01b0387169163b6b55f259160248082019260009290919082900301818387803b1580156117ad57600080fd5b505af11580156117c1573d6000803e3d6000fd5b5050604080516370a0823160e01b8152306004820152905161181193508492506001600160a01b038916916370a08231916024808301926020929190829003018186803b158015610e2b57600080fd5b92508383101561185d576040805162461bcd60e51b81526020600482015260126024820152714572723a204869676820536c69707061676560701b604482015290519081900360640190fd5b6118776001600160a01b038616338563ffffffff61128016565b604080513381526001600160a01b038716602082015280820185905290517f7f31d76771556dce5ab39ba5b60664743da2629a75c474e9445734b7ad34087d9181900360600190a150509392505050565b805b919050565b3390565b6001600160a01b0381166119185760405162461bcd60e51b815260040180806020018281038252602681526020018061215c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115611a025760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156119c75781810151838201526020016119af565b50505050905090810190601f1680156119f45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b611a1c826001600160a01b0316611d1c565b611a6d576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611aab5780518252601f199092019160209182019101611a8c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611b0d576040519150601f19603f3d011682016040523d82523d6000602084013e611b12565b606091505b509150915081611b69576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561090e57808060200190516020811015611b8557600080fd5b505161090e5760405162461bcd60e51b815260040180806020018281038252602a81526020018061224a602a913960400191505060405180910390fd5b3360009081526001602052604081205460ff16828015611be0575080155b8015611bee57506000600254115b15611d1357611c0a611c0286600254611eee565b612710611f47565b6001600160a01b03851660009081526004602052604090205490925060ff1615611d13576001600160a01b038616611c545773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee95505b6000611c7c6064611c7060035486611eee90919063ffffffff16565b9063ffffffff611f4716565b6001600160a01b038087166000908152600560209081526040808320938c1683529290522054909150611cb5908263ffffffff611f8916565b6001600160a01b038087166000908152600560209081526040808320938c168352928152828220939093556006909252902054611cf8908263ffffffff611f8916565b6001600160a01b038816600090815260066020526040902055505b50949350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611d5057508115155b949350505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261090e908590611a0a565b60408051636eb1769f60e11b81523060048201526001600160a01b038381166024830152915184926000929084169163dd62ed3e91604480820192602092909190829003018186803b158015611e0757600080fd5b505afa158015611e1b573d6000803e3d6000fd5b505050506040513d6020811015611e3157600080fd5b50511115611e3f5750611e5b565b610e866001600160a01b0382168360001963ffffffff611fe316565b5050565b60006001600160a01b038216611e765750476118ca565b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b158015611ebc57600080fd5b505afa158015611ed0573d6000803e3d6000fd5b505050506040513d6020811015611ee657600080fd5b505192915050565b600082611efd57506000611195565b82820282848281611f0a57fe5b04146111925760405162461bcd60e51b81526004018080602001828103825260218152602001806121bc6021913960400191505060405180910390fd5b600061119283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506120f6565b600082820183811015611192576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b801580612069575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561203b57600080fd5b505afa15801561204f573d6000803e3d6000fd5b505050506040513d602081101561206557600080fd5b5051155b6120a45760405162461bcd60e51b81526004018080602001828103825260368152602001806122746036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610e86908490611a0a565b600081836121455760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156119c75781810151838201526020016119af565b50600083858161215157fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77416666696c696174652053706c69742056616c7565206e6f7420616c6c6f7765644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552523a2073686f756c6453656c6c456e7469726542616c616e6365206973207472756520666f7220454f415361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a7231582039363de06b1c1bedc5ab77e2f6829999528300ce2224023060154df26f71175864736f6c6343000511003200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

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

00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _goodwill (uint256): 0
Arg [1] : _affiliateSplit (uint256): 0

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


Deployed ByteCode Sourcemap

29051:4147:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26186:10;26200:9;26186:23;;26178:60;;;;;-1:-1:-1;;;26178:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;29051:4147;24275:278;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24275:278:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24275:278:0;;:::i;25517:614::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25517:614:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25517:614:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;25517:614:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;25517:614:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;25517:614:0;;-1:-1:-1;25517:614:0;-1:-1:-1;25517:614:0;:::i;23774:86::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23774:86:0;;;:::i;22312:71::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22312:71:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;22312:71:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;22414:56;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22414:56:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22414:56:0;-1:-1:-1;;;;;22414:56:0;;:::i;30098:1222::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;30098:1222:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;30098:1222:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;30098:1222:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;30098:1222:0;;-1:-1:-1;30098:1222:0;-1:-1:-1;;;;;;30098:1222:0;;;;;;;;;;:::i;24561:150::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24561:150:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;24561:150:0;;;;;;;;;;:::i;22226:42::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22226:42:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22226:42:0;-1:-1:-1;;;;;22226:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;24029:238;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24029:238:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24029:238:0;;:::i;22101:23::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22101:23:0;;;:::i;24787:654::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24787:654:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;24787:654:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;24787:654:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;24787:654:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;24787:654:0;;-1:-1:-1;24787:654:0;-1:-1:-1;24787:654:0;:::i;4759:140::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4759:140:0;;;:::i;21970:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21970:27:0;;;:::i;3948:79::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3948:79:0;;;:::i;:::-;;;;-1:-1:-1;;;;;3948:79:0;;;;;;;;;;;;;;4314:94;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4314:94:0;;;:::i;32853:342::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32853:342:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;32853:342:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;32853:342:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;32853:342:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;32853:342:0;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;32853:342:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;32853:342:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;32853:342:0;;-1:-1:-1;32853:342:0;-1:-1:-1;32853:342:0;:::i;29156:47::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;29156:47:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29156:47:0;-1:-1:-1;;;;;29156:47:0;;:::i;22048:44::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22048:44:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22048:44:0;-1:-1:-1;;;;;22048:44:0;;:::i;5054:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5054:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5054:109:0;-1:-1:-1;;;;;5054:109:0;;:::i;23868:153::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23868:153:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;23868:153:0;;;;;;;;;;:::i;24275:278::-;4160:9;:7;:9::i;:::-;4152:54;;;;;-1:-1:-1;;;4152:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4152:54:0;;;;;;;;;;;;;;;24434:3;24411:19;:26;;24389:109;;;;-1:-1:-1;;;24389:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24509:14;:36;24275:278::o;25517:614::-;25592:16;;25619:505;25639:17;;;25619:505;;;25706:10;25689:28;;;;:16;:28;;;;;;25718:6;;25725:1;25718:9;;;;;;;;;;;;;-1:-1:-1;;;;;25718:9:0;-1:-1:-1;;;;;25689:39:0;-1:-1:-1;;;;;25689:39:0;;;;;;;;;;;;;25678:50;;25785:1;25743:16;:28;25760:10;-1:-1:-1;;;;;25743:28:0;-1:-1:-1;;;;;25743:28:0;;;;;;;;;;;;:39;25772:6;;25779:1;25772:9;;;;;;;;;;;;;-1:-1:-1;;;;;25772:9:0;-1:-1:-1;;;;;25743:39:0;-1:-1:-1;;;;;25743:39:0;;;;;;;;;;;;:43;;;;25836:64;25891:8;25836:21;:32;25858:6;;25865:1;25858:9;;;;;;;;;;;;;-1:-1:-1;;;;;25858:9:0;-1:-1:-1;;;;;25836:32:0;-1:-1:-1;;;;;25836:32:0;;;;;;;;;;;;;:54;;:64;;;;:::i;:::-;25801:21;:32;25823:6;;25830:1;25823:9;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25823:9:0;25801:32;;-1:-1:-1;25801:32:0;;;;;;;;-1:-1:-1;25801:32:0;:99;22527:42;25921:6;;25928:1;25921:9;;;;;;;;;;;;;-1:-1:-1;;;;;25921:9:0;-1:-1:-1;;;;;25921:23:0;;25917:196;;;25965:39;25983:10;25995:8;25965:17;:39::i;:::-;25917:196;;;26045:52;26076:10;26088:8;26052:6;;26059:1;26052:9;;;;;;;;;;;;;-1:-1:-1;;;;;26052:9:0;-1:-1:-1;;;;;26045:30:0;;;:52;;;;;:::i;:::-;25658:3;;25619:505;;;;25517:614;;;:::o;23774:86::-;4160:9;:7;:9::i;:::-;4152:54;;;;;-1:-1:-1;;;4152:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4152:54:0;;;;;;;;;;;;;;;23845:7;;;-1:-1:-1;;;;23834:18:0;;-1:-1:-1;;;23845:7:0;;;;;;23844:8;23834:18;;;;;;23774:86::o;22312:71::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;22414:56::-;;;;;;;;;;;;;:::o;30098:1222::-;30406:22;22805:7;;-1:-1:-1;;;22805:7:0;;;;22801:102;;;22829:28;;;-1:-1:-1;;;22829:28:0;;;;;;;;;;;;-1:-1:-1;;;22829:28:0;;;;;;;;;;;;;;22801:102;-1:-1:-1;;;;;30463:27:0;;;;;;:15;:27;;;;;;;;;:55;;-1:-1:-1;;;;;;30494:24:0;;;30463:55;30441:126;;;;;-1:-1:-1;;;30441:126:0;;;;;;;;;;;;-1:-1:-1;;;30441:126:0;;;;;;;;;;;;;;;30612:16;30644:174;30674:9;30702:8;30729:9;30757:4;30780:23;30644:11;:174::i;:::-;30612:206;;30831:28;30870:7;-1:-1:-1;;;;;30862:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30862:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30862:24:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30862:24:0;30973:175;;;30862:24;30973:175;;;;;;;;;;;;;;;;;;30862:24;;-1:-1:-1;30934:23:0;;30973:175;;31002:9;;30862:24;;31069:8;;31096:10;;31125:8;;;;;;30973:175;;31125:8;;;;30973:175;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;30973:10:0;;-1:-1:-1;;;30973:175:0:i;:::-;30934:214;;31207:105;31235:15;31265:7;31287:14;31207:13;:105::i;:::-;31190:122;30098:1222;-1:-1:-1;;;;;;;;;;;;;30098:1222:0:o;24561:150::-;4160:9;:7;:9::i;:::-;4152:54;;;;;-1:-1:-1;;;4152:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4152:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;24671:22:0;;;;;;;;:10;:22;;;;;:32;;-1:-1:-1;;24671:32:0;;;;;;;;;;24561:150::o;22226:42::-;;;;;;;;;;;;;;;:::o;24029:238::-;4160:9;:7;:9::i;:::-;4152:54;;;;;-1:-1:-1;;;4152:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4152:54:0;;;;;;;;;;;;;;;24167:3;24150:13;:20;;24106:118;;;;;-1:-1:-1;;;24106:118:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24235:8;:24;24029:238::o;22101:23::-;;;;:::o;24787:654::-;4160:9;:7;:9::i;:::-;4152:54;;;;;-1:-1:-1;;;4152:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4152:54:0;;;;;;;;;;;;;;;24873:9;24868:566;24888:17;;;24868:566;;;24927:11;22527:42;24959:6;;24966:1;24959:9;;;;;;;;;;;;;-1:-1:-1;;;;;24959:9:0;-1:-1:-1;;;;;24959:23:0;;24955:468;;;25009:99;25057:21;:32;25079:6;;25086:1;25079:9;;;;;;;;;;;;;-1:-1:-1;;;;;25079:9:0;-1:-1:-1;;;;;25057:32:0;-1:-1:-1;;;;;25057:32:0;;;;;;;;;;;;;25009:21;:25;;:99;;;;:::i;:::-;25003:105;;25127:50;25145:26;25163:7;:5;:7::i;:::-;25145:17;:26::i;:::-;25173:3;25127:17;:50::i;:::-;24955:468;;;25224:120;25293:21;:32;25315:6;;25322:1;25315:9;;;;;;;;;;;;;-1:-1:-1;;;;;25315:9:0;-1:-1:-1;;;;;25293:32:0;-1:-1:-1;;;;;25293:32:0;;;;;;;;;;;;;25231:6;;25238:1;25231:9;;;;;;;25224:42;;;-1:-1:-1;;;25224:42:0;;25260:4;25224:42;;;;;;25231:9;;;;;;;;;-1:-1:-1;;;;;25231:9:0;;25224:27;;-1:-1:-1;25224:42:0;;;;;25231:9;25224:42;;;;;25231:9;25224:42;;;5:2:-1;;;;30:1;27;20:12;5:2;25224:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25224:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25224:42:0;;:120;:46;:120;:::i;:::-;25218:126;;25363:44;25394:7;:5;:7::i;:::-;25403:3;25370:6;;25377:1;25370:9;;;;;;25363:44;-1:-1:-1;24907:3:0;;24868:566;;;;24787:654;;:::o;4759:140::-;4160:9;:7;:9::i;:::-;4152:54;;;;;-1:-1:-1;;;4152:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4152:54:0;;;;;;;;;;;;;;;4858:1;4842:6;;4821:40;;-1:-1:-1;;;;;4842:6:0;;;;4821:40;;4858:1;;4821:40;4889:1;4872:19;;-1:-1:-1;;;;;;4872:19:0;;;4759:140::o;21970:27::-;;;-1:-1:-1;;;21970:27:0;;;;;:::o;3948:79::-;3986:7;4013:6;-1:-1:-1;;;;;4013:6:0;3948:79;:::o;4314:94::-;4354:4;4394:6;;-1:-1:-1;;;;;4394:6:0;4378:12;:10;:12::i;:::-;-1:-1:-1;;;;;4378:22:0;;4371:29;;4314:94;:::o;32853:342::-;4160:9;:7;:9::i;:::-;4152:54;;;;;-1:-1:-1;;;4152:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4152:54:0;;;;;;;;;;;;;;;33000:35;;;32992:68;;;;;-1:-1:-1;;;32992:68:0;;;;;;;;;;;;-1:-1:-1;;;32992:68:0;;;;;;;;;;;;;;;33078:9;33073:115;33093:18;;;33073:115;;;33163:10;;33174:1;33163:13;;;;;;;;;;;;;;;33133:15;:27;33149:7;;33157:1;33149:10;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33149:10:0;33133:27;;-1:-1:-1;33133:27:0;;;;;;;;-1:-1:-1;33133:27:0;:43;;-1:-1:-1;;33133:43:0;;;;;;;;;;-1:-1:-1;33113:3:0;33073:115;;;;32853:342;;;;:::o;29156:47::-;;;;;;;;;;;;;;;:::o;22048:44::-;;;;;;;;;;;;;;;:::o;5054:109::-;4160:9;:7;:9::i;:::-;4152:54;;;;;-1:-1:-1;;;4152:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4152:54:0;;;;;;;;;;;;;;;5127:28;5146:8;5127:18;:28::i;:::-;5054:109;:::o;23868:153::-;4160:9;:7;:9::i;:::-;4152:54;;;;;-1:-1:-1;;;4152:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4152:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;23980:24:0;;;;;;;;:12;:24;;;;;:33;;-1:-1:-1;;23980:33:0;;;;;;;;;;23868:153::o;9920:136::-;9978:7;10005:43;10009:1;10012;10005:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;9998:50;;9920:136;;;;;:::o;16913:445::-;17042:6;17017:21;:31;;16995:110;;;;;-1:-1:-1;;;16995:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;17192:32;;17174:12;;-1:-1:-1;;;;;17192:14:0;;;17213:6;;17174:12;17192:32;17174:12;17192:32;17213:6;17192: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;;17173:51:0;;;17257:7;17235:115;;;;-1:-1:-1;;;17235:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17991:247;18161:58;;;-1:-1:-1;;;;;18161:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;18161:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;18108:122:0;;18141:5;;18108:18;:122::i;26365:1369::-;26557:13;;-1:-1:-1;;;;;26628:19:0;;26624:372;;26684:1;26672:9;:13;26664:37;;;;;-1:-1:-1;;;26664:37:0;;;;;;;;;;;;-1:-1:-1;;;26664:37:0;;;;;;;;;;;;;;;26775:150;22527:42;26840:9;26868;26896:14;26775:17;:150::i;:::-;26752:173;-1:-1:-1;26949:35:0;:9;26752:173;26949:35;:13;:35;:::i;:::-;26942:42;;;;;26624:372;27023:1;27014:6;:10;27006:43;;;;;-1:-1:-1;;;27006:43:0;;;;;;;;;;;;-1:-1:-1;;;27006:43:0;;;;;;;;;;;;;;;27068:9;:14;27060:46;;;;;-1:-1:-1;;;27060:46:0;;;;;;;;;;;;-1:-1:-1;;;27060:46:0;;;;;;;;;;;;;;;27149:23;27145:266;;;27215:30;27234:10;27215:18;:30::i;:::-;27189:136;;;;-1:-1:-1;;;27189:136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27349:50;;;-1:-1:-1;;;27349:50:0;;27373:10;27349:50;;;;27393:4;27349:50;;;;;;-1:-1:-1;;;;;27349:23:0;;;;;:50;;;;;;;;;;;;;;:23;:50;;;5:2:-1;;;;30:1;27;20:12;5:2;27349:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;27349:50:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27349:50:0;;-1:-1:-1;27145:266:0;27421:65;-1:-1:-1;;;;;27421:30:0;;27452:10;27472:4;27479:6;27421:65;:30;:65;:::i;:::-;27552:122;27584:5;27604:6;27625:9;27649:14;27552:17;:122::i;:::-;27529:145;-1:-1:-1;27694:32:0;:6;27529:145;27694:32;:10;:32;:::i;:::-;27687:39;;;26365:1369;;;;;;;;:::o;32049:796::-;32248:17;32278:19;32335:7;-1:-1:-1;;;;;32314:28:0;:17;-1:-1:-1;;;;;32314:28:0;;32310:75;;;32366:7;32359:14;;;;;32310:75;-1:-1:-1;;;;;32401:31:0;;32397:163;;-1:-1:-1;32463:7:0;32397:163;;;32503:45;32517:17;32536:11;32503:13;:45::i;:::-;32572:14;32589:20;32601:7;32589:11;:20::i;:::-;32572:37;;32621:12;32639:11;-1:-1:-1;;;;;32639:16:0;32662:11;32675:12;32639:49;;;;;;;;;;;;;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;;;32639:49: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;;32620:68:0;;;32707:7;32699:43;;;;;-1:-1:-1;;;32699:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;32753:16;32772:20;32784:7;32772:11;:20::i;:::-;32753:39;-1:-1:-1;32817:20:0;32753:39;32830:6;32817:20;:12;:20;:::i;:::-;32805:32;32049:796;-1:-1:-1;;;;;;;;;;32049:796:0:o;31328:713::-;31458:22;31493:28;31532:7;-1:-1:-1;;;;;31524:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31524:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;31524:24:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31524:24:0;;-1:-1:-1;31561:44:0;31524:24;31597:7;31561:13;:44::i;:::-;31641:40;;;-1:-1:-1;;;31641:40:0;;31675:4;31641:40;;;;;;31618:20;;-1:-1:-1;;;;;31641:25:0;;;;;:40;;;;;;;;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;31641:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;31641:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31641:40:0;31692:32;;;-1:-1:-1;;;31692:32:0;;;;;;;;;;31641:40;;-1:-1:-1;;;;;;31692:24:0;;;;;:32;;;;;-1:-1:-1;;31692:32:0;;;;;;;;-1:-1:-1;31692:24:0;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;31692:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;31752:40:0;;;-1:-1:-1;;;31752:40:0;;31786:4;31752:40;;;;;;:82;;-1:-1:-1;31811:12:0;;-1:-1:-1;;;;;;31752:25:0;;;;;:40;;;;;;;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;31752:82:0;31735:99;;31871:12;31853:14;:30;;31845:61;;;;;-1:-1:-1;;;31845:61:0;;;;;;;;;;;;-1:-1:-1;;;31845:61:0;;;;;;;;;;;;;;;31919:56;-1:-1:-1;;;;;31919:28:0;;31948:10;31960:14;31919:56;:28;:56;:::i;:::-;31991:42;;;31997:10;31991:42;;-1:-1:-1;;;;;31991:42:0;;;;;;;;;;;;;;;;;;;;;;;31328:713;;;;;;;:::o;15777:159::-;15919:7;15777:159;;;;:::o;2651:98::-;2731:10;2651:98;:::o;5269:266::-;-1:-1:-1;;;;;5357:22:0;;5335:110;;;;-1:-1:-1;;;5335:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5482:6;;;5461:38;;-1:-1:-1;;;;;5461:38:0;;;;5482:6;;;5461:38;;;5510:6;:17;;-1:-1:-1;;;;;;5510:17:0;-1:-1:-1;;;;;5510:17:0;;;;;;;;;;5269:266::o;10393:226::-;10513:7;10549:12;10541:6;;;;10533:29;;;;-1:-1:-1;;;10533: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;10533:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10585:5:0;;;10393:226::o;20615:1176::-;21219:27;21227:5;-1:-1:-1;;;;;21219:25:0;;:27::i;:::-;21211:71;;;;;-1:-1:-1;;;21211:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21356:12;21370:23;21405:5;-1:-1:-1;;;;;21397:19:0;21417:4;21397: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;;;21397: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;;21355:67:0;;;;21441:7;21433:52;;;;;-1:-1:-1;;;21433:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21502:17;;:21;21498:286;;21675:10;21664:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21664:30:0;21638:134;;;;-1:-1:-1;;;21638:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27742:1058;27974:10;27901:28;27961:24;;;:12;:24;;;;;;;;28000:14;:30;;;;;28019:11;28018:12;28000:30;:46;;;;;28045:1;28034:8;;:12;28000:46;27996:797;;;28086:100;28117:30;28130:6;28138:8;;28117:12;:30::i;:::-;28166:5;28086:12;:100::i;:::-;-1:-1:-1;;;;;28207:21:0;;;;;;:10;:21;;;;;;28063:123;;-1:-1:-1;28207:21:0;;28203:579;;;-1:-1:-1;;;;;28253:19:0;;28249:86;;22527:42;28297:18;;28249:86;28355:24;28403:49;28448:3;28403:40;28428:14;;28403:20;:24;;:40;;;;:::i;:::-;:44;:49;:44;:49;:::i;:::-;-1:-1:-1;;;;;28508:67:0;;;;;;;:16;:67;;;;;;;;:74;;;;;;;;;;28355:97;;-1:-1:-1;28508:118:0;;28355:97;28508:118;:100;:118;:::i;:::-;-1:-1:-1;;;;;28471:27:0;;;;;;;:16;:27;;;;;;;;:34;;;;;;;;;;;:155;;;;28676:21;:28;;;;;;:90;;28731:16;28676:90;:32;:90;:::i;:::-;-1:-1:-1;;;;;28645:28:0;;;;;;:21;:28;;;;;:121;-1:-1:-1;28203:579:0;27742:1058;;;;;;;:::o;14904:656::-;14964:4;15460:20;;15290:66;15509:23;;;;;;:42;;-1:-1:-1;15536:15:0;;;15509:42;15501:51;14904:656;-1:-1:-1;;;;14904:656:0:o;18246:284::-;18443:68;;;-1:-1:-1;;;;;18443:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;18443:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;18390:132:0;;18423:5;;18390:18;:132::i;23216:261::-;23335:40;;;-1:-1:-1;;;23335:40:0;;23360:4;23335:40;;;;-1:-1:-1;;;;;23335:40:0;;;;;;;;;23314:5;;23291:13;;23335:16;;;;;;:40;;;;;;;;;;;;;;;:16;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;23335:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23335:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23335:40:0;:44;23331:139;;;23381:7;;;23331:139;23418:40;-1:-1:-1;;;;;23418:18:0;;23437:7;-1:-1:-1;;23418:40:0;:18;:40;:::i;23216:261::-;;;:::o;22918:290::-;23004:15;-1:-1:-1;;;;;23041:19:0;;23037:164;;-1:-1:-1;23087:21:0;23037:164;;;23151:38;;;-1:-1:-1;;;23151:38:0;;23183:4;23151:38;;;;;;-1:-1:-1;;;;;23151:23:0;;;;;:38;;;;;;;;;;;;;;:23;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;23151:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23151:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23151:38:0;;22918:290;-1:-1:-1;;22918:290:0:o;10870:471::-;10928:7;11173:6;11169:47;;-1:-1:-1;11203:1:0;11196:8;;11169:47;11240:5;;;11244:1;11240;:5;:1;11264:5;;;;;:10;11256:56;;;;-1:-1:-1;;;11256:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11809:132;11867:7;11894:39;11898:1;11901;11894:39;;;;;;;;;;;;;;;;;:3;:39::i;9464:181::-;9522:7;9554:5;;;9578:6;;;;9570:46;;;;;-1:-1:-1;;;9570:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;18538:706;18956:10;;;18955:62;;-1:-1:-1;18972:39:0;;;-1:-1:-1;;;18972:39:0;;18996:4;18972:39;;;;-1:-1:-1;;;;;18972:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;18972:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18972:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18972:39:0;:44;18955:62;18933:166;;;;-1:-1:-1;;;18933:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19163:62;;;-1:-1:-1;;;;;19163:62:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;19163:62:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;19110:126:0;;19143:5;;19110:18;:126::i;12471:379::-;12591:7;12693:12;12686:5;12678:28;;;;-1:-1:-1;;;12678:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;12678:28:0;;12717:9;12733:1;12729;:5;;;;;;;12471:379;-1:-1:-1;;;;;12471:379:0:o

Swarm Source

bzzr://39363de06b1c1bedc5ab77e2f6829999528300ce2224023060154df26f711758
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.