Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Sponsored
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 13275206 | 735 days 3 hrs ago | IN | Create: UniswapV3ExchangeInteractiveAdapter | 0 ETH | 0.04804906 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
UniswapV3ExchangeInteractiveAdapter
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Copyright (C) 2020 Zerion Inc. <https://zerion.io> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. // // SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.7.6; pragma experimental ABIEncoderV2; import { ERC20 } from "../../interfaces/ERC20.sol"; import { SafeERC20 } from "../../shared/SafeERC20.sol"; import { TokenAmount, AmountType } from "../../shared/Structs.sol"; import { UniswapExchangeAdapter } from "../../adapters/uniswap/UniswapExchangeAdapter.sol"; import { InteractiveAdapter } from "../InteractiveAdapter.sol"; import { ISwapRouter } from "../../interfaces/ISwapRouter.sol"; /** * @title Interactive adapter for Uniswap V3 protocol (exactInput). * @dev Implementation of InteractiveAdapter abstract contract. * @author Igor Sobolev <[email protected]> */ contract UniswapV3ExchangeInteractiveAdapter is InteractiveAdapter, UniswapExchangeAdapter { using SafeERC20 for ERC20; address internal constant SWAP_ROUTER = 0xE592427A0AEce92De3Edee1F18E0157C05861564; /** * @notice Exchange tokens using Uniswap v3 SwapRouter. * @param tokenAmounts Array with one element - TokenAmount struct with * "from" token address, "from" token amount, and amount type. * @param data Uniswap v3 exchange path & out address. * @return tokensToBeWithdrawn Array with one element - token address to be exchanged to. * @dev Implementation of InteractiveAdapter function. */ function deposit(TokenAmount[] calldata tokenAmounts, bytes calldata data) external payable override returns (address[] memory tokensToBeWithdrawn) { require(tokenAmounts.length == 1, "Uv3EIA: should be 1 tokenAmount"); address token = tokenAmounts[0].token; uint256 amount = getAbsoluteAmountDeposit(tokenAmounts[0]); bytes memory path; tokensToBeWithdrawn = new address[](1); (path, tokensToBeWithdrawn[0]) = abi.decode(data, (bytes, address)); ERC20(token).safeApproveMax(SWAP_ROUTER, amount, "Uv3EIA"); try ISwapRouter(SWAP_ROUTER).exactInput( ISwapRouter.ExactInputParams({ path: path, recipient: address(this), // solhint-disable-next-line not-rely-on-time deadline: block.timestamp, amountIn: amount, amountOutMinimum: 0 }) ) returns (uint256) { // solhint-disable-previous-line no-empty-blocks } catch Error(string memory reason) { revert(reason); } catch { revert("Uv3EIA: swap fail"); } } /** * @notice Withdraw functionality is not supported, yet. However, it's possible to implement. * @dev Implementation of InteractiveAdapter function. */ function withdraw(TokenAmount[] calldata, bytes calldata) external payable override returns (address[] memory) { revert("Uv3EIA: no withdraw"); } }
// Copyright (C) 2020 Zerion Inc. <https://zerion.io> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. // // SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.7.6; pragma experimental ABIEncoderV2; /** * @title Protocol adapter abstract contract. * @dev adapterType(), tokenType(), and getBalance() functions MUST be implemented. * @author Igor Sobolev <[email protected]> */ abstract contract ProtocolAdapter { /** * @dev MUST return amount and type of the given token * locked on the protocol by the given account. */ function getBalance(address token, address account) public virtual returns (int256); }
// Copyright (C) 2020 Zerion Inc. <https://zerion.io> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. // // SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.7.6; pragma experimental ABIEncoderV2; import { ERC20 } from "../../interfaces/ERC20.sol"; import { ProtocolAdapter } from "../ProtocolAdapter.sol"; /** * @title Adapter for Uniswap V1/V2 protocol (exchange). * @dev Implementation of ProtocolAdapter abstract contract. * Base contract for Uniswap V1/V2 exchange adapter. * @author Igor Sobolev <[email protected]> */ contract UniswapExchangeAdapter is ProtocolAdapter { /** * @notice This function is unavailable for exchange adapter. * @dev Implementation of ProtocolAdapter abstract contract function. */ function getBalance(address, address) public pure override returns (int256) { revert("UEA: no balance"); } }
// Copyright (C) 2020 Zerion Inc. <https://zerion.io> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. // // SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.7.6; pragma experimental ABIEncoderV2; import { ProtocolAdapter } from "../adapters/ProtocolAdapter.sol"; import { TokenAmount, AmountType } from "../shared/Structs.sol"; import { ERC20 } from "../interfaces/ERC20.sol"; /** * @title Base contract for interactive protocol adapters. * @dev deposit() and withdraw() functions MUST be implemented * as well as all the functions from ProtocolAdapter abstract contract. * @author Igor Sobolev <[email protected]> */ abstract contract InteractiveAdapter is ProtocolAdapter { uint256 internal constant DELIMITER = 1e18; address internal constant ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; /** * @dev The function must deposit assets to the protocol. * @return MUST return assets to be sent back to the `msg.sender`. */ function deposit(TokenAmount[] calldata tokenAmounts, bytes calldata data) external payable virtual returns (address[] memory); /** * @dev The function must withdraw assets from the protocol. * @return MUST return assets to be sent back to the `msg.sender`. */ function withdraw(TokenAmount[] calldata tokenAmounts, bytes calldata data) external payable virtual returns (address[] memory); function getAbsoluteAmountWithdraw(TokenAmount calldata tokenAmount) internal virtual returns (uint256) { address token = tokenAmount.token; uint256 amount = tokenAmount.amount; AmountType amountType = tokenAmount.amountType; require( amountType == AmountType.Relative || amountType == AmountType.Absolute, "IA: bad amount type" ); if (amountType == AmountType.Relative) { require(amount <= DELIMITER, "IA: bad amount"); int256 balanceSigned = getBalance(token, address(this)); uint256 balance = balanceSigned > 0 ? uint256(balanceSigned) : uint256(-balanceSigned); if (amount == DELIMITER) { return balance; } else { return mul_(balance, amount) / DELIMITER; } } else { return amount; } } function getAbsoluteAmountDeposit(TokenAmount calldata tokenAmount) internal view virtual returns (uint256) { address token = tokenAmount.token; uint256 amount = tokenAmount.amount; AmountType amountType = tokenAmount.amountType; require( amountType == AmountType.Relative || amountType == AmountType.Absolute, "IA: bad amount type" ); if (amountType == AmountType.Relative) { require(amount <= DELIMITER, "IA: bad amount"); uint256 balance; if (token == ETH) { balance = address(this).balance; } else { balance = ERC20(token).balanceOf(address(this)); } if (amount == DELIMITER) { return balance; } else { return mul_(balance, amount) / DELIMITER; } } else { return amount; } } function mul_(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "IA: mul overflow"); return c; } }
// Copyright (C) 2020 Zerion Inc. <https://zerion.io> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. // // SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.7.6; pragma experimental ABIEncoderV2; interface ERC20 { function approve(address, uint256) external returns (bool); function transfer(address, uint256) external returns (bool); function transferFrom( address, address, uint256 ) external returns (bool); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address) external view returns (uint256); function allowance(address, address) external view returns (uint256); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity 0.7.6; pragma abicoder v2; /// @title Router token swapping functionality /// @notice Functions for swapping tokens via Uniswap V3 interface ISwapRouter { struct ExactInputParams { bytes path; address recipient; uint256 deadline; uint256 amountIn; uint256 amountOutMinimum; } /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata /// @return amountOut The amount of the received token function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut); }
// Copyright (C) 2020 Zerion Inc. <https://zerion.io> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. // // SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.7.6; import "../interfaces/ERC20.sol"; /** * @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 ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { function safeTransfer( ERC20 token, address to, uint256 value, string memory location ) internal { callOptionalReturn( token, abi.encodeWithSelector(token.transfer.selector, to, value), "transfer", location ); } function safeTransferFrom( ERC20 token, address from, address to, uint256 value, string memory location ) internal { callOptionalReturn( token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value), "transferFrom", location ); } function safeApprove( ERC20 token, address spender, uint256 value, string memory location ) internal { require( (value == 0) || (token.allowance(address(this), spender) == 0), string(abi.encodePacked("SafeERC20: bad approve call from ", location)) ); callOptionalReturn( token, abi.encodeWithSelector(token.approve.selector, spender, value), "approve", location ); } function safeApproveMax( ERC20 token, address spender, uint256 value, string memory location ) internal { uint256 allowance = ERC20(token).allowance(address(this), spender); if (allowance < value) { if (allowance > 0) { safeApprove(token, spender, 0, location); } safeApprove(token, spender, type(uint256).max, location); } } /** * @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). * @param location Location of the call (for debug). */ function callOptionalReturn( ERC20 token, bytes memory data, string memory functionName, string memory location ) 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 implement two-steps call as callee is a contract is a responsibility of a caller. // 1. The call itself is made, and success asserted // 2. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require( success, string(abi.encodePacked("SafeERC20: ", functionName, " failed in ", location)) ); if (returndata.length > 0) { // Return data is optional require( abi.decode(returndata, (bool)), string( abi.encodePacked("SafeERC20: ", functionName, " returned false in ", location) ) ); } } }
// Copyright (C) 2020 Zerion Inc. <https://zerion.io> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. // // SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.7.6; pragma experimental ABIEncoderV2; // The struct consists of TokenBalanceMeta structs for // (base) token and its underlying tokens (if any). struct FullTokenBalance { TokenBalanceMeta base; TokenBalanceMeta[] underlying; } // The struct consists of TokenBalance struct // with token address and absolute amount // and ERC20Metadata struct with ERC20-style metadata. // NOTE: 0xEeee...EEeE address is used for ETH. struct TokenBalanceMeta { TokenBalance tokenBalance; ERC20Metadata erc20metadata; } // The struct consists of ERC20-style token metadata. struct ERC20Metadata { string name; string symbol; uint8 decimals; } // The struct consists of protocol adapter's name // and array of TokenBalance structs // with token addresses and absolute amounts. struct AdapterBalance { bytes32 protocolAdapterName; TokenBalance[] tokenBalances; } // The struct consists of token address // and its absolute amount (may be negative). // 0xEeee...EEeE is used for Ether struct TokenBalance { address token; int256 amount; } // The struct consists of token address, // and price per full share (1e18). // 0xEeee...EEeE is used for Ether struct Component { address token; int256 rate; } //=============================== Interactive Adapters Structs ==================================== // The struct consists of name of the protocol adapter, // action type, array of token amounts, // and some additional data (depends on the protocol). struct Action { bytes32 protocolAdapterName; ActionType actionType; TokenAmount[] tokenAmounts; bytes data; } // The struct consists of token address, // its amount, and amount type, as well as // permit type and calldata. struct Input { TokenAmount tokenAmount; Permit permit; } // The struct consists of // permit type and calldata. struct Permit { PermitType permitType; bytes permitCallData; } // The struct consists of token address, // its amount, and amount type. // 0xEeee...EEeE is used for Ether struct TokenAmount { address token; uint256 amount; AmountType amountType; } // The struct consists of fee share // and beneficiary address. struct Fee { uint256 share; address beneficiary; } // The struct consists of token address // and its absolute amount. // 0xEeee...EEeE is used for Ether struct AbsoluteTokenAmount { address token; uint256 absoluteAmount; } enum ActionType { None, Deposit, Withdraw } enum AmountType { None, Relative, Absolute } enum PermitType { None, EIP2612, DAI, Yearn }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 1000000 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"enum AmountType","name":"amountType","type":"uint8"}],"internalType":"struct TokenAmount[]","name":"tokenAmounts","type":"tuple[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"deposit","outputs":[{"internalType":"address[]","name":"tokensToBeWithdrawn","type":"address[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"getBalance","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"enum AmountType","name":"amountType","type":"uint8"}],"internalType":"struct TokenAmount[]","name":"","type":"tuple[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"withdraw","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"payable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506114d9806100206000396000f3fe6080604052600436106100345760003560e01c806328ffb83d14610039578063387b817414610062578063d4fac45d14610075575b600080fd5b61004c610047366004610ed0565b6100a2565b6040516100599190611111565b60405180910390f35b61004c610070366004610ed0565b610381565b34801561008157600080fd5b50610095610090366004610e98565b6103b5565b604051610059919061116b565b6060600184146100e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de906112a1565b60405180910390fd5b6000858560008181106100f657fe5b61010c9260206060909202019081019150610e7c565b9050600061012b8787600081811061012057fe5b9050606002016103e9565b604080516001808252818301909252919250606091906020808301908036833701905050935061015d85870187610f8c565b8560008151811061016a57fe5b602002602001018173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250819250505061021c73e592427a0aece92de3edee1f18e0157c05861564836040518060400160405280600681526020017f55763345494100000000000000000000000000000000000000000000000000008152508673ffffffffffffffffffffffffffffffffffffffff166105f5909392919063ffffffff16565b6040805160a0810182528281523060208201524281830152606081018490526000608082015290517fc04b8d5900000000000000000000000000000000000000000000000000000000815273e592427a0aece92de3edee1f18e0157c058615649163c04b8d5991610290919060040161130f565b602060405180830381600087803b1580156102aa57600080fd5b505af19250505080156102f8575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526102f59181019061106f565b60015b6103755761030461137b565b8061030f5750610343565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de9190611174565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de90611233565b50505050949350505050565b60606040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de906111fc565b60006040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de9061126a565b6000806103f96020840184610e7c565b9050602083013560006104126060860160408701611050565b9050600181600281111561042257fe5b14806104395750600281600281111561043757fe5b145b61046f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de9061118e565b600181600281111561047d57fe5b14156105e657670de0b6b3a76400008211156104c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de906111c5565b600073ffffffffffffffffffffffffffffffffffffffff841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156105005750476105a5565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516906370a08231906105529030906004016110f0565b60206040518083038186803b15801561056a57600080fd5b505afa15801561057e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a2919061106f565b90505b670de0b6b3a76400008314156105c05793506105f092505050565b670de0b6b3a76400006105d382856106e8565b816105da57fe5b049450505050506105f0565b5091506105f09050565b919050565b604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8581166024830152915160009287169163dd62ed3e916044808301926020929190829003018186803b15801561066c57600080fd5b505afa158015610680573d6000803e3d6000fd5b505050506040513d602081101561069657600080fd5b50519050828110156106e15780156106b5576106b58585600085610745565b6106e185857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85610745565b5050505050565b6000826106f75750600061073f565b8282028284828161070457fe5b041461073c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de906112d8565b90505b92915050565b8115806107f15750604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff858116602483015291519186169163dd62ed3e91604480820192602092909190829003018186803b1580156107c357600080fd5b505afa1580156107d7573d6000803e3d6000fd5b505050506040513d60208110156107ed57600080fd5b5051155b8160405160200180806114836021913960210182805190602001908083835b6020831061084d57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610810565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405290610924576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108e95781810151838201526020016108d1565b50505050905090810190601f1680156109165780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506040805173ffffffffffffffffffffffffffffffffffffffff8516602482015260448082018590528251808303909101815260649091018252602081810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790528251808401909352600783527f617070726f766500000000000000000000000000000000000000000000000000908301526109e591869190846109eb565b50505050565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040518082805190602001908083835b60208310610a5357805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610a16565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610ab5576040519150601f19603f3d011682016040523d82523d6000602084013e610aba565b606091505b509150915081848460405160200180807f5361666545524332303a20000000000000000000000000000000000000000000815250600b0183805190602001908083835b60208310610b3a57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610afd565b51815160209384036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01801990921691161790527f206661696c656420696e20000000000000000000000000000000000000000000919093019081528451600b90910192850191508083835b60208310610be757805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610baa565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405290610c82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283519092839260449091019190850190808383600083156108e95781810151838201526020016108d1565b50805115610e6957808060200190516020811015610c9f57600080fd5b50516040517f5361666545524332303a20000000000000000000000000000000000000000000602082810191825287518893889392602b90910191908501908083835b60208310610d1f57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610ce2565b51815160209384036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01801990921691161790527f2072657475726e65642066616c736520696e2000000000000000000000000000919093019081528451601390910192850191508083835b60208310610dcc57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610d8f565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405290610e67576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283519092839260449091019190850190808383600083156108e95781810151838201526020016108d1565b505b505050505050565b80356105f08161145d565b600060208284031215610e8d578081fd5b813561073c8161145d565b60008060408385031215610eaa578081fd5b8235610eb58161145d565b91506020830135610ec58161145d565b809150509250929050565b60008060008060408587031215610ee5578182fd5b843567ffffffffffffffff80821115610efc578384fd5b818701915087601f830112610f0f578384fd5b813581811115610f1d578485fd5b886020606083028501011115610f31578485fd5b602092830196509450908601359080821115610f4b578384fd5b818701915087601f830112610f5e578384fd5b813581811115610f6c578485fd5b886020828501011115610f7d578485fd5b95989497505060200194505050565b60008060408385031215610f9e578182fd5b823567ffffffffffffffff80821115610fb5578384fd5b818501915085601f830112610fc8578384fd5b8135602082821115610fd657fe5b604051817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116820101818110858211171561101157fe5b6040528281528483018201891015611027578687fd5b8282860183830137808301820196909652611043878201610e71565b9450505050509250929050565b600060208284031215611061578081fd5b81356003811061073c578182fd5b600060208284031215611080578081fd5b5051919050565b60008151808452815b818110156110ac57602081850181015186830182015201611090565b818111156110bd5782602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b6020808252825182820181905260009190848201906040850190845b8181101561115f57835173ffffffffffffffffffffffffffffffffffffffff168352928401929184019160010161112d565b50909695505050505050565b90815260200190565b6000602082526111876020830184611087565b9392505050565b60208082526013908201527f49413a2062616420616d6f756e74207479706500000000000000000000000000604082015260600190565b6020808252600e908201527f49413a2062616420616d6f756e74000000000000000000000000000000000000604082015260600190565b60208082526013908201527f5576334549413a206e6f20776974686472617700000000000000000000000000604082015260600190565b60208082526011908201527f5576334549413a2073776170206661696c000000000000000000000000000000604082015260600190565b6020808252600f908201527f5545413a206e6f2062616c616e63650000000000000000000000000000000000604082015260600190565b6020808252601f908201527f5576334549413a2073686f756c64206265203120746f6b656e416d6f756e7400604082015260600190565b60208082526010908201527f49413a206d756c206f766572666c6f7700000000000000000000000000000000604082015260600190565b600060208252825160a0602084015261132b60c0840182611087565b905073ffffffffffffffffffffffffffffffffffffffff60208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b60e01c90565b600060443d101561138b5761145a565b600481823e6308c379a061139f8251611375565b146113a95761145a565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3d016004823e80513d67ffffffffffffffff81602484011181841117156113f7575050505061145a565b82840192508251915080821115611411575050505061145a565b503d830160208284010111156114295750505061145a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01681016020016040529150505b90565b73ffffffffffffffffffffffffffffffffffffffff8116811461147f57600080fd5b5056fe5361666545524332303a2062616420617070726f76652063616c6c2066726f6d20a2646970667358221220779f489e011bab817bc41919ff64d0c9ba9e1dd4de3760d4e34e0509cb569b0e64736f6c63430007060033
Deployed Bytecode
0x6080604052600436106100345760003560e01c806328ffb83d14610039578063387b817414610062578063d4fac45d14610075575b600080fd5b61004c610047366004610ed0565b6100a2565b6040516100599190611111565b60405180910390f35b61004c610070366004610ed0565b610381565b34801561008157600080fd5b50610095610090366004610e98565b6103b5565b604051610059919061116b565b6060600184146100e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de906112a1565b60405180910390fd5b6000858560008181106100f657fe5b61010c9260206060909202019081019150610e7c565b9050600061012b8787600081811061012057fe5b9050606002016103e9565b604080516001808252818301909252919250606091906020808301908036833701905050935061015d85870187610f8c565b8560008151811061016a57fe5b602002602001018173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250819250505061021c73e592427a0aece92de3edee1f18e0157c05861564836040518060400160405280600681526020017f55763345494100000000000000000000000000000000000000000000000000008152508673ffffffffffffffffffffffffffffffffffffffff166105f5909392919063ffffffff16565b6040805160a0810182528281523060208201524281830152606081018490526000608082015290517fc04b8d5900000000000000000000000000000000000000000000000000000000815273e592427a0aece92de3edee1f18e0157c058615649163c04b8d5991610290919060040161130f565b602060405180830381600087803b1580156102aa57600080fd5b505af19250505080156102f8575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526102f59181019061106f565b60015b6103755761030461137b565b8061030f5750610343565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de9190611174565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de90611233565b50505050949350505050565b60606040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de906111fc565b60006040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de9061126a565b6000806103f96020840184610e7c565b9050602083013560006104126060860160408701611050565b9050600181600281111561042257fe5b14806104395750600281600281111561043757fe5b145b61046f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de9061118e565b600181600281111561047d57fe5b14156105e657670de0b6b3a76400008211156104c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de906111c5565b600073ffffffffffffffffffffffffffffffffffffffff841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156105005750476105a5565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516906370a08231906105529030906004016110f0565b60206040518083038186803b15801561056a57600080fd5b505afa15801561057e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a2919061106f565b90505b670de0b6b3a76400008314156105c05793506105f092505050565b670de0b6b3a76400006105d382856106e8565b816105da57fe5b049450505050506105f0565b5091506105f09050565b919050565b604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8581166024830152915160009287169163dd62ed3e916044808301926020929190829003018186803b15801561066c57600080fd5b505afa158015610680573d6000803e3d6000fd5b505050506040513d602081101561069657600080fd5b50519050828110156106e15780156106b5576106b58585600085610745565b6106e185857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85610745565b5050505050565b6000826106f75750600061073f565b8282028284828161070457fe5b041461073c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100de906112d8565b90505b92915050565b8115806107f15750604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff858116602483015291519186169163dd62ed3e91604480820192602092909190829003018186803b1580156107c357600080fd5b505afa1580156107d7573d6000803e3d6000fd5b505050506040513d60208110156107ed57600080fd5b5051155b8160405160200180806114836021913960210182805190602001908083835b6020831061084d57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610810565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405290610924576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108e95781810151838201526020016108d1565b50505050905090810190601f1680156109165780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506040805173ffffffffffffffffffffffffffffffffffffffff8516602482015260448082018590528251808303909101815260649091018252602081810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790528251808401909352600783527f617070726f766500000000000000000000000000000000000000000000000000908301526109e591869190846109eb565b50505050565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040518082805190602001908083835b60208310610a5357805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610a16565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610ab5576040519150601f19603f3d011682016040523d82523d6000602084013e610aba565b606091505b509150915081848460405160200180807f5361666545524332303a20000000000000000000000000000000000000000000815250600b0183805190602001908083835b60208310610b3a57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610afd565b51815160209384036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01801990921691161790527f206661696c656420696e20000000000000000000000000000000000000000000919093019081528451600b90910192850191508083835b60208310610be757805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610baa565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405290610c82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283519092839260449091019190850190808383600083156108e95781810151838201526020016108d1565b50805115610e6957808060200190516020811015610c9f57600080fd5b50516040517f5361666545524332303a20000000000000000000000000000000000000000000602082810191825287518893889392602b90910191908501908083835b60208310610d1f57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610ce2565b51815160209384036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01801990921691161790527f2072657475726e65642066616c736520696e2000000000000000000000000000919093019081528451601390910192850191508083835b60208310610dcc57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610d8f565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405290610e67576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283519092839260449091019190850190808383600083156108e95781810151838201526020016108d1565b505b505050505050565b80356105f08161145d565b600060208284031215610e8d578081fd5b813561073c8161145d565b60008060408385031215610eaa578081fd5b8235610eb58161145d565b91506020830135610ec58161145d565b809150509250929050565b60008060008060408587031215610ee5578182fd5b843567ffffffffffffffff80821115610efc578384fd5b818701915087601f830112610f0f578384fd5b813581811115610f1d578485fd5b886020606083028501011115610f31578485fd5b602092830196509450908601359080821115610f4b578384fd5b818701915087601f830112610f5e578384fd5b813581811115610f6c578485fd5b886020828501011115610f7d578485fd5b95989497505060200194505050565b60008060408385031215610f9e578182fd5b823567ffffffffffffffff80821115610fb5578384fd5b818501915085601f830112610fc8578384fd5b8135602082821115610fd657fe5b604051817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116820101818110858211171561101157fe5b6040528281528483018201891015611027578687fd5b8282860183830137808301820196909652611043878201610e71565b9450505050509250929050565b600060208284031215611061578081fd5b81356003811061073c578182fd5b600060208284031215611080578081fd5b5051919050565b60008151808452815b818110156110ac57602081850181015186830182015201611090565b818111156110bd5782602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b6020808252825182820181905260009190848201906040850190845b8181101561115f57835173ffffffffffffffffffffffffffffffffffffffff168352928401929184019160010161112d565b50909695505050505050565b90815260200190565b6000602082526111876020830184611087565b9392505050565b60208082526013908201527f49413a2062616420616d6f756e74207479706500000000000000000000000000604082015260600190565b6020808252600e908201527f49413a2062616420616d6f756e74000000000000000000000000000000000000604082015260600190565b60208082526013908201527f5576334549413a206e6f20776974686472617700000000000000000000000000604082015260600190565b60208082526011908201527f5576334549413a2073776170206661696c000000000000000000000000000000604082015260600190565b6020808252600f908201527f5545413a206e6f2062616c616e63650000000000000000000000000000000000604082015260600190565b6020808252601f908201527f5576334549413a2073686f756c64206265203120746f6b656e416d6f756e7400604082015260600190565b60208082526010908201527f49413a206d756c206f766572666c6f7700000000000000000000000000000000604082015260600190565b600060208252825160a0602084015261132b60c0840182611087565b905073ffffffffffffffffffffffffffffffffffffffff60208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b60e01c90565b600060443d101561138b5761145a565b600481823e6308c379a061139f8251611375565b146113a95761145a565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3d016004823e80513d67ffffffffffffffff81602484011181841117156113f7575050505061145a565b82840192508251915080821115611411575050505061145a565b503d830160208284010111156114295750505061145a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01681016020016040529150505b90565b73ffffffffffffffffffffffffffffffffffffffff8116811461147f57600080fd5b5056fe5361666545524332303a2062616420617070726f76652063616c6c2066726f6d20a2646970667358221220779f489e011bab817bc41919ff64d0c9ba9e1dd4de3760d4e34e0509cb569b0e64736f6c63430007060033
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.
[ 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.