Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0xdbe9f7d4db64f18f9aa9f5c37f2d9eb6939ea5361d5e8bfbb581336770728413 | Swap Exact ETH F... | (pending) | 4 days ago | IN | 0.0011206543 ETH | (Pending) | |||
Swap Exact ETH F... | 21359976 | 3 days ago | IN | 0.0001 ETH | 0.00347323 | ||||
Swap Exact ETH F... | 21328033 | 7 days ago | IN | 0.01228758 ETH | 0.00700998 | ||||
Swap Exact ETH F... | 21309917 | 10 days ago | IN | 0.0001 ETH | 0.005671 | ||||
Swap Exact ETH F... | 21309256 | 10 days ago | IN | 0.00022212 ETH | 0.00717787 | ||||
Swap Exact ETH F... | 21305949 | 10 days ago | IN | 0.00114792 ETH | 0.00314174 | ||||
Swap Exact ETH F... | 21303319 | 11 days ago | IN | 0.00013225 ETH | 0.00503105 | ||||
Swap Exact ETH F... | 21301396 | 11 days ago | IN | 0.00075073 ETH | 0.00443532 | ||||
Swap Exact Token... | 21296943 | 11 days ago | IN | 0 ETH | 0.00144181 | ||||
Swap Exact Token... | 21296925 | 11 days ago | IN | 0 ETH | 0.00175283 | ||||
Swap Exact ETH F... | 21296089 | 12 days ago | IN | 0.00022238 ETH | 0.00495879 | ||||
Swap Exact ETH F... | 21287368 | 13 days ago | IN | 0.0002386 ETH | 0.00587953 | ||||
Swap Exact ETH F... | 21286679 | 13 days ago | IN | 0.00001 ETH | 0.00350286 | ||||
Swap Exact ETH F... | 21286626 | 13 days ago | IN | 0.01005125 ETH | 0.00571992 | ||||
Swap Exact ETH F... | 21285933 | 13 days ago | IN | 0.0005 ETH | 0.00221059 | ||||
Swap Exact ETH F... | 21285718 | 13 days ago | IN | 0.00005 ETH | 0.00232729 | ||||
Swap Exact ETH F... | 21278253 | 14 days ago | IN | 0.00105285 ETH | 0.00406831 | ||||
Swap Exact ETH F... | 21278024 | 14 days ago | IN | 0.00012501 ETH | 0.00389998 | ||||
Swap Exact ETH F... | 21277517 | 14 days ago | IN | 0.00015263 ETH | 0.00379192 | ||||
Swap Exact ETH F... | 21277222 | 14 days ago | IN | 0.003 ETH | 0.00218066 | ||||
Swap Exact ETH F... | 21277202 | 14 days ago | IN | 0.00014596 ETH | 0.0028061 | ||||
Swap Exact ETH F... | 21277040 | 14 days ago | IN | 0.0001 ETH | 0.00195034 | ||||
Swap Exact Token... | 21275413 | 14 days ago | IN | 0 ETH | 0.00334252 | ||||
Swap Exact ETH F... | 21275117 | 14 days ago | IN | 0.00312557 ETH | 0.00388456 | ||||
Swap Exact ETH F... | 21274823 | 15 days ago | IN | 0.00112688 ETH | 0.00464704 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
21371341 | 36 hrs ago | 0.01270292 ETH | ||||
21371341 | 36 hrs ago | 0.00003822 ETH | ||||
21371341 | 36 hrs ago | 0.01274114 ETH | ||||
21359976 | 3 days ago | 0.0001 ETH | ||||
21328033 | 7 days ago | 0.0001485 ETH | ||||
21328033 | 7 days ago | 0.01213907 ETH | ||||
21323001 | 8 days ago | 0.0016973 ETH | ||||
21323001 | 8 days ago | 0.0000051 ETH | ||||
21323001 | 8 days ago | 0.00170241 ETH | ||||
21309917 | 10 days ago | 0.0001 ETH | ||||
21309256 | 10 days ago | 0.00012212 ETH | ||||
21309256 | 10 days ago | 0.0001 ETH | ||||
21305949 | 10 days ago | 0.00014792 ETH | ||||
21305949 | 10 days ago | 0.001 ETH | ||||
21303319 | 11 days ago | 0.00012225 ETH | ||||
21303319 | 11 days ago | 0.00001 ETH | ||||
21301396 | 11 days ago | 0.00005073 ETH | ||||
21301396 | 11 days ago | 0.0007 ETH | ||||
21301040 | 11 days ago | 0.00089873 ETH | ||||
21301040 | 11 days ago | 0.0000027 ETH | ||||
21301040 | 11 days ago | 0.00090144 ETH | ||||
21298945 | 11 days ago | 0.00327039 ETH | ||||
21298945 | 11 days ago | 0.00000984 ETH | ||||
21298945 | 11 days ago | 0.00328023 ETH | ||||
21296089 | 12 days ago | 0.00012238 ETH |
Loading...
Loading
Contract Name:
OMOEthereumUniswapAggregator
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 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 "../../interfaces/IBridge.sol"; import "../interfaces/IUniswapV2Pair.sol"; import "../../assets/interfaces/IWETH.sol"; import "./libraries/EthereumUniswapV2Library.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract OMOEthereumUniswapAggregator is Ownable { using SafeERC20 for IERC20; event LOG_AGG_SWAP ( address caller, uint256 amountIn, address tokenIn, uint256 amountOut, address tokenOut, address receiver, uint256 fee ); address public WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; address public factory = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f; address public bridge = 0xa39628ee6Ca80eb2D93f21Def75A7B4D03b82e1E; address public feeCollector; uint256 public aggregatorFee = 3 * 10 ** 7; uint256 public constant FEE_DENOMINATOR = 10 ** 10; uint256 private constant MAX_AGGREGATOR_FEE = 5 * 10**8; constructor (address _feeCollector) { require(_feeCollector != address(0), "feeCollector address cannot be zero"); feeCollector = _feeCollector; } receive() external payable { } function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, address[] calldata path, address to, uint amountOutMin, bool unwrapETH ) external { if (amountIn == 0) { require(msg.sender == IBridge(bridge).callProxy(), "invalid caller"); amountIn = IERC20(path[0]).allowance(msg.sender, address(this)); } require(amountIn != 0, 'OMOAggregator: ZERO_AMOUNT_IN'); uint amountOut = _swapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn, amountOutMin, path); uint feeAmount = amountOut * aggregatorFee / FEE_DENOMINATOR; address toToken = path[path.length-1]; if (unwrapETH) { require(toToken == WETH, "OMOAggregator: INVALID_PATH"); IWETH(WETH).withdraw(amountOut); _sendETH(feeCollector, feeAmount); _sendETH(to, amountOut - feeAmount); toToken = address(0); } else { IERC20(toToken).safeTransfer(feeCollector, feeAmount); IERC20(toToken).safeTransfer(to, amountOut - feeAmount); } emit LOG_AGG_SWAP(msg.sender, amountIn, path[0], amountOut, toToken, to, feeAmount); } function swapExactTokensForTokensSupportingFeeOnTransferTokensCrossChain( uint amountIn, uint amountOutMin, address[] calldata path, // args for dex uint32 destinationDomain, bytes32 recipient, bytes memory callData // args for bridge ) external payable { uint amountOut = _swapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn, amountOutMin, path); uint feeAmount = amountOut * aggregatorFee / FEE_DENOMINATOR; address bridgeToken = path[path.length-1]; IERC20(bridgeToken).safeTransfer(feeCollector, feeAmount); emit LOG_AGG_SWAP(msg.sender, amountIn, path[0], amountOut, bridgeToken, msg.sender, feeAmount); uint bridgeAmount = amountOut - feeAmount; IERC20(bridgeToken).safeApprove(bridge, bridgeAmount); IBridge(bridge).bridgeOut{value: msg.value}( bridgeToken, bridgeAmount, destinationDomain, recipient, callData ); } function _swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path ) internal returns (uint) { IERC20(path[0]).safeTransferFrom( msg.sender, EthereumUniswapV2Library.pairFor(factory, path[0], path[1]), amountIn ); uint balanceBefore = IERC20(path[path.length - 1]).balanceOf(address(this)); _swapSupportingFeeOnTransferTokens(path, address(this)); uint amountOut = IERC20(path[path.length - 1]).balanceOf(address(this)) - balanceBefore; require(amountOut >= amountOutMin, 'OMOAggregator: INSUFFICIENT_OUTPUT_AMOUNT'); return amountOut; } function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to ) external payable { uint amountOut = _swapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin, path, 0); uint feeAmount = amountOut * aggregatorFee / FEE_DENOMINATOR; emit LOG_AGG_SWAP(msg.sender, msg.value, address(0), amountOut, path[path.length-1], to, feeAmount); IERC20(path[path.length-1]).safeTransfer(feeCollector, feeAmount); IERC20(path[path.length - 1]).safeTransfer(to, amountOut - feeAmount); } function swapExactETHForTokensSupportingFeeOnTransferTokensCrossChain( uint amountOutMin, address[] calldata path, uint netFee, // args for dex uint32 destinationDomain, bytes32 recipient, bytes memory callData // args for bridge ) external payable { uint amountOut = _swapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin, path, netFee); uint feeAmount = amountOut * aggregatorFee / FEE_DENOMINATOR; address bridgeToken = path[path.length-1]; IERC20(bridgeToken).safeTransfer(feeCollector, feeAmount); emit LOG_AGG_SWAP(msg.sender, msg.value-netFee, address(0), amountOut, bridgeToken, msg.sender, feeAmount); uint bridgeAmount = amountOut - feeAmount; IERC20(bridgeToken).safeApprove(bridge, bridgeAmount); IBridge(bridge).bridgeOut{value: netFee}( bridgeToken, bridgeAmount, destinationDomain, recipient, callData ); } function _swapExactETHForTokensSupportingFeeOnTransferTokens( uint swapAmountOutMin, address[] calldata path, uint netFee ) internal returns (uint) { require(path[0] == WETH, 'OMOAggregator: INVALID_PATH'); uint amountIn = msg.value - netFee; require(amountIn > 0, 'OMOAggregator: INSUFFICIENT_INPUT_AMOUNT'); IWETH(WETH).deposit{value: amountIn}(); assert(IWETH(WETH).transfer(EthereumUniswapV2Library.pairFor(factory, path[0], path[1]), amountIn)); uint balanceBefore = IERC20(path[path.length - 1]).balanceOf(address(this)); _swapSupportingFeeOnTransferTokens(path, address(this)); uint amountOut = IERC20(path[path.length - 1]).balanceOf(address(this)) - balanceBefore; require(amountOut >= swapAmountOutMin, 'OMOAggregator: INSUFFICIENT_OUTPUT_AMOUNT'); return amountOut; } // **** SWAP (supporting fee-on-transfer tokens) **** // requires the initial amount to have already been sent to the first pair function _swapSupportingFeeOnTransferTokens(address[] memory path, address _to) internal { for (uint i; i < path.length - 1; i++) { (address input, address output) = (path[i], path[i + 1]); (address token0,) = EthereumUniswapV2Library.sortTokens(input, output); IUniswapV2Pair pair = IUniswapV2Pair(EthereumUniswapV2Library.pairFor(factory, input, output)); uint amountInput; uint amountOutput; { // scope to avoid stack too deep errors (uint reserve0, uint reserve1,) = pair.getReserves(); (uint reserveInput, uint reserveOutput) = input == token0 ? (reserve0, reserve1) : (reserve1, reserve0); amountInput = IERC20(input).balanceOf(address(pair)) - reserveInput; amountOutput = EthereumUniswapV2Library.getAmountOut(amountInput, reserveInput, reserveOutput); } (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOutput) : (amountOutput, uint(0)); address to = i < path.length - 2 ? EthereumUniswapV2Library.pairFor(factory, output, path[i + 2]) : _to; pair.swap(amount0Out, amount1Out, to, new bytes(0)); } } function _sendETH(address to, uint256 amount) internal { (bool success,) = to.call{value:amount}(new bytes(0)); require(success, 'OMOAggregator: ETH_TRANSFER_FAILED'); } function setWETH(address _weth) external onlyOwner { WETH = _weth; } function setFactory(address _factory) external onlyOwner { require(_factory != address(0), "factory address cannot be zero"); factory = _factory; } function setBridge(address _bridge) external onlyOwner { require(_bridge != address(0), "bridge address cannot be zero"); bridge = _bridge; } function setFeeCollector(address _feeCollector) external onlyOwner { feeCollector = _feeCollector; } function setAggregatorFee(uint _fee) external onlyOwner { require(_fee < MAX_AGGREGATOR_FEE, "aggregator fee exceeds maximum"); aggregatorFee = _fee; } function rescueFund(address tokenAddress) external onlyOwner { IERC20 token = IERC20(tokenAddress); if (tokenAddress == WETH && address(this).balance > 0) { _sendETH(msg.sender, address(this).balance); } token.safeTransfer(msg.sender, token.balanceOf(address(this))); } }
// 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 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: AGPL-3.0 pragma solidity 0.8.17; 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: AGPL-3.0 pragma solidity >=0.8.0; import '../../interfaces/IUniswapV2Pair.sol'; library EthereumUniswapV2Library { // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS'); } // calculates the CREATE2 address for a pair without making any external calls function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) { (address token0, address token1) = sortTokens(tokenA, tokenB); pair = address(uint160(uint(keccak256(abi.encodePacked( hex'ff', factory, keccak256(abi.encodePacked(token0, token1)), hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash ))))); } // fetches and sorts the reserves for a pair function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) { (address token0,) = sortTokens(tokenA, tokenB); (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves(); (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0); } // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) { require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT'); require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); amountB = (amountA * reserveB) / reserveA; } // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) { require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint amountInWithFee = amountIn * 997; uint numerator = amountInWithFee * reserveOut; uint denominator = (reserveIn * 1000) + amountInWithFee; amountOut = numerator / denominator; } // given an output amount of an asset and pair reserves, returns a required input amount of the other asset function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) { require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint numerator = reserveIn * amountOut * 1000; uint denominator = (reserveOut - amountOut) * 997; amountIn = (numerator / denominator) + 1; } // performs chained getAmountOut calculations on any number of pairs function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[0] = amountIn; for (uint i; i < path.length - 1; i++) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]); amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut); } } // performs chained getAmountIn calculations on any number of pairs function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[amounts.length - 1] = amountOut; for (uint i = path.length - 1; i > 0; i--) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]); amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut); } } }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity >=0.8.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
// 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: AGPL-3.0 pragma solidity ^0.8.0; interface IBridge { function callProxy() external returns (address); function bridgeOut( address token, uint256 amount, uint32 destinationDomain, bytes32 recipient, bytes calldata callData ) external payable; function bridgeIn( bytes calldata args, bytes calldata attestation ) external; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
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":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"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":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aggregatorFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setAggregatorFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"setBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"}],"name":"setFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_weth","type":"address"}],"name":"setWETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"swapExactETHForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"uint256","name":"netFee","type":"uint256"},{"internalType":"uint32","name":"destinationDomain","type":"uint32"},{"internalType":"bytes32","name":"recipient","type":"bytes32"},{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"swapExactETHForTokensSupportingFeeOnTransferTokensCrossChain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"bool","name":"unwrapETH","type":"bool"}],"name":"swapExactTokensForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"uint32","name":"destinationDomain","type":"uint32"},{"internalType":"bytes32","name":"recipient","type":"bytes32"},{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"swapExactTokensForTokensSupportingFeeOnTransferTokensCrossChain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600180546001600160a01b031990811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc217909155600280548216735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f1790556003805490911673a39628ee6ca80eb2d93f21def75a7b4d03b82e1e1790556301c9c3806005553480156200007f57600080fd5b506040516200279a3803806200279a833981016040819052620000a2916200018a565b620000ad336200013a565b6001600160a01b038116620001145760405162461bcd60e51b815260206004820152602360248201527f666565436f6c6c6563746f7220616464726573732063616e6e6f74206265207a60448201526265726f60e81b606482015260840160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055620001bc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200019d57600080fd5b81516001600160a01b0381168114620001b557600080fd5b9392505050565b6125ce80620001cc6000396000f3fe60806040526004361061010d5760003560e01c8063a42dce8011610095578063c415b95c11610064578063c415b95c146102af578063c45a0155146102cf578063d73792a9146102ef578063e78cea9214610308578063f2fde38b1461032857600080fd5b8063a42dce801461022f578063ad5c46481461024f578063b10dd68f1461026f578063b8c6fd841461028f57600080fd5b80638da5cb5b116100dc5780638da5cb5b1461018e5780638dd14802146101c55780639472c171146101e55780639ed5b4dd146101f85780639fdf5aa41461021c57600080fd5b806314c8912a14610119578063355466c81461012e5780635b769f3c1461014e5780635bb478081461016e57600080fd5b3661011457005b600080fd5b61012c610127366004612025565b610348565b005b34801561013a57600080fd5b5061012c6101493660046120c0565b6104a7565b34801561015a57600080fd5b5061012c6101693660046120ee565b610532565b34801561017a57600080fd5b5061012c6101893660046120ee565b61057e565b34801561019a57600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d157600080fd5b5061012c6101e03660046120ee565b610620565b61012c6101f3366004612112565b6106c2565b34801561020457600080fd5b5061020e60055481565b6040519081526020016101bc565b61012c61022a366004612171565b6107cc565b34801561023b57600080fd5b5061012c61024a3660046120ee565b610909565b34801561025b57600080fd5b506001546101a8906001600160a01b031681565b34801561027b57600080fd5b5061012c61028a3660046121e1565b610955565b34801561029b57600080fd5b5061012c6102aa3660046120ee565b610d08565b3480156102bb57600080fd5b506004546101a8906001600160a01b031681565b3480156102db57600080fd5b506002546101a8906001600160a01b031681565b3480156102fb57600080fd5b5061020e6402540be40081565b34801561031457600080fd5b506003546101a8906001600160a01b031681565b34801561033457600080fd5b5061012c6103433660046120ee565b610dd2565b600061035688888888610e6d565b905060006402540be4006005548361036e9190612273565b6103789190612290565b9050600088886103896001826122b2565b818110610398576103986122c5565b90506020020160208101906103ad91906120ee565b6004549091506103ca906001600160a01b03808416911684611270565b600080516020612579833981519152336103e489346122b2565b6000868533886040516103fd97969594939291906122db565b60405180910390a1600061041183856122b2565b60035490915061042e906001600160a01b038481169116836112d8565b6003546040516335b53a3760e01b81526001600160a01b03909116906335b53a37908a9061046890869086908d908d908d9060040161236d565b6000604051808303818588803b15801561048157600080fd5b505af1158015610495573d6000803e3d6000fd5b50505050505050505050505050505050565b6000546001600160a01b031633146104da5760405162461bcd60e51b81526004016104d1906123a6565b60405180910390fd5b631dcd6500811061052d5760405162461bcd60e51b815260206004820152601e60248201527f61676772656761746f72206665652065786365656473206d6178696d756d000060448201526064016104d1565b600555565b6000546001600160a01b0316331461055c5760405162461bcd60e51b81526004016104d1906123a6565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146105a85760405162461bcd60e51b81526004016104d1906123a6565b6001600160a01b0381166105fe5760405162461bcd60e51b815260206004820152601e60248201527f666163746f727920616464726573732063616e6e6f74206265207a65726f000060448201526064016104d1565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461064a5760405162461bcd60e51b81526004016104d1906123a6565b6001600160a01b0381166106a05760405162461bcd60e51b815260206004820152601d60248201527f62726964676520616464726573732063616e6e6f74206265207a65726f00000060448201526064016104d1565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b60006106d18585856000610e6d565b905060006402540be400600554836106e99190612273565b6106f39190612290565b9050600080516020612579833981519152333460008589896107166001826122b2565b818110610725576107256122c5565b905060200201602081019061073a91906120ee565b888760405161074f97969594939291906122db565b60405180910390a16004546107a9906001600160a01b03168287876107756001826122b2565b818110610784576107846122c5565b905060200201602081019061079991906120ee565b6001600160a01b03169190611270565b6107c4836107b783856122b2565b87876107756001826122b2565b505050505050565b60006107da888888886113ed565b905060006402540be400600554836107f29190612273565b6107fc9190612290565b90506000878761080d6001826122b2565b81811061081c5761081c6122c5565b905060200201602081019061083191906120ee565b60045490915061084e906001600160a01b03808416911684611270565b600080516020612579833981519152338b8a8a6000818110610872576108726122c5565b905060200201602081019061088791906120ee565b8685338860405161089e97969594939291906122db565b60405180910390a160006108b283856122b2565b6003549091506108cf906001600160a01b038481169116836112d8565b6003546040516335b53a3760e01b81526001600160a01b03909116906335b53a3790349061046890869086908d908d908d9060040161236d565b6000546001600160a01b031633146109335760405162461bcd60e51b81526004016104d1906123a6565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b85600003610ac257600360009054906101000a90046001600160a01b03166001600160a01b0316632da688ac6040518163ffffffff1660e01b81526004016020604051808303816000875af11580156109b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d691906123db565b6001600160a01b0316336001600160a01b031614610a275760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21031b0b63632b960911b60448201526064016104d1565b84846000818110610a3a57610a3a6122c5565b9050602002016020810190610a4f91906120ee565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b03919091169063dd62ed3e90604401602060405180830381865afa158015610a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abf91906123f8565b95505b85600003610b125760405162461bcd60e51b815260206004820152601d60248201527f4f4d4f41676772656761746f723a205a45524f5f414d4f554e545f494e00000060448201526064016104d1565b6000610b20878488886113ed565b905060006402540be40060055483610b389190612273565b610b429190612290565b905060008787610b536001826122b2565b818110610b6257610b626122c5565b9050602002016020810190610b7791906120ee565b90508315610c6c576001546001600160a01b03828116911614610bdc5760405162461bcd60e51b815260206004820152601b60248201527f4f4d4f41676772656761746f723a20494e56414c49445f50415448000000000060448201526064016104d1565b600154604051632e1a7d4d60e01b8152600481018590526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015610c2257600080fd5b505af1158015610c36573d6000803e3d6000fd5b5050600454610c5192506001600160a01b0316905083611629565b610c6486610c5f84866122b2565b611629565b506000610ca5565b600454610c86906001600160a01b03838116911684611270565b610ca586610c9484866122b2565b6001600160a01b0384169190611270565b600080516020612579833981519152338a8a8a6000818110610cc957610cc96122c5565b9050602002016020810190610cde91906120ee565b86858b88604051610cf597969594939291906122db565b60405180910390a1505050505050505050565b6000546001600160a01b03163314610d325760405162461bcd60e51b81526004016104d1906123a6565b60015481906001600160a01b038083169116148015610d515750600047115b15610d6057610d603347611629565b6040516370a0823160e01b8152306004820152610dce9033906001600160a01b038416906370a0823190602401602060405180830381865afa158015610daa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9491906123f8565b5050565b6000546001600160a01b03163314610dfc5760405162461bcd60e51b81526004016104d1906123a6565b6001600160a01b038116610e615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d1565b610e6a816116f1565b50565b6001546000906001600160a01b031684848381610e8c57610e8c6122c5565b9050602002016020810190610ea191906120ee565b6001600160a01b031614610ef75760405162461bcd60e51b815260206004820152601b60248201527f4f4d4f41676772656761746f723a20494e56414c49445f50415448000000000060448201526064016104d1565b6000610f0383346122b2565b905060008111610f665760405162461bcd60e51b815260206004820152602860248201527f4f4d4f41676772656761746f723a20494e53554646494349454e545f494e50556044820152671517d05353d5539560c21b60648201526084016104d1565b600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610fb657600080fd5b505af1158015610fca573d6000803e3d6000fd5b50506001546002546001600160a01b03918216945063a9059cbb935061103f9250168888600081610ffd57610ffd6122c5565b905060200201602081019061101291906120ee565b89896001818110611025576110256122c5565b905060200201602081019061103a91906120ee565b611741565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561108c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b09190612411565b6110bc576110bc61242e565b600085856110cb6001826122b2565b8181106110da576110da6122c5565b90506020020160208101906110ef91906120ee565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015611135573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115991906123f8565b905061119986868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525030925061181a915050565b60008187876111a96001826122b2565b8181106111b8576111b86122c5565b90506020020160208101906111cd91906120ee565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015611213573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123791906123f8565b61124191906122b2565b9050878110156112635760405162461bcd60e51b81526004016104d190612444565b925050505b949350505050565b6040516001600160a01b0383166024820152604481018290526112d390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611af1565b505050565b8015806113525750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa15801561132c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135091906123f8565b155b6113bd5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016104d1565b6040516001600160a01b0383166024820152604481018290526112d390849063095ea7b360e01b9060640161129c565b60025460009061147890339061143e906001600160a01b031686868681611416576114166122c5565b905060200201602081019061142b91906120ee565b87876001818110611025576110256122c5565b8786866000818110611452576114526122c5565b905060200201602081019061146791906120ee565b6001600160a01b0316929190611bc3565b600083836114876001826122b2565b818110611496576114966122c5565b90506020020160208101906114ab91906120ee565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156114f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151591906123f8565b905061155584848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525030925061181a915050565b60008185856115656001826122b2565b818110611574576115746122c5565b905060200201602081019061158991906120ee565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156115cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f391906123f8565b6115fd91906122b2565b90508581101561161f5760405162461bcd60e51b81526004016104d190612444565b9695505050505050565b604080516000808252602082019092526001600160a01b038416908390604051611653919061248d565b60006040518083038185875af1925050503d8060008114611690576040519150601f19603f3d011682016040523d82523d6000602084013e611695565b606091505b50509050806112d35760405162461bcd60e51b815260206004820152602260248201527f4f4d4f41676772656761746f723a204554485f5452414e534645525f4641494c604482015261115160f21b60648201526084016104d1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060006117508585611c01565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015291935091508690604801604051602081830303815290604052805190602001206040516020016117f89291906001600160f81b0319815260609290921b6bffffffffffffffffffffffff1916600183015260158201527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b60005b6001835161182b91906122b2565b8110156112d357600080848381518110611847576118476122c5565b60200260200101518584600161185d91906124a9565b8151811061186d5761186d6122c5565b60200260200101519150915060006118858383611c01565b506002549091506000906118a3906001600160a01b03168585611741565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156118e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190d91906124d8565b506001600160701b031691506001600160701b03169150600080876001600160a01b03168a6001600160a01b03161461194757828461194a565b83835b6040516370a0823160e01b81526001600160a01b038a8116600483015292945090925083918c16906370a0823190602401602060405180830381865afa158015611998573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119bc91906123f8565b6119c691906122b2565b95506119d3868383611cf8565b945050505050600080856001600160a01b0316886001600160a01b0316146119fd57826000611a01565b6000835b91509150600060028c51611a1591906122b2565b8a10611a21578a611a61565b60028054611a61916001600160a01b03909116908a908f90611a44908f906124a9565b81518110611a5457611a546122c5565b6020026020010151611741565b6040805160008152602081019182905263022c0d9f60e01b9091529091506001600160a01b0387169063022c0d9f90611aa3908690869086906024810161251f565b600060405180830381600087803b158015611abd57600080fd5b505af1158015611ad1573d6000803e3d6000fd5b505050505050505050505050508080611ae99061254c565b91505061181d565b6000611b46826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e189092919063ffffffff16565b8051909150156112d35780806020019051810190611b649190612411565b6112d35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104d1565b6040516001600160a01b0380851660248301528316604482015260648101829052611bfb9085906323b872dd60e01b9060840161129c565b50505050565b600080826001600160a01b0316846001600160a01b031603611c735760405162461bcd60e51b815260206004820152602560248201527f556e697377617056324c6962726172793a204944454e544943414c5f41444452604482015264455353455360d81b60648201526084016104d1565b826001600160a01b0316846001600160a01b031610611c93578284611c96565b83835b90925090506001600160a01b038216611cf15760405162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f41444452455353000060448201526064016104d1565b9250929050565b6000808411611d5d5760405162461bcd60e51b815260206004820152602b60248201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4960448201526a1394155517d05353d5539560aa1b60648201526084016104d1565b600083118015611d6d5750600082115b611dca5760405162461bcd60e51b815260206004820152602860248201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4c604482015267495155494449545960c01b60648201526084016104d1565b6000611dd8856103e5612273565b90506000611de68483612273565b9050600082611df7876103e8612273565b611e0191906124a9565b9050611e0d8183612290565b979650505050505050565b6060611268848460008585600080866001600160a01b03168587604051611e3f919061248d565b60006040518083038185875af1925050503d8060008114611e7c576040519150601f19603f3d011682016040523d82523d6000602084013e611e81565b606091505b50915091506112638783838760608315611efc578251600003611ef5576001600160a01b0385163b611ef55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104d1565b5081611268565b6112688383815115611f115781518083602001fd5b8060405162461bcd60e51b81526004016104d19190612565565b60008083601f840112611f3d57600080fd5b50813567ffffffffffffffff811115611f5557600080fd5b6020830191508360208260051b8501011115611cf157600080fd5b63ffffffff81168114610e6a57600080fd5b634e487b7160e01b600052604160045260246000fd5b600082601f830112611fa957600080fd5b813567ffffffffffffffff80821115611fc457611fc4611f82565b604051601f8301601f19908116603f01168101908282118183101715611fec57611fec611f82565b8160405283815286602085880101111561200557600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600060c0888a03121561204057600080fd5b87359650602088013567ffffffffffffffff8082111561205f57600080fd5b61206b8b838c01611f2b565b909850965060408a0135955060608a0135915061208782611f70565b9093506080890135925060a089013590808211156120a457600080fd5b506120b18a828b01611f98565b91505092959891949750929550565b6000602082840312156120d257600080fd5b5035919050565b6001600160a01b0381168114610e6a57600080fd5b60006020828403121561210057600080fd5b813561210b816120d9565b9392505050565b6000806000806060858703121561212857600080fd5b84359350602085013567ffffffffffffffff81111561214657600080fd5b61215287828801611f2b565b9094509250506040850135612166816120d9565b939692955090935050565b600080600080600080600060c0888a03121561218c57600080fd5b8735965060208801359550604088013567ffffffffffffffff808211156121b257600080fd5b6121be8b838c01611f2b565b909750955060608a0135915061208782611f70565b8015158114610e6a57600080fd5b60008060008060008060a087890312156121fa57600080fd5b86359550602087013567ffffffffffffffff81111561221857600080fd5b61222489828a01611f2b565b9096509450506040870135612238816120d9565b925060608701359150608087013561224f816121d3565b809150509295509295509295565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761228a5761228a61225d565b92915050565b6000826122ad57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561228a5761228a61225d565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0397881681526020810196909652938616604086015260608501929092528416608084015290921660a082015260c081019190915260e00190565b60005b83811015612338578181015183820152602001612320565b50506000910152565b6000815180845261235981602086016020860161231d565b601f01601f19169290920160200192915050565b60018060a01b038616815284602082015263ffffffff8416604082015282606082015260a060808201526000611e0d60a0830184612341565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156123ed57600080fd5b815161210b816120d9565b60006020828403121561240a57600080fd5b5051919050565b60006020828403121561242357600080fd5b815161210b816121d3565b634e487b7160e01b600052600160045260246000fd5b60208082526029908201527f4f4d4f41676772656761746f723a20494e53554646494349454e545f4f555450604082015268155517d05353d5539560ba1b606082015260800190565b6000825161249f81846020870161231d565b9190910192915050565b8082018082111561228a5761228a61225d565b80516001600160701b03811681146124d357600080fd5b919050565b6000806000606084860312156124ed57600080fd5b6124f6846124bc565b9250612504602085016124bc565b9150604084015161251481611f70565b809150509250925092565b84815283602082015260018060a01b038316604082015260806060820152600061161f6080830184612341565b60006001820161255e5761255e61225d565b5060010190565b60208152600061210b602083018461234156feb12e9d11a497e0551b14e8ebbe378a5639cdf291d17bfa65c8083f8747682fc1a2646970667358221220fc21f203e0058f4dfa75ed3c0d860edd7af6728e040dc5214762ea7b7a21672964736f6c63430008110033000000000000000000000000a81dc97fc2f5df4c1dc39cd9dc20ec778ee31700
Deployed Bytecode
0x60806040526004361061010d5760003560e01c8063a42dce8011610095578063c415b95c11610064578063c415b95c146102af578063c45a0155146102cf578063d73792a9146102ef578063e78cea9214610308578063f2fde38b1461032857600080fd5b8063a42dce801461022f578063ad5c46481461024f578063b10dd68f1461026f578063b8c6fd841461028f57600080fd5b80638da5cb5b116100dc5780638da5cb5b1461018e5780638dd14802146101c55780639472c171146101e55780639ed5b4dd146101f85780639fdf5aa41461021c57600080fd5b806314c8912a14610119578063355466c81461012e5780635b769f3c1461014e5780635bb478081461016e57600080fd5b3661011457005b600080fd5b61012c610127366004612025565b610348565b005b34801561013a57600080fd5b5061012c6101493660046120c0565b6104a7565b34801561015a57600080fd5b5061012c6101693660046120ee565b610532565b34801561017a57600080fd5b5061012c6101893660046120ee565b61057e565b34801561019a57600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d157600080fd5b5061012c6101e03660046120ee565b610620565b61012c6101f3366004612112565b6106c2565b34801561020457600080fd5b5061020e60055481565b6040519081526020016101bc565b61012c61022a366004612171565b6107cc565b34801561023b57600080fd5b5061012c61024a3660046120ee565b610909565b34801561025b57600080fd5b506001546101a8906001600160a01b031681565b34801561027b57600080fd5b5061012c61028a3660046121e1565b610955565b34801561029b57600080fd5b5061012c6102aa3660046120ee565b610d08565b3480156102bb57600080fd5b506004546101a8906001600160a01b031681565b3480156102db57600080fd5b506002546101a8906001600160a01b031681565b3480156102fb57600080fd5b5061020e6402540be40081565b34801561031457600080fd5b506003546101a8906001600160a01b031681565b34801561033457600080fd5b5061012c6103433660046120ee565b610dd2565b600061035688888888610e6d565b905060006402540be4006005548361036e9190612273565b6103789190612290565b9050600088886103896001826122b2565b818110610398576103986122c5565b90506020020160208101906103ad91906120ee565b6004549091506103ca906001600160a01b03808416911684611270565b600080516020612579833981519152336103e489346122b2565b6000868533886040516103fd97969594939291906122db565b60405180910390a1600061041183856122b2565b60035490915061042e906001600160a01b038481169116836112d8565b6003546040516335b53a3760e01b81526001600160a01b03909116906335b53a37908a9061046890869086908d908d908d9060040161236d565b6000604051808303818588803b15801561048157600080fd5b505af1158015610495573d6000803e3d6000fd5b50505050505050505050505050505050565b6000546001600160a01b031633146104da5760405162461bcd60e51b81526004016104d1906123a6565b60405180910390fd5b631dcd6500811061052d5760405162461bcd60e51b815260206004820152601e60248201527f61676772656761746f72206665652065786365656473206d6178696d756d000060448201526064016104d1565b600555565b6000546001600160a01b0316331461055c5760405162461bcd60e51b81526004016104d1906123a6565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146105a85760405162461bcd60e51b81526004016104d1906123a6565b6001600160a01b0381166105fe5760405162461bcd60e51b815260206004820152601e60248201527f666163746f727920616464726573732063616e6e6f74206265207a65726f000060448201526064016104d1565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461064a5760405162461bcd60e51b81526004016104d1906123a6565b6001600160a01b0381166106a05760405162461bcd60e51b815260206004820152601d60248201527f62726964676520616464726573732063616e6e6f74206265207a65726f00000060448201526064016104d1565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b60006106d18585856000610e6d565b905060006402540be400600554836106e99190612273565b6106f39190612290565b9050600080516020612579833981519152333460008589896107166001826122b2565b818110610725576107256122c5565b905060200201602081019061073a91906120ee565b888760405161074f97969594939291906122db565b60405180910390a16004546107a9906001600160a01b03168287876107756001826122b2565b818110610784576107846122c5565b905060200201602081019061079991906120ee565b6001600160a01b03169190611270565b6107c4836107b783856122b2565b87876107756001826122b2565b505050505050565b60006107da888888886113ed565b905060006402540be400600554836107f29190612273565b6107fc9190612290565b90506000878761080d6001826122b2565b81811061081c5761081c6122c5565b905060200201602081019061083191906120ee565b60045490915061084e906001600160a01b03808416911684611270565b600080516020612579833981519152338b8a8a6000818110610872576108726122c5565b905060200201602081019061088791906120ee565b8685338860405161089e97969594939291906122db565b60405180910390a160006108b283856122b2565b6003549091506108cf906001600160a01b038481169116836112d8565b6003546040516335b53a3760e01b81526001600160a01b03909116906335b53a3790349061046890869086908d908d908d9060040161236d565b6000546001600160a01b031633146109335760405162461bcd60e51b81526004016104d1906123a6565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b85600003610ac257600360009054906101000a90046001600160a01b03166001600160a01b0316632da688ac6040518163ffffffff1660e01b81526004016020604051808303816000875af11580156109b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d691906123db565b6001600160a01b0316336001600160a01b031614610a275760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21031b0b63632b960911b60448201526064016104d1565b84846000818110610a3a57610a3a6122c5565b9050602002016020810190610a4f91906120ee565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b03919091169063dd62ed3e90604401602060405180830381865afa158015610a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abf91906123f8565b95505b85600003610b125760405162461bcd60e51b815260206004820152601d60248201527f4f4d4f41676772656761746f723a205a45524f5f414d4f554e545f494e00000060448201526064016104d1565b6000610b20878488886113ed565b905060006402540be40060055483610b389190612273565b610b429190612290565b905060008787610b536001826122b2565b818110610b6257610b626122c5565b9050602002016020810190610b7791906120ee565b90508315610c6c576001546001600160a01b03828116911614610bdc5760405162461bcd60e51b815260206004820152601b60248201527f4f4d4f41676772656761746f723a20494e56414c49445f50415448000000000060448201526064016104d1565b600154604051632e1a7d4d60e01b8152600481018590526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015610c2257600080fd5b505af1158015610c36573d6000803e3d6000fd5b5050600454610c5192506001600160a01b0316905083611629565b610c6486610c5f84866122b2565b611629565b506000610ca5565b600454610c86906001600160a01b03838116911684611270565b610ca586610c9484866122b2565b6001600160a01b0384169190611270565b600080516020612579833981519152338a8a8a6000818110610cc957610cc96122c5565b9050602002016020810190610cde91906120ee565b86858b88604051610cf597969594939291906122db565b60405180910390a1505050505050505050565b6000546001600160a01b03163314610d325760405162461bcd60e51b81526004016104d1906123a6565b60015481906001600160a01b038083169116148015610d515750600047115b15610d6057610d603347611629565b6040516370a0823160e01b8152306004820152610dce9033906001600160a01b038416906370a0823190602401602060405180830381865afa158015610daa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9491906123f8565b5050565b6000546001600160a01b03163314610dfc5760405162461bcd60e51b81526004016104d1906123a6565b6001600160a01b038116610e615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d1565b610e6a816116f1565b50565b6001546000906001600160a01b031684848381610e8c57610e8c6122c5565b9050602002016020810190610ea191906120ee565b6001600160a01b031614610ef75760405162461bcd60e51b815260206004820152601b60248201527f4f4d4f41676772656761746f723a20494e56414c49445f50415448000000000060448201526064016104d1565b6000610f0383346122b2565b905060008111610f665760405162461bcd60e51b815260206004820152602860248201527f4f4d4f41676772656761746f723a20494e53554646494349454e545f494e50556044820152671517d05353d5539560c21b60648201526084016104d1565b600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610fb657600080fd5b505af1158015610fca573d6000803e3d6000fd5b50506001546002546001600160a01b03918216945063a9059cbb935061103f9250168888600081610ffd57610ffd6122c5565b905060200201602081019061101291906120ee565b89896001818110611025576110256122c5565b905060200201602081019061103a91906120ee565b611741565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561108c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b09190612411565b6110bc576110bc61242e565b600085856110cb6001826122b2565b8181106110da576110da6122c5565b90506020020160208101906110ef91906120ee565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015611135573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115991906123f8565b905061119986868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525030925061181a915050565b60008187876111a96001826122b2565b8181106111b8576111b86122c5565b90506020020160208101906111cd91906120ee565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015611213573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123791906123f8565b61124191906122b2565b9050878110156112635760405162461bcd60e51b81526004016104d190612444565b925050505b949350505050565b6040516001600160a01b0383166024820152604481018290526112d390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611af1565b505050565b8015806113525750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa15801561132c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135091906123f8565b155b6113bd5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016104d1565b6040516001600160a01b0383166024820152604481018290526112d390849063095ea7b360e01b9060640161129c565b60025460009061147890339061143e906001600160a01b031686868681611416576114166122c5565b905060200201602081019061142b91906120ee565b87876001818110611025576110256122c5565b8786866000818110611452576114526122c5565b905060200201602081019061146791906120ee565b6001600160a01b0316929190611bc3565b600083836114876001826122b2565b818110611496576114966122c5565b90506020020160208101906114ab91906120ee565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156114f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151591906123f8565b905061155584848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525030925061181a915050565b60008185856115656001826122b2565b818110611574576115746122c5565b905060200201602081019061158991906120ee565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156115cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f391906123f8565b6115fd91906122b2565b90508581101561161f5760405162461bcd60e51b81526004016104d190612444565b9695505050505050565b604080516000808252602082019092526001600160a01b038416908390604051611653919061248d565b60006040518083038185875af1925050503d8060008114611690576040519150601f19603f3d011682016040523d82523d6000602084013e611695565b606091505b50509050806112d35760405162461bcd60e51b815260206004820152602260248201527f4f4d4f41676772656761746f723a204554485f5452414e534645525f4641494c604482015261115160f21b60648201526084016104d1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060006117508585611c01565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015291935091508690604801604051602081830303815290604052805190602001206040516020016117f89291906001600160f81b0319815260609290921b6bffffffffffffffffffffffff1916600183015260158201527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b60005b6001835161182b91906122b2565b8110156112d357600080848381518110611847576118476122c5565b60200260200101518584600161185d91906124a9565b8151811061186d5761186d6122c5565b60200260200101519150915060006118858383611c01565b506002549091506000906118a3906001600160a01b03168585611741565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156118e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190d91906124d8565b506001600160701b031691506001600160701b03169150600080876001600160a01b03168a6001600160a01b03161461194757828461194a565b83835b6040516370a0823160e01b81526001600160a01b038a8116600483015292945090925083918c16906370a0823190602401602060405180830381865afa158015611998573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119bc91906123f8565b6119c691906122b2565b95506119d3868383611cf8565b945050505050600080856001600160a01b0316886001600160a01b0316146119fd57826000611a01565b6000835b91509150600060028c51611a1591906122b2565b8a10611a21578a611a61565b60028054611a61916001600160a01b03909116908a908f90611a44908f906124a9565b81518110611a5457611a546122c5565b6020026020010151611741565b6040805160008152602081019182905263022c0d9f60e01b9091529091506001600160a01b0387169063022c0d9f90611aa3908690869086906024810161251f565b600060405180830381600087803b158015611abd57600080fd5b505af1158015611ad1573d6000803e3d6000fd5b505050505050505050505050508080611ae99061254c565b91505061181d565b6000611b46826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e189092919063ffffffff16565b8051909150156112d35780806020019051810190611b649190612411565b6112d35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104d1565b6040516001600160a01b0380851660248301528316604482015260648101829052611bfb9085906323b872dd60e01b9060840161129c565b50505050565b600080826001600160a01b0316846001600160a01b031603611c735760405162461bcd60e51b815260206004820152602560248201527f556e697377617056324c6962726172793a204944454e544943414c5f41444452604482015264455353455360d81b60648201526084016104d1565b826001600160a01b0316846001600160a01b031610611c93578284611c96565b83835b90925090506001600160a01b038216611cf15760405162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f41444452455353000060448201526064016104d1565b9250929050565b6000808411611d5d5760405162461bcd60e51b815260206004820152602b60248201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4960448201526a1394155517d05353d5539560aa1b60648201526084016104d1565b600083118015611d6d5750600082115b611dca5760405162461bcd60e51b815260206004820152602860248201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4c604482015267495155494449545960c01b60648201526084016104d1565b6000611dd8856103e5612273565b90506000611de68483612273565b9050600082611df7876103e8612273565b611e0191906124a9565b9050611e0d8183612290565b979650505050505050565b6060611268848460008585600080866001600160a01b03168587604051611e3f919061248d565b60006040518083038185875af1925050503d8060008114611e7c576040519150601f19603f3d011682016040523d82523d6000602084013e611e81565b606091505b50915091506112638783838760608315611efc578251600003611ef5576001600160a01b0385163b611ef55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104d1565b5081611268565b6112688383815115611f115781518083602001fd5b8060405162461bcd60e51b81526004016104d19190612565565b60008083601f840112611f3d57600080fd5b50813567ffffffffffffffff811115611f5557600080fd5b6020830191508360208260051b8501011115611cf157600080fd5b63ffffffff81168114610e6a57600080fd5b634e487b7160e01b600052604160045260246000fd5b600082601f830112611fa957600080fd5b813567ffffffffffffffff80821115611fc457611fc4611f82565b604051601f8301601f19908116603f01168101908282118183101715611fec57611fec611f82565b8160405283815286602085880101111561200557600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600060c0888a03121561204057600080fd5b87359650602088013567ffffffffffffffff8082111561205f57600080fd5b61206b8b838c01611f2b565b909850965060408a0135955060608a0135915061208782611f70565b9093506080890135925060a089013590808211156120a457600080fd5b506120b18a828b01611f98565b91505092959891949750929550565b6000602082840312156120d257600080fd5b5035919050565b6001600160a01b0381168114610e6a57600080fd5b60006020828403121561210057600080fd5b813561210b816120d9565b9392505050565b6000806000806060858703121561212857600080fd5b84359350602085013567ffffffffffffffff81111561214657600080fd5b61215287828801611f2b565b9094509250506040850135612166816120d9565b939692955090935050565b600080600080600080600060c0888a03121561218c57600080fd5b8735965060208801359550604088013567ffffffffffffffff808211156121b257600080fd5b6121be8b838c01611f2b565b909750955060608a0135915061208782611f70565b8015158114610e6a57600080fd5b60008060008060008060a087890312156121fa57600080fd5b86359550602087013567ffffffffffffffff81111561221857600080fd5b61222489828a01611f2b565b9096509450506040870135612238816120d9565b925060608701359150608087013561224f816121d3565b809150509295509295509295565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761228a5761228a61225d565b92915050565b6000826122ad57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561228a5761228a61225d565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0397881681526020810196909652938616604086015260608501929092528416608084015290921660a082015260c081019190915260e00190565b60005b83811015612338578181015183820152602001612320565b50506000910152565b6000815180845261235981602086016020860161231d565b601f01601f19169290920160200192915050565b60018060a01b038616815284602082015263ffffffff8416604082015282606082015260a060808201526000611e0d60a0830184612341565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156123ed57600080fd5b815161210b816120d9565b60006020828403121561240a57600080fd5b5051919050565b60006020828403121561242357600080fd5b815161210b816121d3565b634e487b7160e01b600052600160045260246000fd5b60208082526029908201527f4f4d4f41676772656761746f723a20494e53554646494349454e545f4f555450604082015268155517d05353d5539560ba1b606082015260800190565b6000825161249f81846020870161231d565b9190910192915050565b8082018082111561228a5761228a61225d565b80516001600160701b03811681146124d357600080fd5b919050565b6000806000606084860312156124ed57600080fd5b6124f6846124bc565b9250612504602085016124bc565b9150604084015161251481611f70565b809150509250925092565b84815283602082015260018060a01b038316604082015260806060820152600061161f6080830184612341565b60006001820161255e5761255e61225d565b5060010190565b60208152600061210b602083018461234156feb12e9d11a497e0551b14e8ebbe378a5639cdf291d17bfa65c8083f8747682fc1a2646970667358221220fc21f203e0058f4dfa75ed3c0d860edd7af6728e040dc5214762ea7b7a21672964736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a81dc97fc2f5df4c1dc39cd9dc20ec778ee31700
-----Decoded View---------------
Arg [0] : _feeCollector (address): 0xa81Dc97Fc2f5Df4c1dc39cd9dC20ec778ee31700
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a81dc97fc2f5df4c1dc39cd9dc20ec778ee31700
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
OP | 100.00% | $3,833.64 | 0.001 | $3.83 |
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.