Contract Address Details

0xEcBcF5C7aF4c323947CFE982940BA7c9fd207e2b

Contract Name
HebeswapV2Router02
Creator
0x749a13–f2bcbe at 0x69c7a6–9cb526
Balance
0 ETC ( )
Tokens
Fetching tokens...
Transactions
3,713 Transactions
Transfers
4,005 Transfers
Gas Used
653,192,121
Last Balance Update
15165818
Contract name:
HebeswapV2Router02




Optimization enabled
true
Compiler version
v0.6.6+commit.6c089d02




Optimization runs
999999
EVM Version
default




Verified at
2022-01-07 13:28:32.414770Z

Constructor Arguments

00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f5300000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad

Arg [0] (address) : 0x09fafa5eecbc11c3e5d30369e51b7d9aab2f3f53
Arg [1] (address) : 0x82a618305706b14e7bcf2592d4b9324a366b6dad

              

Contract source code

/**
*Submitted for verification on 2021-12-05
*/
pragma solidity =0.6.6;
interface IHebeswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IHebeswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IHebeswapV2Router01 {
function factory() external pure returns (address);
function WETC() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETC(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETCMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETC, 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 removeLiquidityETC(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETCMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETC);
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 removeLiquidityETCWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETCMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETC);
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 swapExactETCForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETC(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETC(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETCForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
interface IHebeswapV2Router02 is IHebeswapV2Router01 {
function removeLiquidityETCSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETCMin,
address to,
uint deadline
) external returns (uint amountETC);
function removeLiquidityETCWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETCMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETC);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETCForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETCSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
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);
}
interface IWETC {
function deposit() external payable;
function transfer(address to, uint value) external returns (bool);
function withdraw(uint) external;
}
contract HebeswapV2Router02 is IHebeswapV2Router02 {
using SafeMath for uint;
address public immutable override factory;
address public immutable override WETC;
modifier ensure(uint deadline) {
require(deadline >= block.timestamp, 'HebeswapV2Router: EXPIRED');
_;
}
constructor(address _factory, address _WETC) public {
factory = _factory;
WETC = _WETC;
}
receive() external payable {
assert(msg.sender == WETC); // only accept ETC via fallback from the WETC contract
}
// **** ADD LIQUIDITY ****
function _addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin
) internal virtual returns (uint amountA, uint amountB) {
// create the pair if it doesn't exist yet
if (IHebeswapV2Factory(factory).getPair(tokenA, tokenB) == address(0)) {
IHebeswapV2Factory(factory).createPair(tokenA, tokenB);
}
(uint reserveA, uint reserveB) = HebeswapV2Library.getReserves(factory, tokenA, tokenB);
if (reserveA == 0 && reserveB == 0) {
(amountA, amountB) = (amountADesired, amountBDesired);
} else {
uint amountBOptimal = HebeswapV2Library.quote(amountADesired, reserveA, reserveB);
if (amountBOptimal <= amountBDesired) {
require(amountBOptimal >= amountBMin, 'HebeswapV2Router: INSUFFICIENT_B_AMOUNT');
(amountA, amountB) = (amountADesired, amountBOptimal);
} else {
uint amountAOptimal = HebeswapV2Library.quote(amountBDesired, reserveB, reserveA);
assert(amountAOptimal <= amountADesired);
require(amountAOptimal >= amountAMin, 'HebeswapV2Router: INSUFFICIENT_A_AMOUNT');
(amountA, amountB) = (amountAOptimal, amountBDesired);
}
}
}
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external virtual override ensure(deadline) returns (uint amountA, uint amountB, uint liquidity) {
(amountA, amountB) = _addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin);
address pair = HebeswapV2Library.pairFor(factory, tokenA, tokenB);
TransferHelper.safeTransferFrom(tokenA, msg.sender, pair, amountA);
TransferHelper.safeTransferFrom(tokenB, msg.sender, pair, amountB);
liquidity = IHebeswapV2Pair(pair).mint(to);
}
function addLiquidityETC(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETCMin,
address to,
uint deadline
) external virtual override payable ensure(deadline) returns (uint amountToken, uint amountETC, uint liquidity) {
(amountToken, amountETC) = _addLiquidity(
token,
WETC,
amountTokenDesired,
msg.value,
amountTokenMin,
amountETCMin
);
address pair = HebeswapV2Library.pairFor(factory, token, WETC);
TransferHelper.safeTransferFrom(token, msg.sender, pair, amountToken);
IWETC(WETC).deposit{value: amountETC}();
assert(IWETC(WETC).transfer(pair, amountETC));
liquidity = IHebeswapV2Pair(pair).mint(to);
// refund dust ETC, if any
if (msg.value > amountETC) TransferHelper.safeTransferETC(msg.sender, msg.value - amountETC);
}
// **** 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 = HebeswapV2Library.pairFor(factory, tokenA, tokenB);
IHebeswapV2Pair(pair).transferFrom(msg.sender, pair, liquidity); // send liquidity to pair
(uint amount0, uint amount1) = IHebeswapV2Pair(pair).burn(to);
(address token0,) = HebeswapV2Library.sortTokens(tokenA, tokenB);
(amountA, amountB) = tokenA == token0 ? (amount0, amount1) : (amount1, amount0);
require(amountA >= amountAMin, 'HebeswapV2Router: INSUFFICIENT_A_AMOUNT');
require(amountB >= amountBMin, 'HebeswapV2Router: INSUFFICIENT_B_AMOUNT');
}
function removeLiquidityETC(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETCMin,
address to,
uint deadline
) public virtual override ensure(deadline) returns (uint amountToken, uint amountETC) {
(amountToken, amountETC) = removeLiquidity(
token,
WETC,
liquidity,
amountTokenMin,
amountETCMin,
address(this),
deadline
);
TransferHelper.safeTransfer(token, to, amountToken);
IWETC(WETC).withdraw(amountETC);
TransferHelper.safeTransferETC(to, amountETC);
}
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 = HebeswapV2Library.pairFor(factory, tokenA, tokenB);
uint value = approveMax ? uint(-1) : liquidity;
IHebeswapV2Pair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
(amountA, amountB) = removeLiquidity(tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline);
}
function removeLiquidityETCWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETCMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external virtual override returns (uint amountToken, uint amountETC) {
address pair = HebeswapV2Library.pairFor(factory, token, WETC);
uint value = approveMax ? uint(-1) : liquidity;
IHebeswapV2Pair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
(amountToken, amountETC) = removeLiquidityETC(token, liquidity, amountTokenMin, amountETCMin, to, deadline);
}
// **** REMOVE LIQUIDITY (supporting fee-on-transfer tokens) ****
function removeLiquidityETCSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETCMin,
address to,
uint deadline
) public virtual override ensure(deadline) returns (uint amountETC) {
(, amountETC) = removeLiquidity(
token,
WETC,
liquidity,
amountTokenMin,
amountETCMin,
address(this),
deadline
);
TransferHelper.safeTransfer(token, to, IERC20(token).balanceOf(address(this)));
IWETC(WETC).withdraw(amountETC);
TransferHelper.safeTransferETC(to, amountETC);
}
function removeLiquidityETCWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETCMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external virtual override returns (uint amountETC) {
address pair = HebeswapV2Library.pairFor(factory, token, WETC);
uint value = approveMax ? uint(-1) : liquidity;
IHebeswapV2Pair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
amountETC = removeLiquidityETCSupportingFeeOnTransferTokens(
token, liquidity, amountTokenMin, amountETCMin, to, deadline
);
}
// **** SWAP ****
// requires the initial amount to have already been sent to the first pair
function _swap(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,) = HebeswapV2Library.sortTokens(input, output);
uint amountOut = amounts[i + 1];
(uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOut) : (amountOut, uint(0));
address to = i < path.length - 2 ? HebeswapV2Library.pairFor(factory, output, path[i + 2]) : _to;
IHebeswapV2Pair(HebeswapV2Library.pairFor(factory, input, output)).swap(
amount0Out, amount1Out, to, new bytes(0)
);
}
}
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external virtual override ensure(deadline) returns (uint[] memory amounts) {
amounts = HebeswapV2Library.getAmountsOut(factory, amountIn, path);
require(amounts[amounts.length - 1] >= amountOutMin, 'HebeswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
TransferHelper.safeTransferFrom(
path[0], msg.sender, HebeswapV2Library.pairFor(factory, path[0], path[1]), amounts[0]
);
_swap(amounts, path, to);
}
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external virtual override ensure(deadline) returns (uint[] memory amounts) {
amounts = HebeswapV2Library.getAmountsIn(factory, amountOut, path);
require(amounts[0] <= amountInMax, 'HebeswapV2Router: EXCESSIVE_INPUT_AMOUNT');
TransferHelper.safeTransferFrom(
path[0], msg.sender, HebeswapV2Library.pairFor(factory, path[0], path[1]), amounts[0]
);
_swap(amounts, path, to);
}
function swapExactETCForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
virtual
override
payable
ensure(deadline)
returns (uint[] memory amounts)
{
require(path[0] == WETC, 'HebeswapV2Router: INVALID_PATH');
amounts = HebeswapV2Library.getAmountsOut(factory, msg.value, path);
require(amounts[amounts.length - 1] >= amountOutMin, 'HebeswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
IWETC(WETC).deposit{value: amounts[0]}();
assert(IWETC(WETC).transfer(HebeswapV2Library.pairFor(factory, path[0], path[1]), amounts[0]));
_swap(amounts, path, to);
}
function swapTokensForExactETC(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
virtual
override
ensure(deadline)
returns (uint[] memory amounts)
{
require(path[path.length - 1] == WETC, 'HebeswapV2Router: INVALID_PATH');
amounts = HebeswapV2Library.getAmountsIn(factory, amountOut, path);
require(amounts[0] <= amountInMax, 'HebeswapV2Router: EXCESSIVE_INPUT_AMOUNT');
TransferHelper.safeTransferFrom(
path[0], msg.sender, HebeswapV2Library.pairFor(factory, path[0], path[1]), amounts[0]
);
_swap(amounts, path, address(this));
IWETC(WETC).withdraw(amounts[amounts.length - 1]);
TransferHelper.safeTransferETC(to, amounts[amounts.length - 1]);
}
function swapExactTokensForETC(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
virtual
override
ensure(deadline)
returns (uint[] memory amounts)
{
require(path[path.length - 1] == WETC, 'HebeswapV2Router: INVALID_PATH');
amounts = HebeswapV2Library.getAmountsOut(factory, amountIn, path);
require(amounts[amounts.length - 1] >= amountOutMin, 'HebeswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
TransferHelper.safeTransferFrom(
path[0], msg.sender, HebeswapV2Library.pairFor(factory, path[0], path[1]), amounts[0]
);
_swap(amounts, path, address(this));
IWETC(WETC).withdraw(amounts[amounts.length - 1]);
TransferHelper.safeTransferETC(to, amounts[amounts.length - 1]);
}
function swapETCForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
virtual
override
payable
ensure(deadline)
returns (uint[] memory amounts)
{
require(path[0] == WETC, 'HebeswapV2Router: INVALID_PATH');
amounts = HebeswapV2Library.getAmountsIn(factory, amountOut, path);
require(amounts[0] <= msg.value, 'HebeswapV2Router: EXCESSIVE_INPUT_AMOUNT');
IWETC(WETC).deposit{value: amounts[0]}();
assert(IWETC(WETC).transfer(HebeswapV2Library.pairFor(factory, path[0], path[1]), amounts[0]));
_swap(amounts, path, to);
// refund dust ETC, if any
if (msg.value > amounts[0]) TransferHelper.safeTransferETC(msg.sender, msg.value - amounts[0]);
}
// **** SWAP (supporting fee-on-transfer tokens) ****
// requires the initial amount to have already been sent to the first pair
function _swapSupportingFeeOnTransferTokens(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,) = HebeswapV2Library.sortTokens(input, output);
IHebeswapV2Pair pair = IHebeswapV2Pair(HebeswapV2Library.pairFor(factory, input, output));
uint amountInput;
uint amountOutput;
{ // scope to avoid stack too deep errors
(uint reserve0, uint reserve1,) = pair.getReserves();
(uint reserveInput, uint reserveOutput) = input == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
amountInput = IERC20(input).balanceOf(address(pair)).sub(reserveInput);
amountOutput = HebeswapV2Library.getAmountOut(amountInput, reserveInput, reserveOutput);
}
(uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOutput) : (amountOutput, uint(0));
address to = i < path.length - 2 ? HebeswapV2Library.pairFor(factory, output, path[i + 2]) : _to;
pair.swap(amount0Out, amount1Out, to, new bytes(0));
}
}
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external virtual override ensure(deadline) {
TransferHelper.safeTransferFrom(
path[0], msg.sender, HebeswapV2Library.pairFor(factory, path[0], path[1]), amountIn
);
uint balanceBefore = IERC20(path[path.length - 1]).balanceOf(to);
_swapSupportingFeeOnTransferTokens(path, to);
require(
IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin,
'HebeswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT'
);
}
function swapExactETCForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
)
external
virtual
override
payable
ensure(deadline)
{
require(path[0] == WETC, 'HebeswapV2Router: INVALID_PATH');
uint amountIn = msg.value;
IWETC(WETC).deposit{value: amountIn}();
assert(IWETC(WETC).transfer(HebeswapV2Library.pairFor(factory, path[0], path[1]), amountIn));
uint balanceBefore = IERC20(path[path.length - 1]).balanceOf(to);
_swapSupportingFeeOnTransferTokens(path, to);
require(
IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin,
'HebeswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT'
);
}
function swapExactTokensForETCSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
)
external
virtual
override
ensure(deadline)
{
require(path[path.length - 1] == WETC, 'HebeswapV2Router: INVALID_PATH');
TransferHelper.safeTransferFrom(
path[0], msg.sender, HebeswapV2Library.pairFor(factory, path[0], path[1]), amountIn
);
_swapSupportingFeeOnTransferTokens(path, address(this));
uint amountOut = IERC20(WETC).balanceOf(address(this));
require(amountOut >= amountOutMin, 'HebeswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
IWETC(WETC).withdraw(amountOut);
TransferHelper.safeTransferETC(to, amountOut);
}
// **** LIBRARY FUNCTIONS ****
function quote(uint amountA, uint reserveA, uint reserveB) public pure virtual override returns (uint amountB) {
return HebeswapV2Library.quote(amountA, reserveA, reserveB);
}
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut)
public
pure
virtual
override
returns (uint amountOut)
{
return HebeswapV2Library.getAmountOut(amountIn, reserveIn, reserveOut);
}
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut)
public
pure
virtual
override
returns (uint amountIn)
{
return HebeswapV2Library.getAmountIn(amountOut, reserveIn, reserveOut);
}
function getAmountsOut(uint amountIn, address[] memory path)
public
view
virtual
override
returns (uint[] memory amounts)
{
return HebeswapV2Library.getAmountsOut(factory, amountIn, path);
}
function getAmountsIn(uint amountOut, address[] memory path)
public
view
virtual
override
returns (uint[] memory amounts)
{
return HebeswapV2Library.getAmountsIn(factory, amountOut, path);
}
}
// 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');
}
}
library HebeswapV2Library {
using SafeMath for uint;
// returns sorted token addresses, used to handle return values from pairs sorted in this order
function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
require(tokenA != tokenB, 'HebeswapV2Library: IDENTICAL_ADDRESSES');
(token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
require(token0 != address(0), 'HebeswapV2Library: ZERO_ADDRESS');
}
// calculates the CREATE2 address for a pair without making any external calls
function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
(address token0, address token1) = sortTokens(tokenA, tokenB);
pair = address(uint(keccak256(abi.encodePacked(
hex'ff',
factory,
keccak256(abi.encodePacked(token0, token1)),
hex'a036bc35f72d4331ca192979fb12e8a1f3260672aca44271ce35744fa5d66749' // 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,) = IHebeswapV2Pair(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, 'HebeswapV2Library: INSUFFICIENT_AMOUNT');
require(reserveA > 0 && reserveB > 0, 'HebeswapV2Library: INSUFFICIENT_LIQUIDITY');
amountB = amountA.mul(reserveB) / reserveA;
}
// given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
require(amountIn > 0, 'HebeswapV2Library: INSUFFICIENT_INPUT_AMOUNT');
require(reserveIn > 0 && reserveOut > 0, 'HebeswapV2Library: INSUFFICIENT_LIQUIDITY');
uint amountInWithFee = amountIn.mul(997);
uint numerator = amountInWithFee.mul(reserveOut);
uint denominator = reserveIn.mul(1000).add(amountInWithFee);
amountOut = numerator / denominator;
}
// given an output amount of an asset and pair reserves, returns a required input amount of the other asset
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
require(amountOut > 0, 'HebeswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT');
require(reserveIn > 0 && reserveOut > 0, 'HebeswapV2Library: INSUFFICIENT_LIQUIDITY');
uint numerator = reserveIn.mul(amountOut).mul(1000);
uint denominator = reserveOut.sub(amountOut).mul(997);
amountIn = (numerator / denominator).add(1);
}
// performs chained getAmountOut calculations on any number of pairs
function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
require(path.length >= 2, 'HebeswapV2Library: INVALID_PATH');
amounts = new uint[](path.length);
amounts[0] = amountIn;
for (uint i; i < path.length - 1; i++) {
(uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]);
amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut);
}
}
// performs chained getAmountIn calculations on any number of pairs
function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {
require(path.length >= 2, 'HebeswapV2Library: 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);
}
}
}
// helper mETCods for interacting with ERC20 tokens and sending ETC that do not consistently return true/false
library TransferHelper {
function safeApprove(address token, address to, uint value) internal {
// bytes4(keccak256(bytes('approve(address,uint256)')));
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
}
function safeTransfer(address token, address to, uint value) internal {
// bytes4(keccak256(bytes('transfer(address,uint256)')));
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
}
function safeTransferFrom(address token, address from, address to, uint value) internal {
// bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
}
function safeTransferETC(address to, uint value) internal {
(bool success,) = to.call{value:value}(new bytes(0));
require(success, 'TransferHelper: ETC_TRANSFER_FAILED');
}
}

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_factory","internalType":"address"},{"type":"address","name":"_WETC","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"WETC","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"amountB","internalType":"uint256"},{"type":"uint256","name":"liquidity","internalType":"uint256"}],"name":"addLiquidity","inputs":[{"type":"address","name":"tokenA","internalType":"address"},{"type":"address","name":"tokenB","internalType":"address"},{"type":"uint256","name":"amountADesired","internalType":"uint256"},{"type":"uint256","name":"amountBDesired","internalType":"uint256"},{"type":"uint256","name":"amountAMin","internalType":"uint256"},{"type":"uint256","name":"amountBMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256","name":"amountToken","internalType":"uint256"},{"type":"uint256","name":"amountETC","internalType":"uint256"},{"type":"uint256","name":"liquidity","internalType":"uint256"}],"name":"addLiquidityETC","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amountTokenDesired","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountETCMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"factory","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"}],"name":"getAmountIn","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"uint256","name":"reserveIn","internalType":"uint256"},{"type":"uint256","name":"reserveOut","internalType":"uint256"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"}],"name":"getAmountOut","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"reserveIn","internalType":"uint256"},{"type":"uint256","name":"reserveOut","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"getAmountsIn","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"getAmountsOut","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"amountB","internalType":"uint256"}],"name":"quote","inputs":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"reserveA","internalType":"uint256"},{"type":"uint256","name":"reserveB","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"amountB","internalType":"uint256"}],"name":"removeLiquidity","inputs":[{"type":"address","name":"tokenA","internalType":"address"},{"type":"address","name":"tokenB","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountAMin","internalType":"uint256"},{"type":"uint256","name":"amountBMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountToken","internalType":"uint256"},{"type":"uint256","name":"amountETC","internalType":"uint256"}],"name":"removeLiquidityETC","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountETCMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountETC","internalType":"uint256"}],"name":"removeLiquidityETCSupportingFeeOnTransferTokens","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountETCMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountToken","internalType":"uint256"},{"type":"uint256","name":"amountETC","internalType":"uint256"}],"name":"removeLiquidityETCWithPermit","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountETCMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"bool","name":"approveMax","internalType":"bool"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountETC","internalType":"uint256"}],"name":"removeLiquidityETCWithPermitSupportingFeeOnTransferTokens","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountETCMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"bool","name":"approveMax","internalType":"bool"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"amountB","internalType":"uint256"}],"name":"removeLiquidityWithPermit","inputs":[{"type":"address","name":"tokenA","internalType":"address"},{"type":"address","name":"tokenB","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountAMin","internalType":"uint256"},{"type":"uint256","name":"amountBMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"bool","name":"approveMax","internalType":"bool"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapETCForExactTokens","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapExactETCForTokens","inputs":[{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"swapExactETCForTokensSupportingFeeOnTransferTokens","inputs":[{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapExactTokensForETC","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"swapExactTokensForETCSupportingFeeOnTransferTokens","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapExactTokensForTokens","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"swapExactTokensForTokensSupportingFeeOnTransferTokens","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapTokensForExactETC","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"uint256","name":"amountInMax","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapTokensForExactTokens","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"uint256","name":"amountInMax","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"receive","stateMutability":"payable"}]
            

Deployed ByteCode

0x60806040526004361061018f5760003560e01c80638803dbee116100d6578063baa2abde1161007f578063d55e547611610059578063d55e547614610c95578063e75f59dd14610cf5578063e8e3370014610d75576101d5565b8063baa2abde14610b5f578063c45a015514610bc9578063d06ca61f14610bde576101d5565b80639f50973e116100b05780639f50973e146109f1578063ad615dec14610a84578063b4bc722b14610aba576101d5565b80638803dbee146108ae57806397347ff514610953578063977ebc0d146109b3576101d5565b80634d1bf6a911610138578063787a81d711610112578063787a81d71461077457806385f8c2591461080757806386eaa82f1461083d576101d5565b80634d1bf6a9146105855780635c11d7951461062a57806365f705d3146106cf576101d5565b80633417c606116101695780633417c606146103cd57806338ed1739146104605780634789a2a814610505576101d5565b8063054d50d4146101da5780631f00ca74146102225780632195995c14610329576101d5565b366101d5573373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad16146101d357fe5b005b600080fd5b3480156101e657600080fd5b50610210600480360360608110156101fd57600080fd5b5080359060208101359060400135610de4565b60408051918252519081900360200190f35b34801561022e57600080fd5b506102d96004803603604081101561024557600080fd5b8135919081019060408101602082013564010000000081111561026757600080fd5b82018360208201111561027957600080fd5b8035906020019184602083028401116401000000008311171561029b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610df9945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156103155781810151838201526020016102fd565b505050509050019250505060405180910390f35b34801561033557600080fd5b506103b4600480360361016081101561034d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff6101008201351690610120810135906101400135610e2f565b6040805192835260208301919091528051918290030190f35b6102d9600480360360808110156103e357600080fd5b8135919081019060408101602082013564010000000081111561040557600080fd5b82018360208201111561041757600080fd5b8035906020019184602083028401116401000000008311171561043957600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135610f6d565b34801561046c57600080fd5b506102d9600480360360a081101561048357600080fd5b8135916020810135918101906060810160408201356401000000008111156104aa57600080fd5b8201836020820111156104bc57600080fd5b803590602001918460208302840111640100000000831117156104de57600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135611412565b34801561051157600080fd5b50610210600480360361014081101561052957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e08201351690610100810135906101200135611641565b34801561059157600080fd5b506101d3600480360360a08110156105a857600080fd5b8135916020810135918101906060810160408201356401000000008111156105cf57600080fd5b8201836020820111156105e157600080fd5b8035906020019184602083028401116401000000008311171561060357600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135611793565b34801561063657600080fd5b506101d3600480360360a081101561064d57600080fd5b81359160208101359181019060608101604082013564010000000081111561067457600080fd5b82018360208201111561068657600080fd5b803590602001918460208302840111640100000000831117156106a857600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135611b60565b3480156106db57600080fd5b506102d9600480360360a08110156106f257600080fd5b81359160208101359181019060608101604082013564010000000081111561071957600080fd5b82018360208201111561072b57600080fd5b8035906020019184602083028401116401000000008311171561074d57600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135611e70565b6101d36004803603608081101561078a57600080fd5b813591908101906040810160208201356401000000008111156107ac57600080fd5b8201836020820111156107be57600080fd5b803590602001918460208302840111640100000000831117156107e057600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff81351690602001356121c8565b34801561081357600080fd5b506102106004803603606081101561082a57600080fd5b50803590602081013590604001356126ab565b610890600480360360c081101561085357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a001356126b8565b60408051938452602084019290925282820152519081900360600190f35b3480156108ba57600080fd5b506102d9600480360360a08110156108d157600080fd5b8135916020810135918101906060810160408201356401000000008111156108f857600080fd5b82018360208201111561090a57600080fd5b8035906020019184602083028401116401000000008311171561092c57600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff81351690602001356129e4565b34801561095f57600080fd5b50610210600480360360c081101561097657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a00135612b23565b3480156109bf57600080fd5b506109c8612d03565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102d960048036036080811015610a0757600080fd5b81359190810190604081016020820135640100000000811115610a2957600080fd5b820183602082011115610a3b57600080fd5b80359060200191846020830284011164010000000083111715610a5d57600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135612d27565b348015610a9057600080fd5b5061021060048036036060811015610aa757600080fd5b508035906020810135906040013561313d565b348015610ac657600080fd5b506102d9600480360360a0811015610add57600080fd5b813591602081013591810190606081016040820135640100000000811115610b0457600080fd5b820183602082011115610b1657600080fd5b80359060200191846020830284011164010000000083111715610b3857600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff813516906020013561314a565b348015610b6b57600080fd5b506103b4600480360360e0811015610b8257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160408201359160608101359160808201359160a08101359091169060c0013561338d565b348015610bd557600080fd5b506109c8613697565b348015610bea57600080fd5b506102d960048036036040811015610c0157600080fd5b81359190810190604081016020820135640100000000811115610c2357600080fd5b820183602082011115610c3557600080fd5b80359060200191846020830284011164010000000083111715610c5757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506136bb945050505050565b348015610ca157600080fd5b506103b4600480360360c0811015610cb857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a001356136e8565b348015610d0157600080fd5b506103b46004803603610140811015610d1957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e0820135169061010081013590610120013561383b565b348015610d8157600080fd5b506108906004803603610100811015610d9957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e00135613993565b6000610df1848484613b22565b949350505050565b6060610e267f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538484613c46565b90505b92915050565b6000806000610e5f7f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538f8f613de9565b9050600087610e6e578c610e90565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b604080517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c48101889052905191925073ffffffffffffffffffffffffffffffffffffffff84169163d505accf9160e48082019260009290919082900301818387803b158015610f2c57600080fd5b505af1158015610f40573d6000803e3d6000fd5b50505050610f538f8f8f8f8f8f8f61338d565b809450819550505050509b509b9950505050505050505050565b60608142811015610fdf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff168686600081811061102357fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110c257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f48656265737761705632526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b6111207f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f5388888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613c4692505050565b9150348260008151811061113057fe5b6020026020010151111561118f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806154f06028913960400191505060405180910390fd5b7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff1663d0e30db0836000815181106111d857fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561120b57600080fd5b505af115801561121f573d6000803e3d6000fd5b50505050507f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6112dd7f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538989600081811061129157fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff168a8a60018181106112bb57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff16613de9565b846000815181106112ea57fe5b60200260200101516040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561135b57600080fd5b505af115801561136f573d6000803e3d6000fd5b505050506040513d602081101561138557600080fd5b505161138d57fe5b6113cc82878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613ed4915050565b816000815181106113d957fe5b60200260200101513411156114085761140833836000815181106113f957fe5b6020026020010151340361415b565b5095945050505050565b6060814281101561148457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b6114e27f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061429892505050565b915086826001845103815181106114f557fe5b60200260200101511015611554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806153d4602c913960400191505060405180910390fd5b6115f78686600081811061156457fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff16336115dd7f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538a8a60008181106115b357fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff168b8b60018181106112bb57fe5b856000815181106115ea57fe5b60200260200101516143e9565b61163682878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613ed4915050565b509695505050505050565b60008061168f7f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538d7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad613de9565b905060008661169e578b6116c0565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b604080517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101839052606481018b905260ff8916608482015260a4810188905260c48101879052905191925073ffffffffffffffffffffffffffffffffffffffff84169163d505accf9160e48082019260009290919082900301818387803b15801561175c57600080fd5b505af1158015611770573d6000803e3d6000fd5b505050506117828d8d8d8d8d8d612b23565b9d9c50505050505050505050505050565b804281101561180357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad1685857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810181811061186857fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461190757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f48656265737761705632526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b61196c8585600081811061191757fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff16336119667f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538989600081811061129157fe5b8a6143e9565b6119aa8585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152503092506145b9915050565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad16916370a0823191602480820192602092909190829003018186803b158015611a3a57600080fd5b505afa158015611a4e573d6000803e3d6000fd5b505050506040513d6020811015611a6457600080fd5b5051905086811015611ac1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806153d4602c913960400191505060405180910390fd5b7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611b3457600080fd5b505af1158015611b48573d6000803e3d6000fd5b50505050611b56848261415b565b5050505050505050565b8042811015611bd057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b611be08585600081811061191757fe5b600085857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110611c1057fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611ca957600080fd5b505afa158015611cbd573d6000803e3d6000fd5b505050506040513d6020811015611cd357600080fd5b50516040805160208881028281018201909352888252929350611d159290918991899182918501908490808284376000920191909152508892506145b9915050565b86611e198288887fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110611d4857fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611de157600080fd5b505afa158015611df5573d6000803e3d6000fd5b505050506040513d6020811015611e0b57600080fd5b50519063ffffffff61494c16565b1015611b56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806153d4602c913960400191505060405180910390fd5b60608142811015611ee257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad1686867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110611f4757fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611fe657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f48656265737761705632526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b6120447f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061429892505050565b9150868260018451038151811061205757fe5b602002602001015110156120b6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806153d4602c913960400191505060405180910390fd5b6120c68686600081811061156457fe5b61210582878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613ed4915050565b7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d8360018551038151811061215157fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561218f57600080fd5b505af11580156121a3573d6000803e3d6000fd5b5050505061163684836001855103815181106121bb57fe5b602002602001015161415b565b804281101561223857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff168585600081811061227c57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461231b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f48656265737761705632526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b60003490507f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561238857600080fd5b505af115801561239c573d6000803e3d6000fd5b50505050507f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61240e7f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538989600081811061129157fe5b836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561247857600080fd5b505af115801561248c573d6000803e3d6000fd5b505050506040513d60208110156124a257600080fd5b50516124aa57fe5b600086867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81018181106124da57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561257357600080fd5b505afa158015612587573d6000803e3d6000fd5b505050506040513d602081101561259d57600080fd5b505160408051602089810282810182019093528982529293506125df9290918a918a9182918501908490808284376000920191909152508992506145b9915050565b87611e198289897fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810181811061261257fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231896040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611de157600080fd5b6000610df18484846149be565b6000806000834281101561272d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b61275b8a7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad8b348c8c614ae2565b909450925060006127ad7f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538c7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad613de9565b90506127bb8b3383886143e9565b7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561282357600080fd5b505af1158015612837573d6000803e3d6000fd5b50505050507f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156128e357600080fd5b505af11580156128f7573d6000803e3d6000fd5b505050506040513d602081101561290d57600080fd5b505161291557fe5b8073ffffffffffffffffffffffffffffffffffffffff16636a627842886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561299457600080fd5b505af11580156129a8573d6000803e3d6000fd5b505050506040513d60208110156129be57600080fd5b50519250348410156129d6576129d63385340361415b565b505096509650969350505050565b60608142811015612a5657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b612ab47f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f5389888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613c4692505050565b91508682600081518110612ac457fe5b60200260200101511115611554576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806154f06028913960400191505060405180910390fd5b60008142811015612b9557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b612bc4887f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad898989308961338d565b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051919450612c6e92508a91879173ffffffffffffffffffffffffffffffffffffffff8416916370a0823191602480820192602092909190829003018186803b158015612c3d57600080fd5b505afa158015612c51573d6000803e3d6000fd5b505050506040513d6020811015612c6757600080fd5b5051614de3565b7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015612ce157600080fd5b505af1158015612cf5573d6000803e3d6000fd5b50505050611636848361415b565b7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad81565b60608142811015612d9957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff1686866000818110612ddd57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612e7c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f48656265737761705632526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b612eda7f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f533488888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061429892505050565b91508682600184510381518110612eed57fe5b60200260200101511015612f4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806153d4602c913960400191505060405180910390fd5b7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff1663d0e30db083600081518110612f9557fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015612fc857600080fd5b505af1158015612fdc573d6000803e3d6000fd5b50505050507f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61304e7f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538989600081811061129157fe5b8460008151811061305b57fe5b60200260200101516040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156130cc57600080fd5b505af11580156130e0573d6000803e3d6000fd5b505050506040513d60208110156130f657600080fd5b50516130fe57fe5b61140882878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613ed4915050565b6000610df1848484614fc0565b606081428110156131bc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad1686867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810181811061322157fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146132c057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f48656265737761705632526f757465723a20494e56414c49445f504154480000604482015290519081900360640190fd5b61331e7f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f5389888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613c4692505050565b9150868260008151811061332e57fe5b602002602001015111156120b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806154f06028913960400191505060405180910390fd5b600080824281101561340057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b600061342d7f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538c8c613de9565b604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b1580156134ae57600080fd5b505af11580156134c2573d6000803e3d6000fd5b505050506040513d60208110156134d857600080fd5b5050604080517f89afcb4400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b15801561354b57600080fd5b505af115801561355f573d6000803e3d6000fd5b505050506040513d604081101561357557600080fd5b5080516020909101519092509050600061358f8e8e6150a0565b5090508073ffffffffffffffffffffffffffffffffffffffff168e73ffffffffffffffffffffffffffffffffffffffff16146135cc5781836135cf565b82825b90975095508a87101561362d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806154806027913960400191505060405180910390fd5b89861015613686576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018061542c6027913960400191505060405180910390fd5b505050505097509795505050505050565b7f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f5381565b6060610e267f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538484614298565b600080824281101561375b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b61378a897f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad8a8a8a308a61338d565b909350915061379a898685614de3565b7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad73ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561380d57600080fd5b505af1158015613821573d6000803e3d6000fd5b5050505061382f858361415b565b50965096945050505050565b600080600061388b7f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538e7f00000000000000000000000082a618305706b14e7bcf2592d4b9324a366b6dad613de9565b905060008761389a578c6138bc565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b604080517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c48101889052905191925073ffffffffffffffffffffffffffffffffffffffff84169163d505accf9160e48082019260009290919082900301818387803b15801561395857600080fd5b505af115801561396c573d6000803e3d6000fd5b5050505061397e8e8e8e8e8e8e6136e8565b909f909e509c50505050505050505050505050565b60008060008342811015613a0857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f48656265737761705632526f757465723a204558504952454400000000000000604482015290519081900360640190fd5b613a168c8c8c8c8c8c614ae2565b90945092506000613a487f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538e8e613de9565b9050613a568d3383886143e9565b613a628c3383876143e9565b8073ffffffffffffffffffffffffffffffffffffffff16636a627842886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b158015613ae157600080fd5b505af1158015613af5573d6000803e3d6000fd5b505050506040513d6020811015613b0b57600080fd5b5051949d939c50939a509198505050505050505050565b6000808411613b7c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180615400602c913960400191505060405180910390fd5b600083118015613b8c5750600082115b613be1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806155186029913960400191505060405180910390fd5b6000613bf5856103e563ffffffff6151f316565b90506000613c09828563ffffffff6151f316565b90506000613c2f83613c23886103e863ffffffff6151f316565b9063ffffffff61527916565b9050808281613c3a57fe5b04979650505050505050565b6060600282511015613cb957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f486562657377617056324c6962726172793a20494e56414c49445f5041544800604482015290519081900360640190fd5b815167ffffffffffffffff81118015613cd157600080fd5b50604051908082528060200260200182016040528015613cfb578160200160208202803683370190505b5090508281600183510381518110613d0f57fe5b602090810291909101015281517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b8015613de157600080613d7c87866001860381518110613d5b57fe5b6020026020010151878681518110613d6f57fe5b60200260200101516152eb565b91509150613d9e848481518110613d8f57fe5b602002602001015183836149be565b846001850381518110613dad57fe5b602090810291909101015250507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01613d3f565b509392505050565b6000806000613df885856150a0565b604080517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501207fff0000000000000000000000000000000000000000000000000000000000000060688401529a90941b9093166069840152607d8301989098527fa036bc35f72d4331ca192979fb12e8a1f3260672aca44271ce35744fa5d66749609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b60005b600183510381101561415557600080848381518110613ef257fe5b6020026020010151858460010181518110613f0957fe5b6020026020010151915091506000613f2183836150a0565b5090506000878560010181518110613f3557fe5b602002602001015190506000808373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614613f7d57826000613f81565b6000835b91509150600060028a51038810613f985788613fd9565b613fd97f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f53878c8b60020181518110613fcc57fe5b6020026020010151613de9565b90506140067f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538888613de9565b73ffffffffffffffffffffffffffffffffffffffff1663022c0d9f84848460006040519080825280601f01601f191660200182016040528015614050576020820181803683370190505b506040518563ffffffff1660e01b8152600401808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b838110156140db5781810151838201526020016140c3565b50505050905090810190601f1680156141085780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561412a57600080fd5b505af115801561413e573d6000803e3d6000fd5b505060019099019850613ed7975050505050505050565b50505050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040518082805190602001908083835b602083106141d257805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101614195565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614234576040519150601f19603f3d011682016040523d82523d6000602084013e614239565b606091505b5050905080614293576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806154cd6023913960400191505060405180910390fd5b505050565b606060028251101561430b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f486562657377617056324c6962726172793a20494e56414c49445f5041544800604482015290519081900360640190fd5b815167ffffffffffffffff8111801561432357600080fd5b5060405190808252806020026020018201604052801561434d578160200160208202803683370190505b509050828160008151811061435e57fe5b60200260200101818152505060005b6001835103811015613de1576000806143a38786858151811061438c57fe5b6020026020010151878660010181518110613d6f57fe5b915091506143c58484815181106143b657fe5b60200260200101518383613b22565b8484600101815181106143d457fe5b6020908102919091010152505060010161436d565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017815292518251600094606094938a169392918291908083835b602083106144c757805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161448a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614529576040519150601f19603f3d011682016040523d82523d6000602084013e61452e565b606091505b509150915081801561455c57508051158061455c575080806020019051602081101561455957600080fd5b50515b6145b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806155416024913960400191505060405180910390fd5b505050505050565b60005b6001835103811015614293576000808483815181106145d757fe5b60200260200101518584600101815181106145ee57fe5b602002602001015191509150600061460683836150a0565b50905060006146367f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538585613de9565b90506000806000808473ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561468457600080fd5b505afa158015614698573d6000803e3d6000fd5b505050506040513d60608110156146ae57600080fd5b5080516020909101516dffffffffffffffffffffffffffff918216935016905060008073ffffffffffffffffffffffffffffffffffffffff8a8116908916146146f85782846146fb565b83835b91509150614780828b73ffffffffffffffffffffffffffffffffffffffff166370a082318a6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611de157600080fd5b955061478d868383613b22565b9450505050506000808573ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146147d1578260006147d5565b6000835b91509150600060028c51038a106147ec578a614820565b6148207f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f53898e8d60020181518110613fcc57fe5b60408051600080825260208201928390527f022c0d9f000000000000000000000000000000000000000000000000000000008352602482018781526044830187905273ffffffffffffffffffffffffffffffffffffffff8086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b838110156148d05781810151838201526020016148b8565b50505050905090810190601f1680156148fd5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561491f57600080fd5b505af1158015614933573d6000803e3d6000fd5b50506001909b019a506145bc9950505050505050505050565b80820382811115610e2957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b6000808411614a18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180615453602d913960400191505060405180910390fd5b600083118015614a285750600082115b614a7d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806155186029913960400191505060405180910390fd5b6000614aa16103e8614a95868863ffffffff6151f316565b9063ffffffff6151f316565b90506000614abb6103e5614a95868963ffffffff61494c16565b9050614ad86001828481614acb57fe5b049063ffffffff61527916565b9695505050505050565b604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015287811660248301529151600092839283927f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f539092169163e6a4390591604480820192602092909190829003018186803b158015614b8257600080fd5b505afa158015614b96573d6000803e3d6000fd5b505050506040513d6020811015614bac57600080fd5b505173ffffffffffffffffffffffffffffffffffffffff161415614c9257604080517fc9c6539600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a81166004830152898116602483015291517f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f539092169163c9c65396916044808201926020929091908290030181600087803b158015614c6557600080fd5b505af1158015614c79573d6000803e3d6000fd5b505050506040513d6020811015614c8f57600080fd5b50505b600080614cc07f00000000000000000000000009fafa5eecbc11c3e5d30369e51b7d9aab2f3f538b8b6152eb565b91509150816000148015614cd2575080155b15614ce257879350869250614dd6565b6000614cef898484614fc0565b9050878111614d5c5785811015614d51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018061542c6027913960400191505060405180910390fd5b889450925082614dd4565b6000614d69898486614fc0565b905089811115614d7557fe5b87811015614dce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806154806027913960400191505060405180910390fd5b94508793505b505b5050965096945050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000178152925182516000946060949389169392918291908083835b60208310614eb957805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101614e7c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614f1b576040519150601f19603f3d011682016040523d82523d6000602084013e614f20565b606091505b5091509150818015614f4e575080511580614f4e5750808060200190516020811015614f4b57600080fd5b50515b614fb957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b600080841161501a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806155656026913960400191505060405180910390fd5b60008311801561502a5750600082115b61507f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806155186029913960400191505060405180910390fd5b82615090858463ffffffff6151f316565b8161509757fe5b04949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415615128576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806154a76026913960400191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1610615162578284615165565b83835b909250905073ffffffffffffffffffffffffffffffffffffffff82166151ec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f486562657377617056324c6962726172793a205a45524f5f4144445245535300604482015290519081900360640190fd5b9250929050565b600081158061520e5750508082028282828161520b57fe5b04145b610e2957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b80820182811015610e2957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b60008060006152fa85856150a0565b50905060008061530b888888613de9565b73ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561535057600080fd5b505afa158015615364573d6000803e3d6000fd5b505050506040513d606081101561537a57600080fd5b5080516020909101516dffffffffffffffffffffffffffff918216935016905073ffffffffffffffffffffffffffffffffffffffff878116908416146153c15780826153c4565b81815b9099909850965050505050505056fe48656265737761705632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e54486562657377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e5448656265737761705632526f757465723a20494e53554646494349454e545f425f414d4f554e54486562657377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e5448656265737761705632526f757465723a20494e53554646494349454e545f415f414d4f554e54486562657377617056324c6962726172793a204944454e544943414c5f4144445245535345535472616e7366657248656c7065723a204554435f5452414e534645525f4641494c454448656265737761705632526f757465723a204558434553534956455f494e5055545f414d4f554e54486562657377617056324c6962726172793a20494e53554646494349454e545f4c49515549444954595472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544486562657377617056324c6962726172793a20494e53554646494349454e545f414d4f554e54a2646970667358221220bb06c2c003f29b3fc37ed1a6980341af47e4e15ba04a31dbf274e61a28b1750264736f6c63430006060033