Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 19 from a total of 19 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Exact Input Sing... | 15483719 | 898 days ago | IN | 0.01 ETH | 0.00151678 | ||||
Exact Input Sing... | 15476511 | 899 days ago | IN | 0.0677998 ETH | 0.0027922 | ||||
Exact Input Sing... | 15475843 | 900 days ago | IN | 0.00000952 ETH | 0.00572325 | ||||
Exact Input Sing... | 15455476 | 903 days ago | IN | 10 ETH | 0.00351576 | ||||
Exact Input Sing... | 15449333 | 904 days ago | IN | 1.50089518 ETH | 0.00960166 | ||||
Exact Input Sing... | 15445406 | 904 days ago | IN | 3 ETH | 0.0025386 | ||||
Exact Input Sing... | 15440731 | 905 days ago | IN | 0.00000015 ETH | 0.00963293 | ||||
Exact Input Sing... | 15438024 | 906 days ago | IN | 0.02031366 ETH | 0.00829512 | ||||
Exact Input Sing... | 15407232 | 911 days ago | IN | 0 ETH | 0.00128911 | ||||
Exact Input Sing... | 15357614 | 918 days ago | IN | 0.00147061 ETH | 0.00301716 | ||||
Exact Input Sing... | 15357362 | 918 days ago | IN | 0.00046514 ETH | 0.00279464 | ||||
Exact Input Sing... | 15357347 | 918 days ago | IN | 0 ETH | 0.00124833 | ||||
Exact Input Sing... | 15351367 | 919 days ago | IN | 0 ETH | 0.0014134 | ||||
Exact Input Sing... | 15351356 | 919 days ago | IN | 0 ETH | 0.0017845 | ||||
Exact Input Sing... | 15350952 | 920 days ago | IN | 0.00047507 ETH | 0.00700761 | ||||
Exact Input Sing... | 15350858 | 920 days ago | IN | 0.001 ETH | 0.00258872 | ||||
Exact Input Sing... | 15345025 | 920 days ago | IN | 0.001 ETH | 0.00156743 | ||||
Exact Input Sing... | 15345021 | 920 days ago | IN | 0 ETH | 0.00194588 | ||||
Exact Input Sing... | 15345018 | 920 days ago | IN | 0 ETH | 0.002072 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15483719 | 898 days ago | 0.01 ETH | ||||
15476511 | 899 days ago | 0.00030126 ETH | ||||
15476511 | 899 days ago | 0.06749853 ETH | ||||
15475843 | 900 days ago | 0.00000952 ETH | ||||
15455476 | 903 days ago | 10 ETH | ||||
15449333 | 904 days ago | 0.00089518 ETH | ||||
15449333 | 904 days ago | 1.5 ETH | ||||
15445406 | 904 days ago | 3 ETH | ||||
15440731 | 905 days ago | 0.00000015 ETH | ||||
15438024 | 906 days ago | 0.00031366 ETH | ||||
15438024 | 906 days ago | 0.02 ETH | ||||
15407232 | 911 days ago | 0.00015648 ETH | ||||
15407232 | 911 days ago | 0.31280978 ETH | ||||
15407232 | 911 days ago | 0.31296626 ETH | ||||
15357614 | 918 days ago | 0.00047061 ETH | ||||
15357614 | 918 days ago | 0.001 ETH | ||||
15357362 | 918 days ago | 0.00046514 ETH | ||||
15351367 | 919 days ago | 0.00000026 ETH | ||||
15351367 | 919 days ago | 0.00053076 ETH | ||||
15351367 | 919 days ago | 0.00053103 ETH | ||||
15350952 | 920 days ago | 0.00047507 ETH | ||||
15350858 | 920 days ago | 0.001 ETH | ||||
15345104 | 920 days ago | 0.0000001 ETH | ||||
15345104 | 920 days ago | 0.00020972 ETH | ||||
15345104 | 920 days ago | 0.00020982 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
O3EthereumUniswapV3Aggregator
Compiler Version
v0.8.8+commit.dddeac2f
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "../../access/Ownable.sol"; import "../../swap/interfaces/IPool.sol"; import "../../assets/interfaces/IWETH.sol"; import "../interfaces/IUniswapV3SwapRouter.sol"; import "../../crossChain/interfaces/IWrapper.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract O3EthereumUniswapV3Aggregator is Ownable { using SafeERC20 for IERC20; event LOG_AGG_SWAP ( uint256 amountOut, uint256 fee ); address public WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; address public router = 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45; address public O3Wrapper = 0xeCF2B548e5c21028B0b60363207700fA421B6EcB; address public feeCollector; constructor (address _feeCollector) { require(_feeCollector != address(0), 'feeCollector address cannot be zero'); feeCollector = _feeCollector; } modifier ensure(uint deadline) { require(deadline >= block.timestamp, 'O3Aggregator: EXPIRED'); _; } receive() external payable { } function setWETH(address _weth) external onlyOwner { require(_weth != address(0), 'WETH address cannot be zero'); WETH = _weth; } function setRouter(address _router) external onlyOwner { require(_router != address(0), 'router address cannot be zero'); router = _router; } function setO3Wrapper(address _wrapper) external onlyOwner { require(_wrapper != address(0), 'wrapper address cannot be zero'); O3Wrapper = _wrapper; } function setFeeCollector(address _feeCollector) external onlyOwner { require(_feeCollector != address(0), 'feeCollector address cannot be zero'); feeCollector = _feeCollector; } function rescueFund(address tokenAddress) external onlyOwner { IERC20 token = IERC20(tokenAddress); if (tokenAddress == WETH && address(this).balance > 0) { (bool success,) = _msgSender().call{value: address(this).balance}(new bytes(0)); require(success, 'ETH_TRANSFER_FAILED'); } token.safeTransfer(_msgSender(), token.balanceOf(address(this))); } function exactInputSinglePToken( uint256 amountIn, address callproxy, address poolAddress, uint poolAmountOutMin, address[] calldata path, uint24 v3PoolFee, address to, uint deadline, uint aggSwapAmountOutMin, bool unwrapETH ) external ensure(deadline) { { address caller = _msgSender(); if (callproxy != address(0) && amountIn == 0) { amountIn = IERC20(path[0]).allowance(callproxy, address(this)); caller = callproxy; } require(amountIn != 0, 'O3Aggregator: ZERO_AMOUNT_IN'); IERC20(path[0]).safeTransferFrom(caller, address(this), amountIn); } IERC20(path[0]).safeApprove(poolAddress, amountIn); amountIn = IPool(poolAddress).swap(1, 0, amountIn, poolAmountOutMin, deadline); require(path.length >= 3, 'O3Aggregator: INVALID_PATH'); IUniswapV3SwapRouter.ExactInputSingleParams memory params = IUniswapV3SwapRouter.ExactInputSingleParams( path[1], path[path.length-1], v3PoolFee, address(this), amountIn, aggSwapAmountOutMin, 0 ); (uint amountOut, uint feeAmount, ) = _swap(params); if (unwrapETH) { require(params.tokenOut == WETH, 'O3Aggregator: INVALID_TOKEN_OUT'); IWETH(WETH).withdraw(amountOut); _sendETH(to, amountOut - feeAmount); _sendETH(feeCollector, feeAmount); } else { IERC20(params.tokenOut).safeTransfer(to, amountOut - feeAmount); IERC20(params.tokenOut).safeTransfer(feeCollector, feeAmount); } } function exactInputSingle( IUniswapV3SwapRouter.ExactInputSingleParams memory params, bool unwrapETH, uint deadline ) external payable ensure(deadline) { _pull(params.tokenIn, params.amountIn, 0); (uint amountOut, uint feeAmount, address receiver) = _swap(params); if (unwrapETH) { require(params.tokenOut == WETH, 'O3Aggregator: INVALID_TOKEN_OUT'); IWETH(WETH).withdraw(amountOut); _sendETH(receiver, amountOut - feeAmount); _sendETH(feeCollector, feeAmount); } else { IERC20(params.tokenOut).safeTransfer(receiver, amountOut - feeAmount); IERC20(params.tokenOut).safeTransfer(feeCollector, feeAmount); } } function _pull(address token, uint amountIn, uint netFee) internal { if (msg.value - netFee > 0) { require(token == WETH, 'O3Aggregator: INVALID_TOKEN_IN'); IWETH(WETH).deposit{value: msg.value - netFee}(); } else { require(amountIn > 0, 'O3Aggregator: INSUFFICIENT_INPUT_AMOUNT'); IERC20(token).safeTransferFrom(msg.sender, address(this), amountIn); } } function _swap(IUniswapV3SwapRouter.ExactInputSingleParams memory params) internal returns (uint, uint, address) { require(params.recipient != address(0), 'O3Aggregator: INVALID_RECIPIENT'); address receiver = params.recipient; params.recipient = address(this); IERC20(params.tokenIn).safeApprove(router, params.amountIn); uint amountOut = IUniswapV3SwapRouter(router).exactInputSingle(params); uint feeAmount = amountOut * params.fee / 1000000; emit LOG_AGG_SWAP(amountOut, feeAmount); return (amountOut, feeAmount, receiver); } function exactInputSingleCrossChain( IUniswapV3SwapRouter.ExactInputSingleParams memory params, address poolAddress, address tokenTo, uint256 minDy, uint256 deadline, // args for swap uint fee, uint64 toChainId, bytes memory callData // args for wrapper ) external payable ensure(deadline) { _pull(params.tokenIn, params.amountIn, fee); uint swapperAmountIn; address receiver; { uint amountOut; uint feeAmount; (amountOut, feeAmount, receiver) = _swap(params); IERC20(params.tokenOut).safeTransfer(feeCollector, feeAmount); swapperAmountIn = amountOut - feeAmount; } IERC20(params.tokenOut).safeApprove(O3Wrapper, swapperAmountIn); IWrapper(O3Wrapper).swapAndBridgeOut{value: fee}( poolAddress, params.tokenOut, tokenTo, swapperAmountIn, minDy, deadline, toChainId, abi.encodePacked(receiver), callData ); } function _sendETH(address to, uint256 amount) internal { (bool success,) = to.call{value:amount}(new bytes(0)); require(success, 'O3Aggregator: ETH_TRANSFER_FAILED'); } }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IPool { function coins(uint256 index) external view returns(IERC20); function getA() external view returns (uint256); function getTokenIndex(address token) external view returns (uint8); function getVirtualPrice() external view returns (uint256); function calculateSwap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) external view returns (uint256 dy); function calculateRemoveLiquidity(uint256 amount) external view returns (uint256[] memory); function calculateTokenAmount(uint256[] calldata amounts, bool deposit) external view returns (uint256); function calculateWithdrawOneToken(uint256 tokenAmount, uint8 tokenIndex) external view returns (uint256 amount); function swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) external returns (uint256); function addLiquidity(uint256[] memory amounts, uint256 minToMint, uint256 deadline) external returns (uint256); function removeLiquidity(uint256 amount, uint256[] calldata minAmounts, uint256 deadline) external returns (uint256[] memory); function removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline) external returns (uint256); function removeLiquidityImbalance(uint256[] calldata amounts, uint256 maxBurnAmount, uint256 deadline) external returns (uint256); function applySwapFee(uint256 newSwapFee) external; function applyAdminFee(uint256 newAdminFee) external; function getAdminBalance(uint256 index) external view returns (uint256); function withdrawAdminFee(address receiver) external; function rampA(uint256 _futureA, uint256 _futureTime) external; function stopRampA() external; }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; interface IWrapper { function bridgeOut( address pTokenAddress, uint256 amount, uint64 toChainId, bytes memory toAddress, bytes memory callData ) external payable returns(bool); function swapAndBridgeOut( address poolAddress, address tokenFrom, address tokenTo, uint256 dx, uint256 minDy, uint256 deadline, // args for swap uint64 toChainId, bytes memory toAddress, bytes memory callData // args for bridge ) external payable returns(bool); function swapAndBridgeOutNativeToken( address poolAddress, address tokenTo, uint256 dx, uint256 minDy, uint256 deadline, // args for swap uint64 toChainId, bytes memory toAddress, bytes memory callData // args for bridge ) external payable returns(bool); function depositAndBridgeOut( address originalToken, address pTokenAddress, uint256 amount, uint64 toChainId, bytes memory toAddress, bytes memory callData ) external payable returns(bool); function depositAndBridgeOutNativeToken( address pTokenAddress, uint256 amount, uint64 toChainId, bytes memory toAddress, bytes memory callData ) external payable returns(bool); function bridgeOutAndWithdraw( address pTokenAddress, uint64 toChainId, bytes memory toAddress, uint256 amount ) external payable returns(bool); }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; interface IWETH { function deposit() external payable; function withdraw(uint wad) external; function transfer(address dst, uint wad) external returns (bool); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.7.5; pragma abicoder v2; /// @title Callback for IUniswapV3PoolActions#swap /// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface interface IUniswapV3SwapCallback { /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap. /// @dev In the implementation you must pay the pool tokens owed for the swap. /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped. /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by /// the end of the swap. If positive, the callback must send that amount of token0 to the pool. /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by /// the end of the swap. If positive, the callback must send that amount of token1 to the pool. /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call function uniswapV3SwapCallback( int256 amount0Delta, int256 amount1Delta, bytes calldata data ) external; } /// @title Router token swapping functionality /// @notice Functions for swapping tokens via Uniswap V3 interface IUniswapV3SwapRouter is IUniswapV3SwapCallback { struct ExactInputSingleParams { address tokenIn; address tokenOut; uint24 fee; address recipient; uint256 amountIn; uint256 amountOutMinimum; uint160 sqrtPriceLimitX96; } /// @notice Swaps `amountIn` of one token for as much as possible of another token /// @dev Setting `amountIn` to 0 will cause the contract to look up its own balance, /// and swap the entire amount, enabling contracts to send tokens before calling this function. /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata /// @return amountOut The amount of the received token function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut); struct ExactInputParams { bytes path; address recipient; uint256 amountIn; uint256 amountOutMinimum; } /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path /// @dev Setting `amountIn` to 0 will cause the contract to look up its own balance, /// and swap the entire amount, enabling contracts to send tokens before calling this function. /// @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); struct ExactOutputSingleParams { address tokenIn; address tokenOut; uint24 fee; address recipient; uint256 amountOut; uint256 amountInMaximum; uint160 sqrtPriceLimitX96; } /// @notice Swaps as little as possible of one token for `amountOut` of another token /// that may remain in the router after the swap. /// @param params The parameters necessary for the swap, encoded as `ExactOutputSingleParams` in calldata /// @return amountIn The amount of the input token function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn); struct ExactOutputParams { bytes path; address recipient; uint256 amountOut; uint256 amountInMaximum; } /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed) /// that may remain in the router after the swap. /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactOutputParams` in calldata /// @return amountIn The amount of the input token function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn); }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual 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 Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^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 meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.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 IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 999999 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"LOG_AGG_SWAP","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"O3Wrapper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"internalType":"struct IUniswapV3SwapRouter.ExactInputSingleParams","name":"params","type":"tuple"},{"internalType":"bool","name":"unwrapETH","type":"bool"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"exactInputSingle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"internalType":"struct IUniswapV3SwapRouter.ExactInputSingleParams","name":"params","type":"tuple"},{"internalType":"address","name":"poolAddress","type":"address"},{"internalType":"address","name":"tokenTo","type":"address"},{"internalType":"uint256","name":"minDy","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint64","name":"toChainId","type":"uint64"},{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"exactInputSingleCrossChain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"callproxy","type":"address"},{"internalType":"address","name":"poolAddress","type":"address"},{"internalType":"uint256","name":"poolAmountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"uint24","name":"v3PoolFee","type":"uint24"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"aggSwapAmountOutMin","type":"uint256"},{"internalType":"bool","name":"unwrapETH","type":"bool"}],"name":"exactInputSinglePToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"rescueFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wrapper","type":"address"}],"name":"setO3Wrapper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_weth","type":"address"}],"name":"setWETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600180546001600160a01b031990811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2179091556002805482167368b3465833fb72a70ecdf485e0e4c7bd8665fc451790556003805490911673ecf2b548e5c21028b0b60363207700fa421b6ecb1790553480156200007757600080fd5b50604051620029e7380380620029e78339810160408190526200009a9162000182565b620000a53362000132565b6001600160a01b0381166200010c5760405162461bcd60e51b815260206004820152602360248201527f666565436f6c6c6563746f7220616464726573732063616e6e6f74206265207a60448201526265726f60e81b606482015260840160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055620001b4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200019557600080fd5b81516001600160a01b0381168114620001ad57600080fd5b9392505050565b61282380620001c46000396000f3fe6080604052600436106100e15760003560e01c8063ad5c46481161007f578063c415b95c11610059578063c415b95c14610252578063e6a8400f1461027f578063f2fde38b146102ac578063f887ea40146102cc57600080fd5b8063ad5c4648146101e5578063b8c6fd8414610212578063c0d786551461023257600080fd5b80636ab0adea116100bb5780636ab0adea146101355780638da5cb5b14610155578063a42dce80146101a5578063ac043a68146101c557600080fd5b80632afb0f2e146100ed578063380d3a1b146101025780635b769f3c1461011557600080fd5b366100e857005b600080fd5b6101006100fb3660046122eb565b6102f9565b005b610100610110366004612447565b61053d565b34801561012157600080fd5b50610100610130366004612489565b610785565b34801561014157600080fd5b50610100610150366004612489565b6108ca565b34801561016157600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156101b157600080fd5b506101006101c0366004612489565b610a0f565b3480156101d157600080fd5b506101006101e03660046124a6565b610b7a565b3480156101f157600080fd5b5060015461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561021e57600080fd5b5061010061022d366004612489565b6111bf565b34801561023e57600080fd5b5061010061024d366004612489565b611404565b34801561025e57600080fd5b5060045461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561028b57600080fd5b5060035461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102b857600080fd5b506101006102c7366004612489565b611549565b3480156102d857600080fd5b5060025461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b8342811015610369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f3341676772656761746f723a2045585049524544000000000000000000000060448201526064015b60405180910390fd5b61037c89600001518a6080015186611679565b60008060008061038b8d611837565b8095508193508294505050506103e8600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828f6020015173ffffffffffffffffffffffffffffffffffffffff16611a719092919063ffffffff16565b6103f281836125cb565b60035460208f0151919550610423935073ffffffffffffffffffffffffffffffffffffffff91821692501684611b45565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166319ccecbe878c8e602001518d878e8e8d8a6040516020016104a9919060609190911b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016815260140190565b6040516020818303038152906040528e6040518b63ffffffff1660e01b81526004016104dd99989796959493929190612658565b6020604051808303818588803b1580156104f657600080fd5b505af115801561050a573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061052f91906126e1565b505050505050505050505050565b80428110156105a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f3341676772656761746f723a204558504952454400000000000000000000006044820152606401610360565b6105bc846000015185608001516000611679565b60008060006105ca87611837565b925092509250851561072057600154602088015173ffffffffffffffffffffffffffffffffffffffff90811691161461065f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f3341676772656761746f723a20494e56414c49445f544f4b454e5f4f5554006044820152606401610360565b6001546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b1580156106cb57600080fd5b505af11580156106df573d6000803e3d6000fd5b505050506106f88183856106f391906125cb565b611cd6565b60045461071b9073ffffffffffffffffffffffffffffffffffffffff1683611cd6565b61077c565b6107508161072e84866125cb565b60208a015173ffffffffffffffffffffffffffffffffffffffff169190611a71565b600454602088015161077c9173ffffffffffffffffffffffffffffffffffffffff918216911684611a71565b50505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610806576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff8116610883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f5745544820616464726573732063616e6e6f74206265207a65726f00000000006044820152606401610360565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461094b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff81166109c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7772617070657220616464726573732063616e6e6f74206265207a65726f00006044820152606401610360565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff8116610b33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f666565436f6c6c6563746f7220616464726573732063616e6e6f74206265207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610360565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b8242811015610be5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f3341676772656761746f723a204558504952454400000000000000000000006044820152606401610360565b3373ffffffffffffffffffffffffffffffffffffffff8c1615801590610c0957508c155b15610ce35788886000818110610c2157610c216126fe565b9050602002016020810190610c369190612489565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8e81166004830152306024830152919091169063dd62ed3e9060440160206040518083038186803b158015610ca557600080fd5b505afa158015610cb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdd919061272d565b9c508b90505b8c610d4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f3341676772656761746f723a205a45524f5f414d4f554e545f494e000000006044820152606401610360565b610d9681308f8c8c6000818110610d6357610d636126fe565b9050602002016020810190610d789190612489565b73ffffffffffffffffffffffffffffffffffffffff16929190611de0565b50610de18a8d8a8a6000818110610daf57610daf6126fe565b9050602002016020810190610dc49190612489565b73ffffffffffffffffffffffffffffffffffffffff169190611b45565b6040517f916955860000000000000000000000000000000000000000000000000000000081526001600482015260006024820152604481018d9052606481018a90526084810185905273ffffffffffffffffffffffffffffffffffffffff8b169063916955869060a401602060405180830381600087803b158015610e6557600080fd5b505af1158015610e79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9d919061272d565b9b506003871015610f0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4f3341676772656761746f723a20494e56414c49445f504154480000000000006044820152606401610360565b60006040518060e001604052808a8a6001818110610f2a57610f2a6126fe565b9050602002016020810190610f3f9190612489565b73ffffffffffffffffffffffffffffffffffffffff1681526020018a8a610f676001826125cb565b818110610f7657610f766126fe565b9050602002016020810190610f8b9190612489565b73ffffffffffffffffffffffffffffffffffffffff1681526020018862ffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff1681526020018e8152602001858152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060008061100283611837565b5091509150841561115257600154602084015173ffffffffffffffffffffffffffffffffffffffff908116911614611096576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f3341676772656761746f723a20494e56414c49445f544f4b454e5f4f5554006044820152606401610360565b6001546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b15801561110257600080fd5b505af1158015611116573d6000803e3d6000fd5b5050505061112a8882846106f391906125cb565b60045461114d9073ffffffffffffffffffffffffffffffffffffffff1682611cd6565b6111ae565b6111828861116083856125cb565b602086015173ffffffffffffffffffffffffffffffffffffffff169190611a71565b60045460208401516111ae9173ffffffffffffffffffffffffffffffffffffffff918216911683611a71565b505050505050505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611240576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b600154819073ffffffffffffffffffffffffffffffffffffffff808316911614801561126c5750600047115b156113415760408051600080825260208201909252339047906040516112929190612746565b60006040518083038185875af1925050503d80600081146112cf576040519150601f19603f3d011682016040523d82523d6000602084013e6112d4565b606091505b505090508061133f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4554485f5452414e534645525f4641494c4544000000000000000000000000006044820152606401610360565b505b611400336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a082319060240160206040518083038186803b1580156113aa57600080fd5b505afa1580156113be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e2919061272d565b73ffffffffffffffffffffffffffffffffffffffff84169190611a71565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff8116611502576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f726f7574657220616464726573732063616e6e6f74206265207a65726f0000006044820152606401610360565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146115ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff811661166d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610360565b61167681611e44565b50565b600061168582346125cb565b11156117805760015473ffffffffffffffffffffffffffffffffffffffff84811691161461170f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f3341676772656761746f723a20494e56414c49445f544f4b454e5f494e00006044820152606401610360565b60015473ffffffffffffffffffffffffffffffffffffffff1663d0e30db061173783346125cb565b6040518263ffffffff1660e01b81526004016000604051808303818588803b15801561176257600080fd5b505af1158015611776573d6000803e3d6000fd5b5050505050505050565b60008211611810576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f3341676772656761746f723a20494e53554646494349454e545f494e50555460448201527f5f414d4f554e54000000000000000000000000000000000000000000000000006064820152608401610360565b61183273ffffffffffffffffffffffffffffffffffffffff8416333085611de0565b505050565b60008060008073ffffffffffffffffffffffffffffffffffffffff16846060015173ffffffffffffffffffffffffffffffffffffffff1614156118d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f3341676772656761746f723a20494e56414c49445f524543495049454e54006044820152606401610360565b606084018051309091526002546080860151865161190f9273ffffffffffffffffffffffffffffffffffffffff91821692911690611b45565b600254604080517f04e45aaf000000000000000000000000000000000000000000000000000000008152875173ffffffffffffffffffffffffffffffffffffffff90811660048301526020890151811660248301529188015162ffffff1660448201526060880151821660648201526080880151608482015260a088015160a482015260c0880151821660c482015260009291909116906304e45aaf9060e401602060405180830381600087803b1580156119c957600080fd5b505af11580156119dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a01919061272d565b90506000620f4240876040015162ffffff1683611a1e9190612762565b611a28919061279f565b60408051848152602081018390529192507f270e06e1460fe9df2e798064a58fdb072e3f3e1e39e7db96268c13849c025aed910160405180910390a19096909550909350915050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526118329084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611eb9565b801580611bf457506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b158015611bba57600080fd5b505afa158015611bce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf2919061272d565b155b611c80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610360565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526118329084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611ac3565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051611d0d9190612746565b60006040518083038185875af1925050503d8060008114611d4a576040519150601f19603f3d011682016040523d82523d6000602084013e611d4f565b606091505b5050905080611832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4f3341676772656761746f723a204554485f5452414e534645525f4641494c4560448201527f44000000000000000000000000000000000000000000000000000000000000006064820152608401610360565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052611e3e9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611ac3565b50505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611f1b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611fc59092919063ffffffff16565b8051909150156118325780806020019051810190611f3991906126e1565b611832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610360565b6060611fd48484600085611fde565b90505b9392505050565b606082471015612070576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610360565b73ffffffffffffffffffffffffffffffffffffffff85163b6120ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610360565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516121179190612746565b60006040518083038185875af1925050503d8060008114612154576040519150601f19603f3d011682016040523d82523d6000602084013e612159565b606091505b5091509150612169828286612174565b979650505050505050565b60608315612183575081611fd7565b8251156121935782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161036091906127da565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461167657600080fd5b8035612223816121f6565b919050565b803562ffffff8116811461222357600080fd5b600060e0828403121561224d57600080fd5b60405160e0810181811067ffffffffffffffff82111715612270576122706121c7565b6040529050808235612281816121f6565b81526020830135612291816121f6565b60208201526122a260408401612228565b604082015260608301356122b5816121f6565b806060830152506080830135608082015260a083013560a082015260c08301356122de816121f6565b60c0919091015292915050565b6000806000806000806000806101c0898b03121561230857600080fd5b6123128a8a61223b565b975060e0890135612322816121f6565b9650610100890135612333816121f6565b955061012089013594506101408901359350610160890135925061018089013567ffffffffffffffff808216821461236a57600080fd5b9092506101a08a0135908082111561238157600080fd5b818b0191508b601f83011261239557600080fd5b8135818111156123a7576123a76121c7565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156123ed576123ed6121c7565b816040528281528e602084870101111561240657600080fd5b8260208601602083013760006020848301015280955050505050509295985092959890939650565b801515811461167657600080fd5b80356122238161242e565b6000806000610120848603121561245d57600080fd5b612467858561223b565b925060e08401356124778161242e565b92959294505050610100919091013590565b60006020828403121561249b57600080fd5b8135611fd7816121f6565b60008060008060008060008060008060006101408c8e0312156124c857600080fd5b8b359a5060208c01356124da816121f6565b995060408c01356124ea816121f6565b985060608c0135975060808c013567ffffffffffffffff8082111561250e57600080fd5b818e0191508e601f83011261252257600080fd5b81358181111561253157600080fd5b8f60208260051b850101111561254657600080fd5b60208301995080985050505061255e60a08d01612228565b945061256c60c08d01612218565b935060e08c013592506101008c0135915061258a6101208d0161243c565b90509295989b509295989b9093969950565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000828210156125dd576125dd61259c565b500390565b60005b838110156125fd5781810151838201526020016125e5565b83811115611e3e5750506000910152565b600081518084526126268160208601602086016125e2565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600061012073ffffffffffffffffffffffffffffffffffffffff808d168452808c166020850152808b166040850152508860608401528760808401528660a084015267ffffffffffffffff861660c08401528060e08401526126bc8184018661260e565b90508281036101008401526126d1818561260e565b9c9b505050505050505050505050565b6000602082840312156126f357600080fd5b8151611fd78161242e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561273f57600080fd5b5051919050565b600082516127588184602087016125e2565b9190910192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561279a5761279a61259c565b500290565b6000826127d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b602081526000611fd7602083018461260e56fea2646970667358221220a3e40214d6deb780f751fc943c069e62b1b1716223b233484f77f4e6a4958a1864736f6c63430008080033000000000000000000000000462edbe0c6d505b96556b63fe3b593078f90e0fc
Deployed Bytecode
0x6080604052600436106100e15760003560e01c8063ad5c46481161007f578063c415b95c11610059578063c415b95c14610252578063e6a8400f1461027f578063f2fde38b146102ac578063f887ea40146102cc57600080fd5b8063ad5c4648146101e5578063b8c6fd8414610212578063c0d786551461023257600080fd5b80636ab0adea116100bb5780636ab0adea146101355780638da5cb5b14610155578063a42dce80146101a5578063ac043a68146101c557600080fd5b80632afb0f2e146100ed578063380d3a1b146101025780635b769f3c1461011557600080fd5b366100e857005b600080fd5b6101006100fb3660046122eb565b6102f9565b005b610100610110366004612447565b61053d565b34801561012157600080fd5b50610100610130366004612489565b610785565b34801561014157600080fd5b50610100610150366004612489565b6108ca565b34801561016157600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156101b157600080fd5b506101006101c0366004612489565b610a0f565b3480156101d157600080fd5b506101006101e03660046124a6565b610b7a565b3480156101f157600080fd5b5060015461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561021e57600080fd5b5061010061022d366004612489565b6111bf565b34801561023e57600080fd5b5061010061024d366004612489565b611404565b34801561025e57600080fd5b5060045461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561028b57600080fd5b5060035461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102b857600080fd5b506101006102c7366004612489565b611549565b3480156102d857600080fd5b5060025461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b8342811015610369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f3341676772656761746f723a2045585049524544000000000000000000000060448201526064015b60405180910390fd5b61037c89600001518a6080015186611679565b60008060008061038b8d611837565b8095508193508294505050506103e8600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828f6020015173ffffffffffffffffffffffffffffffffffffffff16611a719092919063ffffffff16565b6103f281836125cb565b60035460208f0151919550610423935073ffffffffffffffffffffffffffffffffffffffff91821692501684611b45565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166319ccecbe878c8e602001518d878e8e8d8a6040516020016104a9919060609190911b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016815260140190565b6040516020818303038152906040528e6040518b63ffffffff1660e01b81526004016104dd99989796959493929190612658565b6020604051808303818588803b1580156104f657600080fd5b505af115801561050a573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061052f91906126e1565b505050505050505050505050565b80428110156105a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f3341676772656761746f723a204558504952454400000000000000000000006044820152606401610360565b6105bc846000015185608001516000611679565b60008060006105ca87611837565b925092509250851561072057600154602088015173ffffffffffffffffffffffffffffffffffffffff90811691161461065f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f3341676772656761746f723a20494e56414c49445f544f4b454e5f4f5554006044820152606401610360565b6001546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b1580156106cb57600080fd5b505af11580156106df573d6000803e3d6000fd5b505050506106f88183856106f391906125cb565b611cd6565b60045461071b9073ffffffffffffffffffffffffffffffffffffffff1683611cd6565b61077c565b6107508161072e84866125cb565b60208a015173ffffffffffffffffffffffffffffffffffffffff169190611a71565b600454602088015161077c9173ffffffffffffffffffffffffffffffffffffffff918216911684611a71565b50505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610806576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff8116610883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f5745544820616464726573732063616e6e6f74206265207a65726f00000000006044820152606401610360565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461094b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff81166109c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7772617070657220616464726573732063616e6e6f74206265207a65726f00006044820152606401610360565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff8116610b33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f666565436f6c6c6563746f7220616464726573732063616e6e6f74206265207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610360565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b8242811015610be5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f3341676772656761746f723a204558504952454400000000000000000000006044820152606401610360565b3373ffffffffffffffffffffffffffffffffffffffff8c1615801590610c0957508c155b15610ce35788886000818110610c2157610c216126fe565b9050602002016020810190610c369190612489565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8e81166004830152306024830152919091169063dd62ed3e9060440160206040518083038186803b158015610ca557600080fd5b505afa158015610cb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdd919061272d565b9c508b90505b8c610d4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f3341676772656761746f723a205a45524f5f414d4f554e545f494e000000006044820152606401610360565b610d9681308f8c8c6000818110610d6357610d636126fe565b9050602002016020810190610d789190612489565b73ffffffffffffffffffffffffffffffffffffffff16929190611de0565b50610de18a8d8a8a6000818110610daf57610daf6126fe565b9050602002016020810190610dc49190612489565b73ffffffffffffffffffffffffffffffffffffffff169190611b45565b6040517f916955860000000000000000000000000000000000000000000000000000000081526001600482015260006024820152604481018d9052606481018a90526084810185905273ffffffffffffffffffffffffffffffffffffffff8b169063916955869060a401602060405180830381600087803b158015610e6557600080fd5b505af1158015610e79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9d919061272d565b9b506003871015610f0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4f3341676772656761746f723a20494e56414c49445f504154480000000000006044820152606401610360565b60006040518060e001604052808a8a6001818110610f2a57610f2a6126fe565b9050602002016020810190610f3f9190612489565b73ffffffffffffffffffffffffffffffffffffffff1681526020018a8a610f676001826125cb565b818110610f7657610f766126fe565b9050602002016020810190610f8b9190612489565b73ffffffffffffffffffffffffffffffffffffffff1681526020018862ffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff1681526020018e8152602001858152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060008061100283611837565b5091509150841561115257600154602084015173ffffffffffffffffffffffffffffffffffffffff908116911614611096576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f3341676772656761746f723a20494e56414c49445f544f4b454e5f4f5554006044820152606401610360565b6001546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b15801561110257600080fd5b505af1158015611116573d6000803e3d6000fd5b5050505061112a8882846106f391906125cb565b60045461114d9073ffffffffffffffffffffffffffffffffffffffff1682611cd6565b6111ae565b6111828861116083856125cb565b602086015173ffffffffffffffffffffffffffffffffffffffff169190611a71565b60045460208401516111ae9173ffffffffffffffffffffffffffffffffffffffff918216911683611a71565b505050505050505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611240576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b600154819073ffffffffffffffffffffffffffffffffffffffff808316911614801561126c5750600047115b156113415760408051600080825260208201909252339047906040516112929190612746565b60006040518083038185875af1925050503d80600081146112cf576040519150601f19603f3d011682016040523d82523d6000602084013e6112d4565b606091505b505090508061133f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4554485f5452414e534645525f4641494c4544000000000000000000000000006044820152606401610360565b505b611400336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a082319060240160206040518083038186803b1580156113aa57600080fd5b505afa1580156113be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e2919061272d565b73ffffffffffffffffffffffffffffffffffffffff84169190611a71565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff8116611502576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f726f7574657220616464726573732063616e6e6f74206265207a65726f0000006044820152606401610360565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146115ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff811661166d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610360565b61167681611e44565b50565b600061168582346125cb565b11156117805760015473ffffffffffffffffffffffffffffffffffffffff84811691161461170f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f3341676772656761746f723a20494e56414c49445f544f4b454e5f494e00006044820152606401610360565b60015473ffffffffffffffffffffffffffffffffffffffff1663d0e30db061173783346125cb565b6040518263ffffffff1660e01b81526004016000604051808303818588803b15801561176257600080fd5b505af1158015611776573d6000803e3d6000fd5b5050505050505050565b60008211611810576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f3341676772656761746f723a20494e53554646494349454e545f494e50555460448201527f5f414d4f554e54000000000000000000000000000000000000000000000000006064820152608401610360565b61183273ffffffffffffffffffffffffffffffffffffffff8416333085611de0565b505050565b60008060008073ffffffffffffffffffffffffffffffffffffffff16846060015173ffffffffffffffffffffffffffffffffffffffff1614156118d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f3341676772656761746f723a20494e56414c49445f524543495049454e54006044820152606401610360565b606084018051309091526002546080860151865161190f9273ffffffffffffffffffffffffffffffffffffffff91821692911690611b45565b600254604080517f04e45aaf000000000000000000000000000000000000000000000000000000008152875173ffffffffffffffffffffffffffffffffffffffff90811660048301526020890151811660248301529188015162ffffff1660448201526060880151821660648201526080880151608482015260a088015160a482015260c0880151821660c482015260009291909116906304e45aaf9060e401602060405180830381600087803b1580156119c957600080fd5b505af11580156119dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a01919061272d565b90506000620f4240876040015162ffffff1683611a1e9190612762565b611a28919061279f565b60408051848152602081018390529192507f270e06e1460fe9df2e798064a58fdb072e3f3e1e39e7db96268c13849c025aed910160405180910390a19096909550909350915050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526118329084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611eb9565b801580611bf457506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b158015611bba57600080fd5b505afa158015611bce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf2919061272d565b155b611c80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610360565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526118329084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611ac3565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051611d0d9190612746565b60006040518083038185875af1925050503d8060008114611d4a576040519150601f19603f3d011682016040523d82523d6000602084013e611d4f565b606091505b5050905080611832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4f3341676772656761746f723a204554485f5452414e534645525f4641494c4560448201527f44000000000000000000000000000000000000000000000000000000000000006064820152608401610360565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052611e3e9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611ac3565b50505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611f1b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611fc59092919063ffffffff16565b8051909150156118325780806020019051810190611f3991906126e1565b611832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610360565b6060611fd48484600085611fde565b90505b9392505050565b606082471015612070576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610360565b73ffffffffffffffffffffffffffffffffffffffff85163b6120ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610360565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516121179190612746565b60006040518083038185875af1925050503d8060008114612154576040519150601f19603f3d011682016040523d82523d6000602084013e612159565b606091505b5091509150612169828286612174565b979650505050505050565b60608315612183575081611fd7565b8251156121935782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161036091906127da565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461167657600080fd5b8035612223816121f6565b919050565b803562ffffff8116811461222357600080fd5b600060e0828403121561224d57600080fd5b60405160e0810181811067ffffffffffffffff82111715612270576122706121c7565b6040529050808235612281816121f6565b81526020830135612291816121f6565b60208201526122a260408401612228565b604082015260608301356122b5816121f6565b806060830152506080830135608082015260a083013560a082015260c08301356122de816121f6565b60c0919091015292915050565b6000806000806000806000806101c0898b03121561230857600080fd5b6123128a8a61223b565b975060e0890135612322816121f6565b9650610100890135612333816121f6565b955061012089013594506101408901359350610160890135925061018089013567ffffffffffffffff808216821461236a57600080fd5b9092506101a08a0135908082111561238157600080fd5b818b0191508b601f83011261239557600080fd5b8135818111156123a7576123a76121c7565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156123ed576123ed6121c7565b816040528281528e602084870101111561240657600080fd5b8260208601602083013760006020848301015280955050505050509295985092959890939650565b801515811461167657600080fd5b80356122238161242e565b6000806000610120848603121561245d57600080fd5b612467858561223b565b925060e08401356124778161242e565b92959294505050610100919091013590565b60006020828403121561249b57600080fd5b8135611fd7816121f6565b60008060008060008060008060008060006101408c8e0312156124c857600080fd5b8b359a5060208c01356124da816121f6565b995060408c01356124ea816121f6565b985060608c0135975060808c013567ffffffffffffffff8082111561250e57600080fd5b818e0191508e601f83011261252257600080fd5b81358181111561253157600080fd5b8f60208260051b850101111561254657600080fd5b60208301995080985050505061255e60a08d01612228565b945061256c60c08d01612218565b935060e08c013592506101008c0135915061258a6101208d0161243c565b90509295989b509295989b9093969950565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000828210156125dd576125dd61259c565b500390565b60005b838110156125fd5781810151838201526020016125e5565b83811115611e3e5750506000910152565b600081518084526126268160208601602086016125e2565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600061012073ffffffffffffffffffffffffffffffffffffffff808d168452808c166020850152808b166040850152508860608401528760808401528660a084015267ffffffffffffffff861660c08401528060e08401526126bc8184018661260e565b90508281036101008401526126d1818561260e565b9c9b505050505050505050505050565b6000602082840312156126f357600080fd5b8151611fd78161242e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561273f57600080fd5b5051919050565b600082516127588184602087016125e2565b9190910192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561279a5761279a61259c565b500290565b6000826127d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b602081526000611fd7602083018461260e56fea2646970667358221220a3e40214d6deb780f751fc943c069e62b1b1716223b233484f77f4e6a4958a1864736f6c63430008080033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000462edbe0c6d505b96556b63fe3b593078f90e0fc
-----Decoded View---------------
Arg [0] : _feeCollector (address): 0x462eDBe0C6d505b96556B63fE3b593078f90E0Fc
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000462edbe0c6d505b96556b63fe3b593078f90e0fc
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ARB | 100.00% | $2,763.95 | 0.0001 | $0.276395 |
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.