Source Code
Latest 25 from a total of 139 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Exact Input Sing... | 20418721 | 509 days ago | IN | 0.001 ETH | 0.0039833 | ||||
| Exact Input Sing... | 20390212 | 513 days ago | IN | 0.002 ETH | 0.00048595 | ||||
| Exact Input Sing... | 19548028 | 631 days ago | IN | 1.18 ETH | 0.00487736 | ||||
| Exact Input Sing... | 19267108 | 670 days ago | IN | 0 ETH | 0.00488995 | ||||
| Exact Input Sing... | 19267090 | 670 days ago | IN | 0 ETH | 0.00422512 | ||||
| Exact Input Sing... | 19146660 | 687 days ago | IN | 0 ETH | 0.00263833 | ||||
| Exact Input Sing... | 19034949 | 703 days ago | IN | 0 ETH | 0.00817764 | ||||
| Exact Input Sing... | 19025937 | 704 days ago | IN | 0.01 ETH | 0.00535361 | ||||
| Exact Input Sing... | 18990059 | 709 days ago | IN | 0 ETH | 0.00367868 | ||||
| Exact Input Sing... | 18845223 | 730 days ago | IN | 0 ETH | 0.00436712 | ||||
| Exact Input Sing... | 18815445 | 734 days ago | IN | 1 ETH | 0.01628167 | ||||
| Exact Input Sing... | 18574348 | 768 days ago | IN | 0 ETH | 0.00628458 | ||||
| Exact Input Sing... | 18560537 | 770 days ago | IN | 0.4 ETH | 0.00541754 | ||||
| Exact Input Sing... | 18519690 | 775 days ago | IN | 7 ETH | 0.00445543 | ||||
| Exact Input Sing... | 18361942 | 797 days ago | IN | 0 ETH | 0.00135896 | ||||
| Exact Input Sing... | 18273631 | 810 days ago | IN | 0.01 ETH | 0.00198146 | ||||
| Exact Input Sing... | 18208315 | 819 days ago | IN | 0 ETH | 0.00153604 | ||||
| Exact Input Sing... | 18208265 | 819 days ago | IN | 0 ETH | 0.00155293 | ||||
| Exact Input Sing... | 18208242 | 819 days ago | IN | 0.3 ETH | 0.001567 | ||||
| Exact Input Sing... | 18107140 | 833 days ago | IN | 0 ETH | 0.0018775 | ||||
| Exact Input Sing... | 18004628 | 847 days ago | IN | 0.00039806 ETH | 0.00173779 | ||||
| Exact Input Sing... | 17881497 | 865 days ago | IN | 0 ETH | 0.00309202 | ||||
| Exact Input Sing... | 17876249 | 865 days ago | IN | 0 ETH | 0.00340389 | ||||
| Exact Input Sing... | 17862438 | 867 days ago | IN | 0 ETH | 0.00383303 | ||||
| Exact Input Sing... | 17746555 | 883 days ago | IN | 0.01 ETH | 0.00292869 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Deposit | 20418721 | 509 days ago | 0.001 ETH | ||||
| Deposit | 20390212 | 513 days ago | 0.002 ETH | ||||
| Transfer | 20346290 | 519 days ago | 0.0000384 ETH | ||||
| Transfer | 20346290 | 519 days ago | 0.01276218 ETH | ||||
| Transfer | 20346290 | 519 days ago | 0.01280058 ETH | ||||
| Transfer | 20017276 | 565 days ago | 0.0002199 ETH | ||||
| Transfer | 20017276 | 565 days ago | 0.07308332 ETH | ||||
| Transfer | 20017276 | 565 days ago | 0.07330323 ETH | ||||
| Deposit | 19548028 | 631 days ago | 1.18 ETH | ||||
| Transfer | 19267108 | 670 days ago | 0.00076657 ETH | ||||
| Transfer | 19267108 | 670 days ago | 0.07589073 ETH | ||||
| Transfer | 19267108 | 670 days ago | 0.0766573 ETH | ||||
| Transfer | 19267090 | 670 days ago | 0.00005289 ETH | ||||
| Transfer | 19267090 | 670 days ago | 0.1057325 ETH | ||||
| Transfer | 19267090 | 670 days ago | 0.10578539 ETH | ||||
| Transfer | 19146660 | 687 days ago | 0.00093659 ETH | ||||
| Transfer | 19146660 | 687 days ago | 0.09272253 ETH | ||||
| Transfer | 19146660 | 687 days ago | 0.09365912 ETH | ||||
| Transfer | 19034949 | 703 days ago | 0.00004531 ETH | ||||
| Transfer | 19034949 | 703 days ago | 0.01505854 ETH | ||||
| Transfer | 19034949 | 703 days ago | 0.01510385 ETH | ||||
| Deposit | 19025937 | 704 days ago | 0.01 ETH | ||||
| Transfer | 18845223 | 730 days ago | 0.00099905 ETH | ||||
| Transfer | 18845223 | 730 days ago | 1.99710886 ETH | ||||
| Transfer | 18845223 | 730 days ago | 1.99810791 ETH |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
O3EthereumUniswapV3Aggregator
Compiler Version
v0.8.15+commit.e14f2714
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 poolAddress,
uint poolAmountOutMin,
address[] calldata path,
uint24 v3PoolFee,
address to,
uint deadline,
uint aggSwapAmountOutMin,
bool unwrapETH
) external ensure(deadline) {
if (amountIn == 0) {
amountIn = IERC20(path[0]).allowance(_msgSender(), address(this));
}
require(amountIn != 0, 'O3Aggregator: ZERO_AMOUNT_IN');
IERC20(path[0]).safeTransferFrom(_msgSender(), address(this), amountIn);
{
IERC20(path[0]).safeApprove(poolAddress, amountIn);
require(address(IPool(poolAddress).coins(0)) == path[1], "O3Aggregator: INVALID_PATH");
uint balanceBefore = IERC20(path[1]).balanceOf(address(this));
IPool(poolAddress).swap(1, 0, amountIn, poolAmountOutMin, deadline);
amountIn = IERC20(path[1]).balanceOf(address(this)) - balanceBefore;
}
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 balanceBefore = IERC20(params.tokenOut).balanceOf(address(this));
IUniswapV3SwapRouter(router).exactInputSingle(params);
uint amountOut = IERC20(params.tokenOut).balanceOf(address(this)) - balanceBefore;
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.7.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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.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));
}
}
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// 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
Contract ABI
API[{"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":"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
6080604052600180546001600160a01b031990811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2179091556002805482167368b3465833fb72a70ecdf485e0e4c7bd8665fc451790556003805490911673ecf2b548e5c21028b0b60363207700fa421b6ecb1790553480156200007757600080fd5b5060405162002d6538038062002d658339810160408190526200009a9162000182565b620000a53362000132565b6001600160a01b0381166200010c5760405162461bcd60e51b815260206004820152602360248201527f666565436f6c6c6563746f7220616464726573732063616e6e6f74206265207a60448201526265726f60e81b606482015260840160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055620001b4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200019557600080fd5b81516001600160a01b0381168114620001ad57600080fd5b9392505050565b612ba180620001c46000396000f3fe6080604052600436106100e15760003560e01c8063ad5c46481161007f578063c415b95c11610059578063c415b95c14610252578063e6a8400f1461027f578063f2fde38b146102ac578063f887ea40146102cc57600080fd5b8063ad5c4648146101e5578063b8c6fd8414610212578063c0d786551461023257600080fd5b80636ab0adea116100bb5780636ab0adea146101355780638da5cb5b14610155578063a42dce80146101a5578063ab49c794146101c557600080fd5b80632afb0f2e146100ed578063380d3a1b146101025780635b769f3c1461011557600080fd5b366100e857005b600080fd5b6101006100fb366004612660565b6102f9565b005b6101006101103660046127bc565b61052e565b34801561012157600080fd5b506101006101303660046127fe565b610776565b34801561014157600080fd5b506101006101503660046127fe565b6108bb565b34801561016157600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156101b157600080fd5b506101006101c03660046127fe565b610a00565b3480156101d157600080fd5b506101006101e036600461281b565b610b6b565b3480156101f157600080fd5b5060015461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561021e57600080fd5b5061010061022d3660046127fe565b611440565b34801561023e57600080fd5b5061010061024d3660046127fe565b611676565b34801561025e57600080fd5b5060045461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561028b57600080fd5b5060035461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102b857600080fd5b506101006102c73660046127fe565b6117bb565b3480156102d857600080fd5b5060025461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b8342811015610369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f3341676772656761746f723a2045585049524544000000000000000000000060448201526064015b60405180910390fd5b61037c89600001518a60800151866118eb565b60008060008061038b8d611aa9565b8095508193508294505050506103e8600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828f6020015173ffffffffffffffffffffffffffffffffffffffff16611df59092919063ffffffff16565b6103f2818361292c565b60035460208f0151919550610423935073ffffffffffffffffffffffffffffffffffffffff91821692501684611ec9565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166319ccecbe878c8e602001518d878e8e8d8a6040516020016104a9919060609190911b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016815260140190565b6040516020818303038152906040528e6040518b63ffffffff1660e01b81526004016104dd999897969594939291906129b9565b60206040518083038185885af11580156104fb573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906105209190612a42565b505050505050505050505050565b8042811015610599576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f3341676772656761746f723a204558504952454400000000000000000000006044820152606401610360565b6105ad8460000151856080015160006118eb565b60008060006105bb87611aa9565b925092509250851561071157600154602088015173ffffffffffffffffffffffffffffffffffffffff908116911614610650576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f3341676772656761746f723a20494e56414c49445f544f4b454e5f4f5554006044820152606401610360565b6001546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b1580156106bc57600080fd5b505af11580156106d0573d6000803e3d6000fd5b505050506106e98183856106e4919061292c565b61204b565b60045461070c9073ffffffffffffffffffffffffffffffffffffffff168361204b565b61076d565b6107418161071f848661292c565b60208a015173ffffffffffffffffffffffffffffffffffffffff169190611df5565b600454602088015161076d9173ffffffffffffffffffffffffffffffffffffffff918216911684611df5565b50505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146107f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff8116610874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f5745544820616464726573732063616e6e6f74206265207a65726f00000000006044820152606401610360565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461093c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff81166109b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7772617070657220616464726573732063616e6e6f74206265207a65726f00006044820152606401610360565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff8116610b24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f666565436f6c6c6563746f7220616464726573732063616e6e6f74206265207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610360565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b8242811015610bd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f3341676772656761746f723a204558504952454400000000000000000000006044820152606401610360565b8a600003610cb85787876000818110610bf157610bf1612a5f565b9050602002016020810190610c0691906127fe565b73ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152306024820152604401602060405180830381865afa158015610c91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb59190612a8e565b9a505b8a600003610d22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f3341676772656761746f723a205a45524f5f414d4f554e545f494e000000006044820152606401610360565b610d6e33308d8b8b6000818110610d3b57610d3b612a5f565b9050602002016020810190610d5091906127fe565b73ffffffffffffffffffffffffffffffffffffffff16929190612155565b610db88a8c8a8a6000818110610d8657610d86612a5f565b9050602002016020810190610d9b91906127fe565b73ffffffffffffffffffffffffffffffffffffffff169190611ec9565b87876001818110610dcb57610dcb612a5f565b9050602002016020810190610de091906127fe565b6040517fc66106570000000000000000000000000000000000000000000000000000000081526000600482015273ffffffffffffffffffffffffffffffffffffffff918216918c169063c661065790602401602060405180830381865afa158015610e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e739190612aa7565b73ffffffffffffffffffffffffffffffffffffffff1614610ef0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4f3341676772656761746f723a20494e56414c49445f504154480000000000006044820152606401610360565b600088886001818110610f0557610f05612a5f565b9050602002016020810190610f1a91906127fe565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa158015610f86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610faa9190612a8e565b6040517f916955860000000000000000000000000000000000000000000000000000000081526001600482015260006024820152604481018e9052606481018c90526084810187905290915073ffffffffffffffffffffffffffffffffffffffff8c169063916955869060a4016020604051808303816000875af1158015611036573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105a9190612a8e565b50808989600181811061106f5761106f612a5f565b905060200201602081019061108491906127fe565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa1580156110f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111149190612a8e565b61111e919061292c565b9b5050600387101561118c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4f3341676772656761746f723a20494e56414c49445f504154480000000000006044820152606401610360565b60006040518060e001604052808a8a60018181106111ac576111ac612a5f565b90506020020160208101906111c191906127fe565b73ffffffffffffffffffffffffffffffffffffffff1681526020018a8a6111e960018261292c565b8181106111f8576111f8612a5f565b905060200201602081019061120d91906127fe565b73ffffffffffffffffffffffffffffffffffffffff1681526020018862ffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff1681526020018d8152602001858152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060008061128483611aa9565b509150915084156113d457600154602084015173ffffffffffffffffffffffffffffffffffffffff908116911614611318576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f3341676772656761746f723a20494e56414c49445f544f4b454e5f4f5554006044820152606401610360565b6001546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b15801561138457600080fd5b505af1158015611398573d6000803e3d6000fd5b505050506113ac8882846106e4919061292c565b6004546113cf9073ffffffffffffffffffffffffffffffffffffffff168261204b565b611430565b611404886113e2838561292c565b602086015173ffffffffffffffffffffffffffffffffffffffff169190611df5565b60045460208401516114309173ffffffffffffffffffffffffffffffffffffffff918216911683611df5565b5050505050505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146114c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b600154819073ffffffffffffffffffffffffffffffffffffffff80831691161480156114ed5750600047115b156115c25760408051600080825260208201909252339047906040516115139190612ac4565b60006040518083038185875af1925050503d8060008114611550576040519150601f19603f3d011682016040523d82523d6000602084013e611555565b606091505b50509050806115c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4554485f5452414e534645525f4641494c4544000000000000000000000000006044820152606401610360565b505b611672336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa158015611630573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116549190612a8e565b73ffffffffffffffffffffffffffffffffffffffff84169190611df5565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff8116611774576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f726f7574657220616464726573732063616e6e6f74206265207a65726f0000006044820152606401610360565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461183c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff81166118df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610360565b6118e8816121b9565b50565b60006118f7823461292c565b11156119f25760015473ffffffffffffffffffffffffffffffffffffffff848116911614611981576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f3341676772656761746f723a20494e56414c49445f544f4b454e5f494e00006044820152606401610360565b60015473ffffffffffffffffffffffffffffffffffffffff1663d0e30db06119a9833461292c565b6040518263ffffffff1660e01b81526004016000604051808303818588803b1580156119d457600080fd5b505af11580156119e8573d6000803e3d6000fd5b5050505050505050565b60008211611a82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f3341676772656761746f723a20494e53554646494349454e545f494e50555460448201527f5f414d4f554e54000000000000000000000000000000000000000000000000006064820152608401610360565b611aa473ffffffffffffffffffffffffffffffffffffffff8416333085612155565b505050565b60608101516000908190819073ffffffffffffffffffffffffffffffffffffffff16611b31576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f3341676772656761746f723a20494e56414c49445f524543495049454e54006044820152606401610360565b6060840180513090915260025460808601518651611b6a9273ffffffffffffffffffffffffffffffffffffffff91821692911690611ec9565b60208501516040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015611bdb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bff9190612a8e565b600254604080517f04e45aaf000000000000000000000000000000000000000000000000000000008152895173ffffffffffffffffffffffffffffffffffffffff908116600483015260208b015181166024830152918a015162ffffff16604482015260608a01518216606482015260808a0151608482015260a08a015160a482015260c08a0151821660c482015292935016906304e45aaf9060e4016020604051808303816000875af1158015611cbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cdf9190612a8e565b5060208601516040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600091839173ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa158015611d55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d799190612a8e565b611d83919061292c565b90506000620f4240886040015162ffffff1683611da09190612ae0565b611daa9190612b1d565b60408051848152602081018390529192507f270e06e1460fe9df2e798064a58fdb072e3f3e1e39e7db96268c13849c025aed910160405180910390a190979096509194509092505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611aa49084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261222e565b801580611f6957506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611f43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f679190612a8e565b155b611ff5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610360565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611aa49084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611e47565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040516120829190612ac4565b60006040518083038185875af1925050503d80600081146120bf576040519150601f19603f3d011682016040523d82523d6000602084013e6120c4565b606091505b5050905080611aa4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4f3341676772656761746f723a204554485f5452414e534645525f4641494c4560448201527f44000000000000000000000000000000000000000000000000000000000000006064820152608401610360565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526121b39085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611e47565b50505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000612290826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661233a9092919063ffffffff16565b805190915015611aa457808060200190518101906122ae9190612a42565b611aa4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610360565b60606123498484600085612353565b90505b9392505050565b6060824710156123e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610360565b73ffffffffffffffffffffffffffffffffffffffff85163b612463576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610360565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161248c9190612ac4565b60006040518083038185875af1925050503d80600081146124c9576040519150601f19603f3d011682016040523d82523d6000602084013e6124ce565b606091505b50915091506124de8282866124e9565b979650505050505050565b606083156124f857508161234c565b8251156125085782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103609190612b58565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff811681146118e857600080fd5b80356125988161256b565b919050565b803562ffffff8116811461259857600080fd5b600060e082840312156125c257600080fd5b60405160e0810181811067ffffffffffffffff821117156125e5576125e561253c565b60405290508082356125f68161256b565b815260208301356126068161256b565b60208201526126176040840161259d565b6040820152606083013561262a8161256b565b806060830152506080830135608082015260a083013560a082015260c08301356126538161256b565b60c0919091015292915050565b6000806000806000806000806101c0898b03121561267d57600080fd5b6126878a8a6125b0565b975060e08901356126978161256b565b96506101008901356126a88161256b565b955061012089013594506101408901359350610160890135925061018089013567ffffffffffffffff80821682146126df57600080fd5b9092506101a08a013590808211156126f657600080fd5b818b0191508b601f83011261270a57600080fd5b81358181111561271c5761271c61253c565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156127625761276261253c565b816040528281528e602084870101111561277b57600080fd5b8260208601602083013760006020848301015280955050505050509295985092959890939650565b80151581146118e857600080fd5b8035612598816127a3565b600080600061012084860312156127d257600080fd5b6127dc85856125b0565b925060e08401356127ec816127a3565b92959294505050610100919091013590565b60006020828403121561281057600080fd5b813561234c8161256b565b6000806000806000806000806000806101208b8d03121561283b57600080fd5b8a35995060208b013561284d8161256b565b985060408b0135975060608b013567ffffffffffffffff8082111561287157600080fd5b818d0191508d601f83011261288557600080fd5b81358181111561289457600080fd5b8e60208260051b85010111156128a957600080fd5b6020830199508098505050506128c160808c0161259d565b94506128cf60a08c0161258d565b935060c08b0135925060e08b013591506128ec6101008c016127b1565b90509295989b9194979a5092959850565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008282101561293e5761293e6128fd565b500390565b60005b8381101561295e578181015183820152602001612946565b838111156121b35750506000910152565b60008151808452612987816020860160208601612943565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600061012073ffffffffffffffffffffffffffffffffffffffff808d168452808c166020850152808b166040850152508860608401528760808401528660a084015267ffffffffffffffff861660c08401528060e0840152612a1d8184018661296f565b9050828103610100840152612a32818561296f565b9c9b505050505050505050505050565b600060208284031215612a5457600080fd5b815161234c816127a3565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215612aa057600080fd5b5051919050565b600060208284031215612ab957600080fd5b815161234c8161256b565b60008251612ad6818460208701612943565b9190910192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612b1857612b186128fd565b500290565b600082612b53577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60208152600061234c602083018461296f56fea2646970667358221220596f7189efa92337178e76a252fe7b1edc2d7fae3becd7beeabb87ff351404a764736f6c634300080f0033000000000000000000000000462edbe0c6d505b96556b63fe3b593078f90e0fc
Deployed Bytecode
0x6080604052600436106100e15760003560e01c8063ad5c46481161007f578063c415b95c11610059578063c415b95c14610252578063e6a8400f1461027f578063f2fde38b146102ac578063f887ea40146102cc57600080fd5b8063ad5c4648146101e5578063b8c6fd8414610212578063c0d786551461023257600080fd5b80636ab0adea116100bb5780636ab0adea146101355780638da5cb5b14610155578063a42dce80146101a5578063ab49c794146101c557600080fd5b80632afb0f2e146100ed578063380d3a1b146101025780635b769f3c1461011557600080fd5b366100e857005b600080fd5b6101006100fb366004612660565b6102f9565b005b6101006101103660046127bc565b61052e565b34801561012157600080fd5b506101006101303660046127fe565b610776565b34801561014157600080fd5b506101006101503660046127fe565b6108bb565b34801561016157600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156101b157600080fd5b506101006101c03660046127fe565b610a00565b3480156101d157600080fd5b506101006101e036600461281b565b610b6b565b3480156101f157600080fd5b5060015461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561021e57600080fd5b5061010061022d3660046127fe565b611440565b34801561023e57600080fd5b5061010061024d3660046127fe565b611676565b34801561025e57600080fd5b5060045461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561028b57600080fd5b5060035461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102b857600080fd5b506101006102c73660046127fe565b6117bb565b3480156102d857600080fd5b5060025461017c9073ffffffffffffffffffffffffffffffffffffffff1681565b8342811015610369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f3341676772656761746f723a2045585049524544000000000000000000000060448201526064015b60405180910390fd5b61037c89600001518a60800151866118eb565b60008060008061038b8d611aa9565b8095508193508294505050506103e8600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828f6020015173ffffffffffffffffffffffffffffffffffffffff16611df59092919063ffffffff16565b6103f2818361292c565b60035460208f0151919550610423935073ffffffffffffffffffffffffffffffffffffffff91821692501684611ec9565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166319ccecbe878c8e602001518d878e8e8d8a6040516020016104a9919060609190911b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016815260140190565b6040516020818303038152906040528e6040518b63ffffffff1660e01b81526004016104dd999897969594939291906129b9565b60206040518083038185885af11580156104fb573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906105209190612a42565b505050505050505050505050565b8042811015610599576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f3341676772656761746f723a204558504952454400000000000000000000006044820152606401610360565b6105ad8460000151856080015160006118eb565b60008060006105bb87611aa9565b925092509250851561071157600154602088015173ffffffffffffffffffffffffffffffffffffffff908116911614610650576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f3341676772656761746f723a20494e56414c49445f544f4b454e5f4f5554006044820152606401610360565b6001546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b1580156106bc57600080fd5b505af11580156106d0573d6000803e3d6000fd5b505050506106e98183856106e4919061292c565b61204b565b60045461070c9073ffffffffffffffffffffffffffffffffffffffff168361204b565b61076d565b6107418161071f848661292c565b60208a015173ffffffffffffffffffffffffffffffffffffffff169190611df5565b600454602088015161076d9173ffffffffffffffffffffffffffffffffffffffff918216911684611df5565b50505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146107f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff8116610874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f5745544820616464726573732063616e6e6f74206265207a65726f00000000006044820152606401610360565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461093c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff81166109b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7772617070657220616464726573732063616e6e6f74206265207a65726f00006044820152606401610360565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff8116610b24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f666565436f6c6c6563746f7220616464726573732063616e6e6f74206265207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610360565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b8242811015610bd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f3341676772656761746f723a204558504952454400000000000000000000006044820152606401610360565b8a600003610cb85787876000818110610bf157610bf1612a5f565b9050602002016020810190610c0691906127fe565b73ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152306024820152604401602060405180830381865afa158015610c91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb59190612a8e565b9a505b8a600003610d22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f3341676772656761746f723a205a45524f5f414d4f554e545f494e000000006044820152606401610360565b610d6e33308d8b8b6000818110610d3b57610d3b612a5f565b9050602002016020810190610d5091906127fe565b73ffffffffffffffffffffffffffffffffffffffff16929190612155565b610db88a8c8a8a6000818110610d8657610d86612a5f565b9050602002016020810190610d9b91906127fe565b73ffffffffffffffffffffffffffffffffffffffff169190611ec9565b87876001818110610dcb57610dcb612a5f565b9050602002016020810190610de091906127fe565b6040517fc66106570000000000000000000000000000000000000000000000000000000081526000600482015273ffffffffffffffffffffffffffffffffffffffff918216918c169063c661065790602401602060405180830381865afa158015610e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e739190612aa7565b73ffffffffffffffffffffffffffffffffffffffff1614610ef0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4f3341676772656761746f723a20494e56414c49445f504154480000000000006044820152606401610360565b600088886001818110610f0557610f05612a5f565b9050602002016020810190610f1a91906127fe565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa158015610f86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610faa9190612a8e565b6040517f916955860000000000000000000000000000000000000000000000000000000081526001600482015260006024820152604481018e9052606481018c90526084810187905290915073ffffffffffffffffffffffffffffffffffffffff8c169063916955869060a4016020604051808303816000875af1158015611036573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105a9190612a8e565b50808989600181811061106f5761106f612a5f565b905060200201602081019061108491906127fe565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa1580156110f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111149190612a8e565b61111e919061292c565b9b5050600387101561118c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4f3341676772656761746f723a20494e56414c49445f504154480000000000006044820152606401610360565b60006040518060e001604052808a8a60018181106111ac576111ac612a5f565b90506020020160208101906111c191906127fe565b73ffffffffffffffffffffffffffffffffffffffff1681526020018a8a6111e960018261292c565b8181106111f8576111f8612a5f565b905060200201602081019061120d91906127fe565b73ffffffffffffffffffffffffffffffffffffffff1681526020018862ffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff1681526020018d8152602001858152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060008061128483611aa9565b509150915084156113d457600154602084015173ffffffffffffffffffffffffffffffffffffffff908116911614611318576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f3341676772656761746f723a20494e56414c49445f544f4b454e5f4f5554006044820152606401610360565b6001546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b15801561138457600080fd5b505af1158015611398573d6000803e3d6000fd5b505050506113ac8882846106e4919061292c565b6004546113cf9073ffffffffffffffffffffffffffffffffffffffff168261204b565b611430565b611404886113e2838561292c565b602086015173ffffffffffffffffffffffffffffffffffffffff169190611df5565b60045460208401516114309173ffffffffffffffffffffffffffffffffffffffff918216911683611df5565b5050505050505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146114c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b600154819073ffffffffffffffffffffffffffffffffffffffff80831691161480156114ed5750600047115b156115c25760408051600080825260208201909252339047906040516115139190612ac4565b60006040518083038185875af1925050503d8060008114611550576040519150601f19603f3d011682016040523d82523d6000602084013e611555565b606091505b50509050806115c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4554485f5452414e534645525f4641494c4544000000000000000000000000006044820152606401610360565b505b611672336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa158015611630573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116549190612a8e565b73ffffffffffffffffffffffffffffffffffffffff84169190611df5565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff8116611774576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f726f7574657220616464726573732063616e6e6f74206265207a65726f0000006044820152606401610360565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461183c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b73ffffffffffffffffffffffffffffffffffffffff81166118df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610360565b6118e8816121b9565b50565b60006118f7823461292c565b11156119f25760015473ffffffffffffffffffffffffffffffffffffffff848116911614611981576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f3341676772656761746f723a20494e56414c49445f544f4b454e5f494e00006044820152606401610360565b60015473ffffffffffffffffffffffffffffffffffffffff1663d0e30db06119a9833461292c565b6040518263ffffffff1660e01b81526004016000604051808303818588803b1580156119d457600080fd5b505af11580156119e8573d6000803e3d6000fd5b5050505050505050565b60008211611a82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f3341676772656761746f723a20494e53554646494349454e545f494e50555460448201527f5f414d4f554e54000000000000000000000000000000000000000000000000006064820152608401610360565b611aa473ffffffffffffffffffffffffffffffffffffffff8416333085612155565b505050565b60608101516000908190819073ffffffffffffffffffffffffffffffffffffffff16611b31576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f3341676772656761746f723a20494e56414c49445f524543495049454e54006044820152606401610360565b6060840180513090915260025460808601518651611b6a9273ffffffffffffffffffffffffffffffffffffffff91821692911690611ec9565b60208501516040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015611bdb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bff9190612a8e565b600254604080517f04e45aaf000000000000000000000000000000000000000000000000000000008152895173ffffffffffffffffffffffffffffffffffffffff908116600483015260208b015181166024830152918a015162ffffff16604482015260608a01518216606482015260808a0151608482015260a08a015160a482015260c08a0151821660c482015292935016906304e45aaf9060e4016020604051808303816000875af1158015611cbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cdf9190612a8e565b5060208601516040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600091839173ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa158015611d55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d799190612a8e565b611d83919061292c565b90506000620f4240886040015162ffffff1683611da09190612ae0565b611daa9190612b1d565b60408051848152602081018390529192507f270e06e1460fe9df2e798064a58fdb072e3f3e1e39e7db96268c13849c025aed910160405180910390a190979096509194509092505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611aa49084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261222e565b801580611f6957506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611f43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f679190612a8e565b155b611ff5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610360565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611aa49084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611e47565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040516120829190612ac4565b60006040518083038185875af1925050503d80600081146120bf576040519150601f19603f3d011682016040523d82523d6000602084013e6120c4565b606091505b5050905080611aa4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4f3341676772656761746f723a204554485f5452414e534645525f4641494c4560448201527f44000000000000000000000000000000000000000000000000000000000000006064820152608401610360565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526121b39085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611e47565b50505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000612290826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661233a9092919063ffffffff16565b805190915015611aa457808060200190518101906122ae9190612a42565b611aa4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610360565b60606123498484600085612353565b90505b9392505050565b6060824710156123e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610360565b73ffffffffffffffffffffffffffffffffffffffff85163b612463576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610360565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161248c9190612ac4565b60006040518083038185875af1925050503d80600081146124c9576040519150601f19603f3d011682016040523d82523d6000602084013e6124ce565b606091505b50915091506124de8282866124e9565b979650505050505050565b606083156124f857508161234c565b8251156125085782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103609190612b58565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff811681146118e857600080fd5b80356125988161256b565b919050565b803562ffffff8116811461259857600080fd5b600060e082840312156125c257600080fd5b60405160e0810181811067ffffffffffffffff821117156125e5576125e561253c565b60405290508082356125f68161256b565b815260208301356126068161256b565b60208201526126176040840161259d565b6040820152606083013561262a8161256b565b806060830152506080830135608082015260a083013560a082015260c08301356126538161256b565b60c0919091015292915050565b6000806000806000806000806101c0898b03121561267d57600080fd5b6126878a8a6125b0565b975060e08901356126978161256b565b96506101008901356126a88161256b565b955061012089013594506101408901359350610160890135925061018089013567ffffffffffffffff80821682146126df57600080fd5b9092506101a08a013590808211156126f657600080fd5b818b0191508b601f83011261270a57600080fd5b81358181111561271c5761271c61253c565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156127625761276261253c565b816040528281528e602084870101111561277b57600080fd5b8260208601602083013760006020848301015280955050505050509295985092959890939650565b80151581146118e857600080fd5b8035612598816127a3565b600080600061012084860312156127d257600080fd5b6127dc85856125b0565b925060e08401356127ec816127a3565b92959294505050610100919091013590565b60006020828403121561281057600080fd5b813561234c8161256b565b6000806000806000806000806000806101208b8d03121561283b57600080fd5b8a35995060208b013561284d8161256b565b985060408b0135975060608b013567ffffffffffffffff8082111561287157600080fd5b818d0191508d601f83011261288557600080fd5b81358181111561289457600080fd5b8e60208260051b85010111156128a957600080fd5b6020830199508098505050506128c160808c0161259d565b94506128cf60a08c0161258d565b935060c08b0135925060e08b013591506128ec6101008c016127b1565b90509295989b9194979a5092959850565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008282101561293e5761293e6128fd565b500390565b60005b8381101561295e578181015183820152602001612946565b838111156121b35750506000910152565b60008151808452612987816020860160208601612943565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600061012073ffffffffffffffffffffffffffffffffffffffff808d168452808c166020850152808b166040850152508860608401528760808401528660a084015267ffffffffffffffff861660c08401528060e0840152612a1d8184018661296f565b9050828103610100840152612a32818561296f565b9c9b505050505050505050505050565b600060208284031215612a5457600080fd5b815161234c816127a3565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215612aa057600080fd5b5051919050565b600060208284031215612ab957600080fd5b815161234c8161256b565b60008251612ad6818460208701612943565b9190910192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612b1857612b186128fd565b500290565b600082612b53577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60208152600061234c602083018461296f56fea2646970667358221220596f7189efa92337178e76a252fe7b1edc2d7fae3becd7beeabb87ff351404a764736f6c634300080f0033
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 | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.