Source Code
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0xc8fcbe535af2beb848334862a2ddd7e69c1640c59b7d84b623f9f12d182b83c2 | Swap Exact Token... | (pending) | 3 days ago | IN | 0 ETH | (Pending) | |||
0xc42a3cc4328e49013a92a102040fa5d3ff5dd9d5cc989fdeaf8825cbec89cd23 | Swap Exact ETH F... | (pending) | 5 days ago | IN | 0.001 ETH | (Pending) | |||
Swap Exact Token... | 22648852 | 3 mins ago | IN | 0 ETH | 0.00017955 | ||||
Swap Exact ETH F... | 22648847 | 4 mins ago | IN | 0.001 ETH | 0.00041238 | ||||
Swap Exact ETH F... | 22648847 | 4 mins ago | IN | 0.05 ETH | 0.0003695 | ||||
Swap Exact ETH F... | 22648842 | 5 mins ago | IN | 0.03 ETH | 0.00032974 | ||||
Swap Exact Token... | 22648835 | 6 mins ago | IN | 0 ETH | 0.00046566 | ||||
Swap Exact ETH F... | 22648824 | 8 mins ago | IN | 0.1 ETH | 0.00035835 | ||||
Swap Exact ETH F... | 22648813 | 10 mins ago | IN | 0.005 ETH | 0.00038995 | ||||
Swap Exact ETH F... | 22648804 | 12 mins ago | IN | 0.045 ETH | 0.00013419 | ||||
Swap Exact ETH F... | 22648780 | 17 mins ago | IN | 0.005 ETH | 0.00034631 | ||||
Swap Exact ETH F... | 22648774 | 18 mins ago | IN | 0.02 ETH | 0.00054556 | ||||
Swap Exact ETH F... | 22648772 | 19 mins ago | IN | 0.009 ETH | 0.00037319 | ||||
Swap Exact ETH F... | 22648752 | 23 mins ago | IN | 0.005 ETH | 0.00042301 | ||||
Swap Exact ETH F... | 22648745 | 24 mins ago | IN | 0.04 ETH | 0.00044989 | ||||
Swap Exact ETH F... | 22648740 | 25 mins ago | IN | 0.23 ETH | 0.00044931 | ||||
Swap Exact ETH F... | 22648739 | 25 mins ago | IN | 0.04 ETH | 0.00018566 | ||||
Swap Exact Token... | 22648736 | 26 mins ago | IN | 0 ETH | 0.00056403 | ||||
Swap Exact Token... | 22648730 | 27 mins ago | IN | 0 ETH | 0.00061102 | ||||
Swap Exact ETH F... | 22648722 | 29 mins ago | IN | 0.16 ETH | 0.00046846 | ||||
Swap Exact Token... | 22648701 | 33 mins ago | IN | 0 ETH | 0.00044746 | ||||
Swap Exact Token... | 22648695 | 34 mins ago | IN | 0 ETH | 0.00047453 | ||||
Swap Exact ETH F... | 22648694 | 34 mins ago | IN | 0.4 ETH | 0.00042984 | ||||
Swap Exact ETH F... | 22648693 | 34 mins ago | IN | 0.4 ETH | 0.00016826 | ||||
Swap Exact ETH F... | 22648664 | 40 mins ago | IN | 0.001 ETH | 0.00065648 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Swap Exact ETH F... | 22648847 | 4 mins ago | 0.000995 ETH | ||||
Transfer | 22648847 | 4 mins ago | 0.00000475 ETH | ||||
Transfer | 22648847 | 4 mins ago | 0.00000025 ETH | ||||
Swap Exact ETH F... | 22648847 | 4 mins ago | 0.04975 ETH | ||||
Transfer | 22648847 | 4 mins ago | 0.0002375 ETH | ||||
Transfer | 22648847 | 4 mins ago | 0.0000125 ETH | ||||
Swap Exact ETH F... | 22648842 | 5 mins ago | 0.02985 ETH | ||||
Transfer | 22648842 | 5 mins ago | 0.0001425 ETH | ||||
Transfer | 22648842 | 5 mins ago | 0.0000075 ETH | ||||
Transfer | 22648835 | 6 mins ago | 0.02849482 ETH | ||||
Transfer | 22648835 | 6 mins ago | 0.00013603 ETH | ||||
Transfer | 22648835 | 6 mins ago | 0.00000715 ETH | ||||
Transfer | 22648835 | 6 mins ago | 0.02863801 ETH | ||||
Swap Exact ETH F... | 22648824 | 8 mins ago | 0.0995 ETH | ||||
Transfer | 22648824 | 8 mins ago | 0.000475 ETH | ||||
Transfer | 22648824 | 8 mins ago | 0.000025 ETH | ||||
Swap Exact ETH F... | 22648813 | 10 mins ago | 0.004975 ETH | ||||
Transfer | 22648813 | 10 mins ago | 0.00002375 ETH | ||||
Transfer | 22648813 | 10 mins ago | 0.00000125 ETH | ||||
Swap Exact ETH F... | 22648804 | 12 mins ago | 0.044775 ETH | ||||
Transfer | 22648804 | 12 mins ago | 0.00021375 ETH | ||||
Transfer | 22648804 | 12 mins ago | 0.00001125 ETH | ||||
Swap Exact ETH F... | 22648780 | 17 mins ago | 0.004975 ETH | ||||
Transfer | 22648780 | 17 mins ago | 0.00002375 ETH | ||||
Transfer | 22648780 | 17 mins ago | 0.00000125 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
DEXScreenerRouter
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.23; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {IUniswapV2Router02} from "./interfaces/IUniswapV2Router02.sol"; import {IDEXScreenerRouter} from "./interfaces/IDEXScreenerRouter.sol"; import {IUniswapV2Factory} from "./interfaces/IUniswapV2Factory.sol"; contract DEXScreenerRouter is IDEXScreenerRouter, Ownable { using SafeERC20 for IERC20; uint256 public constant BASIS_POINTS_DENOMINATOR = 10000; uint256 public constant MAX_FEE_BASIS_POINTS = 9500; IUniswapV2Router02 public immutable UNISWAP_ROUTER; address public treasury; address public dexTreasury; uint256 public feeBasisPoints; uint256 public dexFeeBasisPoints; constructor( address _uniswapRouter, address _treasury, address _dexTreasury, uint256 _feeBasisPoints, uint256 _dexFeeBasisPoints ) Ownable(msg.sender) { UNISWAP_ROUTER = IUniswapV2Router02(_uniswapRouter); _setConfig(_treasury, _dexTreasury, _feeBasisPoints, _dexFeeBasisPoints); } function swapExactETHForTokens(address tokenOut, uint256 amountOutMin) external payable { address[] memory path = new address[](2); path[0] = UNISWAP_ROUTER.WETH(); path[1] = tokenOut; (uint256 fee, uint256 dexFee) = _calculateFee(msg.value); _transferETH(treasury, fee); _transferETH(dexTreasury, dexFee); uint256[] memory amounts = UNISWAP_ROUTER.swapExactETHForTokens{value: msg.value - fee - dexFee}( amountOutMin, path, msg.sender, block.timestamp ); address pair = IUniswapV2Factory(UNISWAP_ROUTER.factory()).getPair(UNISWAP_ROUTER.WETH(), tokenOut); emit UniswapSwap( msg.sender, UNISWAP_ROUTER.WETH(), tokenOut, msg.value, amounts[amounts.length - 1], fee, treasury, dexFee, dexTreasury, pair ); } function swapExactTokensForETH(address tokenIn, uint256 amountIn, uint256 amountOutMin) external { IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn); IERC20(tokenIn).approve(address(UNISWAP_ROUTER), amountIn); address[] memory path = new address[](2); path[0] = tokenIn; path[1] = UNISWAP_ROUTER.WETH(); uint256[] memory amounts = UNISWAP_ROUTER.swapExactTokensForETH( amountIn, amountOutMin, path, address(this), block.timestamp ); (uint256 fee, uint256 dexFee) = _calculateFee(amounts[amounts.length - 1]); _transferETH(treasury, fee); _transferETH(dexTreasury, dexFee); uint256 ethBalance = address(this).balance; _transferETH(msg.sender, ethBalance); address pair = IUniswapV2Factory(UNISWAP_ROUTER.factory()).getPair(tokenIn, UNISWAP_ROUTER.WETH()); emit UniswapSwap( msg.sender, tokenIn, UNISWAP_ROUTER.WETH(), amountIn, ethBalance, fee, treasury, dexFee, dexTreasury, pair ); } function swapETHForExactTokens(address tokenOut, uint256 amountOut) external payable { address[] memory path = new address[](2); path[0] = UNISWAP_ROUTER.WETH(); path[1] = tokenOut; (uint256 fee, uint256 dexFee) = _calculateFee(msg.value); _transferETH(treasury, fee); _transferETH(dexTreasury, dexFee); uint256[] memory amounts = UNISWAP_ROUTER.swapETHForExactTokens{value: msg.value - fee - dexFee}( amountOut, path, msg.sender, block.timestamp ); // refund if any if (address(this).balance > 0) { (bool success, ) = msg.sender.call{value: address(this).balance}(""); if (!success) revert FailedToSendETH(); } address pair = IUniswapV2Factory(UNISWAP_ROUTER.factory()).getPair(UNISWAP_ROUTER.WETH(), tokenOut); emit UniswapSwap( msg.sender, UNISWAP_ROUTER.WETH(), tokenOut, msg.value, amounts[amounts.length - 1], fee, treasury, dexFee, dexTreasury, pair ); } function swapTokensForExactETH(address tokenIn, uint256 amountOut, uint256 amountInMax) external { IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountInMax); IERC20(tokenIn).approve(address(UNISWAP_ROUTER), amountInMax); address[] memory path = new address[](2); path[0] = tokenIn; path[1] = UNISWAP_ROUTER.WETH(); uint256[] memory amounts = UNISWAP_ROUTER.swapTokensForExactETH( amountOut, amountInMax, path, address(this), block.timestamp ); (uint256 fee, uint256 dexFee) = _calculateFee(amounts[amounts.length - 1]); _transferETH(treasury, fee); _transferETH(dexTreasury, dexFee); uint256 ethBalance = address(this).balance; _transferETH(msg.sender, ethBalance); IERC20(tokenIn).safeTransfer(msg.sender, IERC20(tokenIn).balanceOf(address(this))); address pair = IUniswapV2Factory(UNISWAP_ROUTER.factory()).getPair(tokenIn, UNISWAP_ROUTER.WETH()); emit UniswapSwap( msg.sender, tokenIn, UNISWAP_ROUTER.WETH(), amounts[0], ethBalance, fee, treasury, dexFee, dexTreasury, pair ); } function _transferETH(address to, uint256 amount) internal { (bool success, ) = to.call{value: amount}(""); if (!success) revert FailedToSendETH(); } function setConfig( address _treasury, address _dexTreasury, uint256 _feeBasisPoints, uint256 _dexFeeBasisPoints ) external onlyOwner { _setConfig(_treasury, _dexTreasury, _feeBasisPoints, _dexFeeBasisPoints); } function _setConfig( address _treasury, address _dexTreasury, uint256 _feeBasisPoints, uint256 _dexFeeBasisPoints ) internal { if (_treasury == address(0)) revert ZeroAddress(); if (_dexTreasury == address(0)) revert ZeroAddress(); if (_feeBasisPoints > MAX_FEE_BASIS_POINTS) revert InvalidFeeBasisPoints(); if (_dexFeeBasisPoints > BASIS_POINTS_DENOMINATOR) revert InvalidFeeBasisPoints(); treasury = _treasury; dexTreasury = _dexTreasury; feeBasisPoints = _feeBasisPoints; dexFeeBasisPoints = _dexFeeBasisPoints; } function _calculateFee(uint256 amount) internal view returns (uint256 fee, uint256 dexFee) { fee = (amount * feeBasisPoints) / BASIS_POINTS_DENOMINATOR; dexFee = (fee * dexFeeBasisPoints) / BASIS_POINTS_DENOMINATOR; fee -= dexFee; } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @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. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ 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]. * * CAUTION: See Security Considerations above. */ 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 v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../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 An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @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.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @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); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @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(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) 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 FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.23; interface IDEXScreenerRouter { error ZeroAddress(); error InvalidFeeBasisPoints(); error FailedToSendETH(); event UniswapSwap( address senderAddress, address tokenFromAddress, address tokenToAddress, uint256 amountIn, uint256 amountOut, uint256 helioFee, address helioFeeMintAddress, uint256 dexFee, address dexFeeMintAddress, address poolId ); function swapExactETHForTokens(address tokenOut, uint256 amountOutMin) external payable; function swapETHForExactTokens(address tokenOut, uint256 amountOut) external payable; function swapExactTokensForETH(address tokenIn, uint256 amountIn, uint256 amountOutMin) external; function swapTokensForExactETH(address tokenIn, uint256 amountOut, uint256 amountInMax) external; function setConfig( address _treasury, address _dexTreasury, uint256 _feeBasisPoints, uint256 _dexFeeBasisPoints ) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.23; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function createPair(address tokenA, address tokenB) external returns (address pair); }
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.2; interface IUniswapV2Router02 { 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); 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 }, "viaIR": true, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_uniswapRouter","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_dexTreasury","type":"address"},{"internalType":"uint256","name":"_feeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_dexFeeBasisPoints","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"FailedToSendETH","type":"error"},{"inputs":[],"name":"InvalidFeeBasisPoints","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"senderAddress","type":"address"},{"indexed":false,"internalType":"address","name":"tokenFromAddress","type":"address"},{"indexed":false,"internalType":"address","name":"tokenToAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"helioFee","type":"uint256"},{"indexed":false,"internalType":"address","name":"helioFeeMintAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"dexFee","type":"uint256"},{"indexed":false,"internalType":"address","name":"dexFeeMintAddress","type":"address"},{"indexed":false,"internalType":"address","name":"poolId","type":"address"}],"name":"UniswapSwap","type":"event"},{"inputs":[],"name":"BASIS_POINTS_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE_BASIS_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNISWAP_ROUTER","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dexFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dexTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_dexTreasury","type":"address"},{"internalType":"uint256","name":"_feeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_dexFeeBasisPoints","type":"uint256"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"swapETHForExactTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"}],"name":"swapExactETHForTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"}],"name":"swapExactTokensForETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"}],"name":"swapTokensForExactETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0346200019257601f6200170138819003918201601f191683019291906001600160401b0384118385101762000197578160a0928492604096875283398101031262000192576200005181620001ad565b906200006060208201620001ad565b916200006e848301620001ad565b90608060608401519301519333156200017a57600080546001600160a01b031980821633908117845589519691956001600160a01b039592948694859391908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a316608052169384156200016b5750169182156200015a5761251c841162000149576127108511620001495781600154161760015560025416176002556003556004555161153e9081620001c3823960805181818161016d015281816101f7015281816105b3015281816109ca0152610dd90152f35b855163a724e54f60e01b8152600490fd5b855163d92e233d60e01b8152600490fd5b63d92e233d60e01b8152600490fd5b8551631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620001925756fe60806040818152600480361015610021575b505050361561001f57600080fd5b005b600092833560e01c908163095b710d14611027575080634befe2ca1461100a57806361d027b314610fe1578063715018a614610f875780637f24e6ec14610d9157806385f377ca14610d685780638da5cb5b14610d405780639258b71f14610c91578063b79c48e514610982578063b8606eef14610963578063bd9b208414610578578063c038847a146101bd578063cfa498a3146101a0578063d8264920146101585763f2fde38b036100115734610154576020366003190112610154576100e8611043565b906100f161133f565b6001600160a01b0391821692831561013e57505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b50503461019c578160031936011261019c57517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5080fd5b50503461019c578160031936011261019c57602090516127108152f35b5082903461019c576101ce3661105e565b94909160018060a01b0391828216946101e9853033896113d8565b815163095ea7b360e01b81527f000000000000000000000000000000000000000000000000000000000000000085166001600160a01b0381168383019081526020808201899052989196929089908290819060400103818d865af1801561056e57610541575b5083519061025c82611088565b6002825284368a84013761026f826110fb565b5283516315ab88c960e31b8082529190898186818b5afa908115610537579189918c93849161051a575b50856102a48361111e565b911690526102c887519d8e9384936318cbafe560e01b8552429230928b8701611306565b0381838a5af1998a1561051057899a6104ec575b50895160001981019a908b116104d9576102fa8a9b6103009261112e565b5161137e565b9390916103118385600154166113ad565b61031f8585600254166113ad565b479161032b83336113ad565b865163c45a015560e01b81528b8183818d5afa9081156104cf578d916104b2575b5087518381528c8184818e5afa9d8e156104a757918d9e916103a89b9c9d9e9392610488575b50895163e6a4390560e01b81526001600160a01b03808e16868301908152931660208401529a8b9283918a918391604090910190565b0392165afa978d891561047d57908d9392919961045e575b508751809b819382525afa978815610454577f1854e126c531b464931f921ac9c5aaca843aa7a189df01c55e9ce646881f93ab9a8c9961041f575b5050610419969798836001541693600254169551998a99338b611291565b0390a180f35b610419989950908161044592903d1061044d575b61043d81836110ba565b8101906110dc565b97968c6103fb565b503d610433565b85513d8d823e3d90fd5b610476919950833d851161044d5761043d81836110ba565b978e6103c0565b8851903d90823e3d90fd5b6104a0919250833d851161044d5761043d81836110ba565b9038610372565b8951903d90823e3d90fd5b6104c991508c8d3d1061044d5761043d81836110ba565b8e61034c565b88513d8f823e3d90fd5b634e487b7160e01b8a526011845260248afd5b610509919a503d808b833e61050181836110ba565b810190611165565b988a6102dc565b84513d8b823e3d90fd5b61053191508c8d3d1061044d5761043d81836110ba565b8e610299565b86513d8d823e3d90fd5b61056090893d8b11610567575b61055881836110ba565b8101906112ee565b508a61024f565b503d61054e565b85513d8c823e3d90fd5b508234610960576105883661105e565b946001600160a01b0392838116929091906105a5883033876113d8565b815163095ea7b360e01b81527f000000000000000000000000000000000000000000000000000000000000000086166001600160a01b03811689830190815260208082018c905297919691929088908290819060400103818c865af1801561095657610939575b508351996106198b611088565b60028b528436898d01378161062d8c6110fb565b5284516315ab88c960e31b808252949089818d818c5afa90811561092f578c9d928c9d9b9c949261068c928e8792610912575b50508761066c8661111e565b911690528851632512eca560e11b81529b8c948594429330938701611306565b0381838a5af19687156105105789976108f6575b50865160001981019081116108e357906106bf6102fa8b9c938a61112e565b9490926106d08486600154166113ad565b6106de8686600254166113ad565b47926106ea84336113ad565b87516370a0823160e01b815230838201528c81602481855afa9081156108d7578d908f926108a4575b50895163a9059cbb60e01b9181019190915233602482015260448082019290925290815261074b916107466064836110ba565b611433565b865163c45a015560e01b81528b8183818d5afa9081156104cf578d91610887575b5087518381528c8184818e5afa9d8e156104a757918d9e916107c79b9c9d9e93926104885750895163e6a4390560e01b81526001600160a01b03808e16868301908152931660208401529a8b9283918a918391604090910190565b0392165afa978d891561047d57908d93929199610868575b508751809b819382525afa978815610454577f1854e126c531b464931f921ac9c5aaca843aa7a189df01c55e9ce646881f93ab9a8c99610841575b505061082a6104199798996110fb565b51836001541693600254169551998a99338b611291565b61041998995061082a918161086192903d1061044d5761043d81836110ba565b989761081a565b610880919950833d851161044d5761043d81836110ba565b978e6107df565b61089e91508c8d3d1061044d5761043d81836110ba565b8e61076c565b809250813d83116108d0575b6108ba81836110ba565b810103126108cc57518c610746610713565b8d80fd5b503d6108b0565b8e8a51903d90823e3d90fd5b634e487b7160e01b8a5260118b5260248afd5b61090b9197503d808b833e61050181836110ba565b958a6106a0565b6109289250803d1061044d5761043d81836110ba565b388e610660565b87513d8d823e3d90fd5b61094f90883d8a116105675761055881836110ba565b508a61060c565b85513d8b823e3d90fd5b80fd5b50503461019c578160031936011261019c576020906003549051908152f35b50828260031936011261096057610997611043565b928051936109a485611088565b6002855260209180368488013780516315ab88c960e31b808252966001600160a01b03917f000000000000000000000000000000000000000000000000000000000000000083169086818a81855afa908115610c875791610a8491899594938691610c6a575b5084610a15856110fb565b91169052610a228361111e565b8488169052610a303461137e565b959093610a418587600154166113ad565b610a4f8787600254166113ad565b610a6287610a5d8734611142565b611142565b8c8951809681948293637ff36ab560e01b84524291339160243590860161121e565b0391855af1918215610c60578992610c44575b50855163c45a015560e01b81529a888c8c81855afa9b8c15610c3a578a9c610c1b575b50865181815289818d81865afa908115610c1157988c9d8b9c9d92888f94610b1b9d859f9693610bf2575b508c5163e6a4390560e01b81526001600160a01b03938416918101918252929094166020850152909b8c93849291839160400190565b0392165afa97881561092f57908a918c99610bd3575b508c88518094819382525afa988915610bc9578a99610baa575b505080516000198101919082116108e35791610b916104199694927f1854e126c531b464931f921ac9c5aaca843aa7a189df01c55e9ce646881f93ab9a9998969461112e565b518260015416926002541694519889983491338b611291565b610bc1929950803d1061044d5761043d81836110ba565b968a80610b4b565b86513d8c823e3d90fd5b610beb919950823d841161044d5761043d81836110ba565b978d610b31565b610c0a919350863d881161044d5761043d81836110ba565b9138610ae5565b88513d8d823e3d90fd5b610c33919c50893d8b1161044d5761043d81836110ba565b9a8c610aba565b87513d8c823e3d90fd5b610c599192503d808b833e61050181836110ba565b908b610a97565b86513d8b823e3d90fd5b610c819150893d8b1161044d5761043d81836110ba565b8c610a0a565b85513d8a823e3d90fd5b503461015457608036600319011261015457610cab611043565b916001600160a01b03906024358281169190829003610d3c576044359260643595610cd461133f565b16908115610d2d578215610d2d5761251c8411610d1e576127108611610d1e57506bffffffffffffffffffffffff60a01b9081600154161760015560025416176002556003555580f35b5163a724e54f60e01b81528490fd5b5163d92e233d60e01b81528490fd5b8580fd5b50503461019c578160031936011261019c57905490516001600160a01b039091168152602090f35b50503461019c578160031936011261019c5760025490516001600160a01b039091168152602090f35b50828260031936011261096057610da6611043565b92805193610db385611088565b6002855260209180368488013780516315ab88c960e31b808252966001600160a01b03917f000000000000000000000000000000000000000000000000000000000000000083169086818a81855afa908115610c875791610e8e91899594938691610f6a575b5084610e24856110fb565b91169052610e318361111e565b8488169052610e3f3461137e565b959093610e508587600154166113ad565b610e5e8787600254166113ad565b610e6c87610a5d8734611142565b8c895180968194829363fb3bdb4160e01b84524291339160243590860161121e565b0391855af1918215610c60578992610f4e575b5047610f29575b855163c45a015560e01b81529a888c8c81855afa9b8c15610c3a578a9c610c1b5750865181815289818d81865afa908115610c1157988c9d8b9c9d92888f94610b1b9d859f9693610bf257508c5163e6a4390560e01b81526001600160a01b03938416918101918252929094166020850152909b8c93849291839160400190565b8880808047335af1610f39611251565b50610ea85785516338822c1360e11b81528a90fd5b610f639192503d808b833e61050181836110ba565b908b610ea1565b610f819150893d8b1161044d5761043d81836110ba565b8c610e19565b8334610960578060031936011261096057610fa061133f565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50503461019c578160031936011261019c5760015490516001600160a01b039091168152602090f35b50503461019c578160031936011261019c576020905161251c8152f35b9250503461015457826003193601126101545760209250548152f35b600435906001600160a01b038216820361105957565b600080fd5b6060906003190112611059576004356001600160a01b038116810361105957906024359060443590565b6060810190811067ffffffffffffffff8211176110a457604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176110a457604052565b9081602091031261105957516001600160a01b03811681036110595790565b8051156111085760200190565b634e487b7160e01b600052603260045260246000fd5b8051600110156111085760400190565b80518210156111085760209160051b010190565b9190820391821161114f57565b634e487b7160e01b600052601160045260246000fd5b90602090818382031261105957825167ffffffffffffffff93848211611059570181601f820112156110595780519384116110a4578360051b90604051946111af858401876110ba565b85528380860192820101928311611059578301905b8282106111d2575050505090565b815181529083019083016111c4565b90815180825260208080930193019160005b828110611201575050505090565b83516001600160a01b0316855293810193928101926001016111f3565b9060609261123d919695949683526080602084015260808301906111e1565b6001600160a01b0390951660408201520152565b3d1561128c573d9067ffffffffffffffff82116110a45760405191611280601f8201601f1916602001846110ba565b82523d6000602084013e565b606090565b6001600160a01b039182168152918116602083015291821660408201526060810192909252608082019290925260a081019290925291821660c082015260e081019290925291821661010082015291166101208201526101400190565b90816020910312611059575180151581036110595790565b919260809361132b92979695978452602084015260a0604084015260a08301906111e1565b6001600160a01b0390951660608201520152565b6000546001600160a01b0316330361135357565b60405163118cdaa760e01b8152336004820152602490fd5b8181029291811591840414171561114f57565b6113aa611394916127109283916003549061136b565b04916113a26004548461136b565b048092611142565b91565b600080809381935af16113be611251565b50156113c657565b6040516338822c1360e11b8152600490fd5b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff8411176110a45761143192604052611433565b565b60008061145c9260018060a01b03169360208151910182865af1611455611251565b90836114a5565b805190811515918261148a575b50506114725750565b60249060405190635274afe760e01b82526004820152fd5b61149d92506020809183010191016112ee565b153880611469565b906114cc57508051156114ba57805190602001fd5b604051630a12f52160e11b8152600490fd5b815115806114ff575b6114dd575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b156114d556fea2646970667358221220d9e1407cb6c96c335d8347ae1a1353c31121091a295f245b64f36810cf5aaf6f64736f6c634300081700330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000c01ab97ec9371157de1fc7a5341f7b899894d63200000000000000000000000042a310f567810afb220fef21b373602c8564e2940000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000251c
Deployed Bytecode
0x60806040818152600480361015610021575b505050361561001f57600080fd5b005b600092833560e01c908163095b710d14611027575080634befe2ca1461100a57806361d027b314610fe1578063715018a614610f875780637f24e6ec14610d9157806385f377ca14610d685780638da5cb5b14610d405780639258b71f14610c91578063b79c48e514610982578063b8606eef14610963578063bd9b208414610578578063c038847a146101bd578063cfa498a3146101a0578063d8264920146101585763f2fde38b036100115734610154576020366003190112610154576100e8611043565b906100f161133f565b6001600160a01b0391821692831561013e57505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b50503461019c578160031936011261019c57517f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03168152602090f35b5080fd5b50503461019c578160031936011261019c57602090516127108152f35b5082903461019c576101ce3661105e565b94909160018060a01b0391828216946101e9853033896113d8565b815163095ea7b360e01b81527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d85166001600160a01b0381168383019081526020808201899052989196929089908290819060400103818d865af1801561056e57610541575b5083519061025c82611088565b6002825284368a84013761026f826110fb565b5283516315ab88c960e31b8082529190898186818b5afa908115610537579189918c93849161051a575b50856102a48361111e565b911690526102c887519d8e9384936318cbafe560e01b8552429230928b8701611306565b0381838a5af1998a1561051057899a6104ec575b50895160001981019a908b116104d9576102fa8a9b6103009261112e565b5161137e565b9390916103118385600154166113ad565b61031f8585600254166113ad565b479161032b83336113ad565b865163c45a015560e01b81528b8183818d5afa9081156104cf578d916104b2575b5087518381528c8184818e5afa9d8e156104a757918d9e916103a89b9c9d9e9392610488575b50895163e6a4390560e01b81526001600160a01b03808e16868301908152931660208401529a8b9283918a918391604090910190565b0392165afa978d891561047d57908d9392919961045e575b508751809b819382525afa978815610454577f1854e126c531b464931f921ac9c5aaca843aa7a189df01c55e9ce646881f93ab9a8c9961041f575b5050610419969798836001541693600254169551998a99338b611291565b0390a180f35b610419989950908161044592903d1061044d575b61043d81836110ba565b8101906110dc565b97968c6103fb565b503d610433565b85513d8d823e3d90fd5b610476919950833d851161044d5761043d81836110ba565b978e6103c0565b8851903d90823e3d90fd5b6104a0919250833d851161044d5761043d81836110ba565b9038610372565b8951903d90823e3d90fd5b6104c991508c8d3d1061044d5761043d81836110ba565b8e61034c565b88513d8f823e3d90fd5b634e487b7160e01b8a526011845260248afd5b610509919a503d808b833e61050181836110ba565b810190611165565b988a6102dc565b84513d8b823e3d90fd5b61053191508c8d3d1061044d5761043d81836110ba565b8e610299565b86513d8d823e3d90fd5b61056090893d8b11610567575b61055881836110ba565b8101906112ee565b508a61024f565b503d61054e565b85513d8c823e3d90fd5b508234610960576105883661105e565b946001600160a01b0392838116929091906105a5883033876113d8565b815163095ea7b360e01b81527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d86166001600160a01b03811689830190815260208082018c905297919691929088908290819060400103818c865af1801561095657610939575b508351996106198b611088565b60028b528436898d01378161062d8c6110fb565b5284516315ab88c960e31b808252949089818d818c5afa90811561092f578c9d928c9d9b9c949261068c928e8792610912575b50508761066c8661111e565b911690528851632512eca560e11b81529b8c948594429330938701611306565b0381838a5af19687156105105789976108f6575b50865160001981019081116108e357906106bf6102fa8b9c938a61112e565b9490926106d08486600154166113ad565b6106de8686600254166113ad565b47926106ea84336113ad565b87516370a0823160e01b815230838201528c81602481855afa9081156108d7578d908f926108a4575b50895163a9059cbb60e01b9181019190915233602482015260448082019290925290815261074b916107466064836110ba565b611433565b865163c45a015560e01b81528b8183818d5afa9081156104cf578d91610887575b5087518381528c8184818e5afa9d8e156104a757918d9e916107c79b9c9d9e93926104885750895163e6a4390560e01b81526001600160a01b03808e16868301908152931660208401529a8b9283918a918391604090910190565b0392165afa978d891561047d57908d93929199610868575b508751809b819382525afa978815610454577f1854e126c531b464931f921ac9c5aaca843aa7a189df01c55e9ce646881f93ab9a8c99610841575b505061082a6104199798996110fb565b51836001541693600254169551998a99338b611291565b61041998995061082a918161086192903d1061044d5761043d81836110ba565b989761081a565b610880919950833d851161044d5761043d81836110ba565b978e6107df565b61089e91508c8d3d1061044d5761043d81836110ba565b8e61076c565b809250813d83116108d0575b6108ba81836110ba565b810103126108cc57518c610746610713565b8d80fd5b503d6108b0565b8e8a51903d90823e3d90fd5b634e487b7160e01b8a5260118b5260248afd5b61090b9197503d808b833e61050181836110ba565b958a6106a0565b6109289250803d1061044d5761043d81836110ba565b388e610660565b87513d8d823e3d90fd5b61094f90883d8a116105675761055881836110ba565b508a61060c565b85513d8b823e3d90fd5b80fd5b50503461019c578160031936011261019c576020906003549051908152f35b50828260031936011261096057610997611043565b928051936109a485611088565b6002855260209180368488013780516315ab88c960e31b808252966001600160a01b03917f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d83169086818a81855afa908115610c875791610a8491899594938691610c6a575b5084610a15856110fb565b91169052610a228361111e565b8488169052610a303461137e565b959093610a418587600154166113ad565b610a4f8787600254166113ad565b610a6287610a5d8734611142565b611142565b8c8951809681948293637ff36ab560e01b84524291339160243590860161121e565b0391855af1918215610c60578992610c44575b50855163c45a015560e01b81529a888c8c81855afa9b8c15610c3a578a9c610c1b575b50865181815289818d81865afa908115610c1157988c9d8b9c9d92888f94610b1b9d859f9693610bf2575b508c5163e6a4390560e01b81526001600160a01b03938416918101918252929094166020850152909b8c93849291839160400190565b0392165afa97881561092f57908a918c99610bd3575b508c88518094819382525afa988915610bc9578a99610baa575b505080516000198101919082116108e35791610b916104199694927f1854e126c531b464931f921ac9c5aaca843aa7a189df01c55e9ce646881f93ab9a9998969461112e565b518260015416926002541694519889983491338b611291565b610bc1929950803d1061044d5761043d81836110ba565b968a80610b4b565b86513d8c823e3d90fd5b610beb919950823d841161044d5761043d81836110ba565b978d610b31565b610c0a919350863d881161044d5761043d81836110ba565b9138610ae5565b88513d8d823e3d90fd5b610c33919c50893d8b1161044d5761043d81836110ba565b9a8c610aba565b87513d8c823e3d90fd5b610c599192503d808b833e61050181836110ba565b908b610a97565b86513d8b823e3d90fd5b610c819150893d8b1161044d5761043d81836110ba565b8c610a0a565b85513d8a823e3d90fd5b503461015457608036600319011261015457610cab611043565b916001600160a01b03906024358281169190829003610d3c576044359260643595610cd461133f565b16908115610d2d578215610d2d5761251c8411610d1e576127108611610d1e57506bffffffffffffffffffffffff60a01b9081600154161760015560025416176002556003555580f35b5163a724e54f60e01b81528490fd5b5163d92e233d60e01b81528490fd5b8580fd5b50503461019c578160031936011261019c57905490516001600160a01b039091168152602090f35b50503461019c578160031936011261019c5760025490516001600160a01b039091168152602090f35b50828260031936011261096057610da6611043565b92805193610db385611088565b6002855260209180368488013780516315ab88c960e31b808252966001600160a01b03917f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d83169086818a81855afa908115610c875791610e8e91899594938691610f6a575b5084610e24856110fb565b91169052610e318361111e565b8488169052610e3f3461137e565b959093610e508587600154166113ad565b610e5e8787600254166113ad565b610e6c87610a5d8734611142565b8c895180968194829363fb3bdb4160e01b84524291339160243590860161121e565b0391855af1918215610c60578992610f4e575b5047610f29575b855163c45a015560e01b81529a888c8c81855afa9b8c15610c3a578a9c610c1b5750865181815289818d81865afa908115610c1157988c9d8b9c9d92888f94610b1b9d859f9693610bf257508c5163e6a4390560e01b81526001600160a01b03938416918101918252929094166020850152909b8c93849291839160400190565b8880808047335af1610f39611251565b50610ea85785516338822c1360e11b81528a90fd5b610f639192503d808b833e61050181836110ba565b908b610ea1565b610f819150893d8b1161044d5761043d81836110ba565b8c610e19565b8334610960578060031936011261096057610fa061133f565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50503461019c578160031936011261019c5760015490516001600160a01b039091168152602090f35b50503461019c578160031936011261019c576020905161251c8152f35b9250503461015457826003193601126101545760209250548152f35b600435906001600160a01b038216820361105957565b600080fd5b6060906003190112611059576004356001600160a01b038116810361105957906024359060443590565b6060810190811067ffffffffffffffff8211176110a457604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176110a457604052565b9081602091031261105957516001600160a01b03811681036110595790565b8051156111085760200190565b634e487b7160e01b600052603260045260246000fd5b8051600110156111085760400190565b80518210156111085760209160051b010190565b9190820391821161114f57565b634e487b7160e01b600052601160045260246000fd5b90602090818382031261105957825167ffffffffffffffff93848211611059570181601f820112156110595780519384116110a4578360051b90604051946111af858401876110ba565b85528380860192820101928311611059578301905b8282106111d2575050505090565b815181529083019083016111c4565b90815180825260208080930193019160005b828110611201575050505090565b83516001600160a01b0316855293810193928101926001016111f3565b9060609261123d919695949683526080602084015260808301906111e1565b6001600160a01b0390951660408201520152565b3d1561128c573d9067ffffffffffffffff82116110a45760405191611280601f8201601f1916602001846110ba565b82523d6000602084013e565b606090565b6001600160a01b039182168152918116602083015291821660408201526060810192909252608082019290925260a081019290925291821660c082015260e081019290925291821661010082015291166101208201526101400190565b90816020910312611059575180151581036110595790565b919260809361132b92979695978452602084015260a0604084015260a08301906111e1565b6001600160a01b0390951660608201520152565b6000546001600160a01b0316330361135357565b60405163118cdaa760e01b8152336004820152602490fd5b8181029291811591840414171561114f57565b6113aa611394916127109283916003549061136b565b04916113a26004548461136b565b048092611142565b91565b600080809381935af16113be611251565b50156113c657565b6040516338822c1360e11b8152600490fd5b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff8411176110a45761143192604052611433565b565b60008061145c9260018060a01b03169360208151910182865af1611455611251565b90836114a5565b805190811515918261148a575b50506114725750565b60249060405190635274afe760e01b82526004820152fd5b61149d92506020809183010191016112ee565b153880611469565b906114cc57508051156114ba57805190602001fd5b604051630a12f52160e11b8152600490fd5b815115806114ff575b6114dd575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b156114d556fea2646970667358221220d9e1407cb6c96c335d8347ae1a1353c31121091a295f245b64f36810cf5aaf6f64736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000c01ab97ec9371157de1fc7a5341f7b899894d63200000000000000000000000042a310f567810afb220fef21b373602c8564e2940000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000251c
-----Decoded View---------------
Arg [0] : _uniswapRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _treasury (address): 0xC01ab97Ec9371157de1fc7A5341F7b899894d632
Arg [2] : _dexTreasury (address): 0x42a310f567810AFB220FeF21B373602C8564e294
Arg [3] : _feeBasisPoints (uint256): 50
Arg [4] : _dexFeeBasisPoints (uint256): 9500
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 000000000000000000000000c01ab97ec9371157de1fc7a5341f7b899894d632
Arg [2] : 00000000000000000000000042a310f567810afb220fef21b373602c8564e294
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [4] : 000000000000000000000000000000000000000000000000000000000000251c
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
BASE | 100.00% | $2,482.42 | 0.0000041 | $0.010178 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.