More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 268,446 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mix Swap | 12955732 | 12 days ago | IN | 0 ETH | 0.00002173 | ||||
Mix Swap | 12805312 | 16 days ago | IN | 0.00002111 ETH | 0.00001871 | ||||
Mix Swap | 12805301 | 16 days ago | IN | 0.0000232 ETH | 0.00001978 | ||||
Mix Swap | 12805301 | 16 days ago | IN | 0.00002157 ETH | 0.00001918 | ||||
Mix Swap | 12805300 | 16 days ago | IN | 0.00002 ETH | 0.00001789 | ||||
Mix Swap | 12799590 | 16 days ago | IN | 0.000077 ETH | 0.00001227 | ||||
Mix Swap | 12799556 | 16 days ago | IN | 0.000065 ETH | 0.00002718 | ||||
Mix Swap | 12799555 | 16 days ago | IN | 0.00007218 ETH | 0.0000246 | ||||
Mix Swap | 12799533 | 16 days ago | IN | 0.00003125 ETH | 0.00001213 | ||||
Mix Swap | 12795463 | 16 days ago | IN | 0 ETH | 0.00001583 | ||||
Mix Swap | 12795463 | 16 days ago | IN | 0 ETH | 0.00001332 | ||||
Mix Swap | 12795463 | 16 days ago | IN | 0 ETH | 0.00001487 | ||||
Mix Swap | 12795459 | 16 days ago | IN | 0 ETH | 0.00001486 | ||||
Mix Swap | 12795290 | 16 days ago | IN | 0.0000825 ETH | 0.00002494 | ||||
Mix Swap | 12715510 | 18 days ago | IN | 0 ETH | 0.00003115 | ||||
Mix Swap | 12635233 | 20 days ago | IN | 0.0000121 ETH | 0.00002133 | ||||
Mix Swap | 12635233 | 20 days ago | IN | 0.00000655 ETH | 0.00002121 | ||||
Mix Swap | 12635232 | 20 days ago | IN | 0.00000698 ETH | 0.0000212 | ||||
Mix Swap | 12635232 | 20 days ago | IN | 0.00000684 ETH | 0.00002109 | ||||
Mix Swap | 12635176 | 20 days ago | IN | 0.00002 ETH | 0.00001528 | ||||
Mix Swap | 12635169 | 20 days ago | IN | 0.0000255 ETH | 0.00001523 | ||||
Mix Swap | 12635166 | 20 days ago | IN | 0.00002851 ETH | 0.00002095 | ||||
Mix Swap | 12635166 | 20 days ago | IN | 0.0000312 ETH | 0.00002098 | ||||
Mix Swap | 12592257 | 21 days ago | IN | 0 ETH | 0.00003148 | ||||
Mix Swap | 12482878 | 23 days ago | IN | 0 ETH | 0.000019 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
12955732 | 12 days ago | 0.00075131 ETH | ||||
12955732 | 12 days ago | 0.00075131 ETH | ||||
12955732 | 12 days ago | 0 ETH | ||||
12955732 | 12 days ago | 0 ETH | ||||
12955732 | 12 days ago | 0 ETH | ||||
12955732 | 12 days ago | 0 ETH | ||||
12955732 | 12 days ago | 0 ETH | ||||
12955732 | 12 days ago | 0 ETH | ||||
12955732 | 12 days ago | 0 ETH | ||||
12805312 | 16 days ago | 0 ETH | ||||
12805312 | 16 days ago | 0 ETH | ||||
12805312 | 16 days ago | 0 ETH | ||||
12805312 | 16 days ago | 0 ETH | ||||
12805312 | 16 days ago | 0 ETH | ||||
12805312 | 16 days ago | 0 ETH | ||||
12805312 | 16 days ago | 0 ETH | ||||
12805312 | 16 days ago | 0.00002111 ETH | ||||
12805312 | 16 days ago | 0 ETH | ||||
12805301 | 16 days ago | 0 ETH | ||||
12805301 | 16 days ago | 0 ETH | ||||
12805301 | 16 days ago | 0 ETH | ||||
12805301 | 16 days ago | 0 ETH | ||||
12805301 | 16 days ago | 0 ETH | ||||
12805301 | 16 days ago | 0 ETH | ||||
12805301 | 16 days ago | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x03e89fC5...2c8bf391B The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
DODOFeeRouteProxy
Compiler Version
v0.8.16+commit.07a7930e
Contract Source Code (Solidity)
/** *Submitted for verification at lineascan.build/ on 2023-08-08 */ // 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) { _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) { 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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Deployed Bytecode
0x6080604052600436106101225760003560e01c80638da5cb5b116100a5578063b887bdac1161006c578063b887bdac1461030c578063bc74f9ff14610322578063e22367a414610362578063e7cd4a0414610392578063eb99be12146103b2578063f2fde38b146103e657005b80638da5cb5b1461029257806394cfab17146102b057806396c82e57146102c3578063a8676443146102d9578063b1dc7df9146102ec57005b80633b16827f116100e95780633b16827f146101fd5780634ab755631461021d5780634f3d2fd71461023d5780635af351181461025d578063715018a61461027d57005b80630c8310851461012b5780630d4eec8f1461014b5780632042e5c21461019c5780632a7bc4a8146101bc578063301a3720146101dc57005b3661012957005b005b34801561013757600080fd5b506101296101463660046121bd565b610406565b34801561015757600080fd5b5061017f7f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f81565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101a857600080fd5b506101296101b73660046121fb565b61047d565b3480156101c857600080fd5b506101296101d73660046121fb565b6104a6565b6101ef6101ea3660046123f0565b6104d2565b604051908152602001610193565b34801561020957600080fd5b506101296102183660046121bd565b610981565b34801561022957600080fd5b506101296102383660046121fb565b6109ee565b34801561024957600080fd5b5060055461017f906001600160a01b031681565b34801561026957600080fd5b506101296102783660046121fb565b610a17565b34801561028957600080fd5b50610129610aa3565b34801561029e57600080fd5b506000546001600160a01b031661017f565b6101ef6102be366004612570565b610ab7565b3480156102cf57600080fd5b506101ef60015481565b6101ef6102e736600461265f565b610d34565b3480156102f857600080fd5b506101296103073660046121fb565b6111fd565b34801561031857600080fd5b506101ef60045481565b34801561032e57600080fd5b5061035261033d3660046121fb565b60026020526000908152604090205460ff1681565b6040519015158152602001610193565b34801561036e57600080fd5b5061035261037d3660046121fb565b60036020526000908152604090205460ff1681565b34801561039e57600080fd5b506101296103ad3660046121fb565b61129f565b3480156103be57600080fd5b5061017f7f000000000000000000000000cb3dc90e800c961d4a206beaafd92a6d2e06495e81565b3480156103f257600080fd5b506101296104013660046121fb565b6112cb565b61040e611341565b670de0b6b3a764000081106104785760405162461bcd60e51b815260206004820152602560248201527f444f444f526f75746550726f78793a206e657746656552617465206f766572666044820152641b1bddd95960da1b60648201526084015b60405180910390fd5b600455565b610485611341565b6001600160a01b03166000908152600260205260409020805460ff19169055565b6104ae611341565b6001600160a01b03166000908152600360205260409020805460ff19166001179055565b600081428110156104f55760405162461bcd60e51b815260040161046f90612727565b60008851116105465760405162461bcd60e51b815260206004820152601b60248201527f444f444f526f75746550726f78793a2050414952535f454d5054590000000000604482015260640161046f565b88518851146105a65760405162461bcd60e51b815260206004820152602660248201527f444f444f526f75746550726f78793a20504149525f414441505445525f4e4f546044820152650be9a82a886960d31b606482015260840161046f565b600187516105b49190612774565b8851146105d35760405162461bcd60e51b815260040161046f90612787565b60008a116105f35760405162461bcd60e51b815260040161046f906127cd565b8b8b8e60006001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146106365761062f6001600160a01b0385163061139b565b905061066c565b6106696001600160a01b037f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f163061139b565b90505b6106bb338c6000815181106106835761068361280f565b6020026020010151848673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316876001600160a01b031614611446565b60005b8c51811015610895578a6001166000036107a9578d81815181106106e4576106e461280f565b60200260200101516001600160a01b03166330e6ae318d8360016107089190612825565b815181106107185761071861280f565b60200260200101518f84815181106107325761073261280f565b60200260200101518d858151811061074c5761074c61280f565b60200260200101516040518463ffffffff1660e01b815260040161077293929190612888565b600060405180830381600087803b15801561078c57600080fd5b505af11580156107a0573d6000803e3d6000fd5b5050505061087c565b8d81815181106107bb576107bb61280f565b60200260200101516001600160a01b0316636f7929f28d8360016107df9190612825565b815181106107ef576107ef61280f565b60200260200101518f84815181106108095761080961280f565b60200260200101518d85815181106108235761082361280f565b60200260200101516040518463ffffffff1660e01b815260040161084993929190612888565b600060405180830381600087803b15801561086357600080fd5b505af1158015610877573d6000803e3d6000fd5b505050505b60019a909a1c998061088d816128bd565b9150506106be565b506001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146108df57806108ce6001600160a01b0386163061139b565b6108d89190612774565b9550610920565b806109136001600160a01b037f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f163061139b565b61091d9190612774565b95505b50505061092f8184878e6115e2565b92507f92ceb067a9883c85aba061e46b9edf505a0d6e81927c4b966ebed543a52217878e8e338f876040516109689594939291906128d6565b60405180910390a150509b9a5050505050505050505050565b610989611341565b61010081106109e95760405162461bcd60e51b815260206004820152602660248201527f444f444f526f75746550726f78793a20746f74616c576569676874206f766572604482015265199b1bddd95960d21b606482015260840161046f565b600155565b6109f6611341565b6001600160a01b03166000908152600360205260409020805460ff19169055565b610a1f611341565b6001600160a01b038116610a815760405162461bcd60e51b815260206004820152602360248201527f444f444f526f75746550726f78793a20666565526563656976657220696e76616044820152621b1a5960ea1b606482015260840161046f565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610aab611341565b610ab5600061186d565b565b60008142811015610ada5760405162461bcd60e51b815260040161046f90612727565b60008760018951610aeb9190612774565b81518110610afb57610afb61280f565b602002602001015190508851875114610b265760405162461bcd60e51b815260040161046f90612787565b60008a11610b465760405162461bcd60e51b815260040161046f906127cd565b60008b9050600089600081518110610b6057610b6061280f565b60200260200101519050600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316846001600160a01b031614610bb357610bac6001600160a01b0385163061139b565b9050610be9565b610be66001600160a01b037f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f163061139b565b90505b610c00338b6000815181106106835761068361280f565b610c0c8b8d8b8d6118bd565b6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610c555780610c446001600160a01b0386163061139b565b610c4e9190612774565b9550610c96565b80610c896001600160a01b037f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f163061139b565b610c939190612774565b95505b505050610ca58184878d6115e2565b92507f92ceb067a9883c85aba061e46b9edf505a0d6e81927c4b966ebed543a522178788600081518110610cdb57610cdb61280f565b60200260200101518960018b51610cf29190612774565b81518110610d0257610d0261280f565b6020026020010151338e87604051610d1e9594939291906128d6565b60405180910390a1505098975050505050505050565b60008142811015610d575760405162461bcd60e51b815260040161046f90612727565b6001600160a01b03881660009081526002602052604090205460ff16610dce5760405162461bcd60e51b815260206004820152602660248201527f444f444f526f75746550726f78793a204e6f742057686974656c69737420436f6044820152651b9d1c9858dd60d21b606482015260840161046f565b6001600160a01b03891660009081526003602052604090205460ff16610e4e5760405162461bcd60e51b815260206004820152602f60248201527f444f444f526f75746550726f78793a204e6f742057686974656c69737420417060448201526e1c1c1c9bdd994810dbdb9d1c9858dd608a1b606482015260840161046f565b6001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610f28576001600160a01b03891615610e9557610e956001600160a01b038c168a89611c74565b60405163052f523360e11b81526001600160a01b038c81166004830152336024830152306044830152606482018990527f000000000000000000000000cb3dc90e800c961d4a206beaafd92a6d2e06495e1690630a5ea46690608401600060405180830381600087803b158015610f0b57600080fd5b505af1158015610f1f573d6000803e3d6000fd5b50505050610f82565b863414610f825760405162461bcd60e51b815260206004820152602260248201527f444f444f526f75746550726f78793a20696e76616c69642045544820616d6f756044820152611b9d60f21b606482015260840161046f565b60006001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610fc257610fbb6001600160a01b038c163061139b565b9050610ff8565b610ff56001600160a01b037f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f163061139b565b90505b7f000000000000000000000000cb3dc90e800c961d4a206beaafd92a6d2e06495e6001600160a01b0316896001600160a01b0316036110795760405162461bcd60e51b815260206004820152601b60248201527f444f444f526f75746550726f78793a205269736b205461726765740000000000604482015260640161046f565b6000806001600160a01b03808c16908f1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146110ab5760006110ad565b8a5b886040516110bb919061290a565b60006040518083038185875af1925050503d80600081146110f8576040519150601f19603f3d011682016040523d82523d6000602084013e6110fd565b606091505b50909250905081151560000361111557805160208201fd5b50506001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611160578061114f6001600160a01b038d163061139b565b6111599190612774565b92506111a1565b806111946001600160a01b037f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f163061139b565b61119e9190612774565b92505b6111ad8b84888a6115e2565b92507f92ceb067a9883c85aba061e46b9edf505a0d6e81927c4b966ebed543a52217878c8c338b876040516111e69594939291906128d6565b60405180910390a150509998505050505050505050565b611205611341565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461125f57600061123e6001600160a01b0383163061139b565b60055490915061125b906001600160a01b03848116911683611d29565b5050565b60055460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050158015611299573d6000803e3d6000fd5b50505b50565b6112a7611341565b6001600160a01b03166000908152600260205260409020805460ff19166001179055565b6112d3611341565b6001600160a01b0381166113385760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161046f565b61129c8161186d565b6000546001600160a01b03163314610ab55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161046f565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b038416036113d257506001600160a01b03811631611440565b6040516370a0823160e01b81526001600160a01b0383811660048301528416906370a08231906024015b602060405180830381865afa158015611419573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143d9190612926565b90505b92915050565b8015611548578115611543578134146114935760405162461bcd60e51b815260206004820152600f60248201526e4554485f56414c55455f57524f4e4760881b604482015260640161046f565b7f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f6001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b1580156114ee57600080fd5b505af1158015611502573d6000803e3d6000fd5b505050506001600160a01b03851630149050611543576115437f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f8584611d9f565b6115db565b60405163052f523360e11b81526001600160a01b03848116600483015286811660248301528581166044830152606482018490527f000000000000000000000000cb3dc90e800c961d4a206beaafd92a6d2e06495e1690630a5ea46690608401600060405180830381600087803b1580156115c257600080fd5b505af11580156115d6573d6000803e3d6000fd5b505050505b5050505050565b60008473eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b0382160161162e577f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f95505b60008085806020019051810190611645919061293f565b91509150670de0b6b3a764000081106116b15760405162461bcd60e51b815260206004820152602860248201527f444f444f526f75746550726f78793a2062726f6b657246656552617465206f76604482015267195c999b1bddd95960c21b606482015260840161046f565b60006116bf88600454611e02565b6005549091506116dc906001600160a01b038b8116911683611d29565b60006116e88984611e02565b90506116fe6001600160a01b038b168583611d29565b80611709838b612774565b6117139190612774565b9850868910156117795760405162461bcd60e51b815260206004820152602b60248201527f444f444f526f75746550726f78793a2052657475726e20616d6f756e7420697360448201526a040dcdee840cadcdeeaced60ab1b606482015260840161046f565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b0386160161184b57604051632e1a7d4d60e01b8152600481018a90527f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f6001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561180057600080fd5b505af1158015611814573d6000803e3d6000fd5b50506040513392508b156108fc0291508b906000818181858888f19350505050158015611845573d6000803e3d6000fd5b5061185f565b61185f6001600160a01b038b16338b611d29565b509698975050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60015b83518110156115db576000611923836118da600185612774565b815181106118ea576118ea61280f565b60200260200101518784815181106119045761190461280f565b60200260200101516001600160a01b0316611e2190919063ffffffff16565b6001805491925060009087906119399086612774565b815181106119495761194961280f565b602002602001015190505b8684815181106119665761196661280f565b6020026020010151811015611c5e576119c06040518060c0016040528060008152602001600081526020016000815260200160006001600160a01b0316815260200160006001600160a01b03168152602001606081525090565b6000806000808a86815181106119d8576119d861280f565b60200260200101518060200190518101906119f3919061296d565b601182901c8952607f600983901c1660408a015260ff90911660208901526001600160a01b0392831660608901529116608087015260a086015250309250889150611a419050600188612774565b81518110611a5157611a5161280f565b60200260200101516001600160a01b031603611b2e57600083826040015186611a7a9190612a15565b611a849190612a34565b90506001898781518110611a9a57611a9a61280f565b6020026020010151611aac9190612774565b8303611acb57611ac8308b88815181106119045761190461280f565b90505b8160200151600103611b0457611aff8a8781518110611aec57611aec61280f565b6020026020010151836080015183611d9f565b611b2c565b611b2c8a8781518110611b1957611b1961280f565b6020026020010151836060015183611d9f565b505b8051600003611bc35780608001516001600160a01b03166330e6ae31878781518110611b5c57611b5c61280f565b602002602001015183606001518460a001516040518463ffffffff1660e01b8152600401611b8c93929190612888565b600060405180830381600087803b158015611ba657600080fd5b505af1158015611bba573d6000803e3d6000fd5b50505050611c4b565b80608001516001600160a01b0316636f7929f2878781518110611be857611be861280f565b602002602001015183606001518460a001516040518463ffffffff1660e01b8152600401611c1893929190612888565b600060405180830381600087803b158015611c3257600080fd5b505af1158015611c46573d6000803e3d6000fd5b505050505b5080611c56816128bd565b915050611954565b5050508080611c6c906128bd565b9150506118c0565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015611cc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce89190612926565b905081811015611d23578015611d0d57611d0d6001600160a01b038516846000611e53565b611d236001600160a01b03851684600019611e53565b50505050565b80156112995773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b03841603611d8f576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611d89573d6000803e3d6000fd5b50611299565b6112996001600160a01b03841683835b6040516001600160a01b03831660248201526044810182905261129990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611f68565b6000670de0b6b3a7640000611e178385612a15565b61143d9190612a34565b6040516370a0823160e01b81526001600160a01b038281166004830152600091908416906370a08231906024016113fc565b801580611ecd5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611ea7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ecb9190612926565b155b611f385760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161046f565b6040516001600160a01b03831660248201526044810182905261129990849063095ea7b360e01b90606401611dcb565b6000611fbd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661203a9092919063ffffffff16565b8051909150156112995780806020019051810190611fdb9190612a56565b6112995760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161046f565b60606120498484600085612053565b90505b9392505050565b6060824710156120b45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161046f565b6001600160a01b0385163b61210b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161046f565b600080866001600160a01b03168587604051612127919061290a565b60006040518083038185875af1925050503d8060008114612164576040519150601f19603f3d011682016040523d82523d6000602084013e612169565b606091505b5091509150612179828286612184565b979650505050505050565b6060831561219357508161204c565b8251156121a35782518084602001fd5b8160405162461bcd60e51b815260040161046f9190612a78565b6000602082840312156121cf57600080fd5b5035919050565b6001600160a01b038116811461129c57600080fd5b80356121f6816121d6565b919050565b60006020828403121561220d57600080fd5b813561204c816121d6565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561225757612257612218565b604052919050565b600067ffffffffffffffff82111561227957612279612218565b5060051b60200190565b600082601f83011261229457600080fd5b813560206122a96122a48361225f565b61222e565b82815260059290921b840181019181810190868411156122c857600080fd5b8286015b848110156122ec5780356122df816121d6565b83529183019183016122cc565b509695505050505050565b600067ffffffffffffffff82111561231157612311612218565b50601f01601f191660200190565b600082601f83011261233057600080fd5b813561233e6122a4826122f7565b81815284602083860101111561235357600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261238157600080fd5b813560206123916122a48361225f565b82815260059290921b840181019181810190868411156123b057600080fd5b8286015b848110156122ec57803567ffffffffffffffff8111156123d45760008081fd5b6123e28986838b010161231f565b8452509183019183016123b4565b60008060008060008060008060008060006101608c8e03121561241257600080fd5b61241b8c6121eb565b9a5061242960208d016121eb565b995060408c0135985060608c0135975067ffffffffffffffff8060808e0135111561245357600080fd5b6124638e60808f01358f01612283565b97508060a08e0135111561247657600080fd5b6124868e60a08f01358f01612283565b96508060c08e0135111561249957600080fd5b6124a98e60c08f01358f01612283565b955060e08d01359450806101008e013511156124c457600080fd5b6124d58e6101008f01358f01612370565b9350806101208e013511156124e957600080fd5b506124fb8d6101208e01358e0161231f565b91506101408c013590509295989b509295989b9093969950565b600082601f83011261252657600080fd5b813560206125366122a48361225f565b82815260059290921b8401810191818101908684111561255557600080fd5b8286015b848110156122ec5780358352918301918301612559565b600080600080600080600080610100898b03121561258d57600080fd5b8835975060208901359650604089013567ffffffffffffffff808211156125b357600080fd5b6125bf8c838d01612515565b975060608b01359150808211156125d557600080fd5b6125e18c838d01612283565b965060808b01359150808211156125f757600080fd5b6126038c838d01612283565b955060a08b013591508082111561261957600080fd5b6126258c838d01612370565b945060c08b013591508082111561263b57600080fd5b506126488b828c0161231f565b92505060e089013590509295985092959890939650565b60008060008060008060008060006101208a8c03121561267e57600080fd5b8935612689816121d6565b985060208a0135612699816121d6565b97506126a760408b016121eb565b96506126b560608b016121eb565b955060808a0135945060a08a0135935060c08a013567ffffffffffffffff808211156126e057600080fd5b6126ec8d838e0161231f565b945060e08c013591508082111561270257600080fd5b5061270f8c828d0161231f565b9250506101008a013590509295985092959850929598565b60208082526017908201527f444f444f526f75746550726f78793a2045585049524544000000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b818103818111156114405761144061275e565b60208082526026908201527f444f444f526f75746550726f78793a20504149525f4153534554544f5f4e4f546040820152650be9a82a886960d31b606082015260800190565b60208082526022908201527f444f444f526f75746550726f78793a2052455455524e5f414d4f554e545f5a45604082015261524f60f01b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b808201808211156114405761144061275e565b60005b8381101561285357818101518382015260200161283b565b50506000910152565b60008151808452612874816020860160208601612838565b601f01601f19169290920160200192915050565b6001600160a01b038481168252831660208201526060604082018190526000906128b49083018461285c565b95945050505050565b6000600182016128cf576128cf61275e565b5060010190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6000825161291c818460208701612838565b9190910192915050565b60006020828403121561293857600080fd5b5051919050565b6000806040838503121561295257600080fd5b825161295d816121d6565b6020939093015192949293505050565b6000806000806080858703121561298357600080fd5b845161298e816121d6565b602086015190945061299f816121d6565b60408601516060870151919450925067ffffffffffffffff8111156129c357600080fd5b8501601f810187136129d457600080fd5b80516129e26122a4826122f7565b8181528860208385010111156129f757600080fd5b612a08826020830160208601612838565b9598949750929550505050565b6000816000190483118215151615612a2f57612a2f61275e565b500290565b600082612a5157634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215612a6857600080fd5b8151801515811461204c57600080fd5b60208152600061143d602083018461285c56fea26469706673582212206386589f8f4ea176bc3380ef661fe102f0a52bfdbe5d806de49210acad380c1464736f6c63430008100033
Deployed Bytecode Sourcemap
40715:19845:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44409:189;;;;;;;;;;-1:-1:-1;44409:189:0;;;;;:::i;:::-;;:::i;40928:31::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;363:32:1;;;345:51;;333:2;318:18;40928:31:0;;;;;;;;43983:126;;;;;;;;;;-1:-1:-1;43983:126:0;;;;;:::i;:::-;;:::i;44117:136::-;;;;;;;;;;-1:-1:-1;44117:136:0;;;;;:::i;:::-;;:::i;49426:2629::-;;;;;;:::i;:::-;;:::i;:::-;;;5624:25:1;;;5612:2;5597:18;49426:2629:0;5478:177:1;44828:200:0;;;;;;;;;;-1:-1:-1;44828:200:0;;;;;:::i;:::-;;:::i;44261:140::-;;;;;;;;;;-1:-1:-1;44261:140:0;;;;;:::i;:::-;;:::i;41919:31::-;;;;;;;;;;-1:-1:-1;41919:31:0;;;;-1:-1:-1;;;;;41919:31:0;;;44608:212;;;;;;;;;;-1:-1:-1;44608:212:0;;;;;:::i;:::-;;:::i;38156:103::-;;;;;;;;;;;;;:::i;37508:87::-;;;;;;;;;;-1:-1:-1;37554:7:0;37581:6;-1:-1:-1;;;;;37581:6:0;37508:87;;53252:2074;;;;;;:::i;:::-;;:::i;41238:32::-;;;;;;;;;;;;;;;;45959:2618;;;;;;:::i;:::-;;:::i;45113:416::-;;;;;;;;;;-1:-1:-1;45113:416:0;;;;;:::i;:::-;;:::i;41833:46::-;;;;;;;;;;;;;;;;41407:53;;;;;;;;;;-1:-1:-1;41407:53:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;9136:14:1;;9129:22;9111:41;;9099:2;9084:18;41407:53:0;8971:187:1;41662:60:0;;;;;;;;;;-1:-1:-1;41662:60:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;43853:122;;;;;;;;;;-1:-1:-1;43853:122:0;;;;;:::i;:::-;;:::i;41041:45::-;;;;;;;;;;;;;;;38414:201;;;;;;;;;;-1:-1:-1;38414:201:0;;;;;:::i;:::-;;:::i;44409:189::-;37394:13;:11;:13::i;:::-;44506:6:::1;44493:10;:19;44485:69;;;::::0;-1:-1:-1;;;44485:69:0;;9365:2:1;44485: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;;44485:69:0::1;;;;;;;;;44565:12;:25:::0;44409:189::o;43983:126::-;37394:13;:11;:13::i;:::-;-1:-1:-1;;;;;44058:35:0::1;44096:5;44058:35:::0;;;:21:::1;:35;::::0;;;;:43;;-1:-1:-1;;44058:43:0::1;::::0;;43983:126::o;44117:136::-;37394:13;:11;:13::i;:::-;-1:-1:-1;;;;;44196:42:0::1;;::::0;;;:28:::1;:42;::::0;;;;:49;;-1:-1:-1;;44196:49:0::1;44241:4;44196:49;::::0;;44117:136::o;49426:2629::-;49853:21;49834:8;43142:15;43130:8;:27;;43122:63;;;;-1:-1:-1;;;43122:63:0;;;;;;;:::i;:::-;49913:1:::1;49895:8;:15;:19;49887:59;;;::::0;-1:-1:-1;;;49887:59:0;;10123:2:1;49887:59:0::1;::::0;::::1;10105:21:1::0;10162:2;10142:18;;;10135:30;10201:29;10181:18;;;10174:57;10248:18;;49887:59:0::1;9921:351:1::0;49887:59:0::1;49984:11;:18;49965:8;:15;:37;49957:88;;;::::0;-1:-1:-1;;;49957:88:0;;10479:2:1;49957: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;;49957:88:0::1;10277:402:1::0;49957:88:0::1;50100:1;50083:7;:14;:18;;;;:::i;:::-;50064:8;:15;:37;50056:88;;;;-1:-1:-1::0;;;50056:88:0::1;;;;;;;:::i;:::-;50181:1;50163:15;:19;50155:66;;;;-1:-1:-1::0;;;50155:66:0::1;;;;;;;:::i;:::-;50253:7:::0;50309:15;50356:9;50234:16:::1;-1:-1:-1::0;;;;;50420:25:0;::::1;40879:42;50420:25;50417:234;;50485:50;-1:-1:-1::0;;;;;50485:35:0;::::1;50529:4;50485:35;:50::i;:::-;50462:73;;50417:234;;;50591:48;-1:-1:-1::0;;;;;50598:6:0::1;50591:33;50633:4;50591:33;:48::i;:::-;50568:71;;50417:234;50697:167;50720:10;50745:7;50753:1;50745:10;;;;;;;;:::i;:::-;;;;;;;50770;50795:16;40879:42;-1:-1:-1::0;;;;;50826:27:0::1;:10;-1:-1:-1::0;;;;;50826:27:0::1;;50697:8;:167::i;:::-;50899:9;50894:541;50918:8;:15;50914:1;:19;50894:541;;;50959:10;50972:1;50959:14;50977:1;50959:19:::0;50955:426:::1;;51012:11;51024:1;51012:14;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;50999:37:0::1;;51059:7;51067:1;51071;51067:5;;;;:::i;:::-;51059:14;;;;;;;;:::i;:::-;;;;;;;51096:8;51105:1;51096:11;;;;;;;;:::i;:::-;;;;;;;51130:9;51140:1;51130:12;;;;;;;;:::i;:::-;;;;;;;50999:162;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;50955:426;;;51215:11;51227:1;51215:14;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;51202:38:0::1;;51263:7;51271:1;51275;51271:5;;;;:::i;:::-;51263:14;;;;;;;;:::i;:::-;;;;;;;51300:8;51309:1;51300:11;;;;;;;;:::i;:::-;;;;;;;51334:9;51344:1;51334:12;;;;;;;;:::i;:::-;;;;;;;51202:163;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;50955:426;51422:1;51408:15:::0;;;::::1;::::0;50935:3;::::1;::::0;::::1;:::i;:::-;;;;50894:541;;;-1:-1:-1::0;;;;;;51487:25:0;::::1;40879:42;51487:25;51484:334;;51617:20:::0;51545:50:::1;-1:-1:-1::0;;;;;51545:35:0;::::1;51589:4;51545:35;:50::i;:::-;:107;;;;:::i;:::-;51529:123;;51484:334;;;51771:20:::0;51701:48:::1;-1:-1:-1::0;;;;;51708:6:0::1;51701:33;51743:4;51701:33;:48::i;:::-;:105;;;;:::i;:::-;51685:121;;51484:334;50271:1558;;;51888:65;51903:8;51913:13;51928:7;51937:15;51888:14;:65::i;:::-;51872:81;;51971:76;51984:9;51995:7;52004:10;52016:15;52033:13;51971:76;;;;;;;;;;:::i;:::-;;;;;;;;49876:2179;49426:2629:::0;;;;;;;;;;;;;;:::o;44828:200::-;37394:13;:11;:13::i;:::-;44932:6:::1;44915:14;:23;44907:74;;;::::0;-1:-1:-1;;;44907:74:0;;13846:2:1;44907: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;;44907:74:0::1;13644:402:1::0;44907:74:0::1;44992:11;:28:::0;44828:200::o;44261:140::-;37394:13;:11;:13::i;:::-;-1:-1:-1;;;;;44343:42:0::1;44388:5;44343:42:::0;;;:28:::1;:42;::::0;;;;:50;;-1:-1:-1;;44343:50:0::1;::::0;;44261:140::o;44608:212::-;37394:13;:11;:13::i;:::-;-1:-1:-1;;;;;44700:28:0;::::1;44692:76;;;::::0;-1:-1:-1;;;44692:76:0;;14253:2:1;44692: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;;44692:76:0::1;14051:399:1::0;44692:76:0::1;44779:16;:33:::0;;-1:-1:-1;;;;;;44779:33:0::1;-1:-1:-1::0;;;;;44779:33:0;;;::::1;::::0;;;::::1;::::0;;44608:212::o;38156:103::-;37394:13;:11;:13::i;:::-;38221:30:::1;38248:1;38221:18;:30::i;:::-;38156:103::o:0;53252:2074::-;53606:21;53587:8;43142:15;43130:8;:27;;43122:63;;;;-1:-1:-1;;;43122:63:0;;;;;;;:::i;:::-;53640:15:::1;53658:8;53685:1;53667:8;:15;:19;;;;:::i;:::-;53658:29;;;;;;;;:::i;:::-;;;;;;;53640:47;;53751:11;:18;53731:9;:16;:38;53709:126;;;;-1:-1:-1::0;;;53709:126:0::1;;;;;;;:::i;:::-;53872:1;53854:15;:19;53846:66;;;;-1:-1:-1::0;;;53846:66:0::1;;;;;;;:::i;:::-;53923:24;53950:15;53923:42;;53976:17;53996:8;54005:1;53996:11;;;;;;;;:::i;:::-;;;;;;;53976:31;;54020:28;40879:42;-1:-1:-1::0;;;;;54062:24:0::1;:7;-1:-1:-1::0;;;;;54062:24:0::1;;54059:232;;54126:49;-1:-1:-1::0;;;;;54126:34:0;::::1;54169:4;54126:34;:49::i;:::-;54103:72;;54059:232;;;54231:48;-1:-1:-1::0;;;;;54238:6:0::1;54231:33;54273:4;54231:33;:48::i;:::-;54208:71;;54059:232;54337:167;54360:10;54385:9;54395:1;54385:12;;;;;;;;:::i;54337:167::-;54534:54;54545:8;54555:11;54568:8;54578:9;54534:10;:54::i;:::-;-1:-1:-1::0;;;;;54641:24:0;::::1;40879:42;54641:24;54638:332;;54769:20:::0;54698:49:::1;-1:-1:-1::0;;;;;54698:34:0;::::1;54741:4;54698:34;:49::i;:::-;:106;;;;:::i;:::-;54682:122;;54638:332;;;54923:20:::0;54853:48:::1;-1:-1:-1::0;;;;;54860:6:0::1;54853:33;54895:4;54853:33;:48::i;:::-;:105;;;;:::i;:::-;54837:121;;54638:332;53698:1283;;;55038:64;55053:7;55062:13;55077:7;55086:15;55038:14;:64::i;:::-;55022:80;;55120:198;55147:8;55156:1;55147:11;;;;;;;;:::i;:::-;;;;;;;55185:8;55212:1;55194:8;:15;:19;;;;:::i;:::-;55185:29;;;;;;;;:::i;:::-;;;;;;;55239:10;55264:15;55294:13;55120:198;;;;;;;;;;:::i;:::-;;;;;;;;53629:1697;53252:2074:::0;;;;;;;;;;;:::o;45959:2618::-;46316:21;46297:8;43142:15;43130:8;:27;;43122:63;;;;-1:-1:-1;;;43122:63:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;46364:33:0;::::1;;::::0;;;:21:::1;:33;::::0;;;;;::::1;;46356:84;;;::::0;-1:-1:-1;;;46356:84:0;;14657:2:1;46356: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;;46356:84:0::1;14455:402:1::0;46356:84:0::1;-1:-1:-1::0;;;;;46461:43:0;::::1;;::::0;;;:28:::1;:43;::::0;;;;;::::1;;46453:103;;;::::0;-1:-1:-1;;;46453:103:0;;15064:2:1;46453: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;;46453:103:0::1;14862:411:1::0;46453:103:0::1;-1:-1:-1::0;;;;;46609:26:0;::::1;40879:42;46609:26;46605:571;;-1:-1:-1::0;;;;;46690:27:0;::::1;::::0;46686:137:::1;;46738:69;-1:-1:-1::0;;;;;46738:37:0;::::1;46776:13:::0;46791:15;46738:37:::1;:69::i;:::-;46839:189;::::0;-1:-1:-1;;;46839:189:0;;-1:-1:-1;;;;;15565:15:1;;;46839:189:0::1;::::0;::::1;15547:34:1::0;46937:10:0::1;15597:18:1::0;;;15590:43;46974:4:0::1;15649:18:1::0;;;15642:43;15701:18;;;15694:34;;;46857:20:0::1;46839:51;::::0;::::1;::::0;15481:19:1;;46839:189:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;46605:571;;;47110:15;47097:9;:28;47089:75;;;::::0;-1:-1:-1;;;47089:75:0;;15941:2:1;47089: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;;47089:75:0::1;15739:398:1::0;47089:75:0::1;47205:28;-1:-1:-1::0;;;;;47247:24:0;::::1;40879:42;47247:24;47244:232;;47311:49;-1:-1:-1::0;;;;;47311:34:0;::::1;47354:4;47311:34;:49::i;:::-;47288:72;;47244:232;;;47416:48;-1:-1:-1::0;;;;;47423:6:0::1;47416:33;47458:4;47416:33;:48::i;:::-;47393:71;;47244:232;47527:20;-1:-1:-1::0;;;;;47513:34:0::1;:10;-1:-1:-1::0;;;;;47513:34:0::1;::::0;47505:74:::1;;;::::0;-1:-1:-1;;;47505:74:0;;16344:2:1;47505:74:0::1;::::0;::::1;16326:21:1::0;16383:2;16363:18;;;16356:30;16422:29;16402:18;;;16395:57;16469:18;;47505:74:0::1;16142:351:1::0;47505:74:0::1;47595:12;::::0;-1:-1:-1;;;;;47632:15:0;;::::1;::::0;47673:26;::::1;40879:42;47673:26;:48;;47720:1;47673:48;;;47702:15;47673:48;47737:14;47632:120;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;47594:158:0;;-1:-1:-1;47594:158:0;-1:-1:-1;47813:16:0;::::1;;47824:5;47813:16:::0;47809:143:::1;;47910:6;47904:13;47900:2;47893:6;47889:14;47882:36;47809:143;-1:-1:-1::0;;;;;;;48015:24:0;::::1;40879:42;48015:24;48012:332;;48143:20:::0;48072:49:::1;-1:-1:-1::0;;;;;48072:34:0;::::1;48115:4;48072:34;:49::i;:::-;:106;;;;:::i;:::-;48056:122;;48012:332;;;48297:20:::0;48227:48:::1;-1:-1:-1::0;;;;;48234:6:0::1;48227:33;48269:4;48227:33;:48::i;:::-;:105;;;;:::i;:::-;48211:121;;48012:332;48411:64;48426:7;48435:13;48450:7;48459:15;48411:14;:64::i;:::-;48395:80;;48493:76;48506:9;48517:7;48526:10;48538:15;48555:13;48493:76;;;;;;;;;;:::i;:::-;;;;;;;;46339:2238;45959:2618:::0;;;;;;;;;;;;:::o;45113:416::-;37394:13;:11;:13::i;:::-;-1:-1:-1;;;;;45182:22:0;::::1;40879:42;45182:22;45179:343;;45221:18;45242:47;-1:-1:-1::0;;;;;45242:32:0;::::1;45283:4;45242:32;:47::i;:::-;45344:16;::::0;45221:68;;-1:-1:-1;45304:70:0::1;::::0;-1:-1:-1;;;;;45304:31:0;;::::1;::::0;45344:16:::1;45221:68:::0;45304:31:::1;:70::i;:::-;45206:180;45113:416:::0;:::o;45179:343::-:1;45472:16;::::0;45464:46:::1;::::0;45428:21:::1;::::0;-1:-1:-1;;;;;45472:16:0::1;::::0;45464:46;::::1;;;::::0;45428:21;;45407:18:::1;45464:46:::0;45407:18;45464:46;45428:21;45472:16;45464:46;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;45392:130;45179:343;45113:416:::0;:::o;43853:122::-;37394:13;:11;:13::i;:::-;-1:-1:-1;;;;;43925:35:0::1;;::::0;;;:21:::1;:35;::::0;;;;:42;;-1:-1:-1;;43925:42:0::1;43963:4;43925:42;::::0;;43853:122::o;38414:201::-;37394:13;:11;:13::i;:::-;-1:-1:-1;;;;;38503:22:0;::::1;38495:73;;;::::0;-1:-1:-1;;;38495:73:0;;16992:2:1;38495: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;;38495:73:0::1;16790:402:1::0;38495:73:0::1;38579:28;38598:8;38579:18;:28::i;37673:132::-:0;37554:7;37581:6;-1:-1:-1;;;;;37581:6:0;36230:10;37737:23;37729:68;;;;-1:-1:-1;;;37729:68:0;;17399:2:1;37729:68:0;;;17381:21:1;;;17418:18;;;17411:30;17477:34;17457:18;;;17450:62;17529:18;;37729:68:0;17197:356:1;35060:228:0;35138:7;34233:42;-1:-1:-1;;;;;35509:20:0;;;35158:123;;-1:-1:-1;;;;;;35198:11:0;;;35191:18;;35158:123;35249:20;;-1:-1:-1;;;35249:20:0;;-1:-1:-1;;;;;363:32:1;;;35249:20:0;;;345:51:1;35249:15:0;;;;;318:18:1;;35249:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;35242:27;;35158:123;35060:228;;;;:::o;58493:561::-;58656:5;58652:395;;;58682:10;;58678:249;;58734:6;58721:9;:19;58713:47;;;;-1:-1:-1;;;58713:47:0;;17949:2:1;58713:47:0;;;17931:21:1;17988:2;17968:18;;;17961:30;-1:-1:-1;;;18007:18:1;;;18000:45;18062:18;;58713:47:0;17747:339:1;58713:47:0;58785:6;-1:-1:-1;;;;;58779:21:0;;58808:6;58779:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;58840:19:0;;58854:4;58840:19;;-1:-1:-1;58836:75:0;;58861:50;58891:6;58900:2;58904:6;58861:22;:50::i;:::-;58652:395;;;58959:76;;-1:-1:-1;;;58959:76:0;;-1:-1:-1;;;;;15565:15:1;;;58959:76:0;;;15547:34:1;15617:15;;;15597:18;;;15590:43;15669:15;;;15649:18;;;15642:43;15701:18;;;15694:34;;;58977:20:0;58959:51;;;;15481:19:1;;58959:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58652:395;58493:561;;;;;:::o;59234:1323::-;59405:25;59467:7;-1:-1:-1;;;;;;;59488:24:0;;;59485:72;;59539:6;59529:16;;59485:72;59568:14;59584:21;59620:7;59609:39;;;;;;;;;;;;:::i;:::-;59567:81;;;;59683:6;59667:13;:22;59659:75;;;;-1:-1:-1;;;59659:75:0;;18618:2:1;59659: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;;59659:75:0;18416:404:1;59659:75:0;59747:16;59766:49;59787:13;59802:12;;59766:20;:49::i;:::-;59868:16;;59747:68;;-1:-1:-1;59826:70:0;;-1:-1:-1;;;;;59826:33:0;;;;59868:16;59747:68;59826:33;:70::i;:::-;59909:17;59929:50;59950:13;59965;59929:20;:50::i;:::-;59909:70;-1:-1:-1;59990:61:0;-1:-1:-1;;;;;59990:33:0;;60032:6;59909:70;59990:33;:61::i;:::-;60115:9;60088:24;60104:8;60088:13;:24;:::i;:::-;:36;;;;:::i;:::-;60072:52;;60160:15;60143:13;:32;;60135:88;;;;-1:-1:-1;;;60135:88:0;;19027:2:1;60135: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;;60135:88:0;18825:407:1;60135:88:0;-1:-1:-1;;;;;;;60248:30:0;;;60244:260;;60295:37;;-1:-1:-1;;;60295:37:0;;;;;5624:25:1;;;60301:6:0;-1:-1:-1;;;;;60295:22:0;;;;5597:18:1;;60295:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60347:43:0;;60355:10;;-1:-1:-1;60347:43:0;;;;;-1:-1:-1;60376:13:0;;60347:43;;;;60376:13;60355:10;60347:43;;;;;;;;;;;;;;;;;;;;;60244:260;;;60423:69;-1:-1:-1;;;;;60423:33:0;;60465:10;60478:13;60423:33;:69::i;:::-;-1:-1:-1;60536:13:0;;59234:1323;-1:-1:-1;;;;;;;;59234:1323:0:o;38775:191::-;38849:16;38868:6;;-1:-1:-1;;;;;38885:17:0;;;-1:-1:-1;;;;;;38885:17:0;;;;;;38918:40;;38868:6;;;;;;;38918:40;;38849:16;38918:40;38838:128;38775:191;:::o;55432:2925::-;55646:1;55629:2721;55653:11;:18;55649:1;:22;55629:2721;;;55825:22;55850:52;55885:9;55895:5;55899:1;55895;:5;:::i;:::-;55885:16;;;;;;;;:::i;:::-;;;;;;;55857:8;55866:1;55857:11;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;55850:34:0;;;:52;;;;:::i;:::-;55942:11;;;55825:77;;-1:-1:-1;55917:22:0;;56076:11;;56088:5;;:1;:5;:::i;:::-;56076:18;;;;;;;;:::i;:::-;;;;;;;56064:30;;56059:2280;56100:11;56112:1;56100:14;;;;;;;;:::i;:::-;;;;;;;56096:1;:18;56059:2280;;;56140:27;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56140:27:0;56210:12;56224:15;56241;56258:21;56320:12;56333:1;56320:15;;;;;;;;:::i;:::-;;;;;;;56283:89;;;;;;;;;;;;:::i;:::-;56432:2;56421:13;;;56397:37;;56478:23;56500:1;56478:23;;;;56457:18;;;:44;56551:4;:14;;;56524:23;;;:42;-1:-1:-1;;;;;56589:23:0;;;:16;;;:23;56635:29;;:19;;;:29;56687:20;;;:31;-1:-1:-1;56890:4:0;;-1:-1:-1;56862:9:0;;-1:-1:-1;56872:5:0;;-1:-1:-1;56876:1:0;56872;:5;:::i;:::-;56862:16;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;56862:33:0;;56858:933;;56920:17;56978:14;56957:11;:18;;;56940:14;:35;;;;:::i;:::-;:52;;;;:::i;:::-;56920:72;;57081:1;57064:11;57076:1;57064:14;;;;;;;;:::i;:::-;;;;;;;:18;;;;:::i;:::-;57059:1;:23;57056:140;;57123:49;57166:4;57130:8;57139:1;57130:11;;;;;;;;:::i;57123:49::-;57111:61;;57056:140;57224:11;:23;;;57251:1;57224:28;57220:552;;57417:75;57447:8;57456:1;57447:11;;;;;;;;:::i;:::-;;;;;;;57461;:19;;;57482:9;57417:22;:75::i;:::-;57220:552;;;57676:72;57706:8;57715:1;57706:11;;;;;;;;:::i;:::-;;;;;;;57720;:16;;;57738:9;57676:22;:72::i;:::-;56897:894;56858:933;57815:21;;;:26;57811:513;;57879:11;:19;;;-1:-1:-1;;;;;57866:42:0;;57935:9;57945:1;57935:12;;;;;;;;:::i;:::-;;;;;;;57974:11;:16;;;58017:11;:20;;;57866:194;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57811:513;;;58122:11;:19;;;-1:-1:-1;;;;;58109:43:0;;58179:9;58189:1;58179:12;;;;;;;;:::i;:::-;;;;;;;58218:11;:16;;;58261:11;:20;;;58109:195;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57811:513;-1:-1:-1;56116:3:0;;;;:::i;:::-;;;;56059:2280;;;;55678:2672;;55673:3;;;;;:::i;:::-;;;;55629:2721;;34672:380;34817:34;;-1:-1:-1;;;34817:34:0;;34841:4;34817:34;;;20836::1;-1:-1:-1;;;;;20906:15:1;;;20886:18;;;20879:43;34797:17:0;;34817:15;;;;;;20771:18:1;;34817:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;34797:54;;34878:6;34866:9;:18;34862:183;;;34905:13;;34901:78;;34939:24;-1:-1:-1;;;;;34939:17:0;;34957:2;34961:1;34939:17;:24::i;:::-;34993:40;-1:-1:-1;;;;;34993:17:0;;35011:2;-1:-1:-1;;34993:17:0;:40::i;:::-;34786:266;34672:380;;;:::o;34341:323::-;34476:10;;34472:185;;34233:42;-1:-1:-1;;;;;35509:20:0;;;34503:143;;34540:19;;-1:-1:-1;;;;;34540:11:0;;;:19;;;;;34552:6;;34540:19;;;;34552:6;34540:11;:19;;;;;;;;;;;;;;;;;;;;;34503:143;;;34600:30;-1:-1:-1;;;;;34600:18:0;;34619:2;34623:6;30270:211;30414:58;;-1:-1:-1;;;;;21125:32:1;;30414:58:0;;;21107:51:1;21174:18;;;21167:34;;;30387:86:0;;30407:5;;-1:-1:-1;;;30437:23:0;21080:18:1;;30414:58:0;;;;-1:-1:-1;;30414:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;30414:58:0;-1:-1:-1;;;;;;30414:58:0;;;;;;;;;;30387:19;:86::i;14111:124::-;14179:7;14220:6;14206:10;14215:1;14206:6;:10;:::i;:::-;:21;;;;:::i;35296:129::-;35397:20;;-1:-1:-1;;;35397:20:0;;-1:-1:-1;;;;;363:32:1;;;35397:20:0;;;345:51:1;35370:7:0;;35397:15;;;;;;318:18:1;;35397:20:0;199:203:1;31006:616:0;31370:10;;;31369:62;;-1:-1:-1;31386:39:0;;-1:-1:-1;;;31386:39:0;;31410:4;31386:39;;;20836:34:1;-1:-1:-1;;;;;20906:15:1;;;20886:18;;;20879:43;31386:15:0;;;;;20771:18:1;;31386:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;31369:62;31347:166;;;;-1:-1:-1;;;31347:166:0;;21414:2:1;31347: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;;31347:166:0;21212:418:1;31347:166:0;31551:62;;-1:-1:-1;;;;;21125:32:1;;31551:62:0;;;21107:51:1;21174:18;;;21167:34;;;31524:90:0;;31544:5;;-1:-1:-1;;;31574:22:0;21080:18:1;;31551:62:0;20933:274:1;33337:716:0;33761:23;33787:69;33815:4;33787:69;;;;;;;;;;;;;;;;;33795:5;-1:-1:-1;;;;;33787:27:0;;;:69;;;;;:::i;:::-;33871:17;;33761:95;;-1:-1:-1;33871:21:0;33867:179;;33968:10;33957:30;;;;;;;;;;;;:::i;:::-;33949:85;;;;-1:-1:-1;;;33949:85:0;;22119:2:1;33949: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;;33949:85:0;21917:406:1;25085:229:0;25222:12;25254:52;25276:6;25284:4;25290:1;25293:12;25254:21;:52::i;:::-;25247:59;;25085:229;;;;;;:::o;26205:510::-;26375:12;26433:5;26408:21;:30;;26400:81;;;;-1:-1:-1;;;26400:81:0;;22530:2:1;26400: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;;26400:81:0;22328:402:1;26400:81:0;-1:-1:-1;;;;;22635:19:0;;;26492:60;;;;-1:-1:-1;;;26492:60:0;;22937:2:1;26492:60:0;;;22919:21:1;22976:2;22956:18;;;22949:30;23015:31;22995:18;;;22988:59;23064:18;;26492:60:0;22735:353:1;26492:60:0;26566:12;26580:23;26607:6;-1:-1:-1;;;;;26607:11:0;26626:5;26633:4;26607:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26565:73;;;;26656:51;26673:7;26682:10;26694:12;26656:16;:51::i;:::-;26649:58;26205:510;-1:-1:-1;;;;;;;26205:510:0:o;28891:762::-;29041:12;29070:7;29066:580;;;-1:-1:-1;29101:10:0;29094:17;;29066:580;29215:17;;:21;29211:424;;29463:10;29457:17;29524:15;29511:10;29507:2;29503:19;29496:44;29211:424;29606:12;29599:20;;-1:-1:-1;;;29599: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://6386589f8f4ea176bc3380ef661fe102f0a52bfdbe5d806de49210acad380c14
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.