Contract 0x00d0f137b51692D0AC708bdE7b367a373865cFfe

 
Ad
Ad
Txn Hash Method
Block
From
To
Value
0x7e7674b2a0002019860dee340b2a925696123fa4a36cb0bfeecca05fae7b42a2Easy Zap Out126852842021-06-22 17:11:394 hrs 4 mins ago0xd30d13d51a5cf53ac65d96195c819dbd5bc31bfd IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.0166618465
0xdf7430d887d91e48f0f8c9f531e545cdc6089e4cf0f0786c5576107b06262e27Easy Zap Out126848332021-06-22 15:33:185 hrs 42 mins ago0xd269b79dbfefe60f197ef30d3e2c0ebb6ad33e27 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.01381784892
0xc381e80f77cec20c504777847a983be2656a3ac0fb415419d7c704a56bd1ce57Easy Zap Out126838712021-06-22 11:58:079 hrs 18 mins ago0x174acbd0be0d05088b06e9a501e8f803266702a6 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.00962691639
0xaa7c135ee6419fc95373f439cd26f655dbf1cd77df0a96cfc31ca46754eb4f38Easy Zap Out126822892021-06-22 5:53:1215 hrs 23 mins ago0x28579946078515c7c6abcc57f3e1088fbf63b0d5 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.00138262311
0x8e4be5de9137b08681bffb849036de4b3336328450caab1e0f155fafcc9cc9ddEasy Zap Out126751842021-06-21 3:02:561 day 18 hrs ago0xd7f397a87d0b308ae01c551553e95d3669506910 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.00436225212
0x47acd9dcc1ca2d400bb372e83a0e3745f1e0bc6ff7c0605f4be03f17171c377aEasy Zap Out126734202021-06-20 20:40:222 days 35 mins ago0x55d2cbe4ee7197d201826ed79a804a46deffaa22 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.0046570230
0x5f4d38ef18faa82ce577653885af0e07bfccb4b6484e6633431193dfee0b5069Easy Zap Out126678812021-06-19 23:55:422 days 21 hrs ago0x1b147c872bda2882bc06fd71832c5d2e9a9e141c IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.001059568
0xe11b232215ddd056b0754676e3eaa104ef8c8cf0fb5002e038e4f43060e28694Easy Zap Out126659572021-06-19 16:46:453 days 4 hrs ago0x6b30e020e9517c519c408f51c2593e12d55b55fa IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.00226118717
0xa57910c0336759839aba10363bd6f61cbddd0aee58ff8e74d361438d768c88c3Easy Zap Out126640482021-06-19 9:41:093 days 11 hrs ago0x69d0341d380a1229f4751a0a721345dbc716586c IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.0010596568
0x0bf72b05c30878c1668f47aa9e2db47ecf6e36b8316a9ccbe93419608c966deeEasy Zap Out126604612021-06-18 20:02:464 days 1 hr ago0x2f38481ef61a8e64f5de924c48fb89afe9e3dd0a IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.00852959629
0x5498e820896aa97aa160c1d58359790438ebf7c66b691cd5cd3864bad8b32298Easy Zap Out126589002021-06-18 14:21:424 days 6 hrs ago0x33173a3b9b4a86654fefa252f75dab701df092cb IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.00331172525
0x315cedc4d0c54076636dcda481062611c090679d02c2ba212d3d37cf8de11c0fEasy Zap Out126579522021-06-18 10:41:344 days 10 hrs ago0x542a676b8b37dd5de004eb2c6a9476cb42cd670b IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.00292597822
0xd587049f97a5dd46372fd357259fe308b5423bbb26cce31c1306a9b35e3ffa56Easy Zap Out126557062021-06-18 2:16:454 days 18 hrs ago0xdb5d7e2dc031488dd4985f6293fd5885e0dd9836 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.0011173768
0xf64e98b91255383de561db515331abb3cdc8f62823838d79fbf9a95db0b2a2a5Easy Zap Out126551562021-06-18 0:19:074 days 20 hrs ago0x79a98a9f41051e119cad1b9ffefe523cd0be65f0 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.0013317039
0x8e483387db1bec22eb2c9a24a5798f9a6b894c46e1c6ba9358ae37f7a37fc9bcEasy Zap Out126493902021-06-17 2:59:295 days 18 hrs ago0xd2bc3f00f8b5dd1159708ada58b42a2b3adb1eea IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.0027421842519.15
0x3594c480e3fe34c02b51655dba657d771365465b58ac310fdf70022565d5072cEasy Zap Out126448912021-06-16 10:13:446 days 11 hrs ago0x00e22b85d329650e35a9d664b7c408a57820f13f IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.0010638968
0x36e2613a1af226a539240d816341cb71b5295ca125b2ae615aa1169b90d39140Easy Zap Out126425152021-06-16 1:08:286 days 20 hrs ago0x31a6e47b1d6159ba059a0cf302c88f59264ac412 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.00185490214
0xb876f552825a8d19fafdd9ae85dffe8cf2397f1b2c254a70de08d219380fa8adEasy Zap Out126419432021-06-15 23:04:586 days 22 hrs ago0xebf7c7932d86907c3bc1bd6d486308637a8264a3 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.004597458113.1
0x33e01fc47d90a053ac98320fd63d3d7b779bb625b3e48767f63ccb9763b3adf8Easy Zap Out126405162021-06-15 17:53:287 days 3 hrs ago0x61f8c091757879af0e6b46f71672ca6d9fa28abc IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.00239419818
0xacd712adb4aebe32edaf2925a2051e30a86e208815a23bd40b04a434989a6160Easy Zap Out126385422021-06-15 10:34:217 days 10 hrs ago0x614971bfe55692c315344008b0b7e0d35d586f19 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.0007946701486.000001123
0x1e48973924b5280ae85715f9627a3c487b2a90b6f89d0297a42531eed9b6707cEasy Zap Out126347112021-06-14 20:22:448 days 53 mins ago0x1825e17795db36d3be6bad1efa3343078fe0aee4 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.003630556624.2
0xc3ac35a2091835a66a1733750018fc9d86e838fc1bb272ee99ebd7d09340f9a8Easy Zap Out126346942021-06-14 20:18:508 days 57 mins ago0xf5b48414f101576aafab9fd0dfa6406955c00f2e IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.0027009420
0xa742024c3e40bc684a26bcee26b89b19cc2474e18449d5deea830dbd05102a06Easy Zap Out126344802021-06-14 19:30:488 days 1 hr ago0x2880a6bb2cd1df6e03dc8bbfbed009de586c2603 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.00239398218
0x18b025e5329c6e24aff3112f48ecd8623f72b88303ca747bf12884a0a8d7e935Easy Zap Out126330192021-06-14 14:08:428 days 7 hrs ago0x9940b7b391ac1580081d00c1ef814e27a621358e IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.00317896824
0xd96447938361c3ae267bcb6cfba429def05f0da9fafb62e535fd46b3b63f87dfEasy Zap Out126321562021-06-14 10:55:368 days 10 hrs ago0x7759d0dbeab2270bea6f35679344d4d67b10cce9 IN  0x00d0f137b51692d0ac708bde7b367a373865cffe0 Ether0.0013244510
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xaa7c135ee6419fc95373f439cd26f655dbf1cd77df0a96cfc31ca46754eb4f38126822892021-06-22 5:53:1215 hrs 23 mins ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0x28579946078515c7c6abcc57f3e1088fbf63b0d50.372786295481733396 Ether
0xaa7c135ee6419fc95373f439cd26f655dbf1cd77df0a96cfc31ca46754eb4f38126822892021-06-22 5:53:1215 hrs 23 mins ago Wrapped Ether 0x00d0f137b51692d0ac708bde7b367a373865cffe0.372786295481733396 Ether
0x5f4d38ef18faa82ce577653885af0e07bfccb4b6484e6633431193dfee0b5069126678812021-06-19 23:55:422 days 21 hrs ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0x1b147c872bda2882bc06fd71832c5d2e9a9e141c0.127092257800099432 Ether
0x5f4d38ef18faa82ce577653885af0e07bfccb4b6484e6633431193dfee0b5069126678812021-06-19 23:55:422 days 21 hrs ago Wrapped Ether 0x00d0f137b51692d0ac708bde7b367a373865cffe0.127092257800099432 Ether
0xe11b232215ddd056b0754676e3eaa104ef8c8cf0fb5002e038e4f43060e28694126659572021-06-19 16:46:453 days 4 hrs ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0x6b30e020e9517c519c408f51c2593e12d55b55fa0.180835504391946148 Ether
0xe11b232215ddd056b0754676e3eaa104ef8c8cf0fb5002e038e4f43060e28694126659572021-06-19 16:46:453 days 4 hrs ago Wrapped Ether 0x00d0f137b51692d0ac708bde7b367a373865cffe0.180835504391946148 Ether
0xa57910c0336759839aba10363bd6f61cbddd0aee58ff8e74d361438d768c88c3126640482021-06-19 9:41:093 days 11 hrs ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0x69d0341d380a1229f4751a0a721345dbc716586c0.128006521337715417 Ether
0xa57910c0336759839aba10363bd6f61cbddd0aee58ff8e74d361438d768c88c3126640482021-06-19 9:41:093 days 11 hrs ago Wrapped Ether 0x00d0f137b51692d0ac708bde7b367a373865cffe0.128006521337715417 Ether
0x5498e820896aa97aa160c1d58359790438ebf7c66b691cd5cd3864bad8b32298126589002021-06-18 14:21:424 days 6 hrs ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0x33173a3b9b4a86654fefa252f75dab701df092cb3.66083008505318328 Ether
0x5498e820896aa97aa160c1d58359790438ebf7c66b691cd5cd3864bad8b32298126589002021-06-18 14:21:424 days 6 hrs ago Wrapped Ether 0x00d0f137b51692d0ac708bde7b367a373865cffe3.66083008505318328 Ether
0x315cedc4d0c54076636dcda481062611c090679d02c2ba212d3d37cf8de11c0f126579522021-06-18 10:41:344 days 10 hrs ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0x542a676b8b37dd5de004eb2c6a9476cb42cd670b0.401012146964906695 Ether
0x315cedc4d0c54076636dcda481062611c090679d02c2ba212d3d37cf8de11c0f126579522021-06-18 10:41:344 days 10 hrs ago Wrapped Ether 0x00d0f137b51692d0ac708bde7b367a373865cffe0.401012146964906695 Ether
0xf64e98b91255383de561db515331abb3cdc8f62823838d79fbf9a95db0b2a2a5126551562021-06-18 0:19:074 days 20 hrs ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0x79a98a9f41051e119cad1b9ffefe523cd0be65f00.674189948714433439 Ether
0xf64e98b91255383de561db515331abb3cdc8f62823838d79fbf9a95db0b2a2a5126551562021-06-18 0:19:074 days 20 hrs ago Wrapped Ether 0x00d0f137b51692d0ac708bde7b367a373865cffe0.674189948714433439 Ether
0x8e483387db1bec22eb2c9a24a5798f9a6b894c46e1c6ba9358ae37f7a37fc9bc126493902021-06-17 2:59:295 days 18 hrs ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0xd2bc3f00f8b5dd1159708ada58b42a2b3adb1eea1.756790253591063298 Ether
0x8e483387db1bec22eb2c9a24a5798f9a6b894c46e1c6ba9358ae37f7a37fc9bc126493902021-06-17 2:59:295 days 18 hrs ago Wrapped Ether 0x00d0f137b51692d0ac708bde7b367a373865cffe1.756790253591063298 Ether
0x3594c480e3fe34c02b51655dba657d771365465b58ac310fdf70022565d5072c126448912021-06-16 10:13:446 days 11 hrs ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0x00e22b85d329650e35a9d664b7c408a57820f13f0.012577995048575394 Ether
0x3594c480e3fe34c02b51655dba657d771365465b58ac310fdf70022565d5072c126448912021-06-16 10:13:446 days 11 hrs ago Wrapped Ether 0x00d0f137b51692d0ac708bde7b367a373865cffe0.012577995048575394 Ether
0x36e2613a1af226a539240d816341cb71b5295ca125b2ae615aa1169b90d39140126425152021-06-16 1:08:286 days 20 hrs ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0x31a6e47b1d6159ba059a0cf302c88f59264ac41289.671068245387969383 Ether
0x36e2613a1af226a539240d816341cb71b5295ca125b2ae615aa1169b90d39140126425152021-06-16 1:08:286 days 20 hrs ago Wrapped Ether 0x00d0f137b51692d0ac708bde7b367a373865cffe89.671068245387969383 Ether
0x33e01fc47d90a053ac98320fd63d3d7b779bb625b3e48767f63ccb9763b3adf8126405162021-06-15 17:53:287 days 3 hrs ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0x61f8c091757879af0e6b46f71672ca6d9fa28abc18.100854836112477653 Ether
0x33e01fc47d90a053ac98320fd63d3d7b779bb625b3e48767f63ccb9763b3adf8126405162021-06-15 17:53:287 days 3 hrs ago Wrapped Ether 0x00d0f137b51692d0ac708bde7b367a373865cffe18.100854836112477653 Ether
0xacd712adb4aebe32edaf2925a2051e30a86e208815a23bd40b04a434989a6160126385422021-06-15 10:34:217 days 10 hrs ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0x614971bfe55692c315344008b0b7e0d35d586f190.023253228129005903 Ether
0xacd712adb4aebe32edaf2925a2051e30a86e208815a23bd40b04a434989a6160126385422021-06-15 10:34:217 days 10 hrs ago Wrapped Ether 0x00d0f137b51692d0ac708bde7b367a373865cffe0.023253228129005903 Ether
0x1e48973924b5280ae85715f9627a3c487b2a90b6f89d0297a42531eed9b6707c126347112021-06-14 20:22:448 days 53 mins ago 0x00d0f137b51692d0ac708bde7b367a373865cffe0x1825e17795db36d3be6bad1efa3343078fe0aee40.069895086198091028 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Balancer_ZapOut_General_V2_2

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 2020-08-23
*/

// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗
// ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║
// ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║
// ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║
// ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██║░░░░░██║
// ╚══════╝╚═╝░░╚═╝╚═╝░░░░░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝╚═╝░░░░░╚═╝
// Copyright (C) 2020 zapper, nodar, suhail, seb, sumit, apoorv

// 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 removes liquidity from Balancer Pools into ETH/ERC/Underlying Tokens.
// SPDX-License-Identifier: GPLv2

// File: @openzeppelin/contracts/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: @openzeppelin/contracts/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 {
    /**
     * @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: @openzeppelin/contracts/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: @openzeppelin/contracts/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: @openzeppelin/contracts/utils/ReentrancyGuard.sol

pragma solidity ^0.5.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * _Since v2.5.0:_ this module is now much more gas efficient, given net gas
 * metering changes introduced in the Istanbul hardfork.
 */
contract ReentrancyGuard {
    bool private _notEntered;

    constructor() internal {
        // Storing an initial non-zero value makes deployment a bit more
        // expensive, but in exchange the refund on every call to nonReentrant
        // will be lower in amount. Since refunds are capped to a percetange of
        // the total transaction's gas, it is best to keep them low in cases
        // like this one, to increase the likelihood of the full refund coming
        // into effect.
        _notEntered = true;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_notEntered, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _notEntered = false;

        _;

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

// File: @openzeppelin/contracts/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: contracts/Balancer/Balancer_ZapOut_General_V2_2.sol

pragma solidity ^0.5.12;

interface IBFactory_Balancer_Unzap_V1_1 {
    function isBPool(address b) external view returns (bool);
}

interface IBPool_Balancer_Unzap_V1_1 {
    function exitswapPoolAmountIn(
        address tokenOut,
        uint256 poolAmountIn,
        uint256 minAmountOut
    ) external payable returns (uint256 tokenAmountOut);

    function totalSupply() external view returns (uint256);

    function getFinalTokens() external view returns (address[] memory tokens);

    function getDenormalizedWeight(address token)
        external
        view
        returns (uint256);

    function getTotalDenormalizedWeight() external view returns (uint256);

    function getSwapFee() external view returns (uint256);

    function isBound(address t) external view returns (bool);

    function calcSingleOutGivenPoolIn(
        uint256 tokenBalanceOut,
        uint256 tokenWeightOut,
        uint256 poolSupply,
        uint256 totalWeight,
        uint256 poolAmountIn,
        uint256 swapFee
    ) external pure returns (uint256 tokenAmountOut);

    function getBalance(address token) external view returns (uint256);
}

interface IuniswapFactory_Balancer_Unzap_V1_1 {
    function getExchange(address token)
        external
        view
        returns (address exchange);
}

interface Iuniswap_Balancer_Unzap_V1_1 {
    // converting ERC20 to ERC20 and transfer
    function tokenToTokenTransferInput(
        uint256 tokens_sold,
        uint256 min_tokens_bought,
        uint256 min_eth_bought,
        uint256 deadline,
        address recipient,
        address token_addr
    ) external returns (uint256 tokens_bought);

    function getTokenToEthInputPrice(uint256 tokens_sold)
        external
        view
        returns (uint256 eth_bought);

    function getEthToTokenInputPrice(uint256 eth_sold)
        external
        view
        returns (uint256 tokens_bought);

    function tokenToEthTransferInput(
        uint256 tokens_sold,
        uint256 min_eth,
        uint256 deadline,
        address recipient
    ) external returns (uint256 eth_bought);

    function balanceOf(address _owner) external view returns (uint256);

    function transfer(address _to, uint256 _value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 tokens
    ) external returns (bool success);
}

interface IWETH {
    function deposit() external payable;

    function transfer(address to, uint256 value) external returns (bool);

    function withdraw(uint256) external;
}

library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(0x095ea7b3, to, value)
        );
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper: APPROVE_FAILED"
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(0xa9059cbb, to, value)
        );
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper: TRANSFER_FAILED"
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(0x23b872dd, from, to, value)
        );
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper: TRANSFER_FROM_FAILED"
        );
    }
}

interface IUniswapV2Factory {
    function getPair(address tokenA, address tokenB)
        external
        view
        returns (address);
}

interface IUniswapRouter02 {
    //get estimated amountOut
    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    //token 2 token
    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    //eth 2 token
    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    //token 2 eth
    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);
}

