Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 9,919 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Remove Liquidity... | 20792249 | 67 days ago | IN | 0 ETH | 0.00647698 | ||||
Swap ETH For Exa... | 19846279 | 199 days ago | IN | 0.001 ETH | 0.00052265 | ||||
Swap Exact Token... | 19500364 | 248 days ago | IN | 0 ETH | 0.00271467 | ||||
Swap Exact Token... | 19500284 | 248 days ago | IN | 0 ETH | 0.00295691 | ||||
Swap ETH For Exa... | 19500262 | 248 days ago | IN | 0.00303248 ETH | 0.00344142 | ||||
Swap Exact Token... | 19499469 | 248 days ago | IN | 0 ETH | 0.00373733 | ||||
Swap Exact ETH F... | 19499412 | 248 days ago | IN | 0.0005 ETH | 0.00327599 | ||||
Swap Exact ETH F... | 19499070 | 248 days ago | IN | 0.0001 ETH | 0.00246881 | ||||
Swap Exact ETH F... | 19498958 | 248 days ago | IN | 0.0000001 ETH | 0.00260704 | ||||
Swap Exact ETH F... | 19497552 | 248 days ago | IN | 0.079 ETH | 0.0029613 | ||||
Swap Exact Token... | 19492243 | 249 days ago | IN | 0 ETH | 0.00329417 | ||||
Swap Exact Token... | 19492221 | 249 days ago | IN | 0 ETH | 0.0035678 | ||||
Swap ETH For Exa... | 19491371 | 249 days ago | IN | 0.00120526 ETH | 0.00442556 | ||||
Swap Exact Token... | 19468557 | 252 days ago | IN | 0 ETH | 0.00599893 | ||||
Swap Exact Token... | 19446192 | 255 days ago | IN | 0 ETH | 0.00459019 | ||||
Swap Exact Token... | 19445512 | 255 days ago | IN | 0 ETH | 0.00381642 | ||||
Swap Exact Token... | 19443392 | 256 days ago | IN | 0 ETH | 0.00447354 | ||||
Swap Exact Token... | 19436183 | 257 days ago | IN | 0 ETH | 0.00616652 | ||||
Remove Liquidity... | 19434921 | 257 days ago | IN | 0 ETH | 0.01337483 | ||||
Swap ETH For Exa... | 19433006 | 257 days ago | IN | 0.02850506 ETH | 0.00647863 | ||||
Swap Exact Token... | 19432219 | 257 days ago | IN | 0 ETH | 0.00748377 | ||||
Swap Exact Token... | 19427415 | 258 days ago | IN | 0 ETH | 0.01083304 | ||||
Swap ETH For Exa... | 19419748 | 259 days ago | IN | 0.0544223 ETH | 0.01056937 | ||||
Swap Exact Token... | 19414311 | 260 days ago | IN | 0 ETH | 0.0095098 | ||||
Swap Exact Token... | 19408376 | 261 days ago | IN | 0 ETH | 0.0068516 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
19846279 | 199 days ago | 0.001 ETH | ||||
19500262 | 248 days ago | 0.00282923 ETH | ||||
19500262 | 248 days ago | 0.00020324 ETH | ||||
19499412 | 248 days ago | 0.0005 ETH | ||||
19499070 | 248 days ago | 0.0001 ETH | ||||
19498958 | 248 days ago | 0.0000001 ETH | ||||
19497552 | 248 days ago | 0.079 ETH | ||||
19491371 | 249 days ago | 0.00000599 ETH | ||||
19491371 | 249 days ago | 0.00119926 ETH | ||||
19446192 | 255 days ago | 0.16174542 ETH | ||||
19446192 | 255 days ago | 0.16174542 ETH | ||||
19434921 | 257 days ago | 0.09837982 ETH | ||||
19434921 | 257 days ago | 0.09837982 ETH | ||||
19433006 | 257 days ago | 0.00014181 ETH | ||||
19433006 | 257 days ago | 0.02836324 ETH | ||||
19432219 | 257 days ago | 0.058211 ETH | ||||
19432219 | 257 days ago | 0.058211 ETH | ||||
19427415 | 258 days ago | 0.14066566 ETH | ||||
19427415 | 258 days ago | 0.14066566 ETH | ||||
19419748 | 259 days ago | 0.00027075 ETH | ||||
19419748 | 259 days ago | 0.05415154 ETH | ||||
19408270 | 261 days ago | 0.13181509 ETH | ||||
19408270 | 261 days ago | 0.13181509 ETH | ||||
19408086 | 261 days ago | 0.12827203 ETH | ||||
19408086 | 261 days ago | 0.12827203 ETH |
Loading...
Loading
Contract Name:
UniswapV2Router02
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* * Capital DEX * * Copyright ©️ 2020 Curio AG (Company Number FL-0002.594.728-9) * Incorporated and registered in Liechtenstein. * * Copyright ©️ 2020 Curio Capital AG (Company Number CHE-211.446.654) * Incorporated and registered in Zug, Switzerland. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Source https://github.com/Uniswap/uniswap-v2-core * Subject to the GPL-3.0 license. */ // SPDX-License-Identifier: GPL-3.0 pragma solidity =0.6.12; import './libraries/UniswapV2Library.sol'; import './libraries/SafeMath.sol'; import './libraries/TransferHelper.sol'; import './interfaces/IUniswapV2Router02.sol'; import './interfaces/IUniswapV2Factory.sol'; import './interfaces/IERC20.sol'; import './interfaces/IWETH.sol'; import '../interfaces/IDexWhitelist.sol'; contract UniswapV2Router02 is IUniswapV2Router02 { using SafeMathUniswap for uint; address public immutable override factory; address public immutable override WETH; modifier ensure(uint deadline) { require(deadline >= block.timestamp, 'UniswapV2Router: EXPIRED'); _; } // XXX: only liquidity whitelisted modifier onlyLiquidityWhitelisted() { address whitelist = IUniswapV2Factory(factory).whitelist(); if (whitelist != address(0)) { require(IDexWhitelist(whitelist).isLiquidityAddressActive(msg.sender), 'UniswapV2Router: WL PERMISSION DENIED'); } _; } // XXX: only swap whitelisted modifier onlySwapWhitelisted() { address whitelist = IUniswapV2Factory(factory).whitelist(); if (whitelist != address(0)) { require(IDexWhitelist(whitelist).isSwapAddressActive(msg.sender), 'UniswapV2Router: WL PERMISSION DENIED'); } _; } // XXX: only tokens whitelisted function tokensWhitelisted(address tokenA, address tokenB) internal view returns(bool) { address whitelist = IUniswapV2Factory(factory).whitelist(); if (whitelist != address(0)) { return IDexWhitelist(whitelist).isTokenAddressActive(tokenA) && IDexWhitelist(whitelist).isTokenAddressActive(tokenB); } return true; } modifier onlyTokensWhitelisted(address tokenA, address tokenB) { require(tokensWhitelisted(tokenA, tokenB), 'UniswapV2Router: Tokens is not whitelisted'); _; } constructor(address _factory, address _WETH) public { factory = _factory; WETH = _WETH; } receive() external payable { assert(msg.sender == WETH); // only accept ETH via fallback from the WETH contract } // **** ADD LIQUIDITY **** // XXX: added liquidity and token whitelists check function _addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin ) internal virtual onlyLiquidityWhitelisted onlyTokensWhitelisted(tokenA, tokenB) returns (uint amountA, uint amountB) { // create the pair if it doesn't exist yet if (IUniswapV2Factory(factory).getPair(tokenA, tokenB) == address(0)) { IUniswapV2Factory(factory).createPair(tokenA, tokenB); } (uint reserveA, uint reserveB) = UniswapV2Library.getReserves(factory, tokenA, tokenB); if (reserveA == 0 && reserveB == 0) { (amountA, amountB) = (amountADesired, amountBDesired); } else { uint amountBOptimal = UniswapV2Library.quote(amountADesired, reserveA, reserveB); if (amountBOptimal <= amountBDesired) { require(amountBOptimal >= amountBMin, 'UniswapV2Router: INSUFFICIENT_B_AMOUNT'); (amountA, amountB) = (amountADesired, amountBOptimal); } else { uint amountAOptimal = UniswapV2Library.quote(amountBDesired, reserveB, reserveA); assert(amountAOptimal <= amountADesired); require(amountAOptimal >= amountAMin, 'UniswapV2Router: INSUFFICIENT_A_AMOUNT'); (amountA, amountB) = (amountAOptimal, amountBDesired); } } } function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external virtual override ensure(deadline) returns (uint amountA, uint amountB, uint liquidity) { (amountA, amountB) = _addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin); address pair = UniswapV2Library.pairFor(factory, tokenA, tokenB); TransferHelper.safeTransferFrom(tokenA, msg.sender, pair, amountA); TransferHelper.safeTransferFrom(tokenB, msg.sender, pair, amountB); liquidity = IUniswapV2Pair(pair).mint(to); } function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external virtual override payable ensure(deadline) returns (uint amountToken, uint amountETH, uint liquidity) { (amountToken, amountETH) = _addLiquidity( token, WETH, amountTokenDesired, msg.value, amountTokenMin, amountETHMin ); address pair = UniswapV2Library.pairFor(factory, token, WETH); TransferHelper.safeTransferFrom(token, msg.sender, pair, amountToken); IWETH(WETH).deposit{value: amountETH}(); assert(IWETH(WETH).transfer(pair, amountETH)); liquidity = IUniswapV2Pair(pair).mint(to); // refund dust eth, if any if (msg.value > amountETH) TransferHelper.safeTransferETH(msg.sender, msg.value - amountETH); } // **** REMOVE LIQUIDITY **** // XXX: added liquidity whitelist check function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) public virtual override ensure(deadline) onlyLiquidityWhitelisted returns (uint amountA, uint amountB) { address pair = UniswapV2Library.pairFor(factory, tokenA, tokenB); IUniswapV2Pair(pair).transferFrom(msg.sender, pair, liquidity); // send liquidity to pair (uint amount0, uint amount1) = IUniswapV2Pair(pair).burn(to); (address token0,) = UniswapV2Library.sortTokens(tokenA, tokenB); (amountA, amountB) = tokenA == token0 ? (amount0, amount1) : (amount1, amount0); require(amountA >= amountAMin, 'UniswapV2Router: INSUFFICIENT_A_AMOUNT'); require(amountB >= amountBMin, 'UniswapV2Router: INSUFFICIENT_B_AMOUNT'); } function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) public virtual override ensure(deadline) returns (uint amountToken, uint amountETH) { (amountToken, amountETH) = removeLiquidity( token, WETH, liquidity, amountTokenMin, amountETHMin, address(this), deadline ); TransferHelper.safeTransfer(token, to, amountToken); IWETH(WETH).withdraw(amountETH); TransferHelper.safeTransferETH(to, 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 virtual override returns (uint amountA, uint amountB) { address pair = UniswapV2Library.pairFor(factory, tokenA, tokenB); uint value = approveMax ? uint(-1) : liquidity; IUniswapV2Pair(pair).permit(msg.sender, address(this), value, deadline, v, r, s); (amountA, amountB) = removeLiquidity(tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline); } function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external virtual override returns (uint amountToken, uint amountETH) { address pair = UniswapV2Library.pairFor(factory, token, WETH); uint value = approveMax ? uint(-1) : liquidity; IUniswapV2Pair(pair).permit(msg.sender, address(this), value, deadline, v, r, s); (amountToken, amountETH) = removeLiquidityETH(token, liquidity, amountTokenMin, amountETHMin, to, deadline); } // **** REMOVE LIQUIDITY (supporting fee-on-transfer tokens) **** function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) public virtual override ensure(deadline) returns (uint amountETH) { (, amountETH) = removeLiquidity( token, WETH, liquidity, amountTokenMin, amountETHMin, address(this), deadline ); TransferHelper.safeTransfer(token, to, IERC20Uniswap(token).balanceOf(address(this))); IWETH(WETH).withdraw(amountETH); TransferHelper.safeTransferETH(to, amountETH); } function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external virtual override returns (uint amountETH) { address pair = UniswapV2Library.pairFor(factory, token, WETH); uint value = approveMax ? uint(-1) : liquidity; IUniswapV2Pair(pair).permit(msg.sender, address(this), value, deadline, v, r, s); amountETH = removeLiquidityETHSupportingFeeOnTransferTokens( token, liquidity, amountTokenMin, amountETHMin, to, deadline ); } // **** SWAP **** // requires the initial amount to have already been sent to the first pair // XXX: added swap whitelist check function _swap(uint[] memory amounts, address[] memory path, address _to) internal virtual onlySwapWhitelisted { for (uint i; i < path.length - 1; i++) { (address input, address output) = (path[i], path[i + 1]); require(tokensWhitelisted(input, output), 'UniswapV2Router: Tokens is not whitelisted'); // XXX: added token whitelist check (address token0,) = UniswapV2Library.sortTokens(input, output); uint amountOut = amounts[i + 1]; (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOut) : (amountOut, uint(0)); address to = i < path.length - 2 ? UniswapV2Library.pairFor(factory, output, path[i + 2]) : _to; IUniswapV2Pair(UniswapV2Library.pairFor(factory, input, output)).swap( amount0Out, amount1Out, to, new bytes(0) ); } } function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external virtual override ensure(deadline) returns (uint[] memory amounts) { amounts = UniswapV2Library.getAmountsOut(factory, amountIn, path); require(amounts[amounts.length - 1] >= amountOutMin, 'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT'); TransferHelper.safeTransferFrom( path[0], msg.sender, UniswapV2Library.pairFor(factory, path[0], path[1]), amounts[0] ); _swap(amounts, path, to); } function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external virtual override ensure(deadline) returns (uint[] memory amounts) { amounts = UniswapV2Library.getAmountsIn(factory, amountOut, path); require(amounts[0] <= amountInMax, 'UniswapV2Router: EXCESSIVE_INPUT_AMOUNT'); TransferHelper.safeTransferFrom( path[0], msg.sender, UniswapV2Library.pairFor(factory, path[0], path[1]), amounts[0] ); _swap(amounts, path, to); } function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external virtual override payable ensure(deadline) returns (uint[] memory amounts) { require(path[0] == WETH, 'UniswapV2Router: INVALID_PATH'); amounts = UniswapV2Library.getAmountsOut(factory, msg.value, path); require(amounts[amounts.length - 1] >= amountOutMin, 'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT'); IWETH(WETH).deposit{value: amounts[0]}(); assert(IWETH(WETH).transfer(UniswapV2Library.pairFor(factory, path[0], path[1]), amounts[0])); _swap(amounts, path, to); } function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external virtual override ensure(deadline) returns (uint[] memory amounts) { require(path[path.length - 1] == WETH, 'UniswapV2Router: INVALID_PATH'); amounts = UniswapV2Library.getAmountsIn(factory, amountOut, path); require(amounts[0] <= amountInMax, 'UniswapV2Router: EXCESSIVE_INPUT_AMOUNT'); TransferHelper.safeTransferFrom( path[0], msg.sender, UniswapV2Library.pairFor(factory, path[0], path[1]), amounts[0] ); _swap(amounts, path, address(this)); IWETH(WETH).withdraw(amounts[amounts.length - 1]); TransferHelper.safeTransferETH(to, amounts[amounts.length - 1]); } function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external virtual override ensure(deadline) returns (uint[] memory amounts) { require(path[path.length - 1] == WETH, 'UniswapV2Router: INVALID_PATH'); amounts = UniswapV2Library.getAmountsOut(factory, amountIn, path); require(amounts[amounts.length - 1] >= amountOutMin, 'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT'); TransferHelper.safeTransferFrom( path[0], msg.sender, UniswapV2Library.pairFor(factory, path[0], path[1]), amounts[0] ); _swap(amounts, path, address(this)); IWETH(WETH).withdraw(amounts[amounts.length - 1]); TransferHelper.safeTransferETH(to, amounts[amounts.length - 1]); } function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external virtual override payable ensure(deadline) returns (uint[] memory amounts) { require(path[0] == WETH, 'UniswapV2Router: INVALID_PATH'); amounts = UniswapV2Library.getAmountsIn(factory, amountOut, path); require(amounts[0] <= msg.value, 'UniswapV2Router: EXCESSIVE_INPUT_AMOUNT'); IWETH(WETH).deposit{value: amounts[0]}(); assert(IWETH(WETH).transfer(UniswapV2Library.pairFor(factory, path[0], path[1]), amounts[0])); _swap(amounts, path, to); // refund dust eth, if any if (msg.value > amounts[0]) TransferHelper.safeTransferETH(msg.sender, msg.value - amounts[0]); } // **** SWAP (supporting fee-on-transfer tokens) **** // requires the initial amount to have already been sent to the first pair // XXX: added swap whitelist check function _swapSupportingFeeOnTransferTokens(address[] memory path, address _to) internal virtual onlySwapWhitelisted { for (uint i; i < path.length - 1; i++) { (address input, address output) = (path[i], path[i + 1]); require(tokensWhitelisted(input, output), 'UniswapV2Router: Tokens is not whitelisted'); // XXX: added token whitelist check (address token0,) = UniswapV2Library.sortTokens(input, output); IUniswapV2Pair pair = IUniswapV2Pair(UniswapV2Library.pairFor(factory, input, output)); uint amountInput; uint amountOutput; { // scope to avoid stack too deep errors (uint reserve0, uint reserve1,) = pair.getReserves(); (uint reserveInput, uint reserveOutput) = input == token0 ? (reserve0, reserve1) : (reserve1, reserve0); amountInput = IERC20Uniswap(input).balanceOf(address(pair)).sub(reserveInput); amountOutput = UniswapV2Library.getAmountOut(amountInput, reserveInput, reserveOutput); } (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOutput) : (amountOutput, uint(0)); address to = i < path.length - 2 ? UniswapV2Library.pairFor(factory, output, path[i + 2]) : _to; pair.swap(amount0Out, amount1Out, to, new bytes(0)); } } function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external virtual override ensure(deadline) { TransferHelper.safeTransferFrom( path[0], msg.sender, UniswapV2Library.pairFor(factory, path[0], path[1]), amountIn ); uint balanceBefore = IERC20Uniswap(path[path.length - 1]).balanceOf(to); _swapSupportingFeeOnTransferTokens(path, to); require( IERC20Uniswap(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin, 'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT' ); } function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external virtual override payable ensure(deadline) { require(path[0] == WETH, 'UniswapV2Router: INVALID_PATH'); uint amountIn = msg.value; IWETH(WETH).deposit{value: amountIn}(); assert(IWETH(WETH).transfer(UniswapV2Library.pairFor(factory, path[0], path[1]), amountIn)); uint balanceBefore = IERC20Uniswap(path[path.length - 1]).balanceOf(to); _swapSupportingFeeOnTransferTokens(path, to); require( IERC20Uniswap(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin, 'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT' ); } function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external virtual override ensure(deadline) { require(path[path.length - 1] == WETH, 'UniswapV2Router: INVALID_PATH'); TransferHelper.safeTransferFrom( path[0], msg.sender, UniswapV2Library.pairFor(factory, path[0], path[1]), amountIn ); _swapSupportingFeeOnTransferTokens(path, address(this)); uint amountOut = IERC20Uniswap(WETH).balanceOf(address(this)); require(amountOut >= amountOutMin, 'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT'); IWETH(WETH).withdraw(amountOut); TransferHelper.safeTransferETH(to, amountOut); } // **** LIBRARY FUNCTIONS **** function quote(uint amountA, uint reserveA, uint reserveB) public pure virtual override returns (uint amountB) { return UniswapV2Library.quote(amountA, reserveA, reserveB); } function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) public pure virtual override returns (uint amountOut) { return UniswapV2Library.getAmountOut(amountIn, reserveIn, reserveOut); } function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) public pure virtual override returns (uint amountIn) { return UniswapV2Library.getAmountIn(amountOut, reserveIn, reserveOut); } function getAmountsOut(uint amountIn, address[] memory path) public view virtual override returns (uint[] memory amounts) { return UniswapV2Library.getAmountsOut(factory, amountIn, path); } function getAmountsIn(uint amountOut, address[] memory path) public view virtual override returns (uint[] memory amounts) { return UniswapV2Library.getAmountsIn(factory, amountOut, path); } }
/* * Capital DEX * * Copyright ©️ 2020 Curio AG (Company Number FL-0002.594.728-9) * Incorporated and registered in Liechtenstein. * * Copyright ©️ 2020 Curio Capital AG (Company Number CHE-211.446.654) * Incorporated and registered in Zug, Switzerland. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.6.0; /** * @dev Interface of DexWhitelist contract. */ interface IDexWhitelist { function isInvestorAddressActive(address _addr) external view returns (bool); /// @dev Returns success if address is in investor WL or liquidity WL is not active function isLiquidityAddressActive(address _addr) external view returns (bool); /// @dev Returns success if address is in investor WL or swap WL is not active function isSwapAddressActive(address _addr) external view returns (bool); /// @dev Returns success if address is in investor WL or swap WL is not active function isFarmAddressActive(address _addr) external view returns (bool); /// @dev Returns success if address is in token WL or token WL is not active function isTokenAddressActive(address _addr) external view returns (bool); }
/* * Capital DEX * * Copyright ©️ 2020 Curio AG (Company Number FL-0002.594.728-9) * Incorporated and registered in Liechtenstein. * * Copyright ©️ 2020 Curio Capital AG (Company Number CHE-211.446.654) * Incorporated and registered in Zug, Switzerland. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Source https://github.com/Uniswap/uniswap-v2-core * Subject to the GPL-3.0 license. */ // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.5.0; interface IERC20Uniswap { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view 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); }
/* * Capital DEX * * Copyright ©️ 2020 Curio AG (Company Number FL-0002.594.728-9) * Incorporated and registered in Liechtenstein. * * Copyright ©️ 2020 Curio Capital AG (Company Number CHE-211.446.654) * Incorporated and registered in Zug, Switzerland. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Source https://github.com/Uniswap/uniswap-v2-core * Subject to the GPL-3.0 license. */ // SPDX-License-Identifier: GPL-3.0 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 owner() external view returns (address); function whitelist() external view returns (address); function fee() external view returns (uint); function feeInfo() external view returns (address feeToAddress, uint feeShare); 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 isRouter(address router) external view returns (bool); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setOwner(address) external; function setFee(uint) external; function setRouterPermission(address router, bool permission) external; function setWhitelist(address) external; }
/* * Capital DEX * * Copyright ©️ 2020 Curio AG (Company Number FL-0002.594.728-9) * Incorporated and registered in Liechtenstein. * * Copyright ©️ 2020 Curio Capital AG (Company Number CHE-211.446.654) * Incorporated and registered in Zug, Switzerland. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Source https://github.com/Uniswap/uniswap-v2-core * Subject to the GPL-3.0 license. */ // SPDX-License-Identifier: GPL-3.0 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; }
/* * Capital DEX * * Copyright ©️ 2020 Curio AG (Company Number FL-0002.594.728-9) * Incorporated and registered in Liechtenstein. * * Copyright ©️ 2020 Curio Capital AG (Company Number CHE-211.446.654) * Incorporated and registered in Zug, Switzerland. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Source https://github.com/Uniswap/uniswap-v2-core * Subject to the GPL-3.0 license. */ // SPDX-License-Identifier: GPL-3.0 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); }
/* * Capital DEX * * Copyright ©️ 2020 Curio AG (Company Number FL-0002.594.728-9) * Incorporated and registered in Liechtenstein. * * Copyright ©️ 2020 Curio Capital AG (Company Number CHE-211.446.654) * Incorporated and registered in Zug, Switzerland. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Source https://github.com/Uniswap/uniswap-v2-core * Subject to the GPL-3.0 license. */ // SPDX-License-Identifier: GPL-3.0 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; }
/* * Capital DEX * * Copyright ©️ 2020 Curio AG (Company Number FL-0002.594.728-9) * Incorporated and registered in Liechtenstein. * * Copyright ©️ 2020 Curio Capital AG (Company Number CHE-211.446.654) * Incorporated and registered in Zug, Switzerland. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Source https://github.com/Uniswap/uniswap-v2-core * Subject to the GPL-3.0 license. */ // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.5.0; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; }
/* * Capital DEX * * Copyright ©️ 2020 Curio AG (Company Number FL-0002.594.728-9) * Incorporated and registered in Liechtenstein. * * Copyright ©️ 2020 Curio Capital AG (Company Number CHE-211.446.654) * Incorporated and registered in Zug, Switzerland. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Source https://github.com/Uniswap/uniswap-v2-core * Subject to the GPL-3.0 license. */ // SPDX-License-Identifier: GPL-3.0 pragma solidity =0.6.12; // a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math) library SafeMathUniswap { function add(uint x, uint y) internal pure returns (uint z) { require((z = x + y) >= x, 'ds-math-add-overflow'); } function sub(uint x, uint y) internal pure returns (uint z) { require((z = x - y) <= x, 'ds-math-sub-underflow'); } function mul(uint x, uint y) internal pure returns (uint z) { require(y == 0 || (z = x * y) / y == x, 'ds-math-mul-overflow'); } uint constant WAD = 10 ** 18; //rounds to zero if x*y < WAD / 2 function wmul(uint x, uint y) internal pure returns (uint z) { z = add(mul(x, y), WAD / 2) / WAD; } }
/* * Capital DEX * * Copyright ©️ 2020 Curio AG (Company Number FL-0002.594.728-9) * Incorporated and registered in Liechtenstein. * * Copyright ©️ 2020 Curio Capital AG (Company Number CHE-211.446.654) * Incorporated and registered in Zug, Switzerland. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Source https://github.com/Uniswap/uniswap-v2-core * Subject to the GPL-3.0 license. */ // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.6.0; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove(address token, address to, uint value) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED'); } function safeTransfer(address token, address to, uint value) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED'); } function safeTransferFrom(address token, address from, address to, uint value) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED'); } function safeTransferETH(address to, uint value) internal { (bool success,) = to.call{value:value}(new bytes(0)); require(success, 'TransferHelper: ETH_TRANSFER_FAILED'); } }
/* * Capital DEX * * Copyright ©️ 2020 Curio AG (Company Number FL-0002.594.728-9) * Incorporated and registered in Liechtenstein. * * Copyright ©️ 2020 Curio Capital AG (Company Number CHE-211.446.654) * Incorporated and registered in Zug, Switzerland. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Source https://github.com/Uniswap/uniswap-v2-core * Subject to the GPL-3.0 license. */ // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.5.0; import '../interfaces/IUniswapV2Pair.sol'; import "./SafeMath.sol"; library UniswapV2Library { using SafeMathUniswap for uint; // 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 pure returns (address pair) { (address token0, address token1) = sortTokens(tokenA, tokenB); pair = address(uint(keccak256(abi.encodePacked( hex'ff', factory, keccak256(abi.encodePacked(token0, token1)), hex'068929976e9b11179f781aadb37dc33b6fc0d30a27419125438dab4d4d11418b' // init code hash )))); } // fetches and sorts the reserves for a pair function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) { (address token0,) = sortTokens(tokenA, tokenB); (uint reserve0, uint 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(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint 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(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) { require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint amountInWithFee = amountIn.mul(997); uint numerator = amountInWithFee.mul(reserveOut); uint 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(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) { require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint numerator = reserveIn.mul(amountOut).mul(1000); uint denominator = reserveOut.sub(amountOut).mul(997); amountIn = (numerator / denominator).add(1); } // performs chained getAmountOut calculations on any number of pairs function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[0] = amountIn; for (uint i; i < path.length - 1; i++) { (uint reserveIn, uint 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, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[amounts.length - 1] = amountOut; for (uint i = path.length - 1; i > 0; i--) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]); amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut); } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WETH","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"amountADesired","type":"uint256"},{"internalType":"uint256","name":"amountBDesired","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountTokenDesired","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountIn","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsIn","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"reserveA","type":"uint256"},{"internalType":"uint256","name":"reserveB","type":"uint256"}],"name":"quote","outputs":[{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETHSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityETHWithPermit","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityWithPermit","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapETHForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETH","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETHSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForExactETH","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c060405234801561001057600080fd5b5060405162004ec738038062004ec78339818101604052604081101561003557600080fd5b5080516020909101516001600160601b0319606092831b8116608052911b1660a05260805160601c60a05160601c614d296200019e6000398061015f5280610ce45280610d1f5280610e16528061103452806113be528061152452806118d352806119ae5280611a885280611b565280611c9c5280611d245280611f605280611fdb528061208f528061215b52806121f05280612264528061288d5280612af75280612b4d5280612b815280612bf55280612d835280612ec65280612f4e525080610ea45280610f7b52806110fa5280611133528061126e528061144c528061150252806116725280611be95280611d565280611eb0528061229652806124d152806126195280612812528061283b528061286b52806129d85280612b2b5280612e165280612f80528061375b528061399052806139d35280613c545280613e315280613fa75280614395528061454a52806145cd528061468052806149165250614d296000f3fe60806040526004361061014f5760003560e01c80638803dbee116100b6578063c45a01551161006f578063c45a015514610a10578063d06ca61f14610a25578063ded9382a14610ada578063e8e3370014610b4d578063f305d71914610bcd578063fb3bdb4114610c1357610188565b80638803dbee146107df578063ad5c464814610875578063ad615dec146108a6578063af2979eb146108dc578063b6f9de951461092f578063baa2abde146109b357610188565b80634a25d94a116101085780634a25d94a146104f05780635b0d5984146105865780635c11d795146105f9578063791ac9471461068f5780637ff36ab51461072557806385f8c259146107a957610188565b806302751cec1461018d578063054d50d4146101f957806318cbafe5146102415780631f00ca74146103275780632195995c146103dc57806338ed17391461045a57610188565b3661018857336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461018657fe5b005b600080fd5b34801561019957600080fd5b506101e0600480360360c08110156101b057600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135610c97565b6040805192835260208301919091528051918290030190f35b34801561020557600080fd5b5061022f6004803603606081101561021c57600080fd5b5080359060208101359060400135610db1565b60408051918252519081900360200190f35b34801561024d57600080fd5b506102d7600480360360a081101561026457600080fd5b813591602081013591810190606081016040820135600160201b81111561028a57600080fd5b82018360208201111561029c57600080fd5b803590602001918460208302840111600160201b831117156102bd57600080fd5b91935091506001600160a01b038135169060200135610dc6565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156103135781810151838201526020016102fb565b505050509050019250505060405180910390f35b34801561033357600080fd5b506102d76004803603604081101561034a57600080fd5b81359190810190604081016020820135600160201b81111561036b57600080fd5b82018360208201111561037d57600080fd5b803590602001918460208302840111600160201b8311171561039e57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506110f3945050505050565b3480156103e857600080fd5b506101e0600480360361016081101561040057600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff6101008201351690610120810135906101400135611129565b34801561046657600080fd5b506102d7600480360360a081101561047d57600080fd5b813591602081013591810190606081016040820135600160201b8111156104a357600080fd5b8201836020820111156104b557600080fd5b803590602001918460208302840111600160201b831117156104d657600080fd5b91935091506001600160a01b038135169060200135611223565b3480156104fc57600080fd5b506102d7600480360360a081101561051357600080fd5b813591602081013591810190606081016040820135600160201b81111561053957600080fd5b82018360208201111561054b57600080fd5b803590602001918460208302840111600160201b8311171561056c57600080fd5b91935091506001600160a01b03813516906020013561136e565b34801561059257600080fd5b5061022f60048036036101408110156105aa57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e082013516906101008101359061012001356114fa565b34801561060557600080fd5b50610186600480360360a081101561061c57600080fd5b813591602081013591810190606081016040820135600160201b81111561064257600080fd5b82018360208201111561065457600080fd5b803590602001918460208302840111600160201b8311171561067557600080fd5b91935091506001600160a01b038135169060200135611608565b34801561069b57600080fd5b50610186600480360360a08110156106b257600080fd5b813591602081013591810190606081016040820135600160201b8111156106d857600080fd5b8201836020820111156106ea57600080fd5b803590602001918460208302840111600160201b8311171561070b57600080fd5b91935091506001600160a01b038135169060200135611885565b6102d76004803603608081101561073b57600080fd5b81359190810190604081016020820135600160201b81111561075c57600080fd5b82018360208201111561076e57600080fd5b803590602001918460208302840111600160201b8311171561078f57600080fd5b91935091506001600160a01b038135169060200135611b0e565b3480156107b557600080fd5b5061022f600480360360608110156107cc57600080fd5b5080359060208101359060400135611e58565b3480156107eb57600080fd5b506102d7600480360360a081101561080257600080fd5b813591602081013591810190606081016040820135600160201b81111561082857600080fd5b82018360208201111561083a57600080fd5b803590602001918460208302840111600160201b8311171561085b57600080fd5b91935091506001600160a01b038135169060200135611e65565b34801561088157600080fd5b5061088a611f5e565b604080516001600160a01b039092168252519081900360200190f35b3480156108b257600080fd5b5061022f600480360360608110156108c957600080fd5b5080359060208101359060400135611f82565b3480156108e857600080fd5b5061022f600480360360c08110156108ff57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135611f8f565b6101866004803603608081101561094557600080fd5b81359190810190604081016020820135600160201b81111561096657600080fd5b82018360208201111561097857600080fd5b803590602001918460208302840111600160201b8311171561099957600080fd5b91935091506001600160a01b038135169060200135612115565b3480156109bf57600080fd5b506101e0600480360360e08110156109d657600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c00135612486565b348015610a1c57600080fd5b5061088a612810565b348015610a3157600080fd5b506102d760048036036040811015610a4857600080fd5b81359190810190604081016020820135600160201b811115610a6957600080fd5b820183602082011115610a7b57600080fd5b803590602001918460208302840111600160201b83111715610a9c57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612834945050505050565b348015610ae657600080fd5b506101e06004803603610140811015610afe57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e08201351690610100810135906101200135612861565b348015610b5957600080fd5b50610baf6004803603610100811015610b7157600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e00135612975565b60408051938452602084019290925282820152519081900360600190f35b610baf600480360360c0811015610be357600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135612aa8565b6102d760048036036080811015610c2957600080fd5b81359190810190604081016020820135600160201b811115610c4a57600080fd5b820183602082011115610c5c57600080fd5b803590602001918460208302840111600160201b83111715610c7d57600080fd5b91935091506001600160a01b038135169060200135612d3b565b6000808242811015610cde576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b610d0d897f00000000000000000000000000000000000000000000000000000000000000008a8a8a308a612486565b9093509150610d1d8986856130b4565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610d8357600080fd5b505af1158015610d97573d6000803e3d6000fd5b50505050610da5858361321e565b50965096945050505050565b6000610dbe848484613316565b949350505050565b60608142811015610e0c576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001686866000198101818110610e4657fe5b905060200201356001600160a01b03166001600160a01b031614610e9f576040805162461bcd60e51b815260206004820152601d6024820152600080516020614bf1833981519152604482015290519081900360640190fd5b610efd7f0000000000000000000000000000000000000000000000000000000000000000898888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506133ee92505050565b91508682600184510381518110610f1057fe5b60200260200101511015610f555760405162461bcd60e51b815260040180806020018281038252602b815260200180614c5a602b913960400191505060405180910390fd5b610ff386866000818110610f6557fe5b905060200201356001600160a01b031633610fd97f00000000000000000000000000000000000000000000000000000000000000008a8a6000818110610fa757fe5b905060200201356001600160a01b03168b8b6001818110610fc457fe5b905060200201356001600160a01b031661353a565b85600081518110610fe657fe5b60200260200101516135fa565b61103282878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613757915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d8360018551038151811061107157fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156110af57600080fd5b505af11580156110c3573d6000803e3d6000fd5b505050506110e884836001855103815181106110db57fe5b602002602001015161321e565b509695505050505050565b60606111207f00000000000000000000000000000000000000000000000000000000000000008484613b18565b90505b92915050565b60008060006111597f00000000000000000000000000000000000000000000000000000000000000008f8f61353a565b9050600087611168578c61116c565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b1580156111e257600080fd5b505af11580156111f6573d6000803e3d6000fd5b505050506112098f8f8f8f8f8f8f612486565b809450819550505050509b509b9950505050505050505050565b60608142811015611269576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b6112c77f0000000000000000000000000000000000000000000000000000000000000000898888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506133ee92505050565b915086826001845103815181106112da57fe5b6020026020010151101561131f5760405162461bcd60e51b815260040180806020018281038252602b815260200180614c5a602b913960400191505060405180910390fd5b61132f86866000818110610f6557fe5b6110e882878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613757915050565b606081428110156113b4576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016868660001981018181106113ee57fe5b905060200201356001600160a01b03166001600160a01b031614611447576040805162461bcd60e51b815260206004820152601d6024820152600080516020614bf1833981519152604482015290519081900360640190fd5b6114a57f000000000000000000000000000000000000000000000000000000000000000089888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613b1892505050565b915086826000815181106114b557fe5b60200260200101511115610f555760405162461bcd60e51b8152600401808060200182810382526027815260200180614ba56027913960400191505060405180910390fd5b6000806115487f00000000000000000000000000000000000000000000000000000000000000008d7f000000000000000000000000000000000000000000000000000000000000000061353a565b9050600086611557578b61155b565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018b905260ff8916608482015260a4810188905260c4810187905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b1580156115d157600080fd5b505af11580156115e5573d6000803e3d6000fd5b505050506115f78d8d8d8d8d8d611f8f565b9d9c50505050505050505050505050565b804281101561164c576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b6116c18585600081811061165c57fe5b905060200201356001600160a01b0316336116bb7f00000000000000000000000000000000000000000000000000000000000000008989600081811061169e57fe5b905060200201356001600160a01b03168a8a6001818110610fc457fe5b8a6135fa565b6000858560001981018181106116d357fe5b905060200201356001600160a01b03166001600160a01b03166370a08231856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561172f57600080fd5b505afa158015611743573d6000803e3d6000fd5b505050506040513d602081101561175957600080fd5b5051604080516020888102828101820190935288825292935061179b929091899189918291850190849080828437600092019190915250889250613c50915050565b8661183e82888860001981018181106117b057fe5b905060200201356001600160a01b03166001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561180c57600080fd5b505afa158015611820573d6000803e3d6000fd5b505050506040513d602081101561183657600080fd5b5051906140e2565b101561187b5760405162461bcd60e51b815260040180806020018281038252602b815260200180614c5a602b913960400191505060405180910390fd5b5050505050505050565b80428110156118c9576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168585600019810181811061190357fe5b905060200201356001600160a01b03166001600160a01b03161461195c576040805162461bcd60e51b815260206004820152601d6024820152600080516020614bf1833981519152604482015290519081900360640190fd5b61196c8585600081811061165c57fe5b6119aa858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613c50915050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611a1957600080fd5b505afa158015611a2d573d6000803e3d6000fd5b505050506040513d6020811015611a4357600080fd5b5051905086811015611a865760405162461bcd60e51b815260040180806020018281038252602b815260200180614c5a602b913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611aec57600080fd5b505af1158015611b00573d6000803e3d6000fd5b5050505061187b848261321e565b60608142811015611b54576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031686866000818110611b8b57fe5b905060200201356001600160a01b03166001600160a01b031614611be4576040805162461bcd60e51b815260206004820152601d6024820152600080516020614bf1833981519152604482015290519081900360640190fd5b611c427f0000000000000000000000000000000000000000000000000000000000000000348888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506133ee92505050565b91508682600184510381518110611c5557fe5b60200260200101511015611c9a5760405162461bcd60e51b815260040180806020018281038252602b815260200180614c5a602b913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db083600081518110611cd657fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611d0957600080fd5b505af1158015611d1d573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb611d827f00000000000000000000000000000000000000000000000000000000000000008989600081811061169e57fe5b84600081518110611d8f57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611ddd57600080fd5b505af1158015611df1573d6000803e3d6000fd5b505050506040513d6020811015611e0757600080fd5b5051611e0f57fe5b611e4e82878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613757915050565b5095945050505050565b6000610dbe848484614132565b60608142811015611eab576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b611f097f000000000000000000000000000000000000000000000000000000000000000089888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613b1892505050565b91508682600081518110611f1957fe5b6020026020010151111561131f5760405162461bcd60e51b8152600401808060200182810382526027815260200180614ba56027913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610dbe84848461420a565b60008142811015611fd5576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b612004887f00000000000000000000000000000000000000000000000000000000000000008989893089612486565b90508092505061208d88858a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561205c57600080fd5b505afa158015612070573d6000803e3d6000fd5b505050506040513d602081101561208657600080fd5b50516130b4565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156120f357600080fd5b505af1158015612107573d6000803e3d6000fd5b505050506110e8848361321e565b8042811015612159576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168585600081811061219057fe5b905060200201356001600160a01b03166001600160a01b0316146121e9576040805162461bcd60e51b815260206004820152601d6024820152600080516020614bf1833981519152604482015290519081900360640190fd5b60003490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561224957600080fd5b505af115801561225d573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb6122c27f00000000000000000000000000000000000000000000000000000000000000008989600081811061169e57fe5b836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561230957600080fd5b505af115801561231d573d6000803e3d6000fd5b505050506040513d602081101561233357600080fd5b505161233b57fe5b60008686600019810181811061234d57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156123a957600080fd5b505afa1580156123bd573d6000803e3d6000fd5b505050506040513d60208110156123d357600080fd5b505160408051602089810282810182019093528982529293506124159290918a918a918291850190849080828437600092019190915250899250613c50915050565b8761183e828989600019810181811061242a57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561180c57600080fd5b60008082428110156124cd576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166393e59dc16040518163ffffffff1660e01b815260040160206040518083038186803b15801561252857600080fd5b505afa15801561253c573d6000803e3d6000fd5b505050506040513d602081101561255257600080fd5b505190506001600160a01b038116156126125760408051631b378f5160e21b815233600482015290516001600160a01b03831691636cde3d44916024808301926020929190829003018186803b1580156125ab57600080fd5b505afa1580156125bf573d6000803e3d6000fd5b505050506040513d60208110156125d557600080fd5b50516126125760405162461bcd60e51b8152600401808060200182810382526025815260200180614bcc6025913960400191505060405180910390fd5b600061263f7f00000000000000000000000000000000000000000000000000000000000000008d8d61353a565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018e9052915192935090916323b872dd916064808201926020929091908290030181600087803b15801561269a57600080fd5b505af11580156126ae573d6000803e3d6000fd5b505050506040513d60208110156126c457600080fd5b50506040805163226bf2d160e21b81526001600160a01b03898116600483015282516000938493928616926389afcb44926024808301939282900301818787803b15801561271157600080fd5b505af1158015612725573d6000803e3d6000fd5b505050506040513d604081101561273b57600080fd5b508051602090910151909250905060006127558f8f6142b0565b509050806001600160a01b03168f6001600160a01b03161461277857818361277b565b82825b90985096508b8810156127bf5760405162461bcd60e51b8152600401808060200182810382526026815260200180614c116026913960400191505060405180910390fd5b8a8710156127fe5760405162461bcd60e51b8152600401808060200182810382526026815260200180614b326026913960400191505060405180910390fd5b50505050505097509795505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606111207f000000000000000000000000000000000000000000000000000000000000000084846133ee565b60008060006128b17f00000000000000000000000000000000000000000000000000000000000000008e7f000000000000000000000000000000000000000000000000000000000000000061353a565b90506000876128c0578c6128c4565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b15801561293a57600080fd5b505af115801561294e573d6000803e3d6000fd5b505050506129608e8e8e8e8e8e610c97565b909f909e509c50505050505050505050505050565b600080600083428110156129be576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b6129cc8c8c8c8c8c8c61438e565b909450925060006129fe7f00000000000000000000000000000000000000000000000000000000000000008e8e61353a565b9050612a0c8d3383886135fa565b612a188c3383876135fa565b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b158015612a6757600080fd5b505af1158015612a7b573d6000803e3d6000fd5b505050506040513d6020811015612a9157600080fd5b5051949d939c50939a509198505050505050505050565b60008060008342811015612af1576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b612b1f8a7f00000000000000000000000000000000000000000000000000000000000000008b348c8c61438e565b90945092506000612b717f00000000000000000000000000000000000000000000000000000000000000008c7f000000000000000000000000000000000000000000000000000000000000000061353a565b9050612b7f8b3383886135fa565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b158015612bda57600080fd5b505af1158015612bee573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612c6a57600080fd5b505af1158015612c7e573d6000803e3d6000fd5b505050506040513d6020811015612c9457600080fd5b5051612c9c57fe5b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b158015612ceb57600080fd5b505af1158015612cff573d6000803e3d6000fd5b505050506040513d6020811015612d1557600080fd5b5051925034841015612d2d57612d2d3385340361321e565b505096509650969350505050565b60608142811015612d81576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031686866000818110612db857fe5b905060200201356001600160a01b03166001600160a01b031614612e11576040805162461bcd60e51b815260206004820152601d6024820152600080516020614bf1833981519152604482015290519081900360640190fd5b612e6f7f000000000000000000000000000000000000000000000000000000000000000088888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613b1892505050565b91503482600081518110612e7f57fe5b60200260200101511115612ec45760405162461bcd60e51b8152600401808060200182810382526027815260200180614ba56027913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db083600081518110612f0057fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015612f3357600080fd5b505af1158015612f47573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb612fac7f00000000000000000000000000000000000000000000000000000000000000008989600081811061169e57fe5b84600081518110612fb957fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561300757600080fd5b505af115801561301b573d6000803e3d6000fd5b505050506040513d602081101561303157600080fd5b505161303957fe5b61307882878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613757915050565b8160008151811061308557fe5b6020026020010151341115611e4e57611e4e33836000815181106130a557fe5b6020026020010151340361321e565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b602083106131315780518252601f199092019160209182019101613112565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613193576040519150601f19603f3d011682016040523d82523d6000602084013e613198565b606091505b50915091508180156131c65750805115806131c657508080602001905160208110156131c357600080fd5b50515b613217576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b6020831061326a5780518252601f19909201916020918201910161324b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146132cc576040519150601f19603f3d011682016040523d82523d6000602084013e6132d1565b606091505b50509050806133115760405162461bcd60e51b8152600401808060200182810382526023815260200180614c376023913960400191505060405180910390fd5b505050565b60008084116133565760405162461bcd60e51b815260040180806020018281038252602b815260200180614ca9602b913960400191505060405180910390fd5b6000831180156133665750600082115b6133a15760405162461bcd60e51b8152600401808060200182810382526028815260200180614b586028913960400191505060405180910390fd5b60006133af856103e5614798565b905060006133bd8285614798565b905060006133d7836133d1886103e8614798565b906147fb565b90508082816133e257fe5b04979650505050505050565b6060600282511015613447576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff8111801561345f57600080fd5b50604051908082528060200260200182016040528015613489578160200160208202803683370190505b509050828160008151811061349a57fe5b60200260200101818152505060005b6001835103811015613532576000806134ec878685815181106134c857fe5b60200260200101518786600101815181106134df57fe5b602002602001015161484a565b9150915061350e8484815181106134ff57fe5b60200260200101518383613316565b84846001018151811061351d57fe5b602090810291909101015250506001016134a9565b509392505050565b600080600061354985856142b0565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527f068929976e9b11179f781aadb37dc33b6fc0d30a27419125438dab4d4d11418b609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b6020831061367f5780518252601f199092019160209182019101613660565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146136e1576040519150601f19603f3d011682016040523d82523d6000602084013e6136e6565b606091505b5091509150818015613714575080511580613714575080806020019051602081101561371157600080fd5b50515b61374f5760405162461bcd60e51b8152600401808060200182810382526024815260200180614c856024913960400191505060405180910390fd5b505050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166393e59dc16040518163ffffffff1660e01b815260040160206040518083038186803b1580156137b257600080fd5b505afa1580156137c6573d6000803e3d6000fd5b505050506040513d60208110156137dc57600080fd5b505190506001600160a01b0381161561389c5760408051630ad8019760e21b815233600482015290516001600160a01b03831691632b60065c916024808301926020929190829003018186803b15801561383557600080fd5b505afa158015613849573d6000803e3d6000fd5b505050506040513d602081101561385f57600080fd5b505161389c5760405162461bcd60e51b8152600401808060200182810382526025815260200180614bcc6025913960400191505060405180910390fd5b60005b6001845103811015613217576000808583815181106138ba57fe5b60200260200101518684600101815181106138d157fe5b6020026020010151915091506138e78282614911565b6139225760405162461bcd60e51b815260040180806020018281038252602a815260200180614ab7602a913960400191505060405180910390fd5b600061392e83836142b0565b509050600088856001018151811061394257fe5b60200260200101519050600080836001600160a01b0316866001600160a01b03161461397057826000613974565b6000835b91509150600060028b5103881061398b57896139cc565b6139cc7f0000000000000000000000000000000000000000000000000000000000000000878d8b600201815181106139bf57fe5b602002602001015161353a565b90506139f97f0000000000000000000000000000000000000000000000000000000000000000888861353a565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015613a36576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613a9e578181015183820152602001613a86565b50505050905090810190601f168015613acb5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015613aed57600080fd5b505af1158015613b01573d6000803e3d6000fd5b50506001909901985061389f975050505050505050565b6060600282511015613b71576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015613b8957600080fd5b50604051908082528060200260200182016040528015613bb3578160200160208202803683370190505b5090508281600183510381518110613bc757fe5b60209081029190910101528151600019015b801561353257600080613c0987866001860381518110613bf557fe5b60200260200101518786815181106134df57fe5b91509150613c2b848481518110613c1c57fe5b60200260200101518383614132565b846001850381518110613c3a57fe5b6020908102919091010152505060001901613bd9565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166393e59dc16040518163ffffffff1660e01b815260040160206040518083038186803b158015613cab57600080fd5b505afa158015613cbf573d6000803e3d6000fd5b505050506040513d6020811015613cd557600080fd5b505190506001600160a01b03811615613d955760408051630ad8019760e21b815233600482015290516001600160a01b03831691632b60065c916024808301926020929190829003018186803b158015613d2e57600080fd5b505afa158015613d42573d6000803e3d6000fd5b505050506040513d6020811015613d5857600080fd5b5051613d955760405162461bcd60e51b8152600401808060200182810382526025815260200180614bcc6025913960400191505060405180910390fd5b60005b60018451038110156140dc57600080858381518110613db357fe5b6020026020010151868460010181518110613dca57fe5b602002602001015191509150613de08282614911565b613e1b5760405162461bcd60e51b815260040180806020018281038252602a815260200180614ab7602a913960400191505060405180910390fd5b6000613e2783836142b0565b5090506000613e577f0000000000000000000000000000000000000000000000000000000000000000858561353a565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015613e9857600080fd5b505afa158015613eac573d6000803e3d6000fd5b505050506040513d6060811015613ec257600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a811690891614613ef8578284613efb565b83835b91509150613f50828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561180c57600080fd5b9550613f5d868383613316565b945050505050600080856001600160a01b0316886001600160a01b031614613f8757826000613f8b565b6000835b91509150600060028d51038a10613fa2578b613fd6565b613fd67f0000000000000000000000000000000000000000000000000000000000000000898f8d600201815181106139bf57fe5b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b83811015614060578181015183820152602001614048565b50505050905090810190601f16801561408d5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156140af57600080fd5b505af11580156140c3573d6000803e3d6000fd5b50506001909b019a50613d989950505050505050505050565b50505050565b80820382811115611123576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b60008084116141725760405162461bcd60e51b815260040180806020018281038252602c815260200180614ae1602c913960400191505060405180910390fd5b6000831180156141825750600082115b6141bd5760405162461bcd60e51b8152600401808060200182810382526028815260200180614b586028913960400191505060405180910390fd5b60006141d56103e86141cf8688614798565b90614798565b905060006141e96103e56141cf86896140e2565b905061420060018284816141f957fe5b04906147fb565b9695505050505050565b600080841161424a5760405162461bcd60e51b8152600401808060200182810382526025815260200180614b806025913960400191505060405180910390fd5b60008311801561425a5750600082115b6142955760405162461bcd60e51b8152600401808060200182810382526028815260200180614b586028913960400191505060405180910390fd5b826142a08584614798565b816142a757fe5b04949350505050565b600080826001600160a01b0316846001600160a01b031614156143045760405162461bcd60e51b8152600401808060200182810382526025815260200180614b0d6025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610614324578284614327565b83835b90925090506001600160a01b038216614387576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166393e59dc16040518163ffffffff1660e01b815260040160206040518083038186803b1580156143ec57600080fd5b505afa158015614400573d6000803e3d6000fd5b505050506040513d602081101561441657600080fd5b505190506001600160a01b038116156144d65760408051631b378f5160e21b815233600482015290516001600160a01b03831691636cde3d44916024808301926020929190829003018186803b15801561446f57600080fd5b505afa158015614483573d6000803e3d6000fd5b505050506040513d602081101561449957600080fd5b50516144d65760405162461bcd60e51b8152600401808060200182810382526025815260200180614bcc6025913960400191505060405180910390fd5b88886144e28282614911565b61451d5760405162461bcd60e51b815260040180806020018281038252602a815260200180614ab7602a913960400191505060405180910390fd5b6040805163e6a4390560e01b81526001600160a01b038d811660048301528c8116602483015291516000927f0000000000000000000000000000000000000000000000000000000000000000169163e6a43905916044808301926020929190829003018186803b15801561459057600080fd5b505afa1580156145a4573d6000803e3d6000fd5b505050506040513d60208110156145ba57600080fd5b50516001600160a01b03161415614678577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c9c653968c8c6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050602060405180830381600087803b15801561464b57600080fd5b505af115801561465f573d6000803e3d6000fd5b505050506040513d602081101561467557600080fd5b50505b6000806146a67f00000000000000000000000000000000000000000000000000000000000000008e8e61484a565b915091508160001480156146b8575080155b156146c8578a9650899550614788565b60006146d58c848461420a565b90508a8111614728578881101561471d5760405162461bcd60e51b8152600401808060200182810382526026815260200180614b326026913960400191505060405180910390fd5b8b9750955085614786565b60006147358c848661420a565b90508c81111561474157fe5b8a8110156147805760405162461bcd60e51b8152600401808060200182810382526026815260200180614c116026913960400191505060405180910390fd5b97508a96505b505b5050505050965096945050505050565b60008115806147b3575050808202828282816147b057fe5b04145b611123576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b80820182811015611123576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b600080600061485985856142b0565b50905060008061486a88888861353a565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156148a257600080fd5b505afa1580156148b6573d6000803e3d6000fd5b505050506040513d60608110156148cc57600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b03878116908416146148ff578082614902565b81815b90999098509650505050505050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166393e59dc16040518163ffffffff1660e01b815260040160206040518083038186803b15801561496d57600080fd5b505afa158015614981573d6000803e3d6000fd5b505050506040513d602081101561499757600080fd5b505190506001600160a01b03811615614aac57806001600160a01b0316631fd62cc4856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156149f757600080fd5b505afa158015614a0b573d6000803e3d6000fd5b505050506040513d6020811015614a2157600080fd5b50518015614aa45750806001600160a01b0316631fd62cc4846040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015614a7757600080fd5b505afa158015614a8b573d6000803e3d6000fd5b505050506040513d6020811015614aa157600080fd5b50515b915050611123565b506001939250505056fe556e69737761705632526f757465723a20546f6b656e73206973206e6f742077686974656c6973746564556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e69737761705632526f757465723a20494e53554646494349454e545f425f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e54556e69737761705632526f757465723a204558434553534956455f494e5055545f414d4f554e54556e69737761705632526f757465723a20574c205045524d495353494f4e2044454e494544556e69737761705632526f757465723a20494e56414c49445f50415448000000556e69737761705632526f757465723a20494e53554646494349454e545f415f414d4f554e545472616e7366657248656c7065723a204554485f5452414e534645525f4641494c4544556e69737761705632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54556e69737761705632526f757465723a20455850495245440000000000000000a2646970667358221220597bbac47be74d605b05165d3fafd1279e5fa05c8b50ed04418f5c30a10f068764736f6c634300060c003300000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b53000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x60806040526004361061014f5760003560e01c80638803dbee116100b6578063c45a01551161006f578063c45a015514610a10578063d06ca61f14610a25578063ded9382a14610ada578063e8e3370014610b4d578063f305d71914610bcd578063fb3bdb4114610c1357610188565b80638803dbee146107df578063ad5c464814610875578063ad615dec146108a6578063af2979eb146108dc578063b6f9de951461092f578063baa2abde146109b357610188565b80634a25d94a116101085780634a25d94a146104f05780635b0d5984146105865780635c11d795146105f9578063791ac9471461068f5780637ff36ab51461072557806385f8c259146107a957610188565b806302751cec1461018d578063054d50d4146101f957806318cbafe5146102415780631f00ca74146103275780632195995c146103dc57806338ed17391461045a57610188565b3661018857336001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2161461018657fe5b005b600080fd5b34801561019957600080fd5b506101e0600480360360c08110156101b057600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135610c97565b6040805192835260208301919091528051918290030190f35b34801561020557600080fd5b5061022f6004803603606081101561021c57600080fd5b5080359060208101359060400135610db1565b60408051918252519081900360200190f35b34801561024d57600080fd5b506102d7600480360360a081101561026457600080fd5b813591602081013591810190606081016040820135600160201b81111561028a57600080fd5b82018360208201111561029c57600080fd5b803590602001918460208302840111600160201b831117156102bd57600080fd5b91935091506001600160a01b038135169060200135610dc6565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156103135781810151838201526020016102fb565b505050509050019250505060405180910390f35b34801561033357600080fd5b506102d76004803603604081101561034a57600080fd5b81359190810190604081016020820135600160201b81111561036b57600080fd5b82018360208201111561037d57600080fd5b803590602001918460208302840111600160201b8311171561039e57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506110f3945050505050565b3480156103e857600080fd5b506101e0600480360361016081101561040057600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff6101008201351690610120810135906101400135611129565b34801561046657600080fd5b506102d7600480360360a081101561047d57600080fd5b813591602081013591810190606081016040820135600160201b8111156104a357600080fd5b8201836020820111156104b557600080fd5b803590602001918460208302840111600160201b831117156104d657600080fd5b91935091506001600160a01b038135169060200135611223565b3480156104fc57600080fd5b506102d7600480360360a081101561051357600080fd5b813591602081013591810190606081016040820135600160201b81111561053957600080fd5b82018360208201111561054b57600080fd5b803590602001918460208302840111600160201b8311171561056c57600080fd5b91935091506001600160a01b03813516906020013561136e565b34801561059257600080fd5b5061022f60048036036101408110156105aa57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e082013516906101008101359061012001356114fa565b34801561060557600080fd5b50610186600480360360a081101561061c57600080fd5b813591602081013591810190606081016040820135600160201b81111561064257600080fd5b82018360208201111561065457600080fd5b803590602001918460208302840111600160201b8311171561067557600080fd5b91935091506001600160a01b038135169060200135611608565b34801561069b57600080fd5b50610186600480360360a08110156106b257600080fd5b813591602081013591810190606081016040820135600160201b8111156106d857600080fd5b8201836020820111156106ea57600080fd5b803590602001918460208302840111600160201b8311171561070b57600080fd5b91935091506001600160a01b038135169060200135611885565b6102d76004803603608081101561073b57600080fd5b81359190810190604081016020820135600160201b81111561075c57600080fd5b82018360208201111561076e57600080fd5b803590602001918460208302840111600160201b8311171561078f57600080fd5b91935091506001600160a01b038135169060200135611b0e565b3480156107b557600080fd5b5061022f600480360360608110156107cc57600080fd5b5080359060208101359060400135611e58565b3480156107eb57600080fd5b506102d7600480360360a081101561080257600080fd5b813591602081013591810190606081016040820135600160201b81111561082857600080fd5b82018360208201111561083a57600080fd5b803590602001918460208302840111600160201b8311171561085b57600080fd5b91935091506001600160a01b038135169060200135611e65565b34801561088157600080fd5b5061088a611f5e565b604080516001600160a01b039092168252519081900360200190f35b3480156108b257600080fd5b5061022f600480360360608110156108c957600080fd5b5080359060208101359060400135611f82565b3480156108e857600080fd5b5061022f600480360360c08110156108ff57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135611f8f565b6101866004803603608081101561094557600080fd5b81359190810190604081016020820135600160201b81111561096657600080fd5b82018360208201111561097857600080fd5b803590602001918460208302840111600160201b8311171561099957600080fd5b91935091506001600160a01b038135169060200135612115565b3480156109bf57600080fd5b506101e0600480360360e08110156109d657600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359091169060c00135612486565b348015610a1c57600080fd5b5061088a612810565b348015610a3157600080fd5b506102d760048036036040811015610a4857600080fd5b81359190810190604081016020820135600160201b811115610a6957600080fd5b820183602082011115610a7b57600080fd5b803590602001918460208302840111600160201b83111715610a9c57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612834945050505050565b348015610ae657600080fd5b506101e06004803603610140811015610afe57600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e08201351690610100810135906101200135612861565b348015610b5957600080fd5b50610baf6004803603610100811015610b7157600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e00135612975565b60408051938452602084019290925282820152519081900360600190f35b610baf600480360360c0811015610be357600080fd5b506001600160a01b0381358116916020810135916040820135916060810135916080820135169060a00135612aa8565b6102d760048036036080811015610c2957600080fd5b81359190810190604081016020820135600160201b811115610c4a57600080fd5b820183602082011115610c5c57600080fd5b803590602001918460208302840111600160201b83111715610c7d57600080fd5b91935091506001600160a01b038135169060200135612d3b565b6000808242811015610cde576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b610d0d897f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28a8a8a308a612486565b9093509150610d1d8986856130b4565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610d8357600080fd5b505af1158015610d97573d6000803e3d6000fd5b50505050610da5858361321e565b50965096945050505050565b6000610dbe848484613316565b949350505050565b60608142811015610e0c576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21686866000198101818110610e4657fe5b905060200201356001600160a01b03166001600160a01b031614610e9f576040805162461bcd60e51b815260206004820152601d6024820152600080516020614bf1833981519152604482015290519081900360640190fd5b610efd7f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b53898888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506133ee92505050565b91508682600184510381518110610f1057fe5b60200260200101511015610f555760405162461bcd60e51b815260040180806020018281038252602b815260200180614c5a602b913960400191505060405180910390fd5b610ff386866000818110610f6557fe5b905060200201356001600160a01b031633610fd97f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538a8a6000818110610fa757fe5b905060200201356001600160a01b03168b8b6001818110610fc457fe5b905060200201356001600160a01b031661353a565b85600081518110610fe657fe5b60200260200101516135fa565b61103282878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613757915050565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d8360018551038151811061107157fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156110af57600080fd5b505af11580156110c3573d6000803e3d6000fd5b505050506110e884836001855103815181106110db57fe5b602002602001015161321e565b509695505050505050565b60606111207f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538484613b18565b90505b92915050565b60008060006111597f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538f8f61353a565b9050600087611168578c61116c565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b1580156111e257600080fd5b505af11580156111f6573d6000803e3d6000fd5b505050506112098f8f8f8f8f8f8f612486565b809450819550505050509b509b9950505050505050505050565b60608142811015611269576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b6112c77f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b53898888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506133ee92505050565b915086826001845103815181106112da57fe5b6020026020010151101561131f5760405162461bcd60e51b815260040180806020018281038252602b815260200180614c5a602b913960400191505060405180910390fd5b61132f86866000818110610f6557fe5b6110e882878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613757915050565b606081428110156113b4576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216868660001981018181106113ee57fe5b905060200201356001600160a01b03166001600160a01b031614611447576040805162461bcd60e51b815260206004820152601d6024820152600080516020614bf1833981519152604482015290519081900360640190fd5b6114a57f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b5389888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613b1892505050565b915086826000815181106114b557fe5b60200260200101511115610f555760405162461bcd60e51b8152600401808060200182810382526027815260200180614ba56027913960400191505060405180910390fd5b6000806115487f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538d7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc261353a565b9050600086611557578b61155b565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018b905260ff8916608482015260a4810188905260c4810187905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b1580156115d157600080fd5b505af11580156115e5573d6000803e3d6000fd5b505050506115f78d8d8d8d8d8d611f8f565b9d9c50505050505050505050505050565b804281101561164c576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b6116c18585600081811061165c57fe5b905060200201356001600160a01b0316336116bb7f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538989600081811061169e57fe5b905060200201356001600160a01b03168a8a6001818110610fc457fe5b8a6135fa565b6000858560001981018181106116d357fe5b905060200201356001600160a01b03166001600160a01b03166370a08231856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561172f57600080fd5b505afa158015611743573d6000803e3d6000fd5b505050506040513d602081101561175957600080fd5b5051604080516020888102828101820190935288825292935061179b929091899189918291850190849080828437600092019190915250889250613c50915050565b8661183e82888860001981018181106117b057fe5b905060200201356001600160a01b03166001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561180c57600080fd5b505afa158015611820573d6000803e3d6000fd5b505050506040513d602081101561183657600080fd5b5051906140e2565b101561187b5760405162461bcd60e51b815260040180806020018281038252602b815260200180614c5a602b913960400191505060405180910390fd5b5050505050505050565b80428110156118c9576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2168585600019810181811061190357fe5b905060200201356001600160a01b03166001600160a01b03161461195c576040805162461bcd60e51b815260206004820152601d6024820152600080516020614bf1833981519152604482015290519081900360640190fd5b61196c8585600081811061165c57fe5b6119aa858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613c50915050565b60007f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611a1957600080fd5b505afa158015611a2d573d6000803e3d6000fd5b505050506040513d6020811015611a4357600080fd5b5051905086811015611a865760405162461bcd60e51b815260040180806020018281038252602b815260200180614c5a602b913960400191505060405180910390fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611aec57600080fd5b505af1158015611b00573d6000803e3d6000fd5b5050505061187b848261321e565b60608142811015611b54576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031686866000818110611b8b57fe5b905060200201356001600160a01b03166001600160a01b031614611be4576040805162461bcd60e51b815260206004820152601d6024820152600080516020614bf1833981519152604482015290519081900360640190fd5b611c427f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b53348888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506133ee92505050565b91508682600184510381518110611c5557fe5b60200260200101511015611c9a5760405162461bcd60e51b815260040180806020018281038252602b815260200180614c5a602b913960400191505060405180910390fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db083600081518110611cd657fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611d0957600080fd5b505af1158015611d1d573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb611d827f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538989600081811061169e57fe5b84600081518110611d8f57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611ddd57600080fd5b505af1158015611df1573d6000803e3d6000fd5b505050506040513d6020811015611e0757600080fd5b5051611e0f57fe5b611e4e82878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613757915050565b5095945050505050565b6000610dbe848484614132565b60608142811015611eab576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b611f097f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b5389888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613b1892505050565b91508682600081518110611f1957fe5b6020026020010151111561131f5760405162461bcd60e51b8152600401808060200182810382526027815260200180614ba56027913960400191505060405180910390fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6000610dbe84848461420a565b60008142811015611fd5576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b612004887f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28989893089612486565b90508092505061208d88858a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561205c57600080fd5b505afa158015612070573d6000803e3d6000fd5b505050506040513d602081101561208657600080fd5b50516130b4565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156120f357600080fd5b505af1158015612107573d6000803e3d6000fd5b505050506110e8848361321e565b8042811015612159576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03168585600081811061219057fe5b905060200201356001600160a01b03166001600160a01b0316146121e9576040805162461bcd60e51b815260206004820152601d6024820152600080516020614bf1833981519152604482015290519081900360640190fd5b60003490507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561224957600080fd5b505af115801561225d573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb6122c27f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538989600081811061169e57fe5b836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561230957600080fd5b505af115801561231d573d6000803e3d6000fd5b505050506040513d602081101561233357600080fd5b505161233b57fe5b60008686600019810181811061234d57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156123a957600080fd5b505afa1580156123bd573d6000803e3d6000fd5b505050506040513d60208110156123d357600080fd5b505160408051602089810282810182019093528982529293506124159290918a918a918291850190849080828437600092019190915250899250613c50915050565b8761183e828989600019810181811061242a57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561180c57600080fd5b60008082428110156124cd576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b60007f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b536001600160a01b03166393e59dc16040518163ffffffff1660e01b815260040160206040518083038186803b15801561252857600080fd5b505afa15801561253c573d6000803e3d6000fd5b505050506040513d602081101561255257600080fd5b505190506001600160a01b038116156126125760408051631b378f5160e21b815233600482015290516001600160a01b03831691636cde3d44916024808301926020929190829003018186803b1580156125ab57600080fd5b505afa1580156125bf573d6000803e3d6000fd5b505050506040513d60208110156125d557600080fd5b50516126125760405162461bcd60e51b8152600401808060200182810382526025815260200180614bcc6025913960400191505060405180910390fd5b600061263f7f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538d8d61353a565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018e9052915192935090916323b872dd916064808201926020929091908290030181600087803b15801561269a57600080fd5b505af11580156126ae573d6000803e3d6000fd5b505050506040513d60208110156126c457600080fd5b50506040805163226bf2d160e21b81526001600160a01b03898116600483015282516000938493928616926389afcb44926024808301939282900301818787803b15801561271157600080fd5b505af1158015612725573d6000803e3d6000fd5b505050506040513d604081101561273b57600080fd5b508051602090910151909250905060006127558f8f6142b0565b509050806001600160a01b03168f6001600160a01b03161461277857818361277b565b82825b90985096508b8810156127bf5760405162461bcd60e51b8152600401808060200182810382526026815260200180614c116026913960400191505060405180910390fd5b8a8710156127fe5760405162461bcd60e51b8152600401808060200182810382526026815260200180614b326026913960400191505060405180910390fd5b50505050505097509795505050505050565b7f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b5381565b60606111207f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b5384846133ee565b60008060006128b17f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538e7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc261353a565b90506000876128c0578c6128c4565b6000195b6040805163d505accf60e01b815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c4810188905290519192506001600160a01b0384169163d505accf9160e48082019260009290919082900301818387803b15801561293a57600080fd5b505af115801561294e573d6000803e3d6000fd5b505050506129608e8e8e8e8e8e610c97565b909f909e509c50505050505050505050505050565b600080600083428110156129be576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b6129cc8c8c8c8c8c8c61438e565b909450925060006129fe7f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538e8e61353a565b9050612a0c8d3383886135fa565b612a188c3383876135fa565b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b158015612a6757600080fd5b505af1158015612a7b573d6000803e3d6000fd5b505050506040513d6020811015612a9157600080fd5b5051949d939c50939a509198505050505050505050565b60008060008342811015612af1576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b612b1f8a7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28b348c8c61438e565b90945092506000612b717f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538c7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc261353a565b9050612b7f8b3383886135fa565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b158015612bda57600080fd5b505af1158015612bee573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612c6a57600080fd5b505af1158015612c7e573d6000803e3d6000fd5b505050506040513d6020811015612c9457600080fd5b5051612c9c57fe5b806001600160a01b0316636a627842886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b158015612ceb57600080fd5b505af1158015612cff573d6000803e3d6000fd5b505050506040513d6020811015612d1557600080fd5b5051925034841015612d2d57612d2d3385340361321e565b505096509650969350505050565b60608142811015612d81576040805162461bcd60e51b81526020600482015260186024820152600080516020614cd4833981519152604482015290519081900360640190fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031686866000818110612db857fe5b905060200201356001600160a01b03166001600160a01b031614612e11576040805162461bcd60e51b815260206004820152601d6024820152600080516020614bf1833981519152604482015290519081900360640190fd5b612e6f7f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b5388888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613b1892505050565b91503482600081518110612e7f57fe5b60200260200101511115612ec45760405162461bcd60e51b8152600401808060200182810382526027815260200180614ba56027913960400191505060405180910390fd5b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db083600081518110612f0057fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015612f3357600080fd5b505af1158015612f47573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb612fac7f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538989600081811061169e57fe5b84600081518110612fb957fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561300757600080fd5b505af115801561301b573d6000803e3d6000fd5b505050506040513d602081101561303157600080fd5b505161303957fe5b61307882878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613757915050565b8160008151811061308557fe5b6020026020010151341115611e4e57611e4e33836000815181106130a557fe5b6020026020010151340361321e565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b602083106131315780518252601f199092019160209182019101613112565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613193576040519150601f19603f3d011682016040523d82523d6000602084013e613198565b606091505b50915091508180156131c65750805115806131c657508080602001905160208110156131c357600080fd5b50515b613217576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b6020831061326a5780518252601f19909201916020918201910161324b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146132cc576040519150601f19603f3d011682016040523d82523d6000602084013e6132d1565b606091505b50509050806133115760405162461bcd60e51b8152600401808060200182810382526023815260200180614c376023913960400191505060405180910390fd5b505050565b60008084116133565760405162461bcd60e51b815260040180806020018281038252602b815260200180614ca9602b913960400191505060405180910390fd5b6000831180156133665750600082115b6133a15760405162461bcd60e51b8152600401808060200182810382526028815260200180614b586028913960400191505060405180910390fd5b60006133af856103e5614798565b905060006133bd8285614798565b905060006133d7836133d1886103e8614798565b906147fb565b90508082816133e257fe5b04979650505050505050565b6060600282511015613447576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff8111801561345f57600080fd5b50604051908082528060200260200182016040528015613489578160200160208202803683370190505b509050828160008151811061349a57fe5b60200260200101818152505060005b6001835103811015613532576000806134ec878685815181106134c857fe5b60200260200101518786600101815181106134df57fe5b602002602001015161484a565b9150915061350e8484815181106134ff57fe5b60200260200101518383613316565b84846001018151811061351d57fe5b602090810291909101015250506001016134a9565b509392505050565b600080600061354985856142b0565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527f068929976e9b11179f781aadb37dc33b6fc0d30a27419125438dab4d4d11418b609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b6020831061367f5780518252601f199092019160209182019101613660565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146136e1576040519150601f19603f3d011682016040523d82523d6000602084013e6136e6565b606091505b5091509150818015613714575080511580613714575080806020019051602081101561371157600080fd5b50515b61374f5760405162461bcd60e51b8152600401808060200182810382526024815260200180614c856024913960400191505060405180910390fd5b505050505050565b60007f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b536001600160a01b03166393e59dc16040518163ffffffff1660e01b815260040160206040518083038186803b1580156137b257600080fd5b505afa1580156137c6573d6000803e3d6000fd5b505050506040513d60208110156137dc57600080fd5b505190506001600160a01b0381161561389c5760408051630ad8019760e21b815233600482015290516001600160a01b03831691632b60065c916024808301926020929190829003018186803b15801561383557600080fd5b505afa158015613849573d6000803e3d6000fd5b505050506040513d602081101561385f57600080fd5b505161389c5760405162461bcd60e51b8152600401808060200182810382526025815260200180614bcc6025913960400191505060405180910390fd5b60005b6001845103811015613217576000808583815181106138ba57fe5b60200260200101518684600101815181106138d157fe5b6020026020010151915091506138e78282614911565b6139225760405162461bcd60e51b815260040180806020018281038252602a815260200180614ab7602a913960400191505060405180910390fd5b600061392e83836142b0565b509050600088856001018151811061394257fe5b60200260200101519050600080836001600160a01b0316866001600160a01b03161461397057826000613974565b6000835b91509150600060028b5103881061398b57896139cc565b6139cc7f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b53878d8b600201815181106139bf57fe5b602002602001015161353a565b90506139f97f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b53888861353a565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015613a36576020820181803683370190505b506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613a9e578181015183820152602001613a86565b50505050905090810190601f168015613acb5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015613aed57600080fd5b505af1158015613b01573d6000803e3d6000fd5b50506001909901985061389f975050505050505050565b6060600282511015613b71576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015613b8957600080fd5b50604051908082528060200260200182016040528015613bb3578160200160208202803683370190505b5090508281600183510381518110613bc757fe5b60209081029190910101528151600019015b801561353257600080613c0987866001860381518110613bf557fe5b60200260200101518786815181106134df57fe5b91509150613c2b848481518110613c1c57fe5b60200260200101518383614132565b846001850381518110613c3a57fe5b6020908102919091010152505060001901613bd9565b60007f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b536001600160a01b03166393e59dc16040518163ffffffff1660e01b815260040160206040518083038186803b158015613cab57600080fd5b505afa158015613cbf573d6000803e3d6000fd5b505050506040513d6020811015613cd557600080fd5b505190506001600160a01b03811615613d955760408051630ad8019760e21b815233600482015290516001600160a01b03831691632b60065c916024808301926020929190829003018186803b158015613d2e57600080fd5b505afa158015613d42573d6000803e3d6000fd5b505050506040513d6020811015613d5857600080fd5b5051613d955760405162461bcd60e51b8152600401808060200182810382526025815260200180614bcc6025913960400191505060405180910390fd5b60005b60018451038110156140dc57600080858381518110613db357fe5b6020026020010151868460010181518110613dca57fe5b602002602001015191509150613de08282614911565b613e1b5760405162461bcd60e51b815260040180806020018281038252602a815260200180614ab7602a913960400191505060405180910390fd5b6000613e2783836142b0565b5090506000613e577f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b53858561353a565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015613e9857600080fd5b505afa158015613eac573d6000803e3d6000fd5b505050506040513d6060811015613ec257600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a811690891614613ef8578284613efb565b83835b91509150613f50828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561180c57600080fd5b9550613f5d868383613316565b945050505050600080856001600160a01b0316886001600160a01b031614613f8757826000613f8b565b6000835b91509150600060028d51038a10613fa2578b613fd6565b613fd67f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b53898f8d600201815181106139bf57fe5b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b83811015614060578181015183820152602001614048565b50505050905090810190601f16801561408d5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156140af57600080fd5b505af11580156140c3573d6000803e3d6000fd5b50506001909b019a50613d989950505050505050505050565b50505050565b80820382811115611123576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b60008084116141725760405162461bcd60e51b815260040180806020018281038252602c815260200180614ae1602c913960400191505060405180910390fd5b6000831180156141825750600082115b6141bd5760405162461bcd60e51b8152600401808060200182810382526028815260200180614b586028913960400191505060405180910390fd5b60006141d56103e86141cf8688614798565b90614798565b905060006141e96103e56141cf86896140e2565b905061420060018284816141f957fe5b04906147fb565b9695505050505050565b600080841161424a5760405162461bcd60e51b8152600401808060200182810382526025815260200180614b806025913960400191505060405180910390fd5b60008311801561425a5750600082115b6142955760405162461bcd60e51b8152600401808060200182810382526028815260200180614b586028913960400191505060405180910390fd5b826142a08584614798565b816142a757fe5b04949350505050565b600080826001600160a01b0316846001600160a01b031614156143045760405162461bcd60e51b8152600401808060200182810382526025815260200180614b0d6025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610614324578284614327565b83835b90925090506001600160a01b038216614387576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b60008060007f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b536001600160a01b03166393e59dc16040518163ffffffff1660e01b815260040160206040518083038186803b1580156143ec57600080fd5b505afa158015614400573d6000803e3d6000fd5b505050506040513d602081101561441657600080fd5b505190506001600160a01b038116156144d65760408051631b378f5160e21b815233600482015290516001600160a01b03831691636cde3d44916024808301926020929190829003018186803b15801561446f57600080fd5b505afa158015614483573d6000803e3d6000fd5b505050506040513d602081101561449957600080fd5b50516144d65760405162461bcd60e51b8152600401808060200182810382526025815260200180614bcc6025913960400191505060405180910390fd5b88886144e28282614911565b61451d5760405162461bcd60e51b815260040180806020018281038252602a815260200180614ab7602a913960400191505060405180910390fd5b6040805163e6a4390560e01b81526001600160a01b038d811660048301528c8116602483015291516000927f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b53169163e6a43905916044808301926020929190829003018186803b15801561459057600080fd5b505afa1580156145a4573d6000803e3d6000fd5b505050506040513d60208110156145ba57600080fd5b50516001600160a01b03161415614678577f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b536001600160a01b031663c9c653968c8c6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050602060405180830381600087803b15801561464b57600080fd5b505af115801561465f573d6000803e3d6000fd5b505050506040513d602081101561467557600080fd5b50505b6000806146a67f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b538e8e61484a565b915091508160001480156146b8575080155b156146c8578a9650899550614788565b60006146d58c848461420a565b90508a8111614728578881101561471d5760405162461bcd60e51b8152600401808060200182810382526026815260200180614b326026913960400191505060405180910390fd5b8b9750955085614786565b60006147358c848661420a565b90508c81111561474157fe5b8a8110156147805760405162461bcd60e51b8152600401808060200182810382526026815260200180614c116026913960400191505060405180910390fd5b97508a96505b505b5050505050965096945050505050565b60008115806147b3575050808202828282816147b057fe5b04145b611123576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b80820182811015611123576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b600080600061485985856142b0565b50905060008061486a88888861353a565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156148a257600080fd5b505afa1580156148b6573d6000803e3d6000fd5b505050506040513d60608110156148cc57600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b03878116908416146148ff578082614902565b81815b90999098509650505050505050565b6000807f00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b536001600160a01b03166393e59dc16040518163ffffffff1660e01b815260040160206040518083038186803b15801561496d57600080fd5b505afa158015614981573d6000803e3d6000fd5b505050506040513d602081101561499757600080fd5b505190506001600160a01b03811615614aac57806001600160a01b0316631fd62cc4856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156149f757600080fd5b505afa158015614a0b573d6000803e3d6000fd5b505050506040513d6020811015614a2157600080fd5b50518015614aa45750806001600160a01b0316631fd62cc4846040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015614a7757600080fd5b505afa158015614a8b573d6000803e3d6000fd5b505050506040513d6020811015614aa157600080fd5b50515b915050611123565b506001939250505056fe556e69737761705632526f757465723a20546f6b656e73206973206e6f742077686974656c6973746564556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e69737761705632526f757465723a20494e53554646494349454e545f425f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e54556e69737761705632526f757465723a204558434553534956455f494e5055545f414d4f554e54556e69737761705632526f757465723a20574c205045524d495353494f4e2044454e494544556e69737761705632526f757465723a20494e56414c49445f50415448000000556e69737761705632526f757465723a20494e53554646494349454e545f415f414d4f554e545472616e7366657248656c7065723a204554485f5452414e534645525f4641494c4544556e69737761705632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54556e69737761705632526f757465723a20455850495245440000000000000000a2646970667358221220597bbac47be74d605b05165d3fafd1279e5fa05c8b50ed04418f5c30a10f068764736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b53000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
-----Decoded View---------------
Arg [0] : _factory (address): 0x03407772F5EBFB9B10Df007A2DD6FFf4EdE47B53
Arg [1] : _WETH (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000003407772f5ebfb9b10df007a2dd6fff4ede47b53
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.