More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,374 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Remove Liquidity... | 17467055 | 595 days ago | IN | 0 ETH | 0.00349254 | ||||
Remove Liquidity... | 17466951 | 595 days ago | IN | 0 ETH | 0.00410268 | ||||
Remove Liquidity... | 17466947 | 595 days ago | IN | 0 ETH | 0.00422232 | ||||
Remove Liquidity... | 15548255 | 864 days ago | IN | 0 ETH | 0.00600815 | ||||
Remove Liquidity... | 15548250 | 864 days ago | IN | 0 ETH | 0.00354394 | ||||
Remove Liquidity... | 15474033 | 876 days ago | IN | 0 ETH | 0.0016847 | ||||
Remove Liquidity... | 15474020 | 876 days ago | IN | 0 ETH | 0.0027744 | ||||
Remove Liquidity... | 15474000 | 876 days ago | IN | 0 ETH | 0.00386325 | ||||
Remove Liquidity... | 15473980 | 876 days ago | IN | 0 ETH | 0.00541134 | ||||
Remove Liquidity... | 15473876 | 876 days ago | IN | 0 ETH | 0.00568766 | ||||
Remove Liquidity... | 15420248 | 884 days ago | IN | 0 ETH | 0.00257587 | ||||
Remove Liquidity... | 15419667 | 884 days ago | IN | 0 ETH | 0.00174556 | ||||
Remove Liquidity... | 15419664 | 884 days ago | IN | 0 ETH | 0.00104391 | ||||
Remove Liquidity... | 15419174 | 885 days ago | IN | 0 ETH | 0.00842718 | ||||
Remove Liquidity... | 15419153 | 885 days ago | IN | 0 ETH | 0.00023604 | ||||
Swap ETH For Exa... | 15419110 | 885 days ago | IN | 0.00960043 ETH | 0.00209235 | ||||
Remove Liquidity... | 15418721 | 885 days ago | IN | 0 ETH | 0.00330955 | ||||
Remove Liquidity... | 15418022 | 885 days ago | IN | 0 ETH | 0.00345524 | ||||
Remove Liquidity... | 15418021 | 885 days ago | IN | 0 ETH | 0.00399986 | ||||
Remove Liquidity... | 15418017 | 885 days ago | IN | 0 ETH | 0.00386808 | ||||
Remove Liquidity... | 15418014 | 885 days ago | IN | 0 ETH | 0.00483096 | ||||
Remove Liquidity... | 15417975 | 885 days ago | IN | 0 ETH | 0.00298935 | ||||
Remove Liquidity... | 15417945 | 885 days ago | IN | 0 ETH | 0.00205546 | ||||
Remove Liquidity... | 15417942 | 885 days ago | IN | 0 ETH | 0.00189765 | ||||
Swap Exact Token... | 15413829 | 885 days ago | IN | 0 ETH | 0.00090299 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
17467055 | 595 days ago | 0.14526538 ETH | ||||
17467055 | 595 days ago | 0.14526538 ETH | ||||
17466951 | 595 days ago | 0.00146732 ETH | ||||
17466951 | 595 days ago | 0.00146732 ETH | ||||
17466947 | 595 days ago | 0.43717882 ETH | ||||
17466947 | 595 days ago | 0.43717882 ETH | ||||
15548255 | 864 days ago | 0.03427892 ETH | ||||
15548255 | 864 days ago | 0.03427892 ETH | ||||
15548250 | 864 days ago | 0.07034228 ETH | ||||
15548250 | 864 days ago | 0.07034228 ETH | ||||
15473980 | 876 days ago | 0.02970653 ETH | ||||
15473980 | 876 days ago | 0.02970653 ETH | ||||
15473876 | 876 days ago | 0.09064957 ETH | ||||
15473876 | 876 days ago | 0.09064957 ETH | ||||
15420248 | 884 days ago | 0.02919088 ETH | ||||
15420248 | 884 days ago | 0.02919088 ETH | ||||
15419664 | 884 days ago | 0.03457012 ETH | ||||
15419664 | 884 days ago | 0.03457012 ETH | ||||
15419174 | 885 days ago | 0.44864058 ETH | ||||
15419174 | 885 days ago | 0.44864058 ETH | ||||
15419110 | 885 days ago | 0.00007164 ETH | ||||
15419110 | 885 days ago | 0.0095002 ETH | ||||
15419110 | 885 days ago | 0.00002858 ETH | ||||
15418721 | 885 days ago | 0.07538514 ETH | ||||
15418721 | 885 days ago | 0.07538514 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
PYESwapRouter
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import './SupportingSwap.sol'; contract PYESwapRouter is SupportingSwap { address private immutable USDC; constructor(address _factory, address _WETH, address _USDC, uint8 _adminFee, address _adminFeeAddress, address _adminFeeSetter) { require(_factory != address(0) && _WETH != address(0) && _USDC != address(0), "PYESwap: INVALID_ADDRESS"); factory = _factory; WETH = _WETH; USDC = _USDC; initialize(_factory, _adminFee, _adminFeeAddress, _adminFeeSetter); } receive() external payable { assert(msg.sender == WETH); // only accept ETH via fallback from the WETH contract emit Received(msg.sender, msg.value); } // **** ADD LIQUIDITY **** function _addLiquidity( address tokenA, address tokenB, bool supportsTokenFee, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin ) internal virtual returns (uint amountA, uint amountB) { // create the pair if it doesn't exist yet address pair = getPair(tokenA, tokenB); if (pair == address(0)) { if(tokenA == WETH || tokenA == USDC) { pair = IPYESwapFactory(factory).createPair(tokenB, tokenA, supportsTokenFee); pairFeeAddress[pair] = tokenA; } else { pair = IPYESwapFactory(factory).createPair(tokenA, tokenB, supportsTokenFee); pairFeeAddress[pair] = tokenB; } } (uint reserveA, uint reserveB) = PYESwapLibrary.getReserves(factory, tokenA, tokenB); if (reserveA == 0 && reserveB == 0) { (amountA, amountB) = (amountADesired, amountBDesired); if (tokenA == WETH || tokenA == USDC) { pairFeeAddress[pair] = tokenA; } else { pairFeeAddress[pair] = tokenB; } } else { uint amountBOptimal = PYESwapLibrary.quote(amountADesired, reserveA, reserveB); if (amountBOptimal <= amountBDesired) { require(amountBOptimal >= amountBMin, 'PYESwapRouter: INSUFFICIENT_B_AMOUNT'); (amountA, amountB) = (amountADesired, amountBOptimal); } else { uint amountAOptimal = PYESwapLibrary.quote(amountBDesired, reserveB, reserveA); assert(amountAOptimal <= amountADesired); require(amountAOptimal >= amountAMin, 'PYESwapRouter: INSUFFICIENT_A_AMOUNT'); (amountA, amountB) = (amountAOptimal, amountBDesired); } } } function getPair(address tokenA,address tokenB) public view returns (address){ return IPYESwapFactory(factory).getPair(tokenA, tokenB); } function addLiquidity( address tokenA, address tokenB, bool supportsTokenFee, 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, supportsTokenFee, amountADesired, amountBDesired, amountAMin, amountBMin); address pair = PYESwapLibrary.pairFor(factory, tokenA, tokenB); TransferHelper.safeTransferFrom(tokenA, msg.sender, address(this), amountA); TransferHelper.safeTransfer(tokenA, pair, amountA); TransferHelper.safeTransferFrom(tokenB, msg.sender, address(this), amountB); TransferHelper.safeTransfer(tokenB, pair, amountB); liquidity = IPYESwapPair(pair).mint(to); } function addLiquidityETH( address token, bool supportsTokenFee, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external virtual override payable ensure(deadline) returns (uint amountETH, uint amountToken, uint liquidity) { (amountETH, amountToken) = _addLiquidity( WETH, token, supportsTokenFee, msg.value, amountTokenDesired, amountETHMin, amountTokenMin ); address pair = PYESwapLibrary.pairFor(factory, token, WETH); TransferHelper.safeTransferFrom(token, msg.sender, address(this), amountToken); TransferHelper.safeTransfer(token, pair, amountToken); IWETH(WETH).deposit{value: amountETH}(); assert(IWETH(WETH).transfer(pair, amountETH)); liquidity = IPYESwapPair(pair).mint(to); // refund dust eth, if any if (msg.value > amountETH) TransferHelper.safeTransferETH(msg.sender, msg.value - amountETH); } // **** REMOVE LIQUIDITY **** function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) public virtual override ensure(deadline) returns (uint amountA, uint amountB) { address pair = PYESwapLibrary.pairFor(factory, tokenA, tokenB); TransferHelper.safeTransferFrom(pair, msg.sender, pair, liquidity); // send liquidity to pair (uint amount0, uint amount1) = IPYESwapPair(pair).burn(to); (address token0,) = PYESwapLibrary.sortTokens(tokenA, tokenB); (amountA, amountB) = tokenA == token0 ? (amount0, amount1) : (amount1, amount0); require(amountA >= amountAMin, 'PYESwapRouter: INSUFFICIENT_A_AMOUNT'); require(amountB >= amountBMin, 'PYESwapRouter: 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 = PYESwapLibrary.pairFor(factory, tokenA, tokenB); uint value = approveMax ? type(uint).max - 1 : liquidity; IPYESwapPair(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 = PYESwapLibrary.pairFor(factory, token, WETH); uint value = approveMax ? type(uint).max - 1 : liquidity; IPYESwapPair(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, IERC20(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 = PYESwapLibrary.pairFor(factory, token, WETH); uint value = approveMax ? type(uint).max - 1 : liquidity; IPYESwapPair(pair).permit(msg.sender, address(this), value, deadline, v, r, s); amountETH = removeLiquidityETHSupportingFeeOnTransferTokens( token, liquidity, amountTokenMin, amountETHMin, to, deadline ); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import './interfaces/IPYESwapRouter.sol'; import './libraries/TransferHelper.sol'; import './libraries/PYESwapLibrary.sol'; import './interfaces/IERC20.sol'; import './interfaces/IWETH.sol'; import './interfaces/IToken.sol'; import './FeeStore.sol'; abstract contract SupportingSwap is FeeStore, IPYESwapRouter { address public override factory; address public override WETH; event Received(address sender, uint256 value); modifier ensure(uint deadline) { require(deadline >= block.timestamp, 'PYESwapRouter: EXPIRED'); _; } function _swap(address _feeCheck, uint[] memory amounts, address[] memory path, address _to) internal virtual { for (uint i; i < path.length - 1; i++) { (address input, address output) = (path[i], path[i + 1]); (address token0,) = PYESwapLibrary.sortTokens(input, output); IPYESwapPair pair = IPYESwapPair(PYESwapLibrary.pairFor(factory, input, output)); bool isExcluded = PYESwapLibrary.checkIsExcluded(_feeCheck, address(pair)); uint amountOut = amounts[i + 1]; { uint amountsI = amounts[i]; address[] memory _path = path; address finalPath = i < _path.length - 2 ? _path[i + 2] : address(0); (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOut) : (amountOut, uint(0)); (uint amount0Fee, uint amount1Fee) = PYESwapLibrary._calculateFees(factory, input, output, amountsI, amount0Out, amount1Out, isExcluded); address to = i < _path.length - 2 ? PYESwapLibrary.pairFor(factory, output, finalPath) : _to; pair.swap( amount0Out, amount1Out, amount0Fee, amount1Fee, 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) { require(path.length == 2, "PYESwapRouter: ONLY_TWO_TOKENS_ALLOWED"); address pair = PYESwapLibrary.pairFor(factory, path[0], path[1]); uint adminFeeDeduct; if(path[0] == pairFeeAddress[pair]){ (amountIn,adminFeeDeduct) = PYESwapLibrary.adminFeeCalculation(amountIn, adminFee); TransferHelper.safeTransferFrom( path[0], msg.sender, adminFeeAddress, adminFeeDeduct ); } bool isExcluded = PYESwapLibrary.checkIsExcluded(to, pair); amounts = PYESwapLibrary.amountsOut(factory, amountIn, path, isExcluded); require(amounts[amounts.length - 1] >= amountOutMin, 'PYESwapRouter: INSUFFICIENT_OUTPUT_AMOUNT'); TransferHelper.safeTransferFrom( path[0], msg.sender, pair, amounts[0] ); _swap(to, 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) { require(path.length == 2, "PYESwapRouter: ONLY_TWO_TOKENS_ALLOWED"); address pair = PYESwapLibrary.pairFor(factory, path[0], path[1]); bool isExcluded = PYESwapLibrary.checkIsExcluded(to, pair); uint adminFeeDeduct; if(path[0] == pairFeeAddress[pair]) { amounts = PYESwapLibrary.amountsIn(factory, amountOut, path, isExcluded); require(amounts[0] <= amountInMax, 'PYESwapRouter: EXCESSIVE_INPUT_AMOUNT'); (amounts[0], adminFeeDeduct) = PYESwapLibrary.adminFeeCalculation(amounts[0], adminFee); TransferHelper.safeTransferFrom( path[0], msg.sender, adminFeeAddress, adminFeeDeduct ); amounts = PYESwapLibrary.amountsOut(factory, amounts[0], path, isExcluded); TransferHelper.safeTransferFrom( path[0], msg.sender, pair, amounts[0] ); } else { amounts = PYESwapLibrary.amountsIn(factory, amountOut, path, isExcluded); require(amounts[0] <= amountInMax, "PYESwapRouter: EXCESSIVE_INPUT_AMOUNT"); TransferHelper.safeTransferFrom( path[0], msg.sender, pair, amounts[0] ); } _swap(to, 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.length == 2, "PYESwapRouter: ONLY_TWO_TOKENS_ALLOWED"); require(path[0] == WETH, "PYESwapRouter: INVALID_PATH"); uint eth = msg.value; address pair = PYESwapLibrary.pairFor(factory, path[0], path[1]); bool isExcluded = PYESwapLibrary.checkIsExcluded(to, pair); uint adminFeeDeduct; if(path[0] == pairFeeAddress[pair]){ (eth, adminFeeDeduct) = PYESwapLibrary.adminFeeCalculation(eth, adminFee); if(address(this) != adminFeeAddress){ payable(adminFeeAddress).transfer(adminFeeDeduct); } } amounts = PYESwapLibrary.amountsOut(factory, msg.value, path, isExcluded); require(amounts[amounts.length - 1] >= amountOutMin, "PYESwapRouter: INSUFFICIENT_OUTPUT_AMOUNT"); IWETH(WETH).deposit{value: amounts[0]}(); assert(IWETH(WETH).transfer(pair, amounts[0])); _swap(to, 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.length == 2, "PYESwapRouter: ONLY_TWO_TOKENS_ALLOWED"); require(path[path.length - 1] == WETH, 'PYESwapRouter: INVALID_PATH'); uint adminFeeDeduct; address pair = PYESwapLibrary.pairFor(factory, path[0], path[1]); bool isExcluded = PYESwapLibrary.checkIsExcluded(to, pair); if(path[0] == pairFeeAddress[pair]){ amounts = PYESwapLibrary.amountsIn(factory, amountOut, path, isExcluded); require(amounts[0] <= amountInMax, 'PYESwapRouter: EXCESSIVE_INPUT_AMOUNT'); (amounts[0],adminFeeDeduct) = PYESwapLibrary.adminFeeCalculation(amounts[0],adminFee); TransferHelper.safeTransferFrom( path[0], msg.sender, adminFeeAddress, adminFeeDeduct ); amounts = PYESwapLibrary.amountsOut(factory, amounts[0], path, isExcluded); TransferHelper.safeTransferFrom( path[0], msg.sender, pair, amounts[0] ); } else { amounts = PYESwapLibrary.amountsIn(factory, amountOut, path, isExcluded); require(amounts[0] <= amountInMax, 'PYESwapRouter: EXCESSIVE_INPUT_AMOUNT'); TransferHelper.safeTransferFrom( path[0], msg.sender, pair, amounts[0] ); } _swap(to, amounts, path, address(this)); uint amountETHOut = amounts[amounts.length - 1]; if(path[1] == pairFeeAddress[pair]){ (amountETHOut,adminFeeDeduct) = PYESwapLibrary.adminFeeCalculation(amountETHOut,adminFee); } IWETH(WETH).withdraw(amountETHOut); TransferHelper.safeTransferETH(to, amountETHOut); } function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external virtual override ensure(deadline) returns (uint[] memory amounts) { require(path.length == 2, "PYESwapRouter: ONLY_TWO_TOKENS_ALLOWED"); require(path[path.length - 1] == WETH, 'PYESwapRouter: INVALID_PATH'); uint adminFeeDeduct; address pair = PYESwapLibrary.pairFor(factory, path[0], path[1]); bool isExcluded = PYESwapLibrary.checkIsExcluded(to, pair); if(path[0] == pairFeeAddress[pair]){ (amountIn,adminFeeDeduct) = PYESwapLibrary.adminFeeCalculation(amountIn, adminFee); TransferHelper.safeTransferFrom( path[0], msg.sender, adminFeeAddress, adminFeeDeduct ); } amounts = PYESwapLibrary.amountsOut(factory, amountIn, path, isExcluded); require(amounts[amounts.length - 1] >= amountOutMin, 'PYESwapRouter: INSUFFICIENT_OUTPUT_AMOUNT'); TransferHelper.safeTransferFrom( path[0], msg.sender, pair, amounts[0] ); _swap(to, amounts, path, address(this)); uint amountETHOut = amounts[amounts.length - 1]; if(path[1] == pairFeeAddress[pair]){ (amountETHOut,adminFeeDeduct) = PYESwapLibrary.adminFeeCalculation(amountETHOut,adminFee); } IWETH(WETH).withdraw(amountETHOut); TransferHelper.safeTransferETH(to, amountETHOut); } function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external virtual override payable ensure(deadline) returns (uint[] memory amounts) { require(path.length == 2, "PYESwapRouter: ONLY_TWO_TOKENS_ALLOWED"); require(path[0] == WETH, 'PYESwapRouter: INVALID_PATH'); address pair = PYESwapLibrary.pairFor(factory, path[0], path[1]); bool isExcluded = PYESwapLibrary.checkIsExcluded(to, pair); uint adminFeeDeduct; if(path[0] == pairFeeAddress[pair]){ amounts = PYESwapLibrary.amountsIn(factory, amountOut, path, isExcluded); require(amounts[0] <= msg.value, 'PYESwapRouter: EXCESSIVE_INPUT_AMOUNT'); (amounts[0], adminFeeDeduct) = PYESwapLibrary.adminFeeCalculation(amounts[0], adminFee); if(address(this) != adminFeeAddress){ payable(adminFeeAddress).transfer(adminFeeDeduct); } amounts = PYESwapLibrary.amountsOut(factory, amounts[0], path, isExcluded); IWETH(WETH).deposit{value: amounts[0]}(); assert(IWETH(WETH).transfer(pair, amounts[0])); } else { amounts = PYESwapLibrary.amountsIn(factory, amountOut, path, isExcluded); require(amounts[0] <= msg.value, 'PYESwapRouter: EXCESSIVE_INPUT_AMOUNT'); IWETH(WETH).deposit{value: amounts[0]}(); assert(IWETH(WETH).transfer(PYESwapLibrary.pairFor(factory, path[0], path[1]), amounts[0])); } _swap(to, amounts, path, to); // refund dust eth, if any uint bal = amounts[0] + adminFeeDeduct; if (msg.value > bal) TransferHelper.safeTransferETH(msg.sender, msg.value - bal); } // **** SWAP (supporting fee-on-transfer tokens) **** // requires the initial amount to have already been sent to the first pair function _swapSupportingFeeOnTransferTokens(address _feeCheck, address[] memory path, address _to) internal virtual { for (uint i; i < path.length - 1; i++) { (address input, address output) = (path[i], path[i + 1]); (address token0,) = PYESwapLibrary.sortTokens(input, output); IPYESwapPair pair = IPYESwapPair(PYESwapLibrary.pairFor(factory, input, output)); bool isExcluded = PYESwapLibrary.checkIsExcluded(_feeCheck, address(pair)); (uint amountInput, uint amountOutput) = PYESwapLibrary._calculateAmounts(factory, input, output, token0, isExcluded); (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOutput) : (amountOutput, uint(0)); (uint amount0Fee, uint amount1Fee) = PYESwapLibrary._calculateFees(factory, input, output, amountInput, amount0Out, amount1Out, isExcluded); { address[] memory _path = path; address finalPath = i < _path.length - 2 ? _path[i + 2] : address(0); address to = i < _path.length - 2 ? PYESwapLibrary.pairFor(factory, output, finalPath) : _to; pair.swap(amount0Out, amount1Out, amount0Fee, amount1Fee, to, new bytes(0)); } } } function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external virtual override ensure(deadline) { require(path.length == 2, "PYESwapRouter: ONLY_TWO_TOKENS_ALLOWED"); address pair = PYESwapLibrary.pairFor(factory, path[0], path[1]); uint adminFeeDeduct; if(path[0] == pairFeeAddress[pair]){ (amountIn,adminFeeDeduct) = PYESwapLibrary.adminFeeCalculation(amountIn,adminFee); TransferHelper.safeTransferFrom( path[0], msg.sender, adminFeeAddress, adminFeeDeduct ); } TransferHelper.safeTransferFrom( path[0], msg.sender, pair, amountIn ); uint balanceBefore = IERC20(path[path.length - 1]).balanceOf(to); _swapSupportingFeeOnTransferTokens(to, path, to); if(path[1] == pairFeeAddress[pair]){ (amountOutMin,adminFeeDeduct) = PYESwapLibrary.adminFeeCalculation(amountOutMin,adminFee); } require( IERC20(path[path.length - 1]).balanceOf(to) - balanceBefore >= amountOutMin, 'PYESwapRouter: INSUFFICIENT_OUTPUT_AMOUNT' ); } function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external virtual override payable ensure(deadline) { require(path.length == 2, "PYESwapRouter: ONLY_TWO_TOKENS_ALLOWED"); require(path[0] == WETH, 'PYESwapRouter: INVALID_PATH'); uint amountIn = msg.value; address pair = PYESwapLibrary.pairFor(factory, path[0], path[1]); uint adminFeeDeduct; if(path[0] == pairFeeAddress[pair]){ (amountIn,adminFeeDeduct) = PYESwapLibrary.adminFeeCalculation(amountIn,adminFee); if(address(this) != adminFeeAddress){ payable(adminFeeAddress).transfer(adminFeeDeduct); } } IWETH(WETH).deposit{value: amountIn}(); assert(IWETH(WETH).transfer(pair, amountIn)); uint balanceBefore = IERC20(path[path.length - 1]).balanceOf(to); _swapSupportingFeeOnTransferTokens(to, path, to); if(path[1] == pairFeeAddress[pair]){ (amountOutMin,adminFeeDeduct) = PYESwapLibrary.adminFeeCalculation(amountOutMin,adminFee); } require( IERC20(path[path.length - 1]).balanceOf(to) - balanceBefore >= amountOutMin, 'PYESwapRouter: INSUFFICIENT_OUTPUT_AMOUNT' ); } function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external virtual override ensure(deadline) { require(path.length == 2, "PYESwapRouter: ONLY_TWO_TOKENS_ALLOWED"); require(path[path.length - 1] == WETH, 'PYESwapRouter: INVALID_PATH'); address pair = PYESwapLibrary.pairFor(factory, path[0], path[1]); if(path[0] == pairFeeAddress[pair]){ uint adminFeeDeduct = (amountIn * adminFee) / (10000); amountIn = amountIn - adminFeeDeduct; TransferHelper.safeTransferFrom( path[0], msg.sender, adminFeeAddress, adminFeeDeduct ); } TransferHelper.safeTransferFrom( path[0], msg.sender, pair, amountIn ); _swapSupportingFeeOnTransferTokens(to, path, address(this)); uint amountOut = IERC20(WETH).balanceOf(address(this)); amountOutMin; if(path[1] == pairFeeAddress[pair]){ uint adminFeeDeduct = (amountOut * adminFee) / (10000); amountOut = amountOut - adminFeeDeduct; } IWETH(WETH).withdraw(amountOut); TransferHelper.safeTransferETH(to, amountOut); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import './interfaces/IPYESwapFactory.sol'; import './interfaces/IPYESwapPair.sol'; abstract contract FeeStore { uint public adminFee; address public adminFeeAddress; address public adminFeeSetter; address public factoryAddress; mapping (address => address) public pairFeeAddress; event AdminFeeSet(uint adminFee, address adminFeeAddress); function initialize(address _factory, uint256 _adminFee, address _adminFeeAddress, address _adminFeeSetter) internal { factoryAddress = _factory; adminFee = _adminFee; adminFeeAddress = _adminFeeAddress; adminFeeSetter = _adminFeeSetter; } function setAdminFee (address _adminFeeAddress, uint _adminFee) external { require(msg.sender == adminFeeSetter); require(_adminFee <= 100); adminFeeAddress = _adminFeeAddress; adminFee = _adminFee; emit AdminFeeSet(adminFee, adminFeeAddress); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; interface IToken { function addPair(address pair, address token) external; function depositLPFee(uint amount, address token) external; function isExcludedFromFee(address account) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; interface IERC20 { 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); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import '../interfaces/IPYESwapPair.sol'; import '../interfaces/IPYESwapFactory.sol'; import '../interfaces/IToken.sol'; import '../interfaces/IERC20.sol'; import "./SafeMath.sol"; library PYESwapLibrary { // 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, 'PYESwapLibrary: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), 'PYESwapLibrary: 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(uint160(uint(keccak256(abi.encodePacked( hex'ff', factory, keccak256(abi.encodePacked(token0, token1)), hex'7322d196a5476ed6b44fc18910ef3e8a09c2baea2da66bd2cf58f5b3c9dc57ce' // 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,,) = IPYESwapPair(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, 'PYESwapLibrary: INSUFFICIENT_AMOUNT'); require(reserveA > 0 && reserveB > 0, 'PYESwapLibrary: INSUFFICIENT_LIQUIDITY'); amountB = (amountA * 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, bool tokenFee, uint totalFee) internal pure returns (uint amountOut) { require(amountIn > 0, 'PYESwapLibrary: INSUFFICIENT_INPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'PYESwapLibrary: INSUFFICIENT_LIQUIDITY'); uint amountInMultiplier = tokenFee ? 10000 - totalFee : 10000; uint amountInWithFee = amountIn * amountInMultiplier; uint numerator = amountInWithFee * reserveOut; uint denominator = (reserveIn * 10000) + 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, bool tokenFee, uint totalFee) internal pure returns (uint amountIn) { require(amountOut > 0, 'PYESwapLibrary: INSUFFICIENT_OUTPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'PYESwapLibrary: INSUFFICIENT_LIQUIDITY'); uint amountOutMultiplier = tokenFee ? 10000 - totalFee : 10000; uint numerator = (reserveIn * amountOut) * 10000; uint denominator = (reserveOut - amountOut) * amountOutMultiplier; amountIn = (numerator / denominator) + 1; } function amountsOut(address factory, uint amountIn, address[] memory path, bool isExcluded) internal view returns (uint[] memory) { return isExcluded ? getAmountsOutWithoutFee(factory, amountIn, path) : getAmountsOut(factory, amountIn, path); } function amountsIn(address factory, uint amountOut, address[] memory path, bool isExcluded) internal view returns (uint[] memory) { return isExcluded ? getAmountsInWithoutFee(factory, amountOut, path) : getAmountsIn(factory, amountOut, path); } // 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, 'PYESwapLibrary: INVALID_PATH'); amounts = new uint[](path.length); amounts[0] = amountIn; for (uint i; i < path.length - 1; i++) { IPYESwapPair pair = IPYESwapPair(pairFor(factory, path[i], path[i + 1])); address baseToken = pair.baseToken(); uint totalFee = pair.getTotalFee(); (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]); amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut, baseToken != address(0), totalFee); } } // 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, 'PYESwapLibrary: INVALID_PATH'); amounts = new uint[](path.length); amounts[amounts.length - 1] = amountOut; for (uint i = path.length - 1; i > 0; i--) { IPYESwapPair pair = IPYESwapPair(pairFor(factory, path[i - 1], path[i])); address baseToken = pair.baseToken(); uint totalFee = pair.getTotalFee(); (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]); amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut, baseToken != address(0), totalFee); } } // performs chained getAmountOut calculations on any number of pairs function getAmountsOutWithoutFee(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'PYESwapLibrary: 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, false, 0); } } // performs chained getAmountIn calculations on any number of pairs function getAmountsInWithoutFee(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'PYESwapLibrary: 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, false, 0); } } function adminFeeCalculation(uint256 _amounts,uint256 _adminFee) internal pure returns (uint256,uint256) { uint adminFeeDeduct = (_amounts * _adminFee) / (10000); _amounts = _amounts - adminFeeDeduct; return (_amounts,adminFeeDeduct); } function checkIsExcluded(address account, address pairAddress) internal view returns (bool isExcluded) { IPYESwapPair pair = IPYESwapPair(pairAddress); address baseToken = pair.baseToken(); if(baseToken == address(0)) { isExcluded = true; } else { address token0 = pair.token0(); address token1 = pair.token1(); IToken token = baseToken == token0 ? IToken(token1) : IToken(token0); try token.isExcludedFromFee(account) returns (bool isExcludedFromFee) { isExcluded = isExcludedFromFee; } catch { isExcluded = false; } } } function _calculateFees(address factory, address input, address output, uint amountIn, uint amount0Out, uint amount1Out, bool isExcluded) internal view returns (uint amount0Fee, uint amount1Fee) { IPYESwapPair pair = IPYESwapPair(pairFor(factory, input, output)); (address token0,) = sortTokens(input, output); address baseToken = pair.baseToken(); uint totalFee = pair.getTotalFee(); amount0Fee = baseToken != token0 || isExcluded ? uint(0) : input == token0 ? (amountIn * totalFee) / (10**4) : (amount0Out * totalFee) / (10**4); amount1Fee = baseToken == token0 || isExcluded ? uint(0) : input != token0 ? (amountIn * totalFee) / (10**4) : (amount1Out * totalFee) / (10**4); } function _calculateAmounts(address factory, address input, address output, address token0, bool isExcluded) internal view returns (uint amountInput, uint amountOutput) { IPYESwapPair pair = IPYESwapPair(pairFor(factory, input, output)); (uint reserve0, uint reserve1,, address baseToken) = pair.getReserves(); uint totalFee = pair.getTotalFee(); (uint reserveInput, uint reserveOutput) = input == token0 ? (reserve0, reserve1) : (reserve1, reserve0); amountInput = IERC20(input).balanceOf(address(pair)) - reserveInput; amountOutput = getAmountOut(amountInput, reserveInput, reserveOutput, baseToken != address(0) && !isExcluded, isExcluded ? 0 : totalFee); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.8.4; // 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, uint256 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::safeApprove: approve failed' ); } function safeTransfer( address token, address to, uint256 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::safeTransfer: transfer failed' ); } function safeTransferFrom( address token, address from, address to, uint256 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::transferFrom: transferFrom failed' ); } function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'TransferHelper::safeTransferETH: ETH transfer failed'); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import './IPYESwapRouter01.sol'; interface IPYESwapRouter is IPYESwapRouter01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; // a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math) library SafeMath { 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'); } function div(uint x, uint y) internal pure returns (uint z) { require(y > 0, "ds-math-div-underflow"); z = x / y; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; interface IPYESwapFactory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function pairExist(address pair) external view returns (bool); function createPair(address tokenA, address tokenB, bool supportsTokenFee) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; function routerInitialize(address) external; function routerAddress() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; interface IPYESwapPair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function baseToken() external view returns (address); function getTotalFee() external view returns (uint); 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 updateTotalFee(uint totalFee) external returns (bool); 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, address _baseToken); 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, uint amount0Fee, uint amount1Fee, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; function setBaseToken(address _baseToken) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; interface IPYESwapRouter01 { function factory() external view returns (address); function WETH() external view returns (address); function addLiquidity( address tokenA, address tokenB, bool supportsTokenFee, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, bool supportsTokenFee, 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "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"},{"internalType":"address","name":"_USDC","type":"address"},{"internalType":"uint8","name":"_adminFee","type":"uint8"},{"internalType":"address","name":"_adminFeeAddress","type":"address"},{"internalType":"address","name":"_adminFeeSetter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"adminFee","type":"uint256"},{"indexed":false,"internalType":"address","name":"adminFeeAddress","type":"address"}],"name":"AdminFeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Received","type":"event"},{"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":"bool","name":"supportsTokenFee","type":"bool"},{"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":"bool","name":"supportsTokenFee","type":"bool"},{"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":"amountETH","type":"uint256"},{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"adminFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminFeeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminFeeSetter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factoryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pairFeeAddress","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":"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":"address","name":"_adminFeeAddress","type":"address"},{"internalType":"uint256","name":"_adminFee","type":"uint256"}],"name":"setAdminFee","outputs":[],"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
60a06040523480156200001157600080fd5b50604051620061a3380380620061a3833981016040819052620000349162000151565b6001600160a01b038616158015906200005557506001600160a01b03851615155b80156200006a57506001600160a01b03841615155b620000bb5760405162461bcd60e51b815260206004820152601860248201527f505945537761703a20494e56414c49445f414444524553530000000000000000604482015260640160405180910390fd5b600580546001600160a01b03199081166001600160a01b03898116918217909355600680548316898516179055606087901b6001600160601b031916608052600380548316909117905560ff851660005560018054821685841617905560028054909116918316919091179055505050505050620001d7565b80516001600160a01b03811681146200014c57600080fd5b919050565b60008060008060008060c087890312156200016a578182fd5b620001758762000134565b9550620001856020880162000134565b9450620001956040880162000134565b9350606087015160ff81168114620001ab578283fd5b9250620001bb6080880162000134565b9150620001cb60a0880162000134565b90509295509295509295565b60805160601c615fa6620001fd60003960008181613e5401526140630152615fa66000f3fe6080604052600436106101855760003560e01c8063966dae0e116100d1578063baa2abde1161008a578063ded9382a11610064578063ded9382a14610500578063e07769ed14610520578063e6a4390514610540578063fb3bdb411461056057600080fd5b8063baa2abde1461048a578063c45a0155146104aa578063dcacce69146104ca57600080fd5b8063966dae0e146103ee578063a0be06f91461040e578063ad5c464814610424578063af2979eb14610444578063b6f9de9514610464578063b7e0d4c01461047757600080fd5b80634a25d94a1161013e5780635c11d795116101185780635c11d79514610379578063791ac9471461039b5780637ff36ab5146103bb5780638803dbee146103ce57600080fd5b80634a25d94a146102f05780635a47ddc3146103105780635b0d59841461034b57600080fd5b806302751cec146101f157806308a171491461022b57806318cbafe5146102635780632195995c1461029057806338ed1739146102b05780633b07a734146102d057600080fd5b366101ec576006546001600160a01b031633146101b257634e487b7160e01b600052600160045260246000fd5b604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1005b600080fd5b3480156101fd57600080fd5b5061021161020c3660046158aa565b610573565b604080519283526020830191909152015b60405180910390f35b34801561023757600080fd5b5060015461024b906001600160a01b031681565b6040516001600160a01b039091168152602001610222565b34801561026f57600080fd5b5061028361027e366004615ab8565b610640565b6040516102229190615b86565b34801561029c57600080fd5b506102116102ab3660046157a1565b610ab6565b3480156102bc57600080fd5b506102836102cb366004615ab8565b610b86565b3480156102dc57600080fd5b5060025461024b906001600160a01b031681565b3480156102fc57600080fd5b5061028361030b366004615ab8565b610e48565b34801561031c57600080fd5b5061033061032b3660046156a2565b6111f5565b60408051938452602084019290925290820152606001610222565b34801561035757600080fd5b5061036b610366366004615907565b611307565b604051908152602001610222565b34801561038557600080fd5b50610399610394366004615ab8565b6113d2565b005b3480156103a757600080fd5b506103996103b6366004615ab8565b6117af565b6102836103c9366004615a30565b611b45565b3480156103da57600080fd5b506102836103e9366004615ab8565b611f3e565b3480156103fa57600080fd5b5060035461024b906001600160a01b031681565b34801561041a57600080fd5b5061036b60005481565b34801561043057600080fd5b5060065461024b906001600160a01b031681565b34801561045057600080fd5b5061036b61045f3660046158aa565b612266565b610399610472366004615a30565b6123a0565b61033061048536600461584a565b612824565b34801561049657600080fd5b506102116104a5366004615730565b612a56565b3480156104b657600080fd5b5060055461024b906001600160a01b031681565b3480156104d657600080fd5b5061024b6104e5366004615632565b6004602052600090815260409020546001600160a01b031681565b34801561050c57600080fd5b5061021161051b366004615907565b612bad565b34801561052c57600080fd5b5061039961053b36600461587f565b612c93565b34801561054c57600080fd5b5061024b61055b36600461566a565b612d19565b61028361056e366004615a30565b612da6565b60008082428110156105a05760405162461bcd60e51b815260040161059790615c58565b60405180910390fd5b6006546105bc908a906001600160a01b03168a8a8a308a612a56565b90935091506105cc89868561349e565b600654604051632e1a7d4d60e01b8152600481018490526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561061257600080fd5b505af1158015610626573d6000803e3d6000fd5b5050505061063485836135cf565b50965096945050505050565b606081428110156106635760405162461bcd60e51b815260040161059790615c58565b600285146106835760405162461bcd60e51b815260040161059790615d03565b6006546001600160a01b0316868661069c600182615ebf565b8181106106b957634e487b7160e01b600052603260045260246000fd5b90506020020160208101906106ce9190615632565b6001600160a01b0316146106f45760405162461bcd60e51b815260040161059790615dd3565b6005546000908190610777906001600160a01b03168989848161072757634e487b7160e01b600052603260045260246000fd5b905060200201602081019061073c9190615632565b8a8a600181811061075d57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906107729190615632565b6136ae565b905060006107858783613787565b6001600160a01b038084166000908152600460205260408120549293509116908a908a90816107c457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906107d99190615632565b6001600160a01b03161415610844576107f48b6000546139b7565b909b509250610844898960008161081b57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108309190615632565b60015433906001600160a01b0316866139ed565b600554604080516020808c0282810182019093528b8252610890936001600160a01b0316928f92918e918e91829190850190849080828437600092019190915250879250613b2b915050565b94508985600187516108a29190615ebf565b815181106108c057634e487b7160e01b600052603260045260246000fd5b602002602001015110156108e65760405162461bcd60e51b815260040161059790615c0f565b61094f8989600081811061090a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061091f9190615632565b33848860008151811061094257634e487b7160e01b600052603260045260246000fd5b60200260200101516139ed565b61098f87868b8b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613b56915050565b600085600187516109a09190615ebf565b815181106109be57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b0380861660009081526004909352604090922054909250168a8a6001818110610a0a57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610a1f9190615632565b6001600160a01b03161415610a3f57610a3a816000546139b7565b945090505b600654604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015610a8557600080fd5b505af1158015610a99573d6000803e3d6000fd5b50505050610aa788826135cf565b50505050509695505050505050565b60055460009081908190610ad4906001600160a01b03168f8f6136ae565b9050600087610ae3578c610af0565b610af06001600019615ebf565b60405163d505accf60e01b81529091506001600160a01b0383169063d505accf90610b2b903390309086908f908e908e908e90600401615b45565b600060405180830381600087803b158015610b4557600080fd5b505af1158015610b59573d6000803e3d6000fd5b50505050610b6c8f8f8f8f8f8f8f612a56565b809450819550505050509b509b9950505050505050505050565b60608142811015610ba95760405162461bcd60e51b815260040161059790615c58565b60028514610bc95760405162461bcd60e51b815260040161059790615d03565b600554600090610c30906001600160a01b031688888481610bfa57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c0f9190615632565b8989600181811061075d57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03808216600090815260046020526040812054929350911688888381610c6d57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c829190615632565b6001600160a01b03161415610ced57610c9d8a6000546139b7565b909a509050610ced8888600081610cc457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610cd99190615632565b60015433906001600160a01b0316846139ed565b6000610cf98784613787565b600554604080516020808d0282810182019093528c8252939450610d48936001600160a01b03909316928f928e918e918291850190849080828437600092019190915250879250613b2b915050565b9450898560018751610d5a9190615ebf565b81518110610d7857634e487b7160e01b600052603260045260246000fd5b60200260200101511015610d9e5760405162461bcd60e51b815260040161059790615c0f565b610dfa89896000818110610dc257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610dd79190615632565b33858860008151811061094257634e487b7160e01b600052603260045260246000fd5b610e3a87868b8b808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508d9250613b56915050565b505050509695505050505050565b60608142811015610e6b5760405162461bcd60e51b815260040161059790615c58565b60028514610e8b5760405162461bcd60e51b815260040161059790615d03565b6006546001600160a01b03168686610ea4600182615ebf565b818110610ec157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610ed69190615632565b6001600160a01b031614610efc5760405162461bcd60e51b815260040161059790615dd3565b6005546000908190610f2f906001600160a01b03168989848161072757634e487b7160e01b600052603260045260246000fd5b90506000610f3d8783613787565b6001600160a01b038084166000908152600460205260408120549293509116908a908a9081610f7c57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610f919190615632565b6001600160a01b0316141561115f57600554604080516020808c0282810182019093528b8252610fec936001600160a01b0316928f92918e918e91829190850190849080828437600092019190915250879250613dff915050565b9450898560008151811061101057634e487b7160e01b600052603260045260246000fd5b602002602001015111156110365760405162461bcd60e51b815260040161059790615bca565b61106a8560008151811061105a57634e487b7160e01b600052603260045260246000fd5b60200260200101516000546139b7565b8660008151811061108b57634e487b7160e01b600052603260045260246000fd5b602002602001018195508281525050506110bf8989600081811061081b57634e487b7160e01b600052603260045260246000fd5b6005548551611134916001600160a01b03169087906000906110f157634e487b7160e01b600052603260045260246000fd5b60200260200101518b8b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250879250613b2b915050565b945061115a8989600081811061090a57634e487b7160e01b600052603260045260246000fd5b61094f565b600554604080516020808c0282810182019093528b82526111ab936001600160a01b0316928f92918e918e91829190850190849080828437600092019190915250879250613dff915050565b945089856000815181106111cf57634e487b7160e01b600052603260045260246000fd5b602002602001015111156108e65760405162461bcd60e51b815260040161059790615bca565b6000806000834281101561121b5760405162461bcd60e51b815260040161059790615c58565b61122a8d8d8d8d8d8d8d613e1c565b6005549195509350600090611249906001600160a01b03168f8f6136ae565b90506112578e3330886139ed565b6112628e828761349e565b61126e8d3330876139ed565b6112798d828661349e565b6040516335313c2160e11b81526001600160a01b038881166004830152821690636a62784290602401602060405180830381600087803b1580156112bc57600080fd5b505af11580156112d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f49190615a18565b9250505099509950999650505050505050565b600554600654600091829161132a916001600160a01b03908116918f91166136ae565b9050600086611339578b611346565b6113466001600019615ebf565b60405163d505accf60e01b81529091506001600160a01b0383169063d505accf90611381903390309086908e908d908d908d90600401615b45565b600060405180830381600087803b15801561139b57600080fd5b505af11580156113af573d6000803e3d6000fd5b505050506113c18d8d8d8d8d8d612266565b9d9c50505050505050505050505050565b80428110156113f35760405162461bcd60e51b815260040161059790615c58565b600284146114135760405162461bcd60e51b815260040161059790615d03565b60055460009061147a906001600160a01b03168787848161144457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906114599190615632565b8888600181811061075d57634e487b7160e01b600052603260045260246000fd5b6001600160a01b038082166000908152600460205260408120549293509116878783816114b757634e487b7160e01b600052603260045260246000fd5b90506020020160208101906114cc9190615632565b6001600160a01b0316141561150e576114e7896000546139b7565b909950905061150e8787600081610cc457634e487b7160e01b600052603260045260246000fd5b61154f8787600081811061153257634e487b7160e01b600052603260045260246000fd5b90506020020160208101906115479190615632565b33848c6139ed565b6000878761155e600182615ebf565b81811061157b57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906115909190615632565b6040516370a0823160e01b81526001600160a01b03888116600483015291909116906370a082319060240160206040518083038186803b1580156115d357600080fd5b505afa1580156115e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160b9190615a18565b905061164c868989808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508b92506141a7915050565b6001600160a01b03808416600090815260046020526040902054168888600181811061168857634e487b7160e01b600052603260045260246000fd5b905060200201602081019061169d9190615632565b6001600160a01b031614156116be576116b8896000546139b7565b90995091505b888189896116cd600182615ebf565b8181106116ea57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906116ff9190615632565b6040516370a0823160e01b81526001600160a01b038a8116600483015291909116906370a08231906024015b60206040518083038186803b15801561174357600080fd5b505afa158015611757573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177b9190615a18565b6117859190615ebf565b10156117a35760405162461bcd60e51b815260040161059790615c0f565b50505050505050505050565b80428110156117d05760405162461bcd60e51b815260040161059790615c58565b600284146117f05760405162461bcd60e51b815260040161059790615d03565b6006546001600160a01b03168585611809600182615ebf565b81811061182657634e487b7160e01b600052603260045260246000fd5b905060200201602081019061183b9190615632565b6001600160a01b0316146118615760405162461bcd60e51b815260040161059790615dd3565b600554600090611892906001600160a01b03168787848161144457634e487b7160e01b600052603260045260246000fd5b6001600160a01b0380821660009081526004602052604081205492935091169087908790816118d157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906118e69190615632565b6001600160a01b031614156119465760006127106000548a6119089190615ea0565b6119129190615e80565b905061191e818a615ebf565b985061194487876000818110610cc457634e487b7160e01b600052603260045260246000fd5b505b6119878686600081811061196a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061197f9190615632565b33838b6139ed565b6119c6848787808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152503092506141a7915050565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015611a0a57600080fd5b505afa158015611a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a429190615a18565b6001600160a01b038084166000908152600460205260409020549192501687876001818110611a8157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611a969190615632565b6001600160a01b03161415611ad257600061271060005483611ab89190615ea0565b611ac29190615e80565b9050611ace8183615ebf565b9150505b600654604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015611b1857600080fd5b505af1158015611b2c573d6000803e3d6000fd5b50505050611b3a85826135cf565b505050505050505050565b60608142811015611b685760405162461bcd60e51b815260040161059790615c58565b60028514611b885760405162461bcd60e51b815260040161059790615d03565b6006546001600160a01b03168686600081611bb357634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611bc89190615632565b6001600160a01b031614611bee5760405162461bcd60e51b815260040161059790615dd3565b6005543490600090611c21906001600160a01b03168989848161072757634e487b7160e01b600052603260045260246000fd5b90506000611c2f8783613787565b6001600160a01b0380841660009081526004602052604081205492935091168a8a8381611c6c57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611c819190615632565b6001600160a01b03161415611cef57611c9c846000546139b7565b60015491955091506001600160a01b03163014611cef576001546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611ced573d6000803e3d6000fd5b505b600554604080516020808d0282810182019093528c8252611d3b936001600160a01b0316923492918f918f91829190850190849080828437600092019190915250889250613b2b915050565b95508a8660018851611d4d9190615ebf565b81518110611d6b57634e487b7160e01b600052603260045260246000fd5b60200260200101511015611d915760405162461bcd60e51b815260040161059790615c0f565b60065486516001600160a01b039091169063d0e30db0908890600090611dc757634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611dfa57600080fd5b505af1158015611e0e573d6000803e3d6000fd5b505060065489516001600160a01b03909116935063a9059cbb92508691508990600090611e4b57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b8152600401611e849291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b158015611e9e57600080fd5b505af1158015611eb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed6919061599c565b611ef057634e487b7160e01b600052600160045260246000fd5b611f3088878c8c808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508e9250613b56915050565b505050505095945050505050565b60608142811015611f615760405162461bcd60e51b815260040161059790615c58565b60028514611f815760405162461bcd60e51b815260040161059790615d03565b600554600090611fb2906001600160a01b031688888481610bfa57634e487b7160e01b600052603260045260246000fd5b90506000611fc08683613787565b6001600160a01b03808416600090815260046020526040812054929350911689898381611ffd57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906120129190615632565b6001600160a01b031614156121d057600554604080516020808c0282810182019093528b825261206d936001600160a01b0316928f92918e918e91829190850190849080828437600092019190915250889250613dff915050565b9450898560008151811061209157634e487b7160e01b600052603260045260246000fd5b602002602001015111156120b75760405162461bcd60e51b815260040161059790615bca565b6120db8560008151811061105a57634e487b7160e01b600052603260045260246000fd5b866000815181106120fc57634e487b7160e01b600052603260045260246000fd5b6020026020010181935082815250505061213089896000818110610cc457634e487b7160e01b600052603260045260246000fd5b60055485516121a5916001600160a01b031690879060009061216257634e487b7160e01b600052603260045260246000fd5b60200260200101518b8b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250889250613b2b915050565b94506121cb89896000818110610dc257634e487b7160e01b600052603260045260246000fd5b610dfa565b600554604080516020808c0282810182019093528b825261221c936001600160a01b0316928f92918e918e91829190850190849080828437600092019190915250889250613dff915050565b9450898560008151811061224057634e487b7160e01b600052603260045260246000fd5b60200260200101511115610d9e5760405162461bcd60e51b815260040161059790615bca565b600081428110156122895760405162461bcd60e51b815260040161059790615c58565b6006546122a59089906001600160a01b03168989893089612a56565b6040516370a0823160e01b815230600482015290935061232d9150899086906001600160a01b038316906370a082319060240160206040518083038186803b1580156122f057600080fd5b505afa158015612304573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123289190615a18565b61349e565b600654604051632e1a7d4d60e01b8152600481018490526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561237357600080fd5b505af1158015612387573d6000803e3d6000fd5b5050505061239584836135cf565b509695505050505050565b80428110156123c15760405162461bcd60e51b815260040161059790615c58565b600284146123e15760405162461bcd60e51b815260040161059790615d03565b6006546001600160a01b0316858560008161240c57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906124219190615632565b6001600160a01b0316146124475760405162461bcd60e51b815260040161059790615dd3565b600554349060009061247a906001600160a01b031688888481610bfa57634e487b7160e01b600052603260045260246000fd5b6001600160a01b038082166000908152600460205260408120549293509116888883816124b757634e487b7160e01b600052603260045260246000fd5b90506020020160208101906124cc9190615632565b6001600160a01b0316141561253a576124e7836000546139b7565b60015491945091506001600160a01b0316301461253a576001546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612538573d6000803e3d6000fd5b505b600660009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b15801561258a57600080fd5b505af115801561259e573d6000803e3d6000fd5b505060065460405163a9059cbb60e01b81526001600160a01b03878116600483015260248201899052909116935063a9059cbb92506044019050602060405180830381600087803b1580156125f257600080fd5b505af1158015612606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061262a919061599c565b61264457634e487b7160e01b600052600160045260246000fd5b60008888612653600182615ebf565b81811061267057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906126859190615632565b6040516370a0823160e01b81526001600160a01b03898116600483015291909116906370a082319060240160206040518083038186803b1580156126c857600080fd5b505afa1580156126dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127009190615a18565b9050612741878a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c92506141a7915050565b6001600160a01b03808416600090815260046020526040902054168989600181811061277d57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906127929190615632565b6001600160a01b031614156127b3576127ad8a6000546139b7565b909a5091505b89818a8a6127c2600182615ebf565b8181106127df57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906127f49190615632565b6040516370a0823160e01b81526001600160a01b038b8116600483015291909116906370a082319060240161172b565b6000806000834281101561284a5760405162461bcd60e51b815260040161059790615c58565b600654612865906001600160a01b03168c8c348d8c8e613e1c565b60055460065492965090945060009161288c916001600160a01b03908116918f91166136ae565b905061289a8c3330876139ed565b6128a58c828661349e565b600660009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0866040518263ffffffff1660e01b81526004016000604051808303818588803b1580156128f557600080fd5b505af1158015612909573d6000803e3d6000fd5b505060065460405163a9059cbb60e01b81526001600160a01b038681166004830152602482018b9052909116935063a9059cbb92506044019050602060405180830381600087803b15801561295d57600080fd5b505af1158015612971573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612995919061599c565b6129af57634e487b7160e01b600052600160045260246000fd5b6040516335313c2160e11b81526001600160a01b038881166004830152821690636a62784290602401602060405180830381600087803b1580156129f257600080fd5b505af1158015612a06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a2a9190615a18565b925084341115612a4757612a4733612a428734615ebf565b6135cf565b50509750975097945050505050565b6000808242811015612a7a5760405162461bcd60e51b815260040161059790615c58565b600554600090612a94906001600160a01b03168c8c6136ae565b9050612aa28133838c6139ed565b60405163226bf2d160e21b81526001600160a01b03878116600483015260009182918416906389afcb44906024016040805180830381600087803b158015612ae957600080fd5b505af1158015612afd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b219190615a95565b915091506000612b318e8e614417565b509050806001600160a01b03168e6001600160a01b031614612b54578183612b57565b82825b90975095508a871015612b7c5760405162461bcd60e51b815260040161059790615c88565b89861015612b9c5760405162461bcd60e51b815260040161059790615d49565b505050505097509795505050505050565b6000806000612be7600560009054906101000a90046001600160a01b03168e600660009054906101000a90046001600160a01b03166136ae565b9050600087612bf6578c612c03565b612c036001600019615ebf565b60405163d505accf60e01b81529091506001600160a01b0383169063d505accf90612c3e903390309086908f908e908e908e90600401615b45565b600060405180830381600087803b158015612c5857600080fd5b505af1158015612c6c573d6000803e3d6000fd5b50505050612c7e8e8e8e8e8e8e610573565b909f909e509c50505050505050505050505050565b6002546001600160a01b03163314612caa57600080fd5b6064811115612cb857600080fd5b600180546001600160a01b0319166001600160a01b03841690811790915560008290556040805183815260208101929092527fb051278df1c6d7e99f945afc24b768334d67823013df46e69ae2d4573629f6fd910160405180910390a15050565b60055460405163e6a4390560e01b81526001600160a01b0384811660048301528381166024830152600092169063e6a439059060440160206040518083038186803b158015612d6757600080fd5b505afa158015612d7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d9f919061564e565b9392505050565b60608142811015612dc95760405162461bcd60e51b815260040161059790615c58565b60028514612de95760405162461bcd60e51b815260040161059790615d03565b6006546001600160a01b03168686600081612e1457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612e299190615632565b6001600160a01b031614612e4f5760405162461bcd60e51b815260040161059790615dd3565b600554600090612e80906001600160a01b031688888481610bfa57634e487b7160e01b600052603260045260246000fd5b90506000612e8e8683613787565b6001600160a01b03808416600090815260046020526040812054929350911689898381612ecb57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612ee09190615632565b6001600160a01b031614156131c057600554604080516020808c0282810182019093528b8252612f3b936001600160a01b0316928e92918e918e91829190850190849080828437600092019190915250889250613dff915050565b94503485600081518110612f5f57634e487b7160e01b600052603260045260246000fd5b60200260200101511115612f855760405162461bcd60e51b815260040161059790615bca565b612fa98560008151811061105a57634e487b7160e01b600052603260045260246000fd5b86600081518110612fca57634e487b7160e01b600052603260045260246000fd5b60209081029190910101919091526001549091506001600160a01b03163014613029576001546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015613027573d6000803e3d6000fd5b505b600554855161305b916001600160a01b031690879060009061216257634e487b7160e01b600052603260045260246000fd5b60065481519196506001600160a01b03169063d0e30db090879060009061309257634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156130c557600080fd5b505af11580156130d9573d6000803e3d6000fd5b505060065488516001600160a01b03909116935063a9059cbb9250869150889060009061311657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b815260040161314f9291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b15801561316957600080fd5b505af115801561317d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131a1919061599c565b6131bb57634e487b7160e01b600052600160045260246000fd5b613410565b600554604080516020808c0282810182019093528b825261320c936001600160a01b0316928e92918e918e91829190850190849080828437600092019190915250889250613dff915050565b9450348560008151811061323057634e487b7160e01b600052603260045260246000fd5b602002602001015111156132565760405162461bcd60e51b815260040161059790615bca565b60065485516001600160a01b039091169063d0e30db090879060009061328c57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156132bf57600080fd5b505af11580156132d3573d6000803e3d6000fd5b50506006546005546001600160a01b03918216945063a9059cbb935061334a9250168c8c60008161331457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906133299190615632565b8d8d600181811061075d57634e487b7160e01b600052603260045260246000fd5b8760008151811061336b57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b81526004016133a49291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b1580156133be57600080fd5b505af11580156133d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133f6919061599c565b61341057634e487b7160e01b600052600160045260246000fd5b61345087868b8b808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508d9250613b56915050565b6000818660008151811061347457634e487b7160e01b600052603260045260246000fd5b60200260200101516134869190615e68565b905080341115611f3057611f3033612a428334615ebf565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000928392908716916134fa9190615b29565b6000604051808303816000865af19150503d8060008114613537576040519150601f19603f3d011682016040523d82523d6000602084013e61353c565b606091505b5091509150818015613566575080511580613566575080806020019051810190613566919061599c565b6135c85760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201526c185b9cd9995c8819985a5b1959609a1b6064820152608401610597565b5050505050565b604080516000808252602082019092526001600160a01b0384169083906040516135f99190615b29565b60006040518083038185875af1925050503d8060008114613636576040519150601f19603f3d011682016040523d82523d6000602084013e61363b565b606091505b50509050806136a95760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b6064820152608401610597565b505050565b60008060006136bd8585614417565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015291935091508690604801604051602081830303815290604052805190602001206040516020016137659291906001600160f81b0319815260609290921b6bffffffffffffffffffffffff1916600183015260158201527f7322d196a5476ed6b44fc18910ef3e8a09c2baea2da66bd2cf58f5b3c9dc57ce603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b6000808290506000816001600160a01b031663c55dae636040518163ffffffff1660e01b815260040160206040518083038186803b1580156137c857600080fd5b505afa1580156137dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613800919061564e565b90506001600160a01b03811661381957600192506139af565b6000826001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561385457600080fd5b505afa158015613868573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061388c919061564e565b90506000836001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156138c957600080fd5b505afa1580156138dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613901919061564e565b90506000826001600160a01b0316846001600160a01b0316146139245782613926565b815b6040516314d0ab2d60e21b81526001600160a01b038a8116600483015291925090821690635342acb49060240160206040518083038186803b15801561396b57600080fd5b505afa92505050801561399b575060408051601f3d908101601f191682019092526139989181019061599c565b60015b6139a857600095506139ab565b95505b5050505b505092915050565b600080806127106139c88587615ea0565b6139d29190615e80565b90506139de8186615ebf565b945084925090505b9250929050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691613a519190615b29565b6000604051808303816000865af19150503d8060008114613a8e576040519150601f19603f3d011682016040523d82523d6000602084013e613a93565b606091505b5091509150818015613abd575080511580613abd575080806020019051810190613abd919061599c565b613b235760405162461bcd60e51b815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472604482015270185b9cd9995c919c9bdb4819985a5b1959607a1b6064820152608401610597565b505050505050565b606081613b4257613b3d858585614506565b613b4d565b613b4d858585614823565b95945050505050565b60005b60018351613b679190615ebf565b8110156135c857600080848381518110613b9157634e487b7160e01b600052603260045260246000fd5b602002602001015185846001613ba79190615e68565b81518110613bc557634e487b7160e01b600052603260045260246000fd5b6020026020010151915091506000613bdd8383614417565b50600554909150600090613bfb906001600160a01b031685856136ae565b90506000613c098a83613787565b9050600089613c19886001615e68565b81518110613c3757634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008a8881518110613c6357634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008a9050600060028251613c829190615ebf565b8a10613c8f576000613cc2565b81613c9b8b6002615e68565b81518110613cb957634e487b7160e01b600052603260045260246000fd5b60200260200101515b9050600080886001600160a01b03168b6001600160a01b031614613ce857856000613cec565b6000865b60055491935091506000908190613d11906001600160a01b03168e8e8a88888f6149a2565b91509150600060028751613d259190615ebf565b8f10613d31578f613d48565b600554613d48906001600160a01b03168e886136ae565b90506001600160a01b038b1663f8b134c6868686868660006040519080825280601f01601f191660200182016040528015613d8a576020820181803683370190505b506040518763ffffffff1660e01b8152600401613dac96959493929190615e0a565b600060405180830381600087803b158015613dc657600080fd5b505af1158015613dda573d6000803e3d6000fd5b5050505050505050505050505050505050508080613df790615f19565b915050613b59565b606081613e1157613b3d858585614b8f565b613b4d858585614e93565b6000806000613e2b8a8a612d19565b90506001600160a01b038116614011576006546001600160a01b038b811691161480613e8857507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168a6001600160a01b0316145b15613f51576005546040516320b7f73960e21b81526001600160a01b038b811660048301528c811660248301528a15156044830152909116906382dfdce490606401602060405180830381600087803b158015613ee457600080fd5b505af1158015613ef8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f1c919061564e565b6001600160a01b03818116600090815260046020526040902080546001600160a01b031916918d169190911790559050614011565b6005546040516320b7f73960e21b81526001600160a01b038c811660048301528b811660248301528a15156044830152909116906382dfdce490606401602060405180830381600087803b158015613fa857600080fd5b505af1158015613fbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613fe0919061564e565b6001600160a01b03818116600090815260046020526040902080546001600160a01b031916918c1691909117905590505b600554600090819061402d906001600160a01b03168d8d61503b565b9150915081600014801561403f575080155b15614102576006548995508894506001600160a01b038d81169116148061409757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168c6001600160a01b0316145b156140cf576001600160a01b03838116600090815260046020526040902080546001600160a01b031916918e16919091179055614198565b6001600160a01b03838116600090815260046020526040902080546001600160a01b031916918d16919091179055614198565b600061410f8a8484615115565b905088811161414357868110156141385760405162461bcd60e51b815260040161059790615d49565b899550935083614196565b60006141508a8486615115565b90508a81111561417057634e487b7160e01b600052600160045260246000fd5b888110156141905760405162461bcd60e51b815260040161059790615c88565b95508894505b505b50505097509795505050505050565b60005b600183516141b89190615ebf565b811015614411576000808483815181106141e257634e487b7160e01b600052603260045260246000fd5b6020026020010151858460016141f89190615e68565b8151811061421657634e487b7160e01b600052603260045260246000fd5b602002602001015191509150600061422e8383614417565b5060055490915060009061424c906001600160a01b031685856136ae565b9050600061425a8983613787565b600554909150600090819061427b906001600160a01b0316888888876151bb565b91509150600080866001600160a01b0316896001600160a01b0316146142a3578260006142a7565b6000835b600554919350915060009081906142cc906001600160a01b03168c8c8988888d6149a2565b9150915060008e90506000600282516142e59190615ebf565b8e106142f2576000614325565b816142fe8f6002615e68565b8151811061431c57634e487b7160e01b600052603260045260246000fd5b60200260200101515b90506000600283516143379190615ebf565b8f10614343578f61435a565b60055461435a906001600160a01b03168e846136ae565b90506001600160a01b038b1663f8b134c6888888888660006040519080825280601f01601f19166020018201604052801561439c576020820181803683370190505b506040518763ffffffff1660e01b81526004016143be96959493929190615e0a565b600060405180830381600087803b1580156143d857600080fd5b505af11580156143ec573d6000803e3d6000fd5b505050505050505050505050505050505050808061440990615f19565b9150506141aa565b50505050565b600080826001600160a01b0316846001600160a01b031614156144885760405162461bcd60e51b815260206004820152602360248201527f505945537761704c6962726172793a204944454e544943414c5f41444452455360448201526253455360e81b6064820152608401610597565b826001600160a01b0316846001600160a01b0316106144a85782846144ab565b83835b90925090506001600160a01b0382166139e65760405162461bcd60e51b815260206004820152601c60248201527f505945537761704c6962726172793a205a45524f5f41444452455353000000006044820152606401610597565b606060028251101561452a5760405162461bcd60e51b815260040161059790615ccc565b815167ffffffffffffffff81111561455257634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561457b578160200160208202803683370190505b50905082816000815181106145a057634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060005b600183516145bd9190615ebf565b81101561481b57600061462b868584815181106145ea57634e487b7160e01b600052603260045260246000fd5b6020026020010151868560016146009190615e68565b8151811061461e57634e487b7160e01b600052603260045260246000fd5b60200260200101516136ae565b90506000816001600160a01b031663c55dae636040518163ffffffff1660e01b815260040160206040518083038186803b15801561466857600080fd5b505afa15801561467c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146a0919061564e565b90506000826001600160a01b0316637ae316d06040518163ffffffff1660e01b815260040160206040518083038186803b1580156146dd57600080fd5b505afa1580156146f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147159190615a18565b905060008061477f8a89888151811061473e57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8960016147549190615e68565b8151811061477257634e487b7160e01b600052603260045260246000fd5b602002602001015161503b565b915091506147cd8787815181106147a657634e487b7160e01b600052603260045260246000fd5b6020026020010151838360006001600160a01b0316886001600160a01b03161415876153c5565b876147d9886001615e68565b815181106147f757634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505050505050808061481390615f19565b9150506145af565b509392505050565b60606002825110156148475760405162461bcd60e51b815260040161059790615ccc565b815167ffffffffffffffff81111561486f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015614898578160200160208202803683370190505b50905082816000815181106148bd57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060005b600183516148da9190615ebf565b81101561481b5760008061491e8786858151811061490857634e487b7160e01b600052603260045260246000fd5b6020026020010151878660016147549190615e68565b9150915061495784848151811061494557634e487b7160e01b600052603260045260246000fd5b602002602001015183836000806153c5565b84614963856001615e68565b8151811061498157634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505050808061499a90615f19565b9150506148cc565b60008060006149b28a8a8a6136ae565b905060006149c08a8a614417565b5090506000826001600160a01b031663c55dae636040518163ffffffff1660e01b815260040160206040518083038186803b1580156149fe57600080fd5b505afa158015614a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614a36919061564e565b90506000836001600160a01b0316637ae316d06040518163ffffffff1660e01b815260040160206040518083038186803b158015614a7357600080fd5b505afa158015614a87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614aab9190615a18565b9050826001600160a01b0316826001600160a01b0316141580614acb5750865b614b1157826001600160a01b03168c6001600160a01b031614614b0457612710614af5828b615ea0565b614aff9190615e80565b614b14565b612710614af5828c615ea0565b60005b9550826001600160a01b0316826001600160a01b03161480614b335750865b614b7a57826001600160a01b03168c6001600160a01b03161415614b6d57612710614b5e828a615ea0565b614b689190615e80565b614b7d565b612710614b5e828c615ea0565b60005b94505050505097509795505050505050565b6060600282511015614bb35760405162461bcd60e51b815260040161059790615ccc565b815167ffffffffffffffff811115614bdb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015614c04578160200160208202803683370190505b509050828160018351614c179190615ebf565b81518110614c3557634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600060018351614c519190615ebf565b90505b801561481b576000614cb28685614c6c600186615ebf565b81518110614c8a57634e487b7160e01b600052603260045260246000fd5b602002602001015186858151811061461e57634e487b7160e01b600052603260045260246000fd5b90506000816001600160a01b031663c55dae636040518163ffffffff1660e01b815260040160206040518083038186803b158015614cef57600080fd5b505afa158015614d03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614d27919061564e565b90506000826001600160a01b0316637ae316d06040518163ffffffff1660e01b815260040160206040518083038186803b158015614d6457600080fd5b505afa158015614d78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614d9c9190615a18565b9050600080614df78a89614db160018a615ebf565b81518110614dcf57634e487b7160e01b600052603260045260246000fd5b60200260200101518a898151811061477257634e487b7160e01b600052603260045260246000fd5b91509150614e45878781518110614e1e57634e487b7160e01b600052603260045260246000fd5b6020026020010151838360006001600160a01b0316886001600160a01b03161415876154c0565b87614e51600189615ebf565b81518110614e6f57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505050505050508080614e8b90615f02565b915050614c54565b6060600282511015614eb75760405162461bcd60e51b815260040161059790615ccc565b815167ffffffffffffffff811115614edf57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015614f08578160200160208202803683370190505b509050828160018351614f1b9190615ebf565b81518110614f3957634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600060018351614f559190615ebf565b90505b801561481b57600080614fb78786614f71600187615ebf565b81518110614f8f57634e487b7160e01b600052603260045260246000fd5b602002602001015187868151811061477257634e487b7160e01b600052603260045260246000fd5b91509150614ff0848481518110614fde57634e487b7160e01b600052603260045260246000fd5b602002602001015183836000806154c0565b84614ffc600186615ebf565b8151811061501a57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505050808061503390615f02565b915050614f58565b600080600061504a8585614417565b50905060008061505b8888886136ae565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160806040518083038186803b15801561509357600080fd5b505afa1580156150a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906150cb91906159b8565b50506001600160701b031691506001600160701b03169150826001600160a01b0316876001600160a01b031614615103578082615106565b81815b90999098509650505050505050565b60008084116151725760405162461bcd60e51b815260206004820152602360248201527f505945537761704c6962726172793a20494e53554646494349454e545f414d4f60448201526215539560ea1b6064820152608401610597565b6000831180156151825750600082115b61519e5760405162461bcd60e51b815260040161059790615d8d565b826151a98386615ea0565b6151b39190615e80565b949350505050565b60008060006151cb8888886136ae565b90506000806000836001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160806040518083038186803b15801561520b57600080fd5b505afa15801561521f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061524391906159b8565b9350506001600160701b031692506001600160701b031692506000846001600160a01b0316637ae316d06040518163ffffffff1660e01b815260040160206040518083038186803b15801561529757600080fd5b505afa1580156152ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906152cf9190615a18565b90506000808a6001600160a01b03168d6001600160a01b0316146152f45784866152f7565b85855b6040516370a0823160e01b81526001600160a01b038a8116600483015292945090925083918f16906370a082319060240160206040518083038186803b15801561534057600080fd5b505afa158015615354573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906153789190615a18565b6153829190615ebf565b98506153b28983836001600160a01b038816158015906153a057508d155b8e6153ab57876153c5565b60006153c5565b9750505050505050509550959350505050565b60008086116154285760405162461bcd60e51b815260206004820152602960248201527f505945537761704c6962726172793a20494e53554646494349454e545f494e50604482015268155517d05353d5539560ba1b6064820152608401610597565b6000851180156154385750600084115b6154545760405162461bcd60e51b815260040161059790615d8d565b6000836154635761271061546f565b61546f83612710615ebf565b9050600061547d8289615ea0565b9050600061548b8783615ea0565b905060008261549c8a612710615ea0565b6154a69190615e68565b90506154b28183615e80565b9a9950505050505050505050565b60008086116155245760405162461bcd60e51b815260206004820152602a60248201527f505945537761704c6962726172793a20494e53554646494349454e545f4f555460448201526914155517d05353d5539560b21b6064820152608401610597565b6000851180156155345750600084115b6155505760405162461bcd60e51b815260040161059790615d8d565b60008361555f5761271061556b565b61556b83612710615ebf565b905060006155798888615ea0565b61558590612710615ea0565b90506000826155948a89615ebf565b61559e9190615ea0565b90506155aa8183615e80565b6155b5906001615e68565b9998505050505050505050565b60008083601f8401126155d3578182fd5b50813567ffffffffffffffff8111156155ea578182fd5b6020830191508360208260051b85010111156139e657600080fd5b80516001600160701b038116811461561c57600080fd5b919050565b803560ff8116811461561c57600080fd5b600060208284031215615643578081fd5b8135612d9f81615f4a565b60006020828403121561565f578081fd5b8151612d9f81615f4a565b6000806040838503121561567c578081fd5b823561568781615f4a565b9150602083013561569781615f4a565b809150509250929050565b60008060008060008060008060006101208a8c0312156156c0578485fd5b89356156cb81615f4a565b985060208a01356156db81615f4a565b975060408a01356156eb81615f62565b965060608a0135955060808a0135945060a08a0135935060c08a0135925060e08a013561571781615f4a565b809250506101008a013590509295985092959850929598565b600080600080600080600060e0888a03121561574a578283fd5b873561575581615f4a565b9650602088013561576581615f4a565b955060408801359450606088013593506080880135925060a088013561578a81615f4a565b8092505060c0880135905092959891949750929550565b60008060008060008060008060008060006101608c8e0312156157c2578182fd5b8b356157cd81615f4a565b9a5060208c01356157dd81615f4a565b995060408c0135985060608c0135975060808c0135965060a08c013561580281615f4a565b955060c08c0135945060e08c013561581981615f62565b93506158286101008d01615621565b92506101208c013591506101408c013590509295989b509295989b9093969950565b600080600080600080600060e0888a031215615864578283fd5b873561586f81615f4a565b9650602088013561576581615f62565b60008060408385031215615891578182fd5b823561589c81615f4a565b946020939093013593505050565b60008060008060008060c087890312156158c2578384fd5b86356158cd81615f4a565b955060208701359450604087013593506060870135925060808701356158f281615f4a565b8092505060a087013590509295509295509295565b6000806000806000806000806000806101408b8d031215615926578384fd5b8a3561593181615f4a565b995060208b0135985060408b0135975060608b0135965060808b013561595681615f4a565b955060a08b0135945060c08b013561596d81615f62565b935061597b60e08c01615621565b92506101008b013591506101208b013590509295989b9194979a5092959850565b6000602082840312156159ad578081fd5b8151612d9f81615f62565b600080600080608085870312156159cd578182fd5b6159d685615605565b93506159e460208601615605565b9250604085015163ffffffff811681146159fc578283fd5b6060860151909250615a0d81615f4a565b939692955090935050565b600060208284031215615a29578081fd5b5051919050565b600080600080600060808688031215615a47578283fd5b85359450602086013567ffffffffffffffff811115615a64578384fd5b615a70888289016155c2565b9095509350506040860135615a8481615f4a565b949793965091946060013592915050565b60008060408385031215615aa7578182fd5b505080516020909101519092909150565b60008060008060008060a08789031215615ad0578384fd5b8635955060208701359450604087013567ffffffffffffffff811115615af4578485fd5b615b0089828a016155c2565b9095509350506060870135615b1481615f4a565b80925050608087013590509295509295509295565b60008251615b3b818460208701615ed6565b9190910192915050565b6001600160a01b0397881681529590961660208601526040850193909352606084019190915260ff16608083015260a082015260c081019190915260e00190565b6020808252825182820181905260009190848201906040850190845b81811015615bbe57835183529284019291840191600101615ba2565b50909695505050505050565b60208082526025908201527f50594553776170526f757465723a204558434553534956455f494e5055545f416040820152641353d5539560da1b606082015260800190565b60208082526029908201527f50594553776170526f757465723a20494e53554646494349454e545f4f555450604082015268155517d05353d5539560ba1b606082015260800190565b60208082526016908201527514165154ddd85c149bdd5d195c8e881156141254915160521b604082015260600190565b60208082526024908201527f50594553776170526f757465723a20494e53554646494349454e545f415f414d60408201526313d5539560e21b606082015260800190565b6020808252601c908201527f505945537761704c6962726172793a20494e56414c49445f5041544800000000604082015260600190565b60208082526026908201527f50594553776170526f757465723a204f4e4c595f54574f5f544f4b454e535f41604082015265131313d5d15160d21b606082015260800190565b60208082526024908201527f50594553776170526f757465723a20494e53554646494349454e545f425f414d60408201526313d5539560e21b606082015260800190565b60208082526026908201527f505945537761704c6962726172793a20494e53554646494349454e545f4c495160408201526555494449545960d01b606082015260800190565b6020808252601b908201527f50594553776170526f757465723a20494e56414c49445f504154480000000000604082015260600190565b86815285602082015284604082015283606082015260018060a01b038316608082015260c060a0820152600082518060c0840152615e4f8160e0850160208701615ed6565b601f01601f19169190910160e001979650505050505050565b60008219821115615e7b57615e7b615f34565b500190565b600082615e9b57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615615eba57615eba615f34565b500290565b600082821015615ed157615ed1615f34565b500390565b60005b83811015615ef1578181015183820152602001615ed9565b838111156144115750506000910152565b600081615f1157615f11615f34565b506000190190565b6000600019821415615f2d57615f2d615f34565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114615f5f57600080fd5b50565b8015158114615f5f57600080fdfea2646970667358221220826e489b00e248d24c6dd9d4e6ab3efaeb3e0d7796aa2f037e1a50d192e7315964736f6c63430008040033000000000000000000000000a2f8f1fab81300c48208dc0ae540c6675d19f4cd000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000beba48d57474210aebaf81c9f05fc50366e5b20b000000000000000000000000c71b2b3dd4a0a72f8857e4f5fbac53b401f27355
Deployed Bytecode
0x6080604052600436106101855760003560e01c8063966dae0e116100d1578063baa2abde1161008a578063ded9382a11610064578063ded9382a14610500578063e07769ed14610520578063e6a4390514610540578063fb3bdb411461056057600080fd5b8063baa2abde1461048a578063c45a0155146104aa578063dcacce69146104ca57600080fd5b8063966dae0e146103ee578063a0be06f91461040e578063ad5c464814610424578063af2979eb14610444578063b6f9de9514610464578063b7e0d4c01461047757600080fd5b80634a25d94a1161013e5780635c11d795116101185780635c11d79514610379578063791ac9471461039b5780637ff36ab5146103bb5780638803dbee146103ce57600080fd5b80634a25d94a146102f05780635a47ddc3146103105780635b0d59841461034b57600080fd5b806302751cec146101f157806308a171491461022b57806318cbafe5146102635780632195995c1461029057806338ed1739146102b05780633b07a734146102d057600080fd5b366101ec576006546001600160a01b031633146101b257634e487b7160e01b600052600160045260246000fd5b604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1005b600080fd5b3480156101fd57600080fd5b5061021161020c3660046158aa565b610573565b604080519283526020830191909152015b60405180910390f35b34801561023757600080fd5b5060015461024b906001600160a01b031681565b6040516001600160a01b039091168152602001610222565b34801561026f57600080fd5b5061028361027e366004615ab8565b610640565b6040516102229190615b86565b34801561029c57600080fd5b506102116102ab3660046157a1565b610ab6565b3480156102bc57600080fd5b506102836102cb366004615ab8565b610b86565b3480156102dc57600080fd5b5060025461024b906001600160a01b031681565b3480156102fc57600080fd5b5061028361030b366004615ab8565b610e48565b34801561031c57600080fd5b5061033061032b3660046156a2565b6111f5565b60408051938452602084019290925290820152606001610222565b34801561035757600080fd5b5061036b610366366004615907565b611307565b604051908152602001610222565b34801561038557600080fd5b50610399610394366004615ab8565b6113d2565b005b3480156103a757600080fd5b506103996103b6366004615ab8565b6117af565b6102836103c9366004615a30565b611b45565b3480156103da57600080fd5b506102836103e9366004615ab8565b611f3e565b3480156103fa57600080fd5b5060035461024b906001600160a01b031681565b34801561041a57600080fd5b5061036b60005481565b34801561043057600080fd5b5060065461024b906001600160a01b031681565b34801561045057600080fd5b5061036b61045f3660046158aa565b612266565b610399610472366004615a30565b6123a0565b61033061048536600461584a565b612824565b34801561049657600080fd5b506102116104a5366004615730565b612a56565b3480156104b657600080fd5b5060055461024b906001600160a01b031681565b3480156104d657600080fd5b5061024b6104e5366004615632565b6004602052600090815260409020546001600160a01b031681565b34801561050c57600080fd5b5061021161051b366004615907565b612bad565b34801561052c57600080fd5b5061039961053b36600461587f565b612c93565b34801561054c57600080fd5b5061024b61055b36600461566a565b612d19565b61028361056e366004615a30565b612da6565b60008082428110156105a05760405162461bcd60e51b815260040161059790615c58565b60405180910390fd5b6006546105bc908a906001600160a01b03168a8a8a308a612a56565b90935091506105cc89868561349e565b600654604051632e1a7d4d60e01b8152600481018490526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561061257600080fd5b505af1158015610626573d6000803e3d6000fd5b5050505061063485836135cf565b50965096945050505050565b606081428110156106635760405162461bcd60e51b815260040161059790615c58565b600285146106835760405162461bcd60e51b815260040161059790615d03565b6006546001600160a01b0316868661069c600182615ebf565b8181106106b957634e487b7160e01b600052603260045260246000fd5b90506020020160208101906106ce9190615632565b6001600160a01b0316146106f45760405162461bcd60e51b815260040161059790615dd3565b6005546000908190610777906001600160a01b03168989848161072757634e487b7160e01b600052603260045260246000fd5b905060200201602081019061073c9190615632565b8a8a600181811061075d57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906107729190615632565b6136ae565b905060006107858783613787565b6001600160a01b038084166000908152600460205260408120549293509116908a908a90816107c457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906107d99190615632565b6001600160a01b03161415610844576107f48b6000546139b7565b909b509250610844898960008161081b57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108309190615632565b60015433906001600160a01b0316866139ed565b600554604080516020808c0282810182019093528b8252610890936001600160a01b0316928f92918e918e91829190850190849080828437600092019190915250879250613b2b915050565b94508985600187516108a29190615ebf565b815181106108c057634e487b7160e01b600052603260045260246000fd5b602002602001015110156108e65760405162461bcd60e51b815260040161059790615c0f565b61094f8989600081811061090a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061091f9190615632565b33848860008151811061094257634e487b7160e01b600052603260045260246000fd5b60200260200101516139ed565b61098f87868b8b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613b56915050565b600085600187516109a09190615ebf565b815181106109be57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b0380861660009081526004909352604090922054909250168a8a6001818110610a0a57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610a1f9190615632565b6001600160a01b03161415610a3f57610a3a816000546139b7565b945090505b600654604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015610a8557600080fd5b505af1158015610a99573d6000803e3d6000fd5b50505050610aa788826135cf565b50505050509695505050505050565b60055460009081908190610ad4906001600160a01b03168f8f6136ae565b9050600087610ae3578c610af0565b610af06001600019615ebf565b60405163d505accf60e01b81529091506001600160a01b0383169063d505accf90610b2b903390309086908f908e908e908e90600401615b45565b600060405180830381600087803b158015610b4557600080fd5b505af1158015610b59573d6000803e3d6000fd5b50505050610b6c8f8f8f8f8f8f8f612a56565b809450819550505050509b509b9950505050505050505050565b60608142811015610ba95760405162461bcd60e51b815260040161059790615c58565b60028514610bc95760405162461bcd60e51b815260040161059790615d03565b600554600090610c30906001600160a01b031688888481610bfa57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c0f9190615632565b8989600181811061075d57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03808216600090815260046020526040812054929350911688888381610c6d57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c829190615632565b6001600160a01b03161415610ced57610c9d8a6000546139b7565b909a509050610ced8888600081610cc457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610cd99190615632565b60015433906001600160a01b0316846139ed565b6000610cf98784613787565b600554604080516020808d0282810182019093528c8252939450610d48936001600160a01b03909316928f928e918e918291850190849080828437600092019190915250879250613b2b915050565b9450898560018751610d5a9190615ebf565b81518110610d7857634e487b7160e01b600052603260045260246000fd5b60200260200101511015610d9e5760405162461bcd60e51b815260040161059790615c0f565b610dfa89896000818110610dc257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610dd79190615632565b33858860008151811061094257634e487b7160e01b600052603260045260246000fd5b610e3a87868b8b808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508d9250613b56915050565b505050509695505050505050565b60608142811015610e6b5760405162461bcd60e51b815260040161059790615c58565b60028514610e8b5760405162461bcd60e51b815260040161059790615d03565b6006546001600160a01b03168686610ea4600182615ebf565b818110610ec157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610ed69190615632565b6001600160a01b031614610efc5760405162461bcd60e51b815260040161059790615dd3565b6005546000908190610f2f906001600160a01b03168989848161072757634e487b7160e01b600052603260045260246000fd5b90506000610f3d8783613787565b6001600160a01b038084166000908152600460205260408120549293509116908a908a9081610f7c57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610f919190615632565b6001600160a01b0316141561115f57600554604080516020808c0282810182019093528b8252610fec936001600160a01b0316928f92918e918e91829190850190849080828437600092019190915250879250613dff915050565b9450898560008151811061101057634e487b7160e01b600052603260045260246000fd5b602002602001015111156110365760405162461bcd60e51b815260040161059790615bca565b61106a8560008151811061105a57634e487b7160e01b600052603260045260246000fd5b60200260200101516000546139b7565b8660008151811061108b57634e487b7160e01b600052603260045260246000fd5b602002602001018195508281525050506110bf8989600081811061081b57634e487b7160e01b600052603260045260246000fd5b6005548551611134916001600160a01b03169087906000906110f157634e487b7160e01b600052603260045260246000fd5b60200260200101518b8b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250879250613b2b915050565b945061115a8989600081811061090a57634e487b7160e01b600052603260045260246000fd5b61094f565b600554604080516020808c0282810182019093528b82526111ab936001600160a01b0316928f92918e918e91829190850190849080828437600092019190915250879250613dff915050565b945089856000815181106111cf57634e487b7160e01b600052603260045260246000fd5b602002602001015111156108e65760405162461bcd60e51b815260040161059790615bca565b6000806000834281101561121b5760405162461bcd60e51b815260040161059790615c58565b61122a8d8d8d8d8d8d8d613e1c565b6005549195509350600090611249906001600160a01b03168f8f6136ae565b90506112578e3330886139ed565b6112628e828761349e565b61126e8d3330876139ed565b6112798d828661349e565b6040516335313c2160e11b81526001600160a01b038881166004830152821690636a62784290602401602060405180830381600087803b1580156112bc57600080fd5b505af11580156112d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f49190615a18565b9250505099509950999650505050505050565b600554600654600091829161132a916001600160a01b03908116918f91166136ae565b9050600086611339578b611346565b6113466001600019615ebf565b60405163d505accf60e01b81529091506001600160a01b0383169063d505accf90611381903390309086908e908d908d908d90600401615b45565b600060405180830381600087803b15801561139b57600080fd5b505af11580156113af573d6000803e3d6000fd5b505050506113c18d8d8d8d8d8d612266565b9d9c50505050505050505050505050565b80428110156113f35760405162461bcd60e51b815260040161059790615c58565b600284146114135760405162461bcd60e51b815260040161059790615d03565b60055460009061147a906001600160a01b03168787848161144457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906114599190615632565b8888600181811061075d57634e487b7160e01b600052603260045260246000fd5b6001600160a01b038082166000908152600460205260408120549293509116878783816114b757634e487b7160e01b600052603260045260246000fd5b90506020020160208101906114cc9190615632565b6001600160a01b0316141561150e576114e7896000546139b7565b909950905061150e8787600081610cc457634e487b7160e01b600052603260045260246000fd5b61154f8787600081811061153257634e487b7160e01b600052603260045260246000fd5b90506020020160208101906115479190615632565b33848c6139ed565b6000878761155e600182615ebf565b81811061157b57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906115909190615632565b6040516370a0823160e01b81526001600160a01b03888116600483015291909116906370a082319060240160206040518083038186803b1580156115d357600080fd5b505afa1580156115e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160b9190615a18565b905061164c868989808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508b92506141a7915050565b6001600160a01b03808416600090815260046020526040902054168888600181811061168857634e487b7160e01b600052603260045260246000fd5b905060200201602081019061169d9190615632565b6001600160a01b031614156116be576116b8896000546139b7565b90995091505b888189896116cd600182615ebf565b8181106116ea57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906116ff9190615632565b6040516370a0823160e01b81526001600160a01b038a8116600483015291909116906370a08231906024015b60206040518083038186803b15801561174357600080fd5b505afa158015611757573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177b9190615a18565b6117859190615ebf565b10156117a35760405162461bcd60e51b815260040161059790615c0f565b50505050505050505050565b80428110156117d05760405162461bcd60e51b815260040161059790615c58565b600284146117f05760405162461bcd60e51b815260040161059790615d03565b6006546001600160a01b03168585611809600182615ebf565b81811061182657634e487b7160e01b600052603260045260246000fd5b905060200201602081019061183b9190615632565b6001600160a01b0316146118615760405162461bcd60e51b815260040161059790615dd3565b600554600090611892906001600160a01b03168787848161144457634e487b7160e01b600052603260045260246000fd5b6001600160a01b0380821660009081526004602052604081205492935091169087908790816118d157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906118e69190615632565b6001600160a01b031614156119465760006127106000548a6119089190615ea0565b6119129190615e80565b905061191e818a615ebf565b985061194487876000818110610cc457634e487b7160e01b600052603260045260246000fd5b505b6119878686600081811061196a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061197f9190615632565b33838b6139ed565b6119c6848787808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152503092506141a7915050565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015611a0a57600080fd5b505afa158015611a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a429190615a18565b6001600160a01b038084166000908152600460205260409020549192501687876001818110611a8157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611a969190615632565b6001600160a01b03161415611ad257600061271060005483611ab89190615ea0565b611ac29190615e80565b9050611ace8183615ebf565b9150505b600654604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015611b1857600080fd5b505af1158015611b2c573d6000803e3d6000fd5b50505050611b3a85826135cf565b505050505050505050565b60608142811015611b685760405162461bcd60e51b815260040161059790615c58565b60028514611b885760405162461bcd60e51b815260040161059790615d03565b6006546001600160a01b03168686600081611bb357634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611bc89190615632565b6001600160a01b031614611bee5760405162461bcd60e51b815260040161059790615dd3565b6005543490600090611c21906001600160a01b03168989848161072757634e487b7160e01b600052603260045260246000fd5b90506000611c2f8783613787565b6001600160a01b0380841660009081526004602052604081205492935091168a8a8381611c6c57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611c819190615632565b6001600160a01b03161415611cef57611c9c846000546139b7565b60015491955091506001600160a01b03163014611cef576001546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611ced573d6000803e3d6000fd5b505b600554604080516020808d0282810182019093528c8252611d3b936001600160a01b0316923492918f918f91829190850190849080828437600092019190915250889250613b2b915050565b95508a8660018851611d4d9190615ebf565b81518110611d6b57634e487b7160e01b600052603260045260246000fd5b60200260200101511015611d915760405162461bcd60e51b815260040161059790615c0f565b60065486516001600160a01b039091169063d0e30db0908890600090611dc757634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611dfa57600080fd5b505af1158015611e0e573d6000803e3d6000fd5b505060065489516001600160a01b03909116935063a9059cbb92508691508990600090611e4b57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b8152600401611e849291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b158015611e9e57600080fd5b505af1158015611eb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed6919061599c565b611ef057634e487b7160e01b600052600160045260246000fd5b611f3088878c8c808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508e9250613b56915050565b505050505095945050505050565b60608142811015611f615760405162461bcd60e51b815260040161059790615c58565b60028514611f815760405162461bcd60e51b815260040161059790615d03565b600554600090611fb2906001600160a01b031688888481610bfa57634e487b7160e01b600052603260045260246000fd5b90506000611fc08683613787565b6001600160a01b03808416600090815260046020526040812054929350911689898381611ffd57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906120129190615632565b6001600160a01b031614156121d057600554604080516020808c0282810182019093528b825261206d936001600160a01b0316928f92918e918e91829190850190849080828437600092019190915250889250613dff915050565b9450898560008151811061209157634e487b7160e01b600052603260045260246000fd5b602002602001015111156120b75760405162461bcd60e51b815260040161059790615bca565b6120db8560008151811061105a57634e487b7160e01b600052603260045260246000fd5b866000815181106120fc57634e487b7160e01b600052603260045260246000fd5b6020026020010181935082815250505061213089896000818110610cc457634e487b7160e01b600052603260045260246000fd5b60055485516121a5916001600160a01b031690879060009061216257634e487b7160e01b600052603260045260246000fd5b60200260200101518b8b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250889250613b2b915050565b94506121cb89896000818110610dc257634e487b7160e01b600052603260045260246000fd5b610dfa565b600554604080516020808c0282810182019093528b825261221c936001600160a01b0316928f92918e918e91829190850190849080828437600092019190915250889250613dff915050565b9450898560008151811061224057634e487b7160e01b600052603260045260246000fd5b60200260200101511115610d9e5760405162461bcd60e51b815260040161059790615bca565b600081428110156122895760405162461bcd60e51b815260040161059790615c58565b6006546122a59089906001600160a01b03168989893089612a56565b6040516370a0823160e01b815230600482015290935061232d9150899086906001600160a01b038316906370a082319060240160206040518083038186803b1580156122f057600080fd5b505afa158015612304573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123289190615a18565b61349e565b600654604051632e1a7d4d60e01b8152600481018490526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561237357600080fd5b505af1158015612387573d6000803e3d6000fd5b5050505061239584836135cf565b509695505050505050565b80428110156123c15760405162461bcd60e51b815260040161059790615c58565b600284146123e15760405162461bcd60e51b815260040161059790615d03565b6006546001600160a01b0316858560008161240c57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906124219190615632565b6001600160a01b0316146124475760405162461bcd60e51b815260040161059790615dd3565b600554349060009061247a906001600160a01b031688888481610bfa57634e487b7160e01b600052603260045260246000fd5b6001600160a01b038082166000908152600460205260408120549293509116888883816124b757634e487b7160e01b600052603260045260246000fd5b90506020020160208101906124cc9190615632565b6001600160a01b0316141561253a576124e7836000546139b7565b60015491945091506001600160a01b0316301461253a576001546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612538573d6000803e3d6000fd5b505b600660009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b15801561258a57600080fd5b505af115801561259e573d6000803e3d6000fd5b505060065460405163a9059cbb60e01b81526001600160a01b03878116600483015260248201899052909116935063a9059cbb92506044019050602060405180830381600087803b1580156125f257600080fd5b505af1158015612606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061262a919061599c565b61264457634e487b7160e01b600052600160045260246000fd5b60008888612653600182615ebf565b81811061267057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906126859190615632565b6040516370a0823160e01b81526001600160a01b03898116600483015291909116906370a082319060240160206040518083038186803b1580156126c857600080fd5b505afa1580156126dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127009190615a18565b9050612741878a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c92506141a7915050565b6001600160a01b03808416600090815260046020526040902054168989600181811061277d57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906127929190615632565b6001600160a01b031614156127b3576127ad8a6000546139b7565b909a5091505b89818a8a6127c2600182615ebf565b8181106127df57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906127f49190615632565b6040516370a0823160e01b81526001600160a01b038b8116600483015291909116906370a082319060240161172b565b6000806000834281101561284a5760405162461bcd60e51b815260040161059790615c58565b600654612865906001600160a01b03168c8c348d8c8e613e1c565b60055460065492965090945060009161288c916001600160a01b03908116918f91166136ae565b905061289a8c3330876139ed565b6128a58c828661349e565b600660009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0866040518263ffffffff1660e01b81526004016000604051808303818588803b1580156128f557600080fd5b505af1158015612909573d6000803e3d6000fd5b505060065460405163a9059cbb60e01b81526001600160a01b038681166004830152602482018b9052909116935063a9059cbb92506044019050602060405180830381600087803b15801561295d57600080fd5b505af1158015612971573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612995919061599c565b6129af57634e487b7160e01b600052600160045260246000fd5b6040516335313c2160e11b81526001600160a01b038881166004830152821690636a62784290602401602060405180830381600087803b1580156129f257600080fd5b505af1158015612a06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a2a9190615a18565b925084341115612a4757612a4733612a428734615ebf565b6135cf565b50509750975097945050505050565b6000808242811015612a7a5760405162461bcd60e51b815260040161059790615c58565b600554600090612a94906001600160a01b03168c8c6136ae565b9050612aa28133838c6139ed565b60405163226bf2d160e21b81526001600160a01b03878116600483015260009182918416906389afcb44906024016040805180830381600087803b158015612ae957600080fd5b505af1158015612afd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b219190615a95565b915091506000612b318e8e614417565b509050806001600160a01b03168e6001600160a01b031614612b54578183612b57565b82825b90975095508a871015612b7c5760405162461bcd60e51b815260040161059790615c88565b89861015612b9c5760405162461bcd60e51b815260040161059790615d49565b505050505097509795505050505050565b6000806000612be7600560009054906101000a90046001600160a01b03168e600660009054906101000a90046001600160a01b03166136ae565b9050600087612bf6578c612c03565b612c036001600019615ebf565b60405163d505accf60e01b81529091506001600160a01b0383169063d505accf90612c3e903390309086908f908e908e908e90600401615b45565b600060405180830381600087803b158015612c5857600080fd5b505af1158015612c6c573d6000803e3d6000fd5b50505050612c7e8e8e8e8e8e8e610573565b909f909e509c50505050505050505050505050565b6002546001600160a01b03163314612caa57600080fd5b6064811115612cb857600080fd5b600180546001600160a01b0319166001600160a01b03841690811790915560008290556040805183815260208101929092527fb051278df1c6d7e99f945afc24b768334d67823013df46e69ae2d4573629f6fd910160405180910390a15050565b60055460405163e6a4390560e01b81526001600160a01b0384811660048301528381166024830152600092169063e6a439059060440160206040518083038186803b158015612d6757600080fd5b505afa158015612d7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d9f919061564e565b9392505050565b60608142811015612dc95760405162461bcd60e51b815260040161059790615c58565b60028514612de95760405162461bcd60e51b815260040161059790615d03565b6006546001600160a01b03168686600081612e1457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612e299190615632565b6001600160a01b031614612e4f5760405162461bcd60e51b815260040161059790615dd3565b600554600090612e80906001600160a01b031688888481610bfa57634e487b7160e01b600052603260045260246000fd5b90506000612e8e8683613787565b6001600160a01b03808416600090815260046020526040812054929350911689898381612ecb57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612ee09190615632565b6001600160a01b031614156131c057600554604080516020808c0282810182019093528b8252612f3b936001600160a01b0316928e92918e918e91829190850190849080828437600092019190915250889250613dff915050565b94503485600081518110612f5f57634e487b7160e01b600052603260045260246000fd5b60200260200101511115612f855760405162461bcd60e51b815260040161059790615bca565b612fa98560008151811061105a57634e487b7160e01b600052603260045260246000fd5b86600081518110612fca57634e487b7160e01b600052603260045260246000fd5b60209081029190910101919091526001549091506001600160a01b03163014613029576001546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015613027573d6000803e3d6000fd5b505b600554855161305b916001600160a01b031690879060009061216257634e487b7160e01b600052603260045260246000fd5b60065481519196506001600160a01b03169063d0e30db090879060009061309257634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156130c557600080fd5b505af11580156130d9573d6000803e3d6000fd5b505060065488516001600160a01b03909116935063a9059cbb9250869150889060009061311657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b815260040161314f9291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b15801561316957600080fd5b505af115801561317d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131a1919061599c565b6131bb57634e487b7160e01b600052600160045260246000fd5b613410565b600554604080516020808c0282810182019093528b825261320c936001600160a01b0316928e92918e918e91829190850190849080828437600092019190915250889250613dff915050565b9450348560008151811061323057634e487b7160e01b600052603260045260246000fd5b602002602001015111156132565760405162461bcd60e51b815260040161059790615bca565b60065485516001600160a01b039091169063d0e30db090879060009061328c57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156132bf57600080fd5b505af11580156132d3573d6000803e3d6000fd5b50506006546005546001600160a01b03918216945063a9059cbb935061334a9250168c8c60008161331457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906133299190615632565b8d8d600181811061075d57634e487b7160e01b600052603260045260246000fd5b8760008151811061336b57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b81526004016133a49291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b1580156133be57600080fd5b505af11580156133d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133f6919061599c565b61341057634e487b7160e01b600052600160045260246000fd5b61345087868b8b808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508d9250613b56915050565b6000818660008151811061347457634e487b7160e01b600052603260045260246000fd5b60200260200101516134869190615e68565b905080341115611f3057611f3033612a428334615ebf565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000928392908716916134fa9190615b29565b6000604051808303816000865af19150503d8060008114613537576040519150601f19603f3d011682016040523d82523d6000602084013e61353c565b606091505b5091509150818015613566575080511580613566575080806020019051810190613566919061599c565b6135c85760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201526c185b9cd9995c8819985a5b1959609a1b6064820152608401610597565b5050505050565b604080516000808252602082019092526001600160a01b0384169083906040516135f99190615b29565b60006040518083038185875af1925050503d8060008114613636576040519150601f19603f3d011682016040523d82523d6000602084013e61363b565b606091505b50509050806136a95760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b6064820152608401610597565b505050565b60008060006136bd8585614417565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015291935091508690604801604051602081830303815290604052805190602001206040516020016137659291906001600160f81b0319815260609290921b6bffffffffffffffffffffffff1916600183015260158201527f7322d196a5476ed6b44fc18910ef3e8a09c2baea2da66bd2cf58f5b3c9dc57ce603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b6000808290506000816001600160a01b031663c55dae636040518163ffffffff1660e01b815260040160206040518083038186803b1580156137c857600080fd5b505afa1580156137dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613800919061564e565b90506001600160a01b03811661381957600192506139af565b6000826001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561385457600080fd5b505afa158015613868573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061388c919061564e565b90506000836001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156138c957600080fd5b505afa1580156138dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613901919061564e565b90506000826001600160a01b0316846001600160a01b0316146139245782613926565b815b6040516314d0ab2d60e21b81526001600160a01b038a8116600483015291925090821690635342acb49060240160206040518083038186803b15801561396b57600080fd5b505afa92505050801561399b575060408051601f3d908101601f191682019092526139989181019061599c565b60015b6139a857600095506139ab565b95505b5050505b505092915050565b600080806127106139c88587615ea0565b6139d29190615e80565b90506139de8186615ebf565b945084925090505b9250929050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691613a519190615b29565b6000604051808303816000865af19150503d8060008114613a8e576040519150601f19603f3d011682016040523d82523d6000602084013e613a93565b606091505b5091509150818015613abd575080511580613abd575080806020019051810190613abd919061599c565b613b235760405162461bcd60e51b815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472604482015270185b9cd9995c919c9bdb4819985a5b1959607a1b6064820152608401610597565b505050505050565b606081613b4257613b3d858585614506565b613b4d565b613b4d858585614823565b95945050505050565b60005b60018351613b679190615ebf565b8110156135c857600080848381518110613b9157634e487b7160e01b600052603260045260246000fd5b602002602001015185846001613ba79190615e68565b81518110613bc557634e487b7160e01b600052603260045260246000fd5b6020026020010151915091506000613bdd8383614417565b50600554909150600090613bfb906001600160a01b031685856136ae565b90506000613c098a83613787565b9050600089613c19886001615e68565b81518110613c3757634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008a8881518110613c6357634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008a9050600060028251613c829190615ebf565b8a10613c8f576000613cc2565b81613c9b8b6002615e68565b81518110613cb957634e487b7160e01b600052603260045260246000fd5b60200260200101515b9050600080886001600160a01b03168b6001600160a01b031614613ce857856000613cec565b6000865b60055491935091506000908190613d11906001600160a01b03168e8e8a88888f6149a2565b91509150600060028751613d259190615ebf565b8f10613d31578f613d48565b600554613d48906001600160a01b03168e886136ae565b90506001600160a01b038b1663f8b134c6868686868660006040519080825280601f01601f191660200182016040528015613d8a576020820181803683370190505b506040518763ffffffff1660e01b8152600401613dac96959493929190615e0a565b600060405180830381600087803b158015613dc657600080fd5b505af1158015613dda573d6000803e3d6000fd5b5050505050505050505050505050505050508080613df790615f19565b915050613b59565b606081613e1157613b3d858585614b8f565b613b4d858585614e93565b6000806000613e2b8a8a612d19565b90506001600160a01b038116614011576006546001600160a01b038b811691161480613e8857507f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03168a6001600160a01b0316145b15613f51576005546040516320b7f73960e21b81526001600160a01b038b811660048301528c811660248301528a15156044830152909116906382dfdce490606401602060405180830381600087803b158015613ee457600080fd5b505af1158015613ef8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f1c919061564e565b6001600160a01b03818116600090815260046020526040902080546001600160a01b031916918d169190911790559050614011565b6005546040516320b7f73960e21b81526001600160a01b038c811660048301528b811660248301528a15156044830152909116906382dfdce490606401602060405180830381600087803b158015613fa857600080fd5b505af1158015613fbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613fe0919061564e565b6001600160a01b03818116600090815260046020526040902080546001600160a01b031916918c1691909117905590505b600554600090819061402d906001600160a01b03168d8d61503b565b9150915081600014801561403f575080155b15614102576006548995508894506001600160a01b038d81169116148061409757507f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03168c6001600160a01b0316145b156140cf576001600160a01b03838116600090815260046020526040902080546001600160a01b031916918e16919091179055614198565b6001600160a01b03838116600090815260046020526040902080546001600160a01b031916918d16919091179055614198565b600061410f8a8484615115565b905088811161414357868110156141385760405162461bcd60e51b815260040161059790615d49565b899550935083614196565b60006141508a8486615115565b90508a81111561417057634e487b7160e01b600052600160045260246000fd5b888110156141905760405162461bcd60e51b815260040161059790615c88565b95508894505b505b50505097509795505050505050565b60005b600183516141b89190615ebf565b811015614411576000808483815181106141e257634e487b7160e01b600052603260045260246000fd5b6020026020010151858460016141f89190615e68565b8151811061421657634e487b7160e01b600052603260045260246000fd5b602002602001015191509150600061422e8383614417565b5060055490915060009061424c906001600160a01b031685856136ae565b9050600061425a8983613787565b600554909150600090819061427b906001600160a01b0316888888876151bb565b91509150600080866001600160a01b0316896001600160a01b0316146142a3578260006142a7565b6000835b600554919350915060009081906142cc906001600160a01b03168c8c8988888d6149a2565b9150915060008e90506000600282516142e59190615ebf565b8e106142f2576000614325565b816142fe8f6002615e68565b8151811061431c57634e487b7160e01b600052603260045260246000fd5b60200260200101515b90506000600283516143379190615ebf565b8f10614343578f61435a565b60055461435a906001600160a01b03168e846136ae565b90506001600160a01b038b1663f8b134c6888888888660006040519080825280601f01601f19166020018201604052801561439c576020820181803683370190505b506040518763ffffffff1660e01b81526004016143be96959493929190615e0a565b600060405180830381600087803b1580156143d857600080fd5b505af11580156143ec573d6000803e3d6000fd5b505050505050505050505050505050505050808061440990615f19565b9150506141aa565b50505050565b600080826001600160a01b0316846001600160a01b031614156144885760405162461bcd60e51b815260206004820152602360248201527f505945537761704c6962726172793a204944454e544943414c5f41444452455360448201526253455360e81b6064820152608401610597565b826001600160a01b0316846001600160a01b0316106144a85782846144ab565b83835b90925090506001600160a01b0382166139e65760405162461bcd60e51b815260206004820152601c60248201527f505945537761704c6962726172793a205a45524f5f41444452455353000000006044820152606401610597565b606060028251101561452a5760405162461bcd60e51b815260040161059790615ccc565b815167ffffffffffffffff81111561455257634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561457b578160200160208202803683370190505b50905082816000815181106145a057634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060005b600183516145bd9190615ebf565b81101561481b57600061462b868584815181106145ea57634e487b7160e01b600052603260045260246000fd5b6020026020010151868560016146009190615e68565b8151811061461e57634e487b7160e01b600052603260045260246000fd5b60200260200101516136ae565b90506000816001600160a01b031663c55dae636040518163ffffffff1660e01b815260040160206040518083038186803b15801561466857600080fd5b505afa15801561467c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146a0919061564e565b90506000826001600160a01b0316637ae316d06040518163ffffffff1660e01b815260040160206040518083038186803b1580156146dd57600080fd5b505afa1580156146f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147159190615a18565b905060008061477f8a89888151811061473e57634e487b7160e01b600052603260045260246000fd5b60200260200101518a8960016147549190615e68565b8151811061477257634e487b7160e01b600052603260045260246000fd5b602002602001015161503b565b915091506147cd8787815181106147a657634e487b7160e01b600052603260045260246000fd5b6020026020010151838360006001600160a01b0316886001600160a01b03161415876153c5565b876147d9886001615e68565b815181106147f757634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505050505050808061481390615f19565b9150506145af565b509392505050565b60606002825110156148475760405162461bcd60e51b815260040161059790615ccc565b815167ffffffffffffffff81111561486f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015614898578160200160208202803683370190505b50905082816000815181106148bd57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060005b600183516148da9190615ebf565b81101561481b5760008061491e8786858151811061490857634e487b7160e01b600052603260045260246000fd5b6020026020010151878660016147549190615e68565b9150915061495784848151811061494557634e487b7160e01b600052603260045260246000fd5b602002602001015183836000806153c5565b84614963856001615e68565b8151811061498157634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505050808061499a90615f19565b9150506148cc565b60008060006149b28a8a8a6136ae565b905060006149c08a8a614417565b5090506000826001600160a01b031663c55dae636040518163ffffffff1660e01b815260040160206040518083038186803b1580156149fe57600080fd5b505afa158015614a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614a36919061564e565b90506000836001600160a01b0316637ae316d06040518163ffffffff1660e01b815260040160206040518083038186803b158015614a7357600080fd5b505afa158015614a87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614aab9190615a18565b9050826001600160a01b0316826001600160a01b0316141580614acb5750865b614b1157826001600160a01b03168c6001600160a01b031614614b0457612710614af5828b615ea0565b614aff9190615e80565b614b14565b612710614af5828c615ea0565b60005b9550826001600160a01b0316826001600160a01b03161480614b335750865b614b7a57826001600160a01b03168c6001600160a01b03161415614b6d57612710614b5e828a615ea0565b614b689190615e80565b614b7d565b612710614b5e828c615ea0565b60005b94505050505097509795505050505050565b6060600282511015614bb35760405162461bcd60e51b815260040161059790615ccc565b815167ffffffffffffffff811115614bdb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015614c04578160200160208202803683370190505b509050828160018351614c179190615ebf565b81518110614c3557634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600060018351614c519190615ebf565b90505b801561481b576000614cb28685614c6c600186615ebf565b81518110614c8a57634e487b7160e01b600052603260045260246000fd5b602002602001015186858151811061461e57634e487b7160e01b600052603260045260246000fd5b90506000816001600160a01b031663c55dae636040518163ffffffff1660e01b815260040160206040518083038186803b158015614cef57600080fd5b505afa158015614d03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614d27919061564e565b90506000826001600160a01b0316637ae316d06040518163ffffffff1660e01b815260040160206040518083038186803b158015614d6457600080fd5b505afa158015614d78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614d9c9190615a18565b9050600080614df78a89614db160018a615ebf565b81518110614dcf57634e487b7160e01b600052603260045260246000fd5b60200260200101518a898151811061477257634e487b7160e01b600052603260045260246000fd5b91509150614e45878781518110614e1e57634e487b7160e01b600052603260045260246000fd5b6020026020010151838360006001600160a01b0316886001600160a01b03161415876154c0565b87614e51600189615ebf565b81518110614e6f57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505050505050508080614e8b90615f02565b915050614c54565b6060600282511015614eb75760405162461bcd60e51b815260040161059790615ccc565b815167ffffffffffffffff811115614edf57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015614f08578160200160208202803683370190505b509050828160018351614f1b9190615ebf565b81518110614f3957634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600060018351614f559190615ebf565b90505b801561481b57600080614fb78786614f71600187615ebf565b81518110614f8f57634e487b7160e01b600052603260045260246000fd5b602002602001015187868151811061477257634e487b7160e01b600052603260045260246000fd5b91509150614ff0848481518110614fde57634e487b7160e01b600052603260045260246000fd5b602002602001015183836000806154c0565b84614ffc600186615ebf565b8151811061501a57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505050808061503390615f02565b915050614f58565b600080600061504a8585614417565b50905060008061505b8888886136ae565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160806040518083038186803b15801561509357600080fd5b505afa1580156150a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906150cb91906159b8565b50506001600160701b031691506001600160701b03169150826001600160a01b0316876001600160a01b031614615103578082615106565b81815b90999098509650505050505050565b60008084116151725760405162461bcd60e51b815260206004820152602360248201527f505945537761704c6962726172793a20494e53554646494349454e545f414d4f60448201526215539560ea1b6064820152608401610597565b6000831180156151825750600082115b61519e5760405162461bcd60e51b815260040161059790615d8d565b826151a98386615ea0565b6151b39190615e80565b949350505050565b60008060006151cb8888886136ae565b90506000806000836001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160806040518083038186803b15801561520b57600080fd5b505afa15801561521f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061524391906159b8565b9350506001600160701b031692506001600160701b031692506000846001600160a01b0316637ae316d06040518163ffffffff1660e01b815260040160206040518083038186803b15801561529757600080fd5b505afa1580156152ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906152cf9190615a18565b90506000808a6001600160a01b03168d6001600160a01b0316146152f45784866152f7565b85855b6040516370a0823160e01b81526001600160a01b038a8116600483015292945090925083918f16906370a082319060240160206040518083038186803b15801561534057600080fd5b505afa158015615354573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906153789190615a18565b6153829190615ebf565b98506153b28983836001600160a01b038816158015906153a057508d155b8e6153ab57876153c5565b60006153c5565b9750505050505050509550959350505050565b60008086116154285760405162461bcd60e51b815260206004820152602960248201527f505945537761704c6962726172793a20494e53554646494349454e545f494e50604482015268155517d05353d5539560ba1b6064820152608401610597565b6000851180156154385750600084115b6154545760405162461bcd60e51b815260040161059790615d8d565b6000836154635761271061546f565b61546f83612710615ebf565b9050600061547d8289615ea0565b9050600061548b8783615ea0565b905060008261549c8a612710615ea0565b6154a69190615e68565b90506154b28183615e80565b9a9950505050505050505050565b60008086116155245760405162461bcd60e51b815260206004820152602a60248201527f505945537761704c6962726172793a20494e53554646494349454e545f4f555460448201526914155517d05353d5539560b21b6064820152608401610597565b6000851180156155345750600084115b6155505760405162461bcd60e51b815260040161059790615d8d565b60008361555f5761271061556b565b61556b83612710615ebf565b905060006155798888615ea0565b61558590612710615ea0565b90506000826155948a89615ebf565b61559e9190615ea0565b90506155aa8183615e80565b6155b5906001615e68565b9998505050505050505050565b60008083601f8401126155d3578182fd5b50813567ffffffffffffffff8111156155ea578182fd5b6020830191508360208260051b85010111156139e657600080fd5b80516001600160701b038116811461561c57600080fd5b919050565b803560ff8116811461561c57600080fd5b600060208284031215615643578081fd5b8135612d9f81615f4a565b60006020828403121561565f578081fd5b8151612d9f81615f4a565b6000806040838503121561567c578081fd5b823561568781615f4a565b9150602083013561569781615f4a565b809150509250929050565b60008060008060008060008060006101208a8c0312156156c0578485fd5b89356156cb81615f4a565b985060208a01356156db81615f4a565b975060408a01356156eb81615f62565b965060608a0135955060808a0135945060a08a0135935060c08a0135925060e08a013561571781615f4a565b809250506101008a013590509295985092959850929598565b600080600080600080600060e0888a03121561574a578283fd5b873561575581615f4a565b9650602088013561576581615f4a565b955060408801359450606088013593506080880135925060a088013561578a81615f4a565b8092505060c0880135905092959891949750929550565b60008060008060008060008060008060006101608c8e0312156157c2578182fd5b8b356157cd81615f4a565b9a5060208c01356157dd81615f4a565b995060408c0135985060608c0135975060808c0135965060a08c013561580281615f4a565b955060c08c0135945060e08c013561581981615f62565b93506158286101008d01615621565b92506101208c013591506101408c013590509295989b509295989b9093969950565b600080600080600080600060e0888a031215615864578283fd5b873561586f81615f4a565b9650602088013561576581615f62565b60008060408385031215615891578182fd5b823561589c81615f4a565b946020939093013593505050565b60008060008060008060c087890312156158c2578384fd5b86356158cd81615f4a565b955060208701359450604087013593506060870135925060808701356158f281615f4a565b8092505060a087013590509295509295509295565b6000806000806000806000806000806101408b8d031215615926578384fd5b8a3561593181615f4a565b995060208b0135985060408b0135975060608b0135965060808b013561595681615f4a565b955060a08b0135945060c08b013561596d81615f62565b935061597b60e08c01615621565b92506101008b013591506101208b013590509295989b9194979a5092959850565b6000602082840312156159ad578081fd5b8151612d9f81615f62565b600080600080608085870312156159cd578182fd5b6159d685615605565b93506159e460208601615605565b9250604085015163ffffffff811681146159fc578283fd5b6060860151909250615a0d81615f4a565b939692955090935050565b600060208284031215615a29578081fd5b5051919050565b600080600080600060808688031215615a47578283fd5b85359450602086013567ffffffffffffffff811115615a64578384fd5b615a70888289016155c2565b9095509350506040860135615a8481615f4a565b949793965091946060013592915050565b60008060408385031215615aa7578182fd5b505080516020909101519092909150565b60008060008060008060a08789031215615ad0578384fd5b8635955060208701359450604087013567ffffffffffffffff811115615af4578485fd5b615b0089828a016155c2565b9095509350506060870135615b1481615f4a565b80925050608087013590509295509295509295565b60008251615b3b818460208701615ed6565b9190910192915050565b6001600160a01b0397881681529590961660208601526040850193909352606084019190915260ff16608083015260a082015260c081019190915260e00190565b6020808252825182820181905260009190848201906040850190845b81811015615bbe57835183529284019291840191600101615ba2565b50909695505050505050565b60208082526025908201527f50594553776170526f757465723a204558434553534956455f494e5055545f416040820152641353d5539560da1b606082015260800190565b60208082526029908201527f50594553776170526f757465723a20494e53554646494349454e545f4f555450604082015268155517d05353d5539560ba1b606082015260800190565b60208082526016908201527514165154ddd85c149bdd5d195c8e881156141254915160521b604082015260600190565b60208082526024908201527f50594553776170526f757465723a20494e53554646494349454e545f415f414d60408201526313d5539560e21b606082015260800190565b6020808252601c908201527f505945537761704c6962726172793a20494e56414c49445f5041544800000000604082015260600190565b60208082526026908201527f50594553776170526f757465723a204f4e4c595f54574f5f544f4b454e535f41604082015265131313d5d15160d21b606082015260800190565b60208082526024908201527f50594553776170526f757465723a20494e53554646494349454e545f425f414d60408201526313d5539560e21b606082015260800190565b60208082526026908201527f505945537761704c6962726172793a20494e53554646494349454e545f4c495160408201526555494449545960d01b606082015260800190565b6020808252601b908201527f50594553776170526f757465723a20494e56414c49445f504154480000000000604082015260600190565b86815285602082015284604082015283606082015260018060a01b038316608082015260c060a0820152600082518060c0840152615e4f8160e0850160208701615ed6565b601f01601f19169190910160e001979650505050505050565b60008219821115615e7b57615e7b615f34565b500190565b600082615e9b57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615615eba57615eba615f34565b500290565b600082821015615ed157615ed1615f34565b500390565b60005b83811015615ef1578181015183820152602001615ed9565b838111156144115750506000910152565b600081615f1157615f11615f34565b506000190190565b6000600019821415615f2d57615f2d615f34565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114615f5f57600080fd5b50565b8015158114615f5f57600080fdfea2646970667358221220826e489b00e248d24c6dd9d4e6ab3efaeb3e0d7796aa2f037e1a50d192e7315964736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a2f8f1fab81300c48208dc0ae540c6675d19f4cd000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000beba48d57474210aebaf81c9f05fc50366e5b20b000000000000000000000000c71b2b3dd4a0a72f8857e4f5fbac53b401f27355
-----Decoded View---------------
Arg [0] : _factory (address): 0xA2F8f1FAb81300c48208dc0aE540c6675d19f4cd
Arg [1] : _WETH (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [2] : _USDC (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [3] : _adminFee (uint8): 30
Arg [4] : _adminFeeAddress (address): 0xbEBA48d57474210AEbAF81C9f05fC50366e5b20B
Arg [5] : _adminFeeSetter (address): 0xC71B2b3DD4a0A72f8857e4f5fBac53b401F27355
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000a2f8f1fab81300c48208dc0ae540c6675d19f4cd
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [2] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [3] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [4] : 000000000000000000000000beba48d57474210aebaf81c9f05fc50366e5b20b
Arg [5] : 000000000000000000000000c71b2b3dd4a0a72f8857e4f5fbac53b401f27355
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.