Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
12513031 | 1350 days ago | 100 ETH | ||||
12513031 | 1350 days ago | 100 ETH | ||||
12328538 | 1379 days ago | 0.1 ETH | ||||
12328538 | 1379 days ago | 0.1 ETH | ||||
12313628 | 1381 days ago | 2 ETH | ||||
12313628 | 1381 days ago | 2 ETH | ||||
12242920 | 1392 days ago | 4.03656108 ETH | ||||
12242920 | 1392 days ago | 4.03656108 ETH | ||||
12181792 | 1401 days ago | 1.8 ETH | ||||
12181792 | 1401 days ago | 1.8 ETH | ||||
12071043 | 1418 days ago | 0.0547157 ETH | ||||
12071043 | 1418 days ago | 0.0547157 ETH | ||||
12058779 | 1420 days ago | 74.71733239 ETH | ||||
12058779 | 1420 days ago | 74.71733239 ETH | ||||
12053894 | 1421 days ago | 152.32716924 ETH | ||||
12053894 | 1421 days ago | 152.32716924 ETH | ||||
12047712 | 1422 days ago | 105.75003045 ETH | ||||
12047712 | 1422 days ago | 105.75003045 ETH | ||||
12047064 | 1422 days ago | 205 ETH | ||||
12047064 | 1422 days ago | 205 ETH | ||||
12044706 | 1422 days ago | 79.55422775 ETH | ||||
12044706 | 1422 days ago | 79.55422775 ETH | ||||
12043506 | 1422 days ago | 95 ETH | ||||
12043506 | 1422 days ago | 95 ETH | ||||
12027334 | 1425 days ago | 26.42709967 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ZeroxV2
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-09-28 */ // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: openzeppelin-solidity/contracts/utils/Address.sol pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: original_contracts/IWETH.sol pragma solidity 0.6.12; abstract contract IWETH is IERC20 { function deposit() external virtual payable; function withdraw(uint256 amount) external virtual; } // File: original_contracts/lib/zeroxv2/LibOrderV2.sol /* solium-disable */ pragma solidity 0.6.12; //Taken from 0x exchange library LibOrderV2{ struct Order { address makerAddress; // Address that created the order. address takerAddress; // Address that is allowed to fill the order. If set to 0, any address is allowed to fill the order. address feeRecipientAddress; // Address that will recieve fees when order is filled. address senderAddress; // Address that is allowed to call Exchange contract methods that affect this order. If set to 0, any address is allowed to call these methods. uint256 makerAssetAmount; // Amount of makerAsset being offered by maker. Must be greater than 0. uint256 takerAssetAmount; // Amount of takerAsset being bid on by maker. Must be greater than 0. uint256 makerFee; // Amount of ZRX paid to feeRecipient by maker when order is filled. If set to 0, no transfer of ZRX from maker to feeRecipient will be attempted. uint256 takerFee; // Amount of ZRX paid to feeRecipient by taker when order is filled. If set to 0, no transfer of ZRX from taker to feeRecipient will be attempted. uint256 expirationTimeSeconds; // Timestamp in seconds at which order expires. uint256 salt; // Arbitrary number to facilitate uniqueness of the order's hash. bytes makerAssetData; // Encoded data that can be decoded by a specified proxy contract when transferring makerAsset. The last byte references the id of this proxy. bytes takerAssetData; // Encoded data that can be decoded by a specified proxy contract when transferring takerAsset. The last byte references the id of this proxy. } struct FillResults { uint256 makerAssetFilledAmount; // Total amount of makerAsset(s) filled. uint256 takerAssetFilledAmount; // Total amount of takerAsset(s) filled. uint256 makerFeePaid; // Total amount of ZRX paid by maker(s) to feeRecipient(s). uint256 takerFeePaid; // Total amount of ZRX paid by taker to feeRecipients(s). } } // File: original_contracts/lib/zeroxv2/IZeroxV2.sol pragma solidity 0.6.12; pragma experimental ABIEncoderV2; interface IZeroxV2 { function marketSellOrdersNoThrow( LibOrderV2.Order[] calldata orders, uint256 takerAssetFillAmount, bytes[] calldata signatures ) external returns(LibOrderV2.FillResults memory); } // File: openzeppelin-solidity/contracts/math/SafeMath.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.6.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: original_contracts/ITokenTransferProxy.sol pragma solidity 0.6.12; interface ITokenTransferProxy { function transferFrom( address token, address from, address to, uint256 amount ) external; function freeGSTTokens(uint256 tokensToFree) external; } // File: original_contracts/lib/Utils.sol pragma solidity 0.6.12; library Utils { using SafeMath for uint256; using SafeERC20 for IERC20; address constant ETH_ADDRESS = address( 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE ); uint256 constant MAX_UINT = 2 ** 256 - 1; struct Route { address payable exchange; address targetExchange; uint percent; bytes payload; uint256 networkFee;//Network fee is associated with 0xv3 trades } struct Path { address to; uint256 totalNetworkFee;//Network fee is associated with 0xv3 trades Route[] routes; } struct BuyRoute { address payable exchange; address targetExchange; uint256 fromAmount; uint256 toAmount; bytes payload; uint256 networkFee;//Network fee is associated with 0xv3 trades } function ethAddress() internal pure returns (address) {return ETH_ADDRESS;} function maxUint() internal pure returns (uint256) {return MAX_UINT;} function approve( address addressToApprove, address token, uint256 amount ) internal { if (token != ETH_ADDRESS) { IERC20 _token = IERC20(token); uint allowance = _token.allowance(address(this), addressToApprove); if (allowance < amount) { _token.safeApprove(addressToApprove, 0); _token.safeIncreaseAllowance(addressToApprove, MAX_UINT); } } } function transferTokens( address token, address payable destination, uint256 amount ) internal { if (amount > 0) { if (token == ETH_ADDRESS) { destination.transfer(amount); } else { IERC20(token).safeTransfer(destination, amount); } } } function tokenBalance( address token, address account ) internal view returns (uint256) { if (token == ETH_ADDRESS) { return account.balance; } else { return IERC20(token).balanceOf(account); } } /** * @dev Helper method to refund gas using gas tokens */ function refundGas( address tokenProxy, uint256 initialGas, uint256 mintPrice ) internal { uint256 mintBase = 32254; uint256 mintToken = 36543; uint256 freeBase = 14154; uint256 freeToken = 6870; uint256 reimburse = 24000; uint256 tokens = initialGas.sub( gasleft()).add(freeBase).div(reimburse.mul(2).sub(freeToken) ); uint256 mintCost = mintBase.add(tokens.mul(mintToken)); uint256 freeCost = freeBase.add(tokens.mul(freeToken)); uint256 maxreimburse = tokens.mul(reimburse); uint256 efficiency = maxreimburse.mul(tx.gasprice).mul(100).div( mintCost.mul(mintPrice).add(freeCost.mul(tx.gasprice)) ); if (efficiency > 100) { freeGasTokens(tokenProxy, tokens); } } /** * @dev Helper method to free gas tokens */ function freeGasTokens(address tokenProxy, uint256 tokens) internal { uint256 tokensToFree = tokens; uint256 safeNumTokens = 0; uint256 gas = gasleft(); if (gas >= 27710) { safeNumTokens = gas.sub(27710).div(1148 + 5722 + 150); } if (tokensToFree > safeNumTokens) { tokensToFree = safeNumTokens; } ITokenTransferProxy(tokenProxy).freeGSTTokens(tokensToFree); } } // File: original_contracts/lib/IExchange.sol pragma solidity 0.6.12; /** * @dev This interface should be implemented by all exchanges which needs to integrate with the paraswap protocol */ interface IExchange { /** * @dev The function which performs the swap on an exchange. * Exchange needs to implement this method in order to support swapping of tokens through it * @param fromToken Address of the source token * @param toToken Address of the destination token * @param fromAmount Amount of source tokens to be swapped * @param toAmount Minimum destination token amount expected out of this swap * @param exchange Internal exchange or factory contract address for the exchange. For example Registry address for the Uniswap * @param payload Any exchange specific data which is required can be passed in this argument in encoded format which * will be decoded by the exchange. Each exchange will publish it's own decoding/encoding mechanism */ function swap( IERC20 fromToken, IERC20 toToken, uint256 fromAmount, uint256 toAmount, address exchange, bytes calldata payload) external payable returns (uint256); /** * @dev The function which performs the swap on an exchange. * Exchange needs to implement this method in order to support swapping of tokens through it * @param fromToken Address of the source token * @param toToken Address of the destination token * @param fromAmount Max Amount of source tokens to be swapped * @param toAmount Destination token amount expected out of this swap * @param exchange Internal exchange or factory contract address for the exchange. For example Registry address for the Uniswap * @param payload Any exchange specific data which is required can be passed in this argument in encoded format which * will be decoded by the exchange. Each exchange will publish it's own decoding/encoding mechanism */ function buy( IERC20 fromToken, IERC20 toToken, uint256 fromAmount, uint256 toAmount, address exchange, bytes calldata payload) external payable returns (uint256); } // File: openzeppelin-solidity/contracts/GSN/Context.sol pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: openzeppelin-solidity/contracts/access/Ownable.sol pragma solidity ^0.6.0; /** * @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. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: original_contracts/lib/TokenFetcher.sol pragma solidity 0.6.12; contract TokenFetcher is Ownable { /** * @dev Allows owner of the contract to transfer any tokens which are assigned to the contract * This method is for safety if by any chance tokens or ETHs are assigned to the contract by mistake * @dev token Address of the token to be transferred * @dev destination Recepient of the token * @dev amount Amount of tokens to be transferred */ function transferTokens( address token, address payable destination, uint256 amount ) external onlyOwner { Utils.transferTokens(token, destination, amount); } } // File: original_contracts/lib/libraries/LibBytesRichErrors.sol /* Copyright 2019 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.6.12; library LibBytesRichErrors { enum InvalidByteOperationErrorCodes { FromLessThanOrEqualsToRequired, ToLessThanOrEqualsLengthRequired, LengthGreaterThanZeroRequired, LengthGreaterThanOrEqualsFourRequired, LengthGreaterThanOrEqualsTwentyRequired, LengthGreaterThanOrEqualsThirtyTwoRequired, LengthGreaterThanOrEqualsNestedBytesLengthRequired, DestinationLengthGreaterThanOrEqualSourceLengthRequired } // bytes4(keccak256("InvalidByteOperationError(uint8,uint256,uint256)")) bytes4 internal constant INVALID_BYTE_OPERATION_ERROR_SELECTOR = 0x28006595; // solhint-disable func-name-mixedcase function InvalidByteOperationError( InvalidByteOperationErrorCodes errorCode, uint256 offset, uint256 required ) internal pure returns (bytes memory) { return abi.encodeWithSelector( INVALID_BYTE_OPERATION_ERROR_SELECTOR, errorCode, offset, required ); } } // File: original_contracts/lib/libraries/LibRichErrors.sol /* Copyright 2019 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.6.12; library LibRichErrors { // bytes4(keccak256("Error(string)")) bytes4 internal constant STANDARD_ERROR_SELECTOR = 0x08c379a0; // solhint-disable func-name-mixedcase /// @dev ABI encode a standard, string revert error payload. /// This is the same payload that would be included by a `revert(string)` /// solidity statement. It has the function signature `Error(string)`. /// @param message The error string. /// @return The ABI encoded error. function StandardError( string memory message ) internal pure returns (bytes memory) { return abi.encodeWithSelector( STANDARD_ERROR_SELECTOR, bytes(message) ); } // solhint-enable func-name-mixedcase /// @dev Reverts an encoded rich revert reason `errorData`. /// @param errorData ABI encoded error data. function rrevert(bytes memory errorData) internal pure { assembly { revert(add(errorData, 0x20), mload(errorData)) } } } // File: original_contracts/lib/libraries/LibBytes.sol /* Copyright 2019 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.6.12; library LibBytes { using LibBytes for bytes; /// @dev Reads an address from a position in a byte array. /// @param b Byte array containing an address. /// @param index Index in byte array of address. /// @return result address from byte array. function readAddress( bytes memory b, uint256 index ) internal pure returns (address result) { if (b.length < index + 20) { LibRichErrors.rrevert(LibBytesRichErrors.InvalidByteOperationError( LibBytesRichErrors.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsTwentyRequired, b.length, index + 20 // 20 is length of address )); } // Add offset to index: // 1. Arrays are prefixed by 32-byte length parameter (add 32 to index) // 2. Account for size difference between address length and 32-byte storage word (subtract 12 from index) index += 20; // Read address from array memory assembly { // 1. Add index to address of bytes array // 2. Load 32-byte word from memory // 3. Apply 20-byte mask to obtain address result := and(mload(add(b, index)), 0xffffffffffffffffffffffffffffffffffffffff) } return result; } } // File: original_contracts/lib/zeroxv2/ZeroxV2.sol pragma solidity 0.6.12; contract ZeroxV2 is IExchange, TokenFetcher { using Address for address; using LibBytes for bytes; address public weth; address public erc20Proxy; mapping(address=>bool) public makerWhitelist; struct ZeroxData { LibOrderV2.Order[] orders; bytes[] signatures; } constructor( address _weth, address _erc20Proxy, address[] memory makers ) public { weth = _weth; erc20Proxy = _erc20Proxy; for (uint256 i = 0; i < makers.length; i++) { makerWhitelist[makers[i]] = true; } } /** * @dev Fallback method to allow exchanges to transfer back ethers for a particular swap */ receive() external payable { } function swap( IERC20 fromToken, IERC20 toToken, uint256 fromAmount, uint256 toAmount, address exchange, bytes calldata payload ) external override payable returns (uint256) { return _swap( fromToken, toToken, fromAmount, toAmount, exchange, payload ); } function buy( IERC20 fromToken, IERC20 toToken, uint256 fromAmount, uint256 toAmount, address exchange, bytes calldata payload ) external override payable returns (uint256) { return _swap( fromToken, toToken, fromAmount, toAmount, exchange, payload ); } function _swap( IERC20 fromToken, IERC20 toToken, uint256 fromAmount, uint256 toAmount, address exchange, bytes memory payload) private returns (uint256) { ZeroxData memory data = abi.decode(payload, (ZeroxData)); address _fromToken = address(fromToken); address _toToken = address(toToken); if (address(fromToken) == Utils.ethAddress()) { IWETH(weth).deposit{value: fromAmount}(); _fromToken = weth; } else if (address(toToken) == Utils.ethAddress()) { _toToken = weth; } for (uint256 i = 0; i < data.orders.length; i++) { address srcToken = data.orders[i].takerAssetData.readAddress(16); require(srcToken == address(_fromToken), "Invalid from token!!"); address destToken = data.orders[i].makerAssetData.readAddress(16); require(destToken == address(_toToken), "Invalid to token!!"); require( makerWhitelist[data.orders[i].makerAddress], "Invalid maker" ); } Utils.approve(erc20Proxy, address(_fromToken), fromAmount); IZeroxV2(exchange).marketSellOrdersNoThrow( data.orders, fromAmount, data.signatures ); if (address(toToken) == Utils.ethAddress()) { uint256 wethReceived = Utils.tokenBalance(address(weth), address(this)); IWETH(weth).withdraw(wethReceived); } uint256 receivedAmount = Utils.tokenBalance(address(toToken), address(this)); Utils.transferTokens(address(toToken), msg.sender, receivedAmount); return receivedAmount; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_erc20Proxy","type":"address"},{"internalType":"address[]","name":"makers","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"contract IERC20","name":"fromToken","type":"address"},{"internalType":"contract IERC20","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"buy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"erc20Proxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"makerWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"fromToken","type":"address"},{"internalType":"contract IERC20","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"swap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address payable","name":"destination","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200199238038062001992833981016040819052620000349162000141565b6000620000406200011f565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b038086166001600160a01b031992831617909255600280549285169290911691909117905560005b81518110156200011557600160036000848481518110620000da57fe5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055600101620000bd565b5050505062000247565b3390565b80516001600160a01b03811681146200013b57600080fd5b92915050565b60008060006060848603121562000156578283fd5b62000162858562000123565b92506020620001748682870162000123565b60408601519093506001600160401b038082111562000191578384fd5b818701915087601f830112620001a5578384fd5b815181811115620001b4578485fd5b8381029150620001c684830162000220565b8181528481019084860184860187018c1015620001e1578788fd5b8795505b838610156200020f57620001fa8c8262000123565b835260019590950194918601918601620001e5565b508096505050505050509250925092565b6040518181016001600160401b03811182821017156200023f57600080fd5b604052919050565b61173b80620002576000396000f3fe60806040526004361061008a5760003560e01c80638da5cb5b116100595780638da5cb5b1461010d578063a57152ef14610122578063a64b6e5f1461014f578063b69cbf9f146100c1578063f2fde38b1461016f57610091565b80633fc8cef3146100965780635f0a1862146100c1578063715018a6146100e15780637f555b03146100f857610091565b3661009157005b600080fd5b3480156100a257600080fd5b506100ab61018f565b6040516100b89190611324565b60405180910390f35b6100d46100cf366004611015565b61019e565b6040516100b89190611671565b3480156100ed57600080fd5b506100f66101f0565b005b34801561010457600080fd5b506100ab610278565b34801561011957600080fd5b506100ab610287565b34801561012e57600080fd5b5061014261013d366004610f99565b610296565b6040516100b89190611427565b34801561015b57600080fd5b506100f661016a366004610fb5565b6102ab565b34801561017b57600080fd5b506100f661018a366004610f99565b6102f0565b6001546001600160a01b031681565b60006101e4888888888888888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506103a692505050565b98975050505050505050565b6101f8610733565b6000546001600160a01b0390811691161461022e5760405162461bcd60e51b815260040161022590611565565b60405180910390fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6002546001600160a01b031681565b6000546001600160a01b031690565b60036020526000908152604090205460ff1681565b6102b3610733565b6000546001600160a01b039081169116146102e05760405162461bcd60e51b815260040161022590611565565b6102eb838383610737565b505050565b6102f8610733565b6000546001600160a01b039081169116146103255760405162461bcd60e51b815260040161022590611565565b6001600160a01b03811661034b5760405162461bcd60e51b815260040161022590611467565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006103b0610da5565b828060200190518101906103c49190611115565b905087876103d06107b2565b6001600160a01b03168a6001600160a01b0316141561046657600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0896040518263ffffffff1660e01b81526004016000604051808303818588803b15801561043957600080fd5b505af115801561044d573d6000803e3d6000fd5b50506001546001600160a01b0316945061049592505050565b61046e6107b2565b6001600160a01b0316896001600160a01b0316141561049557506001546001600160a01b03165b60005b8351518110156105ce5760006104d46010866000015184815181106104b957fe5b602002602001015161016001516107ca90919063ffffffff16565b9050836001600160a01b0316816001600160a01b0316146105075760405162461bcd60e51b8152600401610225906114e4565b600061053960108760000151858151811061051e57fe5b602002602001015161014001516107ca90919063ffffffff16565b9050836001600160a01b0316816001600160a01b03161461056c5760405162461bcd60e51b815260040161022590611539565b600360008760000151858151811061058057fe5b602090810291909101810151516001600160a01b031682528101919091526040016000205460ff166105c45760405162461bcd60e51b815260040161022590611512565b5050600101610498565b506002546105e6906001600160a01b0316838a61080c565b82516020840151604051631ba38fa360e31b81526001600160a01b0389169263dd1c7d189261061a928d919060040161136b565b608060405180830381600087803b15801561063457600080fd5b505af1158015610648573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066c91906110ce565b506106756107b2565b6001600160a01b0316896001600160a01b0316141561070c576001546000906106a7906001600160a01b0316306108ef565b600154604051632e1a7d4d60e01b81529192506001600160a01b031690632e1a7d4d906106d8908490600401611671565b600060405180830381600087803b1580156106f257600080fd5b505af1158015610706573d6000803e3d6000fd5b50505050505b60006107188a306108ef565b90506107258a3383610737565b9a9950505050505050505050565b3390565b80156102eb576001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561079e576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610798573d6000803e3d6000fd5b506102eb565b6102eb6001600160a01b03841683836109aa565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b600081601401835110156107f0576107f06107eb6004855185601401610a00565b610a5a565b6014820191506001600160a01b03828401511690505b92915050565b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146102eb57604051636eb1769f60e11b815282906000906001600160a01b0383169063dd62ed3e906108639030908990600401611338565b60206040518083038186803b15801561087b57600080fd5b505afa15801561088f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b391906111f0565b9050828110156108e8576108d26001600160a01b038316866000610a62565b6108e86001600160a01b03831686600019610b25565b5050505050565b60006001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561092757506001600160a01b03811631610806565b6040516370a0823160e01b81526001600160a01b038416906370a0823190610953908590600401611324565b60206040518083038186803b15801561096b57600080fd5b505afa15801561097f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a391906111f0565b9050610806565b6102eb8363a9059cbb60e01b84846040516024016109c9929190611352565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610bd6565b6060632800659560e01b848484604051602401610a1f93929190611432565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290509392505050565b805160208201fd5b801580610aea5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90610a989030908690600401611338565b60206040518083038186803b158015610ab057600080fd5b505afa158015610ac4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae891906111f0565b155b610b065760405162461bcd60e51b81526004016102259061161b565b6102eb8363095ea7b360e01b84846040516024016109c9929190611352565b6000610baf82856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b8152600401610b59929190611338565b60206040518083038186803b158015610b7157600080fd5b505afa158015610b85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba991906111f0565b90610c65565b9050610bd08463095ea7b360e01b85846040516024016109c9929190611352565b50505050565b6060610c2b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c919092919063ffffffff16565b8051909150156102eb5780806020019051810190610c499190610ff5565b6102eb5760405162461bcd60e51b8152600401610225906115d1565b600082820183811015610c8a5760405162461bcd60e51b8152600401610225906114ad565b9392505050565b6060610ca08484600085610ca8565b949350505050565b6060610cb385610d6c565b610ccf5760405162461bcd60e51b81526004016102259061159a565b60006060866001600160a01b03168587604051610cec9190611308565b60006040518083038185875af1925050503d8060008114610d29576040519150601f19603f3d011682016040523d82523d6000602084013e610d2e565b606091505b50915091508115610d42579150610ca09050565b805115610d525780518082602001fd5b8360405162461bcd60e51b81526004016102259190611454565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610ca0575050151592915050565b604051806040016040528060608152602001606081525090565b8051610806816116ed565b600082601f830112610dda578081fd5b8151610ded610de8826116a1565b61167a565b818152915060208083019084810160005b84811015610e2757610e15888484518a0101610e32565b84529282019290820190600101610dfe565b505050505092915050565b600082601f830112610e42578081fd5b815167ffffffffffffffff811115610e58578182fd5b610e6b601f8201601f191660200161167a565b9150808252836020828501011115610e8257600080fd5b610e938160208401602086016116c1565b5092915050565b6000610180808385031215610ead578182fd5b610eb68161167a565b915050610ec38383610dbf565b8152610ed28360208401610dbf565b6020820152610ee48360408401610dbf565b6040820152610ef68360608401610dbf565b60608201526080820151608082015260a082015160a082015260c082015160c082015260e082015160e08201526101008083015181830152506101208083015181830152506101408083015167ffffffffffffffff80821115610f5857600080fd5b610f6486838701610e32565b83850152610160925082850151915080821115610f8057600080fd5b50610f8d85828601610e32565b82840152505092915050565b600060208284031215610faa578081fd5b8135610c8a816116ed565b600080600060608486031215610fc9578182fd5b8335610fd4816116ed565b92506020840135610fe4816116ed565b929592945050506040919091013590565b600060208284031215611006578081fd5b81518015158114610c8a578182fd5b600080600080600080600060c0888a03121561102f578283fd5b873561103a816116ed565b9650602088013561104a816116ed565b955060408801359450606088013593506080880135611068816116ed565b925060a088013567ffffffffffffffff80821115611084578384fd5b818a0191508a601f830112611097578384fd5b8135818111156110a5578485fd5b8b60208285010111156110b6578485fd5b60208301945080935050505092959891949750929550565b6000608082840312156110df578081fd5b6110e9608061167a565b825181526020830151602082015260408301516040820152606083015160608201528091505092915050565b60006020808385031215611127578182fd5b825167ffffffffffffffff8082111561113e578384fd5b9084019060408287031215611151578384fd5b61115b604061167a565b825182811115611169578586fd5b8301601f81018813611179578586fd5b8051611187610de8826116a1565b81815286810190838801895b848110156111bc576111aa8d8b8451890101610e9a565b84529289019290890190600101611193565b5050845250505082840151828111156111d3578586fd5b6111df88828601610dca565b948201949094529695505050505050565b600060208284031215611201578081fd5b5051919050565b60006101806112188484516112cf565b602083015161122a60208601826112cf565b50604083015161123d60408601826112cf565b50606083015161125060608601826112cf565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e08501526101008084015181860152506101208084015181860152506101408084015182828701526112a9838701826112dc565b9250505061016080840151858303828701526112c583826112dc565b9695505050505050565b6001600160a01b03169052565b600081518084526112f48160208601602086016116c1565b601f01601f19169290920160200192915050565b6000825161131a8184602087016116c1565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03929092168252602082015260400190565b600060608201606083528086516113828184611671565b915081925060208082028301818a01865b848110156113bd5786830386526113ab838351611208565b95840195925090830190600101611393565b505088828801528681036040880152809450875193506113dd8482611671565b9450508391508083028401818801865b858110156114175784830387526114058383516112dc565b968401969250908301906001016113ed565b50909a9950505050505050505050565b901515815260200190565b606081016008851061144057fe5b938152602081019290925260409091015290565b600060208252610c8a60208301846112dc565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b602080825260149082015273496e76616c69642066726f6d20746f6b656e212160601b604082015260600190565b6020808252600d908201526c24b73b30b634b21036b0b5b2b960991b604082015260600190565b602080825260129082015271496e76616c696420746f20746f6b656e212160701b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561169957600080fd5b604052919050565b600067ffffffffffffffff8211156116b7578081fd5b5060209081020190565b60005b838110156116dc5781810151838201526020016116c4565b83811115610bd05750506000910152565b6001600160a01b038116811461170257600080fd5b5056fea2646970667358221220041853ec2dca68bffe69bb05b74bddf7583ffa7391841c42d8be57c63f361aef64736f6c634300060c0033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000095e6f48254609a6ee006f7d493c8e5fb97094cef0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000300000000000000000000000056178a0d5f301baf6cf3e1cd53d9863437345bf90000000000000000000000004e20da8dd66621d4d24c779cacc6e30ee85cdd67000000000000000000000000ca1a57a003cf7fcd4dd972229e965710eaedb39c
Deployed Bytecode
0x60806040526004361061008a5760003560e01c80638da5cb5b116100595780638da5cb5b1461010d578063a57152ef14610122578063a64b6e5f1461014f578063b69cbf9f146100c1578063f2fde38b1461016f57610091565b80633fc8cef3146100965780635f0a1862146100c1578063715018a6146100e15780637f555b03146100f857610091565b3661009157005b600080fd5b3480156100a257600080fd5b506100ab61018f565b6040516100b89190611324565b60405180910390f35b6100d46100cf366004611015565b61019e565b6040516100b89190611671565b3480156100ed57600080fd5b506100f66101f0565b005b34801561010457600080fd5b506100ab610278565b34801561011957600080fd5b506100ab610287565b34801561012e57600080fd5b5061014261013d366004610f99565b610296565b6040516100b89190611427565b34801561015b57600080fd5b506100f661016a366004610fb5565b6102ab565b34801561017b57600080fd5b506100f661018a366004610f99565b6102f0565b6001546001600160a01b031681565b60006101e4888888888888888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506103a692505050565b98975050505050505050565b6101f8610733565b6000546001600160a01b0390811691161461022e5760405162461bcd60e51b815260040161022590611565565b60405180910390fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6002546001600160a01b031681565b6000546001600160a01b031690565b60036020526000908152604090205460ff1681565b6102b3610733565b6000546001600160a01b039081169116146102e05760405162461bcd60e51b815260040161022590611565565b6102eb838383610737565b505050565b6102f8610733565b6000546001600160a01b039081169116146103255760405162461bcd60e51b815260040161022590611565565b6001600160a01b03811661034b5760405162461bcd60e51b815260040161022590611467565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006103b0610da5565b828060200190518101906103c49190611115565b905087876103d06107b2565b6001600160a01b03168a6001600160a01b0316141561046657600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0896040518263ffffffff1660e01b81526004016000604051808303818588803b15801561043957600080fd5b505af115801561044d573d6000803e3d6000fd5b50506001546001600160a01b0316945061049592505050565b61046e6107b2565b6001600160a01b0316896001600160a01b0316141561049557506001546001600160a01b03165b60005b8351518110156105ce5760006104d46010866000015184815181106104b957fe5b602002602001015161016001516107ca90919063ffffffff16565b9050836001600160a01b0316816001600160a01b0316146105075760405162461bcd60e51b8152600401610225906114e4565b600061053960108760000151858151811061051e57fe5b602002602001015161014001516107ca90919063ffffffff16565b9050836001600160a01b0316816001600160a01b03161461056c5760405162461bcd60e51b815260040161022590611539565b600360008760000151858151811061058057fe5b602090810291909101810151516001600160a01b031682528101919091526040016000205460ff166105c45760405162461bcd60e51b815260040161022590611512565b5050600101610498565b506002546105e6906001600160a01b0316838a61080c565b82516020840151604051631ba38fa360e31b81526001600160a01b0389169263dd1c7d189261061a928d919060040161136b565b608060405180830381600087803b15801561063457600080fd5b505af1158015610648573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066c91906110ce565b506106756107b2565b6001600160a01b0316896001600160a01b0316141561070c576001546000906106a7906001600160a01b0316306108ef565b600154604051632e1a7d4d60e01b81529192506001600160a01b031690632e1a7d4d906106d8908490600401611671565b600060405180830381600087803b1580156106f257600080fd5b505af1158015610706573d6000803e3d6000fd5b50505050505b60006107188a306108ef565b90506107258a3383610737565b9a9950505050505050505050565b3390565b80156102eb576001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561079e576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610798573d6000803e3d6000fd5b506102eb565b6102eb6001600160a01b03841683836109aa565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b600081601401835110156107f0576107f06107eb6004855185601401610a00565b610a5a565b6014820191506001600160a01b03828401511690505b92915050565b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146102eb57604051636eb1769f60e11b815282906000906001600160a01b0383169063dd62ed3e906108639030908990600401611338565b60206040518083038186803b15801561087b57600080fd5b505afa15801561088f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b391906111f0565b9050828110156108e8576108d26001600160a01b038316866000610a62565b6108e86001600160a01b03831686600019610b25565b5050505050565b60006001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561092757506001600160a01b03811631610806565b6040516370a0823160e01b81526001600160a01b038416906370a0823190610953908590600401611324565b60206040518083038186803b15801561096b57600080fd5b505afa15801561097f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a391906111f0565b9050610806565b6102eb8363a9059cbb60e01b84846040516024016109c9929190611352565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610bd6565b6060632800659560e01b848484604051602401610a1f93929190611432565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290509392505050565b805160208201fd5b801580610aea5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90610a989030908690600401611338565b60206040518083038186803b158015610ab057600080fd5b505afa158015610ac4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae891906111f0565b155b610b065760405162461bcd60e51b81526004016102259061161b565b6102eb8363095ea7b360e01b84846040516024016109c9929190611352565b6000610baf82856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b8152600401610b59929190611338565b60206040518083038186803b158015610b7157600080fd5b505afa158015610b85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba991906111f0565b90610c65565b9050610bd08463095ea7b360e01b85846040516024016109c9929190611352565b50505050565b6060610c2b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c919092919063ffffffff16565b8051909150156102eb5780806020019051810190610c499190610ff5565b6102eb5760405162461bcd60e51b8152600401610225906115d1565b600082820183811015610c8a5760405162461bcd60e51b8152600401610225906114ad565b9392505050565b6060610ca08484600085610ca8565b949350505050565b6060610cb385610d6c565b610ccf5760405162461bcd60e51b81526004016102259061159a565b60006060866001600160a01b03168587604051610cec9190611308565b60006040518083038185875af1925050503d8060008114610d29576040519150601f19603f3d011682016040523d82523d6000602084013e610d2e565b606091505b50915091508115610d42579150610ca09050565b805115610d525780518082602001fd5b8360405162461bcd60e51b81526004016102259190611454565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610ca0575050151592915050565b604051806040016040528060608152602001606081525090565b8051610806816116ed565b600082601f830112610dda578081fd5b8151610ded610de8826116a1565b61167a565b818152915060208083019084810160005b84811015610e2757610e15888484518a0101610e32565b84529282019290820190600101610dfe565b505050505092915050565b600082601f830112610e42578081fd5b815167ffffffffffffffff811115610e58578182fd5b610e6b601f8201601f191660200161167a565b9150808252836020828501011115610e8257600080fd5b610e938160208401602086016116c1565b5092915050565b6000610180808385031215610ead578182fd5b610eb68161167a565b915050610ec38383610dbf565b8152610ed28360208401610dbf565b6020820152610ee48360408401610dbf565b6040820152610ef68360608401610dbf565b60608201526080820151608082015260a082015160a082015260c082015160c082015260e082015160e08201526101008083015181830152506101208083015181830152506101408083015167ffffffffffffffff80821115610f5857600080fd5b610f6486838701610e32565b83850152610160925082850151915080821115610f8057600080fd5b50610f8d85828601610e32565b82840152505092915050565b600060208284031215610faa578081fd5b8135610c8a816116ed565b600080600060608486031215610fc9578182fd5b8335610fd4816116ed565b92506020840135610fe4816116ed565b929592945050506040919091013590565b600060208284031215611006578081fd5b81518015158114610c8a578182fd5b600080600080600080600060c0888a03121561102f578283fd5b873561103a816116ed565b9650602088013561104a816116ed565b955060408801359450606088013593506080880135611068816116ed565b925060a088013567ffffffffffffffff80821115611084578384fd5b818a0191508a601f830112611097578384fd5b8135818111156110a5578485fd5b8b60208285010111156110b6578485fd5b60208301945080935050505092959891949750929550565b6000608082840312156110df578081fd5b6110e9608061167a565b825181526020830151602082015260408301516040820152606083015160608201528091505092915050565b60006020808385031215611127578182fd5b825167ffffffffffffffff8082111561113e578384fd5b9084019060408287031215611151578384fd5b61115b604061167a565b825182811115611169578586fd5b8301601f81018813611179578586fd5b8051611187610de8826116a1565b81815286810190838801895b848110156111bc576111aa8d8b8451890101610e9a565b84529289019290890190600101611193565b5050845250505082840151828111156111d3578586fd5b6111df88828601610dca565b948201949094529695505050505050565b600060208284031215611201578081fd5b5051919050565b60006101806112188484516112cf565b602083015161122a60208601826112cf565b50604083015161123d60408601826112cf565b50606083015161125060608601826112cf565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e08501526101008084015181860152506101208084015181860152506101408084015182828701526112a9838701826112dc565b9250505061016080840151858303828701526112c583826112dc565b9695505050505050565b6001600160a01b03169052565b600081518084526112f48160208601602086016116c1565b601f01601f19169290920160200192915050565b6000825161131a8184602087016116c1565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03929092168252602082015260400190565b600060608201606083528086516113828184611671565b915081925060208082028301818a01865b848110156113bd5786830386526113ab838351611208565b95840195925090830190600101611393565b505088828801528681036040880152809450875193506113dd8482611671565b9450508391508083028401818801865b858110156114175784830387526114058383516112dc565b968401969250908301906001016113ed565b50909a9950505050505050505050565b901515815260200190565b606081016008851061144057fe5b938152602081019290925260409091015290565b600060208252610c8a60208301846112dc565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b602080825260149082015273496e76616c69642066726f6d20746f6b656e212160601b604082015260600190565b6020808252600d908201526c24b73b30b634b21036b0b5b2b960991b604082015260600190565b602080825260129082015271496e76616c696420746f20746f6b656e212160701b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561169957600080fd5b604052919050565b600067ffffffffffffffff8211156116b7578081fd5b5060209081020190565b60005b838110156116dc5781810151838201526020016116c4565b83811115610bd05750506000910152565b6001600160a01b038116811461170257600080fd5b5056fea2646970667358221220041853ec2dca68bffe69bb05b74bddf7583ffa7391841c42d8be57c63f361aef64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000095e6f48254609a6ee006f7d493c8e5fb97094cef0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000300000000000000000000000056178a0d5f301baf6cf3e1cd53d9863437345bf90000000000000000000000004e20da8dd66621d4d24c779cacc6e30ee85cdd67000000000000000000000000ca1a57a003cf7fcd4dd972229e965710eaedb39c
-----Decoded View---------------
Arg [0] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : _erc20Proxy (address): 0x95E6F48254609A6ee006F7D493c8e5fB97094ceF
Arg [2] : makers (address[]): 0x56178a0d5F301bAf6CF3e1Cd53d9863437345Bf9,0x4e20DA8DD66621d4D24C779CAcc6E30ee85cDd67,0xCA1a57a003cF7fcd4DD972229e965710EaedB39c
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 00000000000000000000000095e6f48254609a6ee006f7d493c8e5fb97094cef
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [4] : 00000000000000000000000056178a0d5f301baf6cf3e1cd53d9863437345bf9
Arg [5] : 0000000000000000000000004e20da8dd66621d4d24c779cacc6e30ee85cdd67
Arg [6] : 000000000000000000000000ca1a57a003cf7fcd4dd972229e965710eaedb39c
Deployed Bytecode Sourcemap
37206:3517:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37322:19;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;38466:456;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;30167:148::-;;;;;;;;;;;;;:::i;:::-;;37348:25;;;;;;;;;;;;;:::i;29525:79::-;;;;;;;;;;;;;:::i;37380:44::-;;;;;;;;;;-1:-1:-1;37380:44:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;31227:227::-;;;;;;;;;;-1:-1:-1;31227:227:0;;;;;:::i;:::-;;:::i;30470:244::-;;;;;;;;;;-1:-1:-1;30470:244:0;;;;;:::i;:::-;;:::i;37322:19::-;;;-1:-1:-1;;;;;37322:19:0;;:::o;38466:456::-;38725:7;38759:155;38779:9;38803:7;38825:10;38850:8;38873;38896:7;;38759:155;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38759:5:0;;-1:-1:-1;;;38759:155:0:i;:::-;38752:162;38466:456;-1:-1:-1;;;;;;;;38466:456:0:o;30167:148::-;29747:12;:10;:12::i;:::-;29737:6;;-1:-1:-1;;;;;29737:6:0;;;:22;;;29729:67;;;;-1:-1:-1;;;29729:67:0;;;;;;;:::i;:::-;;;;;;;;;30274:1:::1;30258:6:::0;;30237:40:::1;::::0;-1:-1:-1;;;;;30258:6:0;;::::1;::::0;30237:40:::1;::::0;30274:1;;30237:40:::1;30305:1;30288:19:::0;;-1:-1:-1;;;;;;30288:19:0::1;::::0;;30167:148::o;37348:25::-;;;-1:-1:-1;;;;;37348:25:0;;:::o;29525:79::-;29563:7;29590:6;-1:-1:-1;;;;;29590:6:0;29525:79;:::o;37380:44::-;;;;;;;;;;;;;;;:::o;31227:227::-;29747:12;:10;:12::i;:::-;29737:6;;-1:-1:-1;;;;;29737:6:0;;;:22;;;29729:67;;;;-1:-1:-1;;;29729:67:0;;;;;;;:::i;:::-;31398:48:::1;31419:5;31426:11;31439:6;31398:20;:48::i;:::-;31227:227:::0;;;:::o;30470:244::-;29747:12;:10;:12::i;:::-;29737:6;;-1:-1:-1;;;;;29737:6:0;;;:22;;;29729:67;;;;-1:-1:-1;;;29729:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;30559:22:0;::::1;30551:73;;;;-1:-1:-1::0;;;30551:73:0::1;;;;;;;:::i;:::-;30661:6;::::0;;30640:38:::1;::::0;-1:-1:-1;;;;;30640:38:0;;::::1;::::0;30661:6;::::1;::::0;30640:38:::1;::::0;::::1;30689:6;:17:::0;;-1:-1:-1;;;;;;30689:17:0::1;-1:-1:-1::0;;;;;30689:17:0;;;::::1;::::0;;;::::1;::::0;;30470:244::o;38930:1790::-;39129:7;39151:21;;:::i;:::-;39186:7;39175:32;;;;;;;;;;;;:::i;:::-;39151:56;-1:-1:-1;39249:9:0;39297:7;39344:18;:16;:18::i;:::-;-1:-1:-1;;;;;39322:40:0;39330:9;-1:-1:-1;;;;;39322:40:0;;39318:248;;;39385:4;;;;;;;;;-1:-1:-1;;;;;39385:4:0;-1:-1:-1;;;;;39379:19:0;;39406:10;39379:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;39447:4:0;;-1:-1:-1;;;;;39447:4:0;;-1:-1:-1;39318:248:0;;-1:-1:-1;;;39318:248:0;;39504:18;:16;:18::i;:::-;-1:-1:-1;;;;;39484:38:0;39492:7;-1:-1:-1;;;;;39484:38:0;;39480:86;;;-1:-1:-1;39550:4:0;;-1:-1:-1;;;;;39550:4:0;39480:86;39583:9;39578:512;39602:11;;:18;39598:22;;39578:512;;;39642:16;39661:45;39703:2;39661:4;:11;;;39673:1;39661:14;;;;;;;;;;;;;;:29;;;:41;;:45;;;;:::i;:::-;39642:64;;39749:10;-1:-1:-1;;;;;39729:31:0;:8;-1:-1:-1;;;;;39729:31:0;;39721:64;;;;-1:-1:-1;;;39721:64:0;;;;;;;:::i;:::-;39802:17;39822:45;39864:2;39822:4;:11;;;39834:1;39822:14;;;;;;;;;;;;;;:29;;;:41;;:45;;;;:::i;:::-;39802:65;;39911:8;-1:-1:-1;;;;;39890:30:0;:9;-1:-1:-1;;;;;39890:30:0;;39882:61;;;;-1:-1:-1;;;39882:61:0;;;;;;;:::i;:::-;39986:14;:43;40001:4;:11;;;40013:1;40001:14;;;;;;;;;;;;;;;;;;;:27;-1:-1:-1;;;;;39986:43:0;;;;;;;;;;;40001:27;39986:43;;;;39960:118;;;;-1:-1:-1;;;39960:118:0;;;;;;;:::i;:::-;-1:-1:-1;;39622:3:0;;39578:512;;;-1:-1:-1;40116:10:0;;40102:58;;-1:-1:-1;;;;;40116:10:0;40136;40149;40102:13;:58::i;:::-;40230:11;;40281:15;;;;40173:134;;-1:-1:-1;;;40173:134:0;;-1:-1:-1;;;;;40173:42:0;;;;;:134;;40256:10;;40281:15;40173:134;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;40344:18;:16;:18::i;:::-;-1:-1:-1;;;;;40324:38:0;40332:7;-1:-1:-1;;;;;40324:38:0;;40320:191;;;40429:4;;40379:20;;40402:48;;-1:-1:-1;;;;;40429:4:0;40444;40402:18;:48::i;:::-;40471:4;;40465:34;;-1:-1:-1;;;40465:34:0;;40379:71;;-1:-1:-1;;;;;;40471:4:0;;40465:20;;:34;;40379:71;;40465:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40320:191;;40523:22;40548:51;40575:7;40593:4;40548:18;:51::i;:::-;40523:76;;40612:66;40641:7;40651:10;40663:14;40612:20;:66::i;:::-;40698:14;38930:1790;-1:-1:-1;;;;;;;;;;38930:1790:0:o;28071:106::-;28159:10;28071:106;:::o;22993:389::-;23145:10;;23141:232;;-1:-1:-1;;;;;23176:20:0;;21607:42;23176:20;23172:190;;;23217:28;;-1:-1:-1;;;;;23217:20:0;;;:28;;;;;23238:6;;23217:28;;;;23238:6;23217:20;:28;;;;;;;;;;;;;;;;;;;;;23172:190;;;23299:47;-1:-1:-1;;;;;23299:26:0;;23326:11;23339:6;23299:26;:47::i;22336:75::-;21607:42;22336:75;:::o;35995:1100::-;36122:14;36169:5;36177:2;36169:10;36158:1;:8;:21;36154:327;;;36196:273;36218:250;36281:89;36389:1;:8;36416:5;36424:2;36416:10;36218:44;:250::i;:::-;36196:21;:273::i;:::-;36732:2;36723:11;;;;-1:-1:-1;;;;;37001:5:0;36998:1;36994:13;36988:20;36984:69;36974:79;;35995:1100;;;;;:::o;22496:489::-;-1:-1:-1;;;;;22628:20:0;;21607:42;22628:20;22624:354;;22728:49;;-1:-1:-1;;;22728:49:0;;22688:5;;22665:13;;-1:-1:-1;;;;;22728:16:0;;;;;:49;;22753:4;;22760:16;;22728:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;22711:66;;22810:6;22798:9;:18;22794:173;;;22837:39;-1:-1:-1;;;;;22837:18:0;;22856:16;22874:1;22837:18;:39::i;:::-;22895:56;-1:-1:-1;;;;;22895:28:0;;22924:16;-1:-1:-1;;22895:28:0;:56::i;:::-;22624:354;;22496:489;;;:::o;23390:296::-;23507:7;-1:-1:-1;;;;;23536:20:0;;21607:42;23536:20;23532:147;;;-1:-1:-1;;;;;;23580:15:0;;;23573:22;;23532:147;23635:32;;-1:-1:-1;;;23635:32:0;;-1:-1:-1;;;;;23635:23:0;;;;;:32;;23659:7;;23635:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;23628:39;;;;17980:177;18063:86;18083:5;18113:23;;;18138:2;18142:5;18090:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;18090:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;18090:58:0;-1:-1:-1;;;;;;18090:58:0;;;;;;;;;;18063:19;:86::i;32850:393::-;33045:12;32787:10;33119:37;;33171:9;33195:6;33216:8;33082:153;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;33082:153:0;;;;;;;;;;;;;;-1:-1:-1;;;;;33082:153:0;-1:-1:-1;;;;;;33082:153:0;;;;;;;;;;;-1:-1:-1;32850:393:0;;;;;:::o;34854:177::-;35002:9;34996:16;34989:4;34978:9;34974:20;34967:46;18639:622;19009:10;;;19008:62;;-1:-1:-1;19025:39:0;;-1:-1:-1;;;19025:39:0;;-1:-1:-1;;;;;19025:15:0;;;;;:39;;19049:4;;19056:7;;19025:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;19008:62;19000:152;;;;-1:-1:-1;;;19000:152:0;;;;;;;:::i;:::-;19163:90;19183:5;19213:22;;;19237:7;19246:5;19190:62;;;;;;;;;:::i;19269:286::-;19366:20;19389:50;19433:5;19389;-1:-1:-1;;;;;19389:15:0;;19413:4;19420:7;19389:39;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:43;;:50::i;:::-;19366:73;;19450:97;19470:5;19500:22;;;19524:7;19533:12;19477:69;;;;;;;;;:::i;19450:97::-;19269:286;;;;:::o;20285:761::-;20709:23;20735:69;20763:4;20735:69;;;;;;;;;;;;;;;;;20743:5;-1:-1:-1;;;;;20735:27:0;;;:69;;;;;:::i;:::-;20819:17;;20709:95;;-1:-1:-1;20819:21:0;20815:224;;20961:10;20950:30;;;;;;;;;;;;:::i;:::-;20942:85;;;;-1:-1:-1;;;20942:85:0;;;;;;;:::i;12856:181::-;12914:7;12946:5;;;12970:6;;;;12962:46;;;;-1:-1:-1;;;12962:46:0;;;;;;;:::i;:::-;13028:1;12856:181;-1:-1:-1;;;12856:181:0:o;6696:196::-;6799:12;6831:53;6854:6;6862:4;6868:1;6871:12;6831:22;:53::i;:::-;6824:60;6696:196;-1:-1:-1;;;;6696:196:0:o;8073:979::-;8203:12;8236:18;8247:6;8236:10;:18::i;:::-;8228:60;;;;-1:-1:-1;;;8228:60:0;;;;;;;:::i;:::-;8362:12;8376:23;8403:6;-1:-1:-1;;;;;8403:11:0;8423:8;8434:4;8403:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8361:78;;;;8454:7;8450:595;;;8485:10;-1:-1:-1;8478:17:0;;-1:-1:-1;8478:17:0;8450:595;8599:17;;:21;8595:439;;8862:10;8856:17;8923:15;8910:10;8906:2;8902:19;8895:44;8810:148;9005:12;8998:20;;-1:-1:-1;;;8998:20:0;;;;;;;;:::i;3581:619::-;3641:4;4109:20;;3952:66;4149:23;;;;;;:42;;-1:-1:-1;;4176:15:0;;;4141:51;-1:-1:-1;;3581:619:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;:::o;142:134::-;220:13;;238:33;220:13;238:33;:::i;452:713::-;;589:3;582:4;574:6;570:17;566:27;556:2;;-1:-1;;597:12;556:2;637:6;631:13;659:89;674:73;740:6;674:73;:::i;:::-;659:89;:::i;:::-;776:21;;;650:98;-1:-1;820:4;833:14;;;;808:17;;;928:1;913:246;938:6;935:1;932:13;913:246;;;1038:57;1091:3;820:4;1014:3;1008:10;812:6;996:23;;1038:57;:::i;:::-;1026:70;;1110:14;;;;1138;;;;960:1;953:9;913:246;;;917:14;;;;;549:616;;;;:::o;2461:442::-;;2573:3;2566:4;2558:6;2554:17;2550:27;2540:2;;-1:-1;;2581:12;2540:2;2621:6;2615:13;28556:18;28548:6;28545:30;28542:2;;;-1:-1;;28578:12;28542:2;2643:64;28651:9;28632:17;;-1:-1;;28628:33;28719:4;28709:15;2643:64;:::i;:::-;2634:73;;2727:6;2720:5;2713:21;2831:3;28719:4;2822:6;2755;2813:16;;2810:25;2807:2;;;2848:1;;2838:12;2807:2;2858:39;2890:6;28719:4;2789:5;2785:16;28719:4;2755:6;2751:17;2858:39;:::i;:::-;;2533:370;;;;:::o;4012:2352::-;;4134:6;;4122:9;4117:3;4113:19;4109:32;4106:2;;;-1:-1;;4144:12;4106:2;4172:22;4134:6;4172:22;:::i;:::-;4163:31;;;4284:60;4340:3;4316:22;4284:60;:::i;:::-;4266:16;4259:86;4447:60;4503:3;4414:2;4483:9;4479:22;4447:60;:::i;:::-;4414:2;4433:5;4429:16;4422:86;4617:60;4673:3;4584:2;4653:9;4649:22;4617:60;:::i;:::-;4584:2;4603:5;4599:16;4592:86;4781:60;4837:3;4748:2;4817:9;4813:22;4781:60;:::i;:::-;4748:2;4767:5;4763:16;4756:86;4915:3;4985:9;4981:22;7373:13;4915:3;4935:5;4931:16;4924:86;5083:3;5153:9;5149:22;7373:13;5083:3;5103:5;5099:16;5092:86;5243:3;5313:9;5309:22;7373:13;5243:3;5263:5;5259:16;5252:86;5403:3;5473:9;5469:22;7373:13;5403:3;5423:5;5419:16;5412:86;5576:3;;5648:9;5644:22;7373:13;5576:3;5596:5;5592:18;5585:88;;5734:3;;5806:9;5802:22;7373:13;5734:3;5754:5;5750:18;5743:88;;5923:3;;5912:9;5908:19;5902:26;5948:18;;5940:6;5937:30;5934:2;;;4252:1;;5970:12;5934:2;6017:69;6082:3;6073:6;6062:9;6058:22;6017:69;:::i;:::-;5923:3;6001:5;5997:18;5990:97;6179:3;;;;6168:9;6164:19;6158:26;6144:40;;5948:18;6196:6;6193:30;6190:2;;;4252:1;;6226:12;6190:2;;6273:69;6338:3;6329:6;6318:9;6314:22;6273:69;:::i;:::-;6179:3;6257:5;6253:18;6246:97;;;4100:2264;;;;:::o;7436:241::-;;7540:2;7528:9;7519:7;7515:23;7511:32;7508:2;;;-1:-1;;7546:12;7508:2;85:6;72:20;97:33;124:5;97:33;:::i;7684:507::-;;;;7830:2;7818:9;7809:7;7805:23;7801:32;7798:2;;;-1:-1;;7836:12;7798:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;7888:63;-1:-1;7988:2;8035:22;;358:20;383:41;358:20;383:41;:::i;:::-;7792:399;;7996:71;;-1:-1;;;8104:2;8143:22;;;;7225:20;;7792:399::o;8198:257::-;;8310:2;8298:9;8289:7;8285:23;8281:32;8278:2;;;-1:-1;;8316:12;8278:2;2048:6;2042:13;32656:5;31086:13;31079:21;32634:5;32631:32;32621:2;;-1:-1;;32667:12;8462:1045;;;;;;;;8696:3;8684:9;8675:7;8671:23;8667:33;8664:2;;;-1:-1;;8703:12;8664:2;3004:6;2991:20;3016:46;3056:5;3016:46;:::i;:::-;8755:76;-1:-1;8868:2;8920:22;;2991:20;3016:46;2991:20;3016:46;:::i;:::-;8876:76;-1:-1;8989:2;9028:22;;7225:20;;-1:-1;9097:2;9136:22;;7225:20;;-1:-1;9205:3;9245:22;;72:20;97:33;72:20;97:33;:::i;:::-;9214:63;-1:-1;9342:3;9327:19;;9314:33;9367:18;9356:30;;;9353:2;;;-1:-1;;9389:12;9353:2;9474:6;9463:9;9459:22;;;2230:3;2223:4;2215:6;2211:17;2207:27;2197:2;;-1:-1;;2238:12;2197:2;2281:6;2268:20;9367:18;2300:6;2297:30;2294:2;;;-1:-1;;2330:12;2294:2;2425:3;8868:2;2405:17;2366:6;2391:32;;2388:41;2385:2;;;-1:-1;;2432:12;2385:2;8868;2366:6;2362:17;9409:82;;;;;;;;8658:849;;;;;;;;;;:::o;9514:320::-;;9657:3;9645:9;9636:7;9632:23;9628:33;9625:2;;;-1:-1;;9664:12;9625:2;3274:20;9657:3;3274:20;:::i;:::-;7379:6;7373:13;3376:16;3369:86;3534:2;3603:9;3599:22;7373:13;3534:2;3553:5;3549:16;3542:86;3697:2;3766:9;3762:22;7373:13;3697:2;3716:5;3712:16;3705:86;3860:2;3929:9;3925:22;7373:13;3860:2;3879:5;3875:16;3868:86;9716:102;;;;9619:215;;;;:::o;9841:396::-;;9983:2;;9971:9;9962:7;9958:23;9954:32;9951:2;;;-1:-1;;9989:12;9951:2;10040:17;10034:24;10078:18;;10070:6;10067:30;10064:2;;;-1:-1;;10100:12;10064:2;10189:22;;;;6529:4;6508:19;;;6504:30;6501:2;;;-1:-1;;6537:12;6501:2;6565:20;6529:4;6565:20;:::i;:::-;6643:17;6637:24;10078:18;6673:6;6670:30;6667:2;;;-1:-1;;6703:12;6667:2;6827:22;;1350:4;1338:17;;1334:27;-1:-1;1324:2;;-1:-1;;1365:12;1324:2;1405:6;1399:13;1427:102;1442:86;1521:6;1442:86;:::i;1427:102::-;1557:21;;;1614:14;;;;1589:17;;;-1:-1;1694:259;1719:6;1716:1;1713:13;1694:259;;;1819:70;1885:3;9983:2;1795:3;1789:10;1593:6;1777:23;;1819:70;:::i;:::-;1807:83;;1904:14;;;;1932;;;;1741:1;1734:9;1694:259;;;-1:-1;;6723:133;;-1:-1;;;6929:18;;;6923:25;6957:30;;;6954:2;;;-1:-1;;6990:12;6954:2;7035:94;7125:3;7116:6;7105:9;7101:22;7035:94;:::i;:::-;7017:16;;;7010:120;;;;7021:5;9945:292;-1:-1;;;;;;9945:292::o;10244:263::-;;10359:2;10347:9;10338:7;10334:23;10330:32;10327:2;;;-1:-1;;10365:12;10327:2;-1:-1;7373:13;;10321:186;-1:-1;10321:186::o;10713:241::-;;17956:6;18061:63;18109:14;18038:16;18032:23;18061:63;:::i;:::-;18211:4;18204:5;18200:16;18194:23;18223:63;18211:4;18275:3;18271:14;18257:12;18223:63;:::i;:::-;;18380:4;18373:5;18369:16;18363:23;18392:63;18380:4;18444:3;18440:14;18426:12;18392:63;:::i;:::-;;18543:4;18536:5;18532:16;18526:23;18555:63;18543:4;18607:3;18603:14;18589:12;18555:63;:::i;:::-;;18709:4;18702:5;18698:16;18692:23;18709:4;18773:3;18769:14;20183:37;18875:4;18868:5;18864:16;18858:23;18875:4;18939:3;18935:14;20183:37;19033:4;19026:5;19022:16;19016:23;19033:4;19097:3;19093:14;20183:37;19191:4;19184:5;19180:16;19174:23;19191:4;19255:3;19251:14;20183:37;19362:6;;19355:5;19351:18;19345:25;19362:6;19428:3;19424:16;20183:37;;19520:6;;19513:5;19509:18;19503:25;19520:6;19586:3;19582:16;20183:37;;19688:6;;19681:5;19677:18;19671:25;17956:6;19688;19720:3;19716:16;19709:40;19764:71;17956:6;17951:3;17947:16;19816:12;19764:71;:::i;:::-;19756:79;;;;19930:6;;19923:5;19919:18;19913:25;19986:3;19980:4;19976:14;19930:6;19962:3;19958:16;19951:40;20006:71;20072:4;20058:12;20006:71;:::i;:::-;10844:104;10837:117;-1:-1;;;;;;10837:117::o;10962:103::-;-1:-1;;;;;31468:54;11023:37;;11017:48::o;13353:323::-;;13485:5;29200:12;30065:6;30060:3;30053:19;13568:52;13613:6;30102:4;30097:3;30093:14;30102:4;13594:5;13590:16;13568:52;:::i;:::-;28651:9;32141:14;-1:-1;;32137:28;13632:39;;;;30102:4;13632:39;;13433:243;-1:-1;;13433:243::o;20352:271::-;;13843:5;29200:12;13954:52;13999:6;13994:3;13987:4;13980:5;13976:16;13954:52;:::i;:::-;14018:16;;;;;20486:137;-1:-1;;20486:137::o;20630:222::-;-1:-1;;;;;31468:54;;;;11023:37;;20757:2;20742:18;;20728:124::o;20859:333::-;-1:-1;;;;;31468:54;;;11023:37;;31468:54;;21178:2;21163:18;;11023:37;21014:2;20999:18;;20985:207::o;21199:333::-;-1:-1;;;;;31468:54;;;;11023:37;;21518:2;21503:18;;20183:37;21354:2;21339:18;;21325:207::o;21539:864::-;;21884:2;21873:9;21869:18;21884:2;21905:17;21898:47;21959:152;12469:5;29200:12;12488:108;12589:6;12584:3;12488:108;:::i;:::-;12481:115;;;;;12661:4;;12653:6;12649:17;12644:3;12640:27;12661:4;12760:5;28865:14;-1:-1;12799:396;12824:6;12821:1;12818:13;12799:396;;;12886:9;12880:4;12876:20;12871:3;12864:33;12953:108;13056:4;12931:6;12925:13;12953:108;:::i;:::-;13174:14;;;;12945:116;-1:-1;29762:14;;;;12846:1;12839:9;12799:396;;;12803:14;;20213:5;12661:4;22179:9;22175:18;20183:37;22242:9;22236:4;22232:20;22227:2;22216:9;22212:18;22205:48;22267:126;;;11439:5;29200:12;11368:77;;11458:95;11546:6;11541:3;11458:95;:::i;:::-;11451:102;;;;;;12661:4;11610:6;11606:17;11601:3;11597:27;12661:4;11704:5;28865:14;-1:-1;11743:357;11768:6;11765:1;11762:13;11743:357;;;11830:9;11824:4;11820:20;11815:3;11808:33;10634:64;10694:3;11875:6;11869:13;10634:64;:::i;:::-;12079:14;;;;11889:90;-1:-1;29762:14;;;;12846:1;11783:9;11743:357;;;-1:-1;22259:134;;21855:548;-1:-1;;;;;;;;;;21855:548::o;22410:210::-;31086:13;;31079:21;13307:34;;22531:2;22516:18;;22502:118::o;22627:510::-;22843:2;22828:18;;32282:1;32272:12;;32262:2;;32288:9;32262:2;14150:83;;;23040:2;23025:18;;20183:37;;;;23123:2;23108:18;;;20183:37;22814:323;:::o;23144:310::-;;23291:2;23312:17;23305:47;23366:78;23291:2;23280:9;23276:18;23430:6;23366:78;:::i;23461:416::-;23661:2;23675:47;;;14824:2;23646:18;;;30053:19;14860:34;30093:14;;;14840:55;-1:-1;;;14915:12;;;14908:30;14957:12;;;23632:245::o;23884:416::-;24084:2;24098:47;;;15208:2;24069:18;;;30053:19;15244:29;30093:14;;;15224:50;15293:12;;;24055:245::o;24307:416::-;24507:2;24521:47;;;15544:2;24492:18;;;30053:19;-1:-1;;;30093:14;;;15560:43;15622:12;;;24478:245::o;24730:416::-;24930:2;24944:47;;;15873:2;24915:18;;;30053:19;-1:-1;;;30093:14;;;15889:36;15944:12;;;24901:245::o;25153:416::-;25353:2;25367:47;;;16195:2;25338:18;;;30053:19;-1:-1;;;30093:14;;;16211:41;16271:12;;;25324:245::o;25576:416::-;25776:2;25790:47;;;25761:18;;;30053:19;16558:34;30093:14;;;16538:55;16612:12;;;25747:245::o;25999:416::-;26199:2;26213:47;;;16863:2;26184:18;;;30053:19;16899:31;30093:14;;;16879:52;16950:12;;;26170:245::o;26422:416::-;26622:2;26636:47;;;17201:2;26607:18;;;30053:19;17237:34;30093:14;;;17217:55;-1:-1;;;17292:12;;;17285:34;17338:12;;;26593:245::o;26845:416::-;27045:2;27059:47;;;17589:2;27030:18;;;30053:19;17625:34;30093:14;;;17605:55;-1:-1;;;17680:12;;;17673:46;17738:12;;;27016:245::o;27268:222::-;20183:37;;;27395:2;27380:18;;27366:124::o;27497:256::-;27559:2;27553:9;27585:17;;;27660:18;27645:34;;27681:22;;;27642:62;27639:2;;;27717:1;;27707:12;27639:2;27559;27726:22;27537:216;;-1:-1;27537:216::o;27760:313::-;;27928:18;27920:6;27917:30;27914:2;;;-1:-1;;27950:12;27914:2;-1:-1;27995:4;27983:17;;;28048:15;;27851:222::o;31797:268::-;31862:1;31869:101;31883:6;31880:1;31877:13;31869:101;;;31950:11;;;31944:18;31931:11;;;31924:39;31905:2;31898:10;31869:101;;;31985:6;31982:1;31979:13;31976:2;;;-1:-1;;31862:1;32032:16;;32025:27;31846:219::o;32311:117::-;-1:-1;;;;;31468:54;;32370:35;;32360:2;;32419:1;;32409:12;32360:2;32354:74;:::o
Swarm Source
ipfs://041853ec2dca68bffe69bb05b74bddf7583ffa7391841c42d8be57c63f361aef
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.