More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 706 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Handle Intent | 21463292 | 42 mins ago | IN | 0.101 ETH | 0.00104995 | ||||
Handle Intent | 21463272 | 46 mins ago | IN | 0.101 ETH | 0.00097383 | ||||
Handle Intent | 21463069 | 1 hr ago | IN | 0 ETH | 0.00044817 | ||||
Handle Intent | 21463069 | 1 hr ago | IN | 0 ETH | 0.00044817 | ||||
Handle Intent | 21463069 | 1 hr ago | IN | 0 ETH | 0.00044817 | ||||
Handle Intent | 21463069 | 1 hr ago | IN | 0 ETH | 0.0004459 | ||||
Handle Intent | 21462999 | 1 hr ago | IN | 0.101 ETH | 0.00096097 | ||||
Handle Intent | 21462737 | 2 hrs ago | IN | 0.101 ETH | 0.00143508 | ||||
Handle Intent | 21462658 | 2 hrs ago | IN | 0 ETH | 0.00101465 | ||||
Handle Intent | 21462605 | 3 hrs ago | IN | 0 ETH | 0.0011088 | ||||
Handle Intent | 21462500 | 3 hrs ago | IN | 0 ETH | 0.00244228 | ||||
Handle Intent | 21462387 | 3 hrs ago | IN | 0.101 ETH | 0.00105531 | ||||
Handle Intent | 21462084 | 4 hrs ago | IN | 0.101 ETH | 0.00106614 | ||||
Handle Intent | 21461805 | 5 hrs ago | IN | 0 ETH | 0.00117901 | ||||
Handle Intent | 21461782 | 5 hrs ago | IN | 0.202 ETH | 0.00105453 | ||||
Handle Intent | 21461642 | 6 hrs ago | IN | 0 ETH | 0.00136519 | ||||
Handle Intent | 21461543 | 6 hrs ago | IN | 0.101 ETH | 0.00135753 | ||||
Handle Intent | 21461530 | 6 hrs ago | IN | 0.101 ETH | 0.00138014 | ||||
Handle Intent | 21461299 | 7 hrs ago | IN | 0 ETH | 0.00123538 | ||||
Handle Intent | 21461298 | 7 hrs ago | IN | 0 ETH | 0.00126463 | ||||
Handle Intent | 21460895 | 8 hrs ago | IN | 0.101 ETH | 0.00152832 | ||||
Handle Intent | 21460629 | 9 hrs ago | IN | 0.101 ETH | 0.0015803 | ||||
Handle Intent | 21460628 | 9 hrs ago | IN | 0.101 ETH | 0.00156794 | ||||
Handle Intent | 21460136 | 11 hrs ago | IN | 0 ETH | 0.00179119 | ||||
Handle Intent | 21460007 | 11 hrs ago | IN | 0.101 ETH | 0.00181415 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21463292 | 42 mins ago | 0.1 ETH | ||||
21463292 | 42 mins ago | 0.001 ETH | ||||
21463272 | 46 mins ago | 0.1 ETH | ||||
21463272 | 46 mins ago | 0.001 ETH | ||||
21462999 | 1 hr ago | 0.1 ETH | ||||
21462999 | 1 hr ago | 0.001 ETH | ||||
21462737 | 2 hrs ago | 0.1 ETH | ||||
21462737 | 2 hrs ago | 0.001 ETH | ||||
21462658 | 2 hrs ago | 0.0023231 ETH | ||||
21462658 | 2 hrs ago | 0.22998745 ETH | ||||
21462658 | 2 hrs ago | 0.23231055 ETH | ||||
21462605 | 3 hrs ago | 0.00123308 ETH | ||||
21462605 | 3 hrs ago | 0.12207581 ETH | ||||
21462605 | 3 hrs ago | 0.12330889 ETH | ||||
21462500 | 3 hrs ago | 0.00139306 ETH | ||||
21462500 | 3 hrs ago | 0.13791391 ETH | ||||
21462500 | 3 hrs ago | 0.13930698 ETH | ||||
21462387 | 3 hrs ago | 0.1 ETH | ||||
21462387 | 3 hrs ago | 0.001 ETH | ||||
21462084 | 4 hrs ago | 0.1 ETH | ||||
21462084 | 4 hrs ago | 0.001 ETH | ||||
21461805 | 5 hrs ago | 0.00138845 ETH | ||||
21461805 | 5 hrs ago | 0.13745751 ETH | ||||
21461805 | 5 hrs ago | 0.13884597 ETH | ||||
21461782 | 5 hrs ago | 0.2 ETH |
Loading...
Loading
Contract Name:
EOA
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {Address} from "@openzeppelin/contracts/utils/Address.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {IIntentHelper} from "./interfaces/IIntentHelper.sol"; import {IAA} from "./interfaces/IAA.sol"; import {IWETH, IERC20} from "./interfaces/IWETH.sol"; import {IIntentManager} from "./interfaces/IIntentManager.sol"; import { IUniswapV2Router01, IUniswapV2Router02 } from "./mocks/uniswapv2/interfaces/IUniswapV2Router02.sol"; contract EOA is ReentrancyGuard { using SafeERC20 for IERC20; using Address for address; using Address for address payable; enum Command { V3_SWAP_EXACT_IN, V3_SWAP_EXACT_OUT, V2_SWAP_EXACT_IN, V2_SWAP_EXACT_OUT, V2_SWAP_EXACT_ETH_IN, V2_SWAP_EXACT_IN_FEE } struct Parsed { uint256 feePoint; address tokenIn; address tokenOut; uint256 amountIn; Call[] calls; } struct Call { address target; bytes data; } address public immutable WETH; address public immutable UNISWAP_V2_ROUTER02; IIntentManager public immutable INTENT_MANAGER; uint256 public immutable ID_INVITE_REWARD_CLAIM; address public claimContract; receive() external payable {} constructor( address weth, address uniswapV2Router02, IIntentManager intentManager, uint256 idInviteRewardClaim ) { WETH = weth; UNISWAP_V2_ROUTER02 = uniswapV2Router02; INTENT_MANAGER = intentManager; ID_INVITE_REWARD_CLAIM = idInviteRewardClaim; IERC20(WETH).approve(UNISWAP_V2_ROUTER02, type(uint256).max); } function handleIntent(IAA.Intent calldata intent) external payable nonReentrant { if (intent.intentId == ID_INVITE_REWARD_CLAIM) { if (claimContract == address(0)) { claimContract = INTENT_MANAGER.getValidHelper(ID_INVITE_REWARD_CLAIM); require(claimContract != address(0), "EOA: no claim contract"); } IIntentHelper(claimContract).parse(abi.encode(msg.sender, intent.params)); if (msg.value > 0) { payable(msg.sender).sendValue(msg.value); } return; } address recipient = INTENT_MANAGER.getTaxRecipient(); Parsed memory parsed = _parse(intent.params); bool isBuy = parsed.tokenIn == WETH; uint256 fee; if (isBuy) { fee = (parsed.amountIn * parsed.feePoint) / 10000; require(msg.value >= parsed.amountIn + fee, "EOA: insufficient value"); uint256 refundEther = msg.value - parsed.amountIn - fee; if (refundEther > 0) { payable(msg.sender).sendValue(refundEther); } if (fee > 0) { payable(recipient).sendValue(fee); } IWETH(WETH).deposit{value: parsed.amountIn}(); } else { if (msg.value > 0) { payable(msg.sender).sendValue(msg.value); } IERC20(parsed.tokenIn).safeTransferFrom(msg.sender, address(this), parsed.amountIn); } for (uint256 i = 0; i < parsed.calls.length; ++i) { Call memory call = parsed.calls[i]; call.target.functionCall(call.data, "EOA: call failed"); } uint256 gainAmount = IERC20(parsed.tokenOut).balanceOf(address(this)); if (isBuy) { IERC20(parsed.tokenOut).safeTransfer(msg.sender, gainAmount); } else { IWETH(WETH).withdraw(gainAmount); fee = (gainAmount * parsed.feePoint) / 10000; gainAmount -= fee; if (gainAmount > 0) { payable(msg.sender).sendValue(gainAmount); } if (address(this).balance > 0) { payable(recipient).sendValue(address(this).balance); } } emit BotEOAIntentHandled(msg.sender, intent.intentId, fee, parsed.amountIn, gainAmount); } function _parse(bytes calldata _params) internal view returns (Parsed memory parsed) { ( uint8 v, bool approve, uint256 amountInOrOut, uint256 minOutOrMaxIn, bytes memory path ) = abi.decode(_params, (uint8, bool, uint256, uint256, bytes)); address[] memory v2path = new address[](2); (v2path[0], v2path[1]) = abi.decode(path, (address, address)); parsed.feePoint = _mustHaveWETH(v2path[0], v2path[1]); parsed.tokenIn = v2path[0]; parsed.tokenOut = v2path[1]; parsed.amountIn = amountInOrOut; Command command = Command(v); if (command == Command.V2_SWAP_EXACT_ETH_IN) { parsed.calls = new Call[](1); parsed.calls[0] = Call({ target: UNISWAP_V2_ROUTER02, data: abi.encodeWithSelector( IUniswapV2Router01.swapExactETHForTokens.selector, minOutOrMaxIn, v2path, address(this), block.timestamp + 15 minutes ) }); return (parsed); } else if (command == Command.V2_SWAP_EXACT_IN) { if (!approve) { parsed.calls = new Call[](1); } else { parsed.calls = new Call[](2); parsed.calls[0] = Call({ target: v2path[0], data: abi.encodeWithSelector( IERC20.approve.selector, UNISWAP_V2_ROUTER02, type(uint256).max ) }); } parsed.calls[parsed.calls.length - 1] = Call({ target: UNISWAP_V2_ROUTER02, data: abi.encodeWithSelector( IUniswapV2Router01.swapExactTokensForTokens.selector, amountInOrOut, minOutOrMaxIn, v2path, address(this), block.timestamp + 15 minutes ) }); } else if (command == Command.V2_SWAP_EXACT_IN_FEE) { if (!approve) { parsed.calls = new Call[](1); } else { parsed.calls = new Call[](2); parsed.calls[0] = Call({ target: v2path[0], data: abi.encodeWithSelector( IERC20.approve.selector, UNISWAP_V2_ROUTER02, type(uint256).max ) }); } parsed.calls[parsed.calls.length - 1] = Call({ target: UNISWAP_V2_ROUTER02, data: abi.encodeWithSelector( IUniswapV2Router02 .swapExactTokensForTokensSupportingFeeOnTransferTokens .selector, amountInOrOut, minOutOrMaxIn, v2path, address(this), block.timestamp + 15 minutes ) }); } else { revert("EOA: unknown command"); } } function _mustHaveWETH(address tokenIn, address tokenOut) internal view returns (uint256) { address[] memory tokens = new address[](1); if (tokenIn == WETH) { tokens[0] = tokenOut; } else if (tokenOut == WETH) { tokens[0] = tokenIn; } else { revert("EOA: unsupported pair"); } (, uint256[] memory points) = INTENT_MANAGER.getTaxPoints(tokens); return points[0]; } event BotEOAIntentHandled( address indexed account, uint256 indexed intentId, uint256 tax, uint256 payAmount, uint256 gainAmount ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/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.9.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.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/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; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ 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)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ 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"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ 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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 pragma solidity ^0.8.19; interface IAA { struct Intent { uint256 intentId; uint256 ensureMinimumWETH; bytes params; } function initialize(address admin) external; function initialize(address operator, address admin, uint256 outerGas) external; function handleIntent(Intent calldata intent, bytes32[] calldata) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; interface IIntentHelper { struct Call { address target; uint256 value; bytes data; int256 gas; } // Keep it mutable function parse(bytes calldata params) external returns (uint256 taxPoint, Call[] memory calls); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; interface IIntentManager { function getValidHelper(uint256) external view returns (address); function verifyForDeploy( address account, bytes32[] calldata proofs ) external view returns (uint32); function verifyForHandle( uint256 id, address account, bytes32[] calldata proofs ) external view returns (address, uint80, address, uint32, uint32); function verifyForWithdraw( address account, bytes32[] calldata proofs ) external view returns (address, uint32); function getTaxRecipient() external view returns (address); function isAAOperator(address, bytes32[] calldata) external view returns (bool); function isAdmin(address account) external view returns (bool); function getTaxPoints( address[] calldata tokenAddresses ) external view returns (bool[] memory isCustom, uint256[] memory taxPoints); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IWETH is IERC20 { function deposit() external payable; function withdraw(uint) external; }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"weth","type":"address"},{"internalType":"address","name":"uniswapV2Router02","type":"address"},{"internalType":"contract IIntentManager","name":"intentManager","type":"address"},{"internalType":"uint256","name":"idInviteRewardClaim","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"intentId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"payAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gainAmount","type":"uint256"}],"name":"BotEOAIntentHandled","type":"event"},{"inputs":[],"name":"ID_INVITE_REWARD_CLAIM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INTENT_MANAGER","outputs":[{"internalType":"contract IIntentManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNISWAP_V2_ROUTER02","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"intentId","type":"uint256"},{"internalType":"uint256","name":"ensureMinimumWETH","type":"uint256"},{"internalType":"bytes","name":"params","type":"bytes"}],"internalType":"struct IAA.Intent","name":"intent","type":"tuple"}],"name":"handleIntent","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101006040523480156200001257600080fd5b5060405162001f9f38038062001f9f8339810160408190526200003591620000ee565b60016000556001600160a01b03848116608081905284821660a081905291841660c05260e083905260405163095ea7b360e01b8152600481019290925260001960248301529063095ea7b3906044016020604051808303816000875af1158015620000a4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000ca919062000148565b505050505062000173565b6001600160a01b0381168114620000eb57600080fd5b50565b600080600080608085870312156200010557600080fd5b84516200011281620000d5565b60208601519094506200012581620000d5565b60408601519093506200013881620000d5565b6060959095015193969295505050565b6000602082840312156200015b57600080fd5b815180151581146200016c57600080fd5b9392505050565b60805160a05160c05160e051611d8b62000214600039600081816101310152818161019f01526101e401526000818160770152818161020a015281816103a401526112f001526000818160e801528181610bcb01528181610d6c01528181610e1d01528181610fbe015261106f015260008181610173015281816104430152818161054d01528181610740015281816111d9015261124b0152611d8b6000f3fe6080604052600436106100595760003560e01c80635d89abb71461006557806366345da4146100b657806397af41d0146100d6578063a11222cc1461010a578063a49923cf1461011f578063ad5c46481461016157600080fd5b3661006057005b600080fd5b34801561007157600080fd5b506100997f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100c257600080fd5b50600154610099906001600160a01b031681565b3480156100e257600080fd5b506100997f000000000000000000000000000000000000000000000000000000000000000081565b61011d6101183660046115e0565b610195565b005b34801561012b57600080fd5b506101537f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016100ad565b34801561016d57600080fd5b506100997f000000000000000000000000000000000000000000000000000000000000000081565b61019d610852565b7f00000000000000000000000000000000000000000000000000000000000000008135036103a0576001546001600160a01b03166102e65760405163c0ccaa6b60e01b81527f000000000000000000000000000000000000000000000000000000000000000060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063c0ccaa6b90602401602060405180830381865afa158015610259573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027d9190611637565b600180546001600160a01b0319166001600160a01b039290921691821790556102e65760405162461bcd60e51b81526020600482015260166024820152751153d04e881b9bc818db185a5b4818dbdb9d1c9858dd60521b60448201526064015b60405180910390fd5b6001546001600160a01b031663fab4087a336103056040850185611654565b604051602001610317939291906116a2565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016103429190611732565b6000604051808303816000875af1158015610361573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103899190810190611801565b5050341561039b5761039b33346108ab565b610845565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e05e4d776040518163ffffffff1660e01b8152600401602060405180830381865afa158015610400573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104249190611637565b9050600061043d6104386040850185611654565b6109c9565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682602001516001600160a01b0316149050600081156105c95782516060840151612710916104989161196a565b6104a29190611981565b90508083606001516104b491906119a3565b3410156105035760405162461bcd60e51b815260206004820152601760248201527f454f413a20696e73756666696369656e742076616c756500000000000000000060448201526064016102dd565b60008184606001513461051691906119b6565b61052091906119b6565b905080156105325761053233826108ab565b811561054b5761054b6001600160a01b038616836108ab565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db085606001516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156105aa57600080fd5b505af11580156105be573d6000803e3d6000fd5b505050505050610601565b34156105d9576105d933346108ab565b6106013330856060015186602001516001600160a01b03166110fa909392919063ffffffff16565b60005b83608001515181101561069457600084608001518281518110610629576106296119c9565b6020026020010151905061068181602001516040518060400160405280601081526020016f1153d04e8818d85b1b0819985a5b195960821b81525083600001516001600160a01b031661116b9092919063ffffffff16565b50508061068d906119df565b9050610604565b5060408084015190516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156106e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070491906119f8565b9050821561072a576040840151610725906001600160a01b03163383611182565b6107f5565b604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561078c57600080fd5b505af11580156107a0573d6000803e3d6000fd5b5050855161271092506107b491508361196a565b6107be9190611981565b91506107ca82826119b6565b905080156107dc576107dc33826108ab565b47156107f5576107f56001600160a01b038616476108ab565b606084810151604080518581526020810192909252810183905287359133917fa01fbef33af24a4422ec2bc6bc6c22332638879ba36ad6c45ea319d322127210910160405180910390a350505050505b61084f6001600055565b50565b6002600054036108a45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102dd565b6002600055565b804710156108fb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102dd565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610948576040519150601f19603f3d011682016040523d82523d6000602084013e61094d565b606091505b50509050806109c45760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102dd565b505050565b610a0d6040518060a001604052806000815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001606081525090565b600080808080610a1f87890189611a1f565b604080516002808252606082018352969b5094995092975090955093506000929060208301908036833701905050905081806020019051810190610a639190611ad9565b82600081518110610a7657610a766119c9565b6020026020010183600181518110610a9057610a906119c9565b6001600160a01b039384166020918202929092010152911690528051610ae9908290600090610ac157610ac16119c9565b602002602001015182600181518110610adc57610adc6119c9565b60200260200101516111b2565b875280518190600090610afe57610afe6119c9565b6020908102919091018101516001600160a01b031690880152805181906001908110610b2c57610b2c6119c9565b60209081029190910101516001600160a01b0316604088015260608701849052600060ff87166005811115610b6357610b63611b13565b90506004816005811115610b7957610b79611b13565b03610c845760408051600180825281830190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610b935750506080890152604080518082019091527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316815260208101637ff36ab560e01b868530610c10426103846119a3565b604051602401610c239493929190611b6d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905260808901518051600090610c6d57610c6d6119c9565b6020026020010181905250505050505050506110f4565b6002816005811115610c9857610c98611b13565b03610ed65785610ce85760408051600180825281830190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610cb75750506080890152610e09565b6040805160028082526060820190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610cfe579050508860800181905250604051806040016040528083600081518110610d4c57610d4c6119c9565b60200260200101516001600160a01b0316815260200163095ea7b360e01b7f0000000000000000000000000000000000000000000000000000000000000000600019604051602401610db39291906001600160a01b03929092168252602082015260400190565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905260808901518051600090610dfd57610dfd6119c9565b60200260200101819052505b604080518082019091526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152602081016338ed173960e01b87878630610e5b426103846119a3565b604051602401610e6f959493929190611ba2565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905260808901518051610eb6906001906119b6565b81518110610ec657610ec66119c9565b60200260200101819052506110ec565b6005816005811115610eea57610eea611b13565b036110ad5785610f3a5760408051600180825281830190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610f09575050608089015261105b565b6040805160028082526060820190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610f50579050508860800181905250604051806040016040528083600081518110610f9e57610f9e6119c9565b60200260200101516001600160a01b0316815260200163095ea7b360e01b7f00000000000000000000000000000000000000000000000000000000000000006000196040516024016110059291906001600160a01b03929092168252602082015260400190565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290526080890151805160009061104f5761104f6119c9565b60200260200101819052505b604080518082019091526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016815260208101635c11d79560e01b87878630610e5b426103846119a3565b60405162461bcd60e51b81526020600482015260146024820152731153d04e881d5b9adb9bdddb8818dbdb5b585b9960621b60448201526064016102dd565b505050505050505b92915050565b6040516001600160a01b03808516602483015283166044820152606481018290526111659085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611392565b50505050565b606061117a8484600085611467565b949350505050565b6040516001600160a01b0383166024820152604481018290526109c490849063a9059cbb60e01b9060640161112e565b604080516001808252818301909252600091829190602080830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031603611249578281600081518110611224576112246119c9565b60200260200101906001600160a01b031690816001600160a01b0316815250506112d6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031603611296578381600081518110611224576112246119c9565b60405162461bcd60e51b815260206004820152601560248201527422a7a09d103ab739bab83837b93a32b2103830b4b960591b60448201526064016102dd565b60405163bc3e8e3d60e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063bc3e8e3d90611325908590600401611bde565b600060405180830381865afa158015611342573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136a9190810190611c57565b91505080600081518110611380576113806119c9565b60200260200101519250505092915050565b60006113e7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661116b9092919063ffffffff16565b90508051600014806114085750808060200190518101906114089190611d1c565b6109c45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102dd565b6060824710156114c85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102dd565b600080866001600160a01b031685876040516114e49190611d39565b60006040518083038185875af1925050503d8060008114611521576040519150601f19603f3d011682016040523d82523d6000602084013e611526565b606091505b509150915061153787838387611542565b979650505050505050565b606083156115b15782516000036115aa576001600160a01b0385163b6115aa5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102dd565b508161117a565b61117a83838151156115c65781518083602001fd5b8060405162461bcd60e51b81526004016102dd9190611732565b6000602082840312156115f257600080fd5b813567ffffffffffffffff81111561160957600080fd5b82016060818503121561161b57600080fd5b9392505050565b6001600160a01b038116811461084f57600080fd5b60006020828403121561164957600080fd5b815161161b81611622565b6000808335601e1984360301811261166b57600080fd5b83018035915067ffffffffffffffff82111561168657600080fd5b60200191503681900382131561169b57600080fd5b9250929050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b60005b838110156116fd5781810151838201526020016116e5565b50506000910152565b6000815180845261171e8160208601602086016116e2565b601f01601f19169290920160200192915050565b60208152600061161b6020830184611706565b634e487b7160e01b600052604160045260246000fd5b6040516080810167ffffffffffffffff8111828210171561177e5761177e611745565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156117ad576117ad611745565b604052919050565b600067ffffffffffffffff8211156117cf576117cf611745565b5060051b60200190565b600067ffffffffffffffff8211156117f3576117f3611745565b50601f01601f191660200190565b6000806040838503121561181457600080fd5b8251915060208084015167ffffffffffffffff8082111561183457600080fd5b818601915086601f83011261184857600080fd5b815161185b611856826117b5565b611784565b81815260059190911b8301840190848101908983111561187a57600080fd5b8585015b838110156119435780518581111561189557600080fd5b86016080818d03601f190112156118ab57600080fd5b6118b361175b565b888201516118c081611622565b81526040820151898201526060820151878111156118dd57600080fd5b8201603f81018e136118ee57600080fd5b898101516118fe611856826117d9565b8181528f604083850101111561191357600080fd5b611923828d8301604086016116e2565b60408401525050608091909101516060820152835291860191860161187e565b508096505050505050509250929050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176110f4576110f4611954565b60008261199e57634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156110f4576110f4611954565b818103818111156110f4576110f4611954565b634e487b7160e01b600052603260045260246000fd5b6000600182016119f1576119f1611954565b5060010190565b600060208284031215611a0a57600080fd5b5051919050565b801515811461084f57600080fd5b600080600080600060a08688031215611a3757600080fd5b853560ff81168114611a4857600080fd5b94506020860135611a5881611a11565b93506040860135925060608601359150608086013567ffffffffffffffff811115611a8257600080fd5b8601601f81018813611a9357600080fd5b8035611aa1611856826117d9565b818152896020838501011115611ab657600080fd5b816020840160208301376000602083830101528093505050509295509295909350565b60008060408385031215611aec57600080fd5b8251611af781611622565b6020840151909250611b0881611622565b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b600081518084526020808501945080840160005b83811015611b625781516001600160a01b031687529582019590820190600101611b3d565b509495945050505050565b848152608060208201526000611b866080830186611b29565b6001600160a01b03949094166040830152506060015292915050565b85815284602082015260a060408201526000611bc160a0830186611b29565b6001600160a01b0394909416606083015250608001529392505050565b60208152600061161b6020830184611b29565b600082601f830112611c0257600080fd5b81516020611c12611856836117b5565b82815260059290921b84018101918181019086841115611c3157600080fd5b8286015b84811015611c4c5780518352918301918301611c35565b509695505050505050565b60008060408385031215611c6a57600080fd5b825167ffffffffffffffff80821115611c8257600080fd5b818501915085601f830112611c9657600080fd5b81516020611ca6611856836117b5565b82815260059290921b84018101918181019089841115611cc557600080fd5b948201945b83861015611cec578551611cdd81611a11565b82529482019490820190611cca565b91880151919650909350505080821115611d0557600080fd5b50611d1285828601611bf1565b9150509250929050565b600060208284031215611d2e57600080fd5b815161161b81611a11565b60008251611d4b8184602087016116e2565b919091019291505056fea264697066735822122063fe921db53c3c721c5c6df709f512bdcd6f32aa9353ec7ac94b263d139e946664736f6c63430008130033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000000c42191a5571839266dcbd8d54e2174e37e5ac110000000000000000000000000000000000000000000000000000000000000004
Deployed Bytecode
0x6080604052600436106100595760003560e01c80635d89abb71461006557806366345da4146100b657806397af41d0146100d6578063a11222cc1461010a578063a49923cf1461011f578063ad5c46481461016157600080fd5b3661006057005b600080fd5b34801561007157600080fd5b506100997f0000000000000000000000000c42191a5571839266dcbd8d54e2174e37e5ac1181565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100c257600080fd5b50600154610099906001600160a01b031681565b3480156100e257600080fd5b506100997f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b61011d6101183660046115e0565b610195565b005b34801561012b57600080fd5b506101537f000000000000000000000000000000000000000000000000000000000000000481565b6040519081526020016100ad565b34801561016d57600080fd5b506100997f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b61019d610852565b7f00000000000000000000000000000000000000000000000000000000000000048135036103a0576001546001600160a01b03166102e65760405163c0ccaa6b60e01b81527f000000000000000000000000000000000000000000000000000000000000000460048201527f0000000000000000000000000c42191a5571839266dcbd8d54e2174e37e5ac116001600160a01b03169063c0ccaa6b90602401602060405180830381865afa158015610259573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027d9190611637565b600180546001600160a01b0319166001600160a01b039290921691821790556102e65760405162461bcd60e51b81526020600482015260166024820152751153d04e881b9bc818db185a5b4818dbdb9d1c9858dd60521b60448201526064015b60405180910390fd5b6001546001600160a01b031663fab4087a336103056040850185611654565b604051602001610317939291906116a2565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016103429190611732565b6000604051808303816000875af1158015610361573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103899190810190611801565b5050341561039b5761039b33346108ab565b610845565b60007f0000000000000000000000000c42191a5571839266dcbd8d54e2174e37e5ac116001600160a01b031663e05e4d776040518163ffffffff1660e01b8152600401602060405180830381865afa158015610400573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104249190611637565b9050600061043d6104386040850185611654565b6109c9565b905060007f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031682602001516001600160a01b0316149050600081156105c95782516060840151612710916104989161196a565b6104a29190611981565b90508083606001516104b491906119a3565b3410156105035760405162461bcd60e51b815260206004820152601760248201527f454f413a20696e73756666696369656e742076616c756500000000000000000060448201526064016102dd565b60008184606001513461051691906119b6565b61052091906119b6565b905080156105325761053233826108ab565b811561054b5761054b6001600160a01b038616836108ab565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db085606001516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156105aa57600080fd5b505af11580156105be573d6000803e3d6000fd5b505050505050610601565b34156105d9576105d933346108ab565b6106013330856060015186602001516001600160a01b03166110fa909392919063ffffffff16565b60005b83608001515181101561069457600084608001518281518110610629576106296119c9565b6020026020010151905061068181602001516040518060400160405280601081526020016f1153d04e8818d85b1b0819985a5b195960821b81525083600001516001600160a01b031661116b9092919063ffffffff16565b50508061068d906119df565b9050610604565b5060408084015190516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156106e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070491906119f8565b9050821561072a576040840151610725906001600160a01b03163383611182565b6107f5565b604051632e1a7d4d60e01b8152600481018290527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561078c57600080fd5b505af11580156107a0573d6000803e3d6000fd5b5050855161271092506107b491508361196a565b6107be9190611981565b91506107ca82826119b6565b905080156107dc576107dc33826108ab565b47156107f5576107f56001600160a01b038616476108ab565b606084810151604080518581526020810192909252810183905287359133917fa01fbef33af24a4422ec2bc6bc6c22332638879ba36ad6c45ea319d322127210910160405180910390a350505050505b61084f6001600055565b50565b6002600054036108a45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102dd565b6002600055565b804710156108fb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102dd565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610948576040519150601f19603f3d011682016040523d82523d6000602084013e61094d565b606091505b50509050806109c45760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102dd565b505050565b610a0d6040518060a001604052806000815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001606081525090565b600080808080610a1f87890189611a1f565b604080516002808252606082018352969b5094995092975090955093506000929060208301908036833701905050905081806020019051810190610a639190611ad9565b82600081518110610a7657610a766119c9565b6020026020010183600181518110610a9057610a906119c9565b6001600160a01b039384166020918202929092010152911690528051610ae9908290600090610ac157610ac16119c9565b602002602001015182600181518110610adc57610adc6119c9565b60200260200101516111b2565b875280518190600090610afe57610afe6119c9565b6020908102919091018101516001600160a01b031690880152805181906001908110610b2c57610b2c6119c9565b60209081029190910101516001600160a01b0316604088015260608701849052600060ff87166005811115610b6357610b63611b13565b90506004816005811115610b7957610b79611b13565b03610c845760408051600180825281830190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610b935750506080890152604080518082019091527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316815260208101637ff36ab560e01b868530610c10426103846119a3565b604051602401610c239493929190611b6d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905260808901518051600090610c6d57610c6d6119c9565b6020026020010181905250505050505050506110f4565b6002816005811115610c9857610c98611b13565b03610ed65785610ce85760408051600180825281830190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610cb75750506080890152610e09565b6040805160028082526060820190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610cfe579050508860800181905250604051806040016040528083600081518110610d4c57610d4c6119c9565b60200260200101516001600160a01b0316815260200163095ea7b360e01b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d600019604051602401610db39291906001600160a01b03929092168252602082015260400190565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905260808901518051600090610dfd57610dfd6119c9565b60200260200101819052505b604080518082019091526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d168152602081016338ed173960e01b87878630610e5b426103846119a3565b604051602401610e6f959493929190611ba2565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905260808901518051610eb6906001906119b6565b81518110610ec657610ec66119c9565b60200260200101819052506110ec565b6005816005811115610eea57610eea611b13565b036110ad5785610f3a5760408051600180825281830190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610f09575050608089015261105b565b6040805160028082526060820190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610f50579050508860800181905250604051806040016040528083600081518110610f9e57610f9e6119c9565b60200260200101516001600160a01b0316815260200163095ea7b360e01b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6000196040516024016110059291906001600160a01b03929092168252602082015260400190565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290526080890151805160009061104f5761104f6119c9565b60200260200101819052505b604080518082019091526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d16815260208101635c11d79560e01b87878630610e5b426103846119a3565b60405162461bcd60e51b81526020600482015260146024820152731153d04e881d5b9adb9bdddb8818dbdb5b585b9960621b60448201526064016102dd565b505050505050505b92915050565b6040516001600160a01b03808516602483015283166044820152606481018290526111659085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611392565b50505050565b606061117a8484600085611467565b949350505050565b6040516001600160a01b0383166024820152604481018290526109c490849063a9059cbb60e01b9060640161112e565b604080516001808252818301909252600091829190602080830190803683370190505090507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316846001600160a01b031603611249578281600081518110611224576112246119c9565b60200260200101906001600160a01b031690816001600160a01b0316815250506112d6565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316836001600160a01b031603611296578381600081518110611224576112246119c9565b60405162461bcd60e51b815260206004820152601560248201527422a7a09d103ab739bab83837b93a32b2103830b4b960591b60448201526064016102dd565b60405163bc3e8e3d60e01b81526000906001600160a01b037f0000000000000000000000000c42191a5571839266dcbd8d54e2174e37e5ac11169063bc3e8e3d90611325908590600401611bde565b600060405180830381865afa158015611342573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136a9190810190611c57565b91505080600081518110611380576113806119c9565b60200260200101519250505092915050565b60006113e7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661116b9092919063ffffffff16565b90508051600014806114085750808060200190518101906114089190611d1c565b6109c45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102dd565b6060824710156114c85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102dd565b600080866001600160a01b031685876040516114e49190611d39565b60006040518083038185875af1925050503d8060008114611521576040519150601f19603f3d011682016040523d82523d6000602084013e611526565b606091505b509150915061153787838387611542565b979650505050505050565b606083156115b15782516000036115aa576001600160a01b0385163b6115aa5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102dd565b508161117a565b61117a83838151156115c65781518083602001fd5b8060405162461bcd60e51b81526004016102dd9190611732565b6000602082840312156115f257600080fd5b813567ffffffffffffffff81111561160957600080fd5b82016060818503121561161b57600080fd5b9392505050565b6001600160a01b038116811461084f57600080fd5b60006020828403121561164957600080fd5b815161161b81611622565b6000808335601e1984360301811261166b57600080fd5b83018035915067ffffffffffffffff82111561168657600080fd5b60200191503681900382131561169b57600080fd5b9250929050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b60005b838110156116fd5781810151838201526020016116e5565b50506000910152565b6000815180845261171e8160208601602086016116e2565b601f01601f19169290920160200192915050565b60208152600061161b6020830184611706565b634e487b7160e01b600052604160045260246000fd5b6040516080810167ffffffffffffffff8111828210171561177e5761177e611745565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156117ad576117ad611745565b604052919050565b600067ffffffffffffffff8211156117cf576117cf611745565b5060051b60200190565b600067ffffffffffffffff8211156117f3576117f3611745565b50601f01601f191660200190565b6000806040838503121561181457600080fd5b8251915060208084015167ffffffffffffffff8082111561183457600080fd5b818601915086601f83011261184857600080fd5b815161185b611856826117b5565b611784565b81815260059190911b8301840190848101908983111561187a57600080fd5b8585015b838110156119435780518581111561189557600080fd5b86016080818d03601f190112156118ab57600080fd5b6118b361175b565b888201516118c081611622565b81526040820151898201526060820151878111156118dd57600080fd5b8201603f81018e136118ee57600080fd5b898101516118fe611856826117d9565b8181528f604083850101111561191357600080fd5b611923828d8301604086016116e2565b60408401525050608091909101516060820152835291860191860161187e565b508096505050505050509250929050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176110f4576110f4611954565b60008261199e57634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156110f4576110f4611954565b818103818111156110f4576110f4611954565b634e487b7160e01b600052603260045260246000fd5b6000600182016119f1576119f1611954565b5060010190565b600060208284031215611a0a57600080fd5b5051919050565b801515811461084f57600080fd5b600080600080600060a08688031215611a3757600080fd5b853560ff81168114611a4857600080fd5b94506020860135611a5881611a11565b93506040860135925060608601359150608086013567ffffffffffffffff811115611a8257600080fd5b8601601f81018813611a9357600080fd5b8035611aa1611856826117d9565b818152896020838501011115611ab657600080fd5b816020840160208301376000602083830101528093505050509295509295909350565b60008060408385031215611aec57600080fd5b8251611af781611622565b6020840151909250611b0881611622565b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b600081518084526020808501945080840160005b83811015611b625781516001600160a01b031687529582019590820190600101611b3d565b509495945050505050565b848152608060208201526000611b866080830186611b29565b6001600160a01b03949094166040830152506060015292915050565b85815284602082015260a060408201526000611bc160a0830186611b29565b6001600160a01b0394909416606083015250608001529392505050565b60208152600061161b6020830184611b29565b600082601f830112611c0257600080fd5b81516020611c12611856836117b5565b82815260059290921b84018101918181019086841115611c3157600080fd5b8286015b84811015611c4c5780518352918301918301611c35565b509695505050505050565b60008060408385031215611c6a57600080fd5b825167ffffffffffffffff80821115611c8257600080fd5b818501915085601f830112611c9657600080fd5b81516020611ca6611856836117b5565b82815260059290921b84018101918181019089841115611cc557600080fd5b948201945b83861015611cec578551611cdd81611a11565b82529482019490820190611cca565b91880151919650909350505080821115611d0557600080fd5b50611d1285828601611bf1565b9150509250929050565b600060208284031215611d2e57600080fd5b815161161b81611a11565b60008251611d4b8184602087016116e2565b919091019291505056fea264697066735822122063fe921db53c3c721c5c6df709f512bdcd6f32aa9353ec7ac94b263d139e946664736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000000c42191a5571839266dcbd8d54e2174e37e5ac110000000000000000000000000000000000000000000000000000000000000004
-----Decoded View---------------
Arg [0] : weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : uniswapV2Router02 (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [2] : intentManager (address): 0x0c42191A5571839266DCBd8d54e2174e37E5AC11
Arg [3] : idInviteRewardClaim (uint256): 4
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [2] : 0000000000000000000000000c42191a5571839266dcbd8d54e2174e37e5ac11
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.