contract Balancer_ZapOut_General_V2_2 is ReentrancyGuard, Ownable {
    using SafeMath for uint256;
    using Address for address;
    bool private stopped = false;
    uint16 public goodwill;
    address
        private constant zgoodwillAddress = 0xE737b6AfEC2320f616297e59445b60a11e3eF75F;

    IUniswapV2Factory
        private constant UniSwapV2FactoryAddress = IUniswapV2Factory(
        0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f
    );
    IUniswapRouter02 private constant uniswapRouter = IUniswapRouter02(
        0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
    );
    IBFactory_Balancer_Unzap_V1_1
        private constant BalancerFactory = IBFactory_Balancer_Unzap_V1_1(
        0x9424B1412450D0f8Fc2255FAf6046b98213B76Bd
    );

    address
        private constant wethTokenAddress = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

    uint256
        private constant deadline = 0xf000000000000000000000000000000000000000000000000000000000000000;

    event Zapout(
        address _toWhomToIssue,
        address _fromBalancerPoolAddress,
        address _toTokenContractAddress,
        uint256 _OutgoingAmount
    );

    constructor(uint16 _goodwill) public {
        goodwill = _goodwill;
    }

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

    /**
    @notice This function is used for zapping out of balancer pools
    @param _ToTokenContractAddress The token in which we want zapout (for ethers, its zero address)
    @param _FromBalancerPoolAddress The address of balancer pool to zap out
    @param _IncomingBPT The quantity of balancer pool tokens
    @param _minTokensRec slippage user wants
    @return success or failure
    */
    function EasyZapOut(
        address _ToTokenContractAddress,
        address _FromBalancerPoolAddress,
        uint256 _IncomingBPT,
        uint256 _minTokensRec
    ) public payable nonReentrant stopInEmergency returns (uint256) {
        require(
            BalancerFactory.isBPool(_FromBalancerPoolAddress),
            "Invalid Balancer Pool"
        );

        address _FromTokenAddress;
        if (
            IBPool_Balancer_Unzap_V1_1(_FromBalancerPoolAddress).isBound(
                _ToTokenContractAddress
            )
        ) {
            _FromTokenAddress = _ToTokenContractAddress;
        } else if (
            _ToTokenContractAddress == address(0) &&
            IBPool_Balancer_Unzap_V1_1(_FromBalancerPoolAddress).isBound(
                wethTokenAddress
            )
        ) {
            _FromTokenAddress = wethTokenAddress;
        } else {
            _FromTokenAddress = _getBestDeal(
                _FromBalancerPoolAddress,
                _IncomingBPT
            );
        }
        return (
            _performZapOut(
                msg.sender,
                _ToTokenContractAddress,
                _FromBalancerPoolAddress,
                _IncomingBPT,
                _FromTokenAddress,
                _minTokensRec
            )
        );
    }

    /**
    @notice This method is called by ZapOut and EasyZapOut()
    @param _toWhomToIssue is the address of user
    @param _ToTokenContractAddress is the address of the token to which you want to convert to
    @param _FromBalancerPoolAddress the address of the Balancer Pool from which you want to ZapOut
    @param _IncomingBPT is the quantity of Balancer Pool tokens that the user wants to ZapOut
    @param _IntermediateToken is the token to which the Balancer Pool should be Zapped Out
    @notice this is only used if the outgoing token is not amongst the Balancer Pool tokens
    @return success or failure
    */
    function _performZapOut(
        address payable _toWhomToIssue,
        address _ToTokenContractAddress,
        address _FromBalancerPoolAddress,
        uint256 _IncomingBPT,
        address _IntermediateToken,
        uint256 _minTokensRec
    ) internal returns (uint256) {
        //transfer goodwill
        uint256 goodwillPortion = _transferGoodwill(
            _FromBalancerPoolAddress,
            _IncomingBPT
        );

        require(
            IERC20(_FromBalancerPoolAddress).transferFrom(
                msg.sender,
                address(this),
                SafeMath.sub(_IncomingBPT, goodwillPortion)
            )
        );

        if (
            IBPool_Balancer_Unzap_V1_1(_FromBalancerPoolAddress).isBound(
                _ToTokenContractAddress
            )
        ) {
            return (
                _directZapout(
                    _FromBalancerPoolAddress,
                    _ToTokenContractAddress,
                    _toWhomToIssue,
                    SafeMath.sub(_IncomingBPT, goodwillPortion),
                    _minTokensRec
                )
            );
        }

        //exit balancer
        uint256 _returnedTokens = _exitBalancer(
            _FromBalancerPoolAddress,
            _IntermediateToken,
            SafeMath.sub(_IncomingBPT, goodwillPortion)
        );

        if (_ToTokenContractAddress == address(0)) {
            uint256 ethBought = _token2Eth(
                _IntermediateToken,
                _returnedTokens,
                _toWhomToIssue
            );

            require(ethBought >= _minTokensRec, "High slippage");
            emit Zapout(
                _toWhomToIssue,
                _FromBalancerPoolAddress,
                _ToTokenContractAddress,
                ethBought
            );
            return ethBought;
        } else {
            uint256 tokenBought = _token2Token(
                _IntermediateToken,
                _toWhomToIssue,
                _ToTokenContractAddress,
                _returnedTokens
            );
            require(tokenBought >= _minTokensRec, "High slippage");

            emit Zapout(
                _toWhomToIssue,
                _FromBalancerPoolAddress,
                _ToTokenContractAddress,
                tokenBought
            );
            return tokenBought;
        }
    }

    /**
    @notice This function is used for zapping out of balancer pool
    @param _FromBalancerPoolAddress The address of balancer pool to zap out
    @param _ToTokenContractAddress The token in which we want to zapout (for ethers, its zero address)
    @param _toWhomToIssue The address of user
    @param tokens2Trade The quantity of balancer pool tokens
    @return success or failure
    */
    function _directZapout(
        address _FromBalancerPoolAddress,
        address _ToTokenContractAddress,
        address _toWhomToIssue,
        uint256 tokens2Trade,
        uint256 _minTokensRec
    ) internal returns (uint256 returnedTokens) {
        returnedTokens = _exitBalancer(
            _FromBalancerPoolAddress,
            _ToTokenContractAddress,
            tokens2Trade
        );

        require(returnedTokens >= _minTokensRec, "High slippage");

        emit Zapout(
            _toWhomToIssue,
            _FromBalancerPoolAddress,
            _ToTokenContractAddress,
            returnedTokens
        );

        IERC20(_ToTokenContractAddress).transfer(
            _toWhomToIssue,
            returnedTokens
        );
    }

    /**
    @notice This function is used to calculate and transfer goodwill
    @param _tokenContractAddress Token address in which goodwill is deducted
    @param tokens2Trade The total amount of tokens to be zapped out
    @return The amount of goodwill deducted
    */
    function _transferGoodwill(
        address _tokenContractAddress,
        uint256 tokens2Trade
    ) internal returns (uint256 goodwillPortion) {
        if (goodwill == 0) {
            return 0;
        }

        goodwillPortion = SafeMath.div(
            SafeMath.mul(tokens2Trade, goodwill),
            10000
        );

        require(
            IERC20(_tokenContractAddress).transferFrom(
                msg.sender,
                zgoodwillAddress,
                goodwillPortion
            ),
            "Error in transferring BPT:1"
        );
        return goodwillPortion;
    }

    /**
    @notice This function finds best token from the final tokens of balancer pool
    @param _FromBalancerPoolAddress The address of balancer pool to zap out
    @param _IncomingBPT The amount of balancer pool token to covert
    @return The token address having max liquidity
     */
    function _getBestDeal(
        address _FromBalancerPoolAddress,
        uint256 _IncomingBPT
    ) internal view returns (address _token) {
        //get token list
        address[] memory tokens = IBPool_Balancer_Unzap_V1_1(
            _FromBalancerPoolAddress
        )
            .getFinalTokens();

        uint256 maxEth;

        for (uint256 index = 0; index < tokens.length; index++) {
            //get token for given bpt amount
            uint256 tokensForBPT = _getBPT2Token(
                _FromBalancerPoolAddress,
                _IncomingBPT,
                tokens[index]
            );

            //get eth value for each token
            if (tokens[index] != wethTokenAddress) {
                if (
                    UniSwapV2FactoryAddress.getPair(
                        tokens[index],
                        wethTokenAddress
                    ) == address(0)
                ) {
                    continue;
                }

                address[] memory path = new address[](2);
                path[0] = tokens[index];
                path[1] = wethTokenAddress;
                uint256 ethReturned = uniswapRouter.getAmountsOut(
                    tokensForBPT,
                    path
                )[1];

                //get max eth value
                if (maxEth < ethReturned) {
                    maxEth = ethReturned;
                    _token = tokens[index];
                }
            } else {
                //get max eth value
                if (maxEth < tokensForBPT) {
                    maxEth = tokensForBPT;
                    _token = tokens[index];
                }
            }
        }
    }

    /**
    @notice This function gives the amount of tokens on zapping out from given BPool
    @param _FromBalancerPoolAddress Address of balancer pool to zapout from
    @param _IncomingBPT The amount of BPT to zapout
    @param _toToken Address of token to zap out with
    @return Amount of ERC token
     */
    function _getBPT2Token(
        address _FromBalancerPoolAddress,
        uint256 _IncomingBPT,
        address _toToken
    ) internal view returns (uint256 tokensReturned) {
        uint256 totalSupply = IBPool_Balancer_Unzap_V1_1(
            _FromBalancerPoolAddress
        )
            .totalSupply();
        uint256 swapFee = IBPool_Balancer_Unzap_V1_1(_FromBalancerPoolAddress)
            .getSwapFee();
        uint256 totalWeight = IBPool_Balancer_Unzap_V1_1(
            _FromBalancerPoolAddress
        )
            .getTotalDenormalizedWeight();
        uint256 balance = IBPool_Balancer_Unzap_V1_1(_FromBalancerPoolAddress)
            .getBalance(_toToken);
        uint256 denorm = IBPool_Balancer_Unzap_V1_1(_FromBalancerPoolAddress)
            .getDenormalizedWeight(_toToken);

        tokensReturned = IBPool_Balancer_Unzap_V1_1(_FromBalancerPoolAddress)
            .calcSingleOutGivenPoolIn(
            balance,
            denorm,
            totalSupply,
            totalWeight,
            _IncomingBPT,
            swapFee
        );
    }

    /**
    @notice This function is used to zap out of the given balancer pool
    @param _FromBalancerPoolAddress The address of balancer pool to zap out
    @param _ToTokenContractAddress The Token address which will be zapped out
    @param _amount The amount of token for zapout
    @return The amount of tokens received after zap out
     */
    function _exitBalancer(
        address _FromBalancerPoolAddress,
        address _ToTokenContractAddress,
        uint256 _amount
    ) internal returns (uint256 returnedTokens) {
        require(
            IBPool_Balancer_Unzap_V1_1(_FromBalancerPoolAddress).isBound(
                _ToTokenContractAddress
            ),
            "Token not bound"
        );

        uint256 minTokens = _getBPT2Token(
            _FromBalancerPoolAddress,
            _amount,
            _ToTokenContractAddress
        );
        minTokens = SafeMath.div(SafeMath.mul(minTokens, 98), 100);

        returnedTokens = IBPool_Balancer_Unzap_V1_1(_FromBalancerPoolAddress)
            .exitswapPoolAmountIn(_ToTokenContractAddress, _amount, minTokens);

        require(returnedTokens > 0, "Error in exiting balancer pool");
    }

    /**
    @notice This function is used to swap tokens
    @param _FromTokenContractAddress The token address to swap from
    @param _ToWhomToIssue The address to transfer after swap
    @param _ToTokenContractAddress The token address to swap to
    @param tokens2Trade The quantity of tokens to swap
    @return The amount of tokens returned after swap
     */
    function _token2Token(
        address _FromTokenContractAddress,
        address _ToWhomToIssue,
        address _ToTokenContractAddress,
        uint256 tokens2Trade
    ) internal returns (uint256 tokenBought) {
        TransferHelper.safeApprove(
            _FromTokenContractAddress,
            address(uniswapRouter),
            tokens2Trade
        );

        if (_FromTokenContractAddress != wethTokenAddress) {
            address[] memory path = new address[](3);
            path[0] = _FromTokenContractAddress;
            path[1] = wethTokenAddress;
            path[2] = _ToTokenContractAddress;
            tokenBought = uniswapRouter.swapExactTokensForTokens(
                tokens2Trade,
                1,
                path,
                _ToWhomToIssue,
                deadline
            )[path.length - 1];
        } else {
            address[] memory path = new address[](2);
            path[0] = wethTokenAddress;
            path[1] = _ToTokenContractAddress;
            tokenBought = uniswapRouter.swapExactTokensForTokens(
                tokens2Trade,
                1,
                path,
                _ToWhomToIssue,
                deadline
            )[path.length - 1];
        }

        require(tokenBought > 0, "Error in swapping ERC: 1");
    }

    /**
    @notice This function is used to swap tokens to eth
    @param _FromTokenContractAddress The token address to swap from
    @param tokens2Trade The quantity of tokens to swap
    @param _toWhomToIssue The address to transfer after swap
    @return The amount of ether returned after swap
     */
    function _token2Eth(
        address _FromTokenContractAddress,
        uint256 tokens2Trade,
        address payable _toWhomToIssue
    ) internal returns (uint256 ethBought) {
        if (_FromTokenContractAddress == wethTokenAddress) {
            IWETH(wethTokenAddress).withdraw(tokens2Trade);
            _toWhomToIssue.transfer(tokens2Trade);
            return tokens2Trade;
        }

        IERC20(_FromTokenContractAddress).approve(
            address(uniswapRouter),
            tokens2Trade
        );

        address[] memory path = new address[](2);
        path[0] = _FromTokenContractAddress;
        path[1] = wethTokenAddress;
        ethBought = uniswapRouter.swapExactTokensForETH(
            tokens2Trade,
            1,
            path,
            _toWhomToIssue,
            deadline
        )[path.length - 1];

        require(ethBought > 0, "Error in swapping Eth: 1");
    }

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

    function inCaseTokengetsStuck(IERC20 _TokenAddress) public onlyOwner {
        uint256 qty = _TokenAddress.balanceOf(address(this));
        _TokenAddress.transfer(owner(), qty);
    }

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

    // - to withdraw any ETH balance sitting in the contract
    function withdraw() public onlyOwner {
        uint256 contractBalance = address(this).balance;
        address payable _to = owner().toPayable();
        _to.transfer(contractBalance);
    }

    function() external payable {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint16","name":"_goodwill","type":"uint16"}],"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":"_toWhomToIssue","type":"address"},{"indexed":false,"internalType":"address","name":"_fromBalancerPoolAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_toTokenContractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_OutgoingAmount","type":"uint256"}],"name":"Zapout","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[{"internalType":"address","name":"_ToTokenContractAddress","type":"address"},{"internalType":"address","name":"_FromBalancerPoolAddress","type":"address"},{"internalType":"uint256","name":"_IncomingBPT","type":"uint256"},{"internalType":"uint256","name":"_minTokensRec","type":"uint256"}],"name":"EasyZapOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"goodwill","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC20","name":"_TokenAddress","type":"address"}],"name":"inCaseTokengetsStuck","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"uint16","name":"_new_goodwill","type":"uint16"}],"name":"set_new_goodwill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"toggleContractActive","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526000805460ff60a81b1916905534801561001d57600080fd5b50604051620026bf380380620026bf8339818101604052602081101561004257600080fd5b50516000805460ff191660011781556100626001600160e01b036100d916565b60008054610100600160a81b0319166101006001600160a01b038416908102919091178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805461ffff909216600160b01b0261ffff60b01b199092169190911790556100dd565b3390565b6125d280620000ed6000396000f3fe6080604052600436106100915760003560e01c8063715018a611610059578063715018a61461016a5780638da5cb5b1461017f5780638f32d59b146101b0578063b10e1dbc146101d9578063f2fde38b1461020757610091565b80631385d24c1461009357806325e07c3e146100a85780633ccfd60b146100f6578063551196d51461010b5780635de0398e1461013e575b005b34801561009f57600080fd5b5061009161023a565b6100e4600480360360808110156100be57600080fd5b506001600160a01b038135811691602081013590911690604081013590606001356102a2565b60408051918252519081900360200190f35b34801561010257600080fd5b506100916105a2565b34801561011757600080fd5b506100916004803603602081101561012e57600080fd5b50356001600160a01b0316610643565b34801561014a57600080fd5b50610153610799565b6040805161ffff9092168252519081900360200190f35b34801561017657600080fd5b506100916107aa565b34801561018b57600080fd5b50610194610840565b604080516001600160a01b039092168252519081900360200190f35b3480156101bc57600080fd5b506101c5610854565b604080519115158252519081900360200190f35b3480156101e557600080fd5b50610091600480360360208110156101fc57600080fd5b503561ffff1661087d565b34801561021357600080fd5b506100916004803603602081101561022a57600080fd5b50356001600160a01b0316610940565b610242610854565b610281576040805162461bcd60e51b8152602060048201819052602482015260008051602061257e833981519152604482015290519081900360640190fd5b6000805460ff60a81b198116600160a81b9182900460ff1615909102179055565b6000805460ff166102fa576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff191690819055600160a81b900460ff1615610357576040805162461bcd60e51b815260206004820152601260248201527115195b5c1bdc985c9a5b1e4814185d5cd95960721b604482015290519081900360640190fd5b6040805163615db6e160e11b81526001600160a01b03861660048201529051739424b1412450d0f8fc2255faf6046b98213b76bd9163c2bb6dc2916024808301926020929190829003018186803b1580156103b157600080fd5b505afa1580156103c5573d6000803e3d6000fd5b505050506040513d60208110156103db57600080fd5b5051610426576040805162461bcd60e51b8152602060048201526015602482015274125b9d985b1a590810985b185b98d95c88141bdbdb605a1b604482015290519081900360640190fd5b6000846001600160a01b0316632f37b624876040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561047e57600080fd5b505afa158015610492573d6000803e3d6000fd5b505050506040513d60208110156104a857600080fd5b5051156104b657508461057c565b6001600160a01b03861615801561054f575060408051630bcded8960e21b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2600482015290516001600160a01b03871691632f37b624916024808301926020929190829003018186803b15801561052257600080fd5b505afa158015610536573d6000803e3d6000fd5b505050506040513d602081101561054c57600080fd5b50515b1561056f575073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc261057c565b6105798585610993565b90505b61058a338787878588610e59565b9150506000805460ff19166001179055949350505050565b6105aa610854565b6105e9576040805162461bcd60e51b8152602060048201819052602482015260008051602061257e833981519152604482015290519081900360640190fd5b4760006106056105f7610840565b6001600160a01b03166110b3565b6040519091506001600160a01b0382169083156108fc029084906000818181858888f1935050505015801561063e573d6000803e3d6000fd5b505050565b61064b610854565b61068a576040805162461bcd60e51b8152602060048201819052602482015260008051602061257e833981519152604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b1580156106d457600080fd5b505afa1580156106e8573d6000803e3d6000fd5b505050506040513d60208110156106fe57600080fd5b505190506001600160a01b03821663a9059cbb610719610840565b836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561076957600080fd5b505af115801561077d573d6000803e3d6000fd5b505050506040513d602081101561079357600080fd5b50505050565b600054600160b01b900461ffff1681565b6107b2610854565b6107f1576040805162461bcd60e51b8152602060048201819052602482015260008051602061257e833981519152604482015290519081900360640190fd5b600080546040516101009091046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360008054610100600160a81b0319169055565b60005461010090046001600160a01b031690565b6000805461010090046001600160a01b031661086e6110b6565b6001600160a01b031614905090565b610885610854565b6108c4576040805162461bcd60e51b8152602060048201819052602482015260008051602061257e833981519152604482015290519081900360640190fd5b6127108161ffff161061091e576040805162461bcd60e51b815260206004820152601a60248201527f476f6f6457696c6c2056616c7565206e6f7420616c6c6f776564000000000000604482015290519081900360640190fd5b6000805461ffff909216600160b01b0261ffff60b01b19909216919091179055565b610948610854565b610987576040805162461bcd60e51b8152602060048201819052602482015260008051602061257e833981519152604482015290519081900360640190fd5b610990816110ba565b50565b60006060836001600160a01b031663be3bbd2e6040518163ffffffff1660e01b815260040160006040518083038186803b1580156109d057600080fd5b505afa1580156109e4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610a0d57600080fd5b8101908080516040519392919084600160201b821115610a2c57600080fd5b908301906020820185811115610a4157600080fd5b82518660208202830111600160201b82111715610a5d57600080fd5b82525081516020918201928201910280838360005b83811015610a8a578181015183820152602001610a72565b505050509050016040525050509050600080600090505b8251811015610e50576000610aca8787868581518110610abd57fe5b6020026020010151611165565b905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316848381518110610af657fe5b60200260200101516001600160a01b031614610e245760006001600160a01b0316735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6001600160a01b031663e6a43905868581518110610b4657fe5b602090810291909101810151604080516001600160e01b031960e086901b1681526001600160a01b03909216600483015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260248301525160448083019392829003018186803b158015610bad57600080fd5b505afa158015610bc1573d6000803e3d6000fd5b505050506040513d6020811015610bd757600080fd5b50516001600160a01b03161415610bee5750610e48565b6040805160028082526060808301845292602083019080388339019050509050848381518110610c1a57fe5b602002602001015181600081518110610c2f57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110610c7157fe5b6001600160a01b039092166020928302919091018201526040805163d06ca61f60e01b81526004810185815260248201928352845160448301528451600094737a250d5630b4cf539739df2c5dacb4c659f2488d9463d06ca61f9489948994909360649092019185810191028083838c5b83811015610cfa578181015183820152602001610ce2565b50505050905001935050505060006040518083038186803b158015610d1e57600080fd5b505afa158015610d32573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610d5b57600080fd5b8101908080516040519392919084600160201b821115610d7a57600080fd5b908301906020820185811115610d8f57600080fd5b82518660208202830111600160201b82111715610dab57600080fd5b82525081516020918201928201910280838360005b83811015610dd8578181015183820152602001610dc0565b50505050905001604052505050600181518110610df157fe5b6020026020010151905080851015610e1d57809450858481518110610e1257fe5b602002602001015196505b5050610e46565b80831015610e4657809250838281518110610e3b57fe5b602002602001015194505b505b600101610aa1565b50505092915050565b600080610e668686611450565b9050856001600160a01b03166323b872dd3330610e838986611580565b6040518463ffffffff1660e01b815260040180846001600160a01b03166001600160a01b03168152602001836001600160a01b03166001600160a01b031681526020018281526020019350505050602060405180830381600087803b158015610eeb57600080fd5b505af1158015610eff573d6000803e3d6000fd5b505050506040513d6020811015610f1557600080fd5b5051610f2057600080fd5b856001600160a01b0316632f37b624886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610f7657600080fd5b505afa158015610f8a573d6000803e3d6000fd5b505050506040513d6020811015610fa057600080fd5b505115610fc557610fbd86888a610fb78986611580565b876115c9565b9150506110a9565b6000610fdb8786610fd68986611580565b611705565b90506001600160a01b03881661109b576000610ff886838c6118e2565b90508481101561103f576040805162461bcd60e51b815260206004820152600d60248201526c4869676820736c69707061676560981b604482015290519081900360640190fd5b604080516001600160a01b03808d168252808b1660208301528b16818301526060810183905290517fccd66be260e4d251757c46211a144a9df723fe5d98726e537a900b7115b0e74d9181900360800190a192506110a9915050565b6000610ff8868b8b85611cdd565b9695505050505050565b90565b3390565b6001600160a01b0381166110ff5760405162461bcd60e51b81526004018080602001828103825260268152602001806125376026913960400191505060405180910390fd5b600080546040516001600160a01b038085169361010090930416917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600080846001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111a157600080fd5b505afa1580156111b5573d6000803e3d6000fd5b505050506040513d60208110156111cb57600080fd5b505160408051631a995bed60e31b815290519192506000916001600160a01b0388169163d4cadf68916004808301926020929190829003018186803b15801561121357600080fd5b505afa158015611227573d6000803e3d6000fd5b505050506040513d602081101561123d57600080fd5b50516040805163936c347760e01b815290519192506000916001600160a01b0389169163936c3477916004808301926020929190829003018186803b15801561128557600080fd5b505afa158015611299573d6000803e3d6000fd5b505050506040513d60208110156112af57600080fd5b50516040805163f8b2cb4f60e01b81526001600160a01b0388811660048301529151929350600092918a169163f8b2cb4f91602480820192602092909190829003018186803b15801561130157600080fd5b505afa158015611315573d6000803e3d6000fd5b505050506040513d602081101561132b57600080fd5b505160408051634a46c67360e11b81526001600160a01b0389811660048301529151929350600092918b169163948d8ce691602480820192602092909190829003018186803b15801561137d57600080fd5b505afa158015611391573d6000803e3d6000fd5b505050506040513d60208110156113a757600080fd5b505160408051634494c00960e11b815260048101859052602481018390526044810188905260648101869052608481018b905260a4810187905290519192506001600160a01b038b169163892980129160c480820192602092909190829003018186803b15801561141757600080fd5b505afa15801561142b573d6000803e3d6000fd5b505050506040513d602081101561144157600080fd5b50519998505050505050505050565b60008054600160b01b900461ffff1661146b5750600061157a565b60005461149090611488908490600160b01b900461ffff16612235565b61271061228e565b604080516323b872dd60e01b815233600482015273e737b6afec2320f616297e59445b60a11e3ef75f60248201526044810183905290519192506001600160a01b038516916323b872dd916064808201926020929091908290030181600087803b1580156114fd57600080fd5b505af1158015611511573d6000803e3d6000fd5b505050506040513d602081101561152757600080fd5b505161157a576040805162461bcd60e51b815260206004820152601b60248201527f4572726f7220696e207472616e7366657272696e67204250543a310000000000604482015290519081900360640190fd5b92915050565b60006115c283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506122d0565b9392505050565b60006115d6868685611705565b90508181101561161d576040805162461bcd60e51b815260206004820152600d60248201526c4869676820736c69707061676560981b604482015290519081900360640190fd5b604080516001600160a01b03808716825280891660208301528716818301526060810183905290517fccd66be260e4d251757c46211a144a9df723fe5d98726e537a900b7115b0e74d9181900360800190a1846001600160a01b031663a9059cbb85836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156116cf57600080fd5b505af11580156116e3573d6000803e3d6000fd5b505050506040513d60208110156116f957600080fd5b50909695505050505050565b6000836001600160a01b0316632f37b624846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561175d57600080fd5b505afa158015611771573d6000803e3d6000fd5b505050506040513d602081101561178757600080fd5b50516117cc576040805162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd08189bdd5b99608a1b604482015290519081900360640190fd5b60006117d9858486611165565b90506117f06117e9826062612235565b606461228e565b9050846001600160a01b03166346ab38f18585846040518463ffffffff1660e01b815260040180846001600160a01b03166001600160a01b031681526020018381526020018281526020019350505050602060405180830381600087803b15801561185a57600080fd5b505af115801561186e573d6000803e3d6000fd5b505050506040513d602081101561188457600080fd5b50519150816118da576040805162461bcd60e51b815260206004820152601e60248201527f4572726f7220696e2065786974696e672062616c616e63657220706f6f6c0000604482015290519081900360640190fd5b509392505050565b60006001600160a01b03841673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214156119ba5773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d846040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561196357600080fd5b505af1158015611977573d6000803e3d6000fd5b50506040516001600160a01b038516925085156108fc02915085906000818181858888f193505050501580156119b1573d6000803e3d6000fd5b508290506115c2565b6040805163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d60048201526024810185905290516001600160a01b0386169163095ea7b39160448083019260209291908290030181600087803b158015611a1d57600080fd5b505af1158015611a31573d6000803e3d6000fd5b505050506040513d6020811015611a4757600080fd5b505060408051600280825260608083018452926020830190803883390190505090508481600081518110611a7757fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110611ab957fe5b60200260200101906001600160a01b031690816001600160a01b031681525050737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03166318cbafe58560018487600f60fc1b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015611b7f578181015183820152602001611b67565b505050509050019650505050505050600060405180830381600087803b158015611ba857600080fd5b505af1158015611bbc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611be557600080fd5b8101908080516040519392919084600160201b821115611c0457600080fd5b908301906020820185811115611c1957600080fd5b82518660208202830111600160201b82111715611c3557600080fd5b82525081516020918201928201910280838360005b83811015611c62578181015183820152602001611c4a565b50505050905001604052505050600182510381518110611c7e57fe5b60200260200101519150600082116118da576040805162461bcd60e51b815260206004820152601860248201527f4572726f7220696e207377617070696e67204574683a20310000000000000000604482015290519081900360640190fd5b6000611cfe85737a250d5630b4cf539739df2c5dacb4c659f2488d84612367565b6001600160a01b03851673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214611f9757604080516003808252608082019092526060916020820183803883390190505090508581600081518110611d5257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110611d9457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508381600281518110611dc257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03166338ed17398460018489600f60fc1b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015611e88578181015183820152602001611e70565b505050509050019650505050505050600060405180830381600087803b158015611eb157600080fd5b505af1158015611ec5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611eee57600080fd5b8101908080516040519392919084600160201b821115611f0d57600080fd5b908301906020820185811115611f2257600080fd5b82518660208202830111600160201b82111715611f3e57600080fd5b82525081516020918201928201910280838360005b83811015611f6b578181015183820152602001611f53565b50505050905001604052505050600182510381518110611f8757fe5b60200260200101519150506121d8565b604080516002808252606080830184529260208301908038833901905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600081518110611fd957fe5b60200260200101906001600160a01b031690816001600160a01b031681525050838160018151811061200757fe5b60200260200101906001600160a01b031690816001600160a01b031681525050737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03166338ed17398460018489600f60fc1b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b838110156120cd5781810151838201526020016120b5565b505050509050019650505050505050600060405180830381600087803b1580156120f657600080fd5b505af115801561210a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561213357600080fd5b8101908080516040519392919084600160201b82111561215257600080fd5b90830190602082018581111561216757600080fd5b82518660208202830111600160201b8211171561218357600080fd5b82525081516020918201928201910280838360005b838110156121b0578181015183820152602001612198565b505050509050016040525050506001825103815181106121cc57fe5b60200260200101519150505b6000811161222d576040805162461bcd60e51b815260206004820152601860248201527f4572726f7220696e207377617070696e67204552433a20310000000000000000604482015290519081900360640190fd5b949350505050565b6000826122445750600061157a565b8282028284828161225157fe5b04146115c25760405162461bcd60e51b815260040180806020018281038252602181526020018061255d6021913960400191505060405180910390fd5b60006115c283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506124d1565b6000818484111561235f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561232457818101518382015260200161230c565b50505050905090810190601f1680156123515780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b178152925182516000946060949389169392918291908083835b602083106123e45780518252601f1990920191602091820191016123c5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612446576040519150601f19603f3d011682016040523d82523d6000602084013e61244b565b606091505b5091509150818015612479575080511580612479575080806020019051602081101561247657600080fd5b50515b6124ca576040805162461bcd60e51b815260206004820152601e60248201527f5472616e7366657248656c7065723a20415050524f56455f4641494c45440000604482015290519081900360640190fd5b5050505050565b600081836125205760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561232457818101518382015260200161230c565b50600083858161252c57fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a265627a7a72315820fd2c145f1dee4bc3b8627757d4358c84d64ae73e3135eb561180b874790168b164736f6c634300051100320000000000000000000000000000000000000000000000000000000000000000

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

