![ads](/images/gen/moonpay_20.png)
20M+ users trust MoonPay worldwide. Checkout with your preferred payment method.
![ads](/images/gen/cons_20.png)
Ready to onboard to Ethereum? With MetaMask Portfolio, you're in control.
![ads](/images/gen/nexo.png)
Get up to 0.5% cashback per purchase and receive daily interest.
![ads](/images/gen/cons_20.png)
Ready to simplify your web3 experience? Try the all-in-one web3 app trusted by millions worldwide.
Purchase 100+ cryptocurrencies instantly, with Visa/Mastercard, Google/Apple Pay, and a variety of other funding methods.
![ads](/images/gen/coinsgame_20a.png)
Everyday giveaways up to 100 ETH, Lucky Spins. Deposit BONUS 300% and Cashbacks!
![ads](/images/gen/celsiuscasino_20.png)
9 years old Licensed Crypto Casino, Instant Withdraw 24/7, 6000+ Slots available, Paypal Deposit, Instant Live Support 24/7, 30% Rakeback.
![ads](/images/gen/bcgames_20.png)
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
![ads](/images/gen/bcgames_20.png)
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
![ads](/images/gen/cw_20.png)
Play 100s of games anonymously with all major cryptos. Join CryptoWins & start winning!
![ads](/images/gen/cryptoslots.png)
Anonymous play on awesome games - sign up now for 25 free jackpot spins - worth $100s!
Overview
ETH Balance
Eth Value
$0.00Token Holdings
Could not find any matches!
- ERC-20 Tokens (4)10 WEBAIWebsite AI (WEBAI)0 eETHether.fi ETH (eETH)$0.00@2,502.100 stETHstETH (stETH)$0.00@2,499.9734.18218677 SIFYStakify (SIFY)NFT Tokens (9)ether-origin.comWithdrawal NFT ether-origin.comERC-1155
More Info
Private Name Tags
ContractCreator
- Transactions
- Internal Transactions
- Token Transfers (ERC-20)
- NFT Transfers
- Contract
- Events
- Analytics
- Multichain Portfolio
Advanced Filter- Filter by Tx Type:
- Tx
- Internal Tx
- ERC-20
- NFTs
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.Latest 25 internal transactions (View All)
Advanced mode:Parent Transaction Hash Block From To 20668981 2024-09-03 8:53:47 3 mins ago 1725353627 0 ETH$0.00 20668981 2024-09-03 8:53:47 3 mins ago 1725353627 0 ETH$0.00 20668981 2024-09-03 8:53:47 3 mins ago 1725353627 0 ETH$0.00 20668981 2024-09-03 8:53:47 3 mins ago 1725353627 0 ETH$0.00 20668981 2024-09-03 8:53:47 3 mins ago 1725353627 0 ETH$0.00 20668571 2024-09-03 7:31:35 1 hr ago 1725348695 0 ETH$0.00 20668571 2024-09-03 7:31:35 1 hr ago 1725348695 0 ETH$0.00 20668571 2024-09-03 7:31:35 1 hr ago 1725348695 0 ETH$0.00 20668571 2024-09-03 7:31:35 1 hr ago 1725348695 0 ETH$0.00 20668571 2024-09-03 7:31:35 1 hr ago 1725348695 0 ETH$0.00 20668142 2024-09-03 6:04:47 2 hrs ago 1725343487 0 ETH$0.00 20668142 2024-09-03 6:04:47 2 hrs ago 1725343487 0 ETH$0.00 20668142 2024-09-03 6:04:47 2 hrs ago 1725343487 0 ETH$0.00 20668142 2024-09-03 6:04:47 2 hrs ago 1725343487 0 ETH$0.00 20668142 2024-09-03 6:04:47 2 hrs ago 1725343487 0 ETH$0.00 20668048 2024-09-03 5:45:59 3 hrs ago 1725342359 0 ETH$0.00 20668048 2024-09-03 5:45:59 3 hrs ago 1725342359 0 ETH$0.00 20668048 2024-09-03 5:45:59 3 hrs ago 1725342359 0 ETH$0.00 20668048 2024-09-03 5:45:59 3 hrs ago 1725342359 0 ETH$0.00 20668048 2024-09-03 5:45:59 3 hrs ago 1725342359 0 ETH$0.00 20667774 2024-09-03 4:50:59 4 hrs ago 1725339059 0 ETH$0.00 20667774 2024-09-03 4:50:59 4 hrs ago 1725339059 0 ETH$0.00 20667774 2024-09-03 4:50:59 4 hrs ago 1725339059 0 ETH$0.00 20667774 2024-09-03 4:50:59 4 hrs ago 1725339059 0 ETH$0.00 20667774 2024-09-03 4:50:59 4 hrs ago 1725339059 0 ETH$0.00 Loading...LoadingContract Name:UniSwap
Compiler Versionv0.7.6+commit.7338295f
Optimization Enabled:Yes with 780 runs
Other Settings:default evmVersionContract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; pragma experimental ABIEncoderV2; import "./BaseSwap.sol"; import "../libraries/BytesLib.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "@kyber.network/utils-sc/contracts/IERC20Ext.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "../libraries/UniswapV2Library.sol"; /// General swap for uniswap and its clones contract UniSwap is BaseSwap { using SafeERC20 for IERC20Ext; using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.AddressSet; using BytesLib for bytes; EnumerableSet.AddressSet private uniRouters; address public wEth; mapping(address => bytes4) public customSwapFromEth; mapping(address => bytes4) public customSwapToEth; event UpdatedUniRouters(IUniswapV2Router02[] routers, bool isSupported); constructor( address _admin, IUniswapV2Router02[] memory routers, address _weth ) BaseSwap(_admin) { for (uint256 i = 0; i < routers.length; i++) { uniRouters.add(address(routers[i])); } wEth = _weth; } function getAllUniRouters() external view returns (address[] memory addresses) { uint256 length = uniRouters.length(); addresses = new address[](length); for (uint256 i = 0; i < length; i++) { addresses[i] = uniRouters.at(i); } } function updateCustomSwapSelector( address _router, bytes4 _swapFromEth, bytes4 _swapToEth ) external onlyAdmin { customSwapFromEth[_router] = _swapFromEth; customSwapToEth[_router] = _swapToEth; } function updateUniRouters(IUniswapV2Router02[] calldata routers, bool isSupported) external onlyAdmin { for (uint256 i = 0; i < routers.length; i++) { if (isSupported) { uniRouters.add(address(routers[i])); } else { uniRouters.remove(address(routers[i])); } } emit UpdatedUniRouters(routers, isSupported); } /// @dev get expected return and conversion rate if using a Uni router function getExpectedReturn(GetExpectedReturnParams calldata params) external view override onlyProxyContract returns (uint256 destAmount) { address router = parseExtraArgs(params.extraArgs); uint256[] memory amounts = IUniswapV2Router02(router).getAmountsOut( params.srcAmount, params.tradePath ); destAmount = amounts[params.tradePath.length - 1]; } /// @dev get expected return and conversion rate if using a Uni router function getExpectedReturnWithImpact(GetExpectedReturnParams calldata params) external view override onlyProxyContract returns (uint256 destAmount, uint256 priceImpact) { address router = parseExtraArgs(params.extraArgs); uint256[] memory amounts = IUniswapV2Router02(router).getAmountsOut( params.srcAmount, params.tradePath ); destAmount = amounts[params.tradePath.length - 1]; priceImpact = getPriceImpact( params.srcAmount, destAmount, IUniswapV2Router02(router).factory(), params.tradePath ); } function getExpectedIn(GetExpectedInParams calldata params) external view override onlyProxyContract returns (uint256 srcAmount) { address router = parseExtraArgs(params.extraArgs); uint256[] memory amounts = IUniswapV2Router02(router).getAmountsIn( params.destAmount, params.tradePath ); srcAmount = amounts[0]; } function getExpectedInWithImpact(GetExpectedInParams calldata params) external view override onlyProxyContract returns (uint256 srcAmount, uint256 priceImpact) { address router = parseExtraArgs(params.extraArgs); uint256[] memory amounts = IUniswapV2Router02(router).getAmountsIn( params.destAmount, params.tradePath ); srcAmount = amounts[0]; priceImpact = getPriceImpact( srcAmount, params.destAmount, IUniswapV2Router02(router).factory(), params.tradePath ); } function getPriceImpact( uint256 srcAmount, uint256 destAmount, address factory, address[] memory path ) private view returns (uint256 priceImpact) { uint256 quote = srcAmount; for (uint256 i; i < path.length - 1; i++) { (uint256 reserveIn, uint256 reserveOut) = UniswapV2Library.getReserves( factory, path[i], path[i + 1] ); quote = UniswapV2Library.quote(quote.mul(997).div(1000), reserveIn, reserveOut); } if (quote <= destAmount) { priceImpact = 0; } else { priceImpact = quote.sub(destAmount).mul(BPS).div(quote); } } /// @dev swap token via a supported UniSwap router /// @notice for some tokens that are paying fee, for example: DGX /// contract will trade with received src token amount (after minus fee) /// for UniSwap, fee will be taken in src token function swap(SwapParams calldata params) external payable override onlyProxyContract returns (uint256 destAmount) { require(params.tradePath.length >= 2, "invalid tradePath"); address router = parseExtraArgs(params.extraArgs); safeApproveAllowance(router, IERC20Ext(params.tradePath[0])); uint256 tradeLen = params.tradePath.length; IERC20Ext actualSrc = IERC20Ext(params.tradePath[0]); IERC20Ext actualDest = IERC20Ext(params.tradePath[tradeLen - 1]); // convert eth/bnb -> weth/wbnb address to trade on Uni address[] memory convertedTradePath = params.tradePath; if (convertedTradePath[0] == address(ETH_TOKEN_ADDRESS)) { convertedTradePath[0] = wEth; } if (convertedTradePath[tradeLen - 1] == address(ETH_TOKEN_ADDRESS)) { convertedTradePath[tradeLen - 1] = wEth; } uint256 destBalanceBefore = getBalance(actualDest, params.recipient); if (actualSrc == ETH_TOKEN_ADDRESS) { // swap eth/bnb -> token if (customSwapFromEth[address(router)] != "") { (bool success, ) = router.call{value: params.srcAmount}( abi.encodeWithSelector( customSwapFromEth[address(router)], params.minDestAmount, convertedTradePath, params.recipient, MAX_AMOUNT ) ); require(success, "swapFromEth: failed"); } else { IUniswapV2Router02(router).swapExactETHForTokensSupportingFeeOnTransferTokens{ value: params.srcAmount }(params.minDestAmount, convertedTradePath, params.recipient, MAX_AMOUNT); } } else { if (actualDest == ETH_TOKEN_ADDRESS) { // swap token -> eth/bnb if (customSwapToEth[address(router)] != "") { (bool success, ) = router.call( abi.encodeWithSelector( customSwapToEth[address(router)], params.srcAmount, params.minDestAmount, convertedTradePath, params.recipient, MAX_AMOUNT ) ); require(success, "swapToEth: failed"); } else { IUniswapV2Router02(router).swapExactTokensForETHSupportingFeeOnTransferTokens( params.srcAmount, params.minDestAmount, convertedTradePath, params.recipient, MAX_AMOUNT ); } } else { // swap token -> token IUniswapV2Router02(router).swapExactTokensForTokensSupportingFeeOnTransferTokens( params.srcAmount, params.minDestAmount, convertedTradePath, params.recipient, MAX_AMOUNT ); } } destAmount = getBalance(actualDest, params.recipient).sub(destBalanceBefore); } /// @param extraArgs expecting <[20B] address router> function parseExtraArgs(bytes calldata extraArgs) internal view returns (address router) { require(extraArgs.length == 20, "invalid args"); router = extraArgs.toAddress(0); require(router != address(0), "invalid address"); require(uniRouters.contains(router), "unsupported router"); } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; pragma abicoder v2; import "@kyber.network/utils-sc/contracts/Withdrawable.sol"; import "@kyber.network/utils-sc/contracts/Utils.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "./ISwap.sol"; abstract contract BaseSwap is ISwap, Withdrawable, Utils { using SafeERC20 for IERC20Ext; using SafeMath for uint256; uint256 internal constant MAX_AMOUNT = type(uint256).max; address public proxyContract; event UpdatedproxyContract(address indexed _oldProxyImpl, address indexed _newProxyImpl); modifier onlyProxyContract() { require(msg.sender == proxyContract, "only swap impl"); _; } constructor(address _admin) Withdrawable(_admin) {} receive() external payable {} function updateProxyContract(address _proxyContract) external onlyAdmin { require(_proxyContract != address(0), "invalid swap impl"); emit UpdatedproxyContract(proxyContract, _proxyContract); proxyContract = _proxyContract; } // Swap contracts don't keep funds. It's safe to set the max allowance function safeApproveAllowance(address spender, IERC20Ext token) internal { if (token != ETH_TOKEN_ADDRESS && token.allowance(address(this), spender) == 0) { token.safeApprove(spender, MAX_ALLOWANCE); } } }
pragma solidity 0.7.6; library BytesLib { function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) { require(_start + 20 >= _start, "toAddress_overflow"); require(_bytes.length >= _start + 20, "toAddress_outOfBounds"); address tempAddress; assembly { tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000) } return tempAddress; } function toUint24(bytes memory _bytes, uint256 _start) internal pure returns (uint24) { require(_start + 3 >= _start, "toUint24_overflow"); require(_bytes.length >= _start + 3, "toUint24_outOfBounds"); uint24 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x3), _start)) } return tempUint; } function toUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256) { require(_start + 32 >= _start, "toUint256_overflow"); require(_bytes.length >= _start + 32, "toUint256_outOfBounds"); uint256 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x20), _start)) } return tempUint; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.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 SafeMath for uint256; 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _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.6.2 <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.6.0 <0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * @dev Interface extending ERC20 standard to include decimals() as * it is optional in the OpenZeppelin IERC20 interface. */ interface IERC20Ext is IERC20 { /** * @dev This function is required as Kyber requires to interact * with token.decimals() with many of its operations. */ function decimals() external view returns (uint8 digits); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
pragma solidity >=0.5.0; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; library UniswapV2Library { using SafeMath for uint256; // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, "UniswapV2Library: IDENTICAL_ADDRESSES"); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), "UniswapV2Library: ZERO_ADDRESS"); } // calculates the CREATE2 address for a pair without making any external calls function pairFor( address factory, address tokenA, address tokenB ) internal view returns (address pair) { return IUniswapV2Factory(factory).getPair(tokenA, tokenB); /* (address token0, address token1) = sortTokens(tokenA, tokenB); pair = address(uint(keccak256(abi.encodePacked( hex'ff', factory, keccak256(abi.encodePacked(token0, token1)), hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash )))); */ } // fetches and sorts the reserves for a pair function getReserves( address factory, address tokenA, address tokenB ) internal view returns (uint256 reserveA, uint256 reserveB) { (address token0, ) = sortTokens(tokenA, tokenB); (uint256 reserve0, uint256 reserve1, ) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)) .getReserves(); (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0); } // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) internal pure returns (uint256 amountB) { require(amountA > 0, "UniswapV2Library: INSUFFICIENT_AMOUNT"); require(reserveA > 0 && reserveB > 0, "UniswapV2Library: INSUFFICIENT_LIQUIDITY"); amountB = amountA.mul(reserveB) / reserveA; } // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) internal pure returns (uint256 amountOut) { require(amountIn > 0, "UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT"); require(reserveIn > 0 && reserveOut > 0, "UniswapV2Library: INSUFFICIENT_LIQUIDITY"); uint256 amountInWithFee = amountIn.mul(997); uint256 numerator = amountInWithFee.mul(reserveOut); uint256 denominator = reserveIn.mul(1000).add(amountInWithFee); amountOut = numerator / denominator; } // given an output amount of an asset and pair reserves, returns a required input amount of the other asset function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) internal pure returns (uint256 amountIn) { require(amountOut > 0, "UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT"); require(reserveIn > 0 && reserveOut > 0, "UniswapV2Library: INSUFFICIENT_LIQUIDITY"); uint256 numerator = reserveIn.mul(amountOut).mul(1000); uint256 denominator = reserveOut.sub(amountOut).mul(997); amountIn = (numerator / denominator).add(1); } // performs chained getAmountOut calculations on any number of pairs function getAmountsOut( address factory, uint256 amountIn, address[] memory path ) internal view returns (uint256[] memory amounts) { require(path.length >= 2, "UniswapV2Library: INVALID_PATH"); amounts = new uint256[](path.length); amounts[0] = amountIn; for (uint256 i; i < path.length - 1; i++) { (uint256 reserveIn, uint256 reserveOut) = getReserves(factory, path[i], path[i + 1]); amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut); } } // performs chained getAmountIn calculations on any number of pairs function getAmountsIn( address factory, uint256 amountOut, address[] memory path ) internal view returns (uint256[] memory amounts) { require(path.length >= 2, "UniswapV2Library: INVALID_PATH"); amounts = new uint256[](path.length); amounts[amounts.length - 1] = amountOut; for (uint256 i = path.length - 1; i > 0; i--) { (uint256 reserveIn, uint256 reserveOut) = getReserves(factory, path[i - 1], path[i]); amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "./IERC20Ext.sol"; import "./PermissionAdmin.sol"; abstract contract Withdrawable is PermissionAdmin { using SafeERC20 for IERC20Ext; event TokenWithdraw(IERC20Ext token, uint256 amount, address sendTo); event EtherWithdraw(uint256 amount, address sendTo); constructor(address _admin) PermissionAdmin(_admin) {} /** * @dev Withdraw all IERC20Ext compatible tokens * @param token IERC20Ext The address of the token contract */ function withdrawToken( IERC20Ext token, uint256 amount, address sendTo ) external onlyAdmin { token.safeTransfer(sendTo, amount); emit TokenWithdraw(token, amount, sendTo); } /** * @dev Withdraw Ethers */ function withdrawEther(uint256 amount, address payable sendTo) external onlyAdmin { (bool success, ) = sendTo.call{value: amount}(""); require(success, "withdraw failed"); emit EtherWithdraw(amount, sendTo); } }
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "./IERC20Ext.sol"; /** * @title Kyber utility file * mostly shared constants and rate calculation helpers * inherited by most of kyber contracts. * previous utils implementations are for previous solidity versions. */ abstract contract Utils { // Declared constants below to be used in tandem with // getDecimalsConstant(), for gas optimization purposes // which return decimals from a constant list of popular // tokens. IERC20Ext internal constant ETH_TOKEN_ADDRESS = IERC20Ext( 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE ); IERC20Ext internal constant USDT_TOKEN_ADDRESS = IERC20Ext( 0xdAC17F958D2ee523a2206206994597C13D831ec7 ); IERC20Ext internal constant DAI_TOKEN_ADDRESS = IERC20Ext( 0x6B175474E89094C44Da98b954EedeAC495271d0F ); IERC20Ext internal constant USDC_TOKEN_ADDRESS = IERC20Ext( 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 ); IERC20Ext internal constant WBTC_TOKEN_ADDRESS = IERC20Ext( 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599 ); IERC20Ext internal constant KNC_TOKEN_ADDRESS = IERC20Ext( 0xdd974D5C2e2928deA5F71b9825b8b646686BD200 ); uint256 public constant BPS = 10000; // Basic Price Steps. 1 step = 0.01% uint256 internal constant PRECISION = (10**18); uint256 internal constant MAX_QTY = (10**28); // 10B tokens uint256 internal constant MAX_RATE = (PRECISION * 10**7); // up to 10M tokens per eth uint256 internal constant MAX_DECIMALS = 18; uint256 internal constant ETH_DECIMALS = 18; uint256 internal constant MAX_ALLOWANCE = uint256(-1); // token.approve inifinite mapping(IERC20Ext => uint256) internal decimals; /// @dev Sets the decimals of a token to storage if not already set, and returns /// the decimals value of the token. Prefer using this function over /// getDecimals(), to avoid forgetting to set decimals in local storage. /// @param token The token type /// @return tokenDecimals The decimals of the token function getSetDecimals(IERC20Ext token) internal returns (uint256 tokenDecimals) { tokenDecimals = getDecimalsConstant(token); if (tokenDecimals > 0) return tokenDecimals; tokenDecimals = decimals[token]; if (tokenDecimals == 0) { tokenDecimals = token.decimals(); decimals[token] = tokenDecimals; } } /// @dev Get the balance of a user /// @param token The token type /// @param user The user's address /// @return The balance function getBalance(IERC20Ext token, address user) internal view returns (uint256) { if (token == ETH_TOKEN_ADDRESS) { return user.balance; } else { return token.balanceOf(user); } } /// @dev Get the decimals of a token, read from the constant list, storage, /// or from token.decimals(). Prefer using getSetDecimals when possible. /// @param token The token type /// @return tokenDecimals The decimals of the token function getDecimals(IERC20Ext token) internal view returns (uint256 tokenDecimals) { // return token decimals if has constant value tokenDecimals = getDecimalsConstant(token); if (tokenDecimals > 0) return tokenDecimals; // handle case where token decimals is not a declared decimal constant tokenDecimals = decimals[token]; // moreover, very possible that old tokens have decimals 0 // these tokens will just have higher gas fees. return (tokenDecimals > 0) ? tokenDecimals : token.decimals(); } function calcDestAmount( IERC20Ext src, IERC20Ext dest, uint256 srcAmount, uint256 rate ) internal view returns (uint256) { return calcDstQty(srcAmount, getDecimals(src), getDecimals(dest), rate); } function calcSrcAmount( IERC20Ext src, IERC20Ext dest, uint256 destAmount, uint256 rate ) internal view returns (uint256) { return calcSrcQty(destAmount, getDecimals(src), getDecimals(dest), rate); } function calcDstQty( uint256 srcQty, uint256 srcDecimals, uint256 dstDecimals, uint256 rate ) internal pure returns (uint256) { require(srcQty <= MAX_QTY, "srcQty > MAX_QTY"); require(rate <= MAX_RATE, "rate > MAX_RATE"); if (dstDecimals >= srcDecimals) { require((dstDecimals - srcDecimals) <= MAX_DECIMALS, "dst - src > MAX_DECIMALS"); return (srcQty * rate * (10**(dstDecimals - srcDecimals))) / PRECISION; } else { require((srcDecimals - dstDecimals) <= MAX_DECIMALS, "src - dst > MAX_DECIMALS"); return (srcQty * rate) / (PRECISION * (10**(srcDecimals - dstDecimals))); } } function calcSrcQty( uint256 dstQty, uint256 srcDecimals, uint256 dstDecimals, uint256 rate ) internal pure returns (uint256) { require(dstQty <= MAX_QTY, "dstQty > MAX_QTY"); require(rate <= MAX_RATE, "rate > MAX_RATE"); //source quantity is rounded up. to avoid dest quantity being too low. uint256 numerator; uint256 denominator; if (srcDecimals >= dstDecimals) { require((srcDecimals - dstDecimals) <= MAX_DECIMALS, "src - dst > MAX_DECIMALS"); numerator = (PRECISION * dstQty * (10**(srcDecimals - dstDecimals))); denominator = rate; } else { require((dstDecimals - srcDecimals) <= MAX_DECIMALS, "dst - src > MAX_DECIMALS"); numerator = (PRECISION * dstQty); denominator = (rate * (10**(dstDecimals - srcDecimals))); } return (numerator + denominator - 1) / denominator; //avoid rounding down errors } function calcRateFromQty( uint256 srcAmount, uint256 destAmount, uint256 srcDecimals, uint256 dstDecimals ) internal pure returns (uint256) { require(srcAmount <= MAX_QTY, "srcAmount > MAX_QTY"); require(destAmount <= MAX_QTY, "destAmount > MAX_QTY"); if (dstDecimals >= srcDecimals) { require((dstDecimals - srcDecimals) <= MAX_DECIMALS, "dst - src > MAX_DECIMALS"); return ((destAmount * PRECISION) / ((10**(dstDecimals - srcDecimals)) * srcAmount)); } else { require((srcDecimals - dstDecimals) <= MAX_DECIMALS, "src - dst > MAX_DECIMALS"); return ((destAmount * PRECISION * (10**(srcDecimals - dstDecimals))) / srcAmount); } } /// @dev save storage access by declaring token decimal constants /// @param token The token type /// @return token decimals function getDecimalsConstant(IERC20Ext token) internal pure returns (uint256) { if (token == ETH_TOKEN_ADDRESS) { return ETH_DECIMALS; } else if (token == USDT_TOKEN_ADDRESS) { return 6; } else if (token == DAI_TOKEN_ADDRESS) { return 18; } else if (token == USDC_TOKEN_ADDRESS) { return 6; } else if (token == WBTC_TOKEN_ADDRESS) { return 8; } else if (token == KNC_TOKEN_ADDRESS) { return 18; } else { return 0; } } function minOf(uint256 x, uint256 y) internal pure returns (uint256) { return x > y ? y : x; } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; pragma abicoder v2; interface ISwap { struct GetExpectedReturnParams { uint256 srcAmount; address[] tradePath; uint256 feeBps; bytes extraArgs; } function getExpectedReturn(GetExpectedReturnParams calldata params) external view returns (uint256 destAmount); function getExpectedReturnWithImpact(GetExpectedReturnParams calldata params) external view returns (uint256 destAmount, uint256 priceImpact); struct GetExpectedInParams { uint256 destAmount; address[] tradePath; uint256 feeBps; bytes extraArgs; } function getExpectedIn(GetExpectedInParams calldata params) external view returns (uint256 srcAmount); function getExpectedInWithImpact(GetExpectedInParams calldata params) external view returns (uint256 srcAmount, uint256 priceImpact); struct SwapParams { uint256 srcAmount; uint256 minDestAmount; address[] tradePath; address recipient; uint256 feeBps; address payable feeReceiver; bytes extraArgs; } function swap(SwapParams calldata params) external payable returns (uint256 destAmount); }
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; abstract contract PermissionAdmin { address public admin; address public pendingAdmin; event AdminClaimed(address newAdmin, address previousAdmin); event TransferAdminPending(address pendingAdmin); constructor(address _admin) { require(_admin != address(0), "admin 0"); admin = _admin; } modifier onlyAdmin() { require(msg.sender == admin, "only admin"); _; } /** * @dev Allows the current admin to set the pendingAdmin address. * @param newAdmin The address to transfer ownership to. */ function transferAdmin(address newAdmin) public onlyAdmin { require(newAdmin != address(0), "new admin 0"); emit TransferAdminPending(newAdmin); pendingAdmin = newAdmin; } /** * @dev Allows the current admin to set the admin in one tx. Useful initial deployment. * @param newAdmin The address to transfer ownership to. */ function transferAdminQuickly(address newAdmin) public onlyAdmin { require(newAdmin != address(0), "admin 0"); emit TransferAdminPending(newAdmin); emit AdminClaimed(newAdmin, admin); admin = newAdmin; } /** * @dev Allows the pendingAdmin address to finalize the change admin process. */ function claimAdmin() public { require(pendingAdmin == msg.sender, "not pending"); emit AdminClaimed(pendingAdmin, admin); admin = pendingAdmin; pendingAdmin = address(0); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
{ "optimizer": { "enabled": true, "runs": 780 }, "metadata": { "bytecodeHash": "none" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"contract IUniswapV2Router02[]","name":"routers","type":"address[]"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"}],"name":"AdminClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"sendTo","type":"address"}],"name":"EtherWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IERC20Ext","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"sendTo","type":"address"}],"name":"TokenWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pendingAdmin","type":"address"}],"name":"TransferAdminPending","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IUniswapV2Router02[]","name":"routers","type":"address[]"},{"indexed":false,"internalType":"bool","name":"isSupported","type":"bool"}],"name":"UpdatedUniRouters","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_oldProxyImpl","type":"address"},{"indexed":true,"internalType":"address","name":"_newProxyImpl","type":"address"}],"name":"UpdatedproxyContract","type":"event"},{"inputs":[],"name":"BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"customSwapFromEth","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"customSwapToEth","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllUniRouters","outputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"destAmount","type":"uint256"},{"internalType":"address[]","name":"tradePath","type":"address[]"},{"internalType":"uint256","name":"feeBps","type":"uint256"},{"internalType":"bytes","name":"extraArgs","type":"bytes"}],"internalType":"struct ISwap.GetExpectedInParams","name":"params","type":"tuple"}],"name":"getExpectedIn","outputs":[{"internalType":"uint256","name":"srcAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"destAmount","type":"uint256"},{"internalType":"address[]","name":"tradePath","type":"address[]"},{"internalType":"uint256","name":"feeBps","type":"uint256"},{"internalType":"bytes","name":"extraArgs","type":"bytes"}],"internalType":"struct ISwap.GetExpectedInParams","name":"params","type":"tuple"}],"name":"getExpectedInWithImpact","outputs":[{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"priceImpact","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"address[]","name":"tradePath","type":"address[]"},{"internalType":"uint256","name":"feeBps","type":"uint256"},{"internalType":"bytes","name":"extraArgs","type":"bytes"}],"internalType":"struct ISwap.GetExpectedReturnParams","name":"params","type":"tuple"}],"name":"getExpectedReturn","outputs":[{"internalType":"uint256","name":"destAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"address[]","name":"tradePath","type":"address[]"},{"internalType":"uint256","name":"feeBps","type":"uint256"},{"internalType":"bytes","name":"extraArgs","type":"bytes"}],"internalType":"struct ISwap.GetExpectedReturnParams","name":"params","type":"tuple"}],"name":"getExpectedReturnWithImpact","outputs":[{"internalType":"uint256","name":"destAmount","type":"uint256"},{"internalType":"uint256","name":"priceImpact","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"minDestAmount","type":"uint256"},{"internalType":"address[]","name":"tradePath","type":"address[]"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"feeBps","type":"uint256"},{"internalType":"address payable","name":"feeReceiver","type":"address"},{"internalType":"bytes","name":"extraArgs","type":"bytes"}],"internalType":"struct ISwap.SwapParams","name":"params","type":"tuple"}],"name":"swap","outputs":[{"internalType":"uint256","name":"destAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"transferAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"transferAdminQuickly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"bytes4","name":"_swapFromEth","type":"bytes4"},{"internalType":"bytes4","name":"_swapToEth","type":"bytes4"}],"name":"updateCustomSwapSelector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyContract","type":"address"}],"name":"updateProxyContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IUniswapV2Router02[]","name":"routers","type":"address[]"},{"internalType":"bool","name":"isSupported","type":"bool"}],"name":"updateUniRouters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wEth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"sendTo","type":"address"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20Ext","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"sendTo","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162003176380380620031768339810160408190526200003491620001a7565b8280806001600160a01b0381166200007d576040805162461bcd60e51b8152602060048201526007602482015266061646d696e20360cc1b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b03929092169190911781559150505b8251811015620000e457620000da838281518110620000bc57fe5b602002602001015160046200010e60201b620018641790919060201c565b50600101620000a1565b50600680546001600160a01b0319166001600160a01b039290921691909117905550620002a99050565b600062000125836001600160a01b0384166200012e565b90505b92915050565b60006200013c83836200017d565b620001745750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000128565b50600062000128565b60009081526001919091016020526040902054151590565b8051620001a28162000290565b919050565b600080600060608486031215620001bc578283fd5b8351620001c98162000290565b602085810151919450906001600160401b0380821115620001e8578485fd5b818701915087601f830112620001fc578485fd5b8151818111156200020957fe5b838102604051858282010181811085821117156200022357fe5b604052828152858101935084860182860187018c101562000242578889fd5b8895505b838610156200026f576200025a8162000195565b85526001959095019493860193860162000246565b50809750505050505050620002876040850162000195565b90509250925092565b6001600160a01b0381168114620002a657600080fd5b50565b612ebd80620002b96000396000f3fe60806040526004361061016e5760003560e01c806375829def116100cb578063df6d92121161007f578063e9c3e2b911610059578063e9c3e2b9146103c3578063ed550443146103e3578063f851a440146103f857610175565b8063df6d92121461036e578063e19b609d14610383578063e6f396cd146103a357610175565b80637acc8678116100b05780637acc86781461030e578063ce56c4541461032e578063d6ba0bfc1461034e57610175565b806375829def146102d957806377f50f97146102f957610175565b806343bea4b3116101225780634db1d03d116101075780634db1d03d146102795780635ecb71f81461029957806368aa6dd9146102c657610175565b806343bea4b3146102375780634582d2791461025757610175565b8063249d39e911610153578063249d39e9146101d357806326782247146101f55780633ccdbb281461021757610175565b806305a727091461017a57806313735246146101b157610175565b3661017557005b600080fd5b34801561018657600080fd5b5061019a61019536600461285c565b61040d565b6040516101a8929190612c87565b60405180910390f35b3480156101bd57600080fd5b506101d16101cc366004612678565b6105d0565b005b3480156101df57600080fd5b506101e861069e565b6040516101a89190612bf1565b34801561020157600080fd5b5061020a6106a4565b6040516101a8919061298a565b34801561022357600080fd5b506101d1610232366004612826565b6106b3565b34801561024357600080fd5b506101e861025236600461285c565b610762565b34801561026357600080fd5b5061026c610865565b6040516101a891906129b8565b34801561028557600080fd5b506101e861029436600461285c565b610900565b3480156102a557600080fd5b506102b96102b4366004612678565b6109e2565b6040516101a89190612a24565b6101e86102d436600461288f565b6109f7565b3480156102e557600080fd5b506101d16102f4366004612678565b6110ea565b34801561030557600080fd5b506101d16111ef565b34801561031a57600080fd5b506101d1610329366004612678565b6112c1565b34801561033a57600080fd5b506101d16103493660046128df565b61140e565b34801561035a57600080fd5b506101d16103693660046126f4565b611548565b34801561037a57600080fd5b5061020a61164e565b34801561038f57600080fd5b5061019a61039e36600461285c565b61165d565b3480156103af57600080fd5b506102b96103be366004612678565b61179d565b3480156103cf57600080fd5b506101d16103de3660046126b0565b6117b2565b3480156103ef57600080fd5b5061020a611846565b34801561040457600080fd5b5061020a611855565b60035460009081906001600160a01b031633146104455760405162461bcd60e51b815260040161043c90612bba565b60405180910390fd5b600061045c6104576060860186612d18565b611882565b905060006001600160a01b038216631f00ca74863561047e6020890189612cd1565b6040518463ffffffff1660e01b815260040161049c93929190612bfa565b60006040518083038186803b1580156104b457600080fd5b505afa1580156104c8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104f09190810190612778565b9050806000815181106104ff57fe5b602002602001015193506105c7848660000135846001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561054b57600080fd5b505afa15801561055f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105839190612694565b61059060208a018a612cd1565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061193792505050565b92505050915091565b6000546001600160a01b0316331461061c576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b0381166106425760405162461bcd60e51b815260040161043c90612a39565b6003546040516001600160a01b038084169216907f7c5d026310440df4ec67ef47368cd26898f9dbec4b95934dbbc4a3d9d46c49a990600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b61271081565b6001546001600160a01b031681565b6000546001600160a01b031633146106ff576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6107136001600160a01b03841682846119e9565b604080516001600160a01b0380861682526020820185905283168183015290517f72cb8a894ddb372ceec3d2a7648d86f17d5a15caae0e986c53109b8a9a9385e69181900360600190a1505050565b6003546000906001600160a01b0316331461078f5760405162461bcd60e51b815260040161043c90612bba565b60006107a16104576060850185612d18565b905060006001600160a01b03821663d06ca61f85356107c36020880188612cd1565b6040518463ffffffff1660e01b81526004016107e193929190612bfa565b60006040518083038186803b1580156107f957600080fd5b505afa15801561080d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108359190810190612778565b90508060016108476020870187612cd1565b9050038151811061085457fe5b602002602001015192505050919050565b606060006108736004611a40565b90508067ffffffffffffffff8111801561088c57600080fd5b506040519080825280602002602001820160405280156108b6578160200160208202803683370190505b50915060005b818110156108fb576108cf600482611a53565b8382815181106108db57fe5b6001600160a01b03909216602092830291909101909101526001016108bc565b505090565b6003546000906001600160a01b0316331461092d5760405162461bcd60e51b815260040161043c90612bba565b600061093f6104576060850185612d18565b905060006001600160a01b038216631f00ca7485356109616020880188612cd1565b6040518463ffffffff1660e01b815260040161097f93929190612bfa565b60006040518083038186803b15801561099757600080fd5b505afa1580156109ab573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109d39190810190612778565b90508060008151811061085457fe5b60086020526000908152604090205460e01b81565b6003546000906001600160a01b03163314610a245760405162461bcd60e51b815260040161043c90612bba565b6002610a336040840184612cd1565b90501015610a535760405162461bcd60e51b815260040161043c90612b4c565b6000610a6561045760c0850185612d18565b9050610a9d81610a786040860186612cd1565b6000818110610a8357fe5b9050602002016020810190610a989190612678565b611a5f565b6000610aac6040850185612cd1565b915060009050610abf6040860186612cd1565b6000818110610aca57fe5b9050602002016020810190610adf9190612678565b90506000610af06040870187612cd1565b60018503818110610afd57fe5b9050602002016020810190610b129190612678565b90506000610b236040880188612cd1565b808060200260200160405190810160405280939291908181526020018383602002808284376000920182905250845194955073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee9486945090925015159050610b7b57fe5b60200260200101516001600160a01b03161415610bcf5760065481516001600160a01b03909116908290600090610bae57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316816001860381518110610bfc57fe5b60200260200101516001600160a01b03161415610c555760065481516001600160a01b039091169082906000198701908110610c3457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6000610c7083610c6b60808b0160608c01612678565b611b26565b90506001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610e5d576001600160a01b03861660009081526007602052604090205460e01b6001600160e01b03191615610ddc576000866001600160a01b03168960000135600760008a6001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460e01b8b60200135868d6060016020810190610d1f9190612678565b600019604051602401610d359493929190612c52565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051610d739190612951565b60006040518083038185875af1925050503d8060008114610db0576040519150601f19603f3d011682016040523d82523d6000602084013e610db5565b606091505b5050905080610dd65760405162461bcd60e51b815260040161043c90612a70565b50610e58565b6001600160a01b03861663b6f9de95893560208b013585610e0360808e0160608f01612678565b6000196040518663ffffffff1660e01b8152600401610e259493929190612c52565b6000604051808303818588803b158015610e3e57600080fd5b505af1158015610e52573d6000803e3d6000fd5b50505050505b6110c0565b6001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415611043576001600160a01b03861660009081526008602052604090205460e01b6001600160e01b03191615610fc2576000866001600160a01b031660086000896001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460e01b8a600001358b60200135868d6060016020810190610f0a9190612678565b600019604051602401610f21959493929190612c95565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051610f5f9190612951565b6000604051808303816000865af19150503d8060008114610f9c576040519150601f19603f3d011682016040523d82523d6000602084013e610fa1565b606091505b5050905080610dd65760405162461bcd60e51b815260040161043c90612b15565b6001600160a01b03861663791ac947893560208b013585610fe960808e0160608f01612678565b6000196040518663ffffffff1660e01b815260040161100c959493929190612c95565b600060405180830381600087803b15801561102657600080fd5b505af115801561103a573d6000803e3d6000fd5b505050506110c0565b6001600160a01b038616635c11d795893560208b01358561106a60808e0160608f01612678565b6000196040518663ffffffff1660e01b815260040161108d959493929190612c95565b600060405180830381600087803b1580156110a757600080fd5b505af11580156110bb573d6000803e3d6000fd5b505050505b6110de816110d885610c6b60808d0160608e01612678565b90611bde565b98975050505050505050565b6000546001600160a01b03163314611136576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b038116611191576040805162461bcd60e51b815260206004820152600b60248201527f6e65772061646d696e2030000000000000000000000000000000000000000000604482015290519081900360640190fd5b604080516001600160a01b038316815290517f3b81caf78fa51ecbc8acb482fd7012a277b428d9b80f9d156e8a54107496cc409181900360200190a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b0316331461124e576040805162461bcd60e51b815260206004820152600b60248201527f6e6f742070656e64696e67000000000000000000000000000000000000000000604482015290519081900360640190fd5b600154600054604080516001600160a01b03938416815292909116602083015280517f65da1cfc2c2e81576ad96afb24a581f8e109b7a403b35cbd3243a1c99efdb9ed9281900390910190a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6000546001600160a01b0316331461130d576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b038116611368576040805162461bcd60e51b815260206004820152600760248201527f61646d696e203000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b604080516001600160a01b038316815290517f3b81caf78fa51ecbc8acb482fd7012a277b428d9b80f9d156e8a54107496cc409181900360200190a1600054604080516001600160a01b038085168252909216602083015280517f65da1cfc2c2e81576ad96afb24a581f8e109b7a403b35cbd3243a1c99efdb9ed9281900390910190a1600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461145a576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6040516000906001600160a01b0383169084908381818185875af1925050503d80600081146114a5576040519150601f19603f3d011682016040523d82523d6000602084013e6114aa565b606091505b5050905080611500576040805162461bcd60e51b815260206004820152600f60248201527f7769746864726177206661696c65640000000000000000000000000000000000604482015290519081900360640190fd5b604080518481526001600160a01b038416602082015281517fec47e7ed86c86774d1a72c19f35c639911393fe7c1a34031fdbd260890da90de929181900390910190a1505050565b6000546001600160a01b03163314611594576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b60005b8281101561160d5781156115d7576115d18484838181106115b457fe5b90506020020160208101906115c99190612678565b600490611864565b50611605565b6116038484838181106115e657fe5b90506020020160208101906115fb9190612678565b600490611c3b565b505b600101611597565b507f56f34eb6bd4451b93fcc586e59d7ca42dba8fdb9fc157152eb3b4d0cf190b2c2838383604051611641939291906129cb565b60405180910390a1505050565b6006546001600160a01b031681565b60035460009081906001600160a01b0316331461168c5760405162461bcd60e51b815260040161043c90612bba565b600061169e6104576060860186612d18565b905060006001600160a01b03821663d06ca61f86356116c06020890189612cd1565b6040518463ffffffff1660e01b81526004016116de93929190612bfa565b60006040518083038186803b1580156116f657600080fd5b505afa15801561170a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117329190810190612778565b90508060016117446020880188612cd1565b9050038151811061175157fe5b602002602001015193506105c7856000013585846001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561054b57600080fd5b60076020526000908152604090205460e01b81565b6000546001600160a01b031633146117fe576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b039092166000908152600760209081526040808320805460e095861c63ffffffff1991821617909155600890925290912080549390921c9216919091179055565b6003546001600160a01b031681565b6000546001600160a01b031681565b6000611879836001600160a01b038416611c50565b90505b92915050565b6000601482146118a45760405162461bcd60e51b815260040161043c90612b83565b6118e8600084848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050611c9a9050565b90506001600160a01b0381166119105760405162461bcd60e51b815260040161043c90612aa7565b61191b600482611d66565b61187c5760405162461bcd60e51b815260040161043c90612ade565b600084815b60018451038110156119b25760008061197f8787858151811061195b57fe5b602002602001015188866001018151811061197257fe5b6020026020010151611d7b565b90925090506119a661199f6103e8611999876103e5611e49565b90611ea2565b8383611f09565b9350505060010161193c565b508481116119c357600091506119e0565b6119dd816119996127106119d7838a611bde565b90611e49565b91505b50949350505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a3b908490611faf565b505050565b6000611a4b82612060565b90505b919050565b60006118798383612064565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14801590611b075750604051636eb1769f60e11b81526001600160a01b0382169063dd62ed3e90611ab5903090869060040161299e565b60206040518083038186803b158015611acd57600080fd5b505afa158015611ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0591906128c7565b155b15611b2257611b226001600160a01b038216836000196120c8565b5050565b60006001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415611b5e57506001600160a01b0381163161187c565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611bab57600080fd5b505afa158015611bbf573d6000803e3d6000fd5b505050506040513d6020811015611bd557600080fd5b5051905061187c565b600082821115611c35576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000611879836001600160a01b0384166121db565b6000611c5c83836122a1565b611c925750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561187c565b50600061187c565b600081826014011015611cf4576040805162461bcd60e51b815260206004820152601260248201527f746f416464726573735f6f766572666c6f770000000000000000000000000000604482015290519081900360640190fd5b8160140183511015611d4d576040805162461bcd60e51b815260206004820152601560248201527f746f416464726573735f6f75744f66426f756e64730000000000000000000000604482015290519081900360640190fd5b5001602001516c01000000000000000000000000900490565b6000611879836001600160a01b0384166122a1565b6000806000611d8a85856122b9565b509050600080611d9b888888612397565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611dd357600080fd5b505afa158015611de7573d6000803e3d6000fd5b505050506040513d6060811015611dfd57600080fd5b5080516020909101516dffffffffffffffffffffffffffff91821693501690506001600160a01b0387811690841614611e37578082611e3a565b81815b90999098509650505050505050565b600082611e585750600061187c565b82820282848281611e6557fe5b04146118795760405162461bcd60e51b8152600401808060200182810382526021815260200180612e0b6021913960400191505060405180910390fd5b6000808211611ef8576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611f0157fe5b049392505050565b6000808411611f495760405162461bcd60e51b8152600401808060200182810382526025815260200180612e2c6025913960400191505060405180910390fd5b600083118015611f595750600082115b611f945760405162461bcd60e51b8152600401808060200182810382526028815260200180612de36028913960400191505060405180910390fd5b82611f9f8584611e49565b81611fa657fe5b04949350505050565b6000612004826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661242d9092919063ffffffff16565b805190915015611a3b5780806020019051602081101561202357600080fd5b5051611a3b5760405162461bcd60e51b815260040180806020018281038252602a815260200180612e51602a913960400191505060405180910390fd5b5490565b815460009082106120a65760405162461bcd60e51b8152600401808060200182810382526022815260200180612d766022913960400191505060405180910390fd5b8260000182815481106120b557fe5b9060005260206000200154905092915050565b80158061214e575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561212057600080fd5b505afa158015612134573d6000803e3d6000fd5b505050506040513d602081101561214a57600080fd5b5051155b6121895760405162461bcd60e51b8152600401808060200182810382526036815260200180612e7b6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611a3b908490611faf565b60008181526001830160205260408120548015612297578354600019808301919081019060009087908390811061220e57fe5b906000526020600020015490508087600001848154811061222b57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061225b57fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061187c565b600091505061187c565b60009081526001919091016020526040902054151590565b600080826001600160a01b0316846001600160a01b0316141561230d5760405162461bcd60e51b8152600401808060200182810382526025815260200180612d986025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b03161061232d578284612330565b83835b90925090506001600160a01b038216612390576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b6000836001600160a01b031663e6a4390584846040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156123f757600080fd5b505afa15801561240b573d6000803e3d6000fd5b505050506040513d602081101561242157600080fd5b505190505b9392505050565b606061243c8484600085612444565b949350505050565b6060824710156124855760405162461bcd60e51b8152600401808060200182810382526026815260200180612dbd6026913960400191505060405180910390fd5b61248e8561259f565b6124df576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b6020831061251d5780518252601f1990920191602091820191016124fe565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461257f576040519150601f19603f3d011682016040523d82523d6000602084013e612584565b606091505b50915091506125948282866125a5565b979650505050505050565b3b151590565b606083156125b4575081612426565b8251156125c45782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561260e5781810151838201526020016125f6565b50505050905090810190601f16801561263b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b80356001600160e01b031981168114611a4e57600080fd5b600060808284031215612672578081fd5b50919050565b600060208284031215612689578081fd5b813561187981612d5d565b6000602082840312156126a5578081fd5b815161187981612d5d565b6000806000606084860312156126c4578182fd5b83356126cf81612d5d565b92506126dd60208501612649565b91506126eb60408501612649565b90509250925092565b600080600060408486031215612708578283fd5b833567ffffffffffffffff8082111561271f578485fd5b818601915086601f830112612732578485fd5b813581811115612740578586fd5b8760208083028501011115612753578586fd5b60209283019550935050840135801515811461276d578182fd5b809150509250925092565b6000602080838503121561278a578182fd5b825167ffffffffffffffff808211156127a1578384fd5b818501915085601f8301126127b4578384fd5b8151818111156127c057fe5b838102604051858282010181811085821117156127d957fe5b604052828152858101935084860182860187018a10156127f7578788fd5b8795505b838610156128195780518552600195909501949386019386016127fb565b5098975050505050505050565b60008060006060848603121561283a578283fd5b833561284581612d5d565b925060208401359150604084013561276d81612d5d565b60006020828403121561286d578081fd5b813567ffffffffffffffff811115612883578182fd5b61243c84828501612661565b6000602082840312156128a0578081fd5b813567ffffffffffffffff8111156128b6578182fd5b820160e08185031215611879578182fd5b6000602082840312156128d8578081fd5b5051919050565b600080604083850312156128f1578182fd5b82359150602083013561290381612d5d565b809150509250929050565b6000815180845260208085019450808401835b838110156129465781516001600160a01b031687529582019590820190600101612921565b509495945050505050565b60008251815b818110156129715760208186018101518583015201612957565b8181111561297f5782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b600060208252611879602083018461290e565b6040808252810183905260008460608301825b86811015612a0e5782356129f181612d5d565b6001600160a01b03168252602092830192909101906001016129de565b5080925050508215156020830152949350505050565b6001600160e01b031991909116815260200190565b60208082526011908201527f696e76616c6964207377617020696d706c000000000000000000000000000000604082015260600190565b60208082526013908201527f7377617046726f6d4574683a206661696c656400000000000000000000000000604082015260600190565b6020808252600f908201527f696e76616c696420616464726573730000000000000000000000000000000000604082015260600190565b60208082526012908201527f756e737570706f7274656420726f757465720000000000000000000000000000604082015260600190565b60208082526011908201527f73776170546f4574683a206661696c6564000000000000000000000000000000604082015260600190565b60208082526011908201527f696e76616c696420747261646550617468000000000000000000000000000000604082015260600190565b6020808252600c908201527f696e76616c696420617267730000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f6f6e6c79207377617020696d706c000000000000000000000000000000000000604082015260600190565b90815260200190565b83815260406020808301829052908201839052600090849060608401835b86811015612c46578335612c2b81612d5d565b6001600160a01b031682529282019290820190600101612c18565b50979650505050505050565b600085825260806020830152612c6b608083018661290e565b6001600160a01b03949094166040830152506060015292915050565b918252602082015260400190565b600086825285602083015260a06040830152612cb460a083018661290e565b6001600160a01b0394909416606083015250608001529392505050565b6000808335601e19843603018112612ce7578283fd5b83018035915067ffffffffffffffff821115612d01578283fd5b602090810192508102360382131561239057600080fd5b6000808335601e19843603018112612d2e578182fd5b83018035915067ffffffffffffffff821115612d48578283fd5b60200191503681900382131561239057600080fd5b6001600160a01b0381168114612d7257600080fd5b5056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e545361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a164736f6c6343000706000a000000000000000000000000a3e78ab6f120c730d6f3939c0dc6dcd0e3da72780000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000020000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9fDeployed Bytecode
0x60806040526004361061016e5760003560e01c806375829def116100cb578063df6d92121161007f578063e9c3e2b911610059578063e9c3e2b9146103c3578063ed550443146103e3578063f851a440146103f857610175565b8063df6d92121461036e578063e19b609d14610383578063e6f396cd146103a357610175565b80637acc8678116100b05780637acc86781461030e578063ce56c4541461032e578063d6ba0bfc1461034e57610175565b806375829def146102d957806377f50f97146102f957610175565b806343bea4b3116101225780634db1d03d116101075780634db1d03d146102795780635ecb71f81461029957806368aa6dd9146102c657610175565b806343bea4b3146102375780634582d2791461025757610175565b8063249d39e911610153578063249d39e9146101d357806326782247146101f55780633ccdbb281461021757610175565b806305a727091461017a57806313735246146101b157610175565b3661017557005b600080fd5b34801561018657600080fd5b5061019a61019536600461285c565b61040d565b6040516101a8929190612c87565b60405180910390f35b3480156101bd57600080fd5b506101d16101cc366004612678565b6105d0565b005b3480156101df57600080fd5b506101e861069e565b6040516101a89190612bf1565b34801561020157600080fd5b5061020a6106a4565b6040516101a8919061298a565b34801561022357600080fd5b506101d1610232366004612826565b6106b3565b34801561024357600080fd5b506101e861025236600461285c565b610762565b34801561026357600080fd5b5061026c610865565b6040516101a891906129b8565b34801561028557600080fd5b506101e861029436600461285c565b610900565b3480156102a557600080fd5b506102b96102b4366004612678565b6109e2565b6040516101a89190612a24565b6101e86102d436600461288f565b6109f7565b3480156102e557600080fd5b506101d16102f4366004612678565b6110ea565b34801561030557600080fd5b506101d16111ef565b34801561031a57600080fd5b506101d1610329366004612678565b6112c1565b34801561033a57600080fd5b506101d16103493660046128df565b61140e565b34801561035a57600080fd5b506101d16103693660046126f4565b611548565b34801561037a57600080fd5b5061020a61164e565b34801561038f57600080fd5b5061019a61039e36600461285c565b61165d565b3480156103af57600080fd5b506102b96103be366004612678565b61179d565b3480156103cf57600080fd5b506101d16103de3660046126b0565b6117b2565b3480156103ef57600080fd5b5061020a611846565b34801561040457600080fd5b5061020a611855565b60035460009081906001600160a01b031633146104455760405162461bcd60e51b815260040161043c90612bba565b60405180910390fd5b600061045c6104576060860186612d18565b611882565b905060006001600160a01b038216631f00ca74863561047e6020890189612cd1565b6040518463ffffffff1660e01b815260040161049c93929190612bfa565b60006040518083038186803b1580156104b457600080fd5b505afa1580156104c8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104f09190810190612778565b9050806000815181106104ff57fe5b602002602001015193506105c7848660000135846001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561054b57600080fd5b505afa15801561055f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105839190612694565b61059060208a018a612cd1565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061193792505050565b92505050915091565b6000546001600160a01b0316331461061c576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b0381166106425760405162461bcd60e51b815260040161043c90612a39565b6003546040516001600160a01b038084169216907f7c5d026310440df4ec67ef47368cd26898f9dbec4b95934dbbc4a3d9d46c49a990600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b61271081565b6001546001600160a01b031681565b6000546001600160a01b031633146106ff576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6107136001600160a01b03841682846119e9565b604080516001600160a01b0380861682526020820185905283168183015290517f72cb8a894ddb372ceec3d2a7648d86f17d5a15caae0e986c53109b8a9a9385e69181900360600190a1505050565b6003546000906001600160a01b0316331461078f5760405162461bcd60e51b815260040161043c90612bba565b60006107a16104576060850185612d18565b905060006001600160a01b03821663d06ca61f85356107c36020880188612cd1565b6040518463ffffffff1660e01b81526004016107e193929190612bfa565b60006040518083038186803b1580156107f957600080fd5b505afa15801561080d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108359190810190612778565b90508060016108476020870187612cd1565b9050038151811061085457fe5b602002602001015192505050919050565b606060006108736004611a40565b90508067ffffffffffffffff8111801561088c57600080fd5b506040519080825280602002602001820160405280156108b6578160200160208202803683370190505b50915060005b818110156108fb576108cf600482611a53565b8382815181106108db57fe5b6001600160a01b03909216602092830291909101909101526001016108bc565b505090565b6003546000906001600160a01b0316331461092d5760405162461bcd60e51b815260040161043c90612bba565b600061093f6104576060850185612d18565b905060006001600160a01b038216631f00ca7485356109616020880188612cd1565b6040518463ffffffff1660e01b815260040161097f93929190612bfa565b60006040518083038186803b15801561099757600080fd5b505afa1580156109ab573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109d39190810190612778565b90508060008151811061085457fe5b60086020526000908152604090205460e01b81565b6003546000906001600160a01b03163314610a245760405162461bcd60e51b815260040161043c90612bba565b6002610a336040840184612cd1565b90501015610a535760405162461bcd60e51b815260040161043c90612b4c565b6000610a6561045760c0850185612d18565b9050610a9d81610a786040860186612cd1565b6000818110610a8357fe5b9050602002016020810190610a989190612678565b611a5f565b6000610aac6040850185612cd1565b915060009050610abf6040860186612cd1565b6000818110610aca57fe5b9050602002016020810190610adf9190612678565b90506000610af06040870187612cd1565b60018503818110610afd57fe5b9050602002016020810190610b129190612678565b90506000610b236040880188612cd1565b808060200260200160405190810160405280939291908181526020018383602002808284376000920182905250845194955073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee9486945090925015159050610b7b57fe5b60200260200101516001600160a01b03161415610bcf5760065481516001600160a01b03909116908290600090610bae57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316816001860381518110610bfc57fe5b60200260200101516001600160a01b03161415610c555760065481516001600160a01b039091169082906000198701908110610c3457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6000610c7083610c6b60808b0160608c01612678565b611b26565b90506001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610e5d576001600160a01b03861660009081526007602052604090205460e01b6001600160e01b03191615610ddc576000866001600160a01b03168960000135600760008a6001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460e01b8b60200135868d6060016020810190610d1f9190612678565b600019604051602401610d359493929190612c52565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051610d739190612951565b60006040518083038185875af1925050503d8060008114610db0576040519150601f19603f3d011682016040523d82523d6000602084013e610db5565b606091505b5050905080610dd65760405162461bcd60e51b815260040161043c90612a70565b50610e58565b6001600160a01b03861663b6f9de95893560208b013585610e0360808e0160608f01612678565b6000196040518663ffffffff1660e01b8152600401610e259493929190612c52565b6000604051808303818588803b158015610e3e57600080fd5b505af1158015610e52573d6000803e3d6000fd5b50505050505b6110c0565b6001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415611043576001600160a01b03861660009081526008602052604090205460e01b6001600160e01b03191615610fc2576000866001600160a01b031660086000896001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460e01b8a600001358b60200135868d6060016020810190610f0a9190612678565b600019604051602401610f21959493929190612c95565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051610f5f9190612951565b6000604051808303816000865af19150503d8060008114610f9c576040519150601f19603f3d011682016040523d82523d6000602084013e610fa1565b606091505b5050905080610dd65760405162461bcd60e51b815260040161043c90612b15565b6001600160a01b03861663791ac947893560208b013585610fe960808e0160608f01612678565b6000196040518663ffffffff1660e01b815260040161100c959493929190612c95565b600060405180830381600087803b15801561102657600080fd5b505af115801561103a573d6000803e3d6000fd5b505050506110c0565b6001600160a01b038616635c11d795893560208b01358561106a60808e0160608f01612678565b6000196040518663ffffffff1660e01b815260040161108d959493929190612c95565b600060405180830381600087803b1580156110a757600080fd5b505af11580156110bb573d6000803e3d6000fd5b505050505b6110de816110d885610c6b60808d0160608e01612678565b90611bde565b98975050505050505050565b6000546001600160a01b03163314611136576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b038116611191576040805162461bcd60e51b815260206004820152600b60248201527f6e65772061646d696e2030000000000000000000000000000000000000000000604482015290519081900360640190fd5b604080516001600160a01b038316815290517f3b81caf78fa51ecbc8acb482fd7012a277b428d9b80f9d156e8a54107496cc409181900360200190a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b0316331461124e576040805162461bcd60e51b815260206004820152600b60248201527f6e6f742070656e64696e67000000000000000000000000000000000000000000604482015290519081900360640190fd5b600154600054604080516001600160a01b03938416815292909116602083015280517f65da1cfc2c2e81576ad96afb24a581f8e109b7a403b35cbd3243a1c99efdb9ed9281900390910190a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6000546001600160a01b0316331461130d576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b038116611368576040805162461bcd60e51b815260206004820152600760248201527f61646d696e203000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b604080516001600160a01b038316815290517f3b81caf78fa51ecbc8acb482fd7012a277b428d9b80f9d156e8a54107496cc409181900360200190a1600054604080516001600160a01b038085168252909216602083015280517f65da1cfc2c2e81576ad96afb24a581f8e109b7a403b35cbd3243a1c99efdb9ed9281900390910190a1600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461145a576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6040516000906001600160a01b0383169084908381818185875af1925050503d80600081146114a5576040519150601f19603f3d011682016040523d82523d6000602084013e6114aa565b606091505b5050905080611500576040805162461bcd60e51b815260206004820152600f60248201527f7769746864726177206661696c65640000000000000000000000000000000000604482015290519081900360640190fd5b604080518481526001600160a01b038416602082015281517fec47e7ed86c86774d1a72c19f35c639911393fe7c1a34031fdbd260890da90de929181900390910190a1505050565b6000546001600160a01b03163314611594576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b60005b8281101561160d5781156115d7576115d18484838181106115b457fe5b90506020020160208101906115c99190612678565b600490611864565b50611605565b6116038484838181106115e657fe5b90506020020160208101906115fb9190612678565b600490611c3b565b505b600101611597565b507f56f34eb6bd4451b93fcc586e59d7ca42dba8fdb9fc157152eb3b4d0cf190b2c2838383604051611641939291906129cb565b60405180910390a1505050565b6006546001600160a01b031681565b60035460009081906001600160a01b0316331461168c5760405162461bcd60e51b815260040161043c90612bba565b600061169e6104576060860186612d18565b905060006001600160a01b03821663d06ca61f86356116c06020890189612cd1565b6040518463ffffffff1660e01b81526004016116de93929190612bfa565b60006040518083038186803b1580156116f657600080fd5b505afa15801561170a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117329190810190612778565b90508060016117446020880188612cd1565b9050038151811061175157fe5b602002602001015193506105c7856000013585846001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561054b57600080fd5b60076020526000908152604090205460e01b81565b6000546001600160a01b031633146117fe576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b039092166000908152600760209081526040808320805460e095861c63ffffffff1991821617909155600890925290912080549390921c9216919091179055565b6003546001600160a01b031681565b6000546001600160a01b031681565b6000611879836001600160a01b038416611c50565b90505b92915050565b6000601482146118a45760405162461bcd60e51b815260040161043c90612b83565b6118e8600084848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293925050611c9a9050565b90506001600160a01b0381166119105760405162461bcd60e51b815260040161043c90612aa7565b61191b600482611d66565b61187c5760405162461bcd60e51b815260040161043c90612ade565b600084815b60018451038110156119b25760008061197f8787858151811061195b57fe5b602002602001015188866001018151811061197257fe5b6020026020010151611d7b565b90925090506119a661199f6103e8611999876103e5611e49565b90611ea2565b8383611f09565b9350505060010161193c565b508481116119c357600091506119e0565b6119dd816119996127106119d7838a611bde565b90611e49565b91505b50949350505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a3b908490611faf565b505050565b6000611a4b82612060565b90505b919050565b60006118798383612064565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14801590611b075750604051636eb1769f60e11b81526001600160a01b0382169063dd62ed3e90611ab5903090869060040161299e565b60206040518083038186803b158015611acd57600080fd5b505afa158015611ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0591906128c7565b155b15611b2257611b226001600160a01b038216836000196120c8565b5050565b60006001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415611b5e57506001600160a01b0381163161187c565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611bab57600080fd5b505afa158015611bbf573d6000803e3d6000fd5b505050506040513d6020811015611bd557600080fd5b5051905061187c565b600082821115611c35576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000611879836001600160a01b0384166121db565b6000611c5c83836122a1565b611c925750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561187c565b50600061187c565b600081826014011015611cf4576040805162461bcd60e51b815260206004820152601260248201527f746f416464726573735f6f766572666c6f770000000000000000000000000000604482015290519081900360640190fd5b8160140183511015611d4d576040805162461bcd60e51b815260206004820152601560248201527f746f416464726573735f6f75744f66426f756e64730000000000000000000000604482015290519081900360640190fd5b5001602001516c01000000000000000000000000900490565b6000611879836001600160a01b0384166122a1565b6000806000611d8a85856122b9565b509050600080611d9b888888612397565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611dd357600080fd5b505afa158015611de7573d6000803e3d6000fd5b505050506040513d6060811015611dfd57600080fd5b5080516020909101516dffffffffffffffffffffffffffff91821693501690506001600160a01b0387811690841614611e37578082611e3a565b81815b90999098509650505050505050565b600082611e585750600061187c565b82820282848281611e6557fe5b04146118795760405162461bcd60e51b8152600401808060200182810382526021815260200180612e0b6021913960400191505060405180910390fd5b6000808211611ef8576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611f0157fe5b049392505050565b6000808411611f495760405162461bcd60e51b8152600401808060200182810382526025815260200180612e2c6025913960400191505060405180910390fd5b600083118015611f595750600082115b611f945760405162461bcd60e51b8152600401808060200182810382526028815260200180612de36028913960400191505060405180910390fd5b82611f9f8584611e49565b81611fa657fe5b04949350505050565b6000612004826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661242d9092919063ffffffff16565b805190915015611a3b5780806020019051602081101561202357600080fd5b5051611a3b5760405162461bcd60e51b815260040180806020018281038252602a815260200180612e51602a913960400191505060405180910390fd5b5490565b815460009082106120a65760405162461bcd60e51b8152600401808060200182810382526022815260200180612d766022913960400191505060405180910390fd5b8260000182815481106120b557fe5b9060005260206000200154905092915050565b80158061214e575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561212057600080fd5b505afa158015612134573d6000803e3d6000fd5b505050506040513d602081101561214a57600080fd5b5051155b6121895760405162461bcd60e51b8152600401808060200182810382526036815260200180612e7b6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611a3b908490611faf565b60008181526001830160205260408120548015612297578354600019808301919081019060009087908390811061220e57fe5b906000526020600020015490508087600001848154811061222b57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061225b57fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061187c565b600091505061187c565b60009081526001919091016020526040902054151590565b600080826001600160a01b0316846001600160a01b0316141561230d5760405162461bcd60e51b8152600401808060200182810382526025815260200180612d986025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b03161061232d578284612330565b83835b90925090506001600160a01b038216612390576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b6000836001600160a01b031663e6a4390584846040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156123f757600080fd5b505afa15801561240b573d6000803e3d6000fd5b505050506040513d602081101561242157600080fd5b505190505b9392505050565b606061243c8484600085612444565b949350505050565b6060824710156124855760405162461bcd60e51b8152600401808060200182810382526026815260200180612dbd6026913960400191505060405180910390fd5b61248e8561259f565b6124df576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b6020831061251d5780518252601f1990920191602091820191016124fe565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461257f576040519150601f19603f3d011682016040523d82523d6000602084013e612584565b606091505b50915091506125948282866125a5565b979650505050505050565b3b151590565b606083156125b4575081612426565b8251156125c45782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561260e5781810151838201526020016125f6565b50505050905090810190601f16801561263b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b80356001600160e01b031981168114611a4e57600080fd5b600060808284031215612672578081fd5b50919050565b600060208284031215612689578081fd5b813561187981612d5d565b6000602082840312156126a5578081fd5b815161187981612d5d565b6000806000606084860312156126c4578182fd5b83356126cf81612d5d565b92506126dd60208501612649565b91506126eb60408501612649565b90509250925092565b600080600060408486031215612708578283fd5b833567ffffffffffffffff8082111561271f578485fd5b818601915086601f830112612732578485fd5b813581811115612740578586fd5b8760208083028501011115612753578586fd5b60209283019550935050840135801515811461276d578182fd5b809150509250925092565b6000602080838503121561278a578182fd5b825167ffffffffffffffff808211156127a1578384fd5b818501915085601f8301126127b4578384fd5b8151818111156127c057fe5b838102604051858282010181811085821117156127d957fe5b604052828152858101935084860182860187018a10156127f7578788fd5b8795505b838610156128195780518552600195909501949386019386016127fb565b5098975050505050505050565b60008060006060848603121561283a578283fd5b833561284581612d5d565b925060208401359150604084013561276d81612d5d565b60006020828403121561286d578081fd5b813567ffffffffffffffff811115612883578182fd5b61243c84828501612661565b6000602082840312156128a0578081fd5b813567ffffffffffffffff8111156128b6578182fd5b820160e08185031215611879578182fd5b6000602082840312156128d8578081fd5b5051919050565b600080604083850312156128f1578182fd5b82359150602083013561290381612d5d565b809150509250929050565b6000815180845260208085019450808401835b838110156129465781516001600160a01b031687529582019590820190600101612921565b509495945050505050565b60008251815b818110156129715760208186018101518583015201612957565b8181111561297f5782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b600060208252611879602083018461290e565b6040808252810183905260008460608301825b86811015612a0e5782356129f181612d5d565b6001600160a01b03168252602092830192909101906001016129de565b5080925050508215156020830152949350505050565b6001600160e01b031991909116815260200190565b60208082526011908201527f696e76616c6964207377617020696d706c000000000000000000000000000000604082015260600190565b60208082526013908201527f7377617046726f6d4574683a206661696c656400000000000000000000000000604082015260600190565b6020808252600f908201527f696e76616c696420616464726573730000000000000000000000000000000000604082015260600190565b60208082526012908201527f756e737570706f7274656420726f757465720000000000000000000000000000604082015260600190565b60208082526011908201527f73776170546f4574683a206661696c6564000000000000000000000000000000604082015260600190565b60208082526011908201527f696e76616c696420747261646550617468000000000000000000000000000000604082015260600190565b6020808252600c908201527f696e76616c696420617267730000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f6f6e6c79207377617020696d706c000000000000000000000000000000000000604082015260600190565b90815260200190565b83815260406020808301829052908201839052600090849060608401835b86811015612c46578335612c2b81612d5d565b6001600160a01b031682529282019290820190600101612c18565b50979650505050505050565b600085825260806020830152612c6b608083018661290e565b6001600160a01b03949094166040830152506060015292915050565b918252602082015260400190565b600086825285602083015260a06040830152612cb460a083018661290e565b6001600160a01b0394909416606083015250608001529392505050565b6000808335601e19843603018112612ce7578283fd5b83018035915067ffffffffffffffff821115612d01578283fd5b602090810192508102360382131561239057600080fd5b6000808335601e19843603018112612d2e578182fd5b83018035915067ffffffffffffffff821115612d48578283fd5b60200191503681900382131561239057600080fd5b6001600160a01b0381168114612d7257600080fd5b5056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e545361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a164736f6c6343000706000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a3e78ab6f120c730d6f3939c0dc6dcd0e3da72780000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000020000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f
-----Decoded View---------------
Arg [0] : _admin (address): 0xa3e78aB6f120C730D6F3939c0Dc6dcD0E3da7278
Arg [1] : routers (address[]): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D,0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F
Arg [2] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000a3e78ab6f120c730d6f3939c0dc6dcd0e3da7278
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [4] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [5] : 000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9fLoading...LoadingLoading...Loading
Loading...Loading
Loading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingMultichain Portfolio | 26 Chains
Chain Token Portfolio % Price Amount Value Loading...Loading[ 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), ABIDecodeTwoDimensionalArrayMemory (very low-severity), KeccakCaching (medium-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.Address Cards
To use this feature, please login to your Etherscan account and return to this page.Before You Copy
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.