Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,847 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap | 20453008 | 180 days ago | IN | 0.00451274 ETH | 0.00023929 | ||||
Swap | 20452804 | 180 days ago | IN | 0 ETH | 0.0002324 | ||||
Swap | 20409026 | 186 days ago | IN | 0.001 ETH | 0.00022455 | ||||
Swap | 15449284 | 883 days ago | IN | 0 ETH | 0.00411202 | ||||
Swap | 15445955 | 883 days ago | IN | 0.005 ETH | 0.0036238 | ||||
Swap | 15445919 | 883 days ago | IN | 0 ETH | 0.00283201 | ||||
Swap | 15442984 | 884 days ago | IN | 0.135 ETH | 0.00270769 | ||||
Swap | 15442852 | 884 days ago | IN | 0 ETH | 0.0035403 | ||||
Swap | 15440923 | 884 days ago | IN | 8.437 ETH | 0.0118109 | ||||
Swap | 15438631 | 885 days ago | IN | 0 ETH | 0.00142913 | ||||
Swap | 15433734 | 885 days ago | IN | 0 ETH | 0.00238189 | ||||
Swap | 15432857 | 885 days ago | IN | 0 ETH | 0.00088185 | ||||
Swap | 15430064 | 886 days ago | IN | 0 ETH | 0.0014685 | ||||
Swap | 15428273 | 886 days ago | IN | 0 ETH | 0.0017743 | ||||
Swap | 15427626 | 886 days ago | IN | 0 ETH | 0.00095264 | ||||
Swap | 15426930 | 886 days ago | IN | 0 ETH | 0.00095272 | ||||
Swap | 15422555 | 887 days ago | IN | 0.00213839 ETH | 0.00406119 | ||||
Swap | 15416639 | 888 days ago | IN | 0 ETH | 0.00286588 | ||||
Swap | 15415747 | 888 days ago | IN | 0.06828422 ETH | 0.01006651 | ||||
Swap | 15410143 | 889 days ago | IN | 8.9 ETH | 0.00560498 | ||||
Swap | 15409062 | 889 days ago | IN | 0 ETH | 0.0014023 | ||||
Swap | 15407392 | 890 days ago | IN | 0 ETH | 0.00142908 | ||||
Swap | 15403188 | 890 days ago | IN | 0.005 ETH | 0.00237222 | ||||
Swap | 15402644 | 890 days ago | IN | 0 ETH | 0.00103475 | ||||
Swap | 15402361 | 890 days ago | IN | 0 ETH | 0.00105416 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
20453008 | 180 days ago | 0.00448544 ETH | ||||
20453008 | 180 days ago | 0.00002729 ETH | ||||
20452804 | 180 days ago | 0.03280984 ETH | ||||
20409026 | 186 days ago | 0.00014837 ETH | ||||
20409026 | 186 days ago | 0.00085162 ETH | ||||
15449284 | 883 days ago | 0.82624288 ETH | ||||
15449284 | 883 days ago | 0.00082706 ETH | ||||
15449284 | 883 days ago | 0.82706995 ETH | ||||
15445955 | 883 days ago | 0.0000252 ETH | ||||
15445955 | 883 days ago | 0.00497479 ETH | ||||
15445919 | 883 days ago | 0.00022992 ETH | ||||
15445919 | 883 days ago | 0.00000023 ETH | ||||
15445919 | 883 days ago | 0.00023015 ETH | ||||
15442984 | 884 days ago | 0.000675 ETH | ||||
15442984 | 884 days ago | 0.13432499 ETH | ||||
15442852 | 884 days ago | 0.04769249 ETH | ||||
15442852 | 884 days ago | 0.00004774 ETH | ||||
15442852 | 884 days ago | 0.04774023 ETH | ||||
15440923 | 884 days ago | 0.042185 ETH | ||||
15440923 | 884 days ago | 8.39481499 ETH | ||||
15438631 | 885 days ago | 0.42141063 ETH | ||||
15438631 | 885 days ago | 0.00042183 ETH | ||||
15438631 | 885 days ago | 0.42183246 ETH | ||||
15433734 | 885 days ago | 0.07895979 ETH | ||||
15433734 | 885 days ago | 0.00007903 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
UniswapV2TokenSwap
Compiler Version
v0.5.15+commit.6a57276f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-05-21 */ // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: openzeppelin-solidity/contracts/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: openzeppelin-solidity/contracts/utils/Address.sol pragma solidity ^0.5.5; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its address will be reported as * not containing a contract. * * IMPORTANT: It is unsafe to assume that an address for which this * function returns false is an externally-owned account (EOA) and not a * contract. */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != 0x0 && codehash != accountHash); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // File: openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.5.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } // File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } // File: @uniswap/v2-periphery/contracts/interfaces/IWETH.sol pragma solidity >=0.5.0; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; } // File: contracts/Utils/UniswapV2Library.sol pragma solidity >=0.5.0; // reimplemented because the original library imports the local SafeMath that requires solidity 0.6.x library UniswapV2Library { 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, 'UniswapV2Library: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS'); } // calculates the CREATE2 address for a pair without making any external calls function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) { (address token0, address token1) = sortTokens(tokenA, tokenB); pair = address(uint(keccak256(abi.encodePacked( hex'ff', factory, keccak256(abi.encodePacked(token0, token1)), hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash )))); } // fetches and sorts the reserves for a pair function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) { (address token0,) = sortTokens(tokenA, tokenB); (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves(); (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0); } // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) { require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT'); require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); amountB = amountA.mul(reserveB) / reserveA; } // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) { require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint amountInWithFee = amountIn.mul(997); uint numerator = amountInWithFee.mul(reserveOut); uint denominator = reserveIn.mul(1000).add(amountInWithFee); amountOut = numerator / denominator; } // given an output amount of an asset and pair reserves, returns a required input amount of the other asset function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) { require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint numerator = reserveIn.mul(amountOut).mul(1000); uint denominator = reserveOut.sub(amountOut).mul(997); amountIn = (numerator / denominator).add(1); } // performs chained getAmountOut calculations on any number of pairs function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[0] = amountIn; for (uint i; i < path.length - 1; i++) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]); amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut); } } // performs chained getAmountIn calculations on any number of pairs function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[amounts.length - 1] = amountOut; for (uint i = path.length - 1; i > 0; i--) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]); amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut); } } } // File: contracts/Interfaces/IUniswapV2Router01.sol pragma solidity >=0.5.0; //interface IUniswapV2Factory { // event PairCreated(address indexed token0, address indexed token1, address pair, uint); // // 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 feeTo() external view returns (address); // function feeToSetter() external view returns (address); // // function createPair(address tokenA, address tokenB) external returns (address pair); //} // //interface IUniswapV2Pair { // event Approval(address indexed owner, address indexed spender, uint value); // event Transfer(address indexed from, address indexed to, uint value); // // function name() external pure returns (string memory); // function symbol() external pure returns (string memory); // function decimals() external pure returns (uint8); // function totalSupply() external view returns (uint); // function balanceOf(address owner) external view returns (uint); // function allowance(address owner, address spender) external view returns (uint); // // function approve(address spender, uint value) external returns (bool); // function transfer(address to, uint value) external returns (bool); // function transferFrom(address from, address to, uint value) external returns (bool); // // function DOMAIN_SEPARATOR() external view returns (bytes32); // function PERMIT_TYPEHASH() external pure returns (bytes32); // function nonces(address owner) external view returns (uint); // // function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; // // event Mint(address indexed sender, uint amount0, uint amount1); // event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); // event Swap( // address indexed sender, // uint amount0In, // uint amount1In, // uint amount0Out, // uint amount1Out, // address indexed to // ); // event Sync(uint112 reserve0, uint112 reserve1); // // function MINIMUM_LIQUIDITY() external pure returns (uint); // function factory() external view returns (address); // function token0() external view returns (address); // function token1() external view returns (address); // function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); // function price0CumulativeLast() external view returns (uint); // function price1CumulativeLast() external view returns (uint); // function kLast() external view returns (uint); // // function mint(address to) external returns (uint liquidity); // function burn(address to) external returns (uint amount0, uint amount1); // function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; // function skim(address to) external; // function sync() external; //} interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } // File: contracts/Interfaces/IBadStaticCallERC20.sol pragma solidity ^0.5.0; /** * @dev Interface to be safe with not so good proxy contracts. */ interface IBadStaticCallERC20 { /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external returns (uint256); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); } // File: contracts/Utils/SafeStaticCallERC20.sol pragma solidity ^0.5.0; library SafeStaticCallERC20 { using SafeMath for uint256; using Address for address; function safeApprove(IBadStaticCallERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeProxyERC20: approve from non-zero to non-zero allowance" ); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IBadStaticCallERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeProxyERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeProxyERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeProxyERC20: ERC20 operation did not succeed"); } } } // File: openzeppelin-solidity/contracts/GSN/Context.sol pragma solidity ^0.5.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: openzeppelin-solidity/contracts/Ownership/Ownable.sol pragma solidity ^0.5.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = _msgSender(); emit OwnershipTransferred(address(0), _owner); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return _msgSender() == _owner; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: contracts/Utils/Destructible.sol pragma solidity >=0.5.0; /** * @title Destructible * @dev Base contract that can be destroyed by owner. All funds in contract will be sent to the owner. */ contract Destructible is Ownable { /** * @dev Transfers the current balance to the owner and terminates the contract. */ function destroy() public onlyOwner { selfdestruct(address(bytes20(owner()))); } function destroyAndSend(address payable _recipient) public onlyOwner { selfdestruct(_recipient); } } // File: contracts/Utils/Pausable.sol pragma solidity >=0.4.24; /** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */ contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!paused, "The contract is paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. */ modifier whenPaused() { require(paused, "The contract is not paused"); _; } /** * @dev called by the owner to pause, triggers stopped state */ function pause() public onlyOwner whenNotPaused { paused = true; emit Pause(); } /** * @dev called by the owner to unpause, returns to normal state */ function unpause() public onlyOwner whenPaused { paused = false; emit Unpause(); } } // File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol pragma solidity ^0.5.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for `sender`'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal { require(account != address(0), "ERC20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); } } // File: contracts/Utils/Withdrawable.sol pragma solidity >=0.4.24; contract Withdrawable is Ownable { using SafeERC20 for ERC20; address constant ETHER = address(0); event LogWithdrawToken( address indexed _from, address indexed _token, uint amount ); /** * @dev Withdraw asset. * @param _tokenAddress Asset to be withdrawed. * @return bool. */ function withdrawToken(address _tokenAddress) public onlyOwner { uint tokenBalance; if (_tokenAddress == ETHER) { address self = address(this); // workaround for a possible solidity bug tokenBalance = self.balance; msg.sender.transfer(tokenBalance); } else { tokenBalance = ERC20(_tokenAddress).balanceOf(address(this)); ERC20(_tokenAddress).safeTransfer(msg.sender, tokenBalance); } emit LogWithdrawToken(msg.sender, _tokenAddress, tokenBalance); } } // File: contracts/Utils/WithFee.sol pragma solidity ^0.5.0; contract WithFee is Ownable { using SafeERC20 for IERC20; using SafeMath for uint; address payable public feeWallet; uint public storedSpread; uint constant spreadDecimals = 6; uint constant spreadUnit = 10 ** spreadDecimals; event LogFee(address token, uint amount); constructor(address payable _wallet, uint _spread) public { require(_wallet != address(0), "_wallet == address(0)"); require(_spread < spreadUnit, "spread >= spreadUnit"); feeWallet = _wallet; storedSpread = _spread; } function setFeeWallet(address payable _wallet) external onlyOwner { require(_wallet != address(0), "_wallet == address(0)"); feeWallet = _wallet; } function setSpread(uint _spread) external onlyOwner { storedSpread = _spread; } function _getFee(uint underlyingTokenTotal) internal view returns(uint) { return underlyingTokenTotal.mul(storedSpread).div(spreadUnit); } function _payFee(address feeToken, uint fee) internal { if (fee > 0) { if (feeToken == address(0)) { feeWallet.transfer(fee); } else { IERC20(feeToken).safeTransfer(feeWallet, fee); } emit LogFee(feeToken, fee); } } } // File: contracts/Interfaces/IErc20Swap.sol pragma solidity >=0.4.0; interface IErc20Swap { function getRate(address src, address dst, uint256 srcAmount) external view returns(uint expectedRate, uint slippageRate); // real rate = returned value / 1e18 function swap(address src, uint srcAmount, address dest, uint maxDestAmount, uint minConversionRate) external payable; event LogTokenSwap( address indexed _userAddress, address indexed _userSentTokenAddress, uint _userSentTokenAmount, address indexed _userReceivedTokenAddress, uint _userReceivedTokenAmount ); } // File: contracts/base/NetworkBasedTokenSwap.sol pragma solidity >=0.5.0; contract NetworkBasedTokenSwap is Withdrawable, Pausable, Destructible, WithFee, IErc20Swap { using SafeMath for uint; using SafeERC20 for IERC20; address constant ETHER = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; mapping (address => mapping (address => uint)) spreadCustom; event UnexpectedIntialBalance(address token, uint amount); constructor( address payable _wallet, uint _spread ) public WithFee(_wallet, _spread) {} function() external payable { // can receive ethers } // spread value >= spreadUnit means no fee function setSpread(address tokenA, address tokenB, uint spread) public onlyOwner { uint value = spread > spreadUnit ? spreadUnit : spread; spreadCustom[tokenA][tokenB] = value; spreadCustom[tokenB][tokenA] = value; } function getSpread(address tokenA, address tokenB) public view returns(uint) { uint value = spreadCustom[tokenA][tokenB]; if (value == 0) return storedSpread; if (value >= spreadUnit) return 0; else return value; } // kyber network style rate function getNetworkRate(address src, address dest, uint256 srcAmount) internal view returns(uint expectedRate, uint slippageRate); function getRate(address src, address dest, uint256 srcAmount) external view returns(uint expectedRate, uint slippageRate) { (uint256 kExpected, uint256 kSplippage) = getNetworkRate(src, dest, srcAmount); uint256 spread = getSpread(src, dest); expectedRate = kExpected.mul(spreadUnit - spread).div(spreadUnit); slippageRate = kSplippage.mul(spreadUnit - spread).div(spreadUnit); } function _freeUnexpectedTokens(address token) private { uint256 unexpectedBalance = token == ETHER ? _myEthBalance().sub(msg.value) : IBadStaticCallERC20(token).balanceOf(address(this)); if (unexpectedBalance > 0) { _transfer(token, address(bytes20(owner())), unexpectedBalance); emit UnexpectedIntialBalance(token, unexpectedBalance); } } function swap(address src, uint srcAmount, address dest, uint maxDestAmount, uint minConversionRate) public payable { require(src != dest, "src == dest"); require(srcAmount > 0, "srcAmount == 0"); // empty unexpected initial balances _freeUnexpectedTokens(src); _freeUnexpectedTokens(dest); if (src == ETHER) { require(msg.value == srcAmount, "msg.value != srcAmount"); } else { require( IBadStaticCallERC20(src).allowance(msg.sender, address(this)) >= srcAmount, "ERC20 allowance < srcAmount" ); // get user's tokens IERC20(src).safeTransferFrom(msg.sender, address(this), srcAmount); } uint256 spread = getSpread(src, dest); // calculate the minConversionRate and maxDestAmount keeping in mind the fee uint256 adaptedMinRate = minConversionRate.mul(spreadUnit).div(spreadUnit - spread); uint256 adaptedMaxDestAmount = maxDestAmount.mul(spreadUnit).div(spreadUnit - spread); uint256 destTradedAmount = doNetworkTrade(src, srcAmount, dest, adaptedMaxDestAmount, adaptedMinRate); uint256 notTraded = _myBalance(src); uint256 srcTradedAmount = srcAmount.sub(notTraded); require(srcTradedAmount > 0, "no traded tokens"); require( _myBalance(dest) >= destTradedAmount, "No enough dest tokens after trade" ); // pay fee and user uint256 toUserAmount = _payFee(dest, destTradedAmount, spread); _transfer(dest, msg.sender, toUserAmount); // returns not traded tokens if any if (notTraded > 0) { _transfer(src, msg.sender, notTraded); } emit LogTokenSwap( msg.sender, src, srcTradedAmount, dest, toUserAmount ); } function doNetworkTrade(address src, uint srcAmount, address dest, uint maxDestAmount, uint minConversionRate) internal returns(uint256); function _payFee(address token, uint destTradedAmount, uint spread) private returns(uint256 toUserAmount) { uint256 fee = destTradedAmount.mul(spread).div(spreadUnit); toUserAmount = destTradedAmount.sub(fee); // pay fee super._payFee(token == ETHER ? address(0) : token, fee); } // workaround for a solidity bug function _myEthBalance() private view returns(uint256) { address self = address(this); return self.balance; } function _myBalance(address token) private returns(uint256) { return token == ETHER ? _myEthBalance() : IBadStaticCallERC20(token).balanceOf(address(this)); } function _transfer(address token, address payable recipient, uint256 amount) private { if (token == ETHER) { recipient.transfer(amount); } else { IERC20(token).safeTransfer(recipient, amount); } } } // File: openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol pragma solidity ^0.5.0; /** * @dev Optional functions from the ERC20 standard. */ contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } } // File: contracts/Utils/LowLevel.sol pragma solidity ^0.5.0; library LowLevel { function staticCallContractAddr(address target, bytes memory payload) internal view returns (bool success_, address result_) { (bool success, bytes memory result) = address(target).staticcall(payload); if (success && result.length == 32) { return (true, abi.decode(result, (address))); } return (false, address(0)); } function callContractAddr(address target, bytes memory payload) internal returns (bool success_, address result_) { (bool success, bytes memory result) = address(target).call(payload); if (success && result.length == 32) { return (true, abi.decode(result, (address))); } return (false, address(0)); } function staticCallContractUint(address target, bytes memory payload) internal view returns (bool success_, uint result_) { (bool success, bytes memory result) = address(target).staticcall(payload); if (success && result.length == 32) { return (true, abi.decode(result, (uint))); } return (false, 0); } function callContractUint(address target, bytes memory payload) internal returns (bool success_, uint result_) { (bool success, bytes memory result) = address(target).call(payload); if (success && result.length == 32) { return (true, abi.decode(result, (uint))); } return (false, 0); } } // File: contracts/Utils/RateNormalization.sol pragma solidity ^0.5.0; contract RateNormalization is Ownable { using SafeMath for uint; struct RateAdjustment { uint factor; bool multiply; } mapping (address => mapping(address => RateAdjustment)) public rateAdjustment; mapping (address => uint) public forcedDecimals; function _getAdjustment(address src, address dest) private view returns(RateAdjustment memory) { RateAdjustment memory adj = rateAdjustment[src][dest]; if (adj.factor == 0) { uint srcDecimals = _getDecimals(src); uint destDecimals = _getDecimals(dest); if (srcDecimals != destDecimals) { if (srcDecimals > destDecimals) { adj.multiply = true; adj.factor = 10 ** (srcDecimals - destDecimals); } else { adj.multiply = false; adj.factor = 10 ** (destDecimals - srcDecimals); } } } return adj; } // return normalized rate function normalizeRate(address src, address dest, uint256 rate) public view returns(uint) { RateAdjustment memory adj = _getAdjustment(src, dest); if (adj.factor > 1) { rate = adj.multiply ? rate.mul(adj.factor) : rate.div(adj.factor); } return rate; } function denormalizeRate(address src, address dest, uint256 rate) public view returns(uint) { RateAdjustment memory adj = _getAdjustment(src, dest); if (adj.factor > 1) { rate = adj.multiply // invert multiply/divide for denormalization ? rate.div(adj.factor) : rate.mul(adj.factor); } return rate; } function denormalizeRate(address src, address dest, uint256 rate, uint256 slippage) public view returns(uint, uint) { RateAdjustment memory adj = _getAdjustment(src, dest); if (adj.factor > 1) { if (adj.multiply) { rate = rate.div(adj.factor); slippage = slippage.div(adj.factor); } else { rate = rate.mul(adj.factor); slippage = slippage.mul(adj.factor); } } return (rate, slippage); } function _getDecimals(address token) internal view returns(uint) { uint forced = forcedDecimals[token]; if (forced > 0) return forced; bytes memory payload = abi.encodeWithSignature("decimals()"); (bool success, uint decimals) = LowLevel.staticCallContractUint(token, payload); require(success, "the token doesn't expose the decimals number"); return decimals; } function setRateAdjustmentFactor(address src, address dest, uint factor, bool multiply) public onlyOwner { rateAdjustment[src][dest] = RateAdjustment(factor, multiply); rateAdjustment[dest][src] = RateAdjustment(factor, !multiply); } function setForcedDecimals(address token, uint decimals) public onlyOwner { forcedDecimals[token] = decimals; } } // File: contracts/UniswapV2TokenSwap.sol pragma solidity >=0.5.0; contract UniswapV2TokenSwap is RateNormalization, NetworkBasedTokenSwap { using SafeMath for uint; using SafeERC20 for IERC20; using SafeStaticCallERC20 for IBadStaticCallERC20; uint constant expScale = 1e18; IUniswapV2Factory public uniswapFactory; IUniswapV2Router01 public router; mapping (address => address) public exchangeAddressCustom; constructor( address payable _wallet, uint _spread ) public NetworkBasedTokenSwap(_wallet, _spread) { setForcedDecimals(ETHER, 18); // the router address is deterministic and it is the same in all networks setUniswap(0xf164fC0Ec4E93095b804a4795bBe1e041497b92a); } function setUniswap(address _uniswapRouter) public onlyOwner { require(_uniswapRouter != address(0), "_uniswapRouter == address(0)"); router = IUniswapV2Router01(_uniswapRouter); uniswapFactory = IUniswapV2Factory(router.factory()); } function _getUniswapRate(address[] memory path, uint srcAmount) private view returns(uint rate, uint destAmount) { uint[] memory amounts = UniswapV2Library.getAmountsOut(address(uniswapFactory), srcAmount, path); destAmount = amounts[amounts.length - 1]; // rate = destAmount.mul(expScale).div(srcAmount); rate = _calcRate(srcAmount, destAmount); } function _getPath(address srcToken, address destToken) private view returns(address[] memory res) { address WETH = router.WETH(); address from = srcToken == ETHER ? WETH : srcToken; address to = destToken == ETHER ? WETH : destToken; if (uniswapFactory.getPair(from, to) != address(0)) { res = new address[](2); res[0] = from; res[1] = to; } else if ( uniswapFactory.getPair(from, WETH) != address(0) && uniswapFactory.getPair(WETH, to) != address(0) ) { res = new address[](3); res[0] = from; res[1] = WETH; res[2] = to; } else { res = new address[](0); } } function _calcRate(uint srcAmount, uint destAmount) private pure returns(uint) { return destAmount.mul(expScale).div(srcAmount); } function getNetworkRate(address src, address dest, uint256 srcAmount) internal view returns(uint expectedRate, uint slippageRate) { address[] memory path = _getPath(src, dest); (uint rate, ) = _getUniswapRate(path, srcAmount); uint normalizedRate = normalizeRate(src, dest, rate); return (normalizedRate, normalizedRate); } function _approveWithReset(address token, address spender, uint amount) private { if (IBadStaticCallERC20(token).allowance(address(this), spender) > 0) { IBadStaticCallERC20(token).safeApprove(spender, 0); } IBadStaticCallERC20(token).safeApprove(spender, amount); } function doNetworkTrade(address src, uint srcAmount, address dest, uint maxDestAmount, uint minConversionRate) internal returns(uint256) { address[] memory path = _getPath(src, dest); (uint rate, uint destAmount) = _getUniswapRate(path, srcAmount); uint toTradeAmount = destAmount > maxDestAmount ? maxDestAmount.mul(expScale).div(rate) : srcAmount; // convert source ethers to WETHs if (src == ETHER) { IWETH(router.WETH()).deposit.value(toTradeAmount)(); } _approveWithReset(path[0], address(router), toTradeAmount); uint[] memory amounts = router.swapExactTokensForTokens(toTradeAmount, 0, path, address(this), now); require(amounts.length > 0, 'amounts.length == 0'); uint finalDestAmount = amounts[amounts.length - 1]; // convert WETHs to ethers if (dest == ETHER) { IWETH(router.WETH()).withdraw(finalDestAmount); } require(normalizeRate(src, dest, _calcRate(toTradeAmount, finalDestAmount)) >= minConversionRate, "cannot satisfy minConversionRate"); return finalDestAmount; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_spread","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_userAddress","type":"address"},{"indexed":true,"internalType":"address","name":"_userSentTokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_userSentTokenAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"_userReceivedTokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_userReceivedTokenAmount","type":"uint256"}],"name":"LogTokenSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogWithdrawToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnexpectedIntialBalance","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"rate","type":"uint256"},{"internalType":"uint256","name":"slippage","type":"uint256"}],"name":"denormalizeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"denormalizeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"destroy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"_recipient","type":"address"}],"name":"destroyAndSend","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"exchangeAddressCustom","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"feeWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"forcedDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"}],"name":"getRate","outputs":[{"internalType":"uint256","name":"expectedRate","type":"uint256"},{"internalType":"uint256","name":"slippageRate","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"getSpread","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"normalizeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rateAdjustment","outputs":[{"internalType":"uint256","name":"factor","type":"uint256"},{"internalType":"bool","name":"multiply","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router01","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"_wallet","type":"address"}],"name":"setFeeWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"decimals","type":"uint256"}],"name":"setForcedDecimals","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"factor","type":"uint256"},{"internalType":"bool","name":"multiply","type":"bool"}],"name":"setRateAdjustmentFactor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"spread","type":"uint256"}],"name":"setSpread","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_spread","type":"uint256"}],"name":"setSpread","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_uniswapRouter","type":"address"}],"name":"setUniswap","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"storedSpread","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"maxDestAmount","type":"uint256"},{"internalType":"uint256","name":"minConversionRate","type":"uint256"}],"name":"swap","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"uniswapFactory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"withdrawToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526003805460ff191690553480156200001b57600080fd5b506040516200397038038062003970833981810160405260408110156200004157600080fd5b50805160209091015181818181620000616001600160e01b03620001e416565b600080546001600160a01b0319166001600160a01b03928316178082556040519216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36001600160a01b03821662000105576040805162461bcd60e51b815260206004820152601560248201527f5f77616c6c6574203d3d20616464726573732830290000000000000000000000604482015290519081900360640190fd5b620f424081106200015d576040805162461bcd60e51b815260206004820152601460248201527f737072656164203e3d20737072656164556e6974000000000000000000000000604482015290519081900360640190fd5b600380546001600160a01b0390931661010002610100600160a81b03199093169290921790915560045550620001b4905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee60126001600160e01b03620001e816565b620001dc73f164fc0ec4e93095b804a4795bbe1e041497b92a6001600160e01b036200025816565b5050620003e4565b3390565b620001fb6001600160e01b03620003b516565b6200023c576040805162461bcd60e51b8152602060048201819052602482015260008051602062003950833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260026020526040902055565b6200026b6001600160e01b03620003b516565b620002ac576040805162461bcd60e51b8152602060048201819052602482015260008051602062003950833981519152604482015290519081900360640190fd5b6001600160a01b03811662000308576040805162461bcd60e51b815260206004820152601c60248201527f5f756e6973776170526f75746572203d3d206164647265737328302900000000604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0383811691909117918290556040805163c45a015560e01b81529051929091169163c45a015591600480820192602092909190829003018186803b1580156200036557600080fd5b505afa1580156200037a573d6000803e3d6000fd5b505050506040513d60208110156200039157600080fd5b5051600680546001600160a01b0319166001600160a01b0390921691909117905550565b600080546001600160a01b0316620003d56001600160e01b03620001e416565b6001600160a01b031614905090565b61355c80620003f46000396000f3fe6080604052600436106101c25760003560e01c80638f32d59b116100f7578063c24b074f11610095578063f2fde38b11610064578063f2fde38b146106ad578063f5074f41146106e0578063f887ea4014610713578063f97c6f8414610728576101c2565b8063c24b074f146105e9578063ce057dbc14610622578063e56c174b14610655578063f25f4b5614610698576101c2565b8063986602b5116100d1578063986602b5146105065780639dd4733214610549578063a1c11a7b1461057c578063b66a261c146105bf576101c2565b80638f32d59b1461047357806390d49b9d146104885780639801132f146104bb576101c2565b806375ead45911610164578063894760691161013e57806389476069146103c75780638bdb2afa146103fa5780638da5cb5b1461042b5780638efecdda14610440576101c2565b806375ead4591461035057806383197ef01461039d5780638456cb59146103b2576101c2565b80635c975abb116101a05780635c975abb1461027e5780635e75228f146102a757806370fbff24146102e7578063715018a61461033b576101c2565b80630b749269146101c45780633f4ba83a1461022657806345db50341461023b575b005b3480156101d057600080fd5b5061020d600480360360808110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040810135906060013561073d565b6040805192835260208301919091528051918290030190f35b34801561023257600080fd5b506101c26107d4565b34801561024757600080fd5b506101c26004803603606081101561025e57600080fd5b506001600160a01b038135811691602081013590911690604001356108a7565b34801561028a57600080fd5b50610293610946565b604080519115158252519081900360200190f35b6101c2600480360360a08110156102bd57600080fd5b506001600160a01b038135811691602081013591604082013516906060810135906080013561094f565b3480156102f357600080fd5b506103226004803603604081101561030a57600080fd5b506001600160a01b0381358116916020013516610d0f565b6040805192835290151560208301528051918290030190f35b34801561034757600080fd5b506101c2610d33565b34801561035c57600080fd5b5061038b6004803603604081101561037357600080fd5b506001600160a01b0381358116916020013516610dc4565b60408051918252519081900360200190f35b3480156103a957600080fd5b506101c2610e18565b3480156103be57600080fd5b506101c2610e72565b3480156103d357600080fd5b506101c2600480360360208110156103ea57600080fd5b50356001600160a01b0316610f42565b34801561040657600080fd5b5061040f6110a4565b604080516001600160a01b039092168252519081900360200190f35b34801561043757600080fd5b5061040f6110b3565b34801561044c57600080fd5b506101c26004803603602081101561046357600080fd5b50356001600160a01b03166110c2565b34801561047f57600080fd5b5061029361120e565b34801561049457600080fd5b506101c2600480360360208110156104ab57600080fd5b50356001600160a01b0316611232565b3480156104c757600080fd5b506101c2600480360360808110156104de57600080fd5b506001600160a01b0381358116916020810135909116906040810135906060013515156112f4565b34801561051257600080fd5b5061038b6004803603606081101561052957600080fd5b506001600160a01b038135811691602081013590911690604001356113ca565b34801561055557600080fd5b5061040f6004803603602081101561056c57600080fd5b50356001600160a01b031661142d565b34801561058857600080fd5b5061038b6004803603606081101561059f57600080fd5b506001600160a01b03813581169160208101359091169060400135611448565b3480156105cb57600080fd5b506101c2600480360360208110156105e257600080fd5b503561149a565b3480156105f557600080fd5b506101c26004803603604081101561060c57600080fd5b506001600160a01b0381351690602001356114e6565b34801561062e57600080fd5b5061038b6004803603602081101561064557600080fd5b50356001600160a01b0316611549565b34801561066157600080fd5b5061020d6004803603606081101561067857600080fd5b506001600160a01b0381358116916020810135909116906040013561155b565b3480156106a457600080fd5b5061040f6115bf565b3480156106b957600080fd5b506101c2600480360360208110156106d057600080fd5b50356001600160a01b03166115d3565b3480156106ec57600080fd5b506101c26004803603602081101561070357600080fd5b50356001600160a01b0316611626565b34801561071f57600080fd5b5061040f611679565b34801561073457600080fd5b5061038b611688565b600080610748613307565b610752878761168e565b90506001816000015111156107c75780602001511561079b57805161077e90869063ffffffff61173d16565b815190955061079490859063ffffffff61173d16565b93506107c7565b80516107ae90869063ffffffff61177f16565b81519095506107c490859063ffffffff61177f16565b93505b5092959194509092505050565b6107dc61120e565b61081b576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b60035460ff16610872576040805162461bcd60e51b815260206004820152601a60248201527f54686520636f6e7472616374206973206e6f7420706175736564000000000000604482015290519081900360640190fd5b6003805460ff191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b6108af61120e565b6108ee576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b6000620f424082116109005781610905565b620f42405b6001600160a01b0394851660008181526005602081815260408084209890991683529687528782208490558652868120918152945293909220929092555050565b60035460ff1681565b826001600160a01b0316856001600160a01b031614156109a4576040805162461bcd60e51b815260206004820152600b60248201526a1cdc98c80f4f4819195cdd60aa1b604482015290519081900360640190fd5b600084116109ea576040805162461bcd60e51b815260206004820152600e60248201526d0737263416d6f756e74203d3d20360941b604482015290519081900360640190fd5b6109f3856117d8565b6109fc836117d8565b6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610a7357833414610a6e576040805162461bcd60e51b81526020600482015260166024820152751b5cd9cb9d985b1d5948084f481cdc98d05b5bdd5b9d60521b604482015290519081900360640190fd5b610b5e565b60408051636eb1769f60e11b8152336004820152306024820152905185916001600160a01b0388169163dd62ed3e916044808201926020929091908290030181600087803b158015610ac457600080fd5b505af1158015610ad8573d6000803e3d6000fd5b505050506040513d6020811015610aee57600080fd5b50511015610b43576040805162461bcd60e51b815260206004820152601b60248201527f455243323020616c6c6f77616e6365203c20737263416d6f756e740000000000604482015290519081900360640190fd5b610b5e6001600160a01b03861633308763ffffffff6118fb16565b6000610b6a8685610dc4565b90506000610b96620f424083810390610b8a90869063ffffffff61177f16565b9063ffffffff61173d16565b90506000610bb6620f424084810390610b8a90889063ffffffff61177f16565b90506000610bc7898989858761195b565b90506000610bd48a611e3d565b90506000610be88a8363ffffffff611eec16565b905060008111610c32576040805162461bcd60e51b815260206004820152601060248201526f6e6f2074726164656420746f6b656e7360801b604482015290519081900360640190fd5b82610c3c8a611e3d565b1015610c795760405162461bcd60e51b81526004018080602001828103825260218152602001806134036021913960400191505060405180910390fd5b6000610c868a8589611f2e565b9050610c938a3383611f9a565b8215610ca457610ca48c3385611f9a565b896001600160a01b03168c6001600160a01b0316336001600160a01b03167f3ec01f4da9d8c31a1cdb8e6e7231364ba5ef0850b01daaa44a9f126f920693c68585604051808381526020018281526020019250505060405180910390a4505050505050505050505050565b60016020818152600093845260408085209091529183529120805491015460ff1682565b610d3b61120e565b610d7a576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001600160a01b03808316600090815260056020908152604080832093851683529290529081205480610dfb575050600454610e12565b620f42408110610e0f576000915050610e12565b90505b92915050565b610e2061120e565b610e5f576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b610e676110b3565b6001600160a01b0316ff5b610e7a61120e565b610eb9576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b60035460ff1615610f0a576040805162461bcd60e51b8152602060048201526016602482015275151a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b604482015290519081900360640190fd5b6003805460ff191660011790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b610f4a61120e565b610f89576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b60006001600160a01b038216610fd2575060405130803191339083156108fc029084906000818181858888f19350505050158015610fcb573d6000803e3d6000fd5b5050611060565b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561101857600080fd5b505afa15801561102c573d6000803e3d6000fd5b505050506040513d602081101561104257600080fd5b505190506110606001600160a01b038316338363ffffffff61201a16565b6040805182815290516001600160a01b0384169133917f46ae78bc7b198b8b534ca0070d125569ac5f955976841c4343223079f3abf0de9181900360200190a35050565b6006546001600160a01b031681565b6000546001600160a01b031690565b6110ca61120e565b611109576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b6001600160a01b038116611164576040805162461bcd60e51b815260206004820152601c60248201527f5f756e6973776170526f75746572203d3d206164647265737328302900000000604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0383811691909117918290556040805163c45a015560e01b81529051929091169163c45a015591600480820192602092909190829003018186803b1580156111c057600080fd5b505afa1580156111d4573d6000803e3d6000fd5b505050506040513d60208110156111ea57600080fd5b5051600680546001600160a01b0319166001600160a01b0390921691909117905550565b600080546001600160a01b031661122361206c565b6001600160a01b031614905090565b61123a61120e565b611279576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b6001600160a01b0381166112cc576040805162461bcd60e51b81526020600482015260156024820152745f77616c6c6574203d3d206164647265737328302960581b604482015290519081900360640190fd5b600380546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6112fc61120e565b61133b576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b6040805180820182528381529115801560208085019182526001600160a01b039788166000818152600180845286822099909a16808252988352858120965187559251958901805496151560ff19978816179055845180860186529687528682019384529682528781528382209682529590955293209151825591519201805492151592909116919091179055565b60006113d4613307565b6113de858561168e565b905060018160000151111561142457806020015161140e57805161140990849063ffffffff61173d16565b611421565b805161142190849063ffffffff61177f16565b92505b50909392505050565b6008602052600090815260409020546001600160a01b031681565b6000611452613307565b61145c858561168e565b905060018160000151111561142457806020015161148757805161140990849063ffffffff61177f16565b805161142190849063ffffffff61173d16565b6114a261120e565b6114e1576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b600455565b6114ee61120e565b61152d576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260026020526040902055565b60026020526000908152604090205481565b60008060008061156c878787612070565b91509150600061157c8888610dc4565b9050611597620f4240610b8a8584830363ffffffff61177f16565b94506115b2620f4240610b8a8484830363ffffffff61177f16565b9350505050935093915050565b60035461010090046001600160a01b031681565b6115db61120e565b61161a576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b611623816120ab565b50565b61162e61120e565b61166d576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b806001600160a01b0316ff5b6007546001600160a01b031681565b60045481565b611696613307565b61169e613307565b506001600160a01b0380841660009081526001602081815260408084209487168452938152918390208351808501909452805480855291015460ff16151591830191909152610e0f5760006116f28561214b565b905060006116ff8561214b565b905080821461173457808211156117245760016020840152808203600a0a8352611734565b60006020840152818103600a0a83525b50509392505050565b6000610e0f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506121f0565b60008261178e57506000610e12565b8282028284828161179b57fe5b0414610e0f5760405162461bcd60e51b81526004018080602001828103825260218152602001806133e26021913960400191505060405180910390fd5b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461187757604080516370a0823160e01b815230600482015290516001600160a01b038416916370a082319160248083019260209291908290030181600087803b15801561184657600080fd5b505af115801561185a573d6000803e3d6000fd5b505050506040513d602081101561187057600080fd5b505161188f565b61188f34611883612292565b9063ffffffff611eec16565b905080156118f7576118b2826118a36110b3565b6001600160a01b031683611f9a565b604080516001600160a01b03841681526020810183905281517f53189a8ce98afbf89498c735cf6b58ad2708c8a3a12b6f077bd4f3313dced7a9929181900390910190a15b5050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611955908590612297565b50505050565b60006060611969878661244f565b90506000806119788389612814565b91509150600086821161198b57886119a7565b6119a783610b8a89670de0b6b3a764000063ffffffff61177f16565b90506001600160a01b038a1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415611aa657600760009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015611a1c57600080fd5b505afa158015611a30573d6000803e3d6000fd5b505050506040513d6020811015611a4657600080fd5b505160408051630d0e30db60e41b815290516001600160a01b039092169163d0e30db0918491600480830192600092919082900301818588803b158015611a8c57600080fd5b505af1158015611aa0573d6000803e3d6000fd5b50505050505b611ad384600081518110611ab657fe5b60209081029190910101516007546001600160a01b031683612863565b6007546040516338ed173960e01b8152600481018381526000602483018190523060648401819052426084850181905260a0604486019081528a5160a48701528a516060976001600160a01b0316966338ed1739968a96958e95909490939192909160c490910190602080880191028083838b5b83811015611b5f578181015183820152602001611b47565b505050509050019650505050505050600060405180830381600087803b158015611b8857600080fd5b505af1158015611b9c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611bc557600080fd5b8101908080516040519392919084640100000000821115611be557600080fd5b908301906020820185811115611bfa57600080fd5b8251866020820283011164010000000082111715611c1757600080fd5b82525081516020918201928201910280838360005b83811015611c44578181015183820152602001611c2c565b5050505090500160405250505090506000815111611c9f576040805162461bcd60e51b81526020600482015260136024820152720616d6f756e74732e6c656e677468203d3d203606c1b604482015290519081900360640190fd5b600081600183510381518110611cb157fe5b6020026020010151905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b03168a6001600160a01b03161415611dc657600760009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015611d3757600080fd5b505afa158015611d4b573d6000803e3d6000fd5b505050506040513d6020811015611d6157600080fd5b505160408051632e1a7d4d60e01b81526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b158015611dad57600080fd5b505af1158015611dc1573d6000803e3d6000fd5b505050505b87611ddb8d8c611dd6878661291c565b6113ca565b1015611e2e576040805162461bcd60e51b815260206004820181905260248201527f63616e6e6f742073617469736679206d696e436f6e76657273696f6e52617465604482015290519081900360640190fd5b9b9a5050505050505050505050565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611edc57604080516370a0823160e01b815230600482015290516001600160a01b038416916370a082319160248083019260209291908290030181600087803b158015611eab57600080fd5b505af1158015611ebf573d6000803e3d6000fd5b505050506040513d6020811015611ed557600080fd5b5051611ee4565b611ee4612292565b90505b919050565b6000610e0f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061293a565b600080611f48620f4240610b8a868663ffffffff61177f16565b9050611f5a848263ffffffff611eec16565b9150611f926001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611f895785611f8c565b60005b82612994565b509392505050565b6001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415611ffb576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611ff5573d6000803e3d6000fd5b50612015565b6120156001600160a01b038416838363ffffffff61201a16565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612015908490612297565b3390565b600080606061207f868661244f565b9050600061208d8286612814565b509050600061209d8888846113ca565b988998509650505050505050565b6001600160a01b0381166120f05760405162461bcd60e51b815260040180806020018281038252602681526020018061331f6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166000908152600260205260408120548015612171579050611ee7565b6040805160048152602481019091526020810180516001600160e01b031663313ce56760e01b1790526000806121a78684612a59565b91509150816121e75760405162461bcd60e51b815260040180806020018281038252602c815260200180613369602c913960400191505060405180910390fd5b95945050505050565b6000818361227c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612241578181015183820152602001612229565b50505050905090810190601f16801561226e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161228857fe5b0495945050505050565b303190565b6122a9826001600160a01b0316612b4e565b6122fa576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106123385780518252601f199092019160209182019101612319565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461239a576040519150601f19603f3d011682016040523d82523d6000602084013e61239f565b606091505b5091509150816123f6576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156119555780806020019051602081101561241257600080fd5b50516119555760405162461bcd60e51b815260040180806020018281038252602a8152602001806134d3602a913960400191505060405180910390fd5b60606000600760009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156124a157600080fd5b505afa1580156124b5573d6000803e3d6000fd5b505050506040513d60208110156124cb57600080fd5b5051905060006001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146124fb57846124fd565b815b905060006001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461252b578461252d565b825b6006546040805163e6a4390560e01b81526001600160a01b03868116600483015284811660248301529151939450600093919092169163e6a43905916044808301926020929190829003018186803b15801561258857600080fd5b505afa15801561259c573d6000803e3d6000fd5b505050506040513d60208110156125b257600080fd5b50516001600160a01b03161461264357604080516002808252606082018352909160208301908038833901905050935081846000815181106125f057fe5b60200260200101906001600160a01b031690816001600160a01b031681525050808460018151811061261e57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505061280b565b6006546040805163e6a4390560e01b81526001600160a01b038581166004830152868116602483015291516000939092169163e6a4390591604480820192602092909190829003018186803b15801561269b57600080fd5b505afa1580156126af573d6000803e3d6000fd5b505050506040513d60208110156126c557600080fd5b50516001600160a01b03161480159061276957506006546040805163e6a4390560e01b81526001600160a01b038681166004830152848116602483015291516000939092169163e6a4390591604480820192602092909190829003018186803b15801561273157600080fd5b505afa158015612745573d6000803e3d6000fd5b505050506040513d602081101561275b57600080fd5b50516001600160a01b031614155b156127f957604080516003808252608082019092529060208201606080388339019050509350818460008151811061279d57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505082846001815181106127cb57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050808460028151811061261e57fe5b60408051600081526020810190915293505b50505092915050565b6006546000908190606090612833906001600160a01b03168587612b8a565b90508060018251038151811061284557fe5b60200260200101519150612859848361291c565b9250509250929050565b60408051636eb1769f60e11b81523060048201526001600160a01b038481166024830152915160009286169163dd62ed3e91604480830192602092919082900301818787803b1580156128b557600080fd5b505af11580156128c9573d6000803e3d6000fd5b505050506040513d60208110156128df57600080fd5b50511115612902576129026001600160a01b03841683600063ffffffff612cb716565b6120156001600160a01b038416838363ffffffff612cb716565b6000610e0f83610b8a84670de0b6b3a764000063ffffffff61177f16565b6000818484111561298c5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612241578181015183820152602001612229565b505050900390565b80156118f7576001600160a01b0382166129ec576003546040516101009091046001600160a01b0316906108fc8315029083906000818181858888f193505050501580156129e6573d6000803e3d6000fd5b50612a11565b600354612a11906001600160a01b03848116916101009004168363ffffffff61201a16565b604080516001600160a01b03841681526020810183905281517f1cdf74906ad7d5c402e19a20dbe986befe937e6768a0722bdb18918cdba45c4a929181900390910190a15050565b60008060006060856001600160a01b0316856040518082805190602001908083835b60208310612a9a5780518252601f199092019160209182019101612a7b565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114612afa576040519150601f19603f3d011682016040523d82523d6000602084013e612aff565b606091505b5091509150818015612b12575080516020145b15612b3d576001818060200190516020811015612b2e57600080fd5b50519094509250612b47915050565b5060009250829150505b9250929050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590612b825750808214155b949350505050565b6060600282511015612be3576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b8151604051908082528060200260200182016040528015612c0e578160200160208202803883390190505b5090508281600081518110612c1f57fe5b60200260200101818152505060005b6001835103811015611f9257600080612c7187868581518110612c4d57fe5b6020026020010151878660010181518110612c6457fe5b6020026020010151612dcc565b91509150612c93848481518110612c8457fe5b60200260200101518383612e9a565b848460010181518110612ca257fe5b60209081029190910101525050600101612c2e565b801580612d3f575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e916044808201926020929091908290030181600087803b158015612d1157600080fd5b505af1158015612d25573d6000803e3d6000fd5b505050506040513d6020811015612d3b57600080fd5b5051155b612d7a5760405162461bcd60e51b815260040180806020018281038252603b815260200180613444603b913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052612015908490612f8a565b6000806000612ddb8585613116565b509050600080612dec8888886131ed565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015612e2457600080fd5b505afa158015612e38573d6000803e3d6000fd5b505050506040513d6060811015612e4e57600080fd5b5080516020909101516dffffffffffffffffffffffffffff91821693501690506001600160a01b0387811690841614612e88578082612e8b565b81815b90999098509650505050505050565b6000808411612eda5760405162461bcd60e51b815260040180806020018281038252602b8152602001806134fd602b913960400191505060405180910390fd5b600083118015612eea5750600082115b612f255760405162461bcd60e51b81526004018080602001828103825260288152602001806133ba6028913960400191505060405180910390fd5b6000612f39856103e563ffffffff61177f16565b90506000612f4d828563ffffffff61177f16565b90506000612f7383612f67886103e863ffffffff61177f16565b9063ffffffff6132ad16565b9050808281612f7e57fe5b04979650505050505050565b612f9c826001600160a01b0316612b4e565b612fd75760405162461bcd60e51b81526004018080602001828103825260248152602001806133456024913960400191505060405180910390fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106130155780518252601f199092019160209182019101612ff6565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613077576040519150601f19603f3d011682016040523d82523d6000602084013e61307c565b606091505b5091509150816130bd5760405162461bcd60e51b81526004018080602001828103825260258152602001806134ae6025913960400191505060405180910390fd5b805115611955578080602001905160208110156130d957600080fd5b50516119555760405162461bcd60e51b815260040180806020018281038252602f81526020018061347f602f913960400191505060405180910390fd5b600080826001600160a01b0316846001600160a01b0316141561316a5760405162461bcd60e51b81526004018080602001828103825260258152602001806133956025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b03161061318a57828461318d565b83835b90925090506001600160a01b038216612b47576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b60008060006131fc8585613116565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b600082820183811015610e0f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60408051808201909152600080825260208201529056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735361666550726f787945524332303a2063616c6c20746f206e6f6e2d636f6e747261637474686520746f6b656e20646f65736e2774206578706f73652074686520646563696d616c73206e756d626572556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774e6f20656e6f756768206465737420746f6b656e732061667465722074726164654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666550726f787945524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63655361666550726f787945524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666550726f787945524332303a206c6f772d6c6576656c2063616c6c206661696c65645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a265627a7a723158203f73ac346cfeda896f46dedaefb254bd789aac3e22b1f96d6c24ff501b40672564736f6c634300050f00324f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000002a24a7a4beb9e6d0431c9bc1800045b8fc27a96600000000000000000000000000000000000000000000000000000000000003e8
Deployed Bytecode
0x6080604052600436106101c25760003560e01c80638f32d59b116100f7578063c24b074f11610095578063f2fde38b11610064578063f2fde38b146106ad578063f5074f41146106e0578063f887ea4014610713578063f97c6f8414610728576101c2565b8063c24b074f146105e9578063ce057dbc14610622578063e56c174b14610655578063f25f4b5614610698576101c2565b8063986602b5116100d1578063986602b5146105065780639dd4733214610549578063a1c11a7b1461057c578063b66a261c146105bf576101c2565b80638f32d59b1461047357806390d49b9d146104885780639801132f146104bb576101c2565b806375ead45911610164578063894760691161013e57806389476069146103c75780638bdb2afa146103fa5780638da5cb5b1461042b5780638efecdda14610440576101c2565b806375ead4591461035057806383197ef01461039d5780638456cb59146103b2576101c2565b80635c975abb116101a05780635c975abb1461027e5780635e75228f146102a757806370fbff24146102e7578063715018a61461033b576101c2565b80630b749269146101c45780633f4ba83a1461022657806345db50341461023b575b005b3480156101d057600080fd5b5061020d600480360360808110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040810135906060013561073d565b6040805192835260208301919091528051918290030190f35b34801561023257600080fd5b506101c26107d4565b34801561024757600080fd5b506101c26004803603606081101561025e57600080fd5b506001600160a01b038135811691602081013590911690604001356108a7565b34801561028a57600080fd5b50610293610946565b604080519115158252519081900360200190f35b6101c2600480360360a08110156102bd57600080fd5b506001600160a01b038135811691602081013591604082013516906060810135906080013561094f565b3480156102f357600080fd5b506103226004803603604081101561030a57600080fd5b506001600160a01b0381358116916020013516610d0f565b6040805192835290151560208301528051918290030190f35b34801561034757600080fd5b506101c2610d33565b34801561035c57600080fd5b5061038b6004803603604081101561037357600080fd5b506001600160a01b0381358116916020013516610dc4565b60408051918252519081900360200190f35b3480156103a957600080fd5b506101c2610e18565b3480156103be57600080fd5b506101c2610e72565b3480156103d357600080fd5b506101c2600480360360208110156103ea57600080fd5b50356001600160a01b0316610f42565b34801561040657600080fd5b5061040f6110a4565b604080516001600160a01b039092168252519081900360200190f35b34801561043757600080fd5b5061040f6110b3565b34801561044c57600080fd5b506101c26004803603602081101561046357600080fd5b50356001600160a01b03166110c2565b34801561047f57600080fd5b5061029361120e565b34801561049457600080fd5b506101c2600480360360208110156104ab57600080fd5b50356001600160a01b0316611232565b3480156104c757600080fd5b506101c2600480360360808110156104de57600080fd5b506001600160a01b0381358116916020810135909116906040810135906060013515156112f4565b34801561051257600080fd5b5061038b6004803603606081101561052957600080fd5b506001600160a01b038135811691602081013590911690604001356113ca565b34801561055557600080fd5b5061040f6004803603602081101561056c57600080fd5b50356001600160a01b031661142d565b34801561058857600080fd5b5061038b6004803603606081101561059f57600080fd5b506001600160a01b03813581169160208101359091169060400135611448565b3480156105cb57600080fd5b506101c2600480360360208110156105e257600080fd5b503561149a565b3480156105f557600080fd5b506101c26004803603604081101561060c57600080fd5b506001600160a01b0381351690602001356114e6565b34801561062e57600080fd5b5061038b6004803603602081101561064557600080fd5b50356001600160a01b0316611549565b34801561066157600080fd5b5061020d6004803603606081101561067857600080fd5b506001600160a01b0381358116916020810135909116906040013561155b565b3480156106a457600080fd5b5061040f6115bf565b3480156106b957600080fd5b506101c2600480360360208110156106d057600080fd5b50356001600160a01b03166115d3565b3480156106ec57600080fd5b506101c26004803603602081101561070357600080fd5b50356001600160a01b0316611626565b34801561071f57600080fd5b5061040f611679565b34801561073457600080fd5b5061038b611688565b600080610748613307565b610752878761168e565b90506001816000015111156107c75780602001511561079b57805161077e90869063ffffffff61173d16565b815190955061079490859063ffffffff61173d16565b93506107c7565b80516107ae90869063ffffffff61177f16565b81519095506107c490859063ffffffff61177f16565b93505b5092959194509092505050565b6107dc61120e565b61081b576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b60035460ff16610872576040805162461bcd60e51b815260206004820152601a60248201527f54686520636f6e7472616374206973206e6f7420706175736564000000000000604482015290519081900360640190fd5b6003805460ff191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b6108af61120e565b6108ee576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b6000620f424082116109005781610905565b620f42405b6001600160a01b0394851660008181526005602081815260408084209890991683529687528782208490558652868120918152945293909220929092555050565b60035460ff1681565b826001600160a01b0316856001600160a01b031614156109a4576040805162461bcd60e51b815260206004820152600b60248201526a1cdc98c80f4f4819195cdd60aa1b604482015290519081900360640190fd5b600084116109ea576040805162461bcd60e51b815260206004820152600e60248201526d0737263416d6f756e74203d3d20360941b604482015290519081900360640190fd5b6109f3856117d8565b6109fc836117d8565b6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610a7357833414610a6e576040805162461bcd60e51b81526020600482015260166024820152751b5cd9cb9d985b1d5948084f481cdc98d05b5bdd5b9d60521b604482015290519081900360640190fd5b610b5e565b60408051636eb1769f60e11b8152336004820152306024820152905185916001600160a01b0388169163dd62ed3e916044808201926020929091908290030181600087803b158015610ac457600080fd5b505af1158015610ad8573d6000803e3d6000fd5b505050506040513d6020811015610aee57600080fd5b50511015610b43576040805162461bcd60e51b815260206004820152601b60248201527f455243323020616c6c6f77616e6365203c20737263416d6f756e740000000000604482015290519081900360640190fd5b610b5e6001600160a01b03861633308763ffffffff6118fb16565b6000610b6a8685610dc4565b90506000610b96620f424083810390610b8a90869063ffffffff61177f16565b9063ffffffff61173d16565b90506000610bb6620f424084810390610b8a90889063ffffffff61177f16565b90506000610bc7898989858761195b565b90506000610bd48a611e3d565b90506000610be88a8363ffffffff611eec16565b905060008111610c32576040805162461bcd60e51b815260206004820152601060248201526f6e6f2074726164656420746f6b656e7360801b604482015290519081900360640190fd5b82610c3c8a611e3d565b1015610c795760405162461bcd60e51b81526004018080602001828103825260218152602001806134036021913960400191505060405180910390fd5b6000610c868a8589611f2e565b9050610c938a3383611f9a565b8215610ca457610ca48c3385611f9a565b896001600160a01b03168c6001600160a01b0316336001600160a01b03167f3ec01f4da9d8c31a1cdb8e6e7231364ba5ef0850b01daaa44a9f126f920693c68585604051808381526020018281526020019250505060405180910390a4505050505050505050505050565b60016020818152600093845260408085209091529183529120805491015460ff1682565b610d3b61120e565b610d7a576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001600160a01b03808316600090815260056020908152604080832093851683529290529081205480610dfb575050600454610e12565b620f42408110610e0f576000915050610e12565b90505b92915050565b610e2061120e565b610e5f576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b610e676110b3565b6001600160a01b0316ff5b610e7a61120e565b610eb9576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b60035460ff1615610f0a576040805162461bcd60e51b8152602060048201526016602482015275151a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b604482015290519081900360640190fd5b6003805460ff191660011790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b610f4a61120e565b610f89576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b60006001600160a01b038216610fd2575060405130803191339083156108fc029084906000818181858888f19350505050158015610fcb573d6000803e3d6000fd5b5050611060565b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561101857600080fd5b505afa15801561102c573d6000803e3d6000fd5b505050506040513d602081101561104257600080fd5b505190506110606001600160a01b038316338363ffffffff61201a16565b6040805182815290516001600160a01b0384169133917f46ae78bc7b198b8b534ca0070d125569ac5f955976841c4343223079f3abf0de9181900360200190a35050565b6006546001600160a01b031681565b6000546001600160a01b031690565b6110ca61120e565b611109576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b6001600160a01b038116611164576040805162461bcd60e51b815260206004820152601c60248201527f5f756e6973776170526f75746572203d3d206164647265737328302900000000604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0383811691909117918290556040805163c45a015560e01b81529051929091169163c45a015591600480820192602092909190829003018186803b1580156111c057600080fd5b505afa1580156111d4573d6000803e3d6000fd5b505050506040513d60208110156111ea57600080fd5b5051600680546001600160a01b0319166001600160a01b0390921691909117905550565b600080546001600160a01b031661122361206c565b6001600160a01b031614905090565b61123a61120e565b611279576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b6001600160a01b0381166112cc576040805162461bcd60e51b81526020600482015260156024820152745f77616c6c6574203d3d206164647265737328302960581b604482015290519081900360640190fd5b600380546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6112fc61120e565b61133b576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b6040805180820182528381529115801560208085019182526001600160a01b039788166000818152600180845286822099909a16808252988352858120965187559251958901805496151560ff19978816179055845180860186529687528682019384529682528781528382209682529590955293209151825591519201805492151592909116919091179055565b60006113d4613307565b6113de858561168e565b905060018160000151111561142457806020015161140e57805161140990849063ffffffff61173d16565b611421565b805161142190849063ffffffff61177f16565b92505b50909392505050565b6008602052600090815260409020546001600160a01b031681565b6000611452613307565b61145c858561168e565b905060018160000151111561142457806020015161148757805161140990849063ffffffff61177f16565b805161142190849063ffffffff61173d16565b6114a261120e565b6114e1576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b600455565b6114ee61120e565b61152d576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260026020526040902055565b60026020526000908152604090205481565b60008060008061156c878787612070565b91509150600061157c8888610dc4565b9050611597620f4240610b8a8584830363ffffffff61177f16565b94506115b2620f4240610b8a8484830363ffffffff61177f16565b9350505050935093915050565b60035461010090046001600160a01b031681565b6115db61120e565b61161a576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b611623816120ab565b50565b61162e61120e565b61166d576040805162461bcd60e51b81526020600482018190526024820152600080516020613424833981519152604482015290519081900360640190fd5b806001600160a01b0316ff5b6007546001600160a01b031681565b60045481565b611696613307565b61169e613307565b506001600160a01b0380841660009081526001602081815260408084209487168452938152918390208351808501909452805480855291015460ff16151591830191909152610e0f5760006116f28561214b565b905060006116ff8561214b565b905080821461173457808211156117245760016020840152808203600a0a8352611734565b60006020840152818103600a0a83525b50509392505050565b6000610e0f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506121f0565b60008261178e57506000610e12565b8282028284828161179b57fe5b0414610e0f5760405162461bcd60e51b81526004018080602001828103825260218152602001806133e26021913960400191505060405180910390fd5b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461187757604080516370a0823160e01b815230600482015290516001600160a01b038416916370a082319160248083019260209291908290030181600087803b15801561184657600080fd5b505af115801561185a573d6000803e3d6000fd5b505050506040513d602081101561187057600080fd5b505161188f565b61188f34611883612292565b9063ffffffff611eec16565b905080156118f7576118b2826118a36110b3565b6001600160a01b031683611f9a565b604080516001600160a01b03841681526020810183905281517f53189a8ce98afbf89498c735cf6b58ad2708c8a3a12b6f077bd4f3313dced7a9929181900390910190a15b5050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611955908590612297565b50505050565b60006060611969878661244f565b90506000806119788389612814565b91509150600086821161198b57886119a7565b6119a783610b8a89670de0b6b3a764000063ffffffff61177f16565b90506001600160a01b038a1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415611aa657600760009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015611a1c57600080fd5b505afa158015611a30573d6000803e3d6000fd5b505050506040513d6020811015611a4657600080fd5b505160408051630d0e30db60e41b815290516001600160a01b039092169163d0e30db0918491600480830192600092919082900301818588803b158015611a8c57600080fd5b505af1158015611aa0573d6000803e3d6000fd5b50505050505b611ad384600081518110611ab657fe5b60209081029190910101516007546001600160a01b031683612863565b6007546040516338ed173960e01b8152600481018381526000602483018190523060648401819052426084850181905260a0604486019081528a5160a48701528a516060976001600160a01b0316966338ed1739968a96958e95909490939192909160c490910190602080880191028083838b5b83811015611b5f578181015183820152602001611b47565b505050509050019650505050505050600060405180830381600087803b158015611b8857600080fd5b505af1158015611b9c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611bc557600080fd5b8101908080516040519392919084640100000000821115611be557600080fd5b908301906020820185811115611bfa57600080fd5b8251866020820283011164010000000082111715611c1757600080fd5b82525081516020918201928201910280838360005b83811015611c44578181015183820152602001611c2c565b5050505090500160405250505090506000815111611c9f576040805162461bcd60e51b81526020600482015260136024820152720616d6f756e74732e6c656e677468203d3d203606c1b604482015290519081900360640190fd5b600081600183510381518110611cb157fe5b6020026020010151905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b03168a6001600160a01b03161415611dc657600760009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015611d3757600080fd5b505afa158015611d4b573d6000803e3d6000fd5b505050506040513d6020811015611d6157600080fd5b505160408051632e1a7d4d60e01b81526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b158015611dad57600080fd5b505af1158015611dc1573d6000803e3d6000fd5b505050505b87611ddb8d8c611dd6878661291c565b6113ca565b1015611e2e576040805162461bcd60e51b815260206004820181905260248201527f63616e6e6f742073617469736679206d696e436f6e76657273696f6e52617465604482015290519081900360640190fd5b9b9a5050505050505050505050565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611edc57604080516370a0823160e01b815230600482015290516001600160a01b038416916370a082319160248083019260209291908290030181600087803b158015611eab57600080fd5b505af1158015611ebf573d6000803e3d6000fd5b505050506040513d6020811015611ed557600080fd5b5051611ee4565b611ee4612292565b90505b919050565b6000610e0f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061293a565b600080611f48620f4240610b8a868663ffffffff61177f16565b9050611f5a848263ffffffff611eec16565b9150611f926001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611f895785611f8c565b60005b82612994565b509392505050565b6001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415611ffb576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611ff5573d6000803e3d6000fd5b50612015565b6120156001600160a01b038416838363ffffffff61201a16565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612015908490612297565b3390565b600080606061207f868661244f565b9050600061208d8286612814565b509050600061209d8888846113ca565b988998509650505050505050565b6001600160a01b0381166120f05760405162461bcd60e51b815260040180806020018281038252602681526020018061331f6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166000908152600260205260408120548015612171579050611ee7565b6040805160048152602481019091526020810180516001600160e01b031663313ce56760e01b1790526000806121a78684612a59565b91509150816121e75760405162461bcd60e51b815260040180806020018281038252602c815260200180613369602c913960400191505060405180910390fd5b95945050505050565b6000818361227c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612241578181015183820152602001612229565b50505050905090810190601f16801561226e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161228857fe5b0495945050505050565b303190565b6122a9826001600160a01b0316612b4e565b6122fa576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106123385780518252601f199092019160209182019101612319565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461239a576040519150601f19603f3d011682016040523d82523d6000602084013e61239f565b606091505b5091509150816123f6576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156119555780806020019051602081101561241257600080fd5b50516119555760405162461bcd60e51b815260040180806020018281038252602a8152602001806134d3602a913960400191505060405180910390fd5b60606000600760009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156124a157600080fd5b505afa1580156124b5573d6000803e3d6000fd5b505050506040513d60208110156124cb57600080fd5b5051905060006001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146124fb57846124fd565b815b905060006001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461252b578461252d565b825b6006546040805163e6a4390560e01b81526001600160a01b03868116600483015284811660248301529151939450600093919092169163e6a43905916044808301926020929190829003018186803b15801561258857600080fd5b505afa15801561259c573d6000803e3d6000fd5b505050506040513d60208110156125b257600080fd5b50516001600160a01b03161461264357604080516002808252606082018352909160208301908038833901905050935081846000815181106125f057fe5b60200260200101906001600160a01b031690816001600160a01b031681525050808460018151811061261e57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505061280b565b6006546040805163e6a4390560e01b81526001600160a01b038581166004830152868116602483015291516000939092169163e6a4390591604480820192602092909190829003018186803b15801561269b57600080fd5b505afa1580156126af573d6000803e3d6000fd5b505050506040513d60208110156126c557600080fd5b50516001600160a01b03161480159061276957506006546040805163e6a4390560e01b81526001600160a01b038681166004830152848116602483015291516000939092169163e6a4390591604480820192602092909190829003018186803b15801561273157600080fd5b505afa158015612745573d6000803e3d6000fd5b505050506040513d602081101561275b57600080fd5b50516001600160a01b031614155b156127f957604080516003808252608082019092529060208201606080388339019050509350818460008151811061279d57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505082846001815181106127cb57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050808460028151811061261e57fe5b60408051600081526020810190915293505b50505092915050565b6006546000908190606090612833906001600160a01b03168587612b8a565b90508060018251038151811061284557fe5b60200260200101519150612859848361291c565b9250509250929050565b60408051636eb1769f60e11b81523060048201526001600160a01b038481166024830152915160009286169163dd62ed3e91604480830192602092919082900301818787803b1580156128b557600080fd5b505af11580156128c9573d6000803e3d6000fd5b505050506040513d60208110156128df57600080fd5b50511115612902576129026001600160a01b03841683600063ffffffff612cb716565b6120156001600160a01b038416838363ffffffff612cb716565b6000610e0f83610b8a84670de0b6b3a764000063ffffffff61177f16565b6000818484111561298c5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612241578181015183820152602001612229565b505050900390565b80156118f7576001600160a01b0382166129ec576003546040516101009091046001600160a01b0316906108fc8315029083906000818181858888f193505050501580156129e6573d6000803e3d6000fd5b50612a11565b600354612a11906001600160a01b03848116916101009004168363ffffffff61201a16565b604080516001600160a01b03841681526020810183905281517f1cdf74906ad7d5c402e19a20dbe986befe937e6768a0722bdb18918cdba45c4a929181900390910190a15050565b60008060006060856001600160a01b0316856040518082805190602001908083835b60208310612a9a5780518252601f199092019160209182019101612a7b565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114612afa576040519150601f19603f3d011682016040523d82523d6000602084013e612aff565b606091505b5091509150818015612b12575080516020145b15612b3d576001818060200190516020811015612b2e57600080fd5b50519094509250612b47915050565b5060009250829150505b9250929050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590612b825750808214155b949350505050565b6060600282511015612be3576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b8151604051908082528060200260200182016040528015612c0e578160200160208202803883390190505b5090508281600081518110612c1f57fe5b60200260200101818152505060005b6001835103811015611f9257600080612c7187868581518110612c4d57fe5b6020026020010151878660010181518110612c6457fe5b6020026020010151612dcc565b91509150612c93848481518110612c8457fe5b60200260200101518383612e9a565b848460010181518110612ca257fe5b60209081029190910101525050600101612c2e565b801580612d3f575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e916044808201926020929091908290030181600087803b158015612d1157600080fd5b505af1158015612d25573d6000803e3d6000fd5b505050506040513d6020811015612d3b57600080fd5b5051155b612d7a5760405162461bcd60e51b815260040180806020018281038252603b815260200180613444603b913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052612015908490612f8a565b6000806000612ddb8585613116565b509050600080612dec8888886131ed565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015612e2457600080fd5b505afa158015612e38573d6000803e3d6000fd5b505050506040513d6060811015612e4e57600080fd5b5080516020909101516dffffffffffffffffffffffffffff91821693501690506001600160a01b0387811690841614612e88578082612e8b565b81815b90999098509650505050505050565b6000808411612eda5760405162461bcd60e51b815260040180806020018281038252602b8152602001806134fd602b913960400191505060405180910390fd5b600083118015612eea5750600082115b612f255760405162461bcd60e51b81526004018080602001828103825260288152602001806133ba6028913960400191505060405180910390fd5b6000612f39856103e563ffffffff61177f16565b90506000612f4d828563ffffffff61177f16565b90506000612f7383612f67886103e863ffffffff61177f16565b9063ffffffff6132ad16565b9050808281612f7e57fe5b04979650505050505050565b612f9c826001600160a01b0316612b4e565b612fd75760405162461bcd60e51b81526004018080602001828103825260248152602001806133456024913960400191505060405180910390fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106130155780518252601f199092019160209182019101612ff6565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613077576040519150601f19603f3d011682016040523d82523d6000602084013e61307c565b606091505b5091509150816130bd5760405162461bcd60e51b81526004018080602001828103825260258152602001806134ae6025913960400191505060405180910390fd5b805115611955578080602001905160208110156130d957600080fd5b50516119555760405162461bcd60e51b815260040180806020018281038252602f81526020018061347f602f913960400191505060405180910390fd5b600080826001600160a01b0316846001600160a01b0316141561316a5760405162461bcd60e51b81526004018080602001828103825260258152602001806133956025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b03161061318a57828461318d565b83835b90925090506001600160a01b038216612b47576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b60008060006131fc8585613116565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b600082820183811015610e0f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60408051808201909152600080825260208201529056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735361666550726f787945524332303a2063616c6c20746f206e6f6e2d636f6e747261637474686520746f6b656e20646f65736e2774206578706f73652074686520646563696d616c73206e756d626572556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774e6f20656e6f756768206465737420746f6b656e732061667465722074726164654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666550726f787945524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63655361666550726f787945524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666550726f787945524332303a206c6f772d6c6576656c2063616c6c206661696c65645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a265627a7a723158203f73ac346cfeda896f46dedaefb254bd789aac3e22b1f96d6c24ff501b40672564736f6c634300050f0032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002a24a7a4beb9e6d0431c9bc1800045b8fc27a96600000000000000000000000000000000000000000000000000000000000003e8
-----Decoded View---------------
Arg [0] : _wallet (address): 0x2a24a7a4BeB9e6d0431c9Bc1800045b8fC27a966
Arg [1] : _spread (uint256): 1000
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002a24a7a4beb9e6d0431c9bc1800045b8fc27a966
Arg [1] : 00000000000000000000000000000000000000000000000000000000000003e8
Deployed Bytecode Sourcemap
61308:3903:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59950:474;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59950:474:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;59950:474:0;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;38884:95;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38884:95:0;;;:::i;50865:234::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;50865:234:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;50865:234:0;;;;;;;;;;;;;;;;;:::i;38207:26::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38207:26:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;52323:1759;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;52323:1759:0;;;;;;;;;;;;;;;;;;;;;;;;;:::i;58489:77::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58489:77:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;58489:77:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;36643:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;36643:140:0;;;:::i;51105:237::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51105:237:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;51105:237:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;37737:88;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37737:88:0;;;:::i;38704:93::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38704:93:0;;;:::i;47700:512::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;47700:512:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;47700:512:0;-1:-1:-1;;;;;47700:512:0;;:::i;61535:39::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;61535:39:0;;;:::i;:::-;;;;-1:-1:-1;;;;;61535:39:0;;;;;;;;;;;;;;35832:79;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35832:79:0;;;:::i;61990:252::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;61990:252:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61990:252:0;-1:-1:-1;;;;;61990:252:0;;:::i;36198:94::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;36198:94:0;;;:::i;48839:160::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;48839:160:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48839:160:0;-1:-1:-1;;;;;48839:160:0;;:::i;60831:246::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60831:246:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;60831:246:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;59273:308::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59273:308:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;59273:308:0;;;;;;;;;;;;;;;;;:::i;61618:57::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;61618:57:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61618:57:0;-1:-1:-1;;;;;61618:57:0;;:::i;59587:357::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59587:357:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;59587:357:0;;;;;;;;;;;;;;;;;:::i;49005:87::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49005:87:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;49005:87:0;;:::i;61083:119::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;61083:119:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;61083:119:0;;;;;;;;:::i;58571:47::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58571:47:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;58571:47:0;-1:-1:-1;;;;;58571:47:0;;:::i;51515:411::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51515:411:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;51515:411:0;;;;;;;;;;;;;;;;;:::i;48388:32::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;48388:32:0;;;:::i;36938:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;36938:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36938:109:0;-1:-1:-1;;;;;36938:109:0;;:::i;37831:106::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37831:106:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37831:106:0;-1:-1:-1;;;;;37831:106:0;;:::i;61579:32::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;61579:32:0;;;:::i;48425:24::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;48425:24:0;;;:::i;59950:474::-;60059:4;60065;60081:25;;:::i;:::-;60109;60124:3;60129:4;60109:14;:25::i;:::-;60081:53;;60158:1;60145:3;:10;;;:14;60141:248;;;60174:3;:12;;;60170:212;;;60215:10;;60206:20;;:4;;:20;:8;:20;:::i;:::-;60261:10;;60199:27;;-1:-1:-1;60248:24:0;;:8;;:24;:12;:24;:::i;:::-;60237:35;;60170:212;;;60315:10;;60306:20;;:4;;:20;:8;:20;:::i;:::-;60361:10;;60299:27;;-1:-1:-1;60348:24:0;;:8;;:24;:12;:24;:::i;:::-;60337:35;;60170:212;-1:-1:-1;60403:4:0;;60409:8;;-1:-1:-1;59950:474:0;;-1:-1:-1;;;59950:474:0:o;38884:95::-;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;38569:6;;;;38561:45;;;;;-1:-1:-1;;;38561:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;38938:6;:14;;-1:-1:-1;;38938:14:0;;;38964:9;;;;38947:5;;38964:9;38884:95::o;50865:234::-;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;50953:10;48518:20;50966:19;;:41;;51001:6;50966:41;;;48518:20;50966:41;-1:-1:-1;;;;;51014:20:0;;;;;;;:12;:20;;;;;;;;:28;;;;;;;;;;;;:36;;;51057:20;;;;;:28;;;;;;;;;:36;;;;-1:-1:-1;;50865:234:0:o;38207:26::-;;;;;;:::o;52323:1759::-;52461:4;-1:-1:-1;;;;;52454:11:0;:3;-1:-1:-1;;;;;52454:11:0;;;52446:35;;;;;-1:-1:-1;;;52446:35:0;;;;;;;;;;;;-1:-1:-1;;;52446:35:0;;;;;;;;;;;;;;;52508:1;52496:9;:13;52488:40;;;;;-1:-1:-1;;;52488:40:0;;;;;;;;;;;;-1:-1:-1;;;52488:40:0;;;;;;;;;;;;;;;52579:26;52601:3;52579:21;:26::i;:::-;52612:27;52634:4;52612:21;:27::i;:::-;-1:-1:-1;;;;;52652:12:0;;50458:42;52652:12;52648:359;;;52696:9;52683;:22;52675:57;;;;;-1:-1:-1;;;52675:57:0;;;;;;;;;;;;-1:-1:-1;;;52675:57:0;;;;;;;;;;;;;;;52648:359;;;52773:61;;;-1:-1:-1;;;52773:61:0;;52808:10;52773:61;;;;52828:4;52773:61;;;;;;52838:9;;-1:-1:-1;;;;;52773:34:0;;;;;:61;;;;;;;;;;;;;;;-1:-1:-1;52773:34:0;:61;;;5:2:-1;;;;30:1;27;20:12;5:2;52773:61:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52773:61:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52773:61:0;:74;;52755:141;;;;;-1:-1:-1;;;52755:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;52933:66;-1:-1:-1;;;;;52933:28:0;;52962:10;52982:4;52989:9;52933:66;:28;:66;:::i;:::-;53015:14;53032:20;53042:3;53047:4;53032:9;:20::i;:::-;53015:37;-1:-1:-1;53143:22:0;53168:58;48518:20;53206:19;;;;53168:33;;:17;;:33;:21;:33;:::i;:::-;:37;:58;:37;:58;:::i;:::-;53143:83;-1:-1:-1;53233:28:0;53264:54;48518:20;53298:19;;;;53264:29;;:13;;:29;:17;:29;:::i;:54::-;53233:85;;53325:24;53352:74;53367:3;53372:9;53383:4;53389:20;53411:14;53352;:74::i;:::-;53325:101;;53435:17;53455:15;53466:3;53455:10;:15::i;:::-;53435:35;-1:-1:-1;53477:23:0;53503:24;:9;53435:35;53503:24;:13;:24;:::i;:::-;53477:50;;53560:1;53542:15;:19;53534:48;;;;;-1:-1:-1;;;53534:48:0;;;;;;;;;;;;-1:-1:-1;;;53534:48:0;;;;;;;;;;;;;;;53625:16;53605;53616:4;53605:10;:16::i;:::-;:36;;53589:103;;;;-1:-1:-1;;;53589:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53724:20;53747:39;53755:4;53761:16;53779:6;53747:7;:39::i;:::-;53724:62;;53793:41;53803:4;53809:10;53821:12;53793:9;:41::i;:::-;53886:13;;53882:73;;53910:37;53920:3;53925:10;53937:9;53910;:37::i;:::-;54044:4;-1:-1:-1;;;;;53968:108:0;54008:3;-1:-1:-1;;;;;53968:108:0;53989:10;-1:-1:-1;;;;;53968:108:0;;54020:15;54057:12;53968:108;;;;;;;;;;;;;;;;;;;;;;;;52323:1759;;;;;;;;;;;;:::o;58489:77::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;36643:140::-;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;36742:1;36726:6;;36705:40;;-1:-1:-1;;;;;36726:6:0;;;;36705:40;;36742:1;;36705:40;36773:1;36756:19;;-1:-1:-1;;;;;;36756:19:0;;;36643:140::o;51105:237::-;-1:-1:-1;;;;;51202:20:0;;;51176:4;51202:20;;;:12;:20;;;;;;;;:28;;;;;;;;;;;;51241:10;51237:35;;-1:-1:-1;;51260:12:0;;51253:19;;51237:35;48518:20;51283:19;;51279:57;;51311:1;51304:8;;;;;51279:57;51331:5;-1:-1:-1;51105:237:0;;;;;:::o;37737:88::-;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;37809:7;:5;:7::i;:::-;-1:-1:-1;;;;;37793:25:0;37780:39;38704:93;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;38383:6;;;;38382:7;38374:42;;;;;-1:-1:-1;;;38374:42:0;;;;;;;;;;;;-1:-1:-1;;;38374:42:0;;;;;;;;;;;;;;;38759:6;:13;;-1:-1:-1;;38759:13:0;38768:4;38759:13;;;38784:7;;;;38759:6;;38784:7;38704:93::o;47700:512::-;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;47770:17;-1:-1:-1;;;;;47798:22:0;;47794:344;;-1:-1:-1;47946:33:0;;47854:4;47925:12;;;47946:10;;:33;;;;;47925:12;;47831;47946:33;47831:12;47946:33;47925:12;47946:10;:33;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;47946:33:0;47794:344;;;;48017:45;;;-1:-1:-1;;;48017:45:0;;48056:4;48017:45;;;;;;-1:-1:-1;;;;;48017:30:0;;;;;:45;;;;;;;;;;;;;;:30;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;48017:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;48017:45:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48017:45:0;;-1:-1:-1;48071:59:0;-1:-1:-1;;;;;48071:33:0;;48105:10;48017:45;48071:59;:33;:59;:::i;:::-;48149:57;;;;;;;;-1:-1:-1;;;;;48149:57:0;;;48166:10;;48149:57;;;;;;;;;36101:1;47700:512;:::o;61535:39::-;;;-1:-1:-1;;;;;61535:39:0;;:::o;35832:79::-;35870:7;35897:6;-1:-1:-1;;;;;35897:6:0;35832:79;:::o;61990:252::-;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;62066:28:0;;62058:69;;;;;-1:-1:-1;;;62058:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;62134:6;:43;;-1:-1:-1;;;;;;62134:43:0;-1:-1:-1;;;;;62134:43:0;;;;;;;;;;;62219:16;;;-1:-1:-1;;;62219:16:0;;;;:6;;;;;:14;;:16;;;;;;;;;;;;;;;:6;:16;;;5:2:-1;;;;30:1;27;20:12;5:2;62219:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;62219:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62219:16:0;62184:14;:52;;-1:-1:-1;;;;;;62184:52:0;-1:-1:-1;;;;;62184:52:0;;;;;;;;;-1:-1:-1;61990:252:0:o;36198:94::-;36238:4;36278:6;;-1:-1:-1;;;;;36278:6:0;36262:12;:10;:12::i;:::-;-1:-1:-1;;;;;36262:22:0;;36255:29;;36198:94;:::o;48839:160::-;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;48920:21:0;;48912:55;;;;;-1:-1:-1;;;48912:55:0;;;;;;;;;;;;-1:-1:-1;;;48912:55:0;;;;;;;;;;;;;;;48974:9;:19;;-1:-1:-1;;;;;48974:19:0;;;;;-1:-1:-1;;;;;;48974:19:0;;;;;;;;;48839:160::o;60831:246::-;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;60971:32;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;60943:19:0;;;-1:-1:-1;60943:19:0;;;:14;:19;;;;;;:25;;;;;;;;;;;;;:60;;;;;;;;;;;;;;-1:-1:-1;;60943:60:0;;;;;;61038:33;;;;;;;;;;;;;;;;61010:20;;;;;;;;;:25;;;;;;;;;:61;;;;;;;;;;;;;;;;;;;;;;;60831:246::o;59273:308::-;59362:4;59378:25;;:::i;:::-;59406;59421:3;59426:4;59406:14;:25::i;:::-;59378:53;;59455:1;59442:3;:10;;;:14;59438:120;;;59474:3;:12;;;:76;;59539:10;;59530:20;;:4;;:20;:8;:20;:::i;:::-;59474:76;;;59507:10;;59498:20;;:4;;:20;:8;:20;:::i;:::-;59467:83;;59438:120;-1:-1:-1;59571:4:0;;59273:308;-1:-1:-1;;;59273:308:0:o;61618:57::-;;;;;;;;;;;;-1:-1:-1;;;;;61618:57:0;;:::o;59587:357::-;59678:4;59694:25;;:::i;:::-;59722;59737:3;59742:4;59722:14;:25::i;:::-;59694:53;;59771:1;59758:3;:10;;;:14;59754:167;;;59790:3;:12;;;:123;;59902:10;;59893:20;;:4;;:20;:8;:20;:::i;59790:123::-;59870:10;;59861:20;;:4;;:20;:8;:20;:::i;49005:87::-;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;49064:12;:22;49005:87::o;61083:119::-;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;61164:21:0;;;;;;;:14;:21;;;;;:32;61083:119::o;58571:47::-;;;;;;;;;;;;;:::o;51515:411::-;51605:17;51624;51654;51673:18;51695:36;51710:3;51715:4;51721:9;51695:14;:36::i;:::-;51653:78;;;;51738:14;51755:20;51765:3;51770:4;51755:9;:20::i;:::-;51738:37;-1:-1:-1;51797:50:0;48518:20;51797:34;:9;51811:19;;;51797:34;:13;:34;:::i;:50::-;51782:65;-1:-1:-1;51869:51:0;48518:20;51869:35;:10;51884:19;;;51869:35;:14;:35;:::i;:51::-;51854:66;;51515:411;;;;;;;;;:::o;48388:32::-;;;;;;-1:-1:-1;;;;;48388:32:0;;:::o;36938:109::-;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;37011:28;37030:8;37011:18;:28::i;:::-;36938:109;:::o;37831:106::-;36044:9;:7;:9::i;:::-;36036:54;;;;;-1:-1:-1;;;36036:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36036:54:0;;;;;;;;;;;;;;;37920:10;-1:-1:-1;;;;;37907:24:0;;61579:32;;;-1:-1:-1;;;;;61579:32:0;;:::o;48425:24::-;;;;:::o;58625:613::-;58697:21;;:::i;:::-;58727:25;;:::i;:::-;-1:-1:-1;;;;;;58755:19:0;;;;;;;:14;:19;;;;;;;;:25;;;;;;;;;;;;58727:53;;;;;;;;;;;;;;;;;;;;;;;;;;;58787:429;;58817:16;58836:17;58849:3;58836:12;:17::i;:::-;58817:36;;58862:17;58882:18;58895:4;58882:12;:18::i;:::-;58862:38;;58928:12;58913:11;:27;58909:300;;58971:12;58957:11;:26;58953:247;;;59013:4;58998:12;;;:19;59050:26;;;59043:2;:34;59030:47;;58953:247;;;59123:5;59108:12;;;:20;59161:26;;;59154:2;:34;59141:47;;58953:247;58787:429;;59229:3;58625:613;-1:-1:-1;;;58625:613:0:o;6120:132::-;6178:7;6205:39;6209:1;6212;6205:39;;;;;;;;;;;;;;;;;:3;:39::i;5181:471::-;5239:7;5484:6;5480:47;;-1:-1:-1;5514:1:0;5507:8;;5480:47;5551:5;;;5555:1;5551;:5;:1;5575:5;;;;;:10;5567:56;;;;-1:-1:-1;;;5567:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51932:385;51993:25;-1:-1:-1;;;;;52021:14:0;;50458:42;52021:14;:115;;52085:51;;;-1:-1:-1;;;52085:51:0;;52130:4;52085:51;;;;;;-1:-1:-1;;;;;52085:36:0;;;;;:51;;;;;;;;;;;;;;-1:-1:-1;52085:36:0;:51;;;5:2:-1;;;;30:1;27;20:12;5:2;52085:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52085:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52085:51:0;52021:115;;;52045:30;52065:9;52045:15;:13;:15::i;:::-;:19;:30;:19;:30;:::i;:::-;51993:143;-1:-1:-1;52147:21:0;;52143:169;;52179:62;52189:5;52212:7;:5;:7::i;:::-;-1:-1:-1;;;;;52196:25:0;52223:17;52179:9;:62::i;:::-;52255:49;;;-1:-1:-1;;;;;52255:49:0;;;;;;;;;;;;;;;;;;;;;;;52143:169;51932:385;;:::o;12396:204::-;12523:68;;;-1:-1:-1;;;;;12523:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;12523:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;12497:95:0;;12516:5;;12497:18;:95::i;:::-;12396:204;;;;:::o;64102:1104::-;64235:7;64254:21;64278:19;64287:3;64292:4;64278:8;:19::i;:::-;64254:43;;64305:9;64316:15;64335:32;64351:4;64357:9;64335:15;:32::i;:::-;64304:63;;;;64374:18;64408:13;64395:10;:26;:92;;64478:9;64395:92;;;64431:37;64463:4;64431:27;:13;61524:4;64431:27;:17;:27;:::i;:37::-;64374:113;-1:-1:-1;;;;;;64539:12:0;;50458:42;64539:12;64535:86;;;64568:6;;;;;;;;;-1:-1:-1;;;;;64568:6:0;-1:-1:-1;;;;;64568:11:0;;:13;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;64568:13:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;64568:13:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;64568:13:0;64562:51;;;-1:-1:-1;;;64562:51:0;;;;-1:-1:-1;;;;;64562:28:0;;;;;;64597:13;;64562:51;;;;;;;;;;;;;;64597:13;64562:28;:51;;;5:2:-1;;;;30:1;27;20:12;5:2;64562:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;64562:51:0;;;;;64535:86;64629:58;64647:4;64652:1;64647:7;;;;;;;;;;;;;;;;;;64664:6;;-1:-1:-1;;;;;64664:6:0;64673:13;64629:17;:58::i;:::-;64718:6;;:75;;-1:-1:-1;;;64718:75:0;;;;;;;;:6;:75;;;;;;64782:4;64718:75;;;;;;64789:3;64718:75;;;;;;;;;;;;;;;;;;;;;64694:21;;-1:-1:-1;;;;;64718:6:0;;:31;;64750:13;;64718:6;64768:4;;64782;;64789:3;;64718:75;;;;;;;;;;;;;;;;;;:6;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;64718:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;64718:75:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;64718:75:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;64718:75:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;64718:75:0;;;;;;;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;261:11;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;64718:75:0;;421:4:-1;412:14;;;;64718:75:0;;;;;412:14:-1;64718:75:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;64718:75:0;;;;;;;;;;;64694:99;;64825:1;64808:7;:14;:18;64800:50;;;;;-1:-1:-1;;;64800:50:0;;;;;;;;;;;;-1:-1:-1;;;64800:50:0;;;;;;;;;;;;;;;64857:20;64880:7;64905:1;64888:7;:14;:18;64880:27;;;;;;;;;;;;;;64857:50;;50458:42;-1:-1:-1;;;;;64952:13:0;:4;-1:-1:-1;;;;;64952:13:0;;64948:82;;;64982:6;;;;;;;;;-1:-1:-1;;;;;64982:6:0;-1:-1:-1;;;;;64982:11:0;;:13;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;64982:13:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;64982:13:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;64982:13:0;64976:46;;;-1:-1:-1;;;64976:46:0;;;;;;;;;;-1:-1:-1;;;;;64976:29:0;;;;;;:46;;;;;-1:-1:-1;;64976:46:0;;;;;;;;-1:-1:-1;64976:29:0;:46;;;5:2:-1;;;;30:1;27;20:12;5:2;64976:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;64976:46:0;;;;64948:82;65117:17;65046:67;65060:3;65065:4;65071:41;65081:13;65096:15;65071:9;:41::i;:::-;65046:13;:67::i;:::-;:88;;65038:133;;;;;-1:-1:-1;;;65038:133:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65185:15;64102:1104;-1:-1:-1;;;;;;;;;;;64102:1104:0:o;54703:180::-;54754:7;-1:-1:-1;;;;;54777:14:0;;50458:42;54777:14;:100;;54826:51;;;-1:-1:-1;;;54826:51:0;;54871:4;54826:51;;;;;;-1:-1:-1;;;;;54826:36:0;;;;;:51;;;;;;;;;;;;;;-1:-1:-1;54826:36:0;:51;;;5:2:-1;;;;30:1;27;20:12;5:2;54826:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;54826:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54826:51:0;54777:100;;;54801:15;:13;:15::i;:::-;54770:107;;54703:180;;;;:::o;4265:136::-;4323:7;4350:43;4354:1;4357;4350:43;;;;;;;;;;;;;;;;;:3;:43::i;54231:302::-;54315:20;;54358:44;48518:20;54358:28;:16;54379:6;54358:28;:20;:28;:::i;:44::-;54344:58;-1:-1:-1;54424:25:0;:16;54344:58;54424:25;:20;:25;:::i;:::-;54409:40;-1:-1:-1;54472:55:0;-1:-1:-1;;;;;54486:14:0;;50458:42;54486:14;:35;;54516:5;54486:35;;;54511:1;54486:35;54523:3;54472:13;:55::i;:::-;54231:302;;;;;;:::o;54889:228::-;-1:-1:-1;;;;;54985:14:0;;50458:42;54985:14;54981:131;;;55010:26;;-1:-1:-1;;;;;55010:18:0;;;:26;;;;;55029:6;;55010:26;;;;55029:6;55010:18;:26;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55010:26:0;54981:131;;;55059:45;-1:-1:-1;;;;;55059:26:0;;55086:9;55097:6;55059:45;:26;:45;:::i;:::-;54889:228;;;:::o;12212:176::-;12321:58;;;-1:-1:-1;;;;;12321:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;12321:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;12295:85:0;;12314:5;;12295:18;:85::i;34573:98::-;34653:10;34573:98;:::o;63445:354::-;63542:17;63561;63590:21;63614:19;63623:3;63628:4;63614:8;:19::i;:::-;63590:43;;63641:9;63656:32;63672:4;63678:9;63656:15;:32::i;:::-;63640:48;;;63695:19;63717:30;63731:3;63736:4;63742;63717:13;:30::i;:::-;63695:52;;;-1:-1:-1;63445:354:0;-1:-1:-1;;;;;;;63445:354:0:o;37153:229::-;-1:-1:-1;;;;;37227:22:0;;37219:73;;;;-1:-1:-1;;;37219:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37329:6;;;37308:38;;-1:-1:-1;;;;;37308:38:0;;;;37329:6;;;37308:38;;;37357:6;:17;;-1:-1:-1;;;;;;37357:17:0;-1:-1:-1;;;;;37357:17:0;;;;;;;;;;37153:229::o;60430:395::-;-1:-1:-1;;;;;60516:21:0;;60489:4;60516:21;;;:14;:21;;;;;;60548:10;;60544:29;;60567:6;-1:-1:-1;60560:13:0;;60544:29;60603:37;;;22:32:-1;6:49;;60603:37:0;;;;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;26:21;;60679:47:0;60711:5;60603:37;60679:31;:47::i;:::-;60647:79;;;;60741:7;60733:64;;;;-1:-1:-1;;;60733:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60811:8;60430:395;-1:-1:-1;;;;;60430:395:0:o;6782:345::-;6868:7;6970:12;6963:5;6955:28;;;;-1:-1:-1;;;6955:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;6955:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6994:9;7010:1;7006;:5;;;;;;;6782:345;-1:-1:-1;;;;;6782:345:0:o;54575:122::-;54660:4;54679:12;54575:122;:::o;14251:1114::-;14855:27;14863:5;-1:-1:-1;;;;;14855:25:0;;:27::i;:::-;14847:71;;;;;-1:-1:-1;;;14847:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14992:12;15006:23;15041:5;-1:-1:-1;;;;;15033:19:0;15053:4;15033:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;15033:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;14991:67:0;;;;15077:7;15069:52;;;;;-1:-1:-1;;;15069:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15138:17;;:21;15134:224;;15280:10;15269:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15269:30:0;15261:85;;;;-1:-1:-1;;;15261:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62624:671;62700:20;62729:12;62744:6;;;;;;;;;-1:-1:-1;;;;;62744:6:0;-1:-1:-1;;;;;62744:11:0;;:13;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;62744:13:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;62744:13:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62744:13:0;;-1:-1:-1;62764:12:0;-1:-1:-1;;;;;62779:17:0;;50458:42;62779:17;:35;;62806:8;62779:35;;;62799:4;62779:35;62764:50;-1:-1:-1;62821:10:0;-1:-1:-1;;;;;62834:18:0;;50458:42;62834:18;:37;;62862:9;62834:37;;;62855:4;62834:37;62882:14;;:32;;;-1:-1:-1;;;62882:32:0;;-1:-1:-1;;;;;62882:32:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;62882:14:0;;;;;:22;;:32;;;;;;;;;;;;;;:14;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;62882:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;62882:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62882:32:0;-1:-1:-1;;;;;62882:46:0;;62878:412;;62945:16;;;62959:1;62945:16;;;;;;;;;;;;;;;105:10:-1;62945:16:0;88:34:-1;136:17;;-1:-1;62945:16:0;62939:22;;62979:4;62970:3;62974:1;62970:6;;;;;;;;;;;;;:13;-1:-1:-1;;;;;62970:13:0;;;-1:-1:-1;;;;;62970:13:0;;;;;63001:2;62992:3;62996:1;62992:6;;;;;;;;;;;;;:11;-1:-1:-1;;;;;62992:11:0;;;-1:-1:-1;;;;;62992:11:0;;;;;62878:412;;;63029:14;;:34;;;-1:-1:-1;;;63029:34:0;;-1:-1:-1;;;;;63029:34:0;;;;;;;;;;;;;;;;63075:1;;63029:14;;;;:22;;:34;;;;;;;;;;;;;;;:14;:34;;;5:2:-1;;;;30:1;27;20:12;5:2;63029:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;63029:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63029:34:0;-1:-1:-1;;;;;63029:48:0;;;;;:105;;-1:-1:-1;63088:14:0;;:32;;;-1:-1:-1;;;63088:32:0;;-1:-1:-1;;;;;63088:32:0;;;;;;;;;;;;;;;;63132:1;;63088:14;;;;:22;;:32;;;;;;;;;;;;;;;:14;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;63088:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;63088:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63088:32:0;-1:-1:-1;;;;;63088:46:0;;;63029:105;63017:273;;;63157:16;;;63171:1;63157:16;;;;;;;;;;;;;17:15:-1;;105:10;63157:16:0;88:34:-1;136:17;;-1:-1;63157:16:0;63151:22;;63191:4;63182:3;63186:1;63182:6;;;;;;;;;;;;;:13;-1:-1:-1;;;;;63182:13:0;;;-1:-1:-1;;;;;63182:13:0;;;;;63213:4;63204:3;63208:1;63204:6;;;;;;;;;;;;;:13;-1:-1:-1;;;;;63204:13:0;;;-1:-1:-1;;;;;63204:13:0;;;;;63235:2;63226:3;63230:1;63226:6;;;;;;;63017:273;63266:16;;;63280:1;63266:16;;;;;;;;;-1:-1:-1;63017:273:0;62624:671;;;;;;;:::o;62248:370::-;62431:14;;62333:9;;;;62368:21;;62392:72;;-1:-1:-1;;;;;62431:14:0;62448:9;62459:4;62392:30;:72::i;:::-;62368:96;;62484:7;62509:1;62492:7;:14;:18;62484:27;;;;;;;;;;;;;;62471:40;;62580:32;62590:9;62601:10;62580:9;:32::i;:::-;62573:39;;62248:370;;;;;;:::o;63805:291::-;63896:60;;;-1:-1:-1;;;63896:60:0;;63941:4;63896:60;;;;-1:-1:-1;;;;;63896:60:0;;;;;;;;;63959:1;;63896:36;;;;;:60;;;;;;;;;;;;;;63959:1;63896:36;:60;;;5:2:-1;;;;30:1;27;20:12;5:2;63896:60:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;63896:60:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63896:60:0;:64;63892:137;;;63971:50;-1:-1:-1;;;;;63971:38:0;;64010:7;64019:1;63971:50;:38;:50;:::i;:::-;64035:55;-1:-1:-1;;;;;64035:38:0;;64074:7;64083:6;64035:55;:38;:55;:::i;63301:138::-;63374:4;63394:39;63423:9;63394:24;:10;61524:4;63394:24;:14;:24;:::i;4738:192::-;4824:7;4860:12;4852:6;;;;4844:29;;;;-1:-1:-1;;;4844:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;4844:29:0;-1:-1:-1;;;4896:5:0;;;4738:192::o;49250:274::-;49315:7;;49311:208;;-1:-1:-1;;;;;49337:22:0;;49333:144;;49372:9;;:23;;:9;;;;-1:-1:-1;;;;;49372:9:0;;:23;;;;;;;;;;;;:9;:23;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49372:23:0;49333:144;;;49452:9;;49422:45;;-1:-1:-1;;;;;49422:29:0;;;;49452:9;;;;49463:3;49422:45;:29;:45;:::i;:::-;49490:21;;;-1:-1:-1;;;;;49490:21:0;;;;;;;;;;;;;;;;;;;;;;;49250:274;;:::o;57583:340::-;57681:13;57696:12;57721;57735:19;57766:6;-1:-1:-1;;;;;57758:26:0;57785:7;57758:35;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;57758:35:0;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;57720:73:0;;;;57804:7;:30;;;;;57815:6;:13;57832:2;57815:19;57804:30;57800:94;;;57853:4;57870:6;57859:26;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57859:26:0;57845:41;;-1:-1:-1;57859:26:0;-1:-1:-1;57845:41:0;;-1:-1:-1;;57845:41:0;57800:94;-1:-1:-1;57908:5:0;;-1:-1:-1;57908:5:0;;-1:-1:-1;;57583:340:0;;;;;;:::o;9042:810::-;9102:4;9761:20;;9604:66;9801:15;;;;;:42;;;9832:11;9820:8;:23;;9801:42;9793:51;9042:810;-1:-1:-1;;;;9042:810:0:o;22408:511::-;22509:21;22566:1;22551:4;:11;:16;;22543:59;;;;;-1:-1:-1;;;22543:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;22634:4;:11;22623:23;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;22623:23:0;;22613:33;;22670:8;22657:7;22665:1;22657:10;;;;;;;;;;;;;:21;;;;;22694:6;22689:223;22720:1;22706:4;:11;:15;22702:1;:19;22689:223;;;22744:14;22760:15;22779:42;22791:7;22800:4;22805:1;22800:7;;;;;;;;;;;;;;22809:4;22814:1;22818;22814:5;22809:11;;;;;;;;;;;;;;22779;:42::i;:::-;22743:78;;;;22853:47;22866:7;22874:1;22866:10;;;;;;;;;;;;;;22878:9;22889:10;22853:12;:47::i;:::-;22836:7;22844:1;22848;22844:5;22836:14;;;;;;;;;;;;;;;;;:64;-1:-1:-1;;22723:3:0;;22689:223;;31528:639;31911:10;;;31910:62;;-1:-1:-1;31927:39:0;;;-1:-1:-1;;;31927:39:0;;31951:4;31927:39;;;;-1:-1:-1;;;;;31927:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;-1:-1:-1;31927:15:0;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;31927:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;31927:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31927:39:0;:44;31910:62;31902:157;;;;-1:-1:-1;;;31902:157:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32096:62;;;-1:-1:-1;;;;;32096:62:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;32096:62:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;32070:89:0;;32089:5;;32070:18;:89::i;20269:391::-;20362:13;20377;20404:14;20423:26;20434:6;20442;20423:10;:26::i;:::-;20403:46;;;20461:13;20476;20509:32;20517:7;20526:6;20534;20509:7;:32::i;:::-;-1:-1:-1;;;;;20494:60:0;;:62;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20494:62:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20494:62:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20494:62:0;;;;;;;20460:96;;;;;-1:-1:-1;20460:96:0;;-1:-1:-1;;;;;;20590:16:0;;;;;;;:62;;20633:8;20643;20590:62;;;20610:8;20620;20590:62;20567:85;;;;-1:-1:-1;20269:391:0;-1:-1:-1;;;;;;;20269:391:0:o;21216:517::-;21309:14;21355:1;21344:8;:12;21336:68;;;;-1:-1:-1;;;21336:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21435:1;21423:9;:13;:31;;;;;21453:1;21440:10;:14;21423:31;21415:84;;;;-1:-1:-1;;;21415:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21510:20;21533:17;:8;21546:3;21533:17;:12;:17;:::i;:::-;21510:40;-1:-1:-1;21561:14:0;21578:31;21510:40;21598:10;21578:31;:19;:31;:::i;:::-;21561:48;-1:-1:-1;21620:16:0;21639:40;21663:15;21639:19;:9;21653:4;21639:19;:13;:19;:::i;:::-;:23;:40;:23;:40;:::i;:::-;21620:59;;21714:11;21702:9;:23;;;;;;;21216:517;-1:-1:-1;;;;;;;21216:517:0:o;32558:1142::-;33175:27;33183:5;-1:-1:-1;;;;;33175:25:0;;:27::i;:::-;33167:76;;;;-1:-1:-1;;;33167:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33317:12;33331:23;33366:5;-1:-1:-1;;;;;33358:19:0;33378:4;33358:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;33358:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;33316:67:0;;;;33402:7;33394:57;;;;-1:-1:-1;;;33394:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33468:17;;:21;33464:229;;33610:10;33599:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33599:30:0;33591:90;;;;-1:-1:-1;;;33591:90:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19292:349;19367:14;19383;19428:6;-1:-1:-1;;;;;19418:16:0;:6;-1:-1:-1;;;;;19418:16:0;;;19410:66;;;;-1:-1:-1;;;19410:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19515:6;-1:-1:-1;;;;;19506:15:0;:6;-1:-1:-1;;;;;19506:15:0;;:53;;19544:6;19552;19506:53;;;19525:6;19533;19506:53;19487:72;;-1:-1:-1;19487:72:0;-1:-1:-1;;;;;;19578:20:0;;19570:63;;;;;-1:-1:-1;;;19570:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;19733:478;19822:12;19848:14;19864;19882:26;19893:6;19901;19882:10;:26::i;:::-;20046:32;;;-1:-1:-1;;20046:32:0;;;;;;;;;;;;;;;;;;;;;;;;;22::-1;26:21;;;22:32;6:49;;20046:32:0;;;;;20036:43;;;;;;-1:-1:-1;;;;;;19949:251:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;19949:251:0;;;;;;;19939:262;;;;;;;;;19733:478;-1:-1:-1;;;;;19733:478:0:o;3809:181::-;3867:7;3899:5;;;3923:6;;;;3915:46;;;;;-1:-1:-1;;;3915:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;61308:3903;;;;;;;;;;-1:-1:-1;61308:3903:0;;;;;;;;:::o
Swarm Source
bzzr://3f73ac346cfeda896f46dedaefb254bd789aac3e22b1f96d6c24ff501b406725
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
BSC | 100.00% | $3.01 | 1 | $3.01 |
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.