0000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _goodwill (uint16): 0

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


Deployed ByteCode Sourcemap

25989:16895:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42492:86;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42492:86:0;;;:::i;27833:1344::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;27833:1344:0;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;42648:195;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42648:195:0;;;:::i;42265:187::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42265:187:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42265:187:0;-1:-1:-1;;;;;42265:187:0;;:::i;26162:22::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26162:22:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;11106:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11106:140:0;;;:::i;10295:79::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10295:79:0;;;:::i;:::-;;;;-1:-1:-1;;;;;10295:79:0;;;;;;;;;;;;;;10661:94;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10661:94:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;42019:238;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42019:238:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42019:238:0;;;;:::i;11401:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11401:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11401:109:0;-1:-1:-1;;;;;11401:109:0;;:::i;42492:86::-;10507:9;:7;:9::i;:::-;10499:54;;;;;-1:-1:-1;;;10499:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10499:54:0;;;;;;;;;;;;;;;42563:7;;;-1:-1:-1;;;;42552:18:0;;-1:-1:-1;;;42563:7:0;;;;;;42562:8;42552:18;;;;;;42492:86::o;27833:1344::-;28061:7;13927:11;;;;13919:55;;;;;-1:-1:-1;;;13919:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14066:5;14052:19;;-1:-1:-1;;14052:19:0;;;;;-1:-1:-1;;;27316:7:0;;14052:19;27316:7;27312:102;;;27340:28;;;-1:-1:-1;;;27340:28:0;;;;;;;;;;;;-1:-1:-1;;;27340:28:0;;;;;;;;;;;;;;27312:102;28103:49;;;-1:-1:-1;;;28103:49:0;;-1:-1:-1;;;;;28103:49:0;;;;;;;;26696:42;;28103:23;;:49;;;;;;;;;;;;;;26696:42;28103:49;;;5:2:-1;;;;30:1;27;20:12;5:2;28103:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28103:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28103:49:0;28081:120;;;;;-1:-1:-1;;;28081:120:0;;;;;;;;;;;;-1:-1:-1;;;28081:120:0;;;;;;;;;;;;;;;28214:25;28295:24;-1:-1:-1;;;;;28268:60:0;;28347:23;28268:117;;;;;;;;;;;;;-1:-1:-1;;;;;28268:117:0;-1:-1:-1;;;;;28268:117:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28268:117:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28268:117:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28268:117:0;28250:634;;;-1:-1:-1;28432:23:0;28250:634;;;-1:-1:-1;;;;;28491:37:0;;;:164;;;;-1:-1:-1;28545:110:0;;;-1:-1:-1;;;28545:110:0;;26807:42;28545:110;;;;;;-1:-1:-1;;;;;28545:60:0;;;;;:110;;;;;;;;;;;;;;:60;:110;;;5:2:-1;;;;30:1;27;20:12;5:2;28545:110:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28545:110:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28545:110:0;28491:164;28473:411;;;-1:-1:-1;26807:42:0;28473:411;;;28771:101;28802:24;28845:12;28771;:101::i;:::-;28751:121;;28473:411;28916:242;28949:10;28978:23;29020:24;29063:12;29094:17;29130:13;28916:14;:242::i;:::-;28894:275;;;14232:11;:18;;-1:-1:-1;;14232:18:0;14246:4;14232:18;;;27833:1344;;-1:-1:-1;;;;27833:1344:0:o;42648:195::-;10507:9;:7;:9::i;:::-;10499:54;;;;;-1:-1:-1;;;10499:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10499:54:0;;;;;;;;;;;;;;;42722:21;42696:23;42776:19;:7;:5;:7::i;:::-;-1:-1:-1;;;;;42776:17:0;;:19::i;:::-;42806:29;;42754:41;;-1:-1:-1;;;;;;42806:12:0;;;:29;;;;;42819:15;;42806:29;;;;42819:15;42806:12;:29;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42806:29:0;10564:1;;42648:195::o;42265:187::-;10507:9;:7;:9::i;:::-;10499:54;;;;;-1:-1:-1;;;10499:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10499:54:0;;;;;;;;;;;;;;;42359:38;;;-1:-1:-1;;;42359:38:0;;42391:4;42359:38;;;;;;42345:11;;-1:-1:-1;;;;;42359:23:0;;;;;:38;;;;;;;;;;;;;;;:23;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;42359:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42359:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42359:38:0;;-1:-1:-1;;;;;;42408:22:0;;;42431:7;:5;:7::i;:::-;42440:3;42408:36;;;;;;;;;;;;;-1:-1:-1;;;;;42408:36:0;-1:-1:-1;;;;;42408:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42408:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42408:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;42265:187:0:o;26162:22::-;;;-1:-1:-1;;;26162:22:0;;;;;:::o;11106:140::-;10507:9;:7;:9::i;:::-;10499:54;;;;;-1:-1:-1;;;10499:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10499:54:0;;;;;;;;;;;;;;;11205:1;11189:6;;11168:40;;11189:6;;;;-1:-1:-1;;;;;11189:6:0;;11168:40;;11205:1;;11168:40;11236:1;11219:19;;-1:-1:-1;;;;;;11219:19:0;;;11106:140::o;10295:79::-;10333:7;10360:6;;;;-1:-1:-1;;;;;10360:6:0;;10295:79::o;10661:94::-;10701:4;10741:6;;;;;-1:-1:-1;;;;;10741:6:0;10725:12;:10;:12::i;:::-;-1:-1:-1;;;;;10725:22:0;;10718:29;;10661:94;:::o;42019:238::-;10507:9;:7;:9::i;:::-;10499:54;;;;;-1:-1:-1;;;10499:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10499:54:0;;;;;;;;;;;;;;;42155:5;42139:13;:21;;;42095:119;;;;;-1:-1:-1;;;42095:119:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;42225:8;:24;;;;;;-1:-1:-1;;;42225:24:0;-1:-1:-1;;;;42225:24:0;;;;;;;;;42019:238::o;11401:109::-;10507:9;:7;:9::i;:::-;10499:54;;;;;-1:-1:-1;;;10499:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10499:54:0;;;;;;;;;;;;;;;11474:28;11493:8;11474:18;:28::i;:::-;11401:109;:::o;34662:1730::-;34788:14;34841:23;34908:24;-1:-1:-1;;;;;34867:105:0;;:107;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34867:107:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34867:107:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;34867:107:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;34867:107:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;-1:-1;;;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;34867:107:0;;421:4:-1;412:14;;;;34867:107:0;;;;;412:14:-1;34867:107: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;34867:107:0;;;;;;;;;;;34841:133;;34987:14;35019:13;35035:1;35019:17;;35014:1371;35046:6;:13;35038:5;:21;35014:1371;;;35131:20;35154:134;35186:24;35229:12;35260:6;35267:5;35260:13;;;;;;;;;;;;;;35154;:134::i;:::-;35131:157;;26807:42;-1:-1:-1;;;;;35353:33:0;:6;35360:5;35353:13;;;;;;;;;;;;;;-1:-1:-1;;;;;35353:33:0;;35349:1025;;35582:1;-1:-1:-1;;;;;35433:151:0;26393:42;-1:-1:-1;;;;;35433:31:0;;35491:6;35498:5;35491:13;;;;;;;;;;;;;;;;;;;35433:137;;;-1:-1:-1;;;;;;35433:137:0;;;;;;;-1:-1:-1;;;;;35433:137:0;;;;;;;26807:42;35433:137;;;;;;;;;;35491:13;35433:137;;;;;;;;;5:2:-1;;;;30:1;27;20:12;5:2;35433:137:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35433:137:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35433:137:0;-1:-1:-1;;;;;35433:151:0;;35407:248;;;35627:8;;;35407:248;35699:16;;;35713:1;35699:16;;;35675:21;35699:16;;;;;35675:21;35699:16;;;;;105:10:-1;35699:16:0;88:34:-1;136:17;;-1:-1;35699:16:0;35675:40;;35744:6;35751:5;35744:13;;;;;;;;;;;;;;35734:4;35739:1;35734:7;;;;;;;;;;;;;:23;-1:-1:-1;;;;;35734:23:0;;;-1:-1:-1;;;;;35734:23:0;;;;;26807:42;35776:4;35781:1;35776:7;;;;;;;;-1:-1:-1;;;;;35776:26:0;;;:7;;;;;;;;;;:26;35843:108;;;-1:-1:-1;;;35843:108:0;;;;;;;;;;;;;;;;;;;;;;35821:19;;26526:42;;35843:27;;35893:12;;35928:4;;35843:108;;;;;;;;;;;;;;;35821:19;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;35843:108:0;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35843:108:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35843:108:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;35843:108:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;35843:108:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;-1:-1;;;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;35843:108:0;;421:4:-1;412:14;;;;35843:108:0;;;;;412:14:-1;35843:108: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;35843:108:0;;;;;;;;;;;35952:1;35843:111;;;;;;;;;;;;;;35821:133;;36025:11;36016:6;:20;36012:134;;;36070:11;36061:20;;36113:6;36120:5;36113:13;;;;;;;;;;;;;;36104:22;;36012:134;35349:1025;;;;;36236:12;36227:6;:21;36223:136;;;36282:12;36273:21;;36326:6;36333:5;36326:13;;;;;;;;;;;;;;36317:22;;36223:136;35014:1371;;35061:7;;35014:1371;;;;34662:1730;;;;;;:::o;29822:2429::-;30097:7;30146:23;30172:94;30204:24;30243:12;30172:17;:94::i;:::-;30146:120;;30308:24;-1:-1:-1;;;;;30301:45:0;;30365:10;30402:4;30426:43;30439:12;30453:15;30426:12;:43::i;:::-;30301:183;;;;;;;;;;;;;-1:-1:-1;;;;;30301:183:0;-1:-1:-1;;;;;30301:183:0;;;;;;-1:-1:-1;;;;;30301:183:0;-1:-1:-1;;;;;30301:183:0;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30301:183:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30301:183:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30301:183:0;30279:216;;;;;;30553:24;-1:-1:-1;;;;;30526:60:0;;30605:23;30526:117;;;;;;;;;;;;;-1:-1:-1;;;;;30526:117:0;-1:-1:-1;;;;;30526:117:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30526:117:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30526:117:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30526:117:0;30508:479;;;30696:264;30732:24;30779:23;30825:14;30862:43;30875:12;30889:15;30862:12;:43::i;:::-;30928:13;30696;:264::i;:::-;30670:305;;;;;30508:479;31024:23;31050:154;31078:24;31117:18;31150:43;31163:12;31177:15;31150:12;:43::i;:::-;31050:13;:154::i;:::-;31024:180;-1:-1:-1;;;;;;31221:37:0;;31217:1027;;31275:17;31295:129;31324:18;31361:15;31395:14;31295:10;:129::i;:::-;31275:149;;31462:13;31449:9;:26;;31441:52;;;;;-1:-1:-1;;;31441:52:0;;;;;;;;;;;;-1:-1:-1;;;31441:52:0;;;;;;;;;;;;;;;31513:167;;;-1:-1:-1;;;;;31513:167:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31702:9;-1:-1:-1;31695:16:0;;-1:-1:-1;;31695:16:0;31217:1027;31744:19;31766:173;31797:18;31834:14;31867:23;31909:15;31766:12;:173::i;29822:2429::-;;;;;;;;;:::o;3538:159::-;3680:7;3538:159::o;8977:98::-;9057:10;8977:98;:::o;11616:266::-;-1:-1:-1;;;;;11704:22:0;;11682:110;;;;-1:-1:-1;;;11682:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11829:6;;;11808:38;;-1:-1:-1;;;;;11808:38:0;;;;11829:6;;;;;;11808:38;;;11857:6;:17;;-1:-1:-1;;;;;11857:17:0;;;;;-1:-1:-1;;;;;;11857:17:0;;;;;;;;;11616:266::o;36721:1101::-;36875:22;36910:19;36973:24;-1:-1:-1;;;;;36932:102:0;;:104;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;36932:104:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36932:104:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36932:104:0;37065:79;;;-1:-1:-1;;;37065:79:0;;;;36932:104;;-1:-1:-1;37047:15:0;;-1:-1:-1;;;;;37065:77:0;;;;;:79;;;;;36932:104;;37065:79;;;;;;;:77;:79;;;5:2:-1;;;;30:1;27;20:12;5:2;37065:79:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37065:79:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37065:79:0;37177:119;;;-1:-1:-1;;;37177:119:0;;;;37065:79;;-1:-1:-1;37155:19:0;;-1:-1:-1;;;;;37177:117:0;;;;;:119;;;;;37065:79;;37177:119;;;;;;;:117;:119;;;5:2:-1;;;;30:1;27;20:12;5:2;37177:119:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37177:119:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37177:119:0;37325:87;;;-1:-1:-1;;;37325:87:0;;-1:-1:-1;;;;;37325:87:0;;;;;;;;;37177:119;;-1:-1:-1;37307:15:0;;37325:77;;;;;;:87;;;;;37177:119;;37325:87;;;;;;;;:77;:87;;;5:2:-1;;;;30:1;27;20:12;5:2;37325:87:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37325:87:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37325:87:0;37440:98;;;-1:-1:-1;;;37440:98:0;;-1:-1:-1;;;;;37440:98:0;;;;;;;;;37325:87;;-1:-1:-1;37423:14:0;;37440:88;;;;;;:98;;;;;37325:87;;37440:98;;;;;;;;:88;:98;;;5:2:-1;;;;30:1;27;20:12;5:2;37440:98:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37440:98:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37440:98:0;37568:246;;;-1:-1:-1;;;37568:246:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37440:98;;-1:-1:-1;;;;;;37568:91:0;;;;;:246;;;;;37440:98;;37568:246;;;;;;;;:91;:246;;;5:2:-1;;;;30:1;27;20:12;5:2;37568:246:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37568:246:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37568:246:0;;36721:1101;-1:-1:-1;;;;;;;;;36721:1101:0:o;33732:623::-;33855:23;33895:8;;-1:-1:-1;;;33895:8:0;;;;33891:54;;-1:-1:-1;33932:1:0;33925:8;;33891:54;34029:8;;33975:94;;34002:36;;34015:12;;-1:-1:-1;;;34029:8:0;;;;34002:12;:36::i;:::-;34053:5;33975:12;:94::i;:::-;34104:155;;;-1:-1:-1;;;34104:155:0;;34165:10;34104:155;;;;26244:42;34104:155;;;;;;;;;;;;33957:112;;-1:-1:-1;;;;;;34104:42:0;;;;;:155;;;;;;;;;;;;;;;-1:-1:-1;34104:42:0;:155;;;5:2:-1;;;;30:1;27;20:12;5:2;34104:155:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34104:155:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34104:155:0;34082:232;;;;;-1:-1:-1;;;34082:232:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;33732:623;;;;:::o;15634:136::-;15692:7;15719:43;15723:1;15726;15719:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;15712:50;15634:136;-1:-1:-1;;;15634:136:0:o;32666:779::-;32895:22;32947:128;32975:24;33014:23;33052:12;32947:13;:128::i;:::-;32930:145;;33114:13;33096:14;:31;;33088:57;;;;;-1:-1:-1;;;33088:57:0;;;;;;;;;;;;-1:-1:-1;;;33088:57:0;;;;;;;;;;;;;;;33163:152;;;-1:-1:-1;;;;;33163:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33335:23;-1:-1:-1;;;;;33328:40:0;;33383:14;33412;33328:109;;;;;;;;;;;;;-1:-1:-1;;;;;33328:109:0;-1:-1:-1;;;;;33328:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33328:109:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33328:109:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32666:779:0;;;-1:-1:-1;;;;;;32666:779:0:o;38185:845::-;38344:22;38428:24;-1:-1:-1;;;;;38401:60:0;;38480:23;38401:117;;;;;;;;;;;;;-1:-1:-1;;;;;38401:117:0;-1:-1:-1;;;;;38401:117:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38401:117:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38401:117:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38401:117:0;38379:182;;;;;-1:-1:-1;;;38379:182:0;;;;;;;;;;;;-1:-1:-1;;;38379:182:0;;;;;;;;;;;;;;;38574:17;38594:123;38622:24;38661:7;38683:23;38594:13;:123::i;:::-;38574:143;;38740:46;38753:27;38766:9;38777:2;38753:12;:27::i;:::-;38782:3;38740:12;:46::i;:::-;38728:58;;38843:24;-1:-1:-1;;;;;38816:87:0;;38904:23;38929:7;38938:9;38816:132;;;;;;;;;;;;;-1:-1:-1;;;;;38816:132:0;-1:-1:-1;;;;;38816:132:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38816:132:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38816:132:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38816:132:0;;-1:-1:-1;38969:18:0;38961:61;;;;;-1:-1:-1;;;38961:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;38185:845;;;;;;:::o;41075:936::-;41236:17;-1:-1:-1;;;;;41270:45:0;;26807:42;41270:45;41266:210;;;26807:42;-1:-1:-1;;;;;41332:32:0;;41365:12;41332:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41332:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;41393:37:0;;-1:-1:-1;;;;;41393:23:0;;;-1:-1:-1;41393:37:0;;;;;-1:-1:-1;41417:12:0;;41393:37;;;;41417:12;41393:23;:37;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41393:37:0;41452:12;41445:19;;;;41266:210;41488:116;;;-1:-1:-1;;;41488:116:0;;26526:42;41488:116;;;;;;;;;;;;-1:-1:-1;;;;;41488:41:0;;;;;:116;;;;;;;;;;;;;;-1:-1:-1;41488:41:0;:116;;;5:2:-1;;;;30:1;27;20:12;5:2;41488:116:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41488:116:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;41641:16:0;;;41655:1;41641:16;;;41617:21;41641:16;;;;;41617:21;41641:16;;;;;105:10:-1;41641:16:0;88:34:-1;136:17;;-1:-1;41641:16:0;41617:40;;41678:25;41668:4;41673:1;41668:7;;;;;;;;;;;;;:35;-1:-1:-1;;;;;41668:35:0;;;-1:-1:-1;;;;;41668:35:0;;;;;26807:42;41714:4;41719:1;41714:7;;;;;;;;;;;;;:26;-1:-1:-1;;;;;41714:26:0;;;-1:-1:-1;;;;;41714:26:0;;;;;26526:42;-1:-1:-1;;;;;41763:35:0;;41813:12;41840:1;41856:4;41875:14;-1:-1:-1;;;41763:160:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41763:160:0;-1:-1:-1;;;;;41763:160: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;41763:160:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41763:160:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41763:160:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;41763:160:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;41763:160:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;-1:-1;;;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;41763:160:0;;421:4:-1;412:14;;;;41763:160:0;;;;;412:14:-1;41763:160: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;41763:160:0;;;;;;;;;;;41938:1;41924:4;:11;:15;41763:177;;;;;;;;;;;;;;41751:189;;41973:1;41961:9;:13;41953:50;;;;;-1:-1:-1;;;41953:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;39412:1340;39609:19;39641:141;39682:25;26526:42;39759:12;39641:26;:141::i;:::-;-1:-1:-1;;;;;39799:45:0;;26807:42;39799:45;39795:885;;39885:16;;;39899:1;39885:16;;;;;;;;;39861:21;;39885:16;;;39861:21;;105:10:-1;39885:16:0;88:34:-1;136:17;;-1:-1;39885:16:0;39861:40;;39926:25;39916:4;39921:1;39916:7;;;;;;;;;;;;;:35;-1:-1:-1;;;;;39916:35:0;;;-1:-1:-1;;;;;39916:35:0;;;;;26807:42;39966:4;39971:1;39966:7;;;;;;;;;;;;;:26;-1:-1:-1;;;;;39966:26:0;;;-1:-1:-1;;;;;39966:26:0;;;;;40017:23;40007:4;40012:1;40007:7;;;;;;;;;;;;;:33;-1:-1:-1;;;;;40007:33:0;;;-1:-1:-1;;;;;40007:33:0;;;;;26526:42;-1:-1:-1;;;;;40069:38:0;;40126:12;40157:1;40177:4;40200:14;-1:-1:-1;;;40069:187:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40069:187:0;-1:-1:-1;;;;;40069:187: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;40069:187:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;40069:187:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40069:187:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;40069:187:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;40069:187:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;-1:-1;;;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;40069:187:0;;421:4:-1;412:14;;;;40069:187:0;;;;;412:14:-1;40069:187: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;40069:187:0;;;;;;;;;;;40271:1;40257:4;:11;:15;40069:204;;;;;;;;;;;;;;40055:218;;39795:885;;;;40330:16;;;40344:1;40330:16;;;40306:21;40330:16;;;;;40306:21;40330:16;;;;;105:10:-1;40330:16:0;88:34:-1;136:17;;-1:-1;40330:16:0;40306:40;;26807:42;40361:4;40366:1;40361:7;;;;;;;;;;;;;:26;-1:-1:-1;;;;;40361:26:0;;;-1:-1:-1;;;;;40361:26:0;;;;;40412:23;40402:4;40407:1;40402:7;;;;;;;;;;;;;:33;-1:-1:-1;;;;;40402:33:0;;;-1:-1:-1;;;;;40402:33:0;;;;;26526:42;-1:-1:-1;;;;;40464:38:0;;40521:12;40552:1;40572:4;40595:14;-1:-1:-1;;;40464:187:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40464:187:0;-1:-1:-1;;;;;40464:187: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;40464:187:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;40464:187:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40464:187:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;40464:187:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;40464:187:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;-1:-1;;;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;40464:187:0;;421:4:-1;412:14;;;;40464:187:0;;;;;412:14:-1;40464:187: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;40464:187:0;;;;;;;;;;;40666:1;40652:4;:11;:15;40464:204;;;;;;;;;;;;;;40450:218;;39795:885;;40714:1;40700:11;:15;40692:52;;;;;-1:-1:-1;;;40692:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;39412:1340;;;;;;:::o;16584:471::-;16642:7;16887:6;16883:47;;-1:-1:-1;16917:1:0;16910:8;;16883:47;16954:5;;;16958:1;16954;:5;:1;16978:5;;;;;:10;16970:56;;;;-1:-1:-1;;;16970:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17523:132;17581:7;17608:39;17612:1;17615;17608:39;;;;;;;;;;;;;;;;;:3;:39::i;16107:226::-;16227:7;16263:12;16255:6;;;;16247:29;;;;-1:-1:-1;;;16247: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;16247:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;16299:5:0;;;16107:226::o;22624:456::-;22868:45;;;-1:-1:-1;;;;;22868:45:0;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;22868:45:0;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;22843:81:0;;;;22808:12;;22822:17;;22843:10;;;;22868:45;22843:81;;;25:18:-1;22843:81:0;;25:18:-1;36:153;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;;;22843:81: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;;22807:117:0;;;;22957:7;:57;;;;-1:-1:-1;22969:11:0;;:16;;:44;;;23000:4;22989:24;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22989:24:0;22969:44;22935:137;;;;;-1:-1:-1;;;22935:137:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;22624:456;;;;;:::o;18185:379::-;18305:7;18407:12;18400:5;18392:28;;;;-1:-1:-1;;;18392:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;18392:28:0;;18431:9;18447:1;18443;:5;;;;;;;18185:379;-1:-1:-1;;;;;18185:379:0:o

Swarm Source

bzzr://fd2c145f1dee4bc3b8627757d4358c84d64ae73e3135eb561180b874790168b1
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.