Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 30 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Swap Exact Token... | 20211697 | 3 hrs ago | IN | 0 ETH | 0.00148625 | ||||
Swap Exact ETH F... | 20208117 | 15 hrs ago | IN | 0.1 ETH | 0.00052921 | ||||
Swap Exact Token... | 20208113 | 15 hrs ago | IN | 0 ETH | 0.00061116 | ||||
Swap Exact Token... | 20206266 | 21 hrs ago | IN | 0 ETH | 0.0010728 | ||||
Swap Exact ETH F... | 20204733 | 26 hrs ago | IN | 0.025 ETH | 0.00055997 | ||||
Swap Exact ETH F... | 20204730 | 26 hrs ago | IN | 0.025 ETH | 0.00056157 | ||||
Swap Exact ETH F... | 20203726 | 30 hrs ago | IN | 0.02 ETH | 0.00046935 | ||||
Swap Exact Token... | 20202839 | 33 hrs ago | IN | 0 ETH | 0.00036339 | ||||
Swap Exact ETH F... | 20200853 | 39 hrs ago | IN | 0.1 ETH | 0.00034366 | ||||
Swap Exact ETH F... | 20190793 | 3 days ago | IN | 0.05 ETH | 0.00138878 | ||||
Swap Exact ETH F... | 20183243 | 4 days ago | IN | 0.012 ETH | 0.00188574 | ||||
Swap Exact ETH F... | 20170002 | 5 days ago | IN | 0.4 ETH | 0.00168214 | ||||
Swap Exact Token... | 20168803 | 6 days ago | IN | 0 ETH | 0.00117026 | ||||
Swap Exact ETH F... | 20166658 | 6 days ago | IN | 0.25 ETH | 0.00064116 | ||||
Swap Exact ETH F... | 20166653 | 6 days ago | IN | 0.25 ETH | 0.00064354 | ||||
Swap Exact Token... | 20163664 | 6 days ago | IN | 0 ETH | 0.00114066 | ||||
Swap Exact ETH F... | 20161892 | 7 days ago | IN | 0.001 ETH | 0.00112256 | ||||
Swap Exact ETH F... | 20148260 | 9 days ago | IN | 0.05 ETH | 0.00073511 | ||||
Swap Exact ETH F... | 20143181 | 9 days ago | IN | 0.01 ETH | 0.00053263 | ||||
Swap Exact Token... | 20136214 | 10 days ago | IN | 0 ETH | 0.00112114 | ||||
Swap Exact Token... | 20132754 | 11 days ago | IN | 0 ETH | 0.00410938 | ||||
Swap Exact ETH F... | 20112640 | 13 days ago | IN | 0.005 ETH | 0.00275791 | ||||
Swap Exact ETH F... | 20104376 | 15 days ago | IN | 0.0088 ETH | 0.00060766 | ||||
Swap Exact ETH F... | 20086261 | 17 days ago | IN | 0.0001 ETH | 0.00104101 | ||||
Swap Exact ETH F... | 20034503 | 24 days ago | IN | 0.001 ETH | 0.00664409 |
Latest 19 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
20208117 | 15 hrs ago | 0.099 ETH | ||||
20204733 | 26 hrs ago | 0.02475 ETH | ||||
20204730 | 26 hrs ago | 0.02475 ETH | ||||
20203726 | 30 hrs ago | 0.0198 ETH | ||||
20200853 | 39 hrs ago | 0.099 ETH | ||||
20190793 | 3 days ago | 0.0495 ETH | ||||
20183243 | 4 days ago | 0.01188 ETH | ||||
20170002 | 5 days ago | 0.396 ETH | ||||
20166658 | 6 days ago | 0.2475 ETH | ||||
20166653 | 6 days ago | 0.2475 ETH | ||||
20161892 | 7 days ago | 0.00099 ETH | ||||
20148260 | 9 days ago | 0.0495 ETH | ||||
20143181 | 9 days ago | 0.0099 ETH | ||||
20112640 | 13 days ago | 0.00495 ETH | ||||
20104376 | 15 days ago | 0.008712 ETH | ||||
20086261 | 17 days ago | 0.000099 ETH | ||||
20034503 | 24 days ago | 0.00099 ETH | ||||
20034345 | 24 days ago | 0.00099 ETH | ||||
20027388 | 25 days ago | 0.0099 ETH |
Loading...
Loading
Contract Name:
PaalXSwapContract
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: GPL-2.0-or-later pragma solidity 0.8.19; import "./IERC20.sol"; import "./SafeERC20.sol"; import "./Ownable.sol"; import "./Context.sol"; import "./ReentrancyGuard.sol"; import "./IUniswapV2Router02.sol"; /// @title PaalX Swap Smart Contract /// @author Juan Snaider Cruickshank / Github: jscrui / Linkedin: juan-snaider-cruickshank /// @notice This contract is a new layer for the Uniswap v2 Router, it allows users to swap tokens, Ether and tokens for Ether. /// @dev All ownable functions are implemented with the onlyOwner modifier and it should be used with Multisignature wallet. contract PaalXSwapContract is Context, Ownable, ReentrancyGuard { using SafeERC20 for IERC20; IUniswapV2Router02 public router; address constant NATIVE_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; uint256 public swappingFee; uint256 public swappingFeeDivisior; uint256 public referralFee; bool public isStopped; bool public isReferralStopped; mapping(address referrer => mapping(address tokenAddress => uint256 feeAmount)) public referrals; // mapping(referrer => mapping(tokenAddress => feeAmount)) mapping(address referrer => mapping(address sender => bool isReferredBy)) public referredBy; // mapping(referrer => mapping(msg.sender => true)) mapping(address token => uint256 totalReferralFee) public totalReferralFeePerToken; event Buy( address indexed sender, uint256 amountIn, address indexed tokenAddr, uint256 amountOut ); event Sell( address indexed sender, uint256 amountIn, address indexed tokenAddr, uint256 amountOut ); event SellTokensForTokens( address indexed sender, address indexed tokenIn, uint256 amountIn, address indexed tokenOut, uint256 amountOut ); event ClaimedReferralFee( address indexed sender, uint256 amountClaimed, address token ); event PausedReferrals(bool); /** * @param _router the address of the Uniswap v2 Router or compatible. */ constructor(IUniswapV2Router02 _router) { router = _router; swappingFee = 1000; swappingFeeDivisior = 100000; referralFee = 10000; // 10% } /** * @notice Returns the amount after fee is deducted. * @param _amount the amount to be deducted. * @return newAmount the amount after the fee is deducted. */ function getAmountAfterFee( uint256 _amount ) internal view returns (uint256) { return (_amount * (swappingFeeDivisior - swappingFee)) / swappingFeeDivisior; } /** * @notice Swaps Ether for tokens. * @dev the caller must send Ether along with the transaction. * @param _tokenOut the address of the token to be received. * @param _amountOutMin the minimum amount of tokens to receive; the transaction will revert if not met. * @param _deadline the deadline for the swap to be executed. * @param _referrer address who referred msg.sender. * @return amountOut the amount of tokens received. */ function swapExactETHForTokens( address _tokenOut, uint256 _amountOutMin, uint256 _deadline, address _referrer ) external payable nonReentrant returns (uint256 amountOut) { require(!isStopped, "PAALXSWAP: Contract is not active"); require(_tokenOut != address(0), "PAALXSWAP: Invalid _tokenOut"); require(msg.value > 0, "PAALXSWAP: Not enough Ether"); IERC20 token = IERC20(_tokenOut); // Calculate the amount to be swapped after the fee is deducted uint256 amountAfterFee = getAmountAfterFee(msg.value); // Set up the path for the swap address[] memory path = new address[](2); path[0] = router.WETH(); path[1] = _tokenOut; // Record sender's initial tokenOut balance uint256 beforeBalance = token.balanceOf(msg.sender); // Perform token swap router.swapExactETHForTokensSupportingFeeOnTransferTokens{ value: amountAfterFee }(_amountOutMin, path, msg.sender, block.timestamp + _deadline); // Record sender's final tokenOut balance uint256 afterBalance = token.balanceOf(msg.sender); // Calculate the amount of tokenOut received amountOut = afterBalance - beforeBalance; _updateReferrerReward( _referrer, msg.value - amountAfterFee, NATIVE_TOKEN ); emit Buy(msg.sender, msg.value, _tokenOut, amountOut); } /** * @notice Swaps tokens for Ether. * @dev the caller must have approved this contract to spend the token on their behalf. * @param _tokenIn the address of the token to be swapped. * @param _amountIn the amount of tokens to be swapped. * @param _amountOutMin the minimum amount of Ether to receive; the transaction will revert if not met. * @param _deadline the deadline for the swap to be executed. * @param _referrer address who referred msg.sender. * @return amountOut the amount of Ether received. */ function swapExactTokensForETH( address _tokenIn, uint256 _amountIn, uint256 _amountOutMin, uint256 _deadline, address _referrer ) external nonReentrant returns (uint256 amountOut) { require(!isStopped, "PAALXSWAP: Contract is not active"); require(_tokenIn != address(0), "PAALXSWAP: Invalid _tokenIn"); require(_amountIn > 0, "PAALXSWAP: Invalid amountIn"); IERC20 token = IERC20(_tokenIn); // Record contract's initial balance uint256 initialBalance = token.balanceOf(address(this)); // Transfer tokens from the sender to this contract token.safeTransferFrom(msg.sender, address(this), _amountIn); // Record the actual tokens received after any fee-on-transfer uint256 actualReceived = token.balanceOf(address(this)) - initialBalance; // Calculate the amount to be swapped after the fee is deducted uint256 actualReceivedAfterFee = getAmountAfterFee(actualReceived); // Approve the router to spend the tokens for the swap token.safeApprove(address(router), actualReceivedAfterFee); // Set up the path for the swap address[] memory path = new address[](2); path[0] = _tokenIn; path[1] = router.WETH(); // Record sender's initial Ether balance uint256 beforeBalance = msg.sender.balance; // Perform the token swap router.swapExactTokensForETHSupportingFeeOnTransferTokens( actualReceivedAfterFee, _amountOutMin, path, msg.sender, block.timestamp + _deadline ); // Record sender's final Ether balance uint256 afterBalance = msg.sender.balance; // Calculate the amount of Ether received by the sender amountOut = afterBalance - beforeBalance; _updateReferrerReward( _referrer, actualReceived - actualReceivedAfterFee, _tokenIn ); emit Sell(msg.sender, _amountIn, _tokenIn, amountOut); } /** * @notice Swaps tokens for tokens. * @dev the caller must have approved this contract to spend the token on their behalf. * @param _tokenIn the address of the token to be swapped. * @param _tokenOut the address of the token to be received. * @param _amountIn the amount of tokens to be swapped. * @param _amountOutMin the minimum amount of tokenOut to be received; the transaction will revert if not met. * @param _deadline the deadline for the swap to be executed. * @param _hasPair check if the addresses has a pair if not we use weth as a intermediary * @return amountOut the amount of tokens received. * @param _referrer address who referred msg.sender. */ function swapExactTokensForTokens( address _tokenIn, address _tokenOut, uint256 _amountIn, uint256 _amountOutMin, uint256 _deadline, bool _hasPair, address _referrer ) external nonReentrant returns (uint256 amountOut) { require(!isStopped, "PAALXSWAP: Contract is not active"); require( _tokenIn != address(0) && _tokenOut != address(0), "PAALXSWAP: Invalid tokenIn/tokenOut address" ); require(_amountIn > 0, "PAALXSWAP: Invalid amountIn"); IERC20 tokenInContract = IERC20(_tokenIn); IERC20 tokenOutContract = IERC20(_tokenOut); // Record contract's initial balance of _tokenIn uint256 initialBalanceTokenIn = tokenInContract.balanceOf( address(this) ); // Transfer the _amountIn tokens from the sender to this contract tokenInContract.safeTransferFrom(msg.sender, address(this), _amountIn); // Calculate the actual tokens received after any fee-on-transfer uint256 actualReceived = tokenInContract.balanceOf(address(this)) - initialBalanceTokenIn; // Calculate the amount to be swapped after the fee is deducted uint256 actualReceivedAfterFee = getAmountAfterFee(actualReceived); // Record sender's initial balance of tokenOut uint256 initialBalanceTokenOut = tokenOutContract.balanceOf(msg.sender); // Set up the path for the swap based on the hasPair flag address[] memory path; if (_hasPair) { path = new address[](2); path[0] = _tokenIn; path[1] = _tokenOut; } else { path = new address[](3); path[0] = _tokenIn; path[1] = router.WETH(); // Use WETH as an intermediary path[2] = _tokenOut; } // Approve the router to spend the tokens for the swap tokenInContract.safeApprove(address(router), actualReceivedAfterFee); // Perform the token swap router.swapExactTokensForTokensSupportingFeeOnTransferTokens( actualReceivedAfterFee, _amountOutMin, path, msg.sender, block.timestamp + _deadline ); // Record sender's final tokenOut balance uint256 afterBalance = tokenOutContract.balanceOf(msg.sender); // Calculate the amount of tokenOut received by the sender amountOut = afterBalance - initialBalanceTokenOut; _updateReferrerReward( _referrer, actualReceived - actualReceivedAfterFee, _tokenIn ); emit SellTokensForTokens( msg.sender, _tokenIn, _amountIn, _tokenOut, amountOut ); } /** * @notice Set the router used for the swaps. * @param _newRouter the address of the new Uniswap v2 Router or compatible. */ function setRouter(IUniswapV2Router02 _newRouter) external onlyOwner { require( address(_newRouter) != address(0), "PAALXSWAP: Invalid address" ); router = _newRouter; } /** * @notice Withdraws all the Ether held by the contract. * @dev Only callable by the owner. */ function withdrawEther() external onlyOwner { uint256 withdrawableETH = address(this).balance - totalReferralFeePerToken[NATIVE_TOKEN]; require(withdrawableETH > 0, "No Eth in Contract"); payable(owner()).transfer(withdrawableETH); } /** * @notice Withdraws all the tokens held by the contract. * @dev Only callable by the owner. * @param _tokenAddress the address of the token to be withdrawn */ function withdrawERC20( address _tokenAddress ) external onlyOwner returns (bool result) { IERC20 token = IERC20(_tokenAddress); uint256 withdrawableTokenAmount = token.balanceOf(address(this)) - totalReferralFeePerToken[_tokenAddress]; result = token.transfer(msg.sender, withdrawableTokenAmount); } /** * @notice Updates the referral fee. * @param _referrer address who referred msg.sender. * @param _swappingFeeAmount amount of fee generated by transaction. * @param _token address of tokenIn for transaction. */ function _updateReferrerReward( address _referrer, uint256 _swappingFeeAmount, address _token ) internal { if ( _referrer != address(0) && !isReferralStopped && _referrer != msg.sender ) { uint256 referrersFee = (_swappingFeeAmount * referralFee) / swappingFeeDivisior; if (referredBy[_referrer][msg.sender]) { referrals[_referrer][_token] += referrersFee; } else { referredBy[_referrer][msg.sender] = true; referrals[_referrer][_token] += referrersFee; } totalReferralFeePerToken[_token] += referrersFee; } } /** * @notice transfers referral fee of a token to msg.sender * @param _token address to claim */ function claimReferralFee(address _token) external nonReentrant { uint256 amountToClaim = referrals[msg.sender][_token]; require(amountToClaim > 0, "No Fee to Claim"); referrals[msg.sender][_token] = 0; totalReferralFeePerToken[_token] -= amountToClaim; if (_token == NATIVE_TOKEN) payable(msg.sender).transfer(amountToClaim); else IERC20(_token).safeTransfer(msg.sender, amountToClaim); emit ClaimedReferralFee(msg.sender, amountToClaim, _token); } /** * @notice Set the swapping fee. * @dev The swapping fee is a percentage of the amount to be swapped and should be less than 5%. Only callable by the owner. * @param _swappingFee the new swapping fee in percentage * @param _swappingFeeDivisior the new swapping fee divisior * * Example: * 1% = 1000 / 100000 * 0.1% = 100 / 100000 * 0.01% = 10 / 100000 */ function setSwappingFee( uint256 _swappingFee, uint256 _swappingFeeDivisior ) external onlyOwner { require(_swappingFeeDivisior != 0, "PAALXSWAP: Divisor cannot be zero"); require( (_swappingFee * 100) / _swappingFeeDivisior < 5, "PAALXSWAP: Fee must be < 5%" ); swappingFee = _swappingFee; swappingFeeDivisior = _swappingFeeDivisior; } /** * @notice Update referralFeePercent. * @param _referralFee new referral fee percentage. * @dev only contract Owner can call this function. */ function updateReferralFee(uint256 _referralFee) external onlyOwner { referralFee = _referralFee; } /** * @notice This function is used to stop the contract in case of emergency. * @param _isStopped the new state of the contract * @dev Only callable by the owner. */ function emergencyStop(bool _isStopped) external onlyOwner { isStopped = _isStopped; } /** * @notice This function is used to stop the contract in case of emergency and withdraw all the funds. * @param _isStopped the new state of the contract * @dev Only callable by the owner. */ function emergencyStopAndWithdraw(bool _isStopped) external onlyOwner { isStopped = _isStopped; payable(owner()).transfer(address(this).balance); } /** * @notice Checks referrers claimable fee balance for a token. * @param _referrer address to check. * @param _token address to check. * @return claimableReferralFee the amount _referrer can claim. */ function checkReferralReward( address _referrer, address _token ) public view returns (uint256 claimableReferralFee) { claimableReferralFee = referrals[_referrer][_token]; } /** * @notice pause referrals * @dev only contract Owner can call this function. */ function pauseRefferals() external onlyOwner { require(isReferralStopped == false, "Already Paused"); isReferralStopped = true; emit PausedReferrals(true); } /** * @notice resume referrals * @dev only contract Owner can call this function. */ function resumeRefferals() external onlyOwner { require(isReferralStopped == true, "Already Active"); isReferralStopped = false; emit PausedReferrals(false); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.19; /** * @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 // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// 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.4) (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. * * ==== 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: GPL-2.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-2.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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./IERC20Permit.sol"; import "./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)); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IUniswapV2Router02","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":true,"internalType":"address","name":"tokenAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"Buy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountClaimed","type":"uint256"},{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"ClaimedReferralFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"","type":"bool"}],"name":"PausedReferrals","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":true,"internalType":"address","name":"tokenAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"Sell","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":true,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"SellTokensForTokens","type":"event"},{"inputs":[{"internalType":"address","name":"_referrer","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"checkReferralReward","outputs":[{"internalType":"uint256","name":"claimableReferralFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"claimReferralFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isStopped","type":"bool"}],"name":"emergencyStop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isStopped","type":"bool"}],"name":"emergencyStopAndWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isReferralStopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isStopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseRefferals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"referralFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"referrer","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"referrals","outputs":[{"internalType":"uint256","name":"feeAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"referrer","type":"address"},{"internalType":"address","name":"sender","type":"address"}],"name":"referredBy","outputs":[{"internalType":"bool","name":"isReferredBy","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resumeRefferals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IUniswapV2Router02","name":"_newRouter","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_swappingFee","type":"uint256"},{"internalType":"uint256","name":"_swappingFeeDivisior","type":"uint256"}],"name":"setSwappingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenOut","type":"address"},{"internalType":"uint256","name":"_amountOutMin","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"swapExactETHForTokens","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenIn","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_amountOutMin","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"swapExactTokensForETH","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenIn","type":"address"},{"internalType":"address","name":"_tokenOut","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_amountOutMin","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"bool","name":"_hasPair","type":"bool"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"swapExactTokensForTokens","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swappingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swappingFeeDivisior","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"totalReferralFeePerToken","outputs":[{"internalType":"uint256","name":"totalReferralFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_referralFee","type":"uint256"}],"name":"updateReferralFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"withdrawERC20","outputs":[{"internalType":"bool","name":"result","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080346100be57601f611fde38819003918201601f19168301916001600160401b038311848410176100c3578084926020946040528339810103126100be57516001600160a01b0390818116908190036100be5760005460018060a01b0319903382821617600055604051933391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36001805560025416176002556103e8600355620186a0600455612710600555611f0490816100da8239f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe608080604052600436101561001357600080fd5b600090813560e01c9081630803b3d7146116fd575080630ac62e02146116c85780631f921860146112a157806325c9698c146112835780633f683b6a146112605780634b853450146111c85780635c9607371461116c578063715018a6146111125780637362377b146110715780637537ba4914610da157806384ae2bc614610d835780638da5cb5b14610d5c5780639efe271a14610cc5578063a0ab291b14610606578063a882113c14610bca578063ab8826001461067b578063b463dbdf14610655578063b92835d814610606578063c0d7865514610571578063c3a3026b14610423578063d73f0e90146103ea578063e60a8e1214610396578063f2fde38b146102cb578063f3f524b8146102a8578063f4f3b2001461016a5763f887ea401461013f57600080fd5b346101675780600319360112610167576002546040516001600160a01b039091168152602090f35b80fd5b5034610167576020908160031936011261016757610186611728565b61018e611754565b6040516370a0823160e01b81523060048201526001600160a01b0391909116908381602481855afa90811561029d5791849184938491610263575b50906101e461020e92828652600985526040862054906118f0565b60405163a9059cbb60e01b8152336004820152602481019190915293849283919082906044820190565b03925af1918215610257579161022a575b506040519015158152f35b61024a9150823d8411610250575b6102428183611832565b8101906119b5565b3861021f565b503d610238565b604051903d90823e3d90fd5b9350509082813d8311610296575b61027b8183611832565b81010312610291579051829184916101e46101c9565b600080fd5b503d610271565b6040513d85823e3d90fd5b5034610167576020366003190112610167576102c2611754565b60043560055580f35b5034610167576020366003190112610167576102e5611728565b6102ed611754565b6001600160a01b0390811690811561034257600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b5034610167576040366003190112610167576103b0611728565b60406103ba61173e565b9260018060a01b0380931681526008602052209116600052602052602060ff604060002054166040519015158152f35b5034610167576020366003190112610167576020906040906001600160a01b03610412611728565b168152600983522054604051908152f35b50346101675760208060031936011261056d5761043e611728565b610446611ac4565b3383526007825260408084206001600160a01b03909216600081815292845291205491821561053757338452600781526040842082600052815283604060002055818452600981526040842061049d8482546118f0565b905573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee82036104fe5783808080863382f11561029d575b6040519283528201527f9a2cdf25528c61186bdadae5fcce8a48df498408b6321c44f31cb5339b13c0a660403392a26001805580f35b60405163a9059cbb60e01b82820152336024820152604480820185905281526105329061052c606482611832565b83611cb1565b6104c8565b6064906040519062461bcd60e51b82526004820152600f60248201526e4e6f2046656520746f20436c61696d60881b6044820152fd5b5080fd5b5034610167576020366003190112610167576004356001600160a01b0381169081900361056d576105a0611754565b80156105c1576bffffffffffffffffffffffff60a01b600254161760025580f35b60405162461bcd60e51b815260206004820152601a60248201527f5041414c58535741503a20496e76616c696420616464726573730000000000006044820152606490fd5b503461016757604036600319011261016757610620611728565b604061062a61173e565b9260018060a01b03809316815260076020522091166000526020526020604060002054604051908152f35b5034610167578060031936011261016757602060ff60065460081c166040519015158152f35b50346101675760e036600319011261016757610695611728565b61069d61173e565b9060a435151560a435036102915760c4356001600160a01b0381169003610291576106c6611ac4565b6106d560ff60065416156117ac565b6001600160a01b038116151580610bb8575b15610b5f576106f96044351515611930565b6040516370a0823160e01b81523060048201526020816024816001600160a01b0386165afa908115610a8c578491610b2d575b5061074460443530336001600160a01b038616611b1a565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa8015610b22578590610aee575b61078192506118f0565b916107a260045461079d610797600354836118f0565b866118fd565b611910565b6040516370a0823160e01b8152336004820152946020866024816001600160a01b0387165afa958615610ae1578196610aad575b5060a43515610998576040516107eb81611816565b600281526040366020830137806001600160a01b03861661080b82611873565b526001600160a01b0385169061082090611880565b525b60025461083e9084906001600160a01b03908116908816611b75565b6002546001600160a01b031661085660843542611890565b91813b15610994579183916108889383604051809681958294635c11d79560e01b845233906064358d6004870161197c565b03925af1801561098957908291610975575b50506040516370a0823160e01b81523360048201526020816024816001600160a01b0388165afa9182156102575791610941575b506108e96108f1926108e360209887946118f0565b966118f0565b60c4356119cd565b6040805160443581528581018590526001600160a01b03928316939092169133917f232330aba56ca82df22cce069571e4e1f80c99b6f56cb7d88946bddbd097b53e91a460018055604051908152f35b90506020813d60201161096d575b8161095c60209383611832565b8101031261029157516108e96108ce565b3d915061094f565b61097e90611802565b61016757803861089a565b6040513d84823e3d90fd5b8380fd5b60405180608081011067ffffffffffffffff608083011117610a975760808101604052600381526060366020830137806001600160a01b0386166109db82611873565b526002546040516315ab88c960e31b815290602090829060049082906001600160a01b03165afa908115610a8c578491610a5d575b50610a1a82611880565b6001600160a01b039091169052805160021015610a47576001600160a01b03851660609190910152610822565b634e487b7160e01b600052603260045260246000fd5b610a7f915060203d602011610a85575b610a778183611832565b810190611854565b38610a10565b503d610a6d565b6040513d86823e3d90fd5b634e487b7160e01b600052604160045260246000fd5b9095506020813d602011610ad9575b81610ac960209383611832565b81010312610291575194386107d6565b3d9150610abc565b50604051903d90823e3d90fd5b506020823d602011610b1a575b81610b0860209383611832565b81010312610291576107819151610777565b3d9150610afb565b6040513d87823e3d90fd5b90506020813d602011610b57575b81610b4860209383611832565b8101031261029157513861072c565b3d9150610b3b565b60405162461bcd60e51b815260206004820152602b60248201527f5041414c58535741503a20496e76616c696420746f6b656e496e2f746f6b656e60448201526a4f7574206164647265737360a81b6064820152608490fd5b506001600160a01b03821615156106e7565b503461016757604036600319011261016757602435600435610bea611754565b8115610c76576064810281810460641482151715610c6257610c0e83600592611910565b1015610c1d5760035560045580f35b60405162461bcd60e51b815260206004820152601b60248201527f5041414c58535741503a20466565206d757374206265203c20352500000000006044820152606490fd5b634e487b7160e01b84526011600452602484fd5b60405162461bcd60e51b815260206004820152602160248201527f5041414c58535741503a2044697669736f722063616e6e6f74206265207a65726044820152606f60f81b6064820152608490fd5b5034610167578060031936011261016757610cde611754565b600654600160ff8260081c16151503610d265761ff0019166006557f48ccd4cd1696ac196de691a6474de36759b7ffa07946832fac92b3938df0b6676020604051838152a180f35b60405162461bcd60e51b815260206004820152600e60248201526d416c72656164792041637469766560901b6044820152606490fd5b5034610167578060031936011261016757546040516001600160a01b039091168152602090f35b50346101675780600319360112610167576020600554604051908152f35b50346101675760a036600319011261016757610dbb611728565b6001600160a01b03906084359060243590838316830361029157610ddd611ac4565b610dec60ff60065416156117ac565b83811692831561102c57610e01831515611930565b6040516370a0823160e01b8082523060048301526020979188816024818a5afa90811561029d578391610fff575b50610e3c8630338a611b1a565b60405191825230600483015288826024818a5afa801561029d578390610fd0575b610e6792506118f0565b95610e8360045461079d610e7d600354836118f0565b8a6118fd565b91610e9383836002541689611b75565b604051610e9f81611816565b600281526040368b83013787610eb482611873565b526002546040516315ab88c960e31b8152908416938b82600481885afa918215610a8c578492610fb1575b50610ee983611880565b91169052333192610efc60643542611890565b91813b1561099457918391610f2f938360405180968195829463791ac94760e01b845233908d604435906004870161197c565b03925af1801561098957610f9d575b5050610f60939291610f54610f5a9233316118f0565b976118f0565b906119cd565b60405190815282848201527f463904c4b0359ad674399537c3d4e4e44acc0b0dd259453d17329fd9b4be52c060403392a360018055604051908152f35b610fa78291611802565b6101675780610f3e565b610fc99192508c8d3d10610a8557610a778183611832565b9038610edf565b508882813d8311610ff8575b610fe68183611832565b8101031261029157610e679151610e5d565b503d610fdc565b90508881813d8311611025575b6110168183611832565b81010312610291575138610e2f565b503d61100c565b60405162461bcd60e51b815260206004820152601b60248201527f5041414c58535741503a20496e76616c6964205f746f6b656e496e00000000006044820152606490fd5b503461016757806003193601126101675761108a611754565b6110b54773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee835260096020526040832054906118f0565b80156110d857815482918291829182916001600160a01b031682f1156102575780f35b60405162461bcd60e51b8152602060048201526012602482015271139bc8115d1a081a5b8810dbdb9d1c9858dd60721b6044820152606490fd5b503461016757806003193601126101675761112b611754565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461016757602036600319011261016757611186611719565b61118e611754565b60ff80196006541691151516176006558080808060018060a01b0381541647908282156111bf575bf1156102575780f35b506108fc6111b6565b50346101675780600319360112610167576111e1611754565b60065460ff8160081c1661122a576101009061ff001916176006557f48ccd4cd1696ac196de691a6474de36759b7ffa07946832fac92b3938df0b667602060405160018152a180f35b60405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e4814185d5cd95960921b6044820152606490fd5b5034610167578060031936011261016757602060ff600654166040519015158152f35b50346101675780600319360112610167576020600454604051908152f35b506080366003190112610167576112b6611728565b6001600160a01b039060643582811691908290036109945782906112d8611ac4565b6112e760ff60065416156117ac565b1690811561168357341561163e5761131060045461079d61130a600354836118f0565b346118fd565b926040519061131e82611816565b60028252602095604036888501376002546040516315ab88c960e31b8152908316928882600481875afa91821561029d57839261161f575b5061136085611873565b911690528461136e84611880565b52604051926370a0823160e01b9283855233600486015288856024818a5afa94851561029d5783956115ec575b506113a860443542611890565b91813b156109945783916113e3918a60405180968195829463b6f9de9560e01b845260243560048501526080602485015260848401906118b3565b90336044840152606483015203925af18015610989576115dd575b50906040519081523360048201528681602481885afa91821561025757916115ae575b506114369161142f916118f0565b93346118f0565b8115158061159e575b80611594575b611489575b505060405134815282848201527fa76261e4127b2ebc809716d704216602fdaee4ae5b72745ed9aec0d7bd73b75d60403392a360018055604051908152f35b6114996114a291600554906118fd565b60045490611910565b908060005260088552604060002033600052855260ff604060002054166000146115345760005260078452604060002073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee600052845260406000206114fc828254611890565b90555b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6000526009845261152b6040600020918254611890565b9055388061144a565b806000526008855260406000203360005285526040600020600160ff1982541617905560005260078452604060002073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6000528452604060002061158d828254611890565b90556114ff565b5033821415611445565b5060ff60065460081c161561143f565b90508581813d83116115d6575b6115c58183611832565b810103126102915751611436611421565b503d6115bb565b6115e690611802565b386113fe565b9094508881813d8311611618575b6116048183611832565b810103126116145751933861139b565b8280fd5b503d6115fa565b611637919250893d8b11610a8557610a778183611832565b9038611356565b60405162461bcd60e51b815260206004820152601b60248201527f5041414c58535741503a204e6f7420656e6f75676820457468657200000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601c60248201527f5041414c58535741503a20496e76616c6964205f746f6b656e4f7574000000006044820152606490fd5b5034610167576020366003190112610167576116e2611719565b6116ea611754565b60ff801960065416911515161760065580f35b90503461056d578160031936011261056d576020906003548152f35b60043590811515820361029157565b600435906001600160a01b038216820361029157565b602435906001600160a01b038216820361029157565b6000546001600160a01b0316330361176857565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b156117b357565b60405162461bcd60e51b815260206004820152602160248201527f5041414c58535741503a20436f6e7472616374206973206e6f742061637469766044820152606560f81b6064820152608490fd5b67ffffffffffffffff8111610a9757604052565b6060810190811067ffffffffffffffff821117610a9757604052565b90601f8019910116810190811067ffffffffffffffff821117610a9757604052565b9081602091031261029157516001600160a01b03811681036102915790565b805115610a475760200190565b805160011015610a475760400190565b9190820180921161189d57565b634e487b7160e01b600052601160045260246000fd5b90815180825260208080930193019160005b8281106118d3575050505090565b83516001600160a01b0316855293810193928101926001016118c5565b9190820391821161189d57565b8181029291811591840414171561189d57565b811561191a570490565b634e487b7160e01b600052601260045260246000fd5b1561193757565b60405162461bcd60e51b815260206004820152601b60248201527f5041414c58535741503a20496e76616c696420616d6f756e74496e00000000006044820152606490fd5b91926080936119a192979695978452602084015260a0604084015260a08301906118b3565b6001600160a01b0390951660608201520152565b90816020910312610291575180151581036102915790565b6001600160a01b039081169081151580611ab4575b80611aaa575b6119f3575b50505050565b6009611a08611499611a5d95600554906118fd565b9460009284845260209160088352604095868620338752845260ff8787205416600014611a685785526007835285852082821686528352858520611a4d898254611890565b90555b1683525220918254611890565b9055388080806119ed565b808652600884528686203387528452868620600160ff1982541617905585526007835285852082821686528352858520611aa3898254611890565b9055611a50565b50338214156119e8565b5060ff60065460081c16156119e2565b600260015414611ad5576002600155565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff841117610a9757611b7392604052611cb1565b565b91909181158015611c2c575b15611bc85760405163095ea7b360e01b60208201526001600160a01b03939093166024840152604480840192909252908252611b739190611bc3606483611832565b611cb1565b60405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608490fd5b50604051636eb1769f60e11b81523060048201526001600160a01b0384811660248301526020908290604490829086165afa908115611ca557600091611c74575b5015611b81565b906020823d8211611c9d575b81611c8d60209383611832565b8101031261016757505138611c6d565b3d9150611c80565b6040513d6000823e3d90fd5b6040805167ffffffffffffffff94936001600160a01b03909316929091820185811183821017610a97576040526020928383527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564848401526000808386829551910182855af1903d15611ded573d968711611dd957611d5194959660405190611d4388601f19601f8401160183611832565b81528093873d92013e611dfa565b805190828215928315611dc1575b50505015611d6a5750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b611dd193508201810191016119b5565b388281611d5f565b634e487b7160e01b83526041600452602483fd5b9150611d51939495506060915b91929015611e5c5750815115611e0e575090565b3b15611e175790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015611e6f5750805190602001fd5b6040519062461bcd60e51b82528160208060048301528251908160248401526000935b828510611eb5575050604492506000838284010152601f80199101168101030190fd5b8481018201518686016044015293810193859350611e9256fea26469706673582212204fcfc5c494f23920260cb2e263d910cfcb5b7b28caa3100cce71041d824407ed64736f6c634300081300330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Deployed Bytecode
0x608080604052600436101561001357600080fd5b600090813560e01c9081630803b3d7146116fd575080630ac62e02146116c85780631f921860146112a157806325c9698c146112835780633f683b6a146112605780634b853450146111c85780635c9607371461116c578063715018a6146111125780637362377b146110715780637537ba4914610da157806384ae2bc614610d835780638da5cb5b14610d5c5780639efe271a14610cc5578063a0ab291b14610606578063a882113c14610bca578063ab8826001461067b578063b463dbdf14610655578063b92835d814610606578063c0d7865514610571578063c3a3026b14610423578063d73f0e90146103ea578063e60a8e1214610396578063f2fde38b146102cb578063f3f524b8146102a8578063f4f3b2001461016a5763f887ea401461013f57600080fd5b346101675780600319360112610167576002546040516001600160a01b039091168152602090f35b80fd5b5034610167576020908160031936011261016757610186611728565b61018e611754565b6040516370a0823160e01b81523060048201526001600160a01b0391909116908381602481855afa90811561029d5791849184938491610263575b50906101e461020e92828652600985526040862054906118f0565b60405163a9059cbb60e01b8152336004820152602481019190915293849283919082906044820190565b03925af1918215610257579161022a575b506040519015158152f35b61024a9150823d8411610250575b6102428183611832565b8101906119b5565b3861021f565b503d610238565b604051903d90823e3d90fd5b9350509082813d8311610296575b61027b8183611832565b81010312610291579051829184916101e46101c9565b600080fd5b503d610271565b6040513d85823e3d90fd5b5034610167576020366003190112610167576102c2611754565b60043560055580f35b5034610167576020366003190112610167576102e5611728565b6102ed611754565b6001600160a01b0390811690811561034257600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b5034610167576040366003190112610167576103b0611728565b60406103ba61173e565b9260018060a01b0380931681526008602052209116600052602052602060ff604060002054166040519015158152f35b5034610167576020366003190112610167576020906040906001600160a01b03610412611728565b168152600983522054604051908152f35b50346101675760208060031936011261056d5761043e611728565b610446611ac4565b3383526007825260408084206001600160a01b03909216600081815292845291205491821561053757338452600781526040842082600052815283604060002055818452600981526040842061049d8482546118f0565b905573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee82036104fe5783808080863382f11561029d575b6040519283528201527f9a2cdf25528c61186bdadae5fcce8a48df498408b6321c44f31cb5339b13c0a660403392a26001805580f35b60405163a9059cbb60e01b82820152336024820152604480820185905281526105329061052c606482611832565b83611cb1565b6104c8565b6064906040519062461bcd60e51b82526004820152600f60248201526e4e6f2046656520746f20436c61696d60881b6044820152fd5b5080fd5b5034610167576020366003190112610167576004356001600160a01b0381169081900361056d576105a0611754565b80156105c1576bffffffffffffffffffffffff60a01b600254161760025580f35b60405162461bcd60e51b815260206004820152601a60248201527f5041414c58535741503a20496e76616c696420616464726573730000000000006044820152606490fd5b503461016757604036600319011261016757610620611728565b604061062a61173e565b9260018060a01b03809316815260076020522091166000526020526020604060002054604051908152f35b5034610167578060031936011261016757602060ff60065460081c166040519015158152f35b50346101675760e036600319011261016757610695611728565b61069d61173e565b9060a435151560a435036102915760c4356001600160a01b0381169003610291576106c6611ac4565b6106d560ff60065416156117ac565b6001600160a01b038116151580610bb8575b15610b5f576106f96044351515611930565b6040516370a0823160e01b81523060048201526020816024816001600160a01b0386165afa908115610a8c578491610b2d575b5061074460443530336001600160a01b038616611b1a565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa8015610b22578590610aee575b61078192506118f0565b916107a260045461079d610797600354836118f0565b866118fd565b611910565b6040516370a0823160e01b8152336004820152946020866024816001600160a01b0387165afa958615610ae1578196610aad575b5060a43515610998576040516107eb81611816565b600281526040366020830137806001600160a01b03861661080b82611873565b526001600160a01b0385169061082090611880565b525b60025461083e9084906001600160a01b03908116908816611b75565b6002546001600160a01b031661085660843542611890565b91813b15610994579183916108889383604051809681958294635c11d79560e01b845233906064358d6004870161197c565b03925af1801561098957908291610975575b50506040516370a0823160e01b81523360048201526020816024816001600160a01b0388165afa9182156102575791610941575b506108e96108f1926108e360209887946118f0565b966118f0565b60c4356119cd565b6040805160443581528581018590526001600160a01b03928316939092169133917f232330aba56ca82df22cce069571e4e1f80c99b6f56cb7d88946bddbd097b53e91a460018055604051908152f35b90506020813d60201161096d575b8161095c60209383611832565b8101031261029157516108e96108ce565b3d915061094f565b61097e90611802565b61016757803861089a565b6040513d84823e3d90fd5b8380fd5b60405180608081011067ffffffffffffffff608083011117610a975760808101604052600381526060366020830137806001600160a01b0386166109db82611873565b526002546040516315ab88c960e31b815290602090829060049082906001600160a01b03165afa908115610a8c578491610a5d575b50610a1a82611880565b6001600160a01b039091169052805160021015610a47576001600160a01b03851660609190910152610822565b634e487b7160e01b600052603260045260246000fd5b610a7f915060203d602011610a85575b610a778183611832565b810190611854565b38610a10565b503d610a6d565b6040513d86823e3d90fd5b634e487b7160e01b600052604160045260246000fd5b9095506020813d602011610ad9575b81610ac960209383611832565b81010312610291575194386107d6565b3d9150610abc565b50604051903d90823e3d90fd5b506020823d602011610b1a575b81610b0860209383611832565b81010312610291576107819151610777565b3d9150610afb565b6040513d87823e3d90fd5b90506020813d602011610b57575b81610b4860209383611832565b8101031261029157513861072c565b3d9150610b3b565b60405162461bcd60e51b815260206004820152602b60248201527f5041414c58535741503a20496e76616c696420746f6b656e496e2f746f6b656e60448201526a4f7574206164647265737360a81b6064820152608490fd5b506001600160a01b03821615156106e7565b503461016757604036600319011261016757602435600435610bea611754565b8115610c76576064810281810460641482151715610c6257610c0e83600592611910565b1015610c1d5760035560045580f35b60405162461bcd60e51b815260206004820152601b60248201527f5041414c58535741503a20466565206d757374206265203c20352500000000006044820152606490fd5b634e487b7160e01b84526011600452602484fd5b60405162461bcd60e51b815260206004820152602160248201527f5041414c58535741503a2044697669736f722063616e6e6f74206265207a65726044820152606f60f81b6064820152608490fd5b5034610167578060031936011261016757610cde611754565b600654600160ff8260081c16151503610d265761ff0019166006557f48ccd4cd1696ac196de691a6474de36759b7ffa07946832fac92b3938df0b6676020604051838152a180f35b60405162461bcd60e51b815260206004820152600e60248201526d416c72656164792041637469766560901b6044820152606490fd5b5034610167578060031936011261016757546040516001600160a01b039091168152602090f35b50346101675780600319360112610167576020600554604051908152f35b50346101675760a036600319011261016757610dbb611728565b6001600160a01b03906084359060243590838316830361029157610ddd611ac4565b610dec60ff60065416156117ac565b83811692831561102c57610e01831515611930565b6040516370a0823160e01b8082523060048301526020979188816024818a5afa90811561029d578391610fff575b50610e3c8630338a611b1a565b60405191825230600483015288826024818a5afa801561029d578390610fd0575b610e6792506118f0565b95610e8360045461079d610e7d600354836118f0565b8a6118fd565b91610e9383836002541689611b75565b604051610e9f81611816565b600281526040368b83013787610eb482611873565b526002546040516315ab88c960e31b8152908416938b82600481885afa918215610a8c578492610fb1575b50610ee983611880565b91169052333192610efc60643542611890565b91813b1561099457918391610f2f938360405180968195829463791ac94760e01b845233908d604435906004870161197c565b03925af1801561098957610f9d575b5050610f60939291610f54610f5a9233316118f0565b976118f0565b906119cd565b60405190815282848201527f463904c4b0359ad674399537c3d4e4e44acc0b0dd259453d17329fd9b4be52c060403392a360018055604051908152f35b610fa78291611802565b6101675780610f3e565b610fc99192508c8d3d10610a8557610a778183611832565b9038610edf565b508882813d8311610ff8575b610fe68183611832565b8101031261029157610e679151610e5d565b503d610fdc565b90508881813d8311611025575b6110168183611832565b81010312610291575138610e2f565b503d61100c565b60405162461bcd60e51b815260206004820152601b60248201527f5041414c58535741503a20496e76616c6964205f746f6b656e496e00000000006044820152606490fd5b503461016757806003193601126101675761108a611754565b6110b54773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee835260096020526040832054906118f0565b80156110d857815482918291829182916001600160a01b031682f1156102575780f35b60405162461bcd60e51b8152602060048201526012602482015271139bc8115d1a081a5b8810dbdb9d1c9858dd60721b6044820152606490fd5b503461016757806003193601126101675761112b611754565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461016757602036600319011261016757611186611719565b61118e611754565b60ff80196006541691151516176006558080808060018060a01b0381541647908282156111bf575bf1156102575780f35b506108fc6111b6565b50346101675780600319360112610167576111e1611754565b60065460ff8160081c1661122a576101009061ff001916176006557f48ccd4cd1696ac196de691a6474de36759b7ffa07946832fac92b3938df0b667602060405160018152a180f35b60405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e4814185d5cd95960921b6044820152606490fd5b5034610167578060031936011261016757602060ff600654166040519015158152f35b50346101675780600319360112610167576020600454604051908152f35b506080366003190112610167576112b6611728565b6001600160a01b039060643582811691908290036109945782906112d8611ac4565b6112e760ff60065416156117ac565b1690811561168357341561163e5761131060045461079d61130a600354836118f0565b346118fd565b926040519061131e82611816565b60028252602095604036888501376002546040516315ab88c960e31b8152908316928882600481875afa91821561029d57839261161f575b5061136085611873565b911690528461136e84611880565b52604051926370a0823160e01b9283855233600486015288856024818a5afa94851561029d5783956115ec575b506113a860443542611890565b91813b156109945783916113e3918a60405180968195829463b6f9de9560e01b845260243560048501526080602485015260848401906118b3565b90336044840152606483015203925af18015610989576115dd575b50906040519081523360048201528681602481885afa91821561025757916115ae575b506114369161142f916118f0565b93346118f0565b8115158061159e575b80611594575b611489575b505060405134815282848201527fa76261e4127b2ebc809716d704216602fdaee4ae5b72745ed9aec0d7bd73b75d60403392a360018055604051908152f35b6114996114a291600554906118fd565b60045490611910565b908060005260088552604060002033600052855260ff604060002054166000146115345760005260078452604060002073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee600052845260406000206114fc828254611890565b90555b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6000526009845261152b6040600020918254611890565b9055388061144a565b806000526008855260406000203360005285526040600020600160ff1982541617905560005260078452604060002073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6000528452604060002061158d828254611890565b90556114ff565b5033821415611445565b5060ff60065460081c161561143f565b90508581813d83116115d6575b6115c58183611832565b810103126102915751611436611421565b503d6115bb565b6115e690611802565b386113fe565b9094508881813d8311611618575b6116048183611832565b810103126116145751933861139b565b8280fd5b503d6115fa565b611637919250893d8b11610a8557610a778183611832565b9038611356565b60405162461bcd60e51b815260206004820152601b60248201527f5041414c58535741503a204e6f7420656e6f75676820457468657200000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601c60248201527f5041414c58535741503a20496e76616c6964205f746f6b656e4f7574000000006044820152606490fd5b5034610167576020366003190112610167576116e2611719565b6116ea611754565b60ff801960065416911515161760065580f35b90503461056d578160031936011261056d576020906003548152f35b60043590811515820361029157565b600435906001600160a01b038216820361029157565b602435906001600160a01b038216820361029157565b6000546001600160a01b0316330361176857565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b156117b357565b60405162461bcd60e51b815260206004820152602160248201527f5041414c58535741503a20436f6e7472616374206973206e6f742061637469766044820152606560f81b6064820152608490fd5b67ffffffffffffffff8111610a9757604052565b6060810190811067ffffffffffffffff821117610a9757604052565b90601f8019910116810190811067ffffffffffffffff821117610a9757604052565b9081602091031261029157516001600160a01b03811681036102915790565b805115610a475760200190565b805160011015610a475760400190565b9190820180921161189d57565b634e487b7160e01b600052601160045260246000fd5b90815180825260208080930193019160005b8281106118d3575050505090565b83516001600160a01b0316855293810193928101926001016118c5565b9190820391821161189d57565b8181029291811591840414171561189d57565b811561191a570490565b634e487b7160e01b600052601260045260246000fd5b1561193757565b60405162461bcd60e51b815260206004820152601b60248201527f5041414c58535741503a20496e76616c696420616d6f756e74496e00000000006044820152606490fd5b91926080936119a192979695978452602084015260a0604084015260a08301906118b3565b6001600160a01b0390951660608201520152565b90816020910312610291575180151581036102915790565b6001600160a01b039081169081151580611ab4575b80611aaa575b6119f3575b50505050565b6009611a08611499611a5d95600554906118fd565b9460009284845260209160088352604095868620338752845260ff8787205416600014611a685785526007835285852082821686528352858520611a4d898254611890565b90555b1683525220918254611890565b9055388080806119ed565b808652600884528686203387528452868620600160ff1982541617905585526007835285852082821686528352858520611aa3898254611890565b9055611a50565b50338214156119e8565b5060ff60065460081c16156119e2565b600260015414611ad5576002600155565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff841117610a9757611b7392604052611cb1565b565b91909181158015611c2c575b15611bc85760405163095ea7b360e01b60208201526001600160a01b03939093166024840152604480840192909252908252611b739190611bc3606483611832565b611cb1565b60405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608490fd5b50604051636eb1769f60e11b81523060048201526001600160a01b0384811660248301526020908290604490829086165afa908115611ca557600091611c74575b5015611b81565b906020823d8211611c9d575b81611c8d60209383611832565b8101031261016757505138611c6d565b3d9150611c80565b6040513d6000823e3d90fd5b6040805167ffffffffffffffff94936001600160a01b03909316929091820185811183821017610a97576040526020928383527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564848401526000808386829551910182855af1903d15611ded573d968711611dd957611d5194959660405190611d4388601f19601f8401160183611832565b81528093873d92013e611dfa565b805190828215928315611dc1575b50505015611d6a5750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b611dd193508201810191016119b5565b388281611d5f565b634e487b7160e01b83526041600452602483fd5b9150611d51939495506060915b91929015611e5c5750815115611e0e575090565b3b15611e175790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015611e6f5750805190602001fd5b6040519062461bcd60e51b82528160208060048301528251908160248401526000935b828510611eb5575050604492506000838284010152601f80199101168101030190fd5b8481018201518686016044015293810193859350611e9256fea26469706673582212204fcfc5c494f23920260cb2e263d910cfcb5b7b28caa3100cce71041d824407ed64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
-----Decoded View---------------
Arg [0] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
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.