Spend less on fees, more on crypto. Buy crypto easily with MoonPay Balance. 20M+ users trust MoonPay worldwide.
Ready to onboard to Ethereum? With MetaMask Portfolio, you're in control.
Don’t invest unless you’re prepared to lose all the money you invest.
Ready to simplify your web3 experience? Try the all-in-one web3 app trusted by millions worldwide.
Available on 9 networks: Ethereum mainnet, Linea, Polygon, Optimism, BNB Chain, zkSync Era, Base, Avalanche.
Everyday giveaways up to 100 ETH, Lucky Spins. Deposit BONUS 300% and Cashbacks!
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
Slots, Roulette, Poker & more - Proud sponsors of UFC, Everton & StakeF1 team!
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
Anonymous play on awesome games - sign up now for 25 free jackpot spins - worth $100s!
100s of games, generous bonuses, 20+ years of trusted gaming. Join CryptoWins & start winning today!
Overview
ETH Balance
Eth Value
$0.00Token Holdings
Could not find any matches!
- ERC-20 Tokens (148)0.00001007 ALDAladdin Toke... (ALD)$0.00@0.05880 ⚗️Alchemist (⚗️)$0.00@0.75580 AMPAmp (AMP)$0.00@0.00820.00000002 AMPLAmpleforth (AMPL)$0.00@1.100 ankrETHAnkr Staked ... (ankrET...)$0.00@3,992.280 $ANRXAnRKey X ($ANRX)0 ARMORArmor (ARMOR)$0.00@0.00042 ATRIAtariToken (ATRI)$0.00@0.00030.0006 NIOXAutonio (NIOX)$0.00@0.00120.00056341 BADGERBadger (BADGER)$0.00@4.200 BASEBase Protoco... (BASE)$0.00@1.360 BDPBDPToken (BDP)$0.00@0.11590 BAGBondAppetit ... (BAG)0 BMIBridge Mutua... (BMI)$0.00@0.00270.0006 CELCelsius (CEL)$0.00@0.19950 LINKChainLink To... (LINK)$0.00@24.020 COOKCook Token (COOK)$0.00@0.02680 $DGdecentral.ga... ($DG)$0.00@7.650 DIPDecentralize... (DIP)$0.00@0.01390 DEFI5DEFI Top 5 T... (DEFI5)0 DPIDefiPulse In... (DPI)$0.00@153.680.00000006 DIGGDigg (DIGG)$0.00@621.580 DPXDopex Govern... (DPX)$0.00@18.910 ENJEnjinCoin (ENJ)$0.00@0.23460 ETH2x-FLIETH 2x Flexi... (ETH2x-...)$0.00@21.16410 PUSHEthereum Pus... (PUSH)$0.00@0.11480 FARMFARM Reward ... (FARM)$0.00@50.910 FEIFei USD (FEI)$0.00@1.0010 FOXFOX (FOX)$0.00@0.06160 FCLFractal Prot... (FCL)$0.00@0.00260.00002568 FRAXFrax (FRAX)$0.00@0.99670 FXSFrax Share (FXS)$0.00@3.280 GYSRGeyser (GYSR)$0.00@0.03530 GTCGitcoin (GTC)$0.00@0.75770 GOVIGOVI (GOVI)$0.00@0.06390.00001252 GRTGraph Token (GRT)$0.00@0.22410.00000023 HEXHEX (HEX)$0.00@0.00380 HYVEHYVE (HYVE)$0.00@0.0170 ICEIceToken (ICE)$0.00@0.42320 INJInjective To... (INJ)$0.00@22.64430 KNCKyberNetwork (KNC)$0.00@0.56280 LOOKSLooksRare To... (LOOKS)$0.00@0.06360 MCHCMCHCoin (MCHC)$0.00@0.05150 MLNMelon Token (MLN)$0.00@21.61670 MTLXMettalex (MTLX)$0.00@2.20930 NTVRKNETVRK (NTVRK)$0.00@0.10970 NFYNon-Fungible... (NFY)$0.00@0.49690.00000045 OHMOHM V1 (OHM)$0.00@118.110 OHMOlympus (OHM)$0.00@20.690 OMGOMG Network (OMG)$0.00@0.35150 ONXOnX.finance (ONX)$0.00@0.00950 RAIRai Reflex I... (RAI)$0.00@2.990 RLYRally (RLY)$0.00@0.00190 RGTRari Governa... (RGT)$0.00@0.19150 RARIRarible (RARI)$0.00@2.600 REEFReef.finance (REEF)$0.00@0.00110.00000008 renBTCrenBTC (renBTC)$0.01@88,945.000 renFILrenFIL (renFIL)$0.00@5.700 REVVREVV (REVV)$0.00@0.00440.00000001 RLCRLC (RLC)$0.00@2.240.00000001 XRTRobonomics (XRT)$0.00@1.710 ROOKROOK (ROOK)$0.00@0.91190.000002 SRMSerum (SRM)$0.00@0.03190 SHROOMshroom.finan... (SHROOM)$0.00@0.01230.00000003 AGIXSingularityN... (AGIX)$0.00@0.5820 SISIREN (SI)$0.00@0.03180.00000001 SkeySmartKey (Skey)$0.00@0.10650 SNOWSnowSwap (SNOW)$0.00@0.29730 STACKStacker Vent... (STACK)0 FISStaFi (FIS)$0.00@0.44480 stETHstETH (stETH)$0.00@3,398.250.00000002 STORJStorj (STORJ)$0.00@0.50640 STRONGStrong (STRONG)$0.00@3.230 SUPERSuperVerse (SUPER)$0.00@1.630 SYLOSylo (SYLO)$0.00@0.00140.16 TELTelcoin (TEL)$0.00@0.00560 TOKETokemak (TOKE)$0.00@0.66830 TORNTORN Token (TORN)$0.00@9.590 TOWERTOWER (TOWER)$0.00@0.00180 TRIBETribe (TRIBE)$0.00@0.65510.0003 UOSUltra Token (UOS)$0.00@0.09650.00000018 UBTUniBright (UBT)$0.00@0.03640 UNCXUniCrypt (UNCX)$0.00@291.860 UDOUnido (UDO)$0.00@0.00130 xFUNDunification.... (xFUND)$0.00@318.610 USFUnslashed Fi... (USF)$0.00@0.00550 UTKUtrust Token (UTK)$0.00@0.09650 VRAVERA (VRA)$0.00@0.00440 VISIONVision Token (VISION)$0.00@0.1930 VISRVISOR (VISR)$0.00@0.00050 LUNCWrapped LUNC... (LUNC)$0.00@0.000 MIRWrapped MIR ... (MIR)$0.00@0.02540 USTCWrapped USTC... (USTC)$0.00@0.01920.002 XIOTXiotri (XIOT)$0.00@0.61720 XMONXMON (XMON)$0.00@734.780 YFIyearn.financ... (YFI)$0.00@9,045.200 ZCXZEN Exchange... (ZCX)$0.00@0.14080 ZRXZRX (ZRX)$0.00@0.48720 AAVEAave Token (AAVE)$0.00@374.540 COMPCompound (COMP)$0.00@84.210 CRVCurve DAO To... (CRV)$0.00@0.95420.00026651 DAIDai Stableco... (DAI)$0.00@1.0010 ENSEthereum Nam... (ENS)$0.00@36.300.03 GUSDGemini dolla... (GUSD)$0.03@1.0020 MKRMaker (MKR)$0.00@1,619.090.0002 USDTTether USD (USDT)$0.00@0.99940.005542 USDCUSDC (USDC)$0.01@1.0010.00000182 WBTCWrapped BTC (WBTC)$0.17@93,977.000.00017678 WETHWrapped Ethe... (WETH)$0.60@3,408.91770.00042092 DYPDeFiYieldProtocol$0.00@0.23490.0000001 XDBdigitalbits$0.00@0.00090 FWTFreewayToken0.00000003 GALAGala0 GTHGather0 HBTHabitat Token0.00000001 KBTCKBTC0.00002342 KlonXERC-20: Klon... (KlonX)0.00000001 MEMEMEME0.0002 MRPHMorpheus.Network0 NFTNFT Protocol$0.00@0.00380 AXSOld Axie Infinity Shard0.00000011 ORNOrion Protocol0 RPLRocket Pool0.00000003 TOKTOK0 vETH2ERC-20: vali... (vETH2)0.0004 WHALEWHALE$0.00@0.68170 mAAPLWrapped Mirror AAPL Token0 mBABAWrapped Mirror BABA Token0 mQQQWrapped Mirror QQQ Token0 mSLVWrapped Mirror SLV Token0.00000115 ZKSZks0 2GT2GT_token0 FLXFlex Ungovernance Token$0.00@7.1220.00000003 GALAGala$0.00@0.03690 HAPIHAPI$0.00@10.190.00000002 LTOLTO Network Token0 ORCL5Oracle Top 5 Tokens Index0 PDEXPolkadex$0.00@0.13490 RAINIRainicorn$0.00@0.00090 SAITOSAITO$0.00@0.00540 TRUTruebit$0.00@0.17750 WARPWarp Token92.47 TokenERC-20 TOKEN*[Suspicious]0.7 TokenERC-20 TOKEN*[Suspicious]142.47 TokenERC-20 TOKEN*[Suspicious]1,000 TokenERC-20 TOKEN*[Suspicious]777 TokenERC-20 TOKEN*[Suspicious]6,000 TokenERC-20 TOKEN*[Spam]NFT Tokens (29)claim rewards on agixcoin.netagixcoin.netERC-1155claim rewards on aprgraph.comaprgraph.comERC-1155claim rewards on apyaave.comapyaave.comERC-1155claim rewards on apyclink.comapyclink.comERC-1155claim rewards on ensfoundation.orgensfoundation.orgERC-1155claim rewards on fraxprotocol.comfraxprotocol.comERC-1155claim rewards on galaevent.orggalaevent.orgERC-1155claim rewards on linkrewards.orglinkrewards.orgERC-1155claim rewards on poolstaked.orgpoolstaked.orgERC-1155claim rewards on stethprize.comstethprize.comERC-1155claim rewards on wrappedbtc.netwrappedbtc.netERC-1155ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]
- Transactions
- Internal Transactions
- Token Transfers (ERC-20)
- NFT Transfers
- Contract
- Events
- Analytics
- Multichain Portfolio
- Cards New
- Info
Advanced Filter- Filter by Tx Type:
- Tx
- Internal Tx
- ERC-20
- NFTs
Latest 25 from a total of 11,025 transactions
Transaction Hash MethodBlockFromToZap In 15183084 2022-07-21 1:48:37 887 days ago 1658368117 IN 0.0035 ETH$11.94 0.00371602 12.78023815 Zap In 15182918 2022-07-21 1:09:14 887 days ago 1658365754 IN 0 ETH$0.00 0.00257901 9.5915021 Zap In 15179621 2022-07-20 12:56:09 888 days ago 1658321769 IN 0.1 ETH$341.03 0.00523892 22.18942738 Zap In 15178825 2022-07-20 9:58:21 888 days ago 1658311101 IN 0.17 ETH$579.75 0.00515319 17.64176494 Zap In 15177182 2022-07-20 3:41:12 888 days ago 1658288472 IN 0 ETH$0.00 0.00483147 17.83589639 Zap In 15177123 2022-07-20 3:26:37 888 days ago 1658287597 IN 0 ETH$0.00 0.00478716 17.67232846 Zap In 15176029 2022-07-19 23:24:58 888 days ago 1658273098 IN 0.02 ETH$68.21 0.00850501 22.2389383 Zap In 15175471 2022-07-19 21:18:47 888 days ago 1658265527 IN 0 ETH$0.00 0.00483887 19.44041117 Zap In 15174884 2022-07-19 19:12:29 888 days ago 1658257949 IN 0 ETH$0.00 0.00710557 24.60252305 Zap In 15172760 2022-07-19 11:20:16 889 days ago 1658229616 IN 0 ETH$0.00 0.01229267 44.91539847 Zap In 15172398 2022-07-19 9:59:06 889 days ago 1658224746 IN 0 ETH$0.00 0.00346246 11.67974598 Zap In 15171798 2022-07-19 7:48:26 889 days ago 1658216906 IN 0 ETH$0.00 0.00404254 14.85139387 Zap In 15171489 2022-07-19 6:38:04 889 days ago 1658212684 IN 0.06 ETH$204.62 0.00361557 13.56374337 Zap In 15170718 2022-07-19 3:43:08 889 days ago 1658202188 IN 0.022 ETH$75.03 0.00461011 12 Zap In 15167629 2022-07-18 16:08:02 889 days ago 1658160482 IN 29 ETH$98,898.92 0.03041745 97.74433664 Zap In 15166760 2022-07-18 12:56:48 890 days ago 1658149008 IN 0.01 ETH$34.10 0.00316457 11.23536416 Zap In 15166460 2022-07-18 11:51:48 890 days ago 1658145108 IN 0 ETH$0.00 0.00475915 17.56889504 Zap In 15166343 2022-07-18 11:24:35 890 days ago 1658143475 IN 0 ETH$0.00 0.00380253 9.9986011 Zap In 15165326 2022-07-18 7:37:13 890 days ago 1658129833 IN 9.8 ETH$33,421.01 0.00604309 22.13914047 Zap In 15165125 2022-07-18 6:54:15 890 days ago 1658127255 IN 0 ETH$0.00 0.00398779 14.98585627 Zap In 15164848 2022-07-18 5:49:42 890 days ago 1658123382 IN 0 ETH$0.00 0.00875459 21.03518873 Zap In 15163288 2022-07-18 0:08:59 890 days ago 1658102939 IN 0.02 ETH$68.21 0.00328084 11.14703657 Zap In 15161825 2022-07-17 18:47:21 890 days ago 1658083641 IN 0 ETH$0.00 0.00611142 22.33015418 Zap In 15160895 2022-07-17 15:15:14 890 days ago 1658070914 IN 1 ETH$3,410.31 0.00487079 18.72316213 Zap In 15160767 2022-07-17 14:46:19 890 days ago 1658069179 IN 0 ETH$0.00 0.01722642 47.14298623 Latest 25 internal transactions (View All)
Advanced mode:Parent Transaction Hash Block FromTo15183084 2022-07-21 1:48:37 887 days ago 1658368117 0.0035 ETH$11.94 15179621 2022-07-20 12:56:09 888 days ago 1658321769 0.1 ETH$341.03 15178825 2022-07-20 9:58:21 888 days ago 1658311101 0.17 ETH$579.75 15176029 2022-07-19 23:24:58 888 days ago 1658273098 0.02 ETH$68.21 15171489 2022-07-19 6:38:04 889 days ago 1658212684 0.06 ETH$204.62 15170718 2022-07-19 3:43:08 889 days ago 1658202188 0.022 ETH$75.03 15167629 2022-07-18 16:08:02 889 days ago 1658160482 29 ETH$98,898.92 15166760 2022-07-18 12:56:48 890 days ago 1658149008 0.01 ETH$34.10 15165326 2022-07-18 7:37:13 890 days ago 1658129833 9.8 ETH$33,421.01 15163288 2022-07-18 0:08:59 890 days ago 1658102939 0.02 ETH$68.21 15160895 2022-07-17 15:15:14 890 days ago 1658070914 1 ETH$3,410.31 15160256 2022-07-17 12:49:02 891 days ago 1658062142 0.01 ETH$34.10 15158477 2022-07-17 6:06:39 891 days ago 1658037999 0.005 ETH$17.05 15156385 2022-07-16 22:20:13 891 days ago 1658010013 0.1 ETH$341.03 15155636 2022-07-16 19:37:01 891 days ago 1658000221 0.11 ETH$375.13 15152886 2022-07-16 9:14:28 892 days ago 1657962868 0.017 ETH$57.98 15152856 2022-07-16 9:08:17 892 days ago 1657962497 0.013 ETH$44.33 15152103 2022-07-16 6:27:39 892 days ago 1657952859 3 ETH$10,230.92 15151774 2022-07-16 5:13:07 892 days ago 1657948387 4.5 ETH$15,346.38 15146101 2022-07-15 8:14:01 893 days ago 1657872841 0.45 ETH$1,534.64 15140469 2022-07-14 11:21:33 894 days ago 1657797693 0.001 ETH$3.41 15140103 2022-07-14 10:01:49 894 days ago 1657792909 0.01 ETH$34.10 15139714 2022-07-14 8:43:51 894 days ago 1657788231 0.01 ETH$34.10 15137238 2022-07-13 23:32:16 894 days ago 1657755136 0.11 ETH$375.13 15133612 2022-07-13 9:56:51 895 days ago 1657706211 23 ETH$78,437.08 Loading...LoadingContract Name:UniswapV2_ZapIn_General_V5
Compiler Versionv0.8.4+commit.c7e474f2
Contract Source Code (Solidity Standard Json-Input format)
// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗ // ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║ // ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║ // ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║ // ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██║░░░░░██║ // ╚══════╝╚═╝░░╚═╝╚═╝░░░░░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝╚═╝░░░░░╚═╝ // Copyright (C) 2021 zapper // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // ///@author Zapper ///@notice This contract adds liquidity to Uniswap V2 pools using ETH or any ERC20 Token. // SPDX-License-Identifier: GPL-2.0 pragma solidity ^0.8.0; import "../_base/ZapInBaseV3.sol"; // import "@uniswap/lib/contracts/libraries/Babylonian.sol"; library Babylonian { function sqrt(uint256 y) internal pure returns (uint256 z) { if (y > 3) { z = y; uint256 x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } // else z = 0 } } interface IWETH { function deposit() external payable; function transfer(address to, uint256 value) external returns (bool); function withdraw(uint256) external; } interface IUniswapV2Factory { function getPair(address tokenA, address tokenB) external view returns (address); } interface IUniswapV2Router02 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); } interface IUniswapV2Pair { function token0() external pure returns (address); function token1() external pure returns (address); function getReserves() external view returns ( uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast ); } contract UniswapV2_ZapIn_General_V5 is ZapInBaseV3 { using SafeERC20 for IERC20; IUniswapV2Factory private constant UniSwapV2FactoryAddress = IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f); IUniswapV2Router02 private constant uniswapRouter = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); address private constant wethTokenAddress = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; uint256 private constant deadline = 0xf000000000000000000000000000000000000000000000000000000000000000; constructor(uint256 _goodwill, uint256 _affiliateSplit) ZapBaseV2(_goodwill, _affiliateSplit) { // 0x exchange approvedTargets[0xDef1C0ded9bec7F1a1670819833240f027b25EfF] = true; } event zapIn(address sender, address pool, uint256 tokensRec); /** @notice This function is used to invest in given Uniswap V2 pair through ETH/ERC20 Tokens @param _FromTokenContractAddress The ERC20 token used for investment (address(0x00) if ether) @param _pairAddress The Uniswap pair address @param _amount The amount of fromToken to invest @param _minPoolTokens Reverts if less tokens received than this @param _swapTarget Excecution target for the first swap @param swapData DEX quote data @param affiliate Affiliate address @param transferResidual Set false to save gas by donating the residual remaining after a Zap @param shouldSellEntireBalance If True transfers entrire allowable amount from another contract @return Amount of LP bought */ function ZapIn( address _FromTokenContractAddress, address _pairAddress, uint256 _amount, uint256 _minPoolTokens, address _swapTarget, bytes calldata swapData, address affiliate, bool transferResidual, bool shouldSellEntireBalance ) external payable stopInEmergency returns (uint256) { uint256 toInvest = _pullTokens( _FromTokenContractAddress, _amount, affiliate, true, shouldSellEntireBalance ); uint256 LPBought = _performZapIn( _FromTokenContractAddress, _pairAddress, toInvest, _swapTarget, swapData, transferResidual ); require(LPBought >= _minPoolTokens, "High Slippage"); emit zapIn(msg.sender, _pairAddress, LPBought); IERC20(_pairAddress).safeTransfer(msg.sender, LPBought); return LPBought; } function _getPairTokens(address _pairAddress) internal pure returns (address token0, address token1) { IUniswapV2Pair uniPair = IUniswapV2Pair(_pairAddress); token0 = uniPair.token0(); token1 = uniPair.token1(); } function _performZapIn( address _FromTokenContractAddress, address _pairAddress, uint256 _amount, address _swapTarget, bytes memory swapData, bool transferResidual ) internal returns (uint256) { uint256 intermediateAmt; address intermediateToken; (address _ToUniswapToken0, address _ToUniswapToken1) = _getPairTokens(_pairAddress); if ( _FromTokenContractAddress != _ToUniswapToken0 && _FromTokenContractAddress != _ToUniswapToken1 ) { // swap to intermediate (intermediateAmt, intermediateToken) = _fillQuote( _FromTokenContractAddress, _pairAddress, _amount, _swapTarget, swapData ); } else { intermediateToken = _FromTokenContractAddress; intermediateAmt = _amount; } // divide intermediate into appropriate amount to add liquidity (uint256 token0Bought, uint256 token1Bought) = _swapIntermediate( intermediateToken, _ToUniswapToken0, _ToUniswapToken1, intermediateAmt ); return _uniDeposit( _ToUniswapToken0, _ToUniswapToken1, token0Bought, token1Bought, transferResidual ); } function _uniDeposit( address _ToUnipoolToken0, address _ToUnipoolToken1, uint256 token0Bought, uint256 token1Bought, bool transferResidual ) internal returns (uint256) { _approveToken(_ToUnipoolToken0, address(uniswapRouter), token0Bought); _approveToken(_ToUnipoolToken1, address(uniswapRouter), token1Bought); (uint256 amountA, uint256 amountB, uint256 LP) = uniswapRouter.addLiquidity( _ToUnipoolToken0, _ToUnipoolToken1, token0Bought, token1Bought, 1, 1, address(this), deadline ); if (transferResidual) { //Returning Residue in token0, if any. if (token0Bought - amountA > 0) { IERC20(_ToUnipoolToken0).safeTransfer( msg.sender, token0Bought - amountA ); } //Returning Residue in token1, if any if (token1Bought - amountB > 0) { IERC20(_ToUnipoolToken1).safeTransfer( msg.sender, token1Bought - amountB ); } } return LP; } function _fillQuote( address _fromTokenAddress, address _pairAddress, uint256 _amount, address _swapTarget, bytes memory swapData ) internal returns (uint256 amountBought, address intermediateToken) { if (_swapTarget == wethTokenAddress) { IWETH(wethTokenAddress).deposit{ value: _amount }(); return (_amount, wethTokenAddress); } uint256 valueToSend; if (_fromTokenAddress == address(0)) { valueToSend = _amount; } else { _approveToken(_fromTokenAddress, _swapTarget, _amount); } (address _token0, address _token1) = _getPairTokens(_pairAddress); IERC20 token0 = IERC20(_token0); IERC20 token1 = IERC20(_token1); uint256 initialBalance0 = token0.balanceOf(address(this)); uint256 initialBalance1 = token1.balanceOf(address(this)); require(approvedTargets[_swapTarget], "Target not Authorized"); (bool success, ) = _swapTarget.call{ value: valueToSend }(swapData); require(success, "Error Swapping Tokens 1"); uint256 finalBalance0 = token0.balanceOf(address(this)) - initialBalance0; uint256 finalBalance1 = token1.balanceOf(address(this)) - initialBalance1; if (finalBalance0 > finalBalance1) { amountBought = finalBalance0; intermediateToken = _token0; } else { amountBought = finalBalance1; intermediateToken = _token1; } require(amountBought > 0, "Swapped to Invalid Intermediate"); } function _swapIntermediate( address _toContractAddress, address _ToUnipoolToken0, address _ToUnipoolToken1, uint256 _amount ) internal returns (uint256 token0Bought, uint256 token1Bought) { IUniswapV2Pair pair = IUniswapV2Pair( UniSwapV2FactoryAddress.getPair( _ToUnipoolToken0, _ToUnipoolToken1 ) ); (uint256 res0, uint256 res1, ) = pair.getReserves(); if (_toContractAddress == _ToUnipoolToken0) { uint256 amountToSwap = calculateSwapInAmount(res0, _amount); //if no reserve or a new pair is created if (amountToSwap <= 0) amountToSwap = _amount / 2; token1Bought = _token2Token( _toContractAddress, _ToUnipoolToken1, amountToSwap ); token0Bought = _amount - amountToSwap; } else { uint256 amountToSwap = calculateSwapInAmount(res1, _amount); //if no reserve or a new pair is created if (amountToSwap <= 0) amountToSwap = _amount / 2; token0Bought = _token2Token( _toContractAddress, _ToUnipoolToken0, amountToSwap ); token1Bought = _amount - amountToSwap; } } function calculateSwapInAmount(uint256 reserveIn, uint256 userIn) internal pure returns (uint256) { return (Babylonian.sqrt( reserveIn * ((userIn * 3988000) + (reserveIn * 3988009)) ) - (reserveIn * 1997)) / 1994; } /** @notice This function is used to swap ERC20 <> ERC20 @param _FromTokenContractAddress The token address to swap from. @param _ToTokenContractAddress The token address to swap to. @param tokens2Trade The amount of tokens to swap @return tokenBought The quantity of tokens bought */ function _token2Token( address _FromTokenContractAddress, address _ToTokenContractAddress, uint256 tokens2Trade ) internal returns (uint256 tokenBought) { if (_FromTokenContractAddress == _ToTokenContractAddress) { return tokens2Trade; } _approveToken( _FromTokenContractAddress, address(uniswapRouter), tokens2Trade ); address pair = UniSwapV2FactoryAddress.getPair( _FromTokenContractAddress, _ToTokenContractAddress ); require(pair != address(0), "No Swap Available"); address[] memory path = new address[](2); path[0] = _FromTokenContractAddress; path[1] = _ToTokenContractAddress; tokenBought = uniswapRouter.swapExactTokensForTokens( tokens2Trade, 1, path, address(this), deadline )[path.length - 1]; require(tokenBought > 0, "Error Swapping Tokens 2"); } }
// SPDX-License-Identifier: GPL-2.0 pragma solidity ^0.8.0; import "../oz/0.8.0/access/Ownable.sol"; import "../oz/0.8.0/token/ERC20/utils/SafeERC20.sol"; abstract contract ZapBaseV2 is Ownable { using SafeERC20 for IERC20; bool public stopped = false; // if true, goodwill is not deducted mapping(address => bool) public feeWhitelist; uint256 public goodwill; // % share of goodwill (0-100 %) uint256 affiliateSplit; // restrict affiliates mapping(address => bool) public affiliates; // affiliate => token => amount mapping(address => mapping(address => uint256)) public affiliateBalance; // token => amount mapping(address => uint256) public totalAffiliateBalance; // swapTarget => approval status mapping(address => bool) public approvedTargets; address internal constant ETHAddress = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; constructor(uint256 _goodwill, uint256 _affiliateSplit) { goodwill = _goodwill; affiliateSplit = _affiliateSplit; } // circuit breaker modifiers modifier stopInEmergency { if (stopped) { revert("Temporarily Paused"); } else { _; } } function _getBalance(address token) internal view returns (uint256 balance) { if (token == address(0)) { balance = address(this).balance; } else { balance = IERC20(token).balanceOf(address(this)); } } function _approveToken(address token, address spender) internal { IERC20 _token = IERC20(token); if (_token.allowance(address(this), spender) > 0) return; else { _token.safeApprove(spender, type(uint256).max); } } function _approveToken( address token, address spender, uint256 amount ) internal { IERC20 _token = IERC20(token); _token.safeApprove(spender, 0); _token.safeApprove(spender, amount); } // - to Pause the contract function toggleContractActive() public onlyOwner { stopped = !stopped; } function set_feeWhitelist(address zapAddress, bool status) external onlyOwner { feeWhitelist[zapAddress] = status; } function set_new_goodwill(uint256 _new_goodwill) public onlyOwner { require( _new_goodwill >= 0 && _new_goodwill <= 100, "GoodWill Value not allowed" ); goodwill = _new_goodwill; } function set_new_affiliateSplit(uint256 _new_affiliateSplit) external onlyOwner { require( _new_affiliateSplit <= 100, "Affiliate Split Value not allowed" ); affiliateSplit = _new_affiliateSplit; } function set_affiliate(address _affiliate, bool _status) external onlyOwner { affiliates[_affiliate] = _status; } ///@notice Withdraw goodwill share, retaining affilliate share function withdrawTokens(address[] calldata tokens) external onlyOwner { for (uint256 i = 0; i < tokens.length; i++) { uint256 qty; if (tokens[i] == ETHAddress) { qty = address(this).balance - totalAffiliateBalance[tokens[i]]; Address.sendValue(payable(owner()), qty); } else { qty = IERC20(tokens[i]).balanceOf(address(this)) - totalAffiliateBalance[tokens[i]]; IERC20(tokens[i]).safeTransfer(owner(), qty); } } } ///@notice Withdraw affilliate share, retaining goodwill share function affilliateWithdraw(address[] calldata tokens) external { uint256 tokenBal; for (uint256 i = 0; i < tokens.length; i++) { tokenBal = affiliateBalance[msg.sender][tokens[i]]; affiliateBalance[msg.sender][tokens[i]] = 0; totalAffiliateBalance[tokens[i]] = totalAffiliateBalance[tokens[i]] - tokenBal; if (tokens[i] == ETHAddress) { Address.sendValue(payable(msg.sender), tokenBal); } else { IERC20(tokens[i]).safeTransfer(msg.sender, tokenBal); } } } function setApprovedTargets( address[] calldata targets, bool[] calldata isApproved ) external onlyOwner { require(targets.length == isApproved.length, "Invalid Input length"); for (uint256 i = 0; i < targets.length; i++) { approvedTargets[targets[i]] = isApproved[i]; } } receive() external payable { require(msg.sender != tx.origin, "Do not send ETH directly"); } }
// SPDX-License-Identifier: GPL-2.0 pragma solidity ^0.8.0; import "./ZapBaseV2.sol"; abstract contract ZapInBaseV3 is ZapBaseV2 { using SafeERC20 for IERC20; function _pullTokens( address token, uint256 amount, address affiliate, bool enableGoodwill, bool shouldSellEntireBalance ) internal returns (uint256 value) { uint256 totalGoodwillPortion; if (token == address(0)) { require(msg.value > 0, "No eth sent"); // subtract goodwill totalGoodwillPortion = _subtractGoodwill( ETHAddress, msg.value, affiliate, enableGoodwill ); return msg.value - totalGoodwillPortion; } require(amount > 0, "Invalid token amount"); require(msg.value == 0, "Eth sent with token"); //transfer token if (shouldSellEntireBalance) { require( Address.isContract(msg.sender), "ERR: shouldSellEntireBalance is true for EOA" ); amount = IERC20(token).allowance(msg.sender, address(this)); } IERC20(token).safeTransferFrom(msg.sender, address(this), amount); // subtract goodwill totalGoodwillPortion = _subtractGoodwill( token, amount, affiliate, enableGoodwill ); return amount - totalGoodwillPortion; } function _subtractGoodwill( address token, uint256 amount, address affiliate, bool enableGoodwill ) internal returns (uint256 totalGoodwillPortion) { bool whitelisted = feeWhitelist[msg.sender]; if (enableGoodwill && !whitelisted && goodwill > 0) { totalGoodwillPortion = (amount * goodwill) / 10000; if (affiliates[affiliate]) { if (token == address(0)) { token = ETHAddress; } uint256 affiliatePortion = (totalGoodwillPortion * affiliateSplit) / 100; affiliateBalance[affiliate][token] = affiliateBalance[affiliate][token] + affiliatePortion; totalAffiliateBalance[token] = totalAffiliateBalance[token] + affiliatePortion; } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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" ); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount ) external returns (bool); /** * @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 ); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn( token, abi.encodeWithSelector(token.transfer.selector, to, value) ); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn( token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value) ); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn( token, abi.encodeWithSelector(token.approve.selector, spender, value) ); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn( token, abi.encodeWithSelector( token.approve.selector, spender, newAllowance ) ); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require( oldAllowance >= value, "SafeERC20: decreased allowance below zero" ); uint256 newAllowance = oldAllowance - value; _callOptionalReturn( token, abi.encodeWithSelector( token.approve.selector, spender, newAllowance ) ); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall( data, "SafeERC20: low-level call failed" ); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require( abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed" ); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require( address(this).balance >= amount, "Address: insufficient balance" ); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require( success, "Address: unable to send value, recipient may have reverted" ); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, "Address: low-level call with value failed" ); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require( address(this).balance >= value, "Address: insufficient balance for call" ); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall( target, data, "Address: low-level static call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall( target, data, "Address: low-level delegate call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"inputs":[{"internalType":"uint256","name":"_goodwill","type":"uint256"},{"internalType":"uint256","name":"_affiliateSplit","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokensRec","type":"uint256"}],"name":"zapIn","type":"event"},{"inputs":[{"internalType":"address","name":"_FromTokenContractAddress","type":"address"},{"internalType":"address","name":"_pairAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minPoolTokens","type":"uint256"},{"internalType":"address","name":"_swapTarget","type":"address"},{"internalType":"bytes","name":"swapData","type":"bytes"},{"internalType":"address","name":"affiliate","type":"address"},{"internalType":"bool","name":"transferResidual","type":"bool"},{"internalType":"bool","name":"shouldSellEntireBalance","type":"bool"}],"name":"ZapIn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"affiliateBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"affiliates","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"affilliateWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedTargets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"feeWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"goodwill","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":"targets","type":"address[]"},{"internalType":"bool[]","name":"isApproved","type":"bool[]"}],"name":"setApprovedTargets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_affiliate","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"set_affiliate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"zapAddress","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"set_feeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new_affiliateSplit","type":"uint256"}],"name":"set_new_affiliateSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new_goodwill","type":"uint256"}],"name":"set_new_goodwill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleContractActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalAffiliateBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526000805460ff60a01b191690553480156200001e57600080fd5b5060405162002c4538038062002c458339810160408190526200004191620000e0565b600080546001600160a01b03191633908117825560405184928492918291907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600291909155600355505073def1c0ded9bec7f1a1670819833240f027b25eff60005260076020527ff6019cd1944dc466e824190b288e5a63528dd4c9a6d8cbd707956fd30d2f1e0d805460ff1916600117905562000104565b60008060408385031215620000f3578182fd5b505080516020909101519092909150565b612b3180620001146000396000f3fe6080604052600436106101185760003560e01c80635ecb16cd116100a05780639779d1a6116100645780639779d1a61461037a5780639ca37a0b146103aa578063d408f657146103bd578063f2fde38b146103ed578063fbec27bf1461040d57600080fd5b80635ecb16cd146102dc578063715018a6146102fc57806375f12b21146103115780638da5cb5b146103325780639735a6341461035a57600080fd5b806318b135e3116100e757806318b135e3146102195780633ff428c7146102465780634f51e29414610266578063550bfa56146102a65780635de0398e146102c657600080fd5b806301e980d4146101795780630dc9de85146101995780631385d24c146101b95780631781261f146101ce57600080fd5b3661017457333214156101725760405162461bcd60e51b815260206004820152601860248201527f446f206e6f742073656e6420455448206469726563746c79000000000000000060448201526064015b60405180910390fd5b005b600080fd5b34801561018557600080fd5b506101726101943660046128a3565b61042d565b3480156101a557600080fd5b506101726101b43660046126b4565b6104b7565b3480156101c557600080fd5b50610172610712565b3480156101da57600080fd5b506102066101e9366004612563565b600560209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b34801561022557600080fd5b5061020661023436600461252b565b60066020526000908152604090205481565b34801561025257600080fd5b50610172610261366004612687565b61075d565b34801561027257600080fd5b5061029661028136600461252b565b60046020526000908152604090205460ff1681565b6040519015158152602001610210565b3480156102b257600080fd5b506101726102c13660046128a3565b6107b2565b3480156102d257600080fd5b5061020660025481565b3480156102e857600080fd5b506101726102f73660046126b4565b610832565b34801561030857600080fd5b50610172610aa3565b34801561031d57600080fd5b5060005461029690600160a01b900460ff1681565b34801561033e57600080fd5b506000546040516001600160a01b039091168152602001610210565b34801561036657600080fd5b506101726103753660046126f4565b610b17565b34801561038657600080fd5b5061029661039536600461252b565b60076020526000908152604090205460ff1681565b6102066103b836600461259b565b610c41565b3480156103c957600080fd5b506102966103d836600461252b565b60016020526000908152604090205460ff1681565b3480156103f957600080fd5b5061017261040836600461252b565b610d99565b34801561041957600080fd5b50610172610428366004612687565b610e83565b6000546001600160a01b031633146104575760405162461bcd60e51b81526004016101699061294f565b60648111156104b25760405162461bcd60e51b815260206004820152602160248201527f416666696c696174652053706c69742056616c7565206e6f7420616c6c6f77656044820152601960fa1b6064820152608401610169565b600355565b6000805b8281101561070c57336000908152600560205260408120908585848181106104f357634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610508919061252b565b6001600160a01b0316815260208082019290925260409081016000908120543382526005909352908120919350908186868581811061055757634e487b7160e01b600052603260045260246000fd5b905060200201602081019061056c919061252b565b6001600160a01b03166001600160a01b031681526020019081526020016000208190555081600660008686858181106105b557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906105ca919061252b565b6001600160a01b03166001600160a01b03168152602001908152602001600020546105f59190612a4b565b6006600086868581811061061957634e487b7160e01b600052603260045260246000fd5b905060200201602081019061062e919061252b565b6001600160a01b0316815260208101919091526040016000205573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84848381811061067d57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610692919061252b565b6001600160a01b031614156106b0576106ab3383610ed8565b6106fa565b6106fa33838686858181106106d557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906106ea919061252b565b6001600160a01b03169190610ff1565b8061070481612a8e565b9150506104bb565b50505050565b6000546001600160a01b0316331461073c5760405162461bcd60e51b81526004016101699061294f565b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000546001600160a01b031633146107875760405162461bcd60e51b81526004016101699061294f565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146107dc5760405162461bcd60e51b81526004016101699061294f565b606481111561082d5760405162461bcd60e51b815260206004820152601a60248201527f476f6f6457696c6c2056616c7565206e6f7420616c6c6f7765640000000000006044820152606401610169565b600255565b6000546001600160a01b0316331461085c5760405162461bcd60e51b81526004016101699061294f565b60005b81811015610a9e57600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84848481811061089e57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108b3919061252b565b6001600160a01b0316141561094157600660008585858181106108e657634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108fb919061252b565b6001600160a01b0316815260208101919091526040016000205461091f9047612a4b565b905061093c6109366000546001600160a01b031690565b82610ed8565b610a8b565b6006600085858581811061096557634e487b7160e01b600052603260045260246000fd5b905060200201602081019061097a919061252b565b6001600160a01b03166001600160a01b03168152602001908152602001600020548484848181106109bb57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906109d0919061252b565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b158015610a1157600080fd5b505afa158015610a25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4991906128bb565b610a539190612a4b565b9050610a8b610a6a6000546001600160a01b031690565b828686868181106106d557634e487b7160e01b600052603260045260246000fd5b5080610a9681612a8e565b91505061085f565b505050565b6000546001600160a01b03163314610acd5760405162461bcd60e51b81526004016101699061294f565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03163314610b415760405162461bcd60e51b81526004016101699061294f565b828114610b875760405162461bcd60e51b8152602060048201526014602482015273092dcecc2d8d2c84092dce0eae840d8cadccee8d60631b6044820152606401610169565b60005b83811015610c3a57828282818110610bb257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610bc7919061281d565b60076000878785818110610beb57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c00919061252b565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610c3281612a8e565b915050610b8a565b5050505050565b60008054600160a01b900460ff1615610c915760405162461bcd60e51b815260206004820152601260248201527115195b5c1bdc985c9a5b1e4814185d5cd95960721b6044820152606401610169565b6000610ca18c8b87600187611054565b90506000610cea8d8d848c8c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d9250611285915050565b905089811015610d2c5760405162461bcd60e51b815260206004820152600d60248201526c4869676820536c69707061676560981b6044820152606401610169565b604080513381526001600160a01b038e1660208201529081018290527f7f31d76771556dce5ab39ba5b60664743da2629a75c474e9445734b7ad34087d9060600160405180910390a1610d896001600160a01b038d163383610ff1565b9c9b505050505050505050505050565b6000546001600160a01b03163314610dc35760405162461bcd60e51b81526004016101699061294f565b6001600160a01b038116610e285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610169565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610ead5760405162461bcd60e51b81526004016101699061294f565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b80471015610f285760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610169565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610f75576040519150601f19603f3d011682016040523d82523d6000602084013e610f7a565b606091505b5050905080610a9e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610169565b6040516001600160a01b038316602482015260448101829052610a9e90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611322565b6000806001600160a01b0387166110d757600034116110a35760405162461bcd60e51b815260206004820152600b60248201526a139bc8195d1a081cd95b9d60aa1b6044820152606401610169565b6110c373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee3487876113f4565b90506110cf8134612a4b565b91505061127c565b6000861161111e5760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081d1bdad95b88185b5bdd5b9d60621b6044820152606401610169565b34156111625760405162461bcd60e51b815260206004820152601360248201527222ba341039b2b73a103bb4ba34103a37b5b2b760691b6044820152606401610169565b821561124b57333b6111cb5760405162461bcd60e51b815260206004820152602c60248201527f4552523a2073686f756c6453656c6c456e7469726542616c616e63652069732060448201526b7472756520666f7220454f4160a01b6064820152608401610169565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0388169063dd62ed3e9060440160206040518083038186803b15801561121057600080fd5b505afa158015611224573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124891906128bb565b95505b6112606001600160a01b03881633308961153c565b61126c878787876113f4565b90506112788187612a4b565b9150505b95945050505050565b60008060008060006112968a611574565b91509150816001600160a01b03168b6001600160a01b0316141580156112ce5750806001600160a01b03168b6001600160a01b031614155b156112ea576112e08b8b8b8b8b611668565b90945092506112f1565b8a92508893505b60008061130085858589611ae6565b91509150611311848484848c611cb5565b9d9c50505050505050505050505050565b6000611377826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e379092919063ffffffff16565b805190915015610a9e57808060200190518101906113959190612839565b610a9e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610169565b3360009081526001602052604081205460ff16828015611412575080155b801561142057506000600254115b1561153357612710600254866114369190612a2c565b6114409190612a0c565b6001600160a01b03851660009081526004602052604090205490925060ff1615611533576001600160a01b03861661148a5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee95505b600060646003548461149c9190612a2c565b6114a69190612a0c565b6001600160a01b038087166000908152600560209081526040808320938c16835292905220549091506114da9082906129f4565b6001600160a01b038087166000908152600560209081526040808320938c1683529281528282209390935560069092529020546115189082906129f4565b6001600160a01b038816600090815260066020526040902055505b50949350505050565b6040516001600160a01b038085166024830152831660448201526064810182905261070c9085906323b872dd60e01b9060840161101d565b6000806000839050806001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156115b557600080fd5b505afa1580156115c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ed9190612547565b9250806001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561162857600080fd5b505afa15801561163c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116609190612547565b915050915091565b6000806001600160a01b03841673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214156117175773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0866040518263ffffffff1660e01b81526004016000604051808303818588803b1580156116df57600080fd5b505af11580156116f3573d6000803e3d6000fd5b50505050508473c02aaa39b223fe8d0a0e5c4f27ead9083c756cc291509150611adc565b60006001600160a01b03881661172e575084611739565b611739888688611e50565b60008061174589611574565b6040516370a0823160e01b81523060048201529193509150829082906000906001600160a01b038416906370a082319060240160206040518083038186803b15801561179057600080fd5b505afa1580156117a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117c891906128bb565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b15801561180d57600080fd5b505afa158015611821573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184591906128bb565b6001600160a01b038c1660009081526007602052604090205490915060ff166118a85760405162461bcd60e51b815260206004820152601560248201527415185c99d95d081b9bdd08105d5d1a1bdc9a5e9959605a1b6044820152606401610169565b60008b6001600160a01b0316888c6040516118c39190612900565b60006040518083038185875af1925050503d8060008114611900576040519150601f19603f3d011682016040523d82523d6000602084013e611905565b606091505b50509050806119565760405162461bcd60e51b815260206004820152601760248201527f4572726f72205377617070696e6720546f6b656e7320310000000000000000006044820152606401610169565b6040516370a0823160e01b815230600482015260009084906001600160a01b038816906370a082319060240160206040518083038186803b15801561199a57600080fd5b505afa1580156119ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d291906128bb565b6119dc9190612a4b565b6040516370a0823160e01b815230600482015290915060009084906001600160a01b038816906370a082319060240160206040518083038186803b158015611a2357600080fd5b505afa158015611a37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5b91906128bb565b611a659190612a4b565b905080821115611a7a57819b50889a50611a81565b809b50879a505b60008c11611ad15760405162461bcd60e51b815260206004820152601f60248201527f5377617070656420746f20496e76616c696420496e7465726d656469617465006044820152606401610169565b505050505050505050505b9550959350505050565b60405163e6a4390560e01b81526001600160a01b0380851660048301528316602482015260009081908190735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063e6a439059060440160206040518083038186803b158015611b4857600080fd5b505afa158015611b5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b809190612547565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611bbe57600080fd5b505afa158015611bd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf69190612855565b506001600160701b031691506001600160701b03169150876001600160a01b0316896001600160a01b03161415611c6a576000611c338388611e7a565b905060008111611c4b57611c48600288612a0c565b90505b611c568a8983611ed5565b9450611c628188612a4b565b955050611ca9565b6000611c768288611e7a565b905060008111611c8e57611c8b600288612a0c565b90505b611c998a8a83611ed5565b9550611ca58188612a4b565b9450505b50505094509492505050565b6000611cd686737a250d5630b4cf539739df2c5dacb4c659f2488d86611e50565b611cf585737a250d5630b4cf539739df2c5dacb4c659f2488d85611e50565b60405162e8e33760e81b81526001600160a01b03808816600483015286166024820152604481018590526064810184905260016084820181905260a48201523060c4820152600f60fc1b60e482015260009081908190737a250d5630b4cf539739df2c5dacb4c659f2488d9063e8e337009061010401606060405180830381600087803b158015611d8557600080fd5b505af1158015611d99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dbd91906128d3565b9250925092508415611e2b576000611dd58489612a4b565b1115611dfa57611dfa33611de9858a612a4b565b6001600160a01b038c169190610ff1565b6000611e068388612a4b565b1115611e2b57611e2b33611e1a8489612a4b565b6001600160a01b038b169190610ff1565b98975050505050505050565b6060611e4684846000856121bf565b90505b9392505050565b82611e666001600160a01b0382168460006122e7565b61070c6001600160a01b03821684846122e7565b60006107ca611e8b846107cd612a2c565b611ec1611e9b86623cda29612a2c565b611ea886623cda20612a2c565b611eb291906129f4565b611ebc9087612a2c565b61240b565b611ecb9190612a4b565b611e499190612a0c565b6000826001600160a01b0316846001600160a01b03161415611ef8575080611e49565b611f1784737a250d5630b4cf539739df2c5dacb4c659f2488d84611e50565b60405163e6a4390560e01b81526001600160a01b03808616600483015284166024820152600090735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063e6a439059060440160206040518083038186803b158015611f7557600080fd5b505afa158015611f89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fad9190612547565b90506001600160a01b038116611ff95760405162461bcd60e51b81526020600482015260116024820152704e6f205377617020417661696c61626c6560781b6044820152606401610169565b604080516002808252606082018352600092602083019080368337019050509050858160008151811061203c57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050848160018151811061207e57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101526040516338ed173960e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d906338ed1739906120da90879060019086903090600f60fc1b90600401612984565b600060405180830381600087803b1580156120f457600080fd5b505af1158015612108573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612130919081019061275d565b6001825161213e9190612a4b565b8151811061215c57634e487b7160e01b600052603260045260246000fd5b60200260200101519250600083116121b65760405162461bcd60e51b815260206004820152601760248201527f4572726f72205377617070696e6720546f6b656e7320320000000000000000006044820152606401610169565b50509392505050565b6060824710156122205760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610169565b843b61226e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610169565b600080866001600160a01b0316858760405161228a9190612900565b60006040518083038185875af1925050503d80600081146122c7576040519150601f19603f3d011682016040523d82523d6000602084013e6122cc565b606091505b50915091506122dc82828661247b565b979650505050505050565b8015806123705750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561233657600080fd5b505afa15801561234a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061236e91906128bb565b155b6123db5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610169565b6040516001600160a01b038316602482015260448101829052610a9e90849063095ea7b360e01b9060640161101d565b6000600382111561246c5750806000612425600283612a0c565b6124309060016129f4565b90505b818110156124665790508060028161244b8186612a0c565b61245591906129f4565b61245f9190612a0c565b9050612433565b50919050565b8115612476575060015b919050565b6060831561248a575081611e49565b82511561249a5782518084602001fd5b8160405162461bcd60e51b8152600401610169919061291c565b803561247681612ad5565b60008083601f8401126124d0578081fd5b50813567ffffffffffffffff8111156124e7578182fd5b6020830191508360208260051b850101111561250257600080fd5b9250929050565b803561247681612aed565b80516001600160701b038116811461247657600080fd5b60006020828403121561253c578081fd5b8135611e4981612ad5565b600060208284031215612558578081fd5b8151611e4981612ad5565b60008060408385031215612575578081fd5b823561258081612ad5565b9150602083013561259081612ad5565b809150509250929050565b6000806000806000806000806000806101208b8d0312156125ba578586fd5b8a356125c581612ad5565b995060208b01356125d581612ad5565b985060408b0135975060608b0135965060808b01356125f381612ad5565b955060a08b013567ffffffffffffffff8082111561260f578687fd5b818d0191508d601f830112612622578687fd5b813581811115612630578788fd5b8e6020828501011115612641578788fd5b60208301975080965050505061265960c08c016124b4565b925061266760e08c01612509565b91506126766101008c01612509565b90509295989b9194979a5092959850565b60008060408385031215612699578182fd5b82356126a481612ad5565b9150602083013561259081612aed565b600080602083850312156126c6578182fd5b823567ffffffffffffffff8111156126dc578283fd5b6126e8858286016124bf565b90969095509350505050565b60008060008060408587031215612709578384fd5b843567ffffffffffffffff80821115612720578586fd5b61272c888389016124bf565b90965094506020870135915080821115612744578384fd5b50612751878288016124bf565b95989497509550505050565b6000602080838503121561276f578182fd5b825167ffffffffffffffff80821115612786578384fd5b818501915085601f830112612799578384fd5b8151818111156127ab576127ab612abf565b8060051b604051601f19603f830116810181811085821117156127d0576127d0612abf565b604052828152858101935084860182860187018a10156127ee578788fd5b8795505b838610156128105780518552600195909501949386019386016127f2565b5098975050505050505050565b60006020828403121561282e578081fd5b8135611e4981612aed565b60006020828403121561284a578081fd5b8151611e4981612aed565b600080600060608486031215612869578283fd5b61287284612514565b925061288060208501612514565b9150604084015163ffffffff81168114612898578182fd5b809150509250925092565b6000602082840312156128b4578081fd5b5035919050565b6000602082840312156128cc578081fd5b5051919050565b6000806000606084860312156128e7578081fd5b8351925060208401519150604084015190509250925092565b60008251612912818460208701612a62565b9190910192915050565b602081526000825180602084015261293b816040850160208701612a62565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156129d35784516001600160a01b0316835293830193918301916001016129ae565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612a0757612a07612aa9565b500190565b600082612a2757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612a4657612a46612aa9565b500290565b600082821015612a5d57612a5d612aa9565b500390565b60005b83811015612a7d578181015183820152602001612a65565b8381111561070c5750506000910152565b6000600019821415612aa257612aa2612aa9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612aea57600080fd5b50565b8015158114612aea57600080fdfea26469706673582212208f61c35c78ee04874454ba9b368516ee4ffc7e6a2f8cef2eb36ff6b22fba3bbe64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Deployed Bytecode
0x6080604052600436106101185760003560e01c80635ecb16cd116100a05780639779d1a6116100645780639779d1a61461037a5780639ca37a0b146103aa578063d408f657146103bd578063f2fde38b146103ed578063fbec27bf1461040d57600080fd5b80635ecb16cd146102dc578063715018a6146102fc57806375f12b21146103115780638da5cb5b146103325780639735a6341461035a57600080fd5b806318b135e3116100e757806318b135e3146102195780633ff428c7146102465780634f51e29414610266578063550bfa56146102a65780635de0398e146102c657600080fd5b806301e980d4146101795780630dc9de85146101995780631385d24c146101b95780631781261f146101ce57600080fd5b3661017457333214156101725760405162461bcd60e51b815260206004820152601860248201527f446f206e6f742073656e6420455448206469726563746c79000000000000000060448201526064015b60405180910390fd5b005b600080fd5b34801561018557600080fd5b506101726101943660046128a3565b61042d565b3480156101a557600080fd5b506101726101b43660046126b4565b6104b7565b3480156101c557600080fd5b50610172610712565b3480156101da57600080fd5b506102066101e9366004612563565b600560209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b34801561022557600080fd5b5061020661023436600461252b565b60066020526000908152604090205481565b34801561025257600080fd5b50610172610261366004612687565b61075d565b34801561027257600080fd5b5061029661028136600461252b565b60046020526000908152604090205460ff1681565b6040519015158152602001610210565b3480156102b257600080fd5b506101726102c13660046128a3565b6107b2565b3480156102d257600080fd5b5061020660025481565b3480156102e857600080fd5b506101726102f73660046126b4565b610832565b34801561030857600080fd5b50610172610aa3565b34801561031d57600080fd5b5060005461029690600160a01b900460ff1681565b34801561033e57600080fd5b506000546040516001600160a01b039091168152602001610210565b34801561036657600080fd5b506101726103753660046126f4565b610b17565b34801561038657600080fd5b5061029661039536600461252b565b60076020526000908152604090205460ff1681565b6102066103b836600461259b565b610c41565b3480156103c957600080fd5b506102966103d836600461252b565b60016020526000908152604090205460ff1681565b3480156103f957600080fd5b5061017261040836600461252b565b610d99565b34801561041957600080fd5b50610172610428366004612687565b610e83565b6000546001600160a01b031633146104575760405162461bcd60e51b81526004016101699061294f565b60648111156104b25760405162461bcd60e51b815260206004820152602160248201527f416666696c696174652053706c69742056616c7565206e6f7420616c6c6f77656044820152601960fa1b6064820152608401610169565b600355565b6000805b8281101561070c57336000908152600560205260408120908585848181106104f357634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610508919061252b565b6001600160a01b0316815260208082019290925260409081016000908120543382526005909352908120919350908186868581811061055757634e487b7160e01b600052603260045260246000fd5b905060200201602081019061056c919061252b565b6001600160a01b03166001600160a01b031681526020019081526020016000208190555081600660008686858181106105b557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906105ca919061252b565b6001600160a01b03166001600160a01b03168152602001908152602001600020546105f59190612a4b565b6006600086868581811061061957634e487b7160e01b600052603260045260246000fd5b905060200201602081019061062e919061252b565b6001600160a01b0316815260208101919091526040016000205573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84848381811061067d57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610692919061252b565b6001600160a01b031614156106b0576106ab3383610ed8565b6106fa565b6106fa33838686858181106106d557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906106ea919061252b565b6001600160a01b03169190610ff1565b8061070481612a8e565b9150506104bb565b50505050565b6000546001600160a01b0316331461073c5760405162461bcd60e51b81526004016101699061294f565b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000546001600160a01b031633146107875760405162461bcd60e51b81526004016101699061294f565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146107dc5760405162461bcd60e51b81526004016101699061294f565b606481111561082d5760405162461bcd60e51b815260206004820152601a60248201527f476f6f6457696c6c2056616c7565206e6f7420616c6c6f7765640000000000006044820152606401610169565b600255565b6000546001600160a01b0316331461085c5760405162461bcd60e51b81526004016101699061294f565b60005b81811015610a9e57600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84848481811061089e57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108b3919061252b565b6001600160a01b0316141561094157600660008585858181106108e657634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108fb919061252b565b6001600160a01b0316815260208101919091526040016000205461091f9047612a4b565b905061093c6109366000546001600160a01b031690565b82610ed8565b610a8b565b6006600085858581811061096557634e487b7160e01b600052603260045260246000fd5b905060200201602081019061097a919061252b565b6001600160a01b03166001600160a01b03168152602001908152602001600020548484848181106109bb57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906109d0919061252b565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b158015610a1157600080fd5b505afa158015610a25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4991906128bb565b610a539190612a4b565b9050610a8b610a6a6000546001600160a01b031690565b828686868181106106d557634e487b7160e01b600052603260045260246000fd5b5080610a9681612a8e565b91505061085f565b505050565b6000546001600160a01b03163314610acd5760405162461bcd60e51b81526004016101699061294f565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03163314610b415760405162461bcd60e51b81526004016101699061294f565b828114610b875760405162461bcd60e51b8152602060048201526014602482015273092dcecc2d8d2c84092dce0eae840d8cadccee8d60631b6044820152606401610169565b60005b83811015610c3a57828282818110610bb257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610bc7919061281d565b60076000878785818110610beb57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c00919061252b565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610c3281612a8e565b915050610b8a565b5050505050565b60008054600160a01b900460ff1615610c915760405162461bcd60e51b815260206004820152601260248201527115195b5c1bdc985c9a5b1e4814185d5cd95960721b6044820152606401610169565b6000610ca18c8b87600187611054565b90506000610cea8d8d848c8c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d9250611285915050565b905089811015610d2c5760405162461bcd60e51b815260206004820152600d60248201526c4869676820536c69707061676560981b6044820152606401610169565b604080513381526001600160a01b038e1660208201529081018290527f7f31d76771556dce5ab39ba5b60664743da2629a75c474e9445734b7ad34087d9060600160405180910390a1610d896001600160a01b038d163383610ff1565b9c9b505050505050505050505050565b6000546001600160a01b03163314610dc35760405162461bcd60e51b81526004016101699061294f565b6001600160a01b038116610e285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610169565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610ead5760405162461bcd60e51b81526004016101699061294f565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b80471015610f285760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610169565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610f75576040519150601f19603f3d011682016040523d82523d6000602084013e610f7a565b606091505b5050905080610a9e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610169565b6040516001600160a01b038316602482015260448101829052610a9e90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611322565b6000806001600160a01b0387166110d757600034116110a35760405162461bcd60e51b815260206004820152600b60248201526a139bc8195d1a081cd95b9d60aa1b6044820152606401610169565b6110c373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee3487876113f4565b90506110cf8134612a4b565b91505061127c565b6000861161111e5760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081d1bdad95b88185b5bdd5b9d60621b6044820152606401610169565b34156111625760405162461bcd60e51b815260206004820152601360248201527222ba341039b2b73a103bb4ba34103a37b5b2b760691b6044820152606401610169565b821561124b57333b6111cb5760405162461bcd60e51b815260206004820152602c60248201527f4552523a2073686f756c6453656c6c456e7469726542616c616e63652069732060448201526b7472756520666f7220454f4160a01b6064820152608401610169565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0388169063dd62ed3e9060440160206040518083038186803b15801561121057600080fd5b505afa158015611224573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124891906128bb565b95505b6112606001600160a01b03881633308961153c565b61126c878787876113f4565b90506112788187612a4b565b9150505b95945050505050565b60008060008060006112968a611574565b91509150816001600160a01b03168b6001600160a01b0316141580156112ce5750806001600160a01b03168b6001600160a01b031614155b156112ea576112e08b8b8b8b8b611668565b90945092506112f1565b8a92508893505b60008061130085858589611ae6565b91509150611311848484848c611cb5565b9d9c50505050505050505050505050565b6000611377826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e379092919063ffffffff16565b805190915015610a9e57808060200190518101906113959190612839565b610a9e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610169565b3360009081526001602052604081205460ff16828015611412575080155b801561142057506000600254115b1561153357612710600254866114369190612a2c565b6114409190612a0c565b6001600160a01b03851660009081526004602052604090205490925060ff1615611533576001600160a01b03861661148a5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee95505b600060646003548461149c9190612a2c565b6114a69190612a0c565b6001600160a01b038087166000908152600560209081526040808320938c16835292905220549091506114da9082906129f4565b6001600160a01b038087166000908152600560209081526040808320938c1683529281528282209390935560069092529020546115189082906129f4565b6001600160a01b038816600090815260066020526040902055505b50949350505050565b6040516001600160a01b038085166024830152831660448201526064810182905261070c9085906323b872dd60e01b9060840161101d565b6000806000839050806001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156115b557600080fd5b505afa1580156115c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ed9190612547565b9250806001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561162857600080fd5b505afa15801561163c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116609190612547565b915050915091565b6000806001600160a01b03841673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214156117175773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0866040518263ffffffff1660e01b81526004016000604051808303818588803b1580156116df57600080fd5b505af11580156116f3573d6000803e3d6000fd5b50505050508473c02aaa39b223fe8d0a0e5c4f27ead9083c756cc291509150611adc565b60006001600160a01b03881661172e575084611739565b611739888688611e50565b60008061174589611574565b6040516370a0823160e01b81523060048201529193509150829082906000906001600160a01b038416906370a082319060240160206040518083038186803b15801561179057600080fd5b505afa1580156117a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117c891906128bb565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b15801561180d57600080fd5b505afa158015611821573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184591906128bb565b6001600160a01b038c1660009081526007602052604090205490915060ff166118a85760405162461bcd60e51b815260206004820152601560248201527415185c99d95d081b9bdd08105d5d1a1bdc9a5e9959605a1b6044820152606401610169565b60008b6001600160a01b0316888c6040516118c39190612900565b60006040518083038185875af1925050503d8060008114611900576040519150601f19603f3d011682016040523d82523d6000602084013e611905565b606091505b50509050806119565760405162461bcd60e51b815260206004820152601760248201527f4572726f72205377617070696e6720546f6b656e7320310000000000000000006044820152606401610169565b6040516370a0823160e01b815230600482015260009084906001600160a01b038816906370a082319060240160206040518083038186803b15801561199a57600080fd5b505afa1580156119ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d291906128bb565b6119dc9190612a4b565b6040516370a0823160e01b815230600482015290915060009084906001600160a01b038816906370a082319060240160206040518083038186803b158015611a2357600080fd5b505afa158015611a37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5b91906128bb565b611a659190612a4b565b905080821115611a7a57819b50889a50611a81565b809b50879a505b60008c11611ad15760405162461bcd60e51b815260206004820152601f60248201527f5377617070656420746f20496e76616c696420496e7465726d656469617465006044820152606401610169565b505050505050505050505b9550959350505050565b60405163e6a4390560e01b81526001600160a01b0380851660048301528316602482015260009081908190735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063e6a439059060440160206040518083038186803b158015611b4857600080fd5b505afa158015611b5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b809190612547565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611bbe57600080fd5b505afa158015611bd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf69190612855565b506001600160701b031691506001600160701b03169150876001600160a01b0316896001600160a01b03161415611c6a576000611c338388611e7a565b905060008111611c4b57611c48600288612a0c565b90505b611c568a8983611ed5565b9450611c628188612a4b565b955050611ca9565b6000611c768288611e7a565b905060008111611c8e57611c8b600288612a0c565b90505b611c998a8a83611ed5565b9550611ca58188612a4b565b9450505b50505094509492505050565b6000611cd686737a250d5630b4cf539739df2c5dacb4c659f2488d86611e50565b611cf585737a250d5630b4cf539739df2c5dacb4c659f2488d85611e50565b60405162e8e33760e81b81526001600160a01b03808816600483015286166024820152604481018590526064810184905260016084820181905260a48201523060c4820152600f60fc1b60e482015260009081908190737a250d5630b4cf539739df2c5dacb4c659f2488d9063e8e337009061010401606060405180830381600087803b158015611d8557600080fd5b505af1158015611d99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dbd91906128d3565b9250925092508415611e2b576000611dd58489612a4b565b1115611dfa57611dfa33611de9858a612a4b565b6001600160a01b038c169190610ff1565b6000611e068388612a4b565b1115611e2b57611e2b33611e1a8489612a4b565b6001600160a01b038b169190610ff1565b98975050505050505050565b6060611e4684846000856121bf565b90505b9392505050565b82611e666001600160a01b0382168460006122e7565b61070c6001600160a01b03821684846122e7565b60006107ca611e8b846107cd612a2c565b611ec1611e9b86623cda29612a2c565b611ea886623cda20612a2c565b611eb291906129f4565b611ebc9087612a2c565b61240b565b611ecb9190612a4b565b611e499190612a0c565b6000826001600160a01b0316846001600160a01b03161415611ef8575080611e49565b611f1784737a250d5630b4cf539739df2c5dacb4c659f2488d84611e50565b60405163e6a4390560e01b81526001600160a01b03808616600483015284166024820152600090735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063e6a439059060440160206040518083038186803b158015611f7557600080fd5b505afa158015611f89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fad9190612547565b90506001600160a01b038116611ff95760405162461bcd60e51b81526020600482015260116024820152704e6f205377617020417661696c61626c6560781b6044820152606401610169565b604080516002808252606082018352600092602083019080368337019050509050858160008151811061203c57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050848160018151811061207e57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101526040516338ed173960e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d906338ed1739906120da90879060019086903090600f60fc1b90600401612984565b600060405180830381600087803b1580156120f457600080fd5b505af1158015612108573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612130919081019061275d565b6001825161213e9190612a4b565b8151811061215c57634e487b7160e01b600052603260045260246000fd5b60200260200101519250600083116121b65760405162461bcd60e51b815260206004820152601760248201527f4572726f72205377617070696e6720546f6b656e7320320000000000000000006044820152606401610169565b50509392505050565b6060824710156122205760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610169565b843b61226e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610169565b600080866001600160a01b0316858760405161228a9190612900565b60006040518083038185875af1925050503d80600081146122c7576040519150601f19603f3d011682016040523d82523d6000602084013e6122cc565b606091505b50915091506122dc82828661247b565b979650505050505050565b8015806123705750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561233657600080fd5b505afa15801561234a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061236e91906128bb565b155b6123db5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610169565b6040516001600160a01b038316602482015260448101829052610a9e90849063095ea7b360e01b9060640161101d565b6000600382111561246c5750806000612425600283612a0c565b6124309060016129f4565b90505b818110156124665790508060028161244b8186612a0c565b61245591906129f4565b61245f9190612a0c565b9050612433565b50919050565b8115612476575060015b919050565b6060831561248a575081611e49565b82511561249a5782518084602001fd5b8160405162461bcd60e51b8152600401610169919061291c565b803561247681612ad5565b60008083601f8401126124d0578081fd5b50813567ffffffffffffffff8111156124e7578182fd5b6020830191508360208260051b850101111561250257600080fd5b9250929050565b803561247681612aed565b80516001600160701b038116811461247657600080fd5b60006020828403121561253c578081fd5b8135611e4981612ad5565b600060208284031215612558578081fd5b8151611e4981612ad5565b60008060408385031215612575578081fd5b823561258081612ad5565b9150602083013561259081612ad5565b809150509250929050565b6000806000806000806000806000806101208b8d0312156125ba578586fd5b8a356125c581612ad5565b995060208b01356125d581612ad5565b985060408b0135975060608b0135965060808b01356125f381612ad5565b955060a08b013567ffffffffffffffff8082111561260f578687fd5b818d0191508d601f830112612622578687fd5b813581811115612630578788fd5b8e6020828501011115612641578788fd5b60208301975080965050505061265960c08c016124b4565b925061266760e08c01612509565b91506126766101008c01612509565b90509295989b9194979a5092959850565b60008060408385031215612699578182fd5b82356126a481612ad5565b9150602083013561259081612aed565b600080602083850312156126c6578182fd5b823567ffffffffffffffff8111156126dc578283fd5b6126e8858286016124bf565b90969095509350505050565b60008060008060408587031215612709578384fd5b843567ffffffffffffffff80821115612720578586fd5b61272c888389016124bf565b90965094506020870135915080821115612744578384fd5b50612751878288016124bf565b95989497509550505050565b6000602080838503121561276f578182fd5b825167ffffffffffffffff80821115612786578384fd5b818501915085601f830112612799578384fd5b8151818111156127ab576127ab612abf565b8060051b604051601f19603f830116810181811085821117156127d0576127d0612abf565b604052828152858101935084860182860187018a10156127ee578788fd5b8795505b838610156128105780518552600195909501949386019386016127f2565b5098975050505050505050565b60006020828403121561282e578081fd5b8135611e4981612aed565b60006020828403121561284a578081fd5b8151611e4981612aed565b600080600060608486031215612869578283fd5b61287284612514565b925061288060208501612514565b9150604084015163ffffffff81168114612898578182fd5b809150509250925092565b6000602082840312156128b4578081fd5b5035919050565b6000602082840312156128cc578081fd5b5051919050565b6000806000606084860312156128e7578081fd5b8351925060208401519150604084015190509250925092565b60008251612912818460208701612a62565b9190910192915050565b602081526000825180602084015261293b816040850160208701612a62565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156129d35784516001600160a01b0316835293830193918301916001016129ae565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612a0757612a07612aa9565b500190565b600082612a2757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612a4657612a46612aa9565b500290565b600082821015612a5d57612a5d612aa9565b500390565b60005b83811015612a7d578181015183820152602001612a65565b8381111561070c5750506000910152565b6000600019821415612aa257612aa2612aa9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612aea57600080fd5b50565b8015158114612aea57600080fdfea26469706673582212208f61c35c78ee04874454ba9b368516ee4ffc7e6a2f8cef2eb36ff6b22fba3bbe64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _goodwill (uint256): 0
Arg [1] : _affiliateSplit (uint256): 0
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000Loading...LoadingLoading...Loading
Loading...Loading
Loading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingOVERVIEW
Add liquidity to Uniswap V2 pools using ETH or any ERC20 Token.
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.
Address QR Code
My Address - Private Name Tag or Note
My Name Tag:
Private Name Tags (up to 35 characters) can be used for easy identification of addressesPrivate Note:
A private note (up to 500 characters) can be attached to this address.
Please DO NOT store any passwords or private keys here.Compiler specific version warnings:
The compiled contract might be susceptible to FullInlinerNonExpressionSplitArgumentEvaluationOrder (low-severity), MissingSideEffectsOnSelectorAccess (low-severity), AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity), DirtyBytesArrayToStorage (low-severity), DataLocationChangeInInternalOverride (very low-severity), NestedCalldataArrayAbiReencodingSizeValidation (very low-severity), SignedImmutables (very low-severity) Solidity Compiler Bugs.
Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.SignIn
Address Cards
To use this feature, please login to your Etherscan account and return to this page.Before You Copy
Transaction Private Note
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.