Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 12049297 | 1431 days ago | IN | 0 ETH | 0.004629 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
12303607 | 1392 days ago | 0.64949307 ETH | ||||
12303607 | 1392 days ago | 0.64949307 ETH | ||||
12231258 | 1403 days ago | 0.90322072 ETH | ||||
12231258 | 1403 days ago | 0.90322072 ETH | ||||
12227938 | 1404 days ago | 12.0015841 ETH | ||||
12227938 | 1404 days ago | 12.0015841 ETH | ||||
12227399 | 1404 days ago | 31.66978117 ETH | ||||
12227399 | 1404 days ago | 31.66978117 ETH | ||||
12222433 | 1404 days ago | 1.46906365 ETH | ||||
12222433 | 1404 days ago | 1.46906365 ETH | ||||
12213110 | 1406 days ago | 17.43634689 ETH | ||||
12213110 | 1406 days ago | 17.43634689 ETH | ||||
12211577 | 1406 days ago | 6.93317368 ETH | ||||
12211577 | 1406 days ago | 6.93317368 ETH | ||||
12209786 | 1406 days ago | 98.79286399 ETH | ||||
12209786 | 1406 days ago | 98.79286399 ETH | ||||
12209786 | 1406 days ago | 98.80013291 ETH | ||||
12209786 | 1406 days ago | 98.80013291 ETH | ||||
12209777 | 1406 days ago | 11.89173812 ETH | ||||
12209777 | 1406 days ago | 11.89173812 ETH | ||||
12203207 | 1407 days ago | 13.32140987 ETH | ||||
12203207 | 1407 days ago | 13.32140987 ETH | ||||
12200148 | 1408 days ago | 74.67660614 ETH | ||||
12200148 | 1408 days ago | 74.67660614 ETH | ||||
12199778 | 1408 days ago | 10.32588741 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ZeroxV4
Compiler Version
v0.7.5+commit.eb77ed08
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-03-16 */ // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: openzeppelin-solidity/contracts/utils/Address.sol pragma solidity >=0.6.2 <0.8.0; /** * @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) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @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"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: original_contracts/IWETH.sol pragma solidity 0.7.5; abstract contract IWETH is IERC20 { function deposit() external virtual payable; function withdraw(uint256 amount) external virtual; } // File: original_contracts/lib/zeroxv4/LibOrderV4.sol /* solium-disable */ pragma solidity 0.7.5; library LibOrderV4 { struct Order { IERC20 makerToken; IERC20 takerToken; uint128 makerAmount; uint128 takerAmount; address maker; address taker; address txOrigin; bytes32 pool; uint64 expiry; uint256 salt; } enum SignatureType { ILLEGAL, INVALID, EIP712, ETHSIGN } struct Signature { // How to validate the signature. SignatureType signatureType; // EC Signature data. uint8 v; // EC Signature data. bytes32 r; // EC Signature data. bytes32 s; } } // File: original_contracts/lib/zeroxv4/IZeroxV4.sol pragma solidity 0.7.5; pragma experimental ABIEncoderV2; interface IZeroxV4 { function fillRfqOrder( // The order LibOrderV4.Order calldata order, // The signature LibOrderV4.Signature calldata signature, // How much taker token to fill the order with uint128 takerTokenFillAmount ) external payable // How much maker token from the order the taker received. returns (uint128, uint128); } // File: openzeppelin-solidity/contracts/math/SafeMath.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol pragma solidity >=0.6.0 <0.8.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.7.5; 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.7.5; library Utils { using SafeMath for uint256; using SafeERC20 for IERC20; address constant ETH_ADDRESS = address( 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE ); uint256 constant MAX_UINT = 2 ** 256 - 1; /** * @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 expectedAmount Expected amount of destination tokens without slippage * @param beneficiary Beneficiary address * 0 then 100% will be transferred to beneficiary. Pass 10000 for 100% * @param referrer referral id * @param path Route to be taken for this swap to take place */ struct SellData { IERC20 fromToken; IERC20 toToken; uint256 fromAmount; uint256 toAmount; uint256 expectedAmount; address payable beneficiary; string referrer; Utils.Path[] path; } struct BuyData { IERC20 fromToken; IERC20 toToken; uint256 fromAmount; uint256 toAmount; address payable beneficiary; string referrer; Utils.BuyRoute[] route; } 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.7.5; /** * @dev This interface should be implemented by all exchanges which needs to integrate with the paraswap protocol */ interface IExchange { /** * @dev The function which performs the swap on an exchange. * Exchange needs to implement this method in order to support swapping of tokens through it * @param fromToken Address of the source token * @param toToken Address of the destination token * @param fromAmount Amount of source tokens to be swapped * @param toAmount Minimum destination token amount expected out of this swap * @param exchange Internal exchange or factory contract address for the exchange. For example Registry address for the Uniswap * @param payload Any exchange specific data which is required can be passed in this argument in encoded format which * will be decoded by the exchange. Each exchange will publish it's own decoding/encoding mechanism */ 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); /** * @dev This function is used to perform onChainSwap. It build all the parameters onchain. Basically the information * encoded in payload param of swap will calculated in this case * Exchange needs to implement this method in order to support swapping of tokens through it * @param fromToken Address of the source token * @param toToken Address of the destination token * @param fromAmount Amount of source tokens to be swapped * @param toAmount Minimum destination token amount expected out of this swap */ function onChainSwap( IERC20 fromToken, IERC20 toToken, uint256 fromAmount, uint256 toAmount ) external payable returns (uint256); } // File: openzeppelin-solidity/contracts/GSN/Context.sol pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: openzeppelin-solidity/contracts/access/Ownable.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: original_contracts/lib/TokenFetcher.sol pragma solidity 0.7.5; 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.7.5; 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.7.5; 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.7.5; 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/zeroxv4/ZeroxV4.sol pragma solidity 0.7.5; contract ZeroxV4 is IExchange, TokenFetcher { using Address for address; using LibBytes for bytes; address public weth; struct ZeroxData { LibOrderV4.Order order; LibOrderV4.Signature signature; } constructor(address _weth) public { weth = _weth; } /** * @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 receivedAmount) { address _fromToken = address(fromToken); if (address(fromToken) == Utils.ethAddress()) { IWETH(weth).deposit{value: fromAmount}(); _fromToken = weth; } uint256 initialExchangeFromBalance = Utils.tokenBalance( address(_fromToken), address(this) ); receivedAmount = _swap( fromToken, toToken, fromAmount, toAmount, exchange, payload ); require( Utils.tokenBalance(address(_fromToken), address(this)) <= initialExchangeFromBalance, "Source tokens are stuck in 0xv4 exchange" ); return receivedAmount; } function buy( IERC20 fromToken, IERC20 toToken, uint256 fromAmount, uint256 toAmount, address exchange, bytes calldata payload ) external override payable returns (uint256 receivedAmount) { address _fromToken = address(fromToken); if (address(fromToken) == Utils.ethAddress()) { IWETH(weth).deposit{value: fromAmount}(); _fromToken = weth; } receivedAmount = _swap( fromToken, toToken, fromAmount, toAmount, exchange, payload ); uint256 remainingAmount = Utils.tokenBalance(address(_fromToken), address(this)); if (remainingAmount > 0) { if (address(fromToken) == Utils.ethAddress()) { IWETH(weth).withdraw(remainingAmount); } Utils.transferTokens(address(fromToken), msg.sender, remainingAmount); } return receivedAmount; } function onChainSwap( IERC20 fromToken, IERC20 toToken, uint256 fromAmount, uint256 toAmount ) external override payable returns (uint256) { revert("METHOD NOT SUPPORTED"); } 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()) { _fromToken = weth; } else if (address(toToken) == Utils.ethAddress()) { _toToken = weth; } require(address(data.order.takerToken) == address(_fromToken), "Invalid from token!!"); require(address(data.order.makerToken) == address(_toToken), "Invalid to token!!"); Utils.approve(exchange, address(_fromToken), fromAmount); IZeroxV4(exchange).fillRfqOrder( data.order, data.signature, uint128(fromAmount) ); uint256 receivedAmount = Utils.tokenBalance(address(_toToken), address(this)); if (address(toToken) == Utils.ethAddress()) { IWETH(weth).withdraw(receivedAmount); } 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"}],"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":"receivedAmount","type":"uint256"}],"stateMutability":"payable","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"}],"name":"onChainSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"receivedAmount","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
60806040523480156200001157600080fd5b5060405162001ddf38038062001ddf8339810160408190526200003491620000b4565b600062000040620000b0565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b0392909216919091179055620000e4565b3390565b600060208284031215620000c6578081fd5b81516001600160a01b0381168114620000dd578182fd5b9392505050565b611ceb80620000f46000396000f3fe60806040526004361061007f5760003560e01c80638da5cb5b1161004e5780638da5cb5b14610100578063a64b6e5f14610115578063b69cbf9f14610135578063f2fde38b1461014857610086565b80633fc8cef31461008b5780635f0a1862146100b6578063715018a6146100d6578063815d3871146100ed57610086565b3661008657005b600080fd5b34801561009757600080fd5b506100a0610168565b6040516100ad9190611793565b60405180910390f35b6100c96100c4366004611504565b610184565b6040516100ad9190611c37565b3480156100e257600080fd5b506100eb610397565b005b6100c96100fb3660046114bf565b61046b565b34801561010c57600080fd5b506100a061049f565b34801561012157600080fd5b506100eb61013036600461145f565b6104bb565b6100c9610143366004611504565b610527565b34801561015457600080fd5b506100eb610163366004611443565b61069b565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60008761018f6107d1565b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff16141561026157600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0886040518263ffffffff1660e01b81526004016000604051808303818588803b15801561022c57600080fd5b505af1158015610240573d6000803e3d6000fd5b505060015473ffffffffffffffffffffffffffffffffffffffff1693505050505b6102a5898989898989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506107e992505050565b915060006102b38230610b1f565b9050801561038a576102c36107d1565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16141561037f576001546040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d9061034c908490600401611c37565b600060405180830381600087803b15801561036657600080fd5b505af115801561037a573d6000803e3d6000fd5b505050505b61038a8a3383610c1c565b5050979650505050505050565b61039f610cbe565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146103fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f3906119e8565b60405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60006040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390611852565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b6104c3610cbe565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610517576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f3906119e8565b610522838383610c1c565b505050565b6000876105326107d1565b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff16141561060457600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0886040518263ffffffff1660e01b81526004016000604051808303818588803b1580156105cf57600080fd5b505af11580156105e3573d6000803e3d6000fd5b505060015473ffffffffffffffffffffffffffffffffffffffff1693505050505b60006106108230610b1f565b90506106568a8a8a8a8a8a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506107e992505050565b9250806106638330610b1f565b111561038a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390611a54565b6106a3610cbe565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146106f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f3906119e8565b73ffffffffffffffffffffffffffffffffffffffff8116610744576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390611889565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b60006107f36112e1565b8280602001905181019061080791906115bd565b905087876108136107d1565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614156108665760015473ffffffffffffffffffffffffffffffffffffffff1691506108bc565b61086e6107d1565b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614156108bc575060015473ffffffffffffffffffffffffffffffffffffffff165b8173ffffffffffffffffffffffffffffffffffffffff1683600001516020015173ffffffffffffffffffffffffffffffffffffffff1614610929576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f39061197a565b82515173ffffffffffffffffffffffffffffffffffffffff82811691161461097d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f3906119b1565b61098886838a610cc2565b825160208401516040517faa77476c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89169263aa77476c926109e1928d90600401611b6b565b6040805180830381600087803b1580156109fa57600080fd5b505af1158015610a0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3291906116bf565b50506000610a408230610b1f565b9050610a4a6107d1565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff161415610b06576001546040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90610ad3908490600401611c37565b600060405180830381600087803b158015610aed57600080fd5b505af1158015610b01573d6000803e3d6000fd5b505050505b610b118a3383610c1c565b9a9950505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610b71575073ffffffffffffffffffffffffffffffffffffffff811631610c16565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190610bc3908590600401611793565b60206040518083038186803b158015610bdb57600080fd5b505afa158015610bef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1391906116f1565b90505b92915050565b80156105225773ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610c9d5760405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f19350505050158015610c97573d6000803e3d6000fd5b50610522565b61052273ffffffffffffffffffffffffffffffffffffffff84168383610e10565b3390565b73ffffffffffffffffffffffffffffffffffffffff821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610522576040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152829060009073ffffffffffffffffffffffffffffffffffffffff83169063dd62ed3e90610d4c90309089906004016117b4565b60206040518083038186803b158015610d6457600080fd5b505afa158015610d78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9c91906116f1565b905082811015610e0957610dc873ffffffffffffffffffffffffffffffffffffffff8316866000610eb1565b610e0973ffffffffffffffffffffffffffffffffffffffff8316867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610fb4565b5050505050565b6105228363a9059cbb60e01b8484604051602401610e2f9291906117db565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611072565b801580610f5f57506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84169063dd62ed3e90610f0d90309086906004016117b4565b60206040518083038186803b158015610f2557600080fd5b505afa158015610f39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5d91906116f1565b155b610f95576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390611b0e565b6105228363095ea7b360e01b8484604051602401610e2f9291906117db565b600061104b828573ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30876040518363ffffffff1660e01b8152600401610ff59291906117b4565b60206040518083038186803b15801561100d57600080fd5b505afa158015611021573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104591906116f1565b90611128565b905061106c8463095ea7b360e01b8584604051602401610e2f9291906117db565b50505050565b60606110d4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166111679092919063ffffffff16565b80519091501561052257808060200190518101906110f2919061149f565b610522576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390611ab1565b600082820183811015610c13576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f3906118e6565b60606111768484600085611180565b90505b9392505050565b6060824710156111bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f39061191d565b6111c585611284565b6111fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390611a1d565b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516112259190611777565b60006040518083038185875af1925050503d8060008114611262576040519150601f19603f3d011682016040523d82523d6000602084013e611267565b606091505b509150915061127782828661128e565b925050505b949350505050565b803b15155b919050565b6060831561129d575081611179565b8251156112ad5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f39190611801565b60405180604001604052806112f4611306565b815260200161130161135a565b905290565b6040805161014081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081019190915290565b604080516080810190915280600081526000602082018190526040820181905260609091015290565b805161128981611c90565b60006080828403121561139f578081fd5b6040516080810181811067ffffffffffffffff821117156113bc57fe5b80604052508091508251600481106113d357600080fd5b8152602083015160ff811681146113e957600080fd5b8060208301525060408301516040820152606083015160608201525092915050565b80516fffffffffffffffffffffffffffffffff8116811461128957600080fd5b805167ffffffffffffffff8116811461128957600080fd5b600060208284031215611454578081fd5b8135610c1381611c90565b600080600060608486031215611473578182fd5b833561147e81611c90565b9250602084013561148e81611c90565b929592945050506040919091013590565b6000602082840312156114b0578081fd5b81518015158114610c13578182fd5b600080600080608085870312156114d4578081fd5b84356114df81611c90565b935060208501356114ef81611c90565b93969395505050506040820135916060013590565b600080600080600080600060c0888a03121561151e578283fd5b873561152981611c90565b9650602088013561153981611c90565b95506040880135945060608801359350608088013561155781611c90565b925060a088013567ffffffffffffffff80821115611573578384fd5b818a0191508a601f830112611586578384fd5b813581811115611594578485fd5b8b60208285010111156115a5578485fd5b60208301945080935050505092959891949750929550565b60008183036101c08112156115d0578182fd5b6040516040810181811067ffffffffffffffff821117156115ed57fe5b604052610140808312156115ff578384fd5b61160881611c40565b925061161385611383565b835261162160208601611383565b60208401526116326040860161140b565b60408401526116436060860161140b565b606084015261165460808601611383565b608084015261166560a08601611383565b60a084015261167660c08601611383565b60c084015260e085015160e084015261010061169381870161142b565b9084015261012085810151908401528282526116b18682870161138e565b602083015250949350505050565b600080604083850312156116d1578182fd5b6116da8361140b565b91506116e86020840161140b565b90509250929050565b600060208284031215611702578081fd5b5051919050565b73ffffffffffffffffffffffffffffffffffffffff169052565b80516004811061172f57fe5b825260208181015160ff169083015260408082015190830152606090810151910152565b6fffffffffffffffffffffffffffffffff169052565b67ffffffffffffffff169052565b60008251611789818460208701611c64565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b6000602082528251806020840152611820816040850160208701611c64565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60208082526014908201527f4d4554484f44204e4f5420535550504f52544544000000000000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f496e76616c69642066726f6d20746f6b656e2121000000000000000000000000604082015260600190565b60208082526012908201527f496e76616c696420746f20746f6b656e21210000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526028908201527f536f7572636520746f6b656e732061726520737475636b20696e20307876342060408201527f65786368616e6765000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b60006101e082019050611b7f828651611709565b6020850151611b916020840182611709565b506040850151611ba46040840182611753565b506060850151611bb76060840182611753565b506080850151611bca6080840182611709565b5060a0850151611bdd60a0840182611709565b5060c0850151611bf060c0840182611709565b5060e085015160e083015261010080860151611c0e82850182611769565b50506101208581015190830152611c29610140830185611723565b61127c6101c0830184611753565b90815260200190565b60405181810167ffffffffffffffff81118282101715611c5c57fe5b604052919050565b60005b83811015611c7f578181015183820152602001611c67565b8381111561106c5750506000910152565b73ffffffffffffffffffffffffffffffffffffffff81168114611cb257600080fd5b5056fea264697066735822122071f2e48d1aaf9fbbb97307f669aa8051bc81f54bcf30ba6628bd565865685ccb64736f6c63430007050033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x60806040526004361061007f5760003560e01c80638da5cb5b1161004e5780638da5cb5b14610100578063a64b6e5f14610115578063b69cbf9f14610135578063f2fde38b1461014857610086565b80633fc8cef31461008b5780635f0a1862146100b6578063715018a6146100d6578063815d3871146100ed57610086565b3661008657005b600080fd5b34801561009757600080fd5b506100a0610168565b6040516100ad9190611793565b60405180910390f35b6100c96100c4366004611504565b610184565b6040516100ad9190611c37565b3480156100e257600080fd5b506100eb610397565b005b6100c96100fb3660046114bf565b61046b565b34801561010c57600080fd5b506100a061049f565b34801561012157600080fd5b506100eb61013036600461145f565b6104bb565b6100c9610143366004611504565b610527565b34801561015457600080fd5b506100eb610163366004611443565b61069b565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60008761018f6107d1565b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff16141561026157600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0886040518263ffffffff1660e01b81526004016000604051808303818588803b15801561022c57600080fd5b505af1158015610240573d6000803e3d6000fd5b505060015473ffffffffffffffffffffffffffffffffffffffff1693505050505b6102a5898989898989898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506107e992505050565b915060006102b38230610b1f565b9050801561038a576102c36107d1565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16141561037f576001546040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d9061034c908490600401611c37565b600060405180830381600087803b15801561036657600080fd5b505af115801561037a573d6000803e3d6000fd5b505050505b61038a8a3383610c1c565b5050979650505050505050565b61039f610cbe565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146103fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f3906119e8565b60405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60006040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390611852565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b6104c3610cbe565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610517576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f3906119e8565b610522838383610c1c565b505050565b6000876105326107d1565b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff16141561060457600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0886040518263ffffffff1660e01b81526004016000604051808303818588803b1580156105cf57600080fd5b505af11580156105e3573d6000803e3d6000fd5b505060015473ffffffffffffffffffffffffffffffffffffffff1693505050505b60006106108230610b1f565b90506106568a8a8a8a8a8a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506107e992505050565b9250806106638330610b1f565b111561038a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390611a54565b6106a3610cbe565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146106f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f3906119e8565b73ffffffffffffffffffffffffffffffffffffffff8116610744576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390611889565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b60006107f36112e1565b8280602001905181019061080791906115bd565b905087876108136107d1565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614156108665760015473ffffffffffffffffffffffffffffffffffffffff1691506108bc565b61086e6107d1565b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614156108bc575060015473ffffffffffffffffffffffffffffffffffffffff165b8173ffffffffffffffffffffffffffffffffffffffff1683600001516020015173ffffffffffffffffffffffffffffffffffffffff1614610929576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f39061197a565b82515173ffffffffffffffffffffffffffffffffffffffff82811691161461097d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f3906119b1565b61098886838a610cc2565b825160208401516040517faa77476c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89169263aa77476c926109e1928d90600401611b6b565b6040805180830381600087803b1580156109fa57600080fd5b505af1158015610a0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3291906116bf565b50506000610a408230610b1f565b9050610a4a6107d1565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff161415610b06576001546040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90610ad3908490600401611c37565b600060405180830381600087803b158015610aed57600080fd5b505af1158015610b01573d6000803e3d6000fd5b505050505b610b118a3383610c1c565b9a9950505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610b71575073ffffffffffffffffffffffffffffffffffffffff811631610c16565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190610bc3908590600401611793565b60206040518083038186803b158015610bdb57600080fd5b505afa158015610bef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1391906116f1565b90505b92915050565b80156105225773ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610c9d5760405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f19350505050158015610c97573d6000803e3d6000fd5b50610522565b61052273ffffffffffffffffffffffffffffffffffffffff84168383610e10565b3390565b73ffffffffffffffffffffffffffffffffffffffff821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610522576040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152829060009073ffffffffffffffffffffffffffffffffffffffff83169063dd62ed3e90610d4c90309089906004016117b4565b60206040518083038186803b158015610d6457600080fd5b505afa158015610d78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9c91906116f1565b905082811015610e0957610dc873ffffffffffffffffffffffffffffffffffffffff8316866000610eb1565b610e0973ffffffffffffffffffffffffffffffffffffffff8316867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610fb4565b5050505050565b6105228363a9059cbb60e01b8484604051602401610e2f9291906117db565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611072565b801580610f5f57506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84169063dd62ed3e90610f0d90309086906004016117b4565b60206040518083038186803b158015610f2557600080fd5b505afa158015610f39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5d91906116f1565b155b610f95576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390611b0e565b6105228363095ea7b360e01b8484604051602401610e2f9291906117db565b600061104b828573ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30876040518363ffffffff1660e01b8152600401610ff59291906117b4565b60206040518083038186803b15801561100d57600080fd5b505afa158015611021573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104591906116f1565b90611128565b905061106c8463095ea7b360e01b8584604051602401610e2f9291906117db565b50505050565b60606110d4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166111679092919063ffffffff16565b80519091501561052257808060200190518101906110f2919061149f565b610522576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390611ab1565b600082820183811015610c13576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f3906118e6565b60606111768484600085611180565b90505b9392505050565b6060824710156111bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f39061191d565b6111c585611284565b6111fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f390611a1d565b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516112259190611777565b60006040518083038185875af1925050503d8060008114611262576040519150601f19603f3d011682016040523d82523d6000602084013e611267565b606091505b509150915061127782828661128e565b925050505b949350505050565b803b15155b919050565b6060831561129d575081611179565b8251156112ad5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f39190611801565b60405180604001604052806112f4611306565b815260200161130161135a565b905290565b6040805161014081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081019190915290565b604080516080810190915280600081526000602082018190526040820181905260609091015290565b805161128981611c90565b60006080828403121561139f578081fd5b6040516080810181811067ffffffffffffffff821117156113bc57fe5b80604052508091508251600481106113d357600080fd5b8152602083015160ff811681146113e957600080fd5b8060208301525060408301516040820152606083015160608201525092915050565b80516fffffffffffffffffffffffffffffffff8116811461128957600080fd5b805167ffffffffffffffff8116811461128957600080fd5b600060208284031215611454578081fd5b8135610c1381611c90565b600080600060608486031215611473578182fd5b833561147e81611c90565b9250602084013561148e81611c90565b929592945050506040919091013590565b6000602082840312156114b0578081fd5b81518015158114610c13578182fd5b600080600080608085870312156114d4578081fd5b84356114df81611c90565b935060208501356114ef81611c90565b93969395505050506040820135916060013590565b600080600080600080600060c0888a03121561151e578283fd5b873561152981611c90565b9650602088013561153981611c90565b95506040880135945060608801359350608088013561155781611c90565b925060a088013567ffffffffffffffff80821115611573578384fd5b818a0191508a601f830112611586578384fd5b813581811115611594578485fd5b8b60208285010111156115a5578485fd5b60208301945080935050505092959891949750929550565b60008183036101c08112156115d0578182fd5b6040516040810181811067ffffffffffffffff821117156115ed57fe5b604052610140808312156115ff578384fd5b61160881611c40565b925061161385611383565b835261162160208601611383565b60208401526116326040860161140b565b60408401526116436060860161140b565b606084015261165460808601611383565b608084015261166560a08601611383565b60a084015261167660c08601611383565b60c084015260e085015160e084015261010061169381870161142b565b9084015261012085810151908401528282526116b18682870161138e565b602083015250949350505050565b600080604083850312156116d1578182fd5b6116da8361140b565b91506116e86020840161140b565b90509250929050565b600060208284031215611702578081fd5b5051919050565b73ffffffffffffffffffffffffffffffffffffffff169052565b80516004811061172f57fe5b825260208181015160ff169083015260408082015190830152606090810151910152565b6fffffffffffffffffffffffffffffffff169052565b67ffffffffffffffff169052565b60008251611789818460208701611c64565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b6000602082528251806020840152611820816040850160208701611c64565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60208082526014908201527f4d4554484f44204e4f5420535550504f52544544000000000000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f496e76616c69642066726f6d20746f6b656e2121000000000000000000000000604082015260600190565b60208082526012908201527f496e76616c696420746f20746f6b656e21210000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526028908201527f536f7572636520746f6b656e732061726520737475636b20696e20307876342060408201527f65786368616e6765000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b60006101e082019050611b7f828651611709565b6020850151611b916020840182611709565b506040850151611ba46040840182611753565b506060850151611bb76060840182611753565b506080850151611bca6080840182611709565b5060a0850151611bdd60a0840182611709565b5060c0850151611bf060c0840182611709565b5060e085015160e083015261010080860151611c0e82850182611769565b50506101208581015190830152611c29610140830185611723565b61127c6101c0830184611753565b90815260200190565b60405181810167ffffffffffffffff81118282101715611c5c57fe5b604052919050565b60005b83811015611c7f578181015183820152602001611c67565b8381111561106c5750506000910152565b73ffffffffffffffffffffffffffffffffffffffff81168114611cb257600080fd5b5056fea264697066735822122071f2e48d1aaf9fbbb97307f669aa8051bc81f54bcf30ba6628bd565865685ccb64736f6c63430007050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
-----Decoded View---------------
Arg [0] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode Sourcemap
38552:4220:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38668:19;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;40090:1079;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;31518:148::-;;;;;;;;;;;;;:::i;:::-;;41177:270;;;;;;:::i;:::-;;:::i;30876:79::-;;;;;;;;;;;;;:::i;32577:227::-;;;;;;;;;;-1:-1:-1;32577:227:0;;;;;:::i;:::-;;:::i;39029:1053::-;;;;;;:::i;:::-;;:::i;31821:244::-;;;;;;;;;;-1:-1:-1;31821:244:0;;;;;:::i;:::-;;:::i;38668:19::-;;;;;;:::o;40090:1079::-;40349:22;40420:9;40469:18;:16;:18::i;:::-;40447:40;;40455:9;40447:40;;;40443:145;;;40510:4;;;;;;;;;;;40504:19;;;40531:10;40504:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;40572:4:0;;;;;-1:-1:-1;;;;40443:145:0;40618:155;40638:9;40662:7;40684:10;40709:8;40732;40755:7;;40618:155;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40618:5:0;;-1:-1:-1;;;40618:155:0:i;:::-;40600:173;;40784:23;40810:54;40837:10;40858:4;40810:18;:54::i;:::-;40784:80;-1:-1:-1;40879:19:0;;40875:255;;40941:18;:16;:18::i;:::-;40919:40;;40927:9;40919:40;;;40915:118;;;40986:4;;40980:37;;;;;40986:4;;;;;40980:20;;:37;;41001:15;;40980:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40915:118;41049:69;41078:9;41090:10;41102:15;41049:20;:69::i;:::-;41140:21;;40090:1079;;;;;;;;;:::o;31518:148::-;31098:12;:10;:12::i;:::-;31088:6;;:22;:6;;;:22;;;31080:67;;;;;;;;;;;;:::i;:::-;;;;;;;;;31625:1:::1;31609:6:::0;;31588:40:::1;::::0;::::1;31609:6:::0;;::::1;::::0;31588:40:::1;::::0;31625:1;;31588:40:::1;31656:1;31639:19:::0;;;::::1;::::0;;31518:148::o;41177:270::-;41384:7;41409:30;;;;;;;;;;:::i;30876:79::-;30914:7;30941:6;;;30876:79;:::o;32577:227::-;31098:12;:10;:12::i;:::-;31088:6;;:22;:6;;;:22;;;31080:67;;;;;;;;;;;;:::i;:::-;32748:48:::1;32769:5;32776:11;32789:6;32748:20;:48::i;:::-;32577:227:::0;;;:::o;39029:1053::-;39289:22;39358:9;39407:18;:16;:18::i;:::-;39385:40;;39393:9;39385:40;;;39381:145;;;39448:4;;;;;;;;;;;39442:19;;;39469:10;39442:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;39510:4:0;;;;;-1:-1:-1;;;;39381:145:0;39538:34;39575:91;39616:10;39650:4;39575:18;:91::i;:::-;39538:128;;39696:155;39716:9;39740:7;39762:10;39787:8;39810;39833:7;;39696:155;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39696:5:0;;-1:-1:-1;;;39696:155:0:i;:::-;39679:172;;39944:26;39886:54;39913:10;39934:4;39886:18;:54::i;:::-;:84;;39864:174;;;;;;;;;;;;:::i;31821:244::-;31098:12;:10;:12::i;:::-;31088:6;;:22;:6;;;:22;;;31080:67;;;;;;;;;;;;:::i;:::-;31910:22:::1;::::0;::::1;31902:73;;;;;;;;;;;;:::i;:::-;32012:6;::::0;;31991:38:::1;::::0;::::1;::::0;;::::1;::::0;32012:6;::::1;::::0;31991:38:::1;::::0;::::1;32040:6;:17:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;31821:244::o;22930:75::-;21132:42;22930:75;:::o;41455:1314::-;41654:7;41676:21;;:::i;:::-;41711:7;41700:32;;;;;;;;;;;;:::i;:::-;41676:56;-1:-1:-1;41774:9:0;41822:7;41869:18;:16;:18::i;:::-;41847:40;;41855:9;41847:40;;;41843:193;;;41917:4;;;;;-1:-1:-1;41843:193:0;;;41974:18;:16;:18::i;:::-;41954:38;;41962:7;41954:38;;;41950:86;;;-1:-1:-1;42020:4:0;;;;41950:86;42098:10;42056:53;;42064:4;:10;;;:21;;;42056:53;;;42048:86;;;;;;;;;;;;:::i;:::-;42161:10;;:21;42153:51;;;;;;;42145:82;;;;;;;;;;;;:::i;:::-;42240:56;42254:8;42272:10;42285;42240:13;:56::i;:::-;42355:10;;42380:14;;;;42309:130;;;;;:31;;;;;;:130;;42417:10;;42309:130;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;42452:22;42477:52;42504:8;42523:4;42477:18;:52::i;:::-;42452:77;;42566:18;:16;:18::i;:::-;42546:38;;42554:7;42546:38;;;42542:107;;;42607:4;;42601:36;;;;;42607:4;;;;;42601:20;;:36;;42622:14;;42601:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42542:107;42661:66;42690:7;42700:10;42712:14;42661:20;:66::i;:::-;42747:14;41455:1314;-1:-1:-1;;;;;;;;;;41455:1314:0:o;23984:296::-;24101:7;24130:20;;;21132:42;24130:20;24126:147;;;-1:-1:-1;24174:15:0;;;;24167:22;;24126:147;24229:32;;;;;:23;;;;;;:32;;24253:7;;24229:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;24222:39;;24126:147;23984:296;;;;:::o;23587:389::-;23739:10;;23735:232;;23770:20;;;21132:42;23770:20;23766:190;;;23811:28;;:20;;;;:28;;;;;23832:6;;23811:28;;;;23832:6;23811:20;:28;;;;;;;;;;;;;;;;;;;;;23766:190;;;23893:47;:26;;;23920:11;23933:6;23893:26;:47::i;29403:106::-;29491:10;29403:106;:::o;23090:489::-;23222:20;;;21132:42;23222:20;23218:354;;23322:49;;;;;23282:5;;23259:13;;23322:16;;;;;;:49;;23347:4;;23354:16;;23322:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;23305:66;;23404:6;23392:9;:18;23388:173;;;23431:39;:18;;;23450:16;23468:1;23431:18;:39::i;:::-;23489:56;:28;;;23518:16;21218:12;23489:28;:56::i;:::-;23218:354;;23090:489;;;:::o;17507:177::-;17590:86;17610:5;17640:23;;;17665:2;17669:5;17617:58;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17590:19;:86::i;18166:622::-;18536:10;;;18535:62;;-1:-1:-1;18552:39:0;;;;;:15;;;;;;:39;;18576:4;;18583:7;;18552:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;18535:62;18527:152;;;;;;;;;;;;:::i;:::-;18690:90;18710:5;18740:22;;;18764:7;18773:5;18717:62;;;;;;;;;:::i;18796:286::-;18893:20;18916:50;18960:5;18916;:15;;;18940:4;18947:7;18916:39;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:43;;:50::i;:::-;18893:73;;18977:97;18997:5;19027:22;;;19051:7;19060:12;19004:69;;;;;;;;;:::i;18977:97::-;18796:286;;;;:::o;19812:761::-;20236:23;20262:69;20290:4;20262:69;;;;;;;;;;;;;;;;;20270:5;20262:27;;;;:69;;;;;:::i;:::-;20346:17;;20236:95;;-1:-1:-1;20346:21:0;20342:224;;20488:10;20477:30;;;;;;;;;;;;:::i;:::-;20469:85;;;;;;;;;;;;:::i;12373:181::-;12431:7;12463:5;;;12487:6;;;;12479:46;;;;;;;;;;;;:::i;6519:195::-;6622:12;6654:52;6676:6;6684:4;6690:1;6693:12;6654:21;:52::i;:::-;6647:59;;6519:195;;;;;;:::o;7571:530::-;7698:12;7756:5;7731:21;:30;;7723:81;;;;;;;;;;;;:::i;:::-;7823:18;7834:6;7823:10;:18::i;:::-;7815:60;;;;;;;;;;;;:::i;:::-;7949:12;7963:23;7990:6;:11;;8010:5;8018:4;7990:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7948:75;;;;8041:52;8059:7;8068:10;8080:12;8041:17;:52::i;:::-;8034:59;;;;7571:530;;;;;;;:::o;3601:422::-;3968:20;;4007:8;;3601:422;;;;:::o;9107:742::-;9222:12;9251:7;9247:595;;;-1:-1:-1;9282:10:0;9275:17;;9247:595;9396:17;;:21;9392:439;;9659:10;9653:17;9720:15;9707:10;9703:2;9699:19;9692:44;9607:148;9802:12;9795:20;;;;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:142:1:-;95:13;;117:33;95:13;117:33;:::i;161:772::-;;279:4;267:9;262:3;258:19;254:30;251:2;;;301:5;294;287:20;251:2;338;332:9;380:4;372:6;368:17;451:6;439:10;436:22;415:18;403:10;400:34;397:62;394:2;;;462:9;394:2;493:10;489:2;482:22;;522:6;513:15;;558:9;552:16;599:1;590:7;587:14;577:2;;615:1;612;605:12;577:2;628:23;;696:2;681:18;;675:25;744:4;731:18;;719:31;;709:2;;764:1;761;754:12;709:2;801:7;796:2;788:6;784:15;777:32;;863:2;852:9;848:18;842:25;837:2;829:6;825:15;818:50;922:2;911:9;907:18;901:25;896:2;888:6;884:15;877:50;;241:692;;;;:::o;938:194::-;1019:13;;1072:34;1061:46;;1051:57;;1041:2;;1122:1;1119;1112:12;1137:177;1217:13;;1270:18;1259:30;;1249:41;;1239:2;;1304:1;1301;1294:12;1319:259;;1431:2;1419:9;1410:7;1406:23;1402:32;1399:2;;;1452:6;1444;1437:22;1399:2;1496:9;1483:23;1515:33;1542:5;1515:33;:::i;1583:478::-;;;;1737:2;1725:9;1716:7;1712:23;1708:32;1705:2;;;1758:6;1750;1743:22;1705:2;1802:9;1789:23;1821:33;1848:5;1821:33;:::i;:::-;1873:5;-1:-1:-1;1930:2:1;1915:18;;1902:32;1943:35;1902:32;1943:35;:::i;:::-;1695:366;;1997:7;;-1:-1:-1;;;2051:2:1;2036:18;;;;2023:32;;1695:366::o;2066:297::-;;2186:2;2174:9;2165:7;2161:23;2157:32;2154:2;;;2207:6;2199;2192:22;2154:2;2244:9;2238:16;2297:5;2290:13;2283:21;2276:5;2273:32;2263:2;;2324:6;2316;2309:22;2368:565;;;;;2557:3;2545:9;2536:7;2532:23;2528:33;2525:2;;;2579:6;2571;2564:22;2525:2;2623:9;2610:23;2642:33;2669:5;2642:33;:::i;:::-;2694:5;-1:-1:-1;2751:2:1;2736:18;;2723:32;2764:35;2723:32;2764:35;:::i;:::-;2515:418;;2818:7;;-1:-1:-1;;;;2872:2:1;2857:18;;2844:32;;2923:2;2908:18;2895:32;;2515:418::o;2938:1229::-;;;;;;;;3180:3;3168:9;3159:7;3155:23;3151:33;3148:2;;;3202:6;3194;3187:22;3148:2;3246:9;3233:23;3265:33;3292:5;3265:33;:::i;:::-;3317:5;-1:-1:-1;3374:2:1;3359:18;;3346:32;3387:35;3346:32;3387:35;:::i;:::-;3441:7;-1:-1:-1;3495:2:1;3480:18;;3467:32;;-1:-1:-1;3546:2:1;3531:18;;3518:32;;-1:-1:-1;3602:3:1;3587:19;;3574:33;3616:35;3574:33;3616:35;:::i;:::-;3670:7;-1:-1:-1;3728:3:1;3713:19;;3700:33;3752:18;3782:14;;;3779:2;;;3814:6;3806;3799:22;3779:2;3857:6;3846:9;3842:22;3832:32;;3902:7;3895:4;3891:2;3887:13;3883:27;3873:2;;3929:6;3921;3914:22;3873:2;3974;3961:16;4000:2;3992:6;3989:14;3986:2;;;4021:6;4013;4006:22;3986:2;4071:7;4066:2;4057:6;4053:2;4049:15;4045:24;4042:37;4039:2;;;4097:6;4089;4082:22;4039:2;4133;4129;4125:11;4115:21;;4155:6;4145:16;;;;;3138:1029;;;;;;;;;;:::o;4172:1506::-;;4313:9;4304:7;4300:23;4343:3;4339:2;4335:12;4332:2;;;4365:6;4357;4350:22;4332:2;4403:4;4397:11;4447:4;4439:6;4435:17;4518:6;4506:10;4503:22;4482:18;4470:10;4467:34;4464:62;4461:2;;;4529:9;4461:2;4556:4;4549:24;4592:6;4610:11;;;4607:2;;;4639:6;4631;4624:22;4607:2;4670:18;4685:2;4670:18;:::i;:::-;4657:31;;4711:42;4743:9;4711:42;:::i;:::-;4704:5;4697:57;4786:51;4833:2;4822:9;4818:18;4786:51;:::i;:::-;4781:2;4774:5;4770:14;4763:75;4872:53;4919:4;4908:9;4904:20;4872:53;:::i;:::-;4865:4;4858:5;4854:16;4847:79;4958:51;5005:2;4994:9;4990:18;4958:51;:::i;:::-;4953:2;4946:5;4942:14;4935:75;5043:52;5090:3;5079:9;5075:19;5043:52;:::i;:::-;5037:3;5030:5;5026:15;5019:77;5129:52;5176:3;5165:9;5161:19;5129:52;:::i;:::-;5123:3;5116:5;5112:15;5105:77;5215:52;5262:3;5251:9;5247:19;5215:52;:::i;:::-;5209:3;5202:5;5198:15;5191:77;5322:3;5311:9;5307:19;5301:26;5295:3;5288:5;5284:15;5277:51;5347:3;5382:50;5428:2;5417:9;5413:18;5382:50;:::i;:::-;5366:14;;;5359:74;5452:3;5493:18;;;5487:25;5471:14;;;5464:49;5522:21;;;5576:70;5638:7;5618:18;;;5576:70;:::i;:::-;5571:2;5559:15;;5552:95;-1:-1:-1;5563:6:1;4280:1398;-1:-1:-1;;;;4280:1398:1:o;5683:307::-;;;5823:2;5811:9;5802:7;5798:23;5794:32;5791:2;;;5844:6;5836;5829:22;5791:2;5872:42;5904:9;5872:42;:::i;:::-;5862:52;;5933:51;5980:2;5969:9;5965:18;5933:51;:::i;:::-;5923:61;;5781:209;;;;;:::o;5995:194::-;;6118:2;6106:9;6097:7;6093:23;6089:32;6086:2;;;6139:6;6131;6124:22;6086:2;-1:-1:-1;6167:16:1;;6076:113;-1:-1:-1;6076:113:1:o;6194:129::-;6273:42;6262:54;6250:67;;6240:83::o;6328:340::-;6410:5;6404:12;6442:1;6438:2;6435:9;6425:2;;6448:9;6425:2;6468:15;;6536:4;6525:16;;;6519:23;6544:4;6515:34;6499:14;;;6492:58;6599:4;6588:16;;;6582:23;6566:14;;;6559:47;6655:4;6644:16;;;6638:23;6622:14;;6615:47;6384:284::o;6673:121::-;6752:34;6741:46;6729:59;;6719:75::o;6799:104::-;6877:18;6866:30;6854:43;;6844:59::o;6908:274::-;;7075:6;7069:13;7091:53;7137:6;7132:3;7125:4;7117:6;7113:17;7091:53;:::i;:::-;7160:16;;;;;7045:137;-1:-1:-1;;7045:137:1:o;7187:226::-;7363:42;7351:55;;;;7333:74;;7321:2;7306:18;;7288:125::o;7418:327::-;7602:42;7671:15;;;7653:34;;7723:15;;7718:2;7703:18;;7696:43;7580:2;7565:18;;7547:198::o;7750:297::-;7954:42;7942:55;;;;7924:74;;8029:2;8014:18;;8007:34;7912:2;7897:18;;7879:168::o;8052:442::-;;8201:2;8190:9;8183:21;8233:6;8227:13;8276:6;8271:2;8260:9;8256:18;8249:34;8292:66;8351:6;8346:2;8335:9;8331:18;8326:2;8318:6;8314:15;8292:66;:::i;:::-;8410:2;8398:15;8415:66;8394:88;8379:104;;;;8485:2;8375:113;;8173:321;-1:-1:-1;;8173:321:1:o;8499:344::-;8701:2;8683:21;;;8740:2;8720:18;;;8713:30;8779:22;8774:2;8759:18;;8752:50;8834:2;8819:18;;8673:170::o;8848:402::-;9050:2;9032:21;;;9089:2;9069:18;;;9062:30;9128:34;9123:2;9108:18;;9101:62;9199:8;9194:2;9179:18;;9172:36;9240:3;9225:19;;9022:228::o;9255:351::-;9457:2;9439:21;;;9496:2;9476:18;;;9469:30;9535:29;9530:2;9515:18;;9508:57;9597:2;9582:18;;9429:177::o;9611:402::-;9813:2;9795:21;;;9852:2;9832:18;;;9825:30;9891:34;9886:2;9871:18;;9864:62;9962:8;9957:2;9942:18;;9935:36;10003:3;9988:19;;9785:228::o;10018:344::-;10220:2;10202:21;;;10259:2;10239:18;;;10232:30;10298:22;10293:2;10278:18;;10271:50;10353:2;10338:18;;10192:170::o;10367:342::-;10569:2;10551:21;;;10608:2;10588:18;;;10581:30;10647:20;10642:2;10627:18;;10620:48;10700:2;10685:18;;10541:168::o;10714:356::-;10916:2;10898:21;;;10935:18;;;10928:30;10994:34;10989:2;10974:18;;10967:62;11061:2;11046:18;;10888:182::o;11075:353::-;11277:2;11259:21;;;11316:2;11296:18;;;11289:30;11355:31;11350:2;11335:18;;11328:59;11419:2;11404:18;;11249:179::o;11433:404::-;11635:2;11617:21;;;11674:2;11654:18;;;11647:30;11713:34;11708:2;11693:18;;11686:62;11784:10;11779:2;11764:18;;11757:38;11827:3;11812:19;;11607:230::o;11842:406::-;12044:2;12026:21;;;12083:2;12063:18;;;12056:30;12122:34;12117:2;12102:18;;12095:62;12193:12;12188:2;12173:18;;12166:40;12238:3;12223:19;;12016:232::o;12253:418::-;12455:2;12437:21;;;12494:2;12474:18;;;12467:30;12533:34;12528:2;12513:18;;12506:62;12604:24;12599:2;12584:18;;12577:52;12661:3;12646:19;;12427:244::o;12676:1494::-;;12962:3;12951:9;12947:19;12939:27;;12975:46;13011:9;13002:6;12996:13;12975:46;:::i;:::-;13068:4;13060:6;13056:17;13050:24;13083:56;13133:4;13122:9;13118:20;13104:12;13083:56;:::i;:::-;;13188:4;13180:6;13176:17;13170:24;13203:58;13255:4;13244:9;13240:20;13224:14;13203:58;:::i;:::-;;13310:4;13302:6;13298:17;13292:24;13325:58;13377:4;13366:9;13362:20;13346:14;13325:58;:::i;:::-;;13432:4;13424:6;13420:17;13414:24;13447:58;13499:4;13488:9;13484:20;13468:14;13447:58;:::i;:::-;;13554:4;13546:6;13542:17;13536:24;13569:58;13621:4;13610:9;13606:20;13590:14;13569:58;:::i;:::-;;13676:4;13668:6;13664:17;13658:24;13691:58;13743:4;13732:9;13728:20;13712:14;13691:58;:::i;:::-;;13805:4;13797:6;13793:17;13787:24;13780:4;13769:9;13765:20;13758:54;13831:6;13886:2;13878:6;13874:15;13868:22;13899:55;13950:2;13939:9;13935:18;13919:14;13899:55;:::i;:::-;-1:-1:-1;;13973:6:1;14021:15;;;14015:22;13995:18;;;13988:50;14047:59;14101:3;14086:19;;14078:6;14047:59;:::i;:::-;14115:49;14159:3;14148:9;14144:19;14136:6;14115:49;:::i;14175:177::-;14321:25;;;14309:2;14294:18;;14276:76::o;14357:242::-;14427:2;14421:9;14457:17;;;14504:18;14489:34;;14525:22;;;14486:62;14483:2;;;14551:9;14483:2;14578;14571:22;14401:198;;-1:-1:-1;14401:198:1:o;14604:258::-;14676:1;14686:113;14700:6;14697:1;14694:13;14686:113;;;14776:11;;;14770:18;14757:11;;;14750:39;14722:2;14715:10;14686:113;;;14817:6;14814:1;14811:13;14808:2;;;-1:-1:-1;;14852:1:1;14834:16;;14827:27;14657:205::o;14867:156::-;14955:42;14948:5;14944:54;14937:5;14934:65;14924:2;;15013:1;15010;15003:12;14924:2;14914:109;:::o
Swarm Source
ipfs://71f2e48d1aaf9fbbb97307f669aa8051bc81f54bcf30ba6628bd565865685ccb
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.