ETH Price: $2,484.86 (+1.88%)

Contract

0x50f9bDe1c76bba997a5d6e7FEFff695ec8536194
 

Overview

ETH Balance

0.033194493524699721 ETH

Eth Value

$82.48 (@ $2,484.86/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0xe416d89a646fce73a4f3c0778e7b51214e5eb1981e8913af8d61f81dbf24d10c Mix Swap(pending)2024-10-12 22:44:5530 mins ago1728773095IN
DODO: Fee Route
0 ETH(Pending)(Pending)
0x2f847f6c05f618689feb9345e09eba9fd879d0d9b8b1b6e7c1863ed0e6f68b64 External Swap(pending)2024-10-06 6:01:476 days ago1728194507IN
DODO: Fee Route
0 ETH(Pending)(Pending)
Mix Swap209252592024-10-09 3:11:233 days ago1728443483IN
DODO: Fee Route
0 ETH0.005341715.09094016
External Swap209251262024-10-09 2:44:473 days ago1728441887IN
DODO: Fee Route
0 ETH0.0062874315.93158618
Mix Swap209251242024-10-09 2:44:233 days ago1728441863IN
DODO: Fee Route
0 ETH0.0025070515.3653662
Mix Swap209248612024-10-09 1:51:473 days ago1728438707IN
DODO: Fee Route
0.1 ETH0.0054653226.98379772
External Swap209236762024-10-08 21:53:474 days ago1728424427IN
DODO: Fee Route
0 ETH0.0166971645.1545791
External Swap209236512024-10-08 21:48:474 days ago1728424127IN
DODO: Fee Route
0 ETH0.0140585853.8721483
Mix Swap209235752024-10-08 21:33:354 days ago1728423215IN
DODO: Fee Route
0.05 ETH0.0033593923.99638642
External Swap209235562024-10-08 21:29:474 days ago1728422987IN
DODO: Fee Route
0 ETH0.00991120.53026136
Mix Swap209235062024-10-08 21:19:474 days ago1728422387IN
DODO: Fee Route
0 ETH0.0043592122.19082482
External Swap209229322024-10-08 19:24:114 days ago1728415451IN
DODO: Fee Route
0 ETH0.0077518524.84766564
External Swap209227472024-10-08 18:46:354 days ago1728413195IN
DODO: Fee Route
0 ETH0.0107219524.68676619
External Swap209227272024-10-08 18:42:354 days ago1728412955IN
DODO: Fee Route
0 ETH0.0078278926.88657687
External Swap209223812024-10-08 17:33:114 days ago1728408791IN
DODO: Fee Route
0 ETH0.0172632540.88397028
External Swap209223732024-10-08 17:31:354 days ago1728408695IN
DODO: Fee Route
0 ETH0.0105553230.54503028
External Swap209220642024-10-08 16:29:474 days ago1728404987IN
DODO: Fee Route
0 ETH0.0148365638.34947706
External Swap209216202024-10-08 15:00:474 days ago1728399647IN
DODO: Fee Route
0 ETH0.0115028842.54436436
External Swap209211882024-10-08 13:34:234 days ago1728394463IN
DODO: Fee Route
0 ETH0.0068549426.54381723
External Swap209208312024-10-08 12:22:474 days ago1728390167IN
DODO: Fee Route
0 ETH0.0068335215.39457084
Mix Swap209208292024-10-08 12:22:234 days ago1728390143IN
DODO: Fee Route
0 ETH0.0029254815.7215522
External Swap209208212024-10-08 12:20:474 days ago1728390047IN
DODO: Fee Route
0.09 ETH0.003702315.96466114
External Swap209207812024-10-08 12:12:234 days ago1728389543IN
DODO: Fee Route
0 ETH0.0035974714.21555678
External Swap209207492024-10-08 12:05:594 days ago1728389159IN
DODO: Fee Route
0 ETH0.0048262514.58207517
External Swap209207412024-10-08 12:04:234 days ago1728389063IN
DODO: Fee Route
1 ETH0.003101714.64804169
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
209252592024-10-09 3:11:233 days ago1728443483
0x50f9bDe1...ec8536194
0 ETH
209252592024-10-09 3:11:233 days ago1728443483
0x50f9bDe1...ec8536194
0 ETH
209252592024-10-09 3:11:233 days ago1728443483
0x50f9bDe1...ec8536194
0 ETH
209252592024-10-09 3:11:233 days ago1728443483
0x50f9bDe1...ec8536194
0 ETH
209252592024-10-09 3:11:233 days ago1728443483
0x50f9bDe1...ec8536194
0 ETH
209252592024-10-09 3:11:233 days ago1728443483
0x50f9bDe1...ec8536194
0 ETH
209252592024-10-09 3:11:233 days ago1728443483
0x50f9bDe1...ec8536194
0 ETH
209251262024-10-09 2:44:473 days ago1728441887
0x50f9bDe1...ec8536194
0 ETH
209251262024-10-09 2:44:473 days ago1728441887
0x50f9bDe1...ec8536194
0 ETH
209251262024-10-09 2:44:473 days ago1728441887
0x50f9bDe1...ec8536194
0 ETH
209251262024-10-09 2:44:473 days ago1728441887
0x50f9bDe1...ec8536194
0 ETH
209251262024-10-09 2:44:473 days ago1728441887
0x50f9bDe1...ec8536194
0 ETH
209251262024-10-09 2:44:473 days ago1728441887
0x50f9bDe1...ec8536194
0 ETH
209251242024-10-09 2:44:233 days ago1728441863
0x50f9bDe1...ec8536194
0.01602344 ETH
209251242024-10-09 2:44:233 days ago1728441863
0x50f9bDe1...ec8536194
0.01602344 ETH
209251242024-10-09 2:44:233 days ago1728441863
0x50f9bDe1...ec8536194
0 ETH
209251242024-10-09 2:44:233 days ago1728441863
0x50f9bDe1...ec8536194
0 ETH
209251242024-10-09 2:44:233 days ago1728441863
0x50f9bDe1...ec8536194
0 ETH
209251242024-10-09 2:44:233 days ago1728441863
0x50f9bDe1...ec8536194
0 ETH
209251242024-10-09 2:44:233 days ago1728441863
0x50f9bDe1...ec8536194
0 ETH
209251242024-10-09 2:44:233 days ago1728441863
0x50f9bDe1...ec8536194
0 ETH
209248612024-10-09 1:51:473 days ago1728438707
0x50f9bDe1...ec8536194
0 ETH
209248612024-10-09 1:51:473 days ago1728438707
0x50f9bDe1...ec8536194
0 ETH
209248612024-10-09 1:51:473 days ago1728438707
0x50f9bDe1...ec8536194
0 ETH
209248612024-10-09 1:51:473 days ago1728438707
0x50f9bDe1...ec8536194
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DODOFeeRouteProxy

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-12-14
*/

// Sources flattened with hardhat v2.11.2 https://hardhat.org

// File contracts/lib/InitializableOwnable.sol



/**
 * @title Ownable
 * @author DODO Breeder
 *
 * @notice Ownership related functions
 */
contract InitializableOwnable {
    address public _OWNER_;
    address public _NEW_OWNER_;
    bool internal _INITIALIZED_;

    // ============ Events ============

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

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

    // ============ Modifiers ============

    modifier notInitialized() {
        require(!_INITIALIZED_, "DODO_INITIALIZED");
        _;
    }

    modifier onlyOwner() {
        require(msg.sender == _OWNER_, "NOT_OWNER");
        _;
    }

    // ============ Functions ============

    function initOwner(address newOwner) public notInitialized {
        _INITIALIZED_ = true;
        _OWNER_ = newOwner;
    }

    function transferOwnership(address newOwner) public onlyOwner {
        emit OwnershipTransferPrepared(_OWNER_, newOwner);
        _NEW_OWNER_ = newOwner;
    }

    function claimOwnership() public {
        require(msg.sender == _NEW_OWNER_, "INVALID_CLAIM");
        emit OwnershipTransferred(_OWNER_, _NEW_OWNER_);
        _OWNER_ = _NEW_OWNER_;
        _NEW_OWNER_ = address(0);
    }
}


// File contracts/intf/IDODOApprove.sol


interface IDODOApprove {
    function claimTokens(address token,address who,address dest,uint256 amount) external;
    function getDODOProxy() external view returns (address);
}


// File contracts/DODOApproveProxy.sol




interface IDODOApproveProxy {
    function isAllowedProxy(address _proxy) external view returns (bool);
    function claimTokens(address token,address who,address dest,uint256 amount) external;
}

/**
 * @title DODOApproveProxy
 * @author DODO Breeder
 *
 * @notice Allow different version dodoproxy to claim from DODOApprove
 */
contract DODOApproveProxy is InitializableOwnable {
    
    // ============ Storage ============
    uint256 private constant _TIMELOCK_DURATION_ = 3 days;
    mapping (address => bool) public _IS_ALLOWED_PROXY_;
    uint256 public _TIMELOCK_;
    address public _PENDING_ADD_DODO_PROXY_;
    address public immutable _DODO_APPROVE_;

    // ============ Modifiers ============
    modifier notLocked() {
        require(
            _TIMELOCK_ <= block.timestamp,
            "SetProxy is timelocked"
        );
        _;
    }

    constructor(address dodoApporve) public {
        _DODO_APPROVE_ = dodoApporve;
    }

    function init(address owner, address[] memory proxies) external {
        initOwner(owner);
        for(uint i = 0; i < proxies.length; i++) 
            _IS_ALLOWED_PROXY_[proxies[i]] = true;
    }

    function unlockAddProxy(address newDodoProxy) public onlyOwner {
        _TIMELOCK_ = block.timestamp + _TIMELOCK_DURATION_;
        _PENDING_ADD_DODO_PROXY_ = newDodoProxy;
    }

    function lockAddProxy() public onlyOwner {
       _PENDING_ADD_DODO_PROXY_ = address(0);
       _TIMELOCK_ = 0;
    }


    function addDODOProxy() external onlyOwner notLocked() {
        _IS_ALLOWED_PROXY_[_PENDING_ADD_DODO_PROXY_] = true;
        lockAddProxy();
    }

    function removeDODOProxy (address oldDodoProxy) public onlyOwner {
        _IS_ALLOWED_PROXY_[oldDodoProxy] = false;
    }
    
    function claimTokens(
        address token,
        address who,
        address dest,
        uint256 amount
    ) external {
        require(_IS_ALLOWED_PROXY_[msg.sender], "DODOApproveProxy:Access restricted");
        IDODOApprove(_DODO_APPROVE_).claimTokens(
            token,
            who,
            dest,
            amount
        );
    }

    function isAllowedProxy(address _proxy) external view returns (bool) {
        return _IS_ALLOWED_PROXY_[_proxy];
    }
}


// File contracts/intf/IWETH.sol




interface IWETH {
    function totalSupply() external view returns (uint256);

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

    function transfer(address recipient, uint256 amount) external returns (bool);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function transferFrom(
        address src,
        address dst,
        uint256 wad
    ) external returns (bool);

    function deposit() external payable;

    function withdraw(uint256 wad) external;
}


// File @openzeppelin/contracts/utils/math/[email protected]



/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. It the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`.
        // We also know that `k`, the position of the most significant bit, is such that `msb(a) = 2**k`.
        // This gives `2**k < a <= 2**(k+1)` → `2**(k/2) <= sqrt(a) < 2 ** (k/2+1)`.
        // Using an algorithm similar to the msb conmputation, we are able to compute `result = 2**(k/2)` which is a
        // good first aproximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1;
        uint256 x = a;
        if (x >> 128 > 0) {
            x >>= 128;
            result <<= 64;
        }
        if (x >> 64 > 0) {
            x >>= 64;
            result <<= 32;
        }
        if (x >> 32 > 0) {
            x >>= 32;
            result <<= 16;
        }
        if (x >> 16 > 0) {
            x >>= 16;
            result <<= 8;
        }
        if (x >> 8 > 0) {
            x >>= 8;
            result <<= 4;
        }
        if (x >> 4 > 0) {
            x >>= 4;
            result <<= 2;
        }
        if (x >> 2 > 0) {
            result <<= 1;
        }

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        uint256 result = sqrt(a);
        if (rounding == Rounding.Up && result * result < a) {
            result += 1;
        }
        return result;
    }
}


// File contracts/lib/DecimalMath.sol


/**
 * @title DecimalMath
 * @author DODO Breeder
 *
 * @notice Functions for fixed point number with 18 decimals
 */

library DecimalMath {

    uint256 internal constant ONE = 10**18;
    uint256 internal constant ONE2 = 10**36;

    function mul(uint256 target, uint256 d) internal pure returns (uint256) {
        return target * d / (10**18);
    }

    function mulFloor(uint256 target, uint256 d) internal pure returns (uint256) {
        return target * d / (10**18);
    }

    function mulCeil(uint256 target, uint256 d) internal pure returns (uint256) {
        return _divCeil(target * d, 10**18);
    }

    function div(uint256 target, uint256 d) internal pure returns (uint256) {
        return target * (10**18) / d;
    }

    function divFloor(uint256 target, uint256 d) internal pure returns (uint256) {
        return target * (10**18) / d;
    }

    function divCeil(uint256 target, uint256 d) internal pure returns (uint256) {
        return _divCeil(target * (10**18), d);
    }

    function reciprocalFloor(uint256 target) internal pure returns (uint256) {
        return uint256(10**36) / target;
    }

    function reciprocalCeil(uint256 target) internal pure returns (uint256) {
        return _divCeil(uint256(10**36), target);
    }

    function sqrt(uint256 target) internal pure returns (uint256) {
        return Math.sqrt(target * ONE);
    }

    function powFloor(uint256 target, uint256 e) internal pure returns (uint256) {
        if (e == 0) {
            return 10 ** 18;
        } else if (e == 1) {
            return target;
        } else {
            uint p = powFloor(target, e / 2);
            p = p * p / (10**18);
            if (e % 2 == 1) {
                p = p * target / (10**18);
            }
            return p;
        }
    }

    function _divCeil(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 quotient = a / b;
        uint256 remainder = a - quotient * b;
        if (remainder > 0) {
            return quotient + 1;
        } else {
            return quotient;
        }
    }
}


// File contracts/SmartRoute/intf/IDODOAdapter.sol



interface IDODOAdapter {
    
    function sellBase(address to, address pool, bytes memory data) external;

    function sellQuote(address to, address pool, bytes memory data) external;
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}


// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]



/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}


// File @openzeppelin/contracts/utils/[email protected]



/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/utils/[email protected]





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

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

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

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

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

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

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File contracts/SmartRoute/lib/UniversalERC20.sol




library UniversalERC20 {
    using SafeERC20 for IERC20;

    IERC20 private constant ETH_ADDRESS = IERC20(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);

    // 1. skip 0 amount
    // 2. handle ETH transfer
    function universalTransfer(
        IERC20 token,
        address payable to,
        uint256 amount
    ) internal {
        if (amount > 0) {
            if (isETH(token)) {
                to.transfer(amount);
            } else {
                token.safeTransfer(to, amount);
            }
        }
    }

    function universalApproveMax(
        IERC20 token,
        address to,
        uint256 amount
    ) internal {
        uint256 allowance = token.allowance(address(this), to);
        if (allowance < amount) {
            if (allowance > 0) {
                token.safeApprove(to, 0);
            }
            token.safeApprove(to, type(uint256).max);
        }
    }

    function universalBalanceOf(IERC20 token, address who) internal view returns (uint256) {
        if (isETH(token)) {
            return who.balance;
        } else {
            return token.balanceOf(who);
        }
    }

    function tokenBalanceOf(IERC20 token, address who) internal view returns (uint256) {
        return token.balanceOf(who);
    }

    function isETH(IERC20 token) internal pure returns (bool) {
        return token == ETH_ADDRESS;
    }
}


// File @openzeppelin/contracts/utils/[email protected]



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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}


// File @openzeppelin/contracts/access/[email protected]



/**
 * @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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}


// File contracts/SmartRoute/DODORouteProxy.sol

/*

    Copyright 2022 DODO ZOO.
    SPDX-License-Identifier: Apache-2.0

*/

pragma solidity 0.8.16;
pragma experimental ABIEncoderV2;









/// @title DODORouteProxy
/// @author DODO Breeder
/// @notice new routeProxy contract with fee rebate to manage all route. It provides three methods to swap, 
/// including mixSwap, multiSwap and externalSwap. Mixswap is for linear swap, which describes one token path 
/// with one pool each time. Multiswap is a simplified version about 1inch, which describes one token path 
/// with several pools each time. ExternalSwap is for other routers like 0x, 1inch and paraswap. Dodo and 
/// front-end users could take certain route fee rebate from each swap. Wherein dodo will get a fixed percentage, 
/// and front-end users could assign any proportion through function parameters.
/// @dev dependence: DODOApprove.sol / DODOApproveProxy.sol / IDODOAdapter.sol
/// In dodo's contract system, there is only one approve entrance DODOApprove.sol. DODOApprove manages DODOApproveProxy,
/// Any contract which needs claim user's tokens must be registered in DODOApproveProxy. They used in DODORouteProxy are 
/// to manage user's token, all user's token must be claimed through DODOApproveProxy and DODOApprove
/// IDODOAdapter determine the interface of adapter, in which swap happened. There are different adapters for different
/// pools. Adapter addresses are parameters contructed off chain so they are loose coupling with routeProxy.
/// adapters have two interface functions. func sellBase(address to, address pool, bytes memory moreInfo) and func sellQuote(address to, address pool, bytes memory moreInfo)

contract DODOFeeRouteProxy is Ownable {

    using UniversalERC20 for IERC20;

    // ============ Storage ============

    address constant _ETH_ADDRESS_ = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
    address public immutable _WETH_;
    // dodo appprove proxy address, the only entrance to get user's token
    address public immutable _DODO_APPROVE_PROXY_;
    // used in multiSwap for split, sum of pool weight must equal totalWeight
    // in PoolInfo, pool weight has 8 bit, so totalWeight < 2**8
    uint256 public totalWeight = 100;
    // check safe safe for external call, add trusted external swap contract, 0x,1inch, paraswap
    // only owner could manage
    mapping(address => bool) public isWhiteListedContract; 
    // check safe for external approve, add trusted external swap approve contract, 0x, 1inch, paraswap
    // only owner could manage
    // Specially for 0x swap from eth, add zero address
    mapping(address => bool) public isApproveWhiteListedContract; 

    // dodo route fee rate, unit is 10**18, default fee rate is 1.5 * 1e15 / 1e18 = 0.0015 = 0.015%
    uint256 public routeFeeRate = 1500000000000000; 
    // dodo route fee receiver
    address public routeFeeReceiver;

    struct PoolInfo {
        // pool swap direciton, 0 is for sellBase, 1 is for sellQuote
        uint256 direction;
        // distinct transferFrom pool(like dodoV1) and transfer pool
        // 1 is for transferFrom pool, pool call transferFrom function to get tokens from adapter
        // 2 is for transfer pool, pool determine swapAmount through balanceOf(Token) - reserve
        uint256 poolEdition;
        // pool weight, actualWeight = weight/totalWeight, totalAmount * actualWeight = amount through this pool swap
        uint256 weight;
        // pool address
        address pool;
        // pool adapter, making actual swap call in corresponding adapter
        address adapter;
        // pool adapter's Info, record addtional infos(could be zero-bytes) needed by each pool adapter
        bytes moreInfo;
    }

    // ============ Events ============

    event OrderHistory(
        address fromToken,
        address toToken,
        address sender,
        uint256 fromAmount,
        uint256 returnAmount
    );

    // ============ Modifiers ============

    modifier judgeExpired(uint256 deadLine) {
        require(deadLine >= block.timestamp, "DODORouteProxy: EXPIRED");
        _;
    }

    fallback() external payable {}

    receive() external payable {}

    // ============ Constructor ============

    constructor(address payable weth, address dodoApproveProxy, address feeReceiver) public {
        require(feeReceiver != address(0), "DODORouteProxy: feeReceiver invalid");
        require(dodoApproveProxy != address(0), "DODORouteProxy: dodoApproveProxy invalid");
        require(weth != address(0), "DODORouteProxy: weth address invalid");

        _WETH_ = weth;
        _DODO_APPROVE_PROXY_ = dodoApproveProxy;
        routeFeeReceiver = feeReceiver;
    }

    // ============ Owner only ============

    function addWhiteList(address contractAddr) public onlyOwner {
        isWhiteListedContract[contractAddr] = true;
    }

    function removeWhiteList(address contractAddr) public onlyOwner {
        isWhiteListedContract[contractAddr] = false;
    }

    function addApproveWhiteList(address contractAddr) public onlyOwner {
        isApproveWhiteListedContract[contractAddr] = true;
    }

    function removeApproveWhiteList(address contractAddr) public onlyOwner {
        isApproveWhiteListedContract[contractAddr] = false;
    }

    function changeRouteFeeRate(uint256 newFeeRate) public onlyOwner {
        require(newFeeRate < 10**18, "DODORouteProxy: newFeeRate overflowed");
        routeFeeRate = newFeeRate;
    }
  
    function changeRouteFeeReceiver(address newFeeReceiver) public onlyOwner {
        require(newFeeReceiver != address(0), "DODORouteProxy: feeReceiver invalid");
        routeFeeReceiver = newFeeReceiver;
    }

    function changeTotalWeight(uint256 newTotalWeight) public onlyOwner {
        require(newTotalWeight < 2 ** 8, "DODORouteProxy: totalWeight overflowed");
        totalWeight = newTotalWeight;
    }

    /// @notice used for emergency, generally there wouldn't be tokens left
    function superWithdraw(address token) public onlyOwner {
        if(token != _ETH_ADDRESS_) {
            uint256 restAmount = IERC20(token).universalBalanceOf(address(this));
            IERC20(token).universalTransfer(payable(routeFeeReceiver), restAmount);
        } else {
            uint256 restAmount = address(this).balance;
            payable(routeFeeReceiver).transfer(restAmount);
        }
    }

    // ============ Swap ============


    /// @notice Call external black box contracts to finish a swap
    /// @param approveTarget external swap approve address
    /// @param swapTarget external swap address
    /// @param feeData route fee info
    /// @param callDataConcat external swap data, toAddress need to be routeProxy
    /// specially when toToken is ETH, use WETH as external calldata's toToken
    function externalSwap(
        address fromToken,
        address toToken,
        address approveTarget,
        address swapTarget,
        uint256 fromTokenAmount,
        uint256 minReturnAmount,
        bytes memory feeData,
        bytes memory callDataConcat,
        uint256 deadLine
    ) external payable judgeExpired(deadLine) returns (uint256 receiveAmount) {      
        require(isWhiteListedContract[swapTarget], "DODORouteProxy: Not Whitelist Contract");  
        require(isApproveWhiteListedContract[approveTarget], "DODORouteProxy: Not Whitelist Appprove Contract");  

        // transfer in fromToken
        if (fromToken != _ETH_ADDRESS_) {
            // approve if needed
            if (approveTarget != address(0)) {
                IERC20(fromToken).universalApproveMax(approveTarget, fromTokenAmount);
            }

            IDODOApproveProxy(_DODO_APPROVE_PROXY_).claimTokens(
                fromToken,
                msg.sender,
                address(this),
                fromTokenAmount
            );
        } else {
            // value check
            require(msg.value == fromTokenAmount, "DODORouteProxy: invalid ETH amount");
        }

        // swap
        uint256 toTokenOriginBalance;
        if(toToken != _ETH_ADDRESS_) {
            toTokenOriginBalance = IERC20(toToken).universalBalanceOf(address(this));
        } else {
            toTokenOriginBalance = IERC20(_WETH_).universalBalanceOf(address(this));
        }

        {  
            require(swapTarget != _DODO_APPROVE_PROXY_, "DODORouteProxy: Risk Target");
            (bool success, bytes memory result) = swapTarget.call{
                value: fromToken == _ETH_ADDRESS_ ? fromTokenAmount : 0
            }(callDataConcat);
            // revert with lowlevel info
            if (success == false) {
                assembly {
                    revert(add(result,32),mload(result))
                }
            }
        }

        // calculate toToken amount
        if(toToken != _ETH_ADDRESS_) {
            receiveAmount = IERC20(toToken).universalBalanceOf(address(this)) - (
                toTokenOriginBalance
            );
        } else {
            receiveAmount = IERC20(_WETH_).universalBalanceOf(address(this)) - (
                toTokenOriginBalance
            );
        }
        
        // distribute toToken
        receiveAmount = _routeWithdraw(toToken, receiveAmount, feeData, minReturnAmount);

        emit OrderHistory(fromToken, toToken, msg.sender, fromTokenAmount, receiveAmount);
    }

    /// @notice linear version, describes one token path with one pool each time
    /// @param mixAdapters adapter address array, record each pool's interrelated adapter in order
    /// @param mixPairs pool address array, record pool address of the whole route in order
    /// @param assetTo asset Address(pool or proxy), describe pool adapter's receiver address. Specially assetTo[0] is deposit receiver before all
    /// @param directions pool directions aggregation, one bit represent one pool direction, 0 means sellBase, 1 means sellQuote
    /// @param moreInfos pool adapter's Info set, record addtional infos(could be zero-bytes) needed by each pool adapter, keeping order with adapters
    /// @param feeData route fee info, bytes decode into broker and brokerFee, determine rebate proportion, brokerFee in [0, 1e18]
    function mixSwap(
        address fromToken,
        address toToken,
        uint256 fromTokenAmount,
        uint256 minReturnAmount,
        address[] memory mixAdapters,
        address[] memory mixPairs,
        address[] memory assetTo,
        uint256 directions,
        bytes[] memory moreInfos,
        bytes memory feeData,
        uint256 deadLine
    ) external payable judgeExpired(deadLine) returns (uint256 receiveAmount) {
        require(mixPairs.length > 0, "DODORouteProxy: PAIRS_EMPTY");
        require(mixPairs.length == mixAdapters.length, "DODORouteProxy: PAIR_ADAPTER_NOT_MATCH");
        require(mixPairs.length == assetTo.length - 1, "DODORouteProxy: PAIR_ASSETTO_NOT_MATCH");
        require(minReturnAmount > 0, "DODORouteProxy: RETURN_AMOUNT_ZERO");

        address _toToken = toToken;
        {
        uint256 _fromTokenAmount = fromTokenAmount;
        address _fromToken = fromToken;

        uint256 toTokenOriginBalance;
        if(_toToken != _ETH_ADDRESS_) {
            toTokenOriginBalance = IERC20(_toToken).universalBalanceOf(address(this));
        } else {
            toTokenOriginBalance = IERC20(_WETH_).universalBalanceOf(address(this));
        }

        // transfer in fromToken
        _deposit(
            msg.sender,
            assetTo[0],
            _fromToken,
            _fromTokenAmount,
            _fromToken == _ETH_ADDRESS_
        );

        // swap
        for (uint256 i = 0; i < mixPairs.length; i++) {
            if (directions & 1 == 0) {
                IDODOAdapter(mixAdapters[i]).sellBase(
                    assetTo[i + 1],
                    mixPairs[i],
                    moreInfos[i]
                );
            } else {
                IDODOAdapter(mixAdapters[i]).sellQuote(
                    assetTo[i + 1],
                    mixPairs[i],
                    moreInfos[i]
                );
            }
            directions = directions >> 1;
        }

        // calculate toToken amount
        if(_toToken != _ETH_ADDRESS_) {
            receiveAmount = IERC20(_toToken).universalBalanceOf(address(this)) - (
                toTokenOriginBalance
            );
        } else {
            receiveAmount = IERC20(_WETH_).universalBalanceOf(address(this)) - (
                toTokenOriginBalance
            );
        }
        }

        // distribute toToken
        receiveAmount = _routeWithdraw(_toToken, receiveAmount, feeData, minReturnAmount);

        emit OrderHistory(fromToken, toToken, msg.sender, fromTokenAmount, receiveAmount);
    }

    /// @notice split version, describes one token path with several pools each time. Called one token pair with several pools "one split"
    /// @param splitNumber record pool number in one split, determine sequence(poolInfo) array subscript in transverse. Begin with 0
    /// for example, [0,1, 3], mean the first split has one(1 - 0) pool, the second split has 2 (3 - 1) pool
    /// @param midToken middle token set, record token path in order. 
    /// Specially midToken[1] is WETH addresss when fromToken is ETH. Besides midToken[1] is also fromToken 
    /// Specially midToken[length - 2] is WETH address and midToken[length -1 ] is ETH address when toToken is ETH. Besides midToken[length -1]
    /// is the last toToken and midToken[length - 2] is common second last middle token.
    /// @param assetFrom asset Address(pool or proxy)describe pool adapter's receiver address. Specially assetFrom[0] is deposit receiver before all
    /// @param sequence PoolInfo sequence, describe each pool's attributions, ordered by spiltNumber
    /// @param feeData route fee info, bytes decode into broker and brokerFee, determine rebate proportion, brokerFee in [0, 1e18]
    function dodoMutliSwap(
        uint256 fromTokenAmount,
        uint256 minReturnAmount,
        uint256[] memory splitNumber,  
        address[] memory midToken,
        address[] memory assetFrom,
        bytes[] memory sequence, 
        bytes memory feeData,
        uint256 deadLine
    ) external payable judgeExpired(deadLine) returns (uint256 receiveAmount) {
        address toToken = midToken[midToken.length - 1];
        {
        require(
            assetFrom.length == splitNumber.length,
            "DODORouteProxy: PAIR_ASSETTO_NOT_MATCH"
        );
        require(minReturnAmount > 0, "DODORouteProxy: RETURN_AMOUNT_ZERO");
        uint256 _fromTokenAmount = fromTokenAmount;
        address fromToken = midToken[0];

        uint256 toTokenOriginBalance;
        if(toToken != _ETH_ADDRESS_) {
            toTokenOriginBalance = IERC20(toToken).universalBalanceOf(address(this));
        } else {
            toTokenOriginBalance = IERC20(_WETH_).universalBalanceOf(address(this));
        }

        // transfer in fromToken
        _deposit(
            msg.sender,
            assetFrom[0],
            fromToken,
            _fromTokenAmount,
            fromToken == _ETH_ADDRESS_
        );

        // swap
        _multiSwap(midToken, splitNumber, sequence, assetFrom);

        // calculate toToken amount
        if(toToken != _ETH_ADDRESS_) {
            receiveAmount = IERC20(toToken).universalBalanceOf(address(this)) - (
                toTokenOriginBalance
            );
        } else {
            receiveAmount = IERC20(_WETH_).universalBalanceOf(address(this)) - (
                toTokenOriginBalance
            );
        }
        }
        // distribute toToken
        receiveAmount = _routeWithdraw(toToken, receiveAmount, feeData, minReturnAmount);

        emit OrderHistory(
            midToken[0], //fromToken
            midToken[midToken.length - 1], //toToken
            msg.sender,
            fromTokenAmount,
            receiveAmount
        );
    }

    //====================== internal =======================
    /// @notice multiSwap process
    function _multiSwap(
        address[] memory midToken,
        uint256[] memory splitNumber,
        bytes[] memory swapSequence,
        address[] memory assetFrom
    ) internal {
        for (uint256 i = 1; i < splitNumber.length; i++) {
            // begin one split(one token pair with one or more pools)
            // define midtoken address, ETH -> WETH address
            uint256 curTotalAmount = IERC20(midToken[i]).tokenBalanceOf(assetFrom[i - 1]);
            uint256 curTotalWeight = totalWeight;

            // split amount into all pools if needed, transverse all pool in this split
            for (uint256 j = splitNumber[i - 1]; j < splitNumber[i]; j++) {
                PoolInfo memory curPoolInfo;
                {
                    (address pool, address adapter, uint256 mixPara, bytes memory moreInfo) = abi
                        .decode(swapSequence[j], (address, address, uint256, bytes));

                    curPoolInfo.direction = mixPara >> 17;
                    curPoolInfo.weight = (0xffff & mixPara) >> 9;
                    curPoolInfo.poolEdition = (0xff & mixPara);
                    curPoolInfo.pool = pool;
                    curPoolInfo.adapter = adapter;
                    curPoolInfo.moreInfo = moreInfo;
                }

                // assetFrom[i - 1] is routeProxy when there are more than one pools in this split
                if (assetFrom[i - 1] == address(this)) {
                    uint256 curAmount = curTotalAmount * curPoolInfo.weight / curTotalWeight;
                    // last spilt check
                    if(j == splitNumber[i] - 1) {
                        curAmount = IERC20(midToken[i]).tokenBalanceOf(address(this));
                    }

                    if (curPoolInfo.poolEdition == 1) {
                        //For using transferFrom pool (like dodoV1, Curve), pool call transferFrom function to get tokens from adapter
                        SafeERC20.safeTransfer(IERC20(midToken[i]), curPoolInfo.adapter, curAmount);
                    } else {
                        //For using transfer pool (like dodoV2), pool determine swapAmount through balanceOf(Token) - reserve
                        SafeERC20.safeTransfer(IERC20(midToken[i]), curPoolInfo.pool, curAmount);
                    }
                }

                if (curPoolInfo.direction == 0) {
                    IDODOAdapter(curPoolInfo.adapter).sellBase(
                        assetFrom[i],
                        curPoolInfo.pool,
                        curPoolInfo.moreInfo
                    );
                } else {
                    IDODOAdapter(curPoolInfo.adapter).sellQuote(
                        assetFrom[i],
                        curPoolInfo.pool,
                        curPoolInfo.moreInfo
                    );
                }
            }
        }
    }

    /// @notice before the first pool swap, contract call _deposit to get ERC20 token through DODOApprove/transfer ETH to WETH
    function _deposit(
        address from,
        address to,
        address token,
        uint256 amount,
        bool isETH
    ) internal {
        if (isETH) {
            if (amount > 0) {
                require(msg.value == amount, "ETH_VALUE_WRONG");
                IWETH(_WETH_).deposit{value: amount}();
                if (to != address(this)) SafeERC20.safeTransfer(IERC20(_WETH_), to, amount);
            }
        } else {
            IDODOApproveProxy(_DODO_APPROVE_PROXY_).claimTokens(token, from, to, amount);
        }
    }

    /// @notice after all swaps, transfer tokens to original receiver(user) and distribute fees to DODO and broker
    /// Specially when toToken is ETH, distribute WETH
    function _routeWithdraw(
        address toToken,
        uint256 receiveAmount,
        bytes memory feeData,
        uint256 minReturnAmount
    ) internal returns(uint256 userReceiveAmount) {
        address originToToken = toToken;
        if(toToken == _ETH_ADDRESS_) {
            toToken = _WETH_;
        }
        (address broker, uint256 brokerFeeRate) = abi.decode(feeData, (address, uint256));
        require(brokerFeeRate < 10**18, "DODORouteProxy: brokerFeeRate overflowed");

        uint256 routeFee = DecimalMath.mulFloor(receiveAmount, routeFeeRate);
        IERC20(toToken).universalTransfer(payable(routeFeeReceiver), routeFee);

        uint256 brokerFee = DecimalMath.mulFloor(receiveAmount, brokerFeeRate);
        IERC20(toToken).universalTransfer(payable(broker), brokerFee);
        
        receiveAmount = receiveAmount - routeFee - brokerFee;
        require(receiveAmount >= minReturnAmount, "DODORouteProxy: Return amount is not enough");
        
        if (originToToken == _ETH_ADDRESS_) {
            IWETH(_WETH_).withdraw(receiveAmount);
            payable(msg.sender).transfer(receiveAmount);
        } else {
            IERC20(toToken).universalTransfer(payable(msg.sender), receiveAmount);
        }

        userReceiveAmount = receiveAmount;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"weth","type":"address"},{"internalType":"address","name":"dodoApproveProxy","type":"address"},{"internalType":"address","name":"feeReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"fromToken","type":"address"},{"indexed":false,"internalType":"address","name":"toToken","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"returnAmount","type":"uint256"}],"name":"OrderHistory","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"_DODO_APPROVE_PROXY_","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_WETH_","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddr","type":"address"}],"name":"addApproveWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddr","type":"address"}],"name":"addWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFeeRate","type":"uint256"}],"name":"changeRouteFeeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeReceiver","type":"address"}],"name":"changeRouteFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTotalWeight","type":"uint256"}],"name":"changeTotalWeight","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTokenAmount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"uint256[]","name":"splitNumber","type":"uint256[]"},{"internalType":"address[]","name":"midToken","type":"address[]"},{"internalType":"address[]","name":"assetFrom","type":"address[]"},{"internalType":"bytes[]","name":"sequence","type":"bytes[]"},{"internalType":"bytes","name":"feeData","type":"bytes"},{"internalType":"uint256","name":"deadLine","type":"uint256"}],"name":"dodoMutliSwap","outputs":[{"internalType":"uint256","name":"receiveAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"address","name":"approveTarget","type":"address"},{"internalType":"address","name":"swapTarget","type":"address"},{"internalType":"uint256","name":"fromTokenAmount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"bytes","name":"feeData","type":"bytes"},{"internalType":"bytes","name":"callDataConcat","type":"bytes"},{"internalType":"uint256","name":"deadLine","type":"uint256"}],"name":"externalSwap","outputs":[{"internalType":"uint256","name":"receiveAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isApproveWhiteListedContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhiteListedContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromTokenAmount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"address[]","name":"mixAdapters","type":"address[]"},{"internalType":"address[]","name":"mixPairs","type":"address[]"},{"internalType":"address[]","name":"assetTo","type":"address[]"},{"internalType":"uint256","name":"directions","type":"uint256"},{"internalType":"bytes[]","name":"moreInfos","type":"bytes[]"},{"internalType":"bytes","name":"feeData","type":"bytes"},{"internalType":"uint256","name":"deadLine","type":"uint256"}],"name":"mixSwap","outputs":[{"internalType":"uint256","name":"receiveAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddr","type":"address"}],"name":"removeApproveWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddr","type":"address"}],"name":"removeWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"routeFeeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"routeFeeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"superWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c060405260646001556605543df729c0006004553480156200002157600080fd5b5060405162002db238038062002db283398101604081905262000044916200021c565b6200004f33620001b3565b6001600160a01b038116620000b75760405162461bcd60e51b815260206004820152602360248201527f444f444f526f75746550726f78793a20666565526563656976657220696e76616044820152621b1a5960ea1b60648201526084015b60405180910390fd5b6001600160a01b038216620001205760405162461bcd60e51b815260206004820152602860248201527f444f444f526f75746550726f78793a20646f646f417070726f766550726f7879604482015267081a5b9d985b1a5960c21b6064820152608401620000ae565b6001600160a01b038316620001845760405162461bcd60e51b8152602060048201526024808201527f444f444f526f75746550726f78793a2077657468206164647265737320696e76604482015263185b1a5960e21b6064820152608401620000ae565b6001600160a01b0392831660805290821660a052600580546001600160a01b0319169190921617905562000270565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200021957600080fd5b50565b6000806000606084860312156200023257600080fd5b83516200023f8162000203565b6020850151909350620002528162000203565b6040850151909250620002658162000203565b809150509250925092565b60805160a051612ac1620002f1600039600081816103c401528181610ec701528181610ffa015261157e01526000818161015d01528181610643015281816108ed01528181610bc001528181610c6301528181610fcf0152818161116e015281816114950152818161151d0152818161160c01526117b40152612ac16000f3fe6080604052600436106101225760003560e01c80638da5cb5b116100a5578063b887bdac1161006c578063b887bdac1461030c578063bc74f9ff14610322578063e22367a414610362578063e7cd4a0414610392578063eb99be12146103b2578063f2fde38b146103e657005b80638da5cb5b1461029257806394cfab17146102b057806396c82e57146102c3578063a8676443146102d9578063b1dc7df9146102ec57005b80633b16827f116100e95780633b16827f146101fd5780634ab755631461021d5780634f3d2fd71461023d5780635af351181461025d578063715018a61461027d57005b80630c8310851461012b5780630d4eec8f1461014b5780632042e5c21461019c5780632a7bc4a8146101bc578063301a3720146101dc57005b3661012957005b005b34801561013757600080fd5b506101296101463660046121bd565b610406565b34801561015757600080fd5b5061017f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101a857600080fd5b506101296101b73660046121fb565b61047d565b3480156101c857600080fd5b506101296101d73660046121fb565b6104a6565b6101ef6101ea3660046123f0565b6104d2565b604051908152602001610193565b34801561020957600080fd5b506101296102183660046121bd565b610981565b34801561022957600080fd5b506101296102383660046121fb565b6109ee565b34801561024957600080fd5b5060055461017f906001600160a01b031681565b34801561026957600080fd5b506101296102783660046121fb565b610a17565b34801561028957600080fd5b50610129610aa3565b34801561029e57600080fd5b506000546001600160a01b031661017f565b6101ef6102be366004612570565b610ab7565b3480156102cf57600080fd5b506101ef60015481565b6101ef6102e736600461265f565b610d34565b3480156102f857600080fd5b506101296103073660046121fb565b6111fd565b34801561031857600080fd5b506101ef60045481565b34801561032e57600080fd5b5061035261033d3660046121fb565b60026020526000908152604090205460ff1681565b6040519015158152602001610193565b34801561036e57600080fd5b5061035261037d3660046121fb565b60036020526000908152604090205460ff1681565b34801561039e57600080fd5b506101296103ad3660046121fb565b61129f565b3480156103be57600080fd5b5061017f7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103f257600080fd5b506101296104013660046121fb565b6112cb565b61040e611341565b670de0b6b3a764000081106104785760405162461bcd60e51b815260206004820152602560248201527f444f444f526f75746550726f78793a206e657746656552617465206f766572666044820152641b1bddd95960da1b60648201526084015b60405180910390fd5b600455565b610485611341565b6001600160a01b03166000908152600260205260409020805460ff19169055565b6104ae611341565b6001600160a01b03166000908152600360205260409020805460ff19166001179055565b600081428110156104f55760405162461bcd60e51b815260040161046f90612727565b60008851116105465760405162461bcd60e51b815260206004820152601b60248201527f444f444f526f75746550726f78793a2050414952535f454d5054590000000000604482015260640161046f565b88518851146105a65760405162461bcd60e51b815260206004820152602660248201527f444f444f526f75746550726f78793a20504149525f414441505445525f4e4f546044820152650be9a82a886960d31b606482015260840161046f565b600187516105b49190612774565b8851146105d35760405162461bcd60e51b815260040161046f90612787565b60008a116105f35760405162461bcd60e51b815260040161046f906127cd565b8b8b8e60006001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146106365761062f6001600160a01b0385163061139b565b905061066c565b6106696001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163061139b565b90505b6106bb338c6000815181106106835761068361280f565b6020026020010151848673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316876001600160a01b031614611446565b60005b8c51811015610895578a6001166000036107a9578d81815181106106e4576106e461280f565b60200260200101516001600160a01b03166330e6ae318d8360016107089190612825565b815181106107185761071861280f565b60200260200101518f84815181106107325761073261280f565b60200260200101518d858151811061074c5761074c61280f565b60200260200101516040518463ffffffff1660e01b815260040161077293929190612888565b600060405180830381600087803b15801561078c57600080fd5b505af11580156107a0573d6000803e3d6000fd5b5050505061087c565b8d81815181106107bb576107bb61280f565b60200260200101516001600160a01b0316636f7929f28d8360016107df9190612825565b815181106107ef576107ef61280f565b60200260200101518f84815181106108095761080961280f565b60200260200101518d85815181106108235761082361280f565b60200260200101516040518463ffffffff1660e01b815260040161084993929190612888565b600060405180830381600087803b15801561086357600080fd5b505af1158015610877573d6000803e3d6000fd5b505050505b60019a909a1c998061088d816128bd565b9150506106be565b506001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146108df57806108ce6001600160a01b0386163061139b565b6108d89190612774565b9550610920565b806109136001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163061139b565b61091d9190612774565b95505b50505061092f8184878e6115e2565b92507f92ceb067a9883c85aba061e46b9edf505a0d6e81927c4b966ebed543a52217878e8e338f876040516109689594939291906128d6565b60405180910390a150509b9a5050505050505050505050565b610989611341565b61010081106109e95760405162461bcd60e51b815260206004820152602660248201527f444f444f526f75746550726f78793a20746f74616c576569676874206f766572604482015265199b1bddd95960d21b606482015260840161046f565b600155565b6109f6611341565b6001600160a01b03166000908152600360205260409020805460ff19169055565b610a1f611341565b6001600160a01b038116610a815760405162461bcd60e51b815260206004820152602360248201527f444f444f526f75746550726f78793a20666565526563656976657220696e76616044820152621b1a5960ea1b606482015260840161046f565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610aab611341565b610ab5600061186d565b565b60008142811015610ada5760405162461bcd60e51b815260040161046f90612727565b60008760018951610aeb9190612774565b81518110610afb57610afb61280f565b602002602001015190508851875114610b265760405162461bcd60e51b815260040161046f90612787565b60008a11610b465760405162461bcd60e51b815260040161046f906127cd565b60008b9050600089600081518110610b6057610b6061280f565b60200260200101519050600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316846001600160a01b031614610bb357610bac6001600160a01b0385163061139b565b9050610be9565b610be66001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163061139b565b90505b610c00338b6000815181106106835761068361280f565b610c0c8b8d8b8d6118bd565b6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610c555780610c446001600160a01b0386163061139b565b610c4e9190612774565b9550610c96565b80610c896001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163061139b565b610c939190612774565b95505b505050610ca58184878d6115e2565b92507f92ceb067a9883c85aba061e46b9edf505a0d6e81927c4b966ebed543a522178788600081518110610cdb57610cdb61280f565b60200260200101518960018b51610cf29190612774565b81518110610d0257610d0261280f565b6020026020010151338e87604051610d1e9594939291906128d6565b60405180910390a1505098975050505050505050565b60008142811015610d575760405162461bcd60e51b815260040161046f90612727565b6001600160a01b03881660009081526002602052604090205460ff16610dce5760405162461bcd60e51b815260206004820152602660248201527f444f444f526f75746550726f78793a204e6f742057686974656c69737420436f6044820152651b9d1c9858dd60d21b606482015260840161046f565b6001600160a01b03891660009081526003602052604090205460ff16610e4e5760405162461bcd60e51b815260206004820152602f60248201527f444f444f526f75746550726f78793a204e6f742057686974656c69737420417060448201526e1c1c1c9bdd994810dbdb9d1c9858dd608a1b606482015260840161046f565b6001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610f28576001600160a01b03891615610e9557610e956001600160a01b038c168a89611c74565b60405163052f523360e11b81526001600160a01b038c81166004830152336024830152306044830152606482018990527f00000000000000000000000000000000000000000000000000000000000000001690630a5ea46690608401600060405180830381600087803b158015610f0b57600080fd5b505af1158015610f1f573d6000803e3d6000fd5b50505050610f82565b863414610f825760405162461bcd60e51b815260206004820152602260248201527f444f444f526f75746550726f78793a20696e76616c69642045544820616d6f756044820152611b9d60f21b606482015260840161046f565b60006001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610fc257610fbb6001600160a01b038c163061139b565b9050610ff8565b610ff56001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163061139b565b90505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316896001600160a01b0316036110795760405162461bcd60e51b815260206004820152601b60248201527f444f444f526f75746550726f78793a205269736b205461726765740000000000604482015260640161046f565b6000806001600160a01b03808c16908f1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146110ab5760006110ad565b8a5b886040516110bb919061290a565b60006040518083038185875af1925050503d80600081146110f8576040519150601f19603f3d011682016040523d82523d6000602084013e6110fd565b606091505b50909250905081151560000361111557805160208201fd5b50506001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611160578061114f6001600160a01b038d163061139b565b6111599190612774565b92506111a1565b806111946001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163061139b565b61119e9190612774565b92505b6111ad8b84888a6115e2565b92507f92ceb067a9883c85aba061e46b9edf505a0d6e81927c4b966ebed543a52217878c8c338b876040516111e69594939291906128d6565b60405180910390a150509998505050505050505050565b611205611341565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461125f57600061123e6001600160a01b0383163061139b565b60055490915061125b906001600160a01b03848116911683611d29565b5050565b60055460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050158015611299573d6000803e3d6000fd5b50505b50565b6112a7611341565b6001600160a01b03166000908152600260205260409020805460ff19166001179055565b6112d3611341565b6001600160a01b0381166113385760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161046f565b61129c8161186d565b6000546001600160a01b03163314610ab55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161046f565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b038416036113d257506001600160a01b03811631611440565b6040516370a0823160e01b81526001600160a01b0383811660048301528416906370a08231906024015b602060405180830381865afa158015611419573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143d9190612926565b90505b92915050565b8015611548578115611543578134146114935760405162461bcd60e51b815260206004820152600f60248201526e4554485f56414c55455f57524f4e4760881b604482015260640161046f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b1580156114ee57600080fd5b505af1158015611502573d6000803e3d6000fd5b505050506001600160a01b03851630149050611543576115437f00000000000000000000000000000000000000000000000000000000000000008584611d9f565b6115db565b60405163052f523360e11b81526001600160a01b03848116600483015286811660248301528581166044830152606482018490527f00000000000000000000000000000000000000000000000000000000000000001690630a5ea46690608401600060405180830381600087803b1580156115c257600080fd5b505af11580156115d6573d6000803e3d6000fd5b505050505b5050505050565b60008473eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b0382160161162e577f000000000000000000000000000000000000000000000000000000000000000095505b60008085806020019051810190611645919061293f565b91509150670de0b6b3a764000081106116b15760405162461bcd60e51b815260206004820152602860248201527f444f444f526f75746550726f78793a2062726f6b657246656552617465206f76604482015267195c999b1bddd95960c21b606482015260840161046f565b60006116bf88600454611e02565b6005549091506116dc906001600160a01b038b8116911683611d29565b60006116e88984611e02565b90506116fe6001600160a01b038b168583611d29565b80611709838b612774565b6117139190612774565b9850868910156117795760405162461bcd60e51b815260206004820152602b60248201527f444f444f526f75746550726f78793a2052657475726e20616d6f756e7420697360448201526a040dcdee840cadcdeeaced60ab1b606482015260840161046f565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b0386160161184b57604051632e1a7d4d60e01b8152600481018a90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561180057600080fd5b505af1158015611814573d6000803e3d6000fd5b50506040513392508b156108fc0291508b906000818181858888f19350505050158015611845573d6000803e3d6000fd5b5061185f565b61185f6001600160a01b038b16338b611d29565b509698975050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60015b83518110156115db576000611923836118da600185612774565b815181106118ea576118ea61280f565b60200260200101518784815181106119045761190461280f565b60200260200101516001600160a01b0316611e2190919063ffffffff16565b6001805491925060009087906119399086612774565b815181106119495761194961280f565b602002602001015190505b8684815181106119665761196661280f565b6020026020010151811015611c5e576119c06040518060c0016040528060008152602001600081526020016000815260200160006001600160a01b0316815260200160006001600160a01b03168152602001606081525090565b6000806000808a86815181106119d8576119d861280f565b60200260200101518060200190518101906119f3919061296d565b601182901c8952607f600983901c1660408a015260ff90911660208901526001600160a01b0392831660608901529116608087015260a086015250309250889150611a419050600188612774565b81518110611a5157611a5161280f565b60200260200101516001600160a01b031603611b2e57600083826040015186611a7a9190612a15565b611a849190612a34565b90506001898781518110611a9a57611a9a61280f565b6020026020010151611aac9190612774565b8303611acb57611ac8308b88815181106119045761190461280f565b90505b8160200151600103611b0457611aff8a8781518110611aec57611aec61280f565b6020026020010151836080015183611d9f565b611b2c565b611b2c8a8781518110611b1957611b1961280f565b6020026020010151836060015183611d9f565b505b8051600003611bc35780608001516001600160a01b03166330e6ae31878781518110611b5c57611b5c61280f565b602002602001015183606001518460a001516040518463ffffffff1660e01b8152600401611b8c93929190612888565b600060405180830381600087803b158015611ba657600080fd5b505af1158015611bba573d6000803e3d6000fd5b50505050611c4b565b80608001516001600160a01b0316636f7929f2878781518110611be857611be861280f565b602002602001015183606001518460a001516040518463ffffffff1660e01b8152600401611c1893929190612888565b600060405180830381600087803b158015611c3257600080fd5b505af1158015611c46573d6000803e3d6000fd5b505050505b5080611c56816128bd565b915050611954565b5050508080611c6c906128bd565b9150506118c0565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015611cc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce89190612926565b905081811015611d23578015611d0d57611d0d6001600160a01b038516846000611e53565b611d236001600160a01b03851684600019611e53565b50505050565b80156112995773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b03841603611d8f576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611d89573d6000803e3d6000fd5b50611299565b6112996001600160a01b03841683835b6040516001600160a01b03831660248201526044810182905261129990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611f68565b6000670de0b6b3a7640000611e178385612a15565b61143d9190612a34565b6040516370a0823160e01b81526001600160a01b038281166004830152600091908416906370a08231906024016113fc565b801580611ecd5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611ea7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ecb9190612926565b155b611f385760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161046f565b6040516001600160a01b03831660248201526044810182905261129990849063095ea7b360e01b90606401611dcb565b6000611fbd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661203a9092919063ffffffff16565b8051909150156112995780806020019051810190611fdb9190612a56565b6112995760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161046f565b60606120498484600085612053565b90505b9392505050565b6060824710156120b45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161046f565b6001600160a01b0385163b61210b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161046f565b600080866001600160a01b03168587604051612127919061290a565b60006040518083038185875af1925050503d8060008114612164576040519150601f19603f3d011682016040523d82523d6000602084013e612169565b606091505b5091509150612179828286612184565b979650505050505050565b6060831561219357508161204c565b8251156121a35782518084602001fd5b8160405162461bcd60e51b815260040161046f9190612a78565b6000602082840312156121cf57600080fd5b5035919050565b6001600160a01b038116811461129c57600080fd5b80356121f6816121d6565b919050565b60006020828403121561220d57600080fd5b813561204c816121d6565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561225757612257612218565b604052919050565b600067ffffffffffffffff82111561227957612279612218565b5060051b60200190565b600082601f83011261229457600080fd5b813560206122a96122a48361225f565b61222e565b82815260059290921b840181019181810190868411156122c857600080fd5b8286015b848110156122ec5780356122df816121d6565b83529183019183016122cc565b509695505050505050565b600067ffffffffffffffff82111561231157612311612218565b50601f01601f191660200190565b600082601f83011261233057600080fd5b813561233e6122a4826122f7565b81815284602083860101111561235357600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261238157600080fd5b813560206123916122a48361225f565b82815260059290921b840181019181810190868411156123b057600080fd5b8286015b848110156122ec57803567ffffffffffffffff8111156123d45760008081fd5b6123e28986838b010161231f565b8452509183019183016123b4565b60008060008060008060008060008060006101608c8e03121561241257600080fd5b61241b8c6121eb565b9a5061242960208d016121eb565b995060408c0135985060608c0135975067ffffffffffffffff8060808e0135111561245357600080fd5b6124638e60808f01358f01612283565b97508060a08e0135111561247657600080fd5b6124868e60a08f01358f01612283565b96508060c08e0135111561249957600080fd5b6124a98e60c08f01358f01612283565b955060e08d01359450806101008e013511156124c457600080fd5b6124d58e6101008f01358f01612370565b9350806101208e013511156124e957600080fd5b506124fb8d6101208e01358e0161231f565b91506101408c013590509295989b509295989b9093969950565b600082601f83011261252657600080fd5b813560206125366122a48361225f565b82815260059290921b8401810191818101908684111561255557600080fd5b8286015b848110156122ec5780358352918301918301612559565b600080600080600080600080610100898b03121561258d57600080fd5b8835975060208901359650604089013567ffffffffffffffff808211156125b357600080fd5b6125bf8c838d01612515565b975060608b01359150808211156125d557600080fd5b6125e18c838d01612283565b965060808b01359150808211156125f757600080fd5b6126038c838d01612283565b955060a08b013591508082111561261957600080fd5b6126258c838d01612370565b945060c08b013591508082111561263b57600080fd5b506126488b828c0161231f565b92505060e089013590509295985092959890939650565b60008060008060008060008060006101208a8c03121561267e57600080fd5b8935612689816121d6565b985060208a0135612699816121d6565b97506126a760408b016121eb565b96506126b560608b016121eb565b955060808a0135945060a08a0135935060c08a013567ffffffffffffffff808211156126e057600080fd5b6126ec8d838e0161231f565b945060e08c013591508082111561270257600080fd5b5061270f8c828d0161231f565b9250506101008a013590509295985092959850929598565b60208082526017908201527f444f444f526f75746550726f78793a2045585049524544000000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b818103818111156114405761144061275e565b60208082526026908201527f444f444f526f75746550726f78793a20504149525f4153534554544f5f4e4f546040820152650be9a82a886960d31b606082015260800190565b60208082526022908201527f444f444f526f75746550726f78793a2052455455524e5f414d4f554e545f5a45604082015261524f60f01b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b808201808211156114405761144061275e565b60005b8381101561285357818101518382015260200161283b565b50506000910152565b60008151808452612874816020860160208601612838565b601f01601f19169290920160200192915050565b6001600160a01b038481168252831660208201526060604082018190526000906128b49083018461285c565b95945050505050565b6000600182016128cf576128cf61275e565b5060010190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6000825161291c818460208701612838565b9190910192915050565b60006020828403121561293857600080fd5b5051919050565b6000806040838503121561295257600080fd5b825161295d816121d6565b6020939093015192949293505050565b6000806000806080858703121561298357600080fd5b845161298e816121d6565b602086015190945061299f816121d6565b60408601516060870151919450925067ffffffffffffffff8111156129c357600080fd5b8501601f810187136129d457600080fd5b80516129e26122a4826122f7565b8181528860208385010111156129f757600080fd5b612a08826020830160208601612838565b9598949750929550505050565b6000816000190483118215151615612a2f57612a2f61275e565b500290565b600082612a5157634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215612a6857600080fd5b8151801515811461204c57600080fd5b60208152600061143d602083018461285c56fea2646970667358221220c0c87d63fc692da9dffdbbd53dc222f127b288d37bb37eeacd977b3db9b4822b64736f6c63430008100033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000335ac99bb3e51bdbf22025f092ebc1cf2c5cc619000000000000000000000000ea8e147bdb3ee3dde2085acb88de826e1a6de37a

Deployed Bytecode

0x6080604052600436106101225760003560e01c80638da5cb5b116100a5578063b887bdac1161006c578063b887bdac1461030c578063bc74f9ff14610322578063e22367a414610362578063e7cd4a0414610392578063eb99be12146103b2578063f2fde38b146103e657005b80638da5cb5b1461029257806394cfab17146102b057806396c82e57146102c3578063a8676443146102d9578063b1dc7df9146102ec57005b80633b16827f116100e95780633b16827f146101fd5780634ab755631461021d5780634f3d2fd71461023d5780635af351181461025d578063715018a61461027d57005b80630c8310851461012b5780630d4eec8f1461014b5780632042e5c21461019c5780632a7bc4a8146101bc578063301a3720146101dc57005b3661012957005b005b34801561013757600080fd5b506101296101463660046121bd565b610406565b34801561015757600080fd5b5061017f7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101a857600080fd5b506101296101b73660046121fb565b61047d565b3480156101c857600080fd5b506101296101d73660046121fb565b6104a6565b6101ef6101ea3660046123f0565b6104d2565b604051908152602001610193565b34801561020957600080fd5b506101296102183660046121bd565b610981565b34801561022957600080fd5b506101296102383660046121fb565b6109ee565b34801561024957600080fd5b5060055461017f906001600160a01b031681565b34801561026957600080fd5b506101296102783660046121fb565b610a17565b34801561028957600080fd5b50610129610aa3565b34801561029e57600080fd5b506000546001600160a01b031661017f565b6101ef6102be366004612570565b610ab7565b3480156102cf57600080fd5b506101ef60015481565b6101ef6102e736600461265f565b610d34565b3480156102f857600080fd5b506101296103073660046121fb565b6111fd565b34801561031857600080fd5b506101ef60045481565b34801561032e57600080fd5b5061035261033d3660046121fb565b60026020526000908152604090205460ff1681565b6040519015158152602001610193565b34801561036e57600080fd5b5061035261037d3660046121fb565b60036020526000908152604090205460ff1681565b34801561039e57600080fd5b506101296103ad3660046121fb565b61129f565b3480156103be57600080fd5b5061017f7f000000000000000000000000335ac99bb3e51bdbf22025f092ebc1cf2c5cc61981565b3480156103f257600080fd5b506101296104013660046121fb565b6112cb565b61040e611341565b670de0b6b3a764000081106104785760405162461bcd60e51b815260206004820152602560248201527f444f444f526f75746550726f78793a206e657746656552617465206f766572666044820152641b1bddd95960da1b60648201526084015b60405180910390fd5b600455565b610485611341565b6001600160a01b03166000908152600260205260409020805460ff19169055565b6104ae611341565b6001600160a01b03166000908152600360205260409020805460ff19166001179055565b600081428110156104f55760405162461bcd60e51b815260040161046f90612727565b60008851116105465760405162461bcd60e51b815260206004820152601b60248201527f444f444f526f75746550726f78793a2050414952535f454d5054590000000000604482015260640161046f565b88518851146105a65760405162461bcd60e51b815260206004820152602660248201527f444f444f526f75746550726f78793a20504149525f414441505445525f4e4f546044820152650be9a82a886960d31b606482015260840161046f565b600187516105b49190612774565b8851146105d35760405162461bcd60e51b815260040161046f90612787565b60008a116105f35760405162461bcd60e51b815260040161046f906127cd565b8b8b8e60006001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146106365761062f6001600160a01b0385163061139b565b905061066c565b6106696001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163061139b565b90505b6106bb338c6000815181106106835761068361280f565b6020026020010151848673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316876001600160a01b031614611446565b60005b8c51811015610895578a6001166000036107a9578d81815181106106e4576106e461280f565b60200260200101516001600160a01b03166330e6ae318d8360016107089190612825565b815181106107185761071861280f565b60200260200101518f84815181106107325761073261280f565b60200260200101518d858151811061074c5761074c61280f565b60200260200101516040518463ffffffff1660e01b815260040161077293929190612888565b600060405180830381600087803b15801561078c57600080fd5b505af11580156107a0573d6000803e3d6000fd5b5050505061087c565b8d81815181106107bb576107bb61280f565b60200260200101516001600160a01b0316636f7929f28d8360016107df9190612825565b815181106107ef576107ef61280f565b60200260200101518f84815181106108095761080961280f565b60200260200101518d85815181106108235761082361280f565b60200260200101516040518463ffffffff1660e01b815260040161084993929190612888565b600060405180830381600087803b15801561086357600080fd5b505af1158015610877573d6000803e3d6000fd5b505050505b60019a909a1c998061088d816128bd565b9150506106be565b506001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146108df57806108ce6001600160a01b0386163061139b565b6108d89190612774565b9550610920565b806109136001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163061139b565b61091d9190612774565b95505b50505061092f8184878e6115e2565b92507f92ceb067a9883c85aba061e46b9edf505a0d6e81927c4b966ebed543a52217878e8e338f876040516109689594939291906128d6565b60405180910390a150509b9a5050505050505050505050565b610989611341565b61010081106109e95760405162461bcd60e51b815260206004820152602660248201527f444f444f526f75746550726f78793a20746f74616c576569676874206f766572604482015265199b1bddd95960d21b606482015260840161046f565b600155565b6109f6611341565b6001600160a01b03166000908152600360205260409020805460ff19169055565b610a1f611341565b6001600160a01b038116610a815760405162461bcd60e51b815260206004820152602360248201527f444f444f526f75746550726f78793a20666565526563656976657220696e76616044820152621b1a5960ea1b606482015260840161046f565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610aab611341565b610ab5600061186d565b565b60008142811015610ada5760405162461bcd60e51b815260040161046f90612727565b60008760018951610aeb9190612774565b81518110610afb57610afb61280f565b602002602001015190508851875114610b265760405162461bcd60e51b815260040161046f90612787565b60008a11610b465760405162461bcd60e51b815260040161046f906127cd565b60008b9050600089600081518110610b6057610b6061280f565b60200260200101519050600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316846001600160a01b031614610bb357610bac6001600160a01b0385163061139b565b9050610be9565b610be66001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163061139b565b90505b610c00338b6000815181106106835761068361280f565b610c0c8b8d8b8d6118bd565b6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610c555780610c446001600160a01b0386163061139b565b610c4e9190612774565b9550610c96565b80610c896001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163061139b565b610c939190612774565b95505b505050610ca58184878d6115e2565b92507f92ceb067a9883c85aba061e46b9edf505a0d6e81927c4b966ebed543a522178788600081518110610cdb57610cdb61280f565b60200260200101518960018b51610cf29190612774565b81518110610d0257610d0261280f565b6020026020010151338e87604051610d1e9594939291906128d6565b60405180910390a1505098975050505050505050565b60008142811015610d575760405162461bcd60e51b815260040161046f90612727565b6001600160a01b03881660009081526002602052604090205460ff16610dce5760405162461bcd60e51b815260206004820152602660248201527f444f444f526f75746550726f78793a204e6f742057686974656c69737420436f6044820152651b9d1c9858dd60d21b606482015260840161046f565b6001600160a01b03891660009081526003602052604090205460ff16610e4e5760405162461bcd60e51b815260206004820152602f60248201527f444f444f526f75746550726f78793a204e6f742057686974656c69737420417060448201526e1c1c1c9bdd994810dbdb9d1c9858dd608a1b606482015260840161046f565b6001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610f28576001600160a01b03891615610e9557610e956001600160a01b038c168a89611c74565b60405163052f523360e11b81526001600160a01b038c81166004830152336024830152306044830152606482018990527f000000000000000000000000335ac99bb3e51bdbf22025f092ebc1cf2c5cc6191690630a5ea46690608401600060405180830381600087803b158015610f0b57600080fd5b505af1158015610f1f573d6000803e3d6000fd5b50505050610f82565b863414610f825760405162461bcd60e51b815260206004820152602260248201527f444f444f526f75746550726f78793a20696e76616c69642045544820616d6f756044820152611b9d60f21b606482015260840161046f565b60006001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610fc257610fbb6001600160a01b038c163061139b565b9050610ff8565b610ff56001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163061139b565b90505b7f000000000000000000000000335ac99bb3e51bdbf22025f092ebc1cf2c5cc6196001600160a01b0316896001600160a01b0316036110795760405162461bcd60e51b815260206004820152601b60248201527f444f444f526f75746550726f78793a205269736b205461726765740000000000604482015260640161046f565b6000806001600160a01b03808c16908f1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146110ab5760006110ad565b8a5b886040516110bb919061290a565b60006040518083038185875af1925050503d80600081146110f8576040519150601f19603f3d011682016040523d82523d6000602084013e6110fd565b606091505b50909250905081151560000361111557805160208201fd5b50506001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611160578061114f6001600160a01b038d163061139b565b6111599190612774565b92506111a1565b806111946001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163061139b565b61119e9190612774565b92505b6111ad8b84888a6115e2565b92507f92ceb067a9883c85aba061e46b9edf505a0d6e81927c4b966ebed543a52217878c8c338b876040516111e69594939291906128d6565b60405180910390a150509998505050505050505050565b611205611341565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461125f57600061123e6001600160a01b0383163061139b565b60055490915061125b906001600160a01b03848116911683611d29565b5050565b60055460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050158015611299573d6000803e3d6000fd5b50505b50565b6112a7611341565b6001600160a01b03166000908152600260205260409020805460ff19166001179055565b6112d3611341565b6001600160a01b0381166113385760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161046f565b61129c8161186d565b6000546001600160a01b03163314610ab55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161046f565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b038416036113d257506001600160a01b03811631611440565b6040516370a0823160e01b81526001600160a01b0383811660048301528416906370a08231906024015b602060405180830381865afa158015611419573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143d9190612926565b90505b92915050565b8015611548578115611543578134146114935760405162461bcd60e51b815260206004820152600f60248201526e4554485f56414c55455f57524f4e4760881b604482015260640161046f565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b1580156114ee57600080fd5b505af1158015611502573d6000803e3d6000fd5b505050506001600160a01b03851630149050611543576115437f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28584611d9f565b6115db565b60405163052f523360e11b81526001600160a01b03848116600483015286811660248301528581166044830152606482018490527f000000000000000000000000335ac99bb3e51bdbf22025f092ebc1cf2c5cc6191690630a5ea46690608401600060405180830381600087803b1580156115c257600080fd5b505af11580156115d6573d6000803e3d6000fd5b505050505b5050505050565b60008473eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b0382160161162e577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc295505b60008085806020019051810190611645919061293f565b91509150670de0b6b3a764000081106116b15760405162461bcd60e51b815260206004820152602860248201527f444f444f526f75746550726f78793a2062726f6b657246656552617465206f76604482015267195c999b1bddd95960c21b606482015260840161046f565b60006116bf88600454611e02565b6005549091506116dc906001600160a01b038b8116911683611d29565b60006116e88984611e02565b90506116fe6001600160a01b038b168583611d29565b80611709838b612774565b6117139190612774565b9850868910156117795760405162461bcd60e51b815260206004820152602b60248201527f444f444f526f75746550726f78793a2052657475726e20616d6f756e7420697360448201526a040dcdee840cadcdeeaced60ab1b606482015260840161046f565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b0386160161184b57604051632e1a7d4d60e01b8152600481018a90527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561180057600080fd5b505af1158015611814573d6000803e3d6000fd5b50506040513392508b156108fc0291508b906000818181858888f19350505050158015611845573d6000803e3d6000fd5b5061185f565b61185f6001600160a01b038b16338b611d29565b509698975050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60015b83518110156115db576000611923836118da600185612774565b815181106118ea576118ea61280f565b60200260200101518784815181106119045761190461280f565b60200260200101516001600160a01b0316611e2190919063ffffffff16565b6001805491925060009087906119399086612774565b815181106119495761194961280f565b602002602001015190505b8684815181106119665761196661280f565b6020026020010151811015611c5e576119c06040518060c0016040528060008152602001600081526020016000815260200160006001600160a01b0316815260200160006001600160a01b03168152602001606081525090565b6000806000808a86815181106119d8576119d861280f565b60200260200101518060200190518101906119f3919061296d565b601182901c8952607f600983901c1660408a015260ff90911660208901526001600160a01b0392831660608901529116608087015260a086015250309250889150611a419050600188612774565b81518110611a5157611a5161280f565b60200260200101516001600160a01b031603611b2e57600083826040015186611a7a9190612a15565b611a849190612a34565b90506001898781518110611a9a57611a9a61280f565b6020026020010151611aac9190612774565b8303611acb57611ac8308b88815181106119045761190461280f565b90505b8160200151600103611b0457611aff8a8781518110611aec57611aec61280f565b6020026020010151836080015183611d9f565b611b2c565b611b2c8a8781518110611b1957611b1961280f565b6020026020010151836060015183611d9f565b505b8051600003611bc35780608001516001600160a01b03166330e6ae31878781518110611b5c57611b5c61280f565b602002602001015183606001518460a001516040518463ffffffff1660e01b8152600401611b8c93929190612888565b600060405180830381600087803b158015611ba657600080fd5b505af1158015611bba573d6000803e3d6000fd5b50505050611c4b565b80608001516001600160a01b0316636f7929f2878781518110611be857611be861280f565b602002602001015183606001518460a001516040518463ffffffff1660e01b8152600401611c1893929190612888565b600060405180830381600087803b158015611c3257600080fd5b505af1158015611c46573d6000803e3d6000fd5b505050505b5080611c56816128bd565b915050611954565b5050508080611c6c906128bd565b9150506118c0565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015611cc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce89190612926565b905081811015611d23578015611d0d57611d0d6001600160a01b038516846000611e53565b611d236001600160a01b03851684600019611e53565b50505050565b80156112995773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b03841603611d8f576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611d89573d6000803e3d6000fd5b50611299565b6112996001600160a01b03841683835b6040516001600160a01b03831660248201526044810182905261129990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611f68565b6000670de0b6b3a7640000611e178385612a15565b61143d9190612a34565b6040516370a0823160e01b81526001600160a01b038281166004830152600091908416906370a08231906024016113fc565b801580611ecd5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611ea7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ecb9190612926565b155b611f385760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161046f565b6040516001600160a01b03831660248201526044810182905261129990849063095ea7b360e01b90606401611dcb565b6000611fbd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661203a9092919063ffffffff16565b8051909150156112995780806020019051810190611fdb9190612a56565b6112995760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161046f565b60606120498484600085612053565b90505b9392505050565b6060824710156120b45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161046f565b6001600160a01b0385163b61210b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161046f565b600080866001600160a01b03168587604051612127919061290a565b60006040518083038185875af1925050503d8060008114612164576040519150601f19603f3d011682016040523d82523d6000602084013e612169565b606091505b5091509150612179828286612184565b979650505050505050565b6060831561219357508161204c565b8251156121a35782518084602001fd5b8160405162461bcd60e51b815260040161046f9190612a78565b6000602082840312156121cf57600080fd5b5035919050565b6001600160a01b038116811461129c57600080fd5b80356121f6816121d6565b919050565b60006020828403121561220d57600080fd5b813561204c816121d6565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561225757612257612218565b604052919050565b600067ffffffffffffffff82111561227957612279612218565b5060051b60200190565b600082601f83011261229457600080fd5b813560206122a96122a48361225f565b61222e565b82815260059290921b840181019181810190868411156122c857600080fd5b8286015b848110156122ec5780356122df816121d6565b83529183019183016122cc565b509695505050505050565b600067ffffffffffffffff82111561231157612311612218565b50601f01601f191660200190565b600082601f83011261233057600080fd5b813561233e6122a4826122f7565b81815284602083860101111561235357600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261238157600080fd5b813560206123916122a48361225f565b82815260059290921b840181019181810190868411156123b057600080fd5b8286015b848110156122ec57803567ffffffffffffffff8111156123d45760008081fd5b6123e28986838b010161231f565b8452509183019183016123b4565b60008060008060008060008060008060006101608c8e03121561241257600080fd5b61241b8c6121eb565b9a5061242960208d016121eb565b995060408c0135985060608c0135975067ffffffffffffffff8060808e0135111561245357600080fd5b6124638e60808f01358f01612283565b97508060a08e0135111561247657600080fd5b6124868e60a08f01358f01612283565b96508060c08e0135111561249957600080fd5b6124a98e60c08f01358f01612283565b955060e08d01359450806101008e013511156124c457600080fd5b6124d58e6101008f01358f01612370565b9350806101208e013511156124e957600080fd5b506124fb8d6101208e01358e0161231f565b91506101408c013590509295989b509295989b9093969950565b600082601f83011261252657600080fd5b813560206125366122a48361225f565b82815260059290921b8401810191818101908684111561255557600080fd5b8286015b848110156122ec5780358352918301918301612559565b600080600080600080600080610100898b03121561258d57600080fd5b8835975060208901359650604089013567ffffffffffffffff808211156125b357600080fd5b6125bf8c838d01612515565b975060608b01359150808211156125d557600080fd5b6125e18c838d01612283565b965060808b01359150808211156125f757600080fd5b6126038c838d01612283565b955060a08b013591508082111561261957600080fd5b6126258c838d01612370565b945060c08b013591508082111561263b57600080fd5b506126488b828c0161231f565b92505060e089013590509295985092959890939650565b60008060008060008060008060006101208a8c03121561267e57600080fd5b8935612689816121d6565b985060208a0135612699816121d6565b97506126a760408b016121eb565b96506126b560608b016121eb565b955060808a0135945060a08a0135935060c08a013567ffffffffffffffff808211156126e057600080fd5b6126ec8d838e0161231f565b945060e08c013591508082111561270257600080fd5b5061270f8c828d0161231f565b9250506101008a013590509295985092959850929598565b60208082526017908201527f444f444f526f75746550726f78793a2045585049524544000000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b818103818111156114405761144061275e565b60208082526026908201527f444f444f526f75746550726f78793a20504149525f4153534554544f5f4e4f546040820152650be9a82a886960d31b606082015260800190565b60208082526022908201527f444f444f526f75746550726f78793a2052455455524e5f414d4f554e545f5a45604082015261524f60f01b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b808201808211156114405761144061275e565b60005b8381101561285357818101518382015260200161283b565b50506000910152565b60008151808452612874816020860160208601612838565b601f01601f19169290920160200192915050565b6001600160a01b038481168252831660208201526060604082018190526000906128b49083018461285c565b95945050505050565b6000600182016128cf576128cf61275e565b5060010190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6000825161291c818460208701612838565b9190910192915050565b60006020828403121561293857600080fd5b5051919050565b6000806040838503121561295257600080fd5b825161295d816121d6565b6020939093015192949293505050565b6000806000806080858703121561298357600080fd5b845161298e816121d6565b602086015190945061299f816121d6565b60408601516060870151919450925067ffffffffffffffff8111156129c357600080fd5b8501601f810187136129d457600080fd5b80516129e26122a4826122f7565b8181528860208385010111156129f757600080fd5b612a08826020830160208601612838565b9598949750929550505050565b6000816000190483118215151615612a2f57612a2f61275e565b500290565b600082612a5157634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215612a6857600080fd5b8151801515811461204c57600080fd5b60208152600061143d602083018461285c56fea2646970667358221220c0c87d63fc692da9dffdbbd53dc222f127b288d37bb37eeacd977b3db9b4822b64736f6c63430008100033

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

000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000335ac99bb3e51bdbf22025f092ebc1cf2c5cc619000000000000000000000000ea8e147bdb3ee3dde2085acb88de826e1a6de37a

-----Decoded View---------------
Arg [0] : weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : dodoApproveProxy (address): 0x335aC99bb3E51BDbF22025f092Ebc1Cf2c5cC619
Arg [2] : feeReceiver (address): 0xeA8e147BDB3ee3dDE2085ACB88de826E1A6De37a

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 000000000000000000000000335ac99bb3e51bdbf22025f092ebc1cf2c5cc619
Arg [2] : 000000000000000000000000ea8e147bdb3ee3dde2085acb88de826e1a6de37a


Deployed Bytecode Sourcemap

40722:19852:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44423:189;;;;;;;;;;-1:-1:-1;44423:189:0;;;;;:::i;:::-;;:::i;40935:31::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;363:32:1;;;345:51;;333:2;318:18;40935:31:0;;;;;;;;43997:126;;;;;;;;;;-1:-1:-1;43997:126:0;;;;;:::i;:::-;;:::i;44131:136::-;;;;;;;;;;-1:-1:-1;44131:136:0;;;;;:::i;:::-;;:::i;49440:2629::-;;;;;;:::i;:::-;;:::i;:::-;;;5624:25:1;;;5612:2;5597:18;49440:2629:0;5478:177:1;44842:200:0;;;;;;;;;;-1:-1:-1;44842:200:0;;;;;:::i;:::-;;:::i;44275:140::-;;;;;;;;;;-1:-1:-1;44275:140:0;;;;;:::i;:::-;;:::i;41926:31::-;;;;;;;;;;-1:-1:-1;41926:31:0;;;;-1:-1:-1;;;;;41926:31:0;;;44622:212;;;;;;;;;;-1:-1:-1;44622:212:0;;;;;:::i;:::-;;:::i;38163:103::-;;;;;;;;;;;;;:::i;37515:87::-;;;;;;;;;;-1:-1:-1;37561:7:0;37588:6;-1:-1:-1;;;;;37588:6:0;37515:87;;53266:2074;;;;;;:::i;:::-;;:::i;41245:32::-;;;;;;;;;;;;;;;;45973:2618;;;;;;:::i;:::-;;:::i;45127:416::-;;;;;;;;;;-1:-1:-1;45127:416:0;;;;;:::i;:::-;;:::i;41840:46::-;;;;;;;;;;;;;;;;41414:53;;;;;;;;;;-1:-1:-1;41414:53:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;9136:14:1;;9129:22;9111:41;;9099:2;9084:18;41414:53:0;8971:187:1;41669:60:0;;;;;;;;;;-1:-1:-1;41669:60:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;43867:122;;;;;;;;;;-1:-1:-1;43867:122:0;;;;;:::i;:::-;;:::i;41048:45::-;;;;;;;;;;;;;;;38421:201;;;;;;;;;;-1:-1:-1;38421:201:0;;;;;:::i;:::-;;:::i;44423:189::-;37401:13;:11;:13::i;:::-;44520:6:::1;44507:10;:19;44499:69;;;::::0;-1:-1:-1;;;44499:69:0;;9365:2:1;44499:69:0::1;::::0;::::1;9347:21:1::0;9404:2;9384:18;;;9377:30;9443:34;9423:18;;;9416:62;-1:-1:-1;;;9494:18:1;;;9487:35;9539:19;;44499:69:0::1;;;;;;;;;44579:12;:25:::0;44423:189::o;43997:126::-;37401:13;:11;:13::i;:::-;-1:-1:-1;;;;;44072:35:0::1;44110:5;44072:35:::0;;;:21:::1;:35;::::0;;;;:43;;-1:-1:-1;;44072:43:0::1;::::0;;43997:126::o;44131:136::-;37401:13;:11;:13::i;:::-;-1:-1:-1;;;;;44210:42:0::1;;::::0;;;:28:::1;:42;::::0;;;;:49;;-1:-1:-1;;44210:49:0::1;44255:4;44210:49;::::0;;44131:136::o;49440:2629::-;49867:21;49848:8;43149:15;43137:8;:27;;43129:63;;;;-1:-1:-1;;;43129:63:0;;;;;;;:::i;:::-;49927:1:::1;49909:8;:15;:19;49901:59;;;::::0;-1:-1:-1;;;49901:59:0;;10123:2:1;49901:59:0::1;::::0;::::1;10105:21:1::0;10162:2;10142:18;;;10135:30;10201:29;10181:18;;;10174:57;10248:18;;49901:59:0::1;9921:351:1::0;49901:59:0::1;49998:11;:18;49979:8;:15;:37;49971:88;;;::::0;-1:-1:-1;;;49971:88:0;;10479:2:1;49971:88:0::1;::::0;::::1;10461:21:1::0;10518:2;10498:18;;;10491:30;10557:34;10537:18;;;10530:62;-1:-1:-1;;;10608:18:1;;;10601:36;10654:19;;49971:88:0::1;10277:402:1::0;49971:88:0::1;50114:1;50097:7;:14;:18;;;;:::i;:::-;50078:8;:15;:37;50070:88;;;;-1:-1:-1::0;;;50070:88:0::1;;;;;;;:::i;:::-;50195:1;50177:15;:19;50169:66;;;;-1:-1:-1::0;;;50169:66:0::1;;;;;;;:::i;:::-;50267:7:::0;50323:15;50370:9;50248:16:::1;-1:-1:-1::0;;;;;50434:25:0;::::1;40886:42;50434:25;50431:234;;50499:50;-1:-1:-1::0;;;;;50499:35:0;::::1;50543:4;50499:35;:50::i;:::-;50476:73;;50431:234;;;50605:48;-1:-1:-1::0;;;;;50612:6:0::1;50605:33;50647:4;50605:33;:48::i;:::-;50582:71;;50431:234;50711:167;50734:10;50759:7;50767:1;50759:10;;;;;;;;:::i;:::-;;;;;;;50784;50809:16;40886:42;-1:-1:-1::0;;;;;50840:27:0::1;:10;-1:-1:-1::0;;;;;50840:27:0::1;;50711:8;:167::i;:::-;50913:9;50908:541;50932:8;:15;50928:1;:19;50908:541;;;50973:10;50986:1;50973:14;50991:1;50973:19:::0;50969:426:::1;;51026:11;51038:1;51026:14;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;51013:37:0::1;;51073:7;51081:1;51085;51081:5;;;;:::i;:::-;51073:14;;;;;;;;:::i;:::-;;;;;;;51110:8;51119:1;51110:11;;;;;;;;:::i;:::-;;;;;;;51144:9;51154:1;51144:12;;;;;;;;:::i;:::-;;;;;;;51013:162;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;50969:426;;;51229:11;51241:1;51229:14;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;51216:38:0::1;;51277:7;51285:1;51289;51285:5;;;;:::i;:::-;51277:14;;;;;;;;:::i;:::-;;;;;;;51314:8;51323:1;51314:11;;;;;;;;:::i;:::-;;;;;;;51348:9;51358:1;51348:12;;;;;;;;:::i;:::-;;;;;;;51216:163;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;50969:426;51436:1;51422:15:::0;;;::::1;::::0;50949:3;::::1;::::0;::::1;:::i;:::-;;;;50908:541;;;-1:-1:-1::0;;;;;;51501:25:0;::::1;40886:42;51501:25;51498:334;;51631:20:::0;51559:50:::1;-1:-1:-1::0;;;;;51559:35:0;::::1;51603:4;51559:35;:50::i;:::-;:107;;;;:::i;:::-;51543:123;;51498:334;;;51785:20:::0;51715:48:::1;-1:-1:-1::0;;;;;51722:6:0::1;51715:33;51757:4;51715:33;:48::i;:::-;:105;;;;:::i;:::-;51699:121;;51498:334;50285:1558;;;51902:65;51917:8;51927:13;51942:7;51951:15;51902:14;:65::i;:::-;51886:81;;51985:76;51998:9;52009:7;52018:10;52030:15;52047:13;51985:76;;;;;;;;;;:::i;:::-;;;;;;;;49890:2179;49440:2629:::0;;;;;;;;;;;;;;:::o;44842:200::-;37401:13;:11;:13::i;:::-;44946:6:::1;44929:14;:23;44921:74;;;::::0;-1:-1:-1;;;44921:74:0;;13846:2:1;44921:74:0::1;::::0;::::1;13828:21:1::0;13885:2;13865:18;;;13858:30;13924:34;13904:18;;;13897:62;-1:-1:-1;;;13975:18:1;;;13968:36;14021:19;;44921:74:0::1;13644:402:1::0;44921:74:0::1;45006:11;:28:::0;44842:200::o;44275:140::-;37401:13;:11;:13::i;:::-;-1:-1:-1;;;;;44357:42:0::1;44402:5;44357:42:::0;;;:28:::1;:42;::::0;;;;:50;;-1:-1:-1;;44357:50:0::1;::::0;;44275:140::o;44622:212::-;37401:13;:11;:13::i;:::-;-1:-1:-1;;;;;44714:28:0;::::1;44706:76;;;::::0;-1:-1:-1;;;44706:76:0;;14253:2:1;44706:76:0::1;::::0;::::1;14235:21:1::0;14292:2;14272:18;;;14265:30;14331:34;14311:18;;;14304:62;-1:-1:-1;;;14382:18:1;;;14375:33;14425:19;;44706:76:0::1;14051:399:1::0;44706:76:0::1;44793:16;:33:::0;;-1:-1:-1;;;;;;44793:33:0::1;-1:-1:-1::0;;;;;44793:33:0;;;::::1;::::0;;;::::1;::::0;;44622:212::o;38163:103::-;37401:13;:11;:13::i;:::-;38228:30:::1;38255:1;38228:18;:30::i;:::-;38163:103::o:0;53266:2074::-;53620:21;53601:8;43149:15;43137:8;:27;;43129:63;;;;-1:-1:-1;;;43129:63:0;;;;;;;:::i;:::-;53654:15:::1;53672:8;53699:1;53681:8;:15;:19;;;;:::i;:::-;53672:29;;;;;;;;:::i;:::-;;;;;;;53654:47;;53765:11;:18;53745:9;:16;:38;53723:126;;;;-1:-1:-1::0;;;53723:126:0::1;;;;;;;:::i;:::-;53886:1;53868:15;:19;53860:66;;;;-1:-1:-1::0;;;53860:66:0::1;;;;;;;:::i;:::-;53937:24;53964:15;53937:42;;53990:17;54010:8;54019:1;54010:11;;;;;;;;:::i;:::-;;;;;;;53990:31;;54034:28;40886:42;-1:-1:-1::0;;;;;54076:24:0::1;:7;-1:-1:-1::0;;;;;54076:24:0::1;;54073:232;;54140:49;-1:-1:-1::0;;;;;54140:34:0;::::1;54183:4;54140:34;:49::i;:::-;54117:72;;54073:232;;;54245:48;-1:-1:-1::0;;;;;54252:6:0::1;54245:33;54287:4;54245:33;:48::i;:::-;54222:71;;54073:232;54351:167;54374:10;54399:9;54409:1;54399:12;;;;;;;;:::i;54351:167::-;54548:54;54559:8;54569:11;54582:8;54592:9;54548:10;:54::i;:::-;-1:-1:-1::0;;;;;54655:24:0;::::1;40886:42;54655:24;54652:332;;54783:20:::0;54712:49:::1;-1:-1:-1::0;;;;;54712:34:0;::::1;54755:4;54712:34;:49::i;:::-;:106;;;;:::i;:::-;54696:122;;54652:332;;;54937:20:::0;54867:48:::1;-1:-1:-1::0;;;;;54874:6:0::1;54867:33;54909:4;54867:33;:48::i;:::-;:105;;;;:::i;:::-;54851:121;;54652:332;53712:1283;;;55052:64;55067:7;55076:13;55091:7;55100:15;55052:14;:64::i;:::-;55036:80;;55134:198;55161:8;55170:1;55161:11;;;;;;;;:::i;:::-;;;;;;;55199:8;55226:1;55208:8;:15;:19;;;;:::i;:::-;55199:29;;;;;;;;:::i;:::-;;;;;;;55253:10;55278:15;55308:13;55134:198;;;;;;;;;;:::i;:::-;;;;;;;;53643:1697;53266:2074:::0;;;;;;;;;;;:::o;45973:2618::-;46330:21;46311:8;43149:15;43137:8;:27;;43129:63;;;;-1:-1:-1;;;43129:63:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;46378:33:0;::::1;;::::0;;;:21:::1;:33;::::0;;;;;::::1;;46370:84;;;::::0;-1:-1:-1;;;46370:84:0;;14657:2:1;46370:84:0::1;::::0;::::1;14639:21:1::0;14696:2;14676:18;;;14669:30;14735:34;14715:18;;;14708:62;-1:-1:-1;;;14786:18:1;;;14779:36;14832:19;;46370:84:0::1;14455:402:1::0;46370:84:0::1;-1:-1:-1::0;;;;;46475:43:0;::::1;;::::0;;;:28:::1;:43;::::0;;;;;::::1;;46467:103;;;::::0;-1:-1:-1;;;46467:103:0;;15064:2:1;46467:103:0::1;::::0;::::1;15046:21:1::0;15103:2;15083:18;;;15076:30;15142:34;15122:18;;;15115:62;-1:-1:-1;;;15193:18:1;;;15186:45;15248:19;;46467:103:0::1;14862:411:1::0;46467:103:0::1;-1:-1:-1::0;;;;;46623:26:0;::::1;40886:42;46623:26;46619:571;;-1:-1:-1::0;;;;;46704:27:0;::::1;::::0;46700:137:::1;;46752:69;-1:-1:-1::0;;;;;46752:37:0;::::1;46790:13:::0;46805:15;46752:37:::1;:69::i;:::-;46853:189;::::0;-1:-1:-1;;;46853:189:0;;-1:-1:-1;;;;;15565:15:1;;;46853:189:0::1;::::0;::::1;15547:34:1::0;46951:10:0::1;15597:18:1::0;;;15590:43;46988:4:0::1;15649:18:1::0;;;15642:43;15701:18;;;15694:34;;;46871:20:0::1;46853:51;::::0;::::1;::::0;15481:19:1;;46853:189:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;46619:571;;;47124:15;47111:9;:28;47103:75;;;::::0;-1:-1:-1;;;47103:75:0;;15941:2:1;47103:75:0::1;::::0;::::1;15923:21:1::0;15980:2;15960:18;;;15953:30;16019:34;15999:18;;;15992:62;-1:-1:-1;;;16070:18:1;;;16063:32;16112:19;;47103:75:0::1;15739:398:1::0;47103:75:0::1;47219:28;-1:-1:-1::0;;;;;47261:24:0;::::1;40886:42;47261:24;47258:232;;47325:49;-1:-1:-1::0;;;;;47325:34:0;::::1;47368:4;47325:34;:49::i;:::-;47302:72;;47258:232;;;47430:48;-1:-1:-1::0;;;;;47437:6:0::1;47430:33;47472:4;47430:33;:48::i;:::-;47407:71;;47258:232;47541:20;-1:-1:-1::0;;;;;47527:34:0::1;:10;-1:-1:-1::0;;;;;47527:34:0::1;::::0;47519:74:::1;;;::::0;-1:-1:-1;;;47519:74:0;;16344:2:1;47519:74:0::1;::::0;::::1;16326:21:1::0;16383:2;16363:18;;;16356:30;16422:29;16402:18;;;16395:57;16469:18;;47519:74:0::1;16142:351:1::0;47519:74:0::1;47609:12;::::0;-1:-1:-1;;;;;47646:15:0;;::::1;::::0;47687:26;::::1;40886:42;47687:26;:48;;47734:1;47687:48;;;47716:15;47687:48;47751:14;47646:120;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;47608:158:0;;-1:-1:-1;47608:158:0;-1:-1:-1;47827:16:0;::::1;;47838:5;47827:16:::0;47823:143:::1;;47924:6;47918:13;47914:2;47907:6;47903:14;47896:36;47823:143;-1:-1:-1::0;;;;;;;48029:24:0;::::1;40886:42;48029:24;48026:332;;48157:20:::0;48086:49:::1;-1:-1:-1::0;;;;;48086:34:0;::::1;48129:4;48086:34;:49::i;:::-;:106;;;;:::i;:::-;48070:122;;48026:332;;;48311:20:::0;48241:48:::1;-1:-1:-1::0;;;;;48248:6:0::1;48241:33;48283:4;48241:33;:48::i;:::-;:105;;;;:::i;:::-;48225:121;;48026:332;48425:64;48440:7;48449:13;48464:7;48473:15;48425:14;:64::i;:::-;48409:80;;48507:76;48520:9;48531:7;48540:10;48552:15;48569:13;48507:76;;;;;;;;;;:::i;:::-;;;;;;;;46353:2238;45973:2618:::0;;;;;;;;;;;;:::o;45127:416::-;37401:13;:11;:13::i;:::-;-1:-1:-1;;;;;45196:22:0;::::1;40886:42;45196:22;45193:343;;45235:18;45256:47;-1:-1:-1::0;;;;;45256:32:0;::::1;45297:4;45256:32;:47::i;:::-;45358:16;::::0;45235:68;;-1:-1:-1;45318:70:0::1;::::0;-1:-1:-1;;;;;45318:31:0;;::::1;::::0;45358:16:::1;45235:68:::0;45318:31:::1;:70::i;:::-;45220:180;45127:416:::0;:::o;45193:343::-:1;45486:16;::::0;45478:46:::1;::::0;45442:21:::1;::::0;-1:-1:-1;;;;;45486:16:0::1;::::0;45478:46;::::1;;;::::0;45442:21;;45421:18:::1;45478:46:::0;45421:18;45478:46;45442:21;45486:16;45478:46;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;45406:130;45193:343;45127:416:::0;:::o;43867:122::-;37401:13;:11;:13::i;:::-;-1:-1:-1;;;;;43939:35:0::1;;::::0;;;:21:::1;:35;::::0;;;;:42;;-1:-1:-1;;43939:42:0::1;43977:4;43939:42;::::0;;43867:122::o;38421:201::-;37401:13;:11;:13::i;:::-;-1:-1:-1;;;;;38510:22:0;::::1;38502:73;;;::::0;-1:-1:-1;;;38502:73:0;;16992:2:1;38502:73:0::1;::::0;::::1;16974:21:1::0;17031:2;17011:18;;;17004:30;17070:34;17050:18;;;17043:62;-1:-1:-1;;;17121:18:1;;;17114:36;17167:19;;38502:73:0::1;16790:402:1::0;38502:73:0::1;38586:28;38605:8;38586:18;:28::i;37680:132::-:0;37561:7;37588:6;-1:-1:-1;;;;;37588:6:0;36237:10;37744:23;37736:68;;;;-1:-1:-1;;;37736:68:0;;17399:2:1;37736:68:0;;;17381:21:1;;;17418:18;;;17411:30;17477:34;17457:18;;;17450:62;17529:18;;37736:68:0;17197:356:1;35067:228:0;35145:7;34240:42;-1:-1:-1;;;;;35516:20:0;;;35165:123;;-1:-1:-1;;;;;;35205:11:0;;;35198:18;;35165:123;35256:20;;-1:-1:-1;;;35256:20:0;;-1:-1:-1;;;;;363:32:1;;;35256:20:0;;;345:51:1;35256:15:0;;;;;318:18:1;;35256:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;35249:27;;35165:123;35067:228;;;;:::o;58507:561::-;58670:5;58666:395;;;58696:10;;58692:249;;58748:6;58735:9;:19;58727:47;;;;-1:-1:-1;;;58727:47:0;;17949:2:1;58727:47:0;;;17931:21:1;17988:2;17968:18;;;17961:30;-1:-1:-1;;;18007:18:1;;;18000:45;18062:18;;58727:47:0;17747:339:1;58727:47:0;58799:6;-1:-1:-1;;;;;58793:21:0;;58822:6;58793:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;58854:19:0;;58868:4;58854:19;;-1:-1:-1;58850:75:0;;58875:50;58905:6;58914:2;58918:6;58875:22;:50::i;:::-;58666:395;;;58973:76;;-1:-1:-1;;;58973:76:0;;-1:-1:-1;;;;;15565:15:1;;;58973:76:0;;;15547:34:1;15617:15;;;15597:18;;;15590:43;15669:15;;;15649:18;;;15642:43;15701:18;;;15694:34;;;58991:20:0;58973:51;;;;15481:19:1;;58973:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58666:395;58507:561;;;;;:::o;59248:1323::-;59419:25;59481:7;-1:-1:-1;;;;;;;59502:24:0;;;59499:72;;59553:6;59543:16;;59499:72;59582:14;59598:21;59634:7;59623:39;;;;;;;;;;;;:::i;:::-;59581:81;;;;59697:6;59681:13;:22;59673:75;;;;-1:-1:-1;;;59673:75:0;;18618:2:1;59673:75:0;;;18600:21:1;18657:2;18637:18;;;18630:30;18696:34;18676:18;;;18669:62;-1:-1:-1;;;18747:18:1;;;18740:38;18795:19;;59673:75:0;18416:404:1;59673:75:0;59761:16;59780:49;59801:13;59816:12;;59780:20;:49::i;:::-;59882:16;;59761:68;;-1:-1:-1;59840:70:0;;-1:-1:-1;;;;;59840:33:0;;;;59882:16;59761:68;59840:33;:70::i;:::-;59923:17;59943:50;59964:13;59979;59943:20;:50::i;:::-;59923:70;-1:-1:-1;60004:61:0;-1:-1:-1;;;;;60004:33:0;;60046:6;59923:70;60004:33;:61::i;:::-;60129:9;60102:24;60118:8;60102:13;:24;:::i;:::-;:36;;;;:::i;:::-;60086:52;;60174:15;60157:13;:32;;60149:88;;;;-1:-1:-1;;;60149:88:0;;19027:2:1;60149:88:0;;;19009:21:1;19066:2;19046:18;;;19039:30;19105:34;19085:18;;;19078:62;-1:-1:-1;;;19156:18:1;;;19149:41;19207:19;;60149:88:0;18825:407:1;60149:88:0;-1:-1:-1;;;;;;;60262:30:0;;;60258:260;;60309:37;;-1:-1:-1;;;60309:37:0;;;;;5624:25:1;;;60315:6:0;-1:-1:-1;;;;;60309:22:0;;;;5597:18:1;;60309:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60361:43:0;;60369:10;;-1:-1:-1;60361:43:0;;;;;-1:-1:-1;60390:13:0;;60361:43;;;;60390:13;60369:10;60361:43;;;;;;;;;;;;;;;;;;;;;60258:260;;;60437:69;-1:-1:-1;;;;;60437:33:0;;60479:10;60492:13;60437:33;:69::i;:::-;-1:-1:-1;60550:13:0;;59248:1323;-1:-1:-1;;;;;;;;59248:1323:0:o;38782:191::-;38856:16;38875:6;;-1:-1:-1;;;;;38892:17:0;;;-1:-1:-1;;;;;;38892:17:0;;;;;;38925:40;;38875:6;;;;;;;38925:40;;38856:16;38925:40;38845:128;38782:191;:::o;55446:2925::-;55660:1;55643:2721;55667:11;:18;55663:1;:22;55643:2721;;;55839:22;55864:52;55899:9;55909:5;55913:1;55909;:5;:::i;:::-;55899:16;;;;;;;;:::i;:::-;;;;;;;55871:8;55880:1;55871:11;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;55864:34:0;;;:52;;;;:::i;:::-;55956:11;;;55839:77;;-1:-1:-1;55931:22:0;;56090:11;;56102:5;;:1;:5;:::i;:::-;56090:18;;;;;;;;:::i;:::-;;;;;;;56078:30;;56073:2280;56114:11;56126:1;56114:14;;;;;;;;:::i;:::-;;;;;;;56110:1;:18;56073:2280;;;56154:27;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56154:27:0;56224:12;56238:15;56255;56272:21;56334:12;56347:1;56334:15;;;;;;;;:::i;:::-;;;;;;;56297:89;;;;;;;;;;;;:::i;:::-;56446:2;56435:13;;;56411:37;;56492:23;56514:1;56492:23;;;;56471:18;;;:44;56565:4;:14;;;56538:23;;;:42;-1:-1:-1;;;;;56603:23:0;;;:16;;;:23;56649:29;;:19;;;:29;56701:20;;;:31;-1:-1:-1;56904:4:0;;-1:-1:-1;56876:9:0;;-1:-1:-1;56886:5:0;;-1:-1:-1;56890:1:0;56886;:5;:::i;:::-;56876:16;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;56876:33:0;;56872:933;;56934:17;56992:14;56971:11;:18;;;56954:14;:35;;;;:::i;:::-;:52;;;;:::i;:::-;56934:72;;57095:1;57078:11;57090:1;57078:14;;;;;;;;:::i;:::-;;;;;;;:18;;;;:::i;:::-;57073:1;:23;57070:140;;57137:49;57180:4;57144:8;57153:1;57144:11;;;;;;;;:::i;57137:49::-;57125:61;;57070:140;57238:11;:23;;;57265:1;57238:28;57234:552;;57431:75;57461:8;57470:1;57461:11;;;;;;;;:::i;:::-;;;;;;;57475;:19;;;57496:9;57431:22;:75::i;:::-;57234:552;;;57690:72;57720:8;57729:1;57720:11;;;;;;;;:::i;:::-;;;;;;;57734;:16;;;57752:9;57690:22;:72::i;:::-;56911:894;56872:933;57829:21;;;:26;57825:513;;57893:11;:19;;;-1:-1:-1;;;;;57880:42:0;;57949:9;57959:1;57949:12;;;;;;;;:::i;:::-;;;;;;;57988:11;:16;;;58031:11;:20;;;57880:194;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57825:513;;;58136:11;:19;;;-1:-1:-1;;;;;58123:43:0;;58193:9;58203:1;58193:12;;;;;;;;:::i;:::-;;;;;;;58232:11;:16;;;58275:11;:20;;;58123:195;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57825:513;-1:-1:-1;56130:3:0;;;;:::i;:::-;;;;56073:2280;;;;55692:2672;;55687:3;;;;;:::i;:::-;;;;55643:2721;;34679:380;34824:34;;-1:-1:-1;;;34824:34:0;;34848:4;34824:34;;;20836::1;-1:-1:-1;;;;;20906:15:1;;;20886:18;;;20879:43;34804:17:0;;34824:15;;;;;;20771:18:1;;34824:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;34804:54;;34885:6;34873:9;:18;34869:183;;;34912:13;;34908:78;;34946:24;-1:-1:-1;;;;;34946:17:0;;34964:2;34968:1;34946:17;:24::i;:::-;35000:40;-1:-1:-1;;;;;35000:17:0;;35018:2;-1:-1:-1;;35000:17:0;:40::i;:::-;34793:266;34679:380;;;:::o;34348:323::-;34483:10;;34479:185;;34240:42;-1:-1:-1;;;;;35516:20:0;;;34510:143;;34547:19;;-1:-1:-1;;;;;34547:11:0;;;:19;;;;;34559:6;;34547:19;;;;34559:6;34547:11;:19;;;;;;;;;;;;;;;;;;;;;34510:143;;;34607:30;-1:-1:-1;;;;;34607:18:0;;34626:2;34630:6;30277:211;30421:58;;-1:-1:-1;;;;;21125:32:1;;30421:58:0;;;21107:51:1;21174:18;;;21167:34;;;30394:86:0;;30414:5;;-1:-1:-1;;;30444:23:0;21080:18:1;;30421:58:0;;;;-1:-1:-1;;30421:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;30421:58:0;-1:-1:-1;;;;;;30421:58:0;;;;;;;;;;30394:19;:86::i;14118:124::-;14186:7;14227:6;14213:10;14222:1;14213:6;:10;:::i;:::-;:21;;;;:::i;35303:129::-;35404:20;;-1:-1:-1;;;35404:20:0;;-1:-1:-1;;;;;363:32:1;;;35404:20:0;;;345:51:1;35377:7:0;;35404:15;;;;;;318:18:1;;35404:20:0;199:203:1;31013:616:0;31377:10;;;31376:62;;-1:-1:-1;31393:39:0;;-1:-1:-1;;;31393:39:0;;31417:4;31393:39;;;20836:34:1;-1:-1:-1;;;;;20906:15:1;;;20886:18;;;20879:43;31393:15:0;;;;;20771:18:1;;31393:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;31376:62;31354:166;;;;-1:-1:-1;;;31354:166:0;;21414:2:1;31354:166:0;;;21396:21:1;21453:2;21433:18;;;21426:30;21492:34;21472:18;;;21465:62;-1:-1:-1;;;21543:18:1;;;21536:52;21605:19;;31354:166:0;21212:418:1;31354:166:0;31558:62;;-1:-1:-1;;;;;21125:32:1;;31558:62:0;;;21107:51:1;21174:18;;;21167:34;;;31531:90:0;;31551:5;;-1:-1:-1;;;31581:22:0;21080:18:1;;31558:62:0;20933:274:1;33344:716:0;33768:23;33794:69;33822:4;33794:69;;;;;;;;;;;;;;;;;33802:5;-1:-1:-1;;;;;33794:27:0;;;:69;;;;;:::i;:::-;33878:17;;33768:95;;-1:-1:-1;33878:21:0;33874:179;;33975:10;33964:30;;;;;;;;;;;;:::i;:::-;33956:85;;;;-1:-1:-1;;;33956:85:0;;22119:2:1;33956:85:0;;;22101:21:1;22158:2;22138:18;;;22131:30;22197:34;22177:18;;;22170:62;-1:-1:-1;;;22248:18:1;;;22241:40;22298:19;;33956:85:0;21917:406:1;25092:229:0;25229:12;25261:52;25283:6;25291:4;25297:1;25300:12;25261:21;:52::i;:::-;25254:59;;25092:229;;;;;;:::o;26212:510::-;26382:12;26440:5;26415:21;:30;;26407:81;;;;-1:-1:-1;;;26407:81:0;;22530:2:1;26407:81:0;;;22512:21:1;22569:2;22549:18;;;22542:30;22608:34;22588:18;;;22581:62;-1:-1:-1;;;22659:18:1;;;22652:36;22705:19;;26407:81:0;22328:402:1;26407:81:0;-1:-1:-1;;;;;22642:19:0;;;26499:60;;;;-1:-1:-1;;;26499:60:0;;22937:2:1;26499:60:0;;;22919:21:1;22976:2;22956:18;;;22949:30;23015:31;22995:18;;;22988:59;23064:18;;26499:60:0;22735:353:1;26499:60:0;26573:12;26587:23;26614:6;-1:-1:-1;;;;;26614:11:0;26633:5;26640:4;26614:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26572:73;;;;26663:51;26680:7;26689:10;26701:12;26663:16;:51::i;:::-;26656:58;26212:510;-1:-1:-1;;;;;;;26212:510:0:o;28898:762::-;29048:12;29077:7;29073:580;;;-1:-1:-1;29108:10:0;29101:17;;29073:580;29222:17;;:21;29218:424;;29470:10;29464:17;29531:15;29518:10;29514:2;29510:19;29503:44;29218:424;29613:12;29606:20;;-1:-1:-1;;;29606:20:0;;;;;;;;:::i;14:180:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;407:131::-;-1:-1:-1;;;;;482:31:1;;472:42;;462:70;;528:1;525;518:12;543:134;611:20;;640:31;611:20;640:31;:::i;:::-;543:134;;;:::o;682:247::-;741:6;794:2;782:9;773:7;769:23;765:32;762:52;;;810:1;807;800:12;762:52;849:9;836:23;868:31;893:5;868:31;:::i;934:127::-;995:10;990:3;986:20;983:1;976:31;1026:4;1023:1;1016:15;1050:4;1047:1;1040:15;1066:275;1137:2;1131:9;1202:2;1183:13;;-1:-1:-1;;1179:27:1;1167:40;;1237:18;1222:34;;1258:22;;;1219:62;1216:88;;;1284:18;;:::i;:::-;1320:2;1313:22;1066:275;;-1:-1:-1;1066:275:1:o;1346:183::-;1406:4;1439:18;1431:6;1428:30;1425:56;;;1461:18;;:::i;:::-;-1:-1:-1;1506:1:1;1502:14;1518:4;1498:25;;1346:183::o;1534:737::-;1588:5;1641:3;1634:4;1626:6;1622:17;1618:27;1608:55;;1659:1;1656;1649:12;1608:55;1695:6;1682:20;1721:4;1745:60;1761:43;1801:2;1761:43;:::i;:::-;1745:60;:::i;:::-;1839:15;;;1925:1;1921:10;;;;1909:23;;1905:32;;;1870:12;;;;1949:15;;;1946:35;;;1977:1;1974;1967:12;1946:35;2013:2;2005:6;2001:15;2025:217;2041:6;2036:3;2033:15;2025:217;;;2121:3;2108:17;2138:31;2163:5;2138:31;:::i;:::-;2182:18;;2220:12;;;;2058;;2025:217;;;-1:-1:-1;2260:5:1;1534:737;-1:-1:-1;;;;;;1534:737:1:o;2276:186::-;2324:4;2357:18;2349:6;2346:30;2343:56;;;2379:18;;:::i;:::-;-1:-1:-1;2445:2:1;2424:15;-1:-1:-1;;2420:29:1;2451:4;2416:40;;2276:186::o;2467:462::-;2509:5;2562:3;2555:4;2547:6;2543:17;2539:27;2529:55;;2580:1;2577;2570:12;2529:55;2616:6;2603:20;2647:48;2663:31;2691:2;2663:31;:::i;2647:48::-;2720:2;2711:7;2704:19;2766:3;2759:4;2754:2;2746:6;2742:15;2738:26;2735:35;2732:55;;;2783:1;2780;2773:12;2732:55;2848:2;2841:4;2833:6;2829:17;2822:4;2813:7;2809:18;2796:55;2896:1;2871:16;;;2889:4;2867:27;2860:38;;;;2875:7;2467:462;-1:-1:-1;;;2467:462:1:o;2934:886::-;2986:5;3039:3;3032:4;3024:6;3020:17;3016:27;3006:55;;3057:1;3054;3047:12;3006:55;3093:6;3080:20;3119:4;3143:60;3159:43;3199:2;3159:43;:::i;3143:60::-;3237:15;;;3323:1;3319:10;;;;3307:23;;3303:32;;;3268:12;;;;3347:15;;;3344:35;;;3375:1;3372;3365:12;3344:35;3411:2;3403:6;3399:15;3423:368;3439:6;3434:3;3431:15;3423:368;;;3525:3;3512:17;3561:18;3548:11;3545:35;3542:125;;;3621:1;3650:2;3646;3639:14;3542:125;3692:56;3744:3;3739:2;3725:11;3717:6;3713:24;3709:33;3692:56;:::i;:::-;3680:69;;-1:-1:-1;3769:12:1;;;;3456;;3423:368;;3825:1648;4092:6;4100;4108;4116;4124;4132;4140;4148;4156;4164;4172:7;4226:3;4214:9;4205:7;4201:23;4197:33;4194:53;;;4243:1;4240;4233:12;4194:53;4266:29;4285:9;4266:29;:::i;:::-;4256:39;;4314:38;4348:2;4337:9;4333:18;4314:38;:::i;:::-;4304:48;;4399:2;4388:9;4384:18;4371:32;4361:42;;4450:2;4439:9;4435:18;4422:32;4412:42;;4473:18;4541:2;4534:3;4523:9;4519:19;4506:33;4503:41;4500:61;;;4557:1;4554;4547:12;4500:61;4580:88;4660:7;4652:3;4641:9;4637:19;4624:33;4613:9;4609:49;4580:88;:::i;:::-;4570:98;;4718:2;4711:3;4700:9;4696:19;4683:33;4680:41;4677:61;;;4734:1;4731;4724:12;4677:61;4757:88;4837:7;4829:3;4818:9;4814:19;4801:33;4790:9;4786:49;4757:88;:::i;:::-;4747:98;;4895:2;4888:3;4877:9;4873:19;4860:33;4857:41;4854:61;;;4911:1;4908;4901:12;4854:61;4934:88;5014:7;5006:3;4995:9;4991:19;4978:33;4967:9;4963:49;4934:88;:::i;:::-;4924:98;;5069:3;5058:9;5054:19;5041:33;5031:43;;5124:2;5117:3;5106:9;5102:19;5089:33;5086:41;5083:61;;;5140:1;5137;5130:12;5083:61;5163:86;5241:7;5233:3;5222:9;5218:19;5205:33;5194:9;5190:49;5163:86;:::i;:::-;5153:96;;5299:2;5292:3;5281:9;5277:19;5264:33;5261:41;5258:61;;;5315:1;5312;5305:12;5258:61;;5338:76;5406:7;5398:3;5387:9;5383:19;5370:33;5359:9;5355:49;5338:76;:::i;:::-;5328:86;;5462:3;5451:9;5447:19;5434:33;5423:44;;3825:1648;;;;;;;;;;;;;;:::o;5660:662::-;5714:5;5767:3;5760:4;5752:6;5748:17;5744:27;5734:55;;5785:1;5782;5775:12;5734:55;5821:6;5808:20;5847:4;5871:60;5887:43;5927:2;5887:43;:::i;5871:60::-;5965:15;;;6051:1;6047:10;;;;6035:23;;6031:32;;;5996:12;;;;6075:15;;;6072:35;;;6103:1;6100;6093:12;6072:35;6139:2;6131:6;6127:15;6151:142;6167:6;6162:3;6159:15;6151:142;;;6233:17;;6221:30;;6271:12;;;;6184;;6151:142;;6327:1461;6567:6;6575;6583;6591;6599;6607;6615;6623;6676:3;6664:9;6655:7;6651:23;6647:33;6644:53;;;6693:1;6690;6683:12;6644:53;6729:9;6716:23;6706:33;;6786:2;6775:9;6771:18;6758:32;6748:42;;6841:2;6830:9;6826:18;6813:32;6864:18;6905:2;6897:6;6894:14;6891:34;;;6921:1;6918;6911:12;6891:34;6944:61;6997:7;6988:6;6977:9;6973:22;6944:61;:::i;:::-;6934:71;;7058:2;7047:9;7043:18;7030:32;7014:48;;7087:2;7077:8;7074:16;7071:36;;;7103:1;7100;7093:12;7071:36;7126:63;7181:7;7170:8;7159:9;7155:24;7126:63;:::i;:::-;7116:73;;7242:3;7231:9;7227:19;7214:33;7198:49;;7272:2;7262:8;7259:16;7256:36;;;7288:1;7285;7278:12;7256:36;7311:63;7366:7;7355:8;7344:9;7340:24;7311:63;:::i;:::-;7301:73;;7427:3;7416:9;7412:19;7399:33;7383:49;;7457:2;7447:8;7444:16;7441:36;;;7473:1;7470;7463:12;7441:36;7496:61;7549:7;7538:8;7527:9;7523:24;7496:61;:::i;:::-;7486:71;;7610:3;7599:9;7595:19;7582:33;7566:49;;7640:2;7630:8;7627:16;7624:36;;;7656:1;7653;7646:12;7624:36;;7679:51;7722:7;7711:8;7700:9;7696:24;7679:51;:::i;:::-;7669:61;;;7777:3;7766:9;7762:19;7749:33;7739:43;;6327:1461;;;;;;;;;;;:::o;7793:1173::-;7942:6;7950;7958;7966;7974;7982;7990;7998;8006;8059:3;8047:9;8038:7;8034:23;8030:33;8027:53;;;8076:1;8073;8066:12;8027:53;8115:9;8102:23;8134:31;8159:5;8134:31;:::i;:::-;8184:5;-1:-1:-1;8241:2:1;8226:18;;8213:32;8254:33;8213:32;8254:33;:::i;:::-;8306:7;-1:-1:-1;8332:38:1;8366:2;8351:18;;8332:38;:::i;:::-;8322:48;;8389:38;8423:2;8412:9;8408:18;8389:38;:::i;:::-;8379:48;;8474:3;8463:9;8459:19;8446:33;8436:43;;8526:3;8515:9;8511:19;8498:33;8488:43;;8582:3;8571:9;8567:19;8554:33;8606:18;8647:2;8639:6;8636:14;8633:34;;;8663:1;8660;8653:12;8633:34;8686:49;8727:7;8718:6;8707:9;8703:22;8686:49;:::i;:::-;8676:59;;8788:3;8777:9;8773:19;8760:33;8744:49;;8818:2;8808:8;8805:16;8802:36;;;8834:1;8831;8824:12;8802:36;;8857:51;8900:7;8889:8;8878:9;8874:24;8857:51;:::i;:::-;8847:61;;;8955:3;8944:9;8940:19;8927:33;8917:43;;7793:1173;;;;;;;;;;;:::o;9569:347::-;9771:2;9753:21;;;9810:2;9790:18;;;9783:30;9849:25;9844:2;9829:18;;9822:53;9907:2;9892:18;;9569:347::o;10684:127::-;10745:10;10740:3;10736:20;10733:1;10726:31;10776:4;10773:1;10766:15;10800:4;10797:1;10790:15;10816:128;10883:9;;;10904:11;;;10901:37;;;10918:18;;:::i;10949:402::-;11151:2;11133:21;;;11190:2;11170:18;;;11163:30;11229:34;11224:2;11209:18;;11202:62;-1:-1:-1;;;11295:2:1;11280:18;;11273:36;11341:3;11326:19;;10949:402::o;11356:398::-;11558:2;11540:21;;;11597:2;11577:18;;;11570:30;11636:34;11631:2;11616:18;;11609:62;-1:-1:-1;;;11702:2:1;11687:18;;11680:32;11744:3;11729:19;;11356:398::o;11759:127::-;11820:10;11815:3;11811:20;11808:1;11801:31;11851:4;11848:1;11841:15;11875:4;11872:1;11865:15;11891:125;11956:9;;;11977:10;;;11974:36;;;11990:18;;:::i;12021:250::-;12106:1;12116:113;12130:6;12127:1;12124:13;12116:113;;;12206:11;;;12200:18;12187:11;;;12180:39;12152:2;12145:10;12116:113;;;-1:-1:-1;;12263:1:1;12245:16;;12238:27;12021:250::o;12276:270::-;12317:3;12355:5;12349:12;12382:6;12377:3;12370:19;12398:76;12467:6;12460:4;12455:3;12451:14;12444:4;12437:5;12433:16;12398:76;:::i;:::-;12528:2;12507:15;-1:-1:-1;;12503:29:1;12494:39;;;;12535:4;12490:50;;12276:270;-1:-1:-1;;12276:270:1:o;12551:415::-;-1:-1:-1;;;;;12792:15:1;;;12774:34;;12844:15;;12839:2;12824:18;;12817:43;12896:2;12891;12876:18;;12869:30;;;12717:4;;12916:44;;12941:18;;12933:6;12916:44;:::i;:::-;12908:52;12551:415;-1:-1:-1;;;;;12551:415:1:o;12971:135::-;13010:3;13031:17;;;13028:43;;13051:18;;:::i;:::-;-1:-1:-1;13098:1:1;13087:13;;12971:135::o;13111:528::-;-1:-1:-1;;;;;13426:15:1;;;13408:34;;13478:15;;;13473:2;13458:18;;13451:43;13530:15;;;;13525:2;13510:18;;13503:43;13577:2;13562:18;;13555:34;;;;13620:3;13605:19;;13598:35;;;;13357:3;13342:19;;13111:528::o;16498:287::-;16627:3;16665:6;16659:13;16681:66;16740:6;16735:3;16728:4;16720:6;16716:17;16681:66;:::i;:::-;16763:16;;;;;16498:287;-1:-1:-1;;16498:287:1:o;17558:184::-;17628:6;17681:2;17669:9;17660:7;17656:23;17652:32;17649:52;;;17697:1;17694;17687:12;17649:52;-1:-1:-1;17720:16:1;;17558:184;-1:-1:-1;17558:184:1:o;18091:320::-;18178:6;18186;18239:2;18227:9;18218:7;18214:23;18210:32;18207:52;;;18255:1;18252;18245:12;18207:52;18287:9;18281:16;18306:31;18331:5;18306:31;:::i;:::-;18401:2;18386:18;;;;18380:25;18356:5;;18380:25;;-1:-1:-1;;;18091:320:1:o;19237:987::-;19359:6;19367;19375;19383;19436:3;19424:9;19415:7;19411:23;19407:33;19404:53;;;19453:1;19450;19443:12;19404:53;19485:9;19479:16;19504:31;19529:5;19504:31;:::i;:::-;19604:2;19589:18;;19583:25;19554:5;;-1:-1:-1;19617:33:1;19583:25;19617:33;:::i;:::-;19716:2;19701:18;;19695:25;19764:2;19749:18;;19743:25;19669:7;;-1:-1:-1;19695:25:1;-1:-1:-1;19791:18:1;19780:30;;19777:50;;;19823:1;19820;19813:12;19777:50;19846:22;;19899:4;19891:13;;19887:27;-1:-1:-1;19877:55:1;;19928:1;19925;19918:12;19877:55;19957:2;19951:9;19982:48;19998:31;20026:2;19998:31;:::i;19982:48::-;20053:2;20046:5;20039:17;20093:7;20088:2;20083;20079;20075:11;20071:20;20068:33;20065:53;;;20114:1;20111;20104:12;20065:53;20127:67;20191:2;20186;20179:5;20175:14;20170:2;20166;20162:11;20127:67;:::i;:::-;19237:987;;;;-1:-1:-1;19237:987:1;;-1:-1:-1;;;;19237:987:1:o;20229:168::-;20269:7;20335:1;20331;20327:6;20323:14;20320:1;20317:21;20312:1;20305:9;20298:17;20294:45;20291:71;;;20342:18;;:::i;:::-;-1:-1:-1;20382:9:1;;20229:168::o;20402:217::-;20442:1;20468;20458:132;;20512:10;20507:3;20503:20;20500:1;20493:31;20547:4;20544:1;20537:15;20575:4;20572:1;20565:15;20458:132;-1:-1:-1;20604:9:1;;20402:217::o;21635:277::-;21702:6;21755:2;21743:9;21734:7;21730:23;21726:32;21723:52;;;21771:1;21768;21761:12;21723:52;21803:9;21797:16;21856:5;21849:13;21842:21;21835:5;21832:32;21822:60;;21878:1;21875;21868:12;23093:219;23242:2;23231:9;23224:21;23205:4;23262:44;23302:2;23291:9;23287:18;23279:6;23262:44;:::i

Swarm Source

ipfs://c0c87d63fc692da9dffdbbd53dc222f127b288d37bb37eeacd977b3db9b4822b

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.