Contract 0x55a0e3b6579972055faa983482aceb4b251dcf15 6

 

Contract Overview

Paraswap
Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash
Block
From
To
Value [Txn Fee]
0xe4d472520315941ca0289b6c2072620b7aa2ef2240a7a88ffa7dea0af85a38e896718202021-08-02 0:12:361 min ago0x6be9f729f49bbb4d338d43b9bbf6b616111cb36d IN  Paraswap0 BNB0.001530573
0xf515ab2394f4bc5ca20edcf6238a6ef982644a0763ccc46cae1476ea089d277296718092021-08-02 0:12:011 min ago0x5070702d7510e72afd6f152f993c716c700c4b9f IN  Paraswap0 BNB0.001934355
0x409f1fb01323c36b1dae790b8c93c7d9bd06a69191896723d1d0ed64242109aa96718012021-08-02 0:11:332 mins ago0xd97eeb8b7f164cbbe9cb45c83c98d4e0bf502a4f IN  Paraswap0 BNB0.00264039
0x78b51fb8135248df61099402a014d08f78a1037a2a3773299bccc64acb3a89de96717312021-08-02 0:07:535 mins ago0x2319a7aa9b9c7d9b55c589efd9d7e27acd2c82e8 IN  Paraswap0 BNB0.00069597
0x4258e4539ca1a1a091c05e4e8f7c719be2cc7cdc0867aad9c543d97dc84f1e5196716842021-08-02 0:05:118 mins ago0x0238390452e812a9be80331443919c43d9b29389 IN  Paraswap0 BNB0.001901035
0x8104fd2c522ace67bea98f6e8414e449d4dbdb640376038a655299c4a8b92e7e96716482021-08-02 0:03:0110 mins ago0x0238390452e812a9be80331443919c43d9b29389 IN  Paraswap0 BNB0.00133175
0x6e1caf3a7479effc2f4235deb5be20e9cebc8959af1f9dc64380ee93d43d8b8396716432021-08-02 0:02:4110 mins ago0x33be0ee59c29253ed24a5e9085c8c56d02f97f67 IN  Paraswap0 BNB0.00146695
0x5d64da32d5cccf1ece317b84316a2e3414ef40ea0abbe8f7e33857a24cfa578896715822021-08-01 23:59:1314 mins ago0x42d4f8cf15106a5f6d082b2fa97f5dbbd30f16f8 IN  Paraswap0 BNB0.000908185
0x190f7ae7d18c488d15da998822678238eb21815feba6574d44e9d4a9e3d7844896715682021-08-01 23:58:2615 mins ago0x42d4f8cf15106a5f6d082b2fa97f5dbbd30f16f8 IN  Paraswap0 BNB0.00152575
0x4c053fcf1483fb5dc9ed414862934695bede683bbbe187d29db5582c268e9f4196715522021-08-01 23:57:3516 mins ago0x42d4f8cf15106a5f6d082b2fa97f5dbbd30f16f8 IN  Paraswap0 BNB0.00196211
0x1dc85fe70c084b0c6be1d0c202b20236f59c3a2c4a14c41b485a441f6d7ba23696715162021-08-01 23:55:4617 mins ago0x42d4f8cf15106a5f6d082b2fa97f5dbbd30f16f8 IN  Paraswap0 BNB0.00381779
0xd0e3cd01be0215b68f01f68180fc3c81b283ad60b67d1301742bbb269d769fb396714942021-08-01 23:54:4019 mins ago0x0238390452e812a9be80331443919c43d9b29389 IN  Paraswap0 BNB0.00303561
0x79bf1f1da524ef411cbf763ad5457c204898f0008a122c8f233a17e99263a14696714412021-08-01 23:52:0121 mins ago0xccd6cc1025c3f3eed2b827b03c1d27ef73643152 IN  Paraswap0 BNB0.000721045
0xb80b67cff384d1d7a0ea8349bb4725ab488a219eb97bd11fc35e72811fe522b296714302021-08-01 23:51:2822 mins ago0xccd6cc1025c3f3eed2b827b03c1d27ef73643152 IN  Paraswap0 BNB0.00241867
0x603b6a3c2004ead2e3cf5427267de2e6678da09021dad98d44a6aec5201504ba96712722021-08-01 23:43:3430 mins ago0x3883745603bf6e05c979ab4c6ccf589a426f14b1 IN  Paraswap0 BNB0.00103244
0x82c8ec49977ba6b86a808a380b28bb96d26e26abd8d67749d9bc13532cc917af96712492021-08-01 23:42:2531 mins ago0x33be0ee59c29253ed24a5e9085c8c56d02f97f67 IN  Paraswap0 BNB0.0014975
0x4e7243cd8bb8bb41dc99199db644be7f2cea488be71e2a45959aaf5825115cb896712062021-08-01 23:40:1633 mins ago0x3673d51bf146810af96de840571c811e0f32853f IN  Paraswap0 BNB0.00090125
0xc9f91532a99218b51aa859afde244aa22585f241c8814c13f00665f94a8f1bd596712022021-08-01 23:40:0433 mins ago0x585cdeb8d1044b8c1992abbb3be8d2462566db35 IN  Paraswap0 BNB0.001343855
0x8bbb68957636fbec7f7f12864f3462f6938f032f4ee8b153c827242b09afc31096711682021-08-01 23:38:2035 mins ago0x272c39c82ca9f10e5338a6ee75927cfe00c82e2c IN  Paraswap0 BNB0.004400048
0xb9160b35989bd72d1f490a6de04590aa0a78fadfd2d0c00b5925c3424e1ade1d96711582021-08-01 23:37:4535 mins ago0x272c39c82ca9f10e5338a6ee75927cfe00c82e2c IN  Paraswap0 BNB0.004609835
0xed88851c8825b28ae7dcfe1a83607dcb04f41dfe93f0bc0de9ac3a46b7a543be96709982021-08-01 23:28:5644 mins ago0x33be0ee59c29253ed24a5e9085c8c56d02f97f67 IN  Paraswap0 BNB0.00183901
0x62e51c7e20927cc683afbe85d4b163720443cddb26597c4a9489201d5b29bb7e96709972021-08-01 23:28:5344 mins ago0xd34b0305c8bccde02b34b3e927470bb947a9e746 IN  Paraswap0 BNB0.001613495
0x51b8be8761c450a2a23d9ed054572c7e7e1384f3a1c398be5d5c87a16148d53296709562021-08-01 23:26:4946 mins ago0x01a81db0abcf0bfc524cfd0e67d5c33ee3d2c308 IN  Paraswap0.03 BNB0.000813595
0x4080cb238e657572318b4422b3fcd6c7f58d3567d3693d505e3df307c05a12a596708102021-08-01 23:19:3154 mins ago0x01a81db0abcf0bfc524cfd0e67d5c33ee3d2c308 IN  Paraswap0 BNB0.000798605
0xd91a69c7bb62816b470261e6150337dc01c698e61e7f570b6af719a20fc031d696707072021-08-01 23:14:2259 mins ago0x2039692a113a81716d046c14b0cc4f62d480e3a5 IN  Paraswap5.34 BNB0.00164949
[ Download CSV Export 

OVERVIEW

ParaSwap is a DEX aggregator for traders and decentralized applications.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x4258e4539ca1a1a091c05e4e8f7c719be2cc7cdc0867aad9c543d97dc84f1e5196716842021-08-02 0:05:118 mins ago Paraswap Binance: WBNB Token3.344719911745546459 BNB
0x4258e4539ca1a1a091c05e4e8f7c719be2cc7cdc0867aad9c543d97dc84f1e5196716842021-08-02 0:05:118 mins ago Paraswap Binance: WBNB Token1.433451390748091339 BNB
0x4258e4539ca1a1a091c05e4e8f7c719be2cc7cdc0867aad9c543d97dc84f1e5196716842021-08-02 0:05:118 mins ago Binance: WBNB Token Paraswap4.778171302493637798 BNB
0xb570ce2adb9914f7d10469d939ea47152ebca66bc0cfdc53e70273fb0ab9aceb96716842021-08-02 0:05:118 mins ago Paraswap 0x252c3aa485ef76c504c8c78a38a502185a0cdb011.156 BNB
0xb570ce2adb9914f7d10469d939ea47152ebca66bc0cfdc53e70273fb0ab9aceb96716842021-08-02 0:05:118 mins ago Paraswap 0x4aad175a3940dab677423d526fac5974ff44484a0.544 BNB
0xb570ce2adb9914f7d10469d939ea47152ebca66bc0cfdc53e70273fb0ab9aceb96716842021-08-02 0:05:118 mins ago Dodoex: V2 Proxy Paraswap1.7 BNB
0x8104fd2c522ace67bea98f6e8414e449d4dbdb640376038a655299c4a8b92e7e96716482021-08-02 0:03:0110 mins ago Paraswap Binance: WBNB Token3.001122036391710213 BNB
0x8104fd2c522ace67bea98f6e8414e449d4dbdb640376038a655299c4a8b92e7e96716482021-08-02 0:03:0110 mins ago Binance: WBNB Token Paraswap3.001122036391710213 BNB
0x6e1caf3a7479effc2f4235deb5be20e9cebc8959af1f9dc64380ee93d43d8b8396716432021-08-02 0:02:4110 mins ago Paraswap Binance: WBNB Token6.001058580429581372 BNB
0x6e1caf3a7479effc2f4235deb5be20e9cebc8959af1f9dc64380ee93d43d8b8396716432021-08-02 0:02:4110 mins ago Binance: WBNB Token Paraswap6.001058580429581372 BNB
0x1dc85fe70c084b0c6be1d0c202b20236f59c3a2c4a14c41b485a441f6d7ba23696715162021-08-01 23:55:4617 mins ago Paraswap Binance: WBNB Token3.957675019511581656 BNB
0x1dc85fe70c084b0c6be1d0c202b20236f59c3a2c4a14c41b485a441f6d7ba23696715162021-08-01 23:55:4617 mins ago Binance: WBNB Token Paraswap0.642489279487904663 BNB
0x1dc85fe70c084b0c6be1d0c202b20236f59c3a2c4a14c41b485a441f6d7ba23696715162021-08-01 23:55:4617 mins ago Binance: WBNB Token Paraswap1.389694979499551111 BNB
0x1dc85fe70c084b0c6be1d0c202b20236f59c3a2c4a14c41b485a441f6d7ba23696715162021-08-01 23:55:4617 mins ago Binance: WBNB Token Paraswap1.925490760524125882 BNB
0xd0e3cd01be0215b68f01f68180fc3c81b283ad60b67d1301742bbb269d769fb396714942021-08-01 23:54:4019 mins ago Paraswap Binance: WBNB Token0.179927366984557411 BNB
0xd0e3cd01be0215b68f01f68180fc3c81b283ad60b67d1301742bbb269d769fb396714942021-08-01 23:54:4019 mins ago Paraswap Binance: WBNB Token2.818862082758066094 BNB
0xd0e3cd01be0215b68f01f68180fc3c81b283ad60b67d1301742bbb269d769fb396714942021-08-01 23:54:4019 mins ago Binance: WBNB Token Paraswap1.919267381882866764 BNB
0xd0e3cd01be0215b68f01f68180fc3c81b283ad60b67d1301742bbb269d769fb396714942021-08-01 23:54:4019 mins ago Binance: WBNB Token Paraswap1.079522067859756741 BNB
0x47f1e2f8880be99064800c9081d459d97c4bd7ae95f94841ce7066337c003e4f96714862021-08-01 23:54:1619 mins ago Paraswap Binance: WBNB Token4.8 BNB
0x47f1e2f8880be99064800c9081d459d97c4bd7ae95f94841ce7066337c003e4f96714862021-08-01 23:54:1619 mins ago Paraswap Binance: WBNB Token5.2 BNB
0x47f1e2f8880be99064800c9081d459d97c4bd7ae95f94841ce7066337c003e4f96714862021-08-01 23:54:1619 mins ago Dodoex: V2 Proxy Paraswap10 BNB
0xb80b67cff384d1d7a0ea8349bb4725ab488a219eb97bd11fc35e72811fe522b296714302021-08-01 23:51:2822 mins ago Paraswap Binance: WBNB Token2.365317661200306789 BNB
0xb80b67cff384d1d7a0ea8349bb4725ab488a219eb97bd11fc35e72811fe522b296714302021-08-01 23:51:2822 mins ago Paraswap Binance: WBNB Token1.273632586800165193 BNB
0xb80b67cff384d1d7a0ea8349bb4725ab488a219eb97bd11fc35e72811fe522b296714302021-08-01 23:51:2822 mins ago Paraswap Binance: WBNB Token0.909737562000117995 BNB
0xb80b67cff384d1d7a0ea8349bb4725ab488a219eb97bd11fc35e72811fe522b296714302021-08-01 23:51:2822 mins ago Binance: WBNB Token Paraswap4.548687810000589977 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AugustusSwapper

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion
File 1 of 1 : AugustusSwapper.sol
// File: original_contracts/IWhitelisted.sol

pragma solidity 0.7.5;


interface IWhitelisted {

    function hasRole(
        bytes32 role,
        address account
    )
        external
        view
        returns (bool);

    function WHITELISTED_ROLE() external view returns(bytes32);
}

// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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: original_contracts/lib/IExchange.sol

pragma solidity 0.7.5;



/**
* @dev This interface should be implemented by all exchanges which needs to integrate with the paraswap protocol
*/
interface IExchange {

    /**
   * @dev The function which performs the swap on an exchange.
   * Exchange needs to implement this method in order to support swapping of tokens through it
   * @param fromToken Address of the source token
   * @param toToken Address of the destination token
   * @param fromAmount Amount of source tokens to be swapped
   * @param toAmount Minimum destination token amount expected out of this swap
   * @param exchange Internal exchange or factory contract address for the exchange. For example Registry address for the Uniswap
   * @param payload Any exchange specific data which is required can be passed in this argument in encoded format which
   * will be decoded by the exchange. Each exchange will publish it's own decoding/encoding mechanism
   */
   //TODO: REMOVE RETURN STATEMENT
    function swap(
        IERC20 fromToken,
        IERC20 toToken,
        uint256 fromAmount,
        uint256 toAmount,
        address exchange,
        bytes calldata payload) external payable;

  /**
   * @dev The function which performs the swap on an exchange.
   * Exchange needs to implement this method in order to support swapping of tokens through it
   * @param fromToken Address of the source token
   * @param toToken Address of the destination token
   * @param fromAmount Max Amount of source tokens to be swapped
   * @param toAmount Destination token amount expected out of this swap
   * @param exchange Internal exchange or factory contract address for the exchange. For example Registry address for the Uniswap
   * @param payload Any exchange specific data which is required can be passed in this argument in encoded format which
   * will be decoded by the exchange. Each exchange will publish it's own decoding/encoding mechanism
   */
    function buy(
        IERC20 fromToken,
        IERC20 toToken,
        uint256 fromAmount,
        uint256 toAmount,
        address exchange,
        bytes calldata payload) external payable;

    /**
   * @dev This function is used to perform onChainSwap. It build all the parameters onchain. Basically the information
   * encoded in payload param of swap will calculated in this case
   * Exchange needs to implement this method in order to support swapping of tokens through it
   * @param fromToken Address of the source token
   * @param toToken Address of the destination token
   * @param fromAmount Amount of source tokens to be swapped
   * @param toAmount Minimum destination token amount expected out of this swap
   */
    function onChainSwap(
        IERC20 fromToken,
        IERC20 toToken,
        uint256 fromAmount,
        uint256 toAmount
    ) external payable returns (uint256);

    /**
    * @dev Certain adapters/exchanges needs to be initialized.
    * This method will be called from Augustus
    */
    function initialize(bytes calldata data) external;

    /**
    * @dev Returns unique identifier for the adapter
    */
    function getKey() external pure returns(bytes32);
}

// File: openzeppelin-solidity/contracts/math/SafeMath.sol



pragma solidity >=0.6.0 <0.8.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.
     */
    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.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        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.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: original_contracts/lib/SafeERC20.sol

pragma solidity 0.7.5;




library Address {

    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

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

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

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


library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

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

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

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

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

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

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

// File: original_contracts/ITokenTransferProxy.sol

pragma solidity 0.7.5;


interface ITokenTransferProxy {

    function transferFrom(
        address token,
        address from,
        address to,
        uint256 amount
    )
        external;

    function freeReduxTokens(address user, uint256 tokensToFree) external;
}

// File: original_contracts/lib/Utils.sol

pragma solidity 0.7.5;






library Utils {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    address constant ETH_ADDRESS = address(
        0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
    );

    address constant WETH_ADDRESS = address(
        0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270
    );

    uint256 constant MAX_UINT = 2 ** 256 - 1;

    /**
   * @param fromToken Address of the source token
   * @param fromAmount Amount of source tokens to be swapped
   * @param toAmount Minimum destination token amount expected out of this swap
   * @param expectedAmount Expected amount of destination tokens without slippage
   * @param beneficiary Beneficiary address
   * 0 then 100% will be transferred to beneficiary. Pass 10000 for 100%
   * @param referrer referral id
   * @param useReduxToken whether to use redux token or not
   * @param path Route to be taken for this swap to take place

   */
    struct SellData {
        address fromToken;
        uint256 fromAmount;
        uint256 toAmount;
        uint256 expectedAmount;
        address payable beneficiary;
        string referrer;
        bool useReduxToken;
        Utils.Path[] path;

    }

    struct MegaSwapSellData {
        address fromToken;
        uint256 fromAmount;
        uint256 toAmount;
        uint256 expectedAmount;
        address payable beneficiary;
        string referrer;
        bool useReduxToken;
        Utils.MegaSwapPath[] path;
    }

    struct BuyData {
        address fromToken;
        address toToken;
        uint256 fromAmount;
        uint256 toAmount;
        address payable beneficiary;
        string referrer;
        bool useReduxToken;
        Utils.BuyRoute[] route;
    }

    struct Route {
        address payable exchange;
        address targetExchange;
        uint percent;
        bytes payload;
        uint256 networkFee;//Network fee is associated with 0xv3 trades
    }

    struct MegaSwapPath {
        uint256 fromAmountPercent;
        Path[] path;
    }

    struct Path {
        address to;
        uint256 totalNetworkFee;//Network fee is associated with 0xv3 trades
        Route[] routes;
    }

    struct BuyRoute {
        address payable exchange;
        address targetExchange;
        uint256 fromAmount;
        uint256 toAmount;
        bytes payload;
        uint256 networkFee;//Network fee is associated with 0xv3 trades
    }

    function ethAddress() internal pure returns (address) {return ETH_ADDRESS;}

    function wethAddress() internal pure returns (address) {return WETH_ADDRESS;}

    function maxUint() internal pure returns (uint256) {return MAX_UINT;}

    function approve(
        address addressToApprove,
        address token,
        uint256 amount
    ) internal {
        if (token != ETH_ADDRESS) {
            IERC20 _token = IERC20(token);

            uint allowance = _token.allowance(address(this), addressToApprove);

            if (allowance < amount) {
                _token.safeApprove(addressToApprove, 0);
                _token.safeIncreaseAllowance(addressToApprove, MAX_UINT);
            }
        }
    }

    function transferTokens(
        address token,
        address payable destination,
        uint256 amount
    )
    internal
    {
        if (amount > 0) {
            if (token == ETH_ADDRESS) {
                (bool result, ) = destination.call{value: amount, gas: 4000}("");
                require(result, "Failed to transfer Ether");
            }
            else {
                IERC20(token).safeTransfer(destination, amount);
            }
        }

    }

    function tokenBalance(
        address token,
        address account
    )
    internal
    view
    returns (uint256)
    {
        if (token == ETH_ADDRESS) {
            return account.balance;
        } else {
            return IERC20(token).balanceOf(account);
        }
    }

    /**
    * @dev Helper method to refund gas using gas tokens
    */
    function refundGas(
        address account,
        address tokenTransferProxy,
        uint256 initialGas
    )
        internal
    {
        uint256 freeBase = 14154;
        uint256 freeToken = 6870;
        uint256 reimburse = 24000;

        uint256 tokens = initialGas.sub(
            gasleft()).add(freeBase).div(reimburse.mul(2).sub(freeToken)
        );

        freeGasTokens(account, tokenTransferProxy, tokens);
    }

    /**
    * @dev Helper method to free gas tokens
    */
    function freeGasTokens(address account, address tokenTransferProxy, uint256 tokens) internal {

        uint256 tokensToFree = tokens;
        uint256 safeNumTokens = 0;
        uint256 gas = gasleft();

        if (gas >= 27710) {
            safeNumTokens = gas.sub(27710).div(1148 + 5722 + 150);
        }

        if (tokensToFree > safeNumTokens) {
            tokensToFree = safeNumTokens;
        }
        ITokenTransferProxy(tokenTransferProxy).freeReduxTokens(account, tokensToFree);
    }
}

// File: openzeppelin-solidity/contracts/GSN/Context.sol



pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

// File: openzeppelin-solidity/contracts/access/Ownable.sol



pragma solidity >=0.6.0 <0.8.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.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () 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(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

// File: original_contracts/IReduxToken.sol

pragma solidity 0.7.5;

interface IReduxToken {

    function freeUpTo(uint256 value) external returns (uint256 freed);

    function freeFromUpTo(address from, uint256 value) external returns (uint256 freed);

    function mint(uint256 value) external;
}

// File: original_contracts/TokenTransferProxy.sol

pragma solidity 0.7.5;







/**
* @dev Allows owner of the contract to transfer tokens on behalf of user.
* User will need to approve this contract to spend tokens on his/her behalf
* on Paraswap platform
*/
contract TokenTransferProxy is Ownable, ITokenTransferProxy {
    using SafeERC20 for IERC20;

    IReduxToken public reduxToken;

    constructor(address _reduxToken) public {
        reduxToken = IReduxToken(_reduxToken);
    }

    /**
    * @dev Allows owner of the contract to transfer tokens on user's behalf
    * @dev Swapper contract will be the owner of this contract
    * @param token Address of the token
    * @param from Address from which tokens will be transferred
    * @param to Receipent address of the tokens
    * @param amount Amount of tokens to transfer
    */
    function transferFrom(
        address token,
        address from,
        address to,
        uint256 amount
    )
        external
        override
        onlyOwner
    {
        IERC20(token).safeTransferFrom(from, to, amount);
    }

    function freeReduxTokens(address user, uint256 tokensToFree) external override onlyOwner {
        reduxToken.freeFromUpTo(user, tokensToFree);
    }

}

// File: original_contracts/IPartnerRegistry.sol

pragma solidity 0.7.5;


interface IPartnerRegistry {

    function getPartnerContract(string calldata referralId) external view returns(address);

}

// File: original_contracts/IPartner.sol

pragma solidity 0.7.5;


interface IPartner {

    function getPartnerInfo() external view returns(
        address payable feeWallet,
        uint256 fee,
        uint256 partnerShare,
        uint256 paraswapShare,
        bool positiveSlippageToUser,
        bool noPositiveSlippage
    );
}

// File: original_contracts/lib/TokenFetcherAugustus.sol

pragma solidity 0.7.5;



contract TokenFetcherAugustus {

    address internal _owner;

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

    /**
     * @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(_owner == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
    /**
    * @dev Allows owner of the contract to transfer any tokens which are assigned to the contract
    * This method is for safety if by any chance tokens or ETHs are assigned to the contract by mistake
    * @dev token Address of the token to be transferred
    * @dev destination Recepient of the token
    * @dev amount Amount of tokens to be transferred
    */
    function transferTokens(
        address token,
        address payable destination,
        uint256 amount
    )
        external
        onlyOwner
    {
        Utils.transferTokens(token, destination, amount);
    }
}

// File: original_contracts/IWETH.sol

pragma solidity 0.7.5;



abstract contract IWETH is IERC20 {
    function deposit() external virtual payable;
    function withdraw(uint256 amount) external virtual;
}

// File: original_contracts/IUniswapProxy.sol

pragma solidity 0.7.5;


interface IUniswapProxy {
    function swapOnUniswap(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path
    )
        external
        returns (uint256);

    function swapOnUniswapFork(
        address factory,
        bytes32 initCode,
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path
    )
        external
        returns (uint256);

    function buyOnUniswap(
        uint256 amountInMax,
        uint256 amountOut,
        address[] calldata path
    )
        external
        returns (uint256 tokensSold);

    function buyOnUniswapFork(
        address factory,
        bytes32 initCode,
        uint256 amountInMax,
        uint256 amountOut,
        address[] calldata path
    )
        external
        returns (uint256 tokensSold);

   function setupTokenSpender(address tokenSpender) external;

}

// File: original_contracts/AdapterStorage.sol

pragma solidity 0.7.5;



contract AdapterStorage {

    mapping (bytes32 => bool) internal adapterInitialized;
    mapping (bytes32 => bytes) internal adapterVsData;
    ITokenTransferProxy internal _tokenTransferProxy;

    function isInitialized(bytes32 key) public view returns(bool) {
        return adapterInitialized[key];
    }

    function getData(bytes32 key) public view returns(bytes memory) {
        return adapterVsData[key];
    }

    function getTokenTransferProxy() public view returns (address) {
        return address(_tokenTransferProxy);
    }
}

// File: original_contracts/AugustusSwapper.sol

pragma solidity 0.7.5;
pragma experimental ABIEncoderV2;













contract AugustusSwapper is AdapterStorage, TokenFetcherAugustus {
    using SafeMath for uint256;

    IWhitelisted private _whitelisted;

    IPartnerRegistry private _partnerRegistry;

    address payable private _feeWallet;

    address private _uniswapProxy;

    address private _pendingUniswapProxy;

    uint256 private _changeRequestedBlock;

    //Number of blocks after which UniswapProxy change can be confirmed
    uint256 private _timelock;

    event Swapped(
        address initiator,
        address indexed beneficiary,
        address indexed srcToken,
        address indexed destToken,
        uint256 srcAmount,
        uint256 receivedAmount,
        uint256 expectedAmount,
        string referrer
    );

    event Bought(
        address initiator,
        address indexed beneficiary,
        address indexed srcToken,
        address indexed destToken,
        uint256 srcAmount,
        uint256 receivedAmount,
        string referrer
    );

    event FeeTaken(
        uint256 fee,
        uint256 partnerShare,
        uint256 paraswapShare
    );

    event AdapterInitialized(address indexed adapter);

    modifier onlySelf() {
        require(
            msg.sender == address(this),
            "AugustusSwapper: Invalid access"
        );
        _;
    }

    receive () payable external {

    }

    function getTimeLock() external view returns(uint256) {
      return _timelock;
    }

    function initialize(
        address whitelist,
        address reduxToken,
        address partnerRegistry,
        address payable feeWallet,
        address uniswapProxy,
        uint256 timelock
    )
        external
    {
        require(address(_tokenTransferProxy) == address(0), "Contract already initialized!!");
        _partnerRegistry = IPartnerRegistry(partnerRegistry);
        TokenTransferProxy lTokenTransferProxy = new TokenTransferProxy(reduxToken);
        _tokenTransferProxy = ITokenTransferProxy(lTokenTransferProxy);
        _whitelisted = IWhitelisted(whitelist);
        _feeWallet = feeWallet;
        _uniswapProxy = uniswapProxy;
        _owner = msg.sender;
        _timelock = timelock;
    }

    function initializeAdapter(address adapter, bytes calldata data) external onlyOwner {

        require(
            _whitelisted.hasRole(_whitelisted.WHITELISTED_ROLE(), adapter),
            "Exchange not whitelisted"
        );
        (bool success,) = adapter.delegatecall(abi.encodeWithSelector(IExchange.initialize.selector, data));
        require(success, "Failed to initialize adapter");
        emit AdapterInitialized(adapter);
    }

    function getPendingUniswapProxy() external view returns(address) {
      return  _pendingUniswapProxy;
    }

    function getChangeRequestedBlock() external view returns(uint256) {
      return _changeRequestedBlock;
    }

    function getUniswapProxy() external view returns(address) {
        return _uniswapProxy;
    }

    function getVersion() external view returns(string memory) {
        return "4.0.0";
    }

    function getPartnerRegistry() external view returns(address) {
        return address(_partnerRegistry);
    }

    function getWhitelistAddress() external view returns(address) {
        return address(_whitelisted);
    }

    function getFeeWallet() external view returns(address) {
        return _feeWallet;
    }

    function changeUniswapProxy(address uniswapProxy) external onlyOwner {
        require(uniswapProxy != address(0), "Invalid address");
        _changeRequestedBlock = block.number;
        _pendingUniswapProxy = uniswapProxy;
    }

    function confirmUniswapProxyChange() external onlyOwner {
        require(
            block.number >= _changeRequestedBlock.add(_timelock),
            "Time lock check failed"
        );

        require(_pendingUniswapProxy != address(0), "No pending request");

        _changeRequestedBlock = 0;
        _uniswapProxy = _pendingUniswapProxy;
        _pendingUniswapProxy = address(0);
    }

    function setFeeWallet(address payable feeWallet) external onlyOwner {
        require(feeWallet != address(0), "Invalid address");
        _feeWallet = feeWallet;
    }

    function setPartnerRegistry(address partnerRegistry) external onlyOwner {
        require(partnerRegistry != address(0), "Invalid address");
        _partnerRegistry = IPartnerRegistry(partnerRegistry);
    }

    function setWhitelistAddress(address whitelisted) external onlyOwner {
        require(whitelisted != address(0), "Invalid whitelist address");
        _whitelisted = IWhitelisted(whitelisted);
    }

    function swapOnUniswap(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        uint8 referrer
    )
        external
        payable
    {
        //DELEGATING CALL TO THE ADAPTER
        (bool success, bytes memory result) = _uniswapProxy.delegatecall(
            abi.encodeWithSelector(
                IUniswapProxy.swapOnUniswap.selector,
                amountIn,
                amountOutMin,
                path
            )
        );
        require(success, "Call to uniswap proxy failed");

    }

    function buyOnUniswap(
        uint256 amountInMax,
        uint256 amountOut,
        address[] calldata path,
        uint8 referrer
    )
        external
        payable
    {
        //DELEGATING CALL TO THE ADAPTER
        (bool success, bytes memory result) = _uniswapProxy.delegatecall(
            abi.encodeWithSelector(
                IUniswapProxy.buyOnUniswap.selector,
                amountInMax,
                amountOut,
                path
            )
        );
        require(success, "Call to uniswap proxy failed");

    }

    function buyOnUniswapFork(
        address factory,
        bytes32 initCode,
        uint256 amountInMax,
        uint256 amountOut,
        address[] calldata path,
        uint8 referrer
    )
        external
        payable
    {
        //DELEGATING CALL TO THE ADAPTER
        (bool success, bytes memory result) = _uniswapProxy.delegatecall(
            abi.encodeWithSelector(
                IUniswapProxy.buyOnUniswapFork.selector,
                factory,
                initCode,
                amountInMax,
                amountOut,
                path
            )
        );
        require(success, "Call to uniswap proxy failed");

    }

    function swapOnUniswapFork(
        address factory,
        bytes32 initCode,
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        uint8 referrer
    )
        external
        payable

    {
        //DELEGATING CALL TO THE ADAPTER
        (bool success, bytes memory result) = _uniswapProxy.delegatecall(
            abi.encodeWithSelector(
                IUniswapProxy.swapOnUniswapFork.selector,
                factory,
                initCode,
                amountIn,
                amountOutMin,
                path
            )
        );
        require(success, "Call to uniswap proxy failed");

    }

    function simplBuy(
        address fromToken,
        address toToken,
        uint256 fromAmount,
        uint256 toAmount,
        address[] memory callees,
        bytes memory exchangeData,
        uint256[] memory startIndexes,
        uint256[] memory values,
        address payable beneficiary,
        string memory referrer,
        bool useReduxToken
    )
        external
        payable

    {
        beneficiary = beneficiary == address(0) ? msg.sender : beneficiary;
        uint receivedAmount = performSimpleSwap(
            fromToken,
            toToken,
            fromAmount,
            toAmount,
            toAmount,//expected amount and to amount are same in case of buy
            callees,
            exchangeData,
            startIndexes,
            values,
            beneficiary,
            referrer,
            useReduxToken
        );

        uint256 remainingAmount = Utils.tokenBalance(
            fromToken,
            address(this)
        );

        if (remainingAmount > 0) {
            Utils.transferTokens(address(fromToken), msg.sender, remainingAmount);
        }

        emit Bought(
            msg.sender,
            beneficiary,
            fromToken,
            toToken,
            fromAmount,
            receivedAmount,
            referrer
        );
    }

    function approve(
        address token,
        address to,
        uint256 amount
    )
        external
        onlySelf
    {
        Utils.approve(to, token, amount);
    }

    function simpleSwap(
        address fromToken,
        address toToken,
        uint256 fromAmount,
        uint256 toAmount,
        uint256 expectedAmount,
        address[] memory callees,
        bytes memory exchangeData,
        uint256[] memory startIndexes,
        uint256[] memory values,
        address payable beneficiary,
        string memory referrer,
        bool useReduxToken
    )
        public
        payable
        returns (uint256 receivedAmount)
    {
        beneficiary = beneficiary == address(0) ? msg.sender : beneficiary;
        receivedAmount = performSimpleSwap(
            fromToken,
            toToken,
            fromAmount,
            toAmount,
            expectedAmount,
            callees,
            exchangeData,
            startIndexes,
            values,
            beneficiary,
            referrer,
            useReduxToken
        );

        emit Swapped(
            msg.sender,
            beneficiary,
            fromToken,
            toToken,
            fromAmount,
            receivedAmount,
            expectedAmount,
            referrer
        );

        return receivedAmount;
    }

    function transferTokensFromProxy(
        address token,
        uint256 amount
    )
      private
    {
        if (token != Utils.ethAddress()) {
            _tokenTransferProxy.transferFrom(
                token,
                msg.sender,
                address(this),
                amount
            );
        }
    }

    function performSimpleSwap(
        address fromToken,
        address toToken,
        uint256 fromAmount,
        uint256 toAmount,
        uint256 expectedAmount,
        address[] memory callees,
        bytes memory exchangeData,
        uint256[] memory startIndexes,
        uint256[] memory values,
        address payable beneficiary,
        string memory referrer,
        bool useReduxToken
    )
        private
        returns (uint256 receivedAmount)
    {
        require(toAmount > 0, "toAmount is too low");
        require(
            callees.length + 1 == startIndexes.length,
            "Start indexes must be 1 greater then number of callees"
        );

        uint initialGas = gasleft();

        //If source token is not ETH than transfer required amount of tokens
        //from sender to this contract
        transferTokensFromProxy(fromToken, fromAmount);

        for (uint256 i = 0; i < callees.length; i++) {
            require(
                callees[i] != address(_tokenTransferProxy),
                "Can not call TokenTransferProxy Contract"
            );

            bool result = externalCall(
                callees[i], //destination
                values[i], //value to send
                startIndexes[i], // start index of call data
                startIndexes[i + 1].sub(startIndexes[i]), // length of calldata
                exchangeData// total calldata
            );
            require(result, "External call failed");
        }

        receivedAmount = Utils.tokenBalance(
            toToken,
            address(this)
        );

        require(
            receivedAmount >= toAmount,
            "Received amount of tokens are less then expected"
        );

        takeFeeAndTransferTokens(
            toToken,
            expectedAmount,
            receivedAmount,
            beneficiary,
            referrer
        );

        if (useReduxToken) {
            Utils.refundGas(msg.sender, address(_tokenTransferProxy), initialGas);
        }

        return receivedAmount;
    }

    /**
   * @dev This function sends the WETH returned during the exchange to the user.
   * @param token: The WETH Address
   */
    function withdrawAllWETH(IWETH token) external onlySelf {
        uint256 amount = token.balanceOf(address(this));
        token.withdraw(amount);
    }

    /**
   * @dev The function which performs the multi path swap.
   * @param data Data required to perform swap.
   */
    function multiSwap(
        Utils.SellData memory data
    )
        public
        payable
        returns (uint256)
    {
        uint initialGas = gasleft();

        address fromToken = data.fromToken;
        uint256 fromAmount = data.fromAmount;
        uint256 toAmount = data.toAmount;
        uint256 expectedAmount = data.expectedAmount;
        address payable beneficiary = data.beneficiary == address(0) ? msg.sender : data.beneficiary;
        string memory referrer = data.referrer;
        Utils.Path[] memory path = data.path;
        address toToken = path[path.length - 1].to;
        bool useReduxToken = data.useReduxToken;

        //Referral can never be empty
        require(bytes(referrer).length > 0, "Invalid referrer");

        require(toAmount > 0, "To amount can not be 0");

        //if fromToken is not ETH then transfer tokens from user to this contract
        if (fromToken != Utils.ethAddress()) {
            _tokenTransferProxy.transferFrom(
                fromToken,
                msg.sender,
                address(this),
                fromAmount
            );
        }

        performSwap(
            fromToken,
            fromAmount,
            path
        );


        uint256 receivedAmount = Utils.tokenBalance(
            toToken,
            address(this)
        );

        require(
            receivedAmount >= toAmount,
            "Received amount of tokens are less then expected"
        );


        takeFeeAndTransferTokens(
            toToken,
            expectedAmount,
            receivedAmount,
            beneficiary,
            referrer
        );

        if (useReduxToken) {
            Utils.refundGas(msg.sender, address(_tokenTransferProxy), initialGas);
        }

        emit Swapped(
            msg.sender,
            beneficiary,
            fromToken,
            toToken,
            fromAmount,
            receivedAmount,
            expectedAmount,
            referrer
        );

        return receivedAmount;
    }

    /**
   * @dev The function which performs the mega path swap.
   * @param data Data required to perform swap.
   */
    function megaSwap(
        Utils.MegaSwapSellData memory data
    )
        public
        payable
        returns (uint256)
    {
        uint initialGas = gasleft();

        address fromToken = data.fromToken;
        uint256 fromAmount = data.fromAmount;
        uint256 toAmount = data.toAmount;
        uint256 expectedAmount = data.expectedAmount;
        address payable beneficiary = data.beneficiary == address(0) ? msg.sender : data.beneficiary;
        string memory referrer = data.referrer;
        Utils.MegaSwapPath[] memory path = data.path;
        address toToken = path[0].path[path[0].path.length - 1].to;
        bool useReduxToken = data.useReduxToken;

        //Referral can never be empty
        require(bytes(referrer).length > 0, "Invalid referrer");

        require(toAmount > 0, "To amount can not be 0");

        //if fromToken is not ETH then transfer tokens from user to this contract
        if (fromToken != Utils.ethAddress()) {
            _tokenTransferProxy.transferFrom(
                fromToken,
                msg.sender,
                address(this),
                fromAmount
            );
        }

        for (uint8 i = 0; i < uint8(path.length); i++) {
            uint256 _fromAmount = fromAmount.mul(path[i].fromAmountPercent).div(10000);
            if (i == path.length - 1) {
                _fromAmount = Utils.tokenBalance(address(fromToken), address(this));
            }
            performSwap(
                fromToken,
                _fromAmount,
                path[i].path
            );
        }

        uint256 receivedAmount = Utils.tokenBalance(
            toToken,
            address(this)
        );

        require(
            receivedAmount >= toAmount,
            "Received amount of tokens are less then expected"
        );


        takeFeeAndTransferTokens(
            toToken,
            expectedAmount,
            receivedAmount,
            beneficiary,
            referrer
        );

        if (useReduxToken) {
            Utils.refundGas(msg.sender, address(_tokenTransferProxy), initialGas);
        }

        emit Swapped(
            msg.sender,
            beneficiary,
            fromToken,
            toToken,
            fromAmount,
            receivedAmount,
            expectedAmount,
            referrer
        );

        return receivedAmount;
    }

    /**
   * @dev The function which performs the single path buy.
   * @param data Data required to perform swap.
   */
    function buy(
        Utils.BuyData memory data
    )
        public
        payable
        returns (uint256)
    {

        address fromToken = data.fromToken;
        uint256 fromAmount = data.fromAmount;
        uint256 toAmount = data.toAmount;
        address payable beneficiary = data.beneficiary == address(0) ? msg.sender : data.beneficiary;
        string memory referrer = data.referrer;
        Utils.BuyRoute[] memory route = data.route;
        address toToken = data.toToken;
        bool useReduxToken = data.useReduxToken;

        //Referral id can never be empty
        require(bytes(referrer).length > 0, "Invalid referrer");

        require(toAmount > 0, "To amount can not be 0");

        uint256 receivedAmount = performBuy(
            fromToken,
            toToken,
            fromAmount,
            toAmount,
            route,
            useReduxToken
        );

        takeFeeAndTransferTokens(
            toToken,
            toAmount,
            receivedAmount,
            beneficiary,
            referrer
        );

        uint256 remainingAmount = Utils.tokenBalance(
            fromToken,
            address(this)
        );

        if (remainingAmount > 0) {
            Utils.transferTokens(fromToken, msg.sender, remainingAmount);
        }

        emit Bought(
            msg.sender,
            beneficiary,
            fromToken,
            toToken,
            fromAmount,
            receivedAmount,
            referrer
        );

        return receivedAmount;
    }

    //Helper function to transfer final amount to the beneficiaries
    function takeFeeAndTransferTokens(
        address toToken,
        uint256 expectedAmount,
        uint256 receivedAmount,
        address payable beneficiary,
        string memory referrer

    )
        private
    {
        uint256 remainingAmount = receivedAmount;

        address partnerContract = _partnerRegistry.getPartnerContract(referrer);

        //Take partner fee
        ( uint256 fee ) = _takeFee(
            toToken,
            receivedAmount,
            expectedAmount,
            partnerContract
        );
        remainingAmount = receivedAmount.sub(fee);

        //If there is a positive slippage after taking partner fee then 50% goes to paraswap and 50% to the user
        if ((remainingAmount > expectedAmount) && fee == 0) {
            uint256 positiveSlippageShare = remainingAmount.sub(expectedAmount).div(2);
            remainingAmount = remainingAmount.sub(positiveSlippageShare);
            Utils.transferTokens(toToken, _feeWallet, positiveSlippageShare);
        }

        Utils.transferTokens(toToken, beneficiary, remainingAmount);


    }

    /**
    * @dev Source take from GNOSIS MultiSigWallet
    * @dev https://github.com/gnosis/MultiSigWallet/blob/master/contracts/MultiSigWallet.sol
    */
    function externalCall(
        address destination,
        uint256 value,
        uint256 dataOffset,
        uint dataLength,
        bytes memory data
    )
    private
    returns (bool)
    {
        bool result = false;

        assembly {
            let x := mload(0x40)   // "Allocate" memory for output (0x40 is where "free memory" pointer is stored by convention)

            let d := add(data, 32) // First 32 bytes are the padded length of data, so exclude that
            result := call(
                sub(gas(), 34710), // 34710 is the value that solidity is currently emitting
                // It includes callGas (700) + callVeryLow (3, to pay for SUB) + callValueTransferGas (9000) +
                // callNewAccountGas (25000, in case the destination address does not exist and needs creating)
                destination,
                value,
                add(d, dataOffset),
                dataLength, // Size of the input (in bytes) - this is what fixes the padding problem
                x,
                0                  // Output is ignored, therefore the output size is zero
            )
        }
        return result;
    }

    //Helper function to perform swap
    function performSwap(
        address fromToken,
        uint256 fromAmount,
        Utils.Path[] memory path
    )
        private
    {

        require(path.length > 0, "Path not provided for swap");

        //Assuming path will not be too long to reach out of gas exception
        for (uint i = 0; i < path.length; i++) {
            //_fromToken will be either fromToken or toToken of the previous path
            address _fromToken = i > 0 ? path[i - 1].to : fromToken;
            address _toToken = path[i].to;

            uint256 _fromAmount = i > 0 ? Utils.tokenBalance(_fromToken, address(this)) : fromAmount;
            if (i > 0 && _fromToken == Utils.ethAddress()) {
                _fromAmount = _fromAmount.sub(path[i].totalNetworkFee);
            }

            for (uint j = 0; j < path[i].routes.length; j++) {
                Utils.Route memory route = path[i].routes[j];

                //Check if exchange is supported
                require(
                    _whitelisted.hasRole(_whitelisted.WHITELISTED_ROLE(), route.exchange),
                    "Exchange not whitelisted"
                );

                //Calculating tokens to be passed to the relevant exchange
                //percentage should be 200 for 2%
                uint fromAmountSlice = _fromAmount.mul(route.percent).div(10000);
                uint256 value = route.networkFee;

                if (i > 0 && j == path[i].routes.length.sub(1)) {
                    uint256 remBal = Utils.tokenBalance(address(_fromToken), address(this));

                    fromAmountSlice = remBal;

                    if (address(_fromToken) == Utils.ethAddress()) {
                        //subtract network fee
                        fromAmountSlice = fromAmountSlice.sub(value);
                    }
                }

                //DELEGATING CALL TO THE ADAPTER
                (bool success,) = route.exchange.delegatecall(
                    abi.encodeWithSelector(
                        IExchange.swap.selector,
                        _fromToken,
                        _toToken,
                        fromAmountSlice,
                        1,
                        route.targetExchange,
                        route.payload
                    )
                );

                require(success, "Call to adapter failed");
            }
        }
    }

    //Helper function to perform swap
    function performBuy(
        address fromToken,
        address toToken,
        uint256 fromAmount,
        uint256 toAmount,
        Utils.BuyRoute[] memory routes,
        bool useReduxToken
    )
        private
        returns(uint256)
    {
        uint initialGas = gasleft();

        //if fromToken is not ETH then transfer tokens from user to this contract
        if (fromToken != Utils.ethAddress()) {
            _tokenTransferProxy.transferFrom(
                fromToken,
                msg.sender,
                address(this),
                fromAmount
            );
        }

        for (uint j = 0; j < routes.length; j++) {
            Utils.BuyRoute memory route = routes[j];

            //Check if exchange is supported
            require(
                _whitelisted.hasRole(_whitelisted.WHITELISTED_ROLE(), route.exchange),
                "Exchange not whitelisted"
            );

            //delegate Call to the exchange
            (bool success,) = route.exchange.delegatecall(
                abi.encodeWithSelector(
                    IExchange.buy.selector,
                    fromToken,
                    toToken,
                    route.fromAmount,
                    route.toAmount,
                    route.targetExchange,
                    route.payload
                )
            );
            require(success, "Call to adapter failed");
        }

        uint256 receivedAmount = Utils.tokenBalance(
            toToken,
            address(this)
        );
        require(
            receivedAmount >= toAmount,
            "Received amount of tokens are less then expected tokens"
        );

        if (useReduxToken) {
            Utils.refundGas(msg.sender, address(_tokenTransferProxy), initialGas);
        }
        return receivedAmount;
    }

    function _takeFee(
        address toToken,
        uint256 receivedAmount,
        uint256 expectedAmount,
        address partnerContract
    )
        private
        returns(uint256 fee)
    {
        //If there is no partner associated with the referral id then no fee will be taken
        if (partnerContract == address(0)) {
            return (0);
        }

        (
            address payable partnerFeeWallet,
            uint256 feePercent,
            uint256 partnerSharePercent,
            ,
            bool positiveSlippageToUser,
            bool noPositiveSlippage
        ) = IPartner(partnerContract).getPartnerInfo();

        uint256 partnerShare = 0;
        uint256 paraswapShare = 0;

        if (!noPositiveSlippage && feePercent <= 50 && receivedAmount > expectedAmount) {
            uint256 halfPositiveSlippage = receivedAmount.sub(expectedAmount).div(2);
            //Calculate total fee to be taken
            fee = expectedAmount.mul(feePercent).div(10000);
            //Calculate partner's share
            partnerShare = fee.mul(partnerSharePercent).div(10000);
            //All remaining fee is paraswap's share
            paraswapShare = fee.sub(partnerShare);
            paraswapShare = paraswapShare.add(halfPositiveSlippage);

            fee = fee.add(halfPositiveSlippage);

            if (!positiveSlippageToUser) {
                partnerShare = partnerShare.add(halfPositiveSlippage);
                fee = fee.add(halfPositiveSlippage);
            }
        }
        else {
            //Calculate total fee to be taken
            fee = receivedAmount.mul(feePercent).div(10000);
            //Calculate partner's share
            partnerShare = fee.mul(partnerSharePercent).div(10000);
            //All remaining fee is paraswap's share
            paraswapShare = fee.sub(partnerShare);
        }
        Utils.transferTokens(toToken, partnerFeeWallet, partnerShare);
        Utils.transferTokens(toToken, _feeWallet, paraswapShare);

        emit FeeTaken(fee, partnerShare, paraswapShare);
        return (fee);
    }
}

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"adapter","type":"address"}],"name":"AdapterInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"initiator","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":true,"internalType":"address","name":"srcToken","type":"address"},{"indexed":true,"internalType":"address","name":"destToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receivedAmount","type":"uint256"},{"indexed":false,"internalType":"string","name":"referrer","type":"string"}],"name":"Bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"partnerShare","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paraswapShare","type":"uint256"}],"name":"FeeTaken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"initiator","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":true,"internalType":"address","name":"srcToken","type":"address"},{"indexed":true,"internalType":"address","name":"destToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receivedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expectedAmount","type":"uint256"},{"indexed":false,"internalType":"string","name":"referrer","type":"string"}],"name":"Swapped","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"string","name":"referrer","type":"string"},{"internalType":"bool","name":"useReduxToken","type":"bool"},{"components":[{"internalType":"address payable","name":"exchange","type":"address"},{"internalType":"address","name":"targetExchange","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"},{"internalType":"uint256","name":"networkFee","type":"uint256"}],"internalType":"struct Utils.BuyRoute[]","name":"route","type":"tuple[]"}],"internalType":"struct Utils.BuyData","name":"data","type":"tuple"}],"name":"buy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"uint8","name":"referrer","type":"uint8"}],"name":"buyOnUniswap","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"factory","type":"address"},{"internalType":"bytes32","name":"initCode","type":"bytes32"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"uint8","name":"referrer","type":"uint8"}],"name":"buyOnUniswapFork","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"uniswapProxy","type":"address"}],"name":"changeUniswapProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"confirmUniswapProxyChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getChangeRequestedBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"}],"name":"getData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFeeWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPartnerRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPendingUniswapProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTimeLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenTransferProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUniswapProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"whitelist","type":"address"},{"internalType":"address","name":"reduxToken","type":"address"},{"internalType":"address","name":"partnerRegistry","type":"address"},{"internalType":"address payable","name":"feeWallet","type":"address"},{"internalType":"address","name":"uniswapProxy","type":"address"},{"internalType":"uint256","name":"timelock","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"adapter","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"initializeAdapter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"}],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"uint256","name":"expectedAmount","type":"uint256"},{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"string","name":"referrer","type":"string"},{"internalType":"bool","name":"useReduxToken","type":"bool"},{"components":[{"internalType":"uint256","name":"fromAmountPercent","type":"uint256"},{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"totalNetworkFee","type":"uint256"},{"components":[{"internalType":"address payable","name":"exchange","type":"address"},{"internalType":"address","name":"targetExchange","type":"address"},{"internalType":"uint256","name":"percent","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"},{"internalType":"uint256","name":"networkFee","type":"uint256"}],"internalType":"struct Utils.Route[]","name":"routes","type":"tuple[]"}],"internalType":"struct Utils.Path[]","name":"path","type":"tuple[]"}],"internalType":"struct Utils.MegaSwapPath[]","name":"path","type":"tuple[]"}],"internalType":"struct Utils.MegaSwapSellData","name":"data","type":"tuple"}],"name":"megaSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"uint256","name":"expectedAmount","type":"uint256"},{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"string","name":"referrer","type":"string"},{"internalType":"bool","name":"useReduxToken","type":"bool"},{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"totalNetworkFee","type":"uint256"},{"components":[{"internalType":"address payable","name":"exchange","type":"address"},{"internalType":"address","name":"targetExchange","type":"address"},{"internalType":"uint256","name":"percent","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"},{"internalType":"uint256","name":"networkFee","type":"uint256"}],"internalType":"struct Utils.Route[]","name":"routes","type":"tuple[]"}],"internalType":"struct Utils.Path[]","name":"path","type":"tuple[]"}],"internalType":"struct Utils.SellData","name":"data","type":"tuple"}],"name":"multiSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"feeWallet","type":"address"}],"name":"setFeeWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"partnerRegistry","type":"address"}],"name":"setPartnerRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"whitelisted","type":"address"}],"name":"setWhitelistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"address[]","name":"callees","type":"address[]"},{"internalType":"bytes","name":"exchangeData","type":"bytes"},{"internalType":"uint256[]","name":"startIndexes","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"string","name":"referrer","type":"string"},{"internalType":"bool","name":"useReduxToken","type":"bool"}],"name":"simplBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"uint256","name":"expectedAmount","type":"uint256"},{"internalType":"address[]","name":"callees","type":"address[]"},{"internalType":"bytes","name":"exchangeData","type":"bytes"},{"internalType":"uint256[]","name":"startIndexes","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"string","name":"referrer","type":"string"},{"internalType":"bool","name":"useReduxToken","type":"bool"}],"name":"simpleSwap","outputs":[{"internalType":"uint256","name":"receivedAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"uint8","name":"referrer","type":"uint8"}],"name":"swapOnUniswap","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"factory","type":"address"},{"internalType":"bytes32","name":"initCode","type":"bytes32"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"uint8","name":"referrer","type":"uint8"}],"name":"swapOnUniswapFork","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address payable","name":"destination","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IWETH","name":"token","type":"address"}],"name":"withdrawAllWETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b506158c7806100206000396000f3fe608060405260043610620002355760003560e01c806395b6ef0c1162000139578063d2c4b59811620000c1578063ec1d21dd116200008b578063f7b637bb116200006d578063f7b637bb14620005d2578063f9355f721462000606578063f95a49eb146200061d576200023d565b8063ec1d21dd1462000596578063f2fde38b14620005ad576200023d565b8063d2c4b598146200050f578063db21e48d1462000527578063e1829cfe146200054c578063e1f21c671462000571576200023d565b8063a64b6e5f1162000103578063a64b6e5f14620004a3578063a745d5bd14620004c8578063b69bd7aa14620004e0578063cfc0afeb14620004f8576200023d565b806395b6ef0c146200042a578063a224c745146200044f578063a27e8b6b1462000474578063a4a6c336146200048b576200023d565b806354f6127f11620001bd5780638da5cb5b11620001875780638da5cb5b14620003be5780638f00eccb14620003d657806390d49b9d14620003ed578063915eb9731462000412576200023d565b806354f6127f146200034557806358b9d179146200036a578063715018a614620003815780638c3e9f461462000399576200023d565b80631880021911620001ff5780631880021914620002d95780632af3feb014620002fe5780633363522614620003165780635459060d146200032d576200023d565b80630863b7ac146200024257806308defdee146200025b5780630d8e6e2c146200028b578063119a5e9614620002b2576200023d565b366200023d57005b600080fd5b620002596200025336600462003d68565b62000634565b005b3480156200026857600080fd5b506200027362000770565b60405162000282919062004298565b60405180910390f35b3480156200029857600080fd5b50620002a36200077f565b60405162000282919062004488565b348015620002bf57600080fd5b50620002ca620007b6565b60405162000282919062004b98565b348015620002e657600080fd5b5062000259620002f836600462003df2565b620007bc565b3480156200030b57600080fd5b506200027362000a53565b620002596200032736600462003d68565b62000a62565b3480156200033a57600080fd5b506200027362000ab6565b3480156200035257600080fd5b50620002a36200036436600462003e98565b62000ac5565b620002596200037b36600462004191565b62000b88565b3480156200038e57600080fd5b506200025962000cb5565b348015620003a657600080fd5b5062000259620003b836600462003942565b62000d44565b348015620003cb57600080fd5b506200027362000dd4565b620002ca620003e7366004620040ac565b62000de3565b348015620003fa57600080fd5b50620002596200040c36600462003942565b6200104e565b3480156200041f57600080fd5b5062000273620010de565b3480156200043757600080fd5b50620002596200044936600462003a35565b620010ed565b3480156200045c57600080fd5b50620002596200046e36600462003942565b62001207565b620002596200048536600462003ab8565b62001297565b3480156200049857600080fd5b50620002596200135c565b348015620004b057600080fd5b5062000259620004c2366004620039f0565b6200142b565b348015620004d557600080fd5b50620002ca6200146a565b348015620004ed57600080fd5b506200027362001470565b620002ca6200050936600462003bfc565b6200147f565b3480156200051c57600080fd5b50620002736200150b565b3480156200053457600080fd5b50620002596200054636600462003942565b6200151a565b3480156200055957600080fd5b50620002596200056b36600462003942565b620015ae565b3480156200057e57600080fd5b506200025962000590366004620039f0565b620016f0565b620002ca620005a736600462003fc7565b6200171f565b348015620005ba57600080fd5b5062000259620005cc36600462003942565b62001976565b348015620005df57600080fd5b50620005f7620005f136600462003e98565b62001a40565b60405162000282919062004437565b620002596200061736600462004191565b62001a55565b620002ca6200062e36600462003eca565b62001aa5565b6007546040516000916060916001600160a01b03909116907ff5661034000000000000000000000000000000000000000000000000000000009062000688908c908c908c908c908c908c90602401620043e7565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051620006f5919062004277565b600060405180830381855af49150503d806000811462000732576040519150601f19603f3d011682016040523d82523d6000602084013e62000737565b606091505b509150915081620007655760405162461bcd60e51b81526004016200075c9062004792565b60405180910390fd5b505050505050505050565b6007546001600160a01b031690565b60408051808201909152600581527f342e302e30000000000000000000000000000000000000000000000000000000602082015290565b600a5490565b6003546001600160a01b03163314620007e95760405162461bcd60e51b81526004016200075c9062004970565b60048054604080517f7a3226ec00000000000000000000000000000000000000000000000000000000815290516001600160a01b03909216926391d14854928492637a3226ec9281810192602092909190829003018186803b1580156200084f57600080fd5b505afa15801562000864573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200088a919062003eb1565b856040518363ffffffff1660e01b8152600401620008aa92919062004442565b60206040518083038186803b158015620008c357600080fd5b505afa158015620008d8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620008fe919062003e79565b6200091d5760405162461bcd60e51b81526004016200075c9062004837565b6000836001600160a01b031663439fab9160e01b84846040516024016200094692919062004459565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051620009b3919062004277565b600060405180830381855af49150503d8060008114620009f0576040519150601f19603f3d011682016040523d82523d6000602084013e620009f5565b606091505b505090508062000a195760405162461bcd60e51b81526004016200075c90620046ed565b6040516001600160a01b038516907f4aa65286df310c4e8390d962c75f50380b8260d96ea27cf14847cd683e22d9db90600090a250505050565b6008546001600160a01b031690565b6007546040516000916060916001600160a01b03909116907fc03786b0000000000000000000000000000000000000000000000000000000009062000688908c908c908c908c908c908c90602401620043e7565b6006546001600160a01b031690565b60008181526001602081815260409283902080548451600294821615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190911693909304601f8101839004830284018301909452838352606093909183018282801562000b7b5780601f1062000b4f5761010080835404028352916020019162000b7b565b820191906000526020600020905b81548152906001019060200180831162000b5d57829003601f168201915b505050505090505b919050565b6007546040516000916060916001600160a01b03909116907f54840d1a000000000000000000000000000000000000000000000000000000009062000bd8908a908a908a908a9060240162004ba1565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090941693909317909252905162000c45919062004277565b600060405180830381855af49150503d806000811462000c82576040519150601f19603f3d011682016040523d82523d6000602084013e62000c87565b606091505b50915091508162000cac5760405162461bcd60e51b81526004016200075c9062004792565b50505050505050565b6003546001600160a01b0316331462000ce25760405162461bcd60e51b81526004016200075c9062004970565b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6003546001600160a01b0316331462000d715760405162461bcd60e51b81526004016200075c9062004970565b6001600160a01b03811662000d9a5760405162461bcd60e51b81526004016200075c90620044d4565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6003546001600160a01b031690565b6000805a835160208501516040860151606087015160808801519495509293919290916000906001600160a01b03161562000e2357876080015162000e25565b335b60a089015160e08a01518051929350909160009082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810190811062000e6857fe5b602002602001015160000151905060008b60c001519050600084511162000ea35760405162461bcd60e51b81526004016200075c9062004724565b6000871162000ec65760405162461bcd60e51b81526004016200075c9062004b61565b62000ed062001bee565b6001600160a01b0316896001600160a01b03161462000f6f576002546040517f15dacbea0000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906315dacbea9062000f3a908c90339030908e9060040162004336565b600060405180830381600087803b15801562000f5557600080fd5b505af115801562000f6a573d6000803e3d6000fd5b505050505b62000f7c89898562001c06565b600062000f8a8330620020bd565b90508781101562000faf5760405162461bcd60e51b81526004016200075c9062004a13565b62000fbe83888389896200219b565b811562000fdf5760025462000fdf9033906001600160a01b03168d620022cd565b826001600160a01b03168a6001600160a01b0316876001600160a01b03167f9cc2048b8af5eadff75759a3169b369efc538fb79c760fd396a4b355410b41b7338d868d8c60405162001036959493929190620042e6565b60405180910390a49c9b505050505050505050505050565b6003546001600160a01b031633146200107b5760405162461bcd60e51b81526004016200075c9062004970565b6001600160a01b038116620010a45760405162461bcd60e51b81526004016200075c90620044d4565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6004546001600160a01b031690565b6002546001600160a01b031615620011195760405162461bcd60e51b81526004016200075c9062004800565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861617905560405160009086906200115f906200331f565b6200116b919062004298565b604051809103906000f08015801562001188573d6000803e3d6000fd5b50600280547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b0393841617909155600480548216998316999099179098556006805489169582169590951790945550600780548716929093169190911790915560038054339516949094179093555050600a55565b6003546001600160a01b03163314620012345760405162461bcd60e51b81526004016200075c9062004970565b6001600160a01b0381166200125d5760405162461bcd60e51b81526004016200075c90620045fc565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b03831615620012ae5782620012b0565b335b92506000620012ca8c8c8c8c8d8d8d8d8d8d8d8d6200231d565b90506000620012da8d30620020bd565b90508015620012f057620012f08d338362002501565b8b6001600160a01b03168d6001600160a01b0316866001600160a01b03167ff0be17aaae5a3633105aafe0689d8beb04dc66d5c51babf7086efebbb4e7ba82338f878a604051620013459493929190620042ac565b60405180910390a450505050505050505050505050565b6003546001600160a01b03163314620013895760405162461bcd60e51b81526004016200075c9062004970565b600a546009546200139a91620025d3565b431015620013bc5760405162461bcd60e51b81526004016200075c90620047c9565b6008546001600160a01b0316620013e75760405162461bcd60e51b81526004016200075c906200486e565b600060095560088054600780547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b03841617909155169055565b6003546001600160a01b03163314620014585760405162461bcd60e51b81526004016200075c9062004970565b6200146583838362002501565b505050565b60095490565b6005546001600160a01b031690565b60006001600160a01b038416156200149857836200149a565b335b9350620014b28d8d8d8d8d8d8d8d8d8d8d8d6200231d565b90508b6001600160a01b03168d6001600160a01b0316856001600160a01b03167f9cc2048b8af5eadff75759a3169b369efc538fb79c760fd396a4b355410b41b7338f868f8a60405162001036959493929190620042e6565b6002546001600160a01b031690565b6003546001600160a01b03163314620015475760405162461bcd60e51b81526004016200075c9062004970565b6001600160a01b038116620015705760405162461bcd60e51b81526004016200075c90620044d4565b43600955600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b333014620015d05760405162461bcd60e51b81526004016200075c90620049a5565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526000906001600160a01b038316906370a08231906200161a90309060040162004298565b60206040518083038186803b1580156200163357600080fd5b505afa15801562001648573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200166e919062003eb1565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081529091506001600160a01b03831690632e1a7d4d90620016b890849060040162004b98565b600060405180830381600087803b158015620016d357600080fd5b505af1158015620016e8573d6000803e3d6000fd5b505050505050565b333014620017125760405162461bcd60e51b81526004016200075c90620049a5565b62001465828483620025fb565b6000805a835160208501516040860151606087015160808801519495509293919290916000906001600160a01b0316156200175f57876080015162001761565b335b905060608860a00151905060608960e0015190506000816000815181106200178557fe5b602002602001015160200151600183600081518110620017a157fe5b602002602001015160200151510381518110620017ba57fe5b602002602001015160000151905060008b60c0015190506000845111620017f55760405162461bcd60e51b81526004016200075c9062004724565b60008711620018185760405162461bcd60e51b81526004016200075c9062004b61565b6200182262001bee565b6001600160a01b0316896001600160a01b031614620018c1576002546040517f15dacbea0000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906315dacbea906200188c908c90339030908e9060040162004336565b600060405180830381600087803b158015620018a757600080fd5b505af1158015620018bc573d6000803e3d6000fd5b505050505b60005b835160ff168160ff16101562001967576000620019146127106200190d878560ff1681518110620018f157fe5b6020026020010151600001518d6200272190919063ffffffff16565b9062002761565b905060018551038260ff1614156200193557620019328b30620020bd565b90505b6200195d8b82878560ff16815181106200194b57fe5b60200260200101516020015162001c06565b50600101620018c4565b50600062000f8a8330620020bd565b6003546001600160a01b03163314620019a35760405162461bcd60e51b81526004016200075c9062004970565b6001600160a01b038116620019cc5760405162461bcd60e51b81526004016200075c9062004568565b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60009081526020819052604090205460ff1690565b6007546040516000916060916001600160a01b03909116907f935fb84b000000000000000000000000000000000000000000000000000000009062000bd8908a908a908a908a9060240162004ba1565b805160408201516060830151608084015160009392919084906001600160a01b03161562001ad857856080015162001ada565b335b60a087015160e0880151602089015160c08a0151835194955092939192909162001b185760405162461bcd60e51b81526004016200075c9062004724565b6000861162001b3b5760405162461bcd60e51b81526004016200075c9062004b61565b600062001b4d89848a8a8887620027a5565b905062001b5e83888389896200219b565b600062001b6c8a30620020bd565b9050801562001b825762001b828a338362002501565b836001600160a01b03168a6001600160a01b0316886001600160a01b03167ff0be17aaae5a3633105aafe0689d8beb04dc66d5c51babf7086efebbb4e7ba82338d878c60405162001bd79493929190620042ac565b60405180910390a4509a9950505050505050505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b600081511162001c2a5760405162461bcd60e51b81526004016200075c906200475b565b60005b8151811015620020b757600080821162001c48578462001c65565b82600183038151811062001c5857fe5b6020026020010151600001515b9050600083838151811062001c7657fe5b6020026020010151600001519050600080841162001c95578562001ca1565b62001ca18330620020bd565b905060008411801562001cce575062001cb962001bee565b6001600160a01b0316836001600160a01b0316145b1562001d045762001d0185858151811062001ce557fe5b6020026020010151602001518262002b5a90919063ffffffff16565b90505b60005b85858151811062001d1457fe5b60200260200101516040015151811015620020a65762001d336200332d565b86868151811062001d4057fe5b602002602001015160400151828151811062001d5857fe5b60209081029190910181015160048054604080517f7a3226ec00000000000000000000000000000000000000000000000000000000815290519395506001600160a01b03909116936391d14854938593637a3226ec9380820193929190829003018186803b15801562001dca57600080fd5b505afa15801562001ddf573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001e05919062003eb1565b83516040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815262001e4392919060040162004442565b60206040518083038186803b15801562001e5c57600080fd5b505afa15801562001e71573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001e97919062003e79565b62001eb65760405162461bcd60e51b81526004016200075c9062004837565b600062001ed86127106200190d8460400151876200272190919063ffffffff16565b6080830151909150871580159062001f1d575062001f1a60018a8a8151811062001efe57fe5b6020026020010151604001515162002b5a90919063ffffffff16565b84145b1562001f6b57600062001f318830620020bd565b905080925062001f4062001bee565b6001600160a01b0316886001600160a01b0316141562001f695762001f66838362002b5a565b92505b505b8251602084015160608501516040516000936001600160a01b0316927fb69cbf9f000000000000000000000000000000000000000000000000000000009262001fc2928d928d928a92600192919060240162004360565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516200202f919062004277565b600060405180830381855af49150503d80600081146200206c576040519150601f19603f3d011682016040523d82523d6000602084013e62002071565b606091505b5050905080620020955760405162461bcd60e51b81526004016200075c9062004939565b50506001909201915062001d079050565b50506001909201915062001c2d9050565b50505050565b60006001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415620020f757506001600160a01b0381163162002195565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038416906370a08231906200213e90859060040162004298565b60206040518083038186803b1580156200215757600080fd5b505afa1580156200216c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002192919062003eb1565b90505b92915050565b6005546040517fa38aa34600000000000000000000000000000000000000000000000000000000815284916000916001600160a01b039091169063a38aa34690620021eb90869060040162004488565b60206040518083038186803b1580156200220457600080fd5b505afa15801562002219573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200223f919062003961565b90506000620022518887898562002b9e565b90506200225f868262002b5a565b925086831180156200226f575080155b15620022b65760006200228960026200190d868b62002b5a565b905062002297848262002b5a565b600654909450620022b4908a906001600160a01b03168362002501565b505b620022c388868562002501565b5050505050505050565b61374a611ad6615dc060006200230e620022f584620022ee85600262002721565b9062002b5a565b6200190d86620023075a8a9062002b5a565b90620025d3565b905062000cac87878362002da6565b6000808a11620023415760405162461bcd60e51b81526004016200075c9062004902565b8551885160010114620023685760405162461bcd60e51b81526004016200075c906200450b565b60005a9050620023798e8d62002e61565b60005b89518110156200248e576002548a516001600160a01b03909116908b9083908110620023a457fe5b60200260200101516001600160a01b03161415620023d65760405162461bcd60e51b81526004016200075c9062004633565b6000620024628b8381518110620023e957fe5b6020026020010151898481518110620023fe57fe5b60200260200101518b85815181106200241357fe5b60200260200101516200245b8d87815181106200242c57fe5b60200260200101518e88600101815181106200244457fe5b602002602001015162002b5a90919063ffffffff16565b8e62002ed9565b905080620024845760405162461bcd60e51b81526004016200075c90620049dc565b506001016200237c565b506200249b8d30620020bd565b91508a821015620024c05760405162461bcd60e51b81526004016200075c9062004a13565b620024cf8d8b8488886200219b565b8215620024f057600254620024f09033906001600160a01b031683620022cd565b509c9b505050505050505050505050565b801562001465576001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415620025bd576000826001600160a01b031682610fa0906040516200254d9062004295565b600060405180830381858888f193505050503d80600081146200258d576040519150601f19603f3d011682016040523d82523d6000602084013e62002592565b606091505b5050905080620025b65760405162461bcd60e51b81526004016200075c906200449d565b5062001465565b620014656001600160a01b038416838362002f03565b600082820183811015620021925760405162461bcd60e51b81526004016200075c90620045c5565b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1462001465576040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815282906000906001600160a01b0383169063dd62ed3e906200266e90309089906004016200431c565b60206040518083038186803b1580156200268757600080fd5b505afa1580156200269c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620026c2919062003eb1565b9050828110156200271a57620026e46001600160a01b03831686600062002f8a565b6200271a6001600160a01b038316867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff62003073565b5050505050565b600082620027325750600062002195565b828202828482816200274057fe5b0414620021925760405162461bcd60e51b81526004016200075c90620048a5565b60006200219283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525062003122565b6000805a9050620027b562001bee565b6001600160a01b0316886001600160a01b03161462002854576002546040517f15dacbea0000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906315dacbea906200281f908b90339030908c9060040162004336565b600060405180830381600087803b1580156200283a57600080fd5b505af11580156200284f573d6000803e3d6000fd5b505050505b60005b845181101562002af9576200286b6200336e565b8582815181106200287857fe5b60209081029190910181015160048054604080517f7a3226ec00000000000000000000000000000000000000000000000000000000815290519395506001600160a01b03909116936391d14854938593637a3226ec9380820193929190829003018186803b158015620028ea57600080fd5b505afa158015620028ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002925919062003eb1565b83516040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526200296392919060040162004442565b60206040518083038186803b1580156200297c57600080fd5b505afa15801562002991573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620029b7919062003e79565b620029d65760405162461bcd60e51b81526004016200075c9062004837565b600081600001516001600160a01b0316635f0a186260e01b8c8c856040015186606001518760200151886080015160405160240162002a1b96959493929190620043a5565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090941693909317909252905162002a88919062004277565b600060405180830381855af49150503d806000811462002ac5576040519150601f19603f3d011682016040523d82523d6000602084013e62002aca565b606091505b505090508062002aee5760405162461bcd60e51b81526004016200075c9062004939565b505060010162002857565b50600062002b088830620020bd565b90508581101562002b2d5760405162461bcd60e51b81526004016200075c9062004690565b831562002b4e5760025462002b4e9033906001600160a01b031684620022cd565b98975050505050505050565b60006200219283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506200315f565b60006001600160a01b03821662002bb85750600062002d9e565b6000806000806000866001600160a01b0316630c51ff046040518163ffffffff1660e01b815260040160c06040518083038186803b15801562002bfa57600080fd5b505afa15801562002c0f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002c35919062003980565b95509550509450945094506000808215801562002c53575060328611155b801562002c5f5750898b115b1562002cf957600062002c7960026200190d8e8e62002b5a565b905062002c8e6127106200190d8d8a62002721565b985062002ca36127106200190d8b8962002721565b925062002cb1898462002b5a565b915062002cbf8282620025d3565b915062002ccd8982620025d3565b98508462002cf25762002ce18382620025d3565b925062002cef8982620025d3565b98505b5062002d32565b62002d0c6127106200190d8d8962002721565b975062002d216127106200190d8a8862002721565b915062002d2f888362002b5a565b90505b62002d3f8c888462002501565b60065462002d59908d906001600160a01b03168362002501565b7fb9f46e095476339db7821812d7e8ca40dad9d9b08ba10b54eb67faacc2aa558288838360405162002d8e9392919062004bc3565b60405180910390a1505050505050505b949350505050565b806000805a9050616c3e811062002dcf5762002dcc611b6c6200190d83616c3e62002b5a565b91505b8183111562002ddc578192505b6040517fdd1fe62c0000000000000000000000000000000000000000000000000000000081526001600160a01b0386169063dd1fe62c9062002e2590899087906004016200441e565b600060405180830381600087803b15801562002e4057600080fd5b505af115801562002e55573d6000803e3d6000fd5b50505050505050505050565b62002e6b62001bee565b6001600160a01b0316826001600160a01b03161462002ed5576002546040517f15dacbea0000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906315dacbea90620016b890859033903090879060040162004336565b5050565b6000806000905060405160208401600082878984018b8d6187965a03f19998505050505050505050565b620014658363a9059cbb60e01b848460405160240162002f259291906200441e565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526200318e565b8015806200303257506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063dd62ed3e9062002fdc90309086906004016200431c565b60206040518083038186803b15801562002ff557600080fd5b505afa1580156200300a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062003030919062003eb1565b155b620030515760405162461bcd60e51b81526004016200075c9062004b04565b620014658363095ea7b360e01b848460405160240162002f259291906200441e565b6000620030fe82856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b8152600401620030aa9291906200431c565b60206040518083038186803b158015620030c357600080fd5b505afa158015620030d8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002307919062003eb1565b9050620020b78463095ea7b360e01b858460405160240162002f259291906200441e565b60008183620031465760405162461bcd60e51b81526004016200075c919062004488565b5060008385816200315357fe5b049150505b9392505050565b60008184841115620031865760405162461bcd60e51b81526004016200075c919062004488565b505050900390565b6060620031e5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620032259092919063ffffffff16565b80519091501562001465578080602001905181019062003206919062003e79565b620014655760405162461bcd60e51b81526004016200075c9062004aa7565b606062002d9e8484600085856200323c85620032db565b6200325b5760405162461bcd60e51b81526004016200075c9062004a70565b60006060866001600160a01b031685876040516200327a919062004277565b60006040518083038185875af1925050503d8060008114620032b9576040519150601f19603f3d011682016040523d82523d6000602084013e620032be565b606091505b5091509150620032d0828286620032e1565b979650505050505050565b3b151590565b60608315620032f257508162003158565b825115620033035782518084602001fd5b8160405162461bcd60e51b81526004016200075c919062004488565b610c1d8062004c7583390190565b6040518060a0016040528060006001600160a01b0316815260200160006001600160a01b031681526020016000815260200160608152602001600081525090565b6040518060c0016040528060006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160608152602001600081525090565b803562000b838162004c4c565b60008083601f840112620033d5578182fd5b50813567ffffffffffffffff811115620033ed578182fd5b60208301915083602080830285010111156200340857600080fd5b9250929050565b600082601f83011262003420578081fd5b813562003437620034318262004bfe565b62004bd9565b8181529150602080830190848101818402860182018710156200345957600080fd5b60005b8481101562003485578135620034728162004c4c565b845292820192908201906001016200345c565b505050505092915050565b600082601f830112620034a1578081fd5b8135620034b2620034318262004bfe565b818152915060208083019084810160005b8481101562003485578135870160c080601f19838c03011215620034e657600080fd5b6040805182810167ffffffffffffffff82821081831117156200350557fe5b81845262003515898701620033b6565b835262003524848701620033b6565b8984015260609150818601358484015260809350838601358284015260a0915081860135818111156200355657600080fd5b620035668f8b838a0101620038c4565b94840194909452509390920135928201929092528552509282019290820190600101620034c3565b600082601f8301126200359f578081fd5b8135620035b0620034318262004bfe565b818152915060208083019084810160005b84811015620034855781358701604080601f19838c03011215620035e457600080fd5b805181810167ffffffffffffffff82821081831117156200360157fe5b8184528488013583529284013592808411156200361d57600080fd5b50506200362f8b878486010162003648565b81870152865250509282019290820190600101620035c1565b600082601f83011262003659578081fd5b6200366962003431833562004bfe565b823581529050602080820190830160005b84358110156200384957813585016060601f198289030112156200369d57600080fd5b60405180606082011067ffffffffffffffff60608301111715620036bd57fe5b60608101604052620036d3602083013562004c4c565b602082013581526040820135602082015267ffffffffffffffff60608301351115620036fe57600080fd5b60608201358201915087603f8301126200371757600080fd5b6200372a62003431602084013562004bfe565b60208381013582528101906040840160005b60208601358110156200382a578135860160a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0828f030112156200378057600080fd5b6040518060a082011067ffffffffffffffff60a08301111715620037a057fe5b60a08101604052620037b560408301620033b6565b8152620037c560608301620033b6565b60208201526080820135604082015267ffffffffffffffff60a08301351115620037ee57600080fd5b620038038e604060a0850135850101620038c4565b606082015260c091909101356080820152845260209384019391909101906001016200373c565b505060408301525084525060209283019291909101906001016200367a565b50505092915050565b600082601f83011262003863578081fd5b813562003874620034318262004bfe565b8181529150602080830190848101818402860182018710156200389657600080fd5b60005b84811015620034855781358452928201929082019060010162003899565b803562000b838162004c65565b600082601f830112620038d5578081fd5b813567ffffffffffffffff811115620038ea57fe5b620038ff6020601f19601f8401160162004bd9565b91508082528360208285010111156200391757600080fd5b8060208401602084013760009082016020015292915050565b803560ff8116811462000b8357600080fd5b60006020828403121562003954578081fd5b8135620021928162004c4c565b60006020828403121562003973578081fd5b8151620021928162004c4c565b60008060008060008060c0878903121562003999578182fd5b8651620039a68162004c4c565b809650506020870151945060408701519350606087015192506080870151620039cf8162004c65565b60a0880151909250620039e28162004c65565b809150509295509295509295565b60008060006060848603121562003a05578081fd5b833562003a128162004c4c565b9250602084013562003a248162004c4c565b929592945050506040919091013590565b60008060008060008060c0878903121562003a4e578384fd5b863562003a5b8162004c4c565b9550602087013562003a6d8162004c4c565b9450604087013562003a7f8162004c4c565b9350606087013562003a918162004c4c565b9250608087013562003aa38162004c4c565b8092505060a087013590509295509295509295565b60008060008060008060008060008060006101608c8e03121562003ada578889fd5b62003ae58c620033b6565b9a5062003af560208d01620033b6565b995060408c0135985060608c0135975067ffffffffffffffff8060808e0135111562003b1f578586fd5b62003b318e60808f01358f016200340f565b97508060a08e0135111562003b44578586fd5b62003b568e60a08f01358f01620038c4565b96508060c08e0135111562003b69578586fd5b62003b7b8e60c08f01358f0162003852565b95508060e08e0135111562003b8e578485fd5b62003ba08e60e08f01358f0162003852565b945062003bb16101008e01620033b6565b9350806101208e0135111562003bc5578283fd5b5062003bd98d6101208e01358e01620038c4565b915062003bea6101408d01620038b7565b90509295989b509295989b9093969950565b6000806000806000806000806000806000806101808d8f03121562003c1f578586fd5b62003c2a8d620033b6565b9b5062003c3a60208e01620033b6565b9a5060408d0135995060608d0135985060808d0135975067ffffffffffffffff60a08e0135111562003c6a578586fd5b62003c7c8e60a08f01358f016200340f565b965067ffffffffffffffff60c08e0135111562003c97578586fd5b62003ca98e60c08f01358f01620038c4565b955067ffffffffffffffff60e08e0135111562003cc4578081fd5b62003cd68e60e08f01358f0162003852565b945067ffffffffffffffff6101008e0135111562003cf2578081fd5b62003d058e6101008f01358f0162003852565b935062003d166101208e01620033b6565b925067ffffffffffffffff6101408e0135111562003d32578081fd5b62003d458e6101408f01358f01620038c4565b915062003d566101608e01620038b7565b90509295989b509295989b509295989b565b600080600080600080600060c0888a03121562003d83578081fd5b873562003d908162004c4c565b9650602088013595506040880135945060608801359350608088013567ffffffffffffffff81111562003dc1578182fd5b62003dcf8a828b01620033c3565b909450925062003de4905060a0890162003930565b905092959891949750929550565b60008060006040848603121562003e07578081fd5b833562003e148162004c4c565b9250602084013567ffffffffffffffff8082111562003e31578283fd5b818601915086601f83011262003e45578283fd5b81358181111562003e54578384fd5b87602082850101111562003e66578384fd5b6020830194508093505050509250925092565b60006020828403121562003e8b578081fd5b8151620021928162004c65565b60006020828403121562003eaa578081fd5b5035919050565b60006020828403121562003ec3578081fd5b5051919050565b60006020828403121562003edc578081fd5b813567ffffffffffffffff8082111562003ef4578283fd5b818401915061010080838703121562003f0b578384fd5b62003f168162004bd9565b905062003f2383620033b6565b815262003f3360208401620033b6565b6020820152604083013560408201526060830135606082015262003f5a60808401620033b6565b608082015260a08301358281111562003f71578485fd5b62003f7f87828601620038c4565b60a08301525062003f9360c08401620038b7565b60c082015260e08301358281111562003faa578485fd5b62003fb88782860162003490565b60e08301525095945050505050565b60006020828403121562003fd9578081fd5b813567ffffffffffffffff8082111562003ff1578283fd5b818401915061010080838703121562004008578384fd5b620040138162004bd9565b90506200402083620033b6565b81526020830135602082015260408301356040820152606083013560608201526200404e60808401620033b6565b608082015260a08301358281111562004065578485fd5b6200407387828601620038c4565b60a0830152506200408760c08401620038b7565b60c082015260e0830135828111156200409e578485fd5b62003fb8878286016200358e565b600060208284031215620040be578081fd5b813567ffffffffffffffff80821115620040d6578283fd5b8184019150610100808387031215620040ed578384fd5b620040f88162004bd9565b90506200410583620033b6565b81526020830135602082015260408301356040820152606083013560608201526200413360808401620033b6565b608082015260a0830135828111156200414a578485fd5b6200415887828601620038c4565b60a0830152506200416c60c08401620038b7565b60c082015260e08301358281111562004183578485fd5b62003fb88782860162003648565b600080600080600060808688031215620041a9578283fd5b8535945060208601359350604086013567ffffffffffffffff811115620041ce578384fd5b620041dc88828901620033c3565b9094509250620041f190506060870162003930565b90509295509295909350565b60008284526020808501945082825b858110156200423e578135620042228162004c4c565b6001600160a01b0316875295820195908201906001016200420c565b509495945050505050565b600081518084526200426381602086016020860162004c1d565b601f01601f19169290920160200192915050565b600082516200428b81846020870162004c1d565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b60006001600160a01b038616825284602083015283604083015260806060830152620042dc608083018462004249565b9695505050505050565b60006001600160a01b038716825285602083015284604083015283606083015260a06080830152620032d060a083018462004249565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039485168152928416602084015292166040820152606081019190915260800190565b60006001600160a01b038089168352808816602084015286604084015260ff8616606084015280851660808401525060c060a083015262002b4e60c083018462004249565b60006001600160a01b038089168352808816602084015286604084015285606084015280851660808401525060c060a083015262002b4e60c083018462004249565b60006001600160a01b038816825286602083015285604083015284606083015260a0608083015262002b4e60a083018486620041fd565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b9182526001600160a01b0316602082015260400190565b60006020825282602083015282846040840137818301604090810191909152601f909201601f19160101919050565b60006020825262002192602083018462004249565b60208082526018908201527f4661696c656420746f207472616e736665722045746865720000000000000000604082015260600190565b6020808252600f908201527f496e76616c696420616464726573730000000000000000000000000000000000604082015260600190565b60208082526036908201527f537461727420696e6465786573206d757374206265203120677265617465722060408201527f7468656e206e756d626572206f662063616c6c65657300000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526019908201527f496e76616c69642077686974656c697374206164647265737300000000000000604082015260600190565b60208082526028908201527f43616e206e6f742063616c6c20546f6b656e5472616e7366657250726f78792060408201527f436f6e7472616374000000000000000000000000000000000000000000000000606082015260800190565b60208082526037908201527f526563656976656420616d6f756e74206f6620746f6b656e7320617265206c6560408201527f7373207468656e20657870656374656420746f6b656e73000000000000000000606082015260800190565b6020808252601c908201527f4661696c656420746f20696e697469616c697a65206164617074657200000000604082015260600190565b60208082526010908201527f496e76616c696420726566657272657200000000000000000000000000000000604082015260600190565b6020808252601a908201527f50617468206e6f742070726f766964656420666f722073776170000000000000604082015260600190565b6020808252601c908201527f43616c6c20746f20756e69737761702070726f7879206661696c656400000000604082015260600190565b60208082526016908201527f54696d65206c6f636b20636865636b206661696c656400000000000000000000604082015260600190565b6020808252601e908201527f436f6e747261637420616c726561647920696e697469616c697a656421210000604082015260600190565b60208082526018908201527f45786368616e6765206e6f742077686974656c69737465640000000000000000604082015260600190565b60208082526012908201527f4e6f2070656e64696e6720726571756573740000000000000000000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526013908201527f746f416d6f756e7420697320746f6f206c6f7700000000000000000000000000604082015260600190565b60208082526016908201527f43616c6c20746f2061646170746572206661696c656400000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f4175677573747573537761707065723a20496e76616c69642061636365737300604082015260600190565b60208082526014908201527f45787465726e616c2063616c6c206661696c6564000000000000000000000000604082015260600190565b60208082526030908201527f526563656976656420616d6f756e74206f6620746f6b656e7320617265206c6560408201527f7373207468656e20657870656374656400000000000000000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b60208082526016908201527f546f20616d6f756e742063616e206e6f74206265203000000000000000000000604082015260600190565b90815260200190565b600085825284602083015260606040830152620042dc606083018486620041fd565b9283526020830191909152604082015260600190565b60405181810167ffffffffffffffff8111828210171562004bf657fe5b604052919050565b600067ffffffffffffffff82111562004c1357fe5b5060209081020190565b60005b8381101562004c3a57818101518382015260200162004c20565b83811115620020b75750506000910152565b6001600160a01b038116811462004c6257600080fd5b50565b801515811462004c6257600080fdfe608060405234801561001057600080fd5b50604051610c1d380380610c1d83398101604081905261002f916100ac565b60006100396100a8565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100da565b3390565b6000602082840312156100bd578081fd5b81516001600160a01b03811681146100d3578182fd5b9392505050565b610b34806100e96000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c80638da5cb5b116100505780638da5cb5b146100b2578063dd1fe62c146100ba578063f2fde38b146100cd57610072565b806315dacbea14610077578063715018a61461008c5780637fb9312714610094575b600080fd5b61008a6100853660046107bf565b6100e0565b005b61008a61016d565b61009c610238565b6040516100a99190610886565b60405180910390f35b61009c610254565b61008a6100c8366004610809565b610270565b61008a6100db3660046107a5565b61037b565b6100e86104b1565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610145576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013c90610a09565b60405180910390fd5b61016773ffffffffffffffffffffffffffffffffffffffff85168484846104b5565b50505050565b6101756104b1565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146101c9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013c90610a09565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b6102786104b1565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146102cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013c90610a09565b6001546040517f079d229f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063079d229f9061032490859085906004016108d8565b602060405180830381600087803b15801561033e57600080fd5b505af1158015610352573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103769190610852565b505050565b6103836104b1565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146103d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013c90610a09565b73ffffffffffffffffffffffffffffffffffffffff8116610424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013c9061094f565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b610167846323b872dd60e01b8585856040516024016104d6939291906108a7565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915260606105b5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166106099092919063ffffffff16565b80519091501561037657808060200190518101906105d39190610832565b610376576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013c90610a75565b60606106188484600085610622565b90505b9392505050565b60608247101561065e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013c906109ac565b61066785610724565b61069d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013c90610a3e565b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516106c7919061086a565b60006040518083038185875af1925050503d8060008114610704576040519150601f19603f3d011682016040523d82523d6000602084013e610709565b606091505b509150915061071982828661072e565b979650505050505050565b803b15155b919050565b6060831561073d57508161061b565b82511561074d5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013c91906108fe565b803573ffffffffffffffffffffffffffffffffffffffff8116811461072957600080fd5b6000602082840312156107b6578081fd5b61061b82610781565b600080600080608085870312156107d4578283fd5b6107dd85610781565b93506107eb60208601610781565b92506107f960408601610781565b9396929550929360600135925050565b6000806040838503121561081b578182fd5b61082483610781565b946020939093013593505050565b600060208284031215610843578081fd5b8151801515811461061b578182fd5b600060208284031215610863578081fd5b5051919050565b6000825161087c818460208701610ad2565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b600060208252825180602084015261091d816040850160208701610ad2565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60005b83811015610aed578181015183820152602001610ad5565b83811115610167575050600091015256fea2646970667358221220a59b13a9ed0e21c2fd8e94dc04c81a235f03e4cd419638647768c7e4b61975cb64736f6c63430007050033a26469706673582212206313a958e5fd033a8dcd116b8902de6862ad7f1874fa0d683d889a4d142cdedd64736f6c63430007050033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.