Overview
FTM Balance
0 FTM
FTM Value
$0.00More Info
Private Name Tags
ContractCreator:
Sponsored
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 19993315 | 885 days ago | IN | Create: Zapper | 0 FTM | 0.34585246 |
Latest 19 internal transactions
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
20268520 | 882 days ago | 5 FTM | ||||
20254572 | 883 days ago | 410.16171821 FTM | ||||
20253242 | 883 days ago | 100 FTM | ||||
20252064 | 883 days ago | 105 FTM | ||||
20233752 | 883 days ago | 10 FTM | ||||
20226242 | 883 days ago | 100 FTM | ||||
20214972 | 883 days ago | 1 FTM | ||||
20195887 | 883 days ago | 20 FTM | ||||
20193853 | 883 days ago | 50 FTM | ||||
20193822 | 883 days ago | 200 FTM | ||||
20193259 | 883 days ago | 50 FTM | ||||
20192994 | 883 days ago | 54 FTM | ||||
20191811 | 883 days ago | 100 FTM | ||||
20191730 | 883 days ago | 35 FTM | ||||
20087874 | 884 days ago | 1 FTM | ||||
20085294 | 884 days ago | 1 FTM | ||||
20056800 | 885 days ago | 0.1 FTM | ||||
20049521 | 885 days ago | 1 FTM | ||||
19993315 | 885 days ago | Contract Creation | 0 FTM |
Loading...
Loading
Contract Name:
Zapper
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at ftmscan.com on 2021-10-25 */ // Dependency file: @openzeppelin/contracts/utils/math/SafeMath.sol // SPDX-License-Identifier: MIT // pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @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 a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol // pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // Dependency file: @openzeppelin/contracts/utils/Address.sol // pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // Dependency file: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol // pragma solidity ^0.8.0; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // Dependency file: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol // pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } } // Dependency file: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol // pragma solidity ^0.8.0; // import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; /* * @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 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. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; } // Dependency file: @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol // pragma solidity ^0.8.0; // import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; // import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; /** * @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. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * 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. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the 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 virtual onlyOwner { _setOwner(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 virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; } // Dependency file: contracts/libs/IUniswapPair.sol // pragma solidity 0.8.4; interface IUniswapPair { event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 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 (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); /* solhint-disable */ function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); /* solhint-enable */ function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); /* solhint-disable */ function MINIMUM_LIQUIDITY() external pure returns (uint256); /* solhint-enable */ 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 (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } // Dependency file: contracts/libs/IUniswapRouter.sol // pragma solidity 0.8.4; interface IUniswapRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; } // Root file: contracts/Zapper.sol pragma solidity 0.8.4; // import "@openzeppelin/contracts/utils/math/SafeMath.sol"; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; // import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; // import "contracts/libs/IUniswapPair.sol"; // import "contracts/libs/IUniswapRouter.sol"; interface IWETH { function deposit() external payable returns (uint256); function withdraw(uint256 amount) external returns (uint256); } contract Zapper is OwnableUpgradeable { using SafeMath for uint256; using SafeERC20 for IERC20; uint256 private constant FEE_AMOUNT = 5; uint256 private constant FEE_MAX = 10000; address private constant SUM = 0xAaAAAfBD57B72c7b28fAf156093fEEB76Fbf6f3f; address private constant WETH = 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83; IUniswapRouter private constant SPOOKY_ROUTER = IUniswapRouter(0xF491e7B69E4244ad4002BC14e878a34207E38c29); // every 1 FTM collected from fee, we give back 1 SUM token uint256 private constant SUM_PER_FEE = 1e18; mapping(address => uint256) public rewards; event Claimed(address indexed account, uint256 indexed amount); function initialize() external initializer { __Ownable_init(); } receive() external payable {} function amountToReward(uint256 feeAmount) public view returns (uint256) { uint256 expectedAmount = feeAmount.mul(SUM_PER_FEE).div(1e18); uint256 sumBal = IERC20(SUM).balanceOf(address(this)); if (sumBal < expectedAmount) { return sumBal; } else { return expectedAmount; } } function claim() external { uint256 amount = rewards[msg.sender]; _safeSumTransfer(msg.sender, amount); rewards[msg.sender] = 0; emit Claimed(msg.sender, amount); } /// @notice convert token / LP token to token / LP token function zapIn( address inputToken, uint256 amount, address outputToken ) external returns (uint256 amountOut) { IERC20(inputToken).safeTransferFrom(msg.sender, address(this), amount); if (keccak256(abi.encodePacked(IUniswapPair(outputToken).symbol())) == keccak256("spLP")) { amountOut = _zapToLp(inputToken, amount, outputToken); } else { amountOut = _zapToToken(inputToken, amount, outputToken); } (uint256 feeAmount, uint256 outAmount) = _getFee(amountOut); IERC20(outputToken).safeTransfer(msg.sender, outAmount); amountOut = outAmount; uint256 amountWeth = _zapToToken(outputToken, feeAmount, WETH); IERC20(WETH).safeTransfer(owner(), amountWeth); rewards[msg.sender] = rewards[msg.sender].add(amountToReward(amountWeth)); } /// @notice convert ETH to token / LP token function zapInETH(address outputToken) external payable returns (uint256 amountOut) { uint256 wethBefore = IERC20(WETH).balanceOf(address(this)); IWETH(WETH).deposit{value: msg.value}(); uint256 wethAmount = IERC20(WETH).balanceOf(address(this)).sub(wethBefore); if (keccak256(abi.encodePacked(IUniswapPair(outputToken).symbol())) == keccak256("spLP")) { amountOut = _zapToLp(WETH, wethAmount, outputToken); } else { amountOut = _zapToToken(WETH, wethAmount, outputToken); } (uint256 feeAmount, uint256 outAmount) = _getFee(amountOut); amountOut = outAmount; IERC20(outputToken).safeTransfer(msg.sender, outAmount); uint256 amountWeth = _zapToToken(outputToken, feeAmount, WETH); IERC20(WETH).safeTransfer(owner(), amountWeth); rewards[msg.sender] = rewards[msg.sender].add(amountToReward(amountWeth)); } /// @notice convert token / LP token to ETH function zapOutETH(address inputToken, uint256 amount) external returns (uint256 amountOut) { IERC20(inputToken).safeTransferFrom(msg.sender, address(this), amount); amountOut = _zapToToken(inputToken, amount, WETH); (uint256 feeAmount, uint256 outAmount) = _getFee(amountOut); IWETH(WETH).withdraw(outAmount); payable(msg.sender).transfer(outAmount); amountOut = outAmount; IERC20(WETH).safeTransfer(owner(), feeAmount); rewards[msg.sender] = rewards[msg.sender].add(amountToReward(feeAmount)); } function _zapToLp( address inputToken, uint256 amount, address outputToken ) private returns (uint256 liquidity) { if (keccak256(abi.encodePacked(IUniswapPair(inputToken).symbol())) == keccak256("spLP")) { // remove input liquidity address token0 = IUniswapPair(inputToken).token0(); address token1 = IUniswapPair(inputToken).token1(); uint256 token0Before = IERC20(token0).balanceOf(address(this)); uint256 token1Before = IERC20(token1).balanceOf(address(this)); IERC20(inputToken).safeApprove(address(SPOOKY_ROUTER), 0); IERC20(inputToken).safeApprove(address(SPOOKY_ROUTER), amount); SPOOKY_ROUTER.removeLiquidity(token0, token1, amount, 0, 0, address(this), block.timestamp); uint256 token0Amount = IERC20(token0).balanceOf(address(this)).sub(token0Before); uint256 token1Amount = IERC20(token1).balanceOf(address(this)).sub(token1Before); uint256 wethAmount = _swap(token0, token0Amount, WETH); wethAmount = wethAmount.add(_swap(token1, token1Amount, WETH)); return _zapTokenToLp(WETH, wethAmount, outputToken); } else { return _zapTokenToLp(inputToken, amount, outputToken); } } function _zapTokenToLp( address inputToken, uint256 amount, address outputToken ) private returns (uint256 liquidity) { address token0 = IUniswapPair(outputToken).token0(); address token1 = IUniswapPair(outputToken).token1(); uint256 toToken0Amount = amount.div(2); uint256 toToken1Amount = amount.sub(toToken0Amount); uint256 token0Amount = _swap(inputToken, toToken0Amount, token0); uint256 token1Amount = _swap(inputToken, toToken1Amount, token1); IERC20(token0).safeApprove(address(SPOOKY_ROUTER), 0); IERC20(token0).safeApprove(address(SPOOKY_ROUTER), token0Amount); IERC20(token1).safeApprove(address(SPOOKY_ROUTER), 0); IERC20(token1).safeApprove(address(SPOOKY_ROUTER), token1Amount); (, , liquidity) = SPOOKY_ROUTER.addLiquidity( token0, token1, token0Amount, token1Amount, 0, 0, address(this), block.timestamp ); } function _zapToToken( address inputToken, uint256 amount, address outputToken ) private returns (uint256 amountOut) { if (keccak256(abi.encodePacked(IUniswapPair(inputToken).symbol())) == keccak256("spLP")) { // remove input liquidity address token0 = IUniswapPair(inputToken).token0(); address token1 = IUniswapPair(inputToken).token1(); uint256 token0Before = IERC20(token0).balanceOf(address(this)); uint256 token1Before = IERC20(token1).balanceOf(address(this)); IERC20(inputToken).safeApprove(address(SPOOKY_ROUTER), 0); IERC20(inputToken).safeApprove(address(SPOOKY_ROUTER), amount); SPOOKY_ROUTER.removeLiquidity(token0, token1, amount, 0, 0, address(this), block.timestamp); uint256 token0Amount = IERC20(token0).balanceOf(address(this)).sub(token0Before); uint256 token1Amount = IERC20(token1).balanceOf(address(this)).sub(token1Before); uint256 wethAmount = _swap(token0, token0Amount, WETH); wethAmount = wethAmount.add(_swap(token1, token1Amount, WETH)); return _zapTokenToToken(WETH, wethAmount, outputToken); } else { return _zapTokenToToken(inputToken, amount, outputToken); } } function _zapTokenToToken( address inputToken, uint256 amount, address outputToken ) private returns (uint256 amountOut) { amountOut = _swap(inputToken, amount, outputToken); } function _swap( address inputToken, uint256 amount, address outputToken ) private returns (uint256 amountOut) { if (inputToken == outputToken) return amount; address[] memory path; if (outputToken == WETH || inputToken == WETH) { path = new address[](2); (path[0], path[1]) = (inputToken, outputToken); } else { path = new address[](3); (path[0], path[1], path[2]) = (inputToken, WETH, outputToken); } IERC20(inputToken).safeApprove(address(SPOOKY_ROUTER), 0); IERC20(inputToken).safeApprove(address(SPOOKY_ROUTER), amount); uint256 balBefore = IERC20(outputToken).balanceOf(address(this)); SPOOKY_ROUTER.swapExactTokensForTokens(amount, 0, path, address(this), block.timestamp); amountOut = IERC20(outputToken).balanceOf(address(this)).sub(balBefore); } function _getFee(uint256 amount) private pure returns (uint256 feeAmount, uint256 outAmount) { feeAmount = amount.mul(FEE_AMOUNT).div(FEE_MAX); outAmount = amount.sub(feeAmount); } function _safeSumTransfer(address account, uint256 amount) private { uint256 bal = IERC20(SUM).balanceOf(address(this)); if (bal > amount) { IERC20(SUM).transfer(account, amount); } else { IERC20(SUM).transfer(account, bal); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","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"},{"inputs":[{"internalType":"uint256","name":"feeAmount","type":"uint256"}],"name":"amountToReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"inputToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"outputToken","type":"address"}],"name":"zapIn","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"outputToken","type":"address"}],"name":"zapInETH","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"inputToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"zapOutETH","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5061252d806100206000396000f3fe6080604052600436106100955760003560e01c8063715018a611610059578063715018a6146101585780638129fc1c1461016d5780638da5cb5b14610182578063f2fde38b146101aa578063f34c72cd146101ca57600080fd5b80630266a857146100a15780630700037d146100d45780634e71d92d146101015780635330b54b1461011857806368f1a4d31461013857600080fd5b3661009c57005b600080fd5b3480156100ad57600080fd5b506100c16100bc366004611ffa565b6101dd565b6040519081526020015b60405180910390f35b3480156100e057600080fd5b506100c16100ef366004611fc2565b60656020526000908152604090205481565b34801561010d57600080fd5b50610116610337565b005b34801561012457600080fd5b506100c1610133366004612025565b61038f565b34801561014457600080fd5b506100c16101533660046121be565b61050d565b34801561016457600080fd5b506101166105cc565b34801561017957600080fd5b50610116610637565b34801561018e57600080fd5b506033546040516001600160a01b0390911681526020016100cb565b3480156101b657600080fd5b506101166101c5366004611fc2565b6106ab565b6100c16101d8366004611fc2565b610773565b60006101f46001600160a01b038416333085610a73565b61020d83836000805160206124b8833981519152610ae4565b905060008061021b83610f3d565b604051632e1a7d4d60e01b81526004810182905291935091506000805160206124b883398151915290632e1a7d4d90602401602060405180830381600087803b15801561026757600080fd5b505af115801561027b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029f91906121d6565b50604051339082156108fc029083906000818181858888f193505050501580156102cd573d6000803e3d6000fd5b508092506102fc6102e66033546001600160a01b031690565b6000805160206124b88339815191529084610f64565b61031e6103088361050d565b3360009081526065602052604090205490610f99565b3360009081526065602052604090205550909392505050565b33600081815260656020526040902054906103529082610fa5565b33600081815260656020526040808220829055518392917fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a91a350565b60006103a66001600160a01b038516333086610a73565b600080516020612498833981519152826001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156103ee57600080fd5b505afa158015610402573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261042a919081019061212e565b60405160200161043a919061223e565b60405160208183030381529060405280519060200120141561046857610461848484611110565b9050610476565b610473848484610ae4565b90505b60008061048283610f3d565b909250905061049b6001600160a01b0385163383610f64565b80925060006104b985846000805160206124b8833981519152610ae4565b90506104e66104d06033546001600160a01b031690565b6000805160206124b88339815191529083610f64565b6104f26103088261050d565b33600090815260656020526040902055509195945050505050565b60008061052c670de0b6b3a7640000610526858261154a565b90611556565b6040516370a0823160e01b815230600482015290915060009073aaaaafbd57b72c7b28faf156093feeb76fbf6f3f906370a082319060240160206040518083038186803b15801561057c57600080fd5b505afa158015610590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b491906121d6565b9050818110156105c5579392505050565b5092915050565b6033546001600160a01b0316331461062b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6106356000611562565b565b600054610100900460ff1680610650575060005460ff16155b61066c5760405162461bcd60e51b8152600401610622906122cd565b600054610100900460ff1615801561068e576000805461ffff19166101011790555b6106966115b4565b80156106a8576000805461ff00191690555b50565b6033546001600160a01b031633146107055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610622565b6001600160a01b03811661076a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610622565b6106a881611562565b6040516370a0823160e01b815230600482015260009081906000805160206124b8833981519152906370a082319060240160206040518083038186803b1580156107bc57600080fd5b505afa1580156107d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f491906121d6565b90506000805160206124b88339815191526001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016020604051808303818588803b15801561083f57600080fd5b505af1158015610853573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061087891906121d6565b506040516370a0823160e01b81523060048201526000906109059083906000805160206124b8833981519152906370a08231906024015b60206040518083038186803b1580156108c757600080fd5b505afa1580156108db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ff91906121d6565b9061161b565b9050600080516020612498833981519152846001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b15801561094f57600080fd5b505afa158015610963573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261098b919081019061212e565b60405160200161099b919061223e565b6040516020818303038152906040528051906020012014156109d7576109d06000805160206124b88339815191528286611110565b92506109f3565b6109f06000805160206124b88339815191528286610ae4565b92505b6000806109ff85610f3d565b95509150849050610a1a6001600160a01b0387163383610f64565b6000610a3587846000805160206124b8833981519152610ae4565b9050610a4c6104d06033546001600160a01b031690565b610a586103088261050d565b33600090815260656020526040902055509395945050505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610ade9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611627565b50505050565b6000600080516020612498833981519152846001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015610b2e57600080fd5b505afa158015610b42573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b6a919081019061212e565b604051602001610b7a919061223e565b604051602081830303815290604052805190602001201415610f28576000846001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015610bd157600080fd5b505afa158015610be5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c099190611fde565b90506000856001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015610c4657600080fd5b505afa158015610c5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7e9190611fde565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b158015610cc357600080fd5b505afa158015610cd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfb91906121d6565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b158015610d4057600080fd5b505afa158015610d54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7891906121d6565b9050610d9d6001600160a01b0389166000805160206124d883398151915260006116f9565b610dbf6001600160a01b0389166000805160206124d8833981519152896116f9565b604051635d5155ef60e11b81526000805160206124d88339815191529063baa2abde90610dfd90879087908c9060009081903090429060040161225a565b6040805180830381600087803b158015610e1657600080fd5b505af1158015610e2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4e91906121ee565b50506040516370a0823160e01b8152306004820152600090610e859084906001600160a01b038816906370a08231906024016108af565b6040516370a0823160e01b8152306004820152909150600090610ebd9084906001600160a01b038816906370a08231906024016108af565b90506000610eda87846000805160206124b883398151915261181d565b9050610eff610ef887846000805160206124b883398151915261181d565b8290610f99565b9050610f1a6000805160206124b8833981519152828b611b61565b975050505050505050610f36565b610f33848484611b61565b90505b9392505050565b600080610f5161271061052685600561154a565b9150610f5d838361161b565b9050915091565b6040516001600160a01b038316602482015260448101829052610f9490849063a9059cbb60e01b90606401610aa7565b505050565b6000610f3682846123bc565b6040516370a0823160e01b815230600482015260009073aaaaafbd57b72c7b28faf156093feeb76fbf6f3f906370a082319060240160206040518083038186803b158015610ff257600080fd5b505afa158015611006573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102a91906121d6565b9050818111156110c95760405163a9059cbb60e01b81526001600160a01b03841660048201526024810183905273aaaaafbd57b72c7b28faf156093feeb76fbf6f3f9063a9059cbb906044015b602060405180830381600087803b15801561109157600080fd5b505af11580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ade919061210e565b60405163a9059cbb60e01b81526001600160a01b03841660048201526024810182905273aaaaafbd57b72c7b28faf156093feeb76fbf6f3f9063a9059cbb90604401611077565b6000600080516020612498833981519152846001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b15801561115a57600080fd5b505afa15801561116e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611196919081019061212e565b6040516020016111a6919061223e565b60405160208183030381529060405280519060200120141561153f576000846001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156111fd57600080fd5b505afa158015611211573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112359190611fde565b90506000856001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561127257600080fd5b505afa158015611286573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112aa9190611fde565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b1580156112ef57600080fd5b505afa158015611303573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132791906121d6565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b15801561136c57600080fd5b505afa158015611380573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a491906121d6565b90506113c96001600160a01b0389166000805160206124d883398151915260006116f9565b6113eb6001600160a01b0389166000805160206124d8833981519152896116f9565b604051635d5155ef60e11b81526000805160206124d88339815191529063baa2abde9061142990879087908c9060009081903090429060040161225a565b6040805180830381600087803b15801561144257600080fd5b505af1158015611456573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147a91906121ee565b50506040516370a0823160e01b81523060048201526000906114b19084906001600160a01b038816906370a08231906024016108af565b6040516370a0823160e01b81523060048201529091506000906114e99084906001600160a01b038816906370a08231906024016108af565b9050600061150687846000805160206124b883398151915261181d565b9050611524610ef887846000805160206124b883398151915261181d565b9050610f1a6000805160206124b8833981519152828b611b76565b610f33848484611b76565b6000610f3682846123f4565b6000610f3682846123d4565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16806115cd575060005460ff16155b6115e95760405162461bcd60e51b8152600401610622906122cd565b600054610100900460ff1615801561160b576000805461ffff19166101011790555b611613611ded565b610696611e57565b6000610f368284612413565b600061167c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611eb79092919063ffffffff16565b805190915015610f94578080602001905181019061169a919061210e565b610f945760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610622565b8015806117825750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561174857600080fd5b505afa15801561175c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178091906121d6565b155b6117ed5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610622565b6040516001600160a01b038316602482015260448101829052610f9490849063095ea7b360e01b90606401610aa7565b6000816001600160a01b0316846001600160a01b03161415611840575081610f36565b60606001600160a01b0383166000805160206124b8833981519152148061187d57506001600160a01b0385166000805160206124b8833981519152145b1561190c5760408051600280825260608201835290916020830190803683370190505090508483826000815181106118c557634e487b7160e01b600052603260045260246000fd5b60200260200101836001815181106118ed57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039384166020918202929092010152911690526119d2565b604080516003808252608082019092529060208201606080368337019050509050846000805160206124b8833981519152848360008151811061195f57634e487b7160e01b600052603260045260246000fd5b602002602001018460018151811061198757634e487b7160e01b600052603260045260246000fd5b60200260200101856002815181106119af57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0394851660209182029290920101529282169092529190911690525b6119f56001600160a01b0386166000805160206124d883398151915260006116f9565b611a176001600160a01b0386166000805160206124d8833981519152866116f9565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015611a5957600080fd5b505afa158015611a6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9191906121d6565b6040516338ed173960e01b81529091506000805160206124d8833981519152906338ed173990611ace90889060009087903090429060040161231b565b600060405180830381600087803b158015611ae857600080fd5b505af1158015611afc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b249190810190612066565b506040516370a0823160e01b8152306004820152611b579082906001600160a01b038716906370a08231906024016108af565b9695505050505050565b6000611b6e84848461181d565b949350505050565b600080826001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015611bb257600080fd5b505afa158015611bc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bea9190611fde565b90506000836001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015611c2757600080fd5b505afa158015611c3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5f9190611fde565b90506000611c6e866002611556565b90506000611c7c878361161b565b90506000611c8b89848761181d565b90506000611c9a8a848761181d565b9050611cbf6001600160a01b0387166000805160206124d883398151915260006116f9565b611ce16001600160a01b0387166000805160206124d8833981519152846116f9565b611d046001600160a01b0386166000805160206124d883398151915260006116f9565b611d266001600160a01b0386166000805160206124d8833981519152836116f9565b60405162e8e33760e81b81526001600160a01b03808816600483015286166024820152604481018390526064810182905260006084820181905260a48201523060c48201524260e48201526000805160206124d88339815191529063e8e337009061010401606060405180830381600087803b158015611da557600080fd5b505af1158015611db9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddd9190612211565b9c9b505050505050505050505050565b600054610100900460ff1680611e06575060005460ff16155b611e225760405162461bcd60e51b8152600401610622906122cd565b600054610100900460ff16158015610696576000805461ffff191661010117905580156106a8576000805461ff001916905550565b600054610100900460ff1680611e70575060005460ff16155b611e8c5760405162461bcd60e51b8152600401610622906122cd565b600054610100900460ff16158015611eae576000805461ffff19166101011790555b61069633611562565b6060611b6e848460008585843b611f105760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610622565b600080866001600160a01b03168587604051611f2c919061223e565b60006040518083038185875af1925050503d8060008114611f69576040519150601f19603f3d011682016040523d82523d6000602084013e611f6e565b606091505b5091509150611f7e828286611f89565b979650505050505050565b60608315611f98575081610f36565b825115611fa85782518084602001fd5b8160405162461bcd60e51b8152600401610622919061229a565b600060208284031215611fd3578081fd5b8135610f3681612482565b600060208284031215611fef578081fd5b8151610f3681612482565b6000806040838503121561200c578081fd5b823561201781612482565b946020939093013593505050565b600080600060608486031215612039578081fd5b833561204481612482565b925060208401359150604084013561205b81612482565b809150509250925092565b60006020808385031215612078578182fd5b825167ffffffffffffffff8082111561208f578384fd5b818501915085601f8301126120a2578384fd5b8151818111156120b4576120b461246c565b8060051b91506120c584830161238b565b8181528481019084860184860187018a10156120df578788fd5b8795505b838610156121015780518352600195909501949186019186016120e3565b5098975050505050505050565b60006020828403121561211f578081fd5b81518015158114610f36578182fd5b60006020828403121561213f578081fd5b815167ffffffffffffffff80821115612156578283fd5b818401915084601f830112612169578283fd5b81518181111561217b5761217b61246c565b61218e601f8201601f191660200161238b565b91508082528560208285010111156121a4578384fd5b6121b581602084016020860161242a565b50949350505050565b6000602082840312156121cf578081fd5b5035919050565b6000602082840312156121e7578081fd5b5051919050565b60008060408385031215612200578182fd5b505080516020909101519092909150565b600080600060608486031215612225578283fd5b8351925060208401519150604084015190509250925092565b6000825161225081846020870161242a565b9190910192915050565b6001600160a01b039788168152958716602087015260408601949094526060850192909252608084015290921660a082015260c081019190915260e00190565b60208152600082518060208401526122b981604085016020870161242a565b601f01601f19169190910160400192915050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b8181101561236a5784516001600160a01b031683529383019391830191600101612345565b50506001600160a01b03969096166060850152505050608001529392505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156123b4576123b461246c565b604052919050565b600082198211156123cf576123cf612456565b500190565b6000826123ef57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561240e5761240e612456565b500290565b60008282101561242557612425612456565b500390565b60005b8381101561244557818101518382015260200161242d565b83811115610ade5750506000910152565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146106a857600080fdfee6c995ce413797626574865f7dcde20fd6d3bd1f4de99eb20a39252ab74ddb3e00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29a26469706673582212209d9b50c003bacfb21399763931a0ff3246df88f78eeceb3d9421bda155cf22c264736f6c63430008040033
Deployed Bytecode
0x6080604052600436106100955760003560e01c8063715018a611610059578063715018a6146101585780638129fc1c1461016d5780638da5cb5b14610182578063f2fde38b146101aa578063f34c72cd146101ca57600080fd5b80630266a857146100a15780630700037d146100d45780634e71d92d146101015780635330b54b1461011857806368f1a4d31461013857600080fd5b3661009c57005b600080fd5b3480156100ad57600080fd5b506100c16100bc366004611ffa565b6101dd565b6040519081526020015b60405180910390f35b3480156100e057600080fd5b506100c16100ef366004611fc2565b60656020526000908152604090205481565b34801561010d57600080fd5b50610116610337565b005b34801561012457600080fd5b506100c1610133366004612025565b61038f565b34801561014457600080fd5b506100c16101533660046121be565b61050d565b34801561016457600080fd5b506101166105cc565b34801561017957600080fd5b50610116610637565b34801561018e57600080fd5b506033546040516001600160a01b0390911681526020016100cb565b3480156101b657600080fd5b506101166101c5366004611fc2565b6106ab565b6100c16101d8366004611fc2565b610773565b60006101f46001600160a01b038416333085610a73565b61020d83836000805160206124b8833981519152610ae4565b905060008061021b83610f3d565b604051632e1a7d4d60e01b81526004810182905291935091506000805160206124b883398151915290632e1a7d4d90602401602060405180830381600087803b15801561026757600080fd5b505af115801561027b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029f91906121d6565b50604051339082156108fc029083906000818181858888f193505050501580156102cd573d6000803e3d6000fd5b508092506102fc6102e66033546001600160a01b031690565b6000805160206124b88339815191529084610f64565b61031e6103088361050d565b3360009081526065602052604090205490610f99565b3360009081526065602052604090205550909392505050565b33600081815260656020526040902054906103529082610fa5565b33600081815260656020526040808220829055518392917fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a91a350565b60006103a66001600160a01b038516333086610a73565b600080516020612498833981519152826001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156103ee57600080fd5b505afa158015610402573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261042a919081019061212e565b60405160200161043a919061223e565b60405160208183030381529060405280519060200120141561046857610461848484611110565b9050610476565b610473848484610ae4565b90505b60008061048283610f3d565b909250905061049b6001600160a01b0385163383610f64565b80925060006104b985846000805160206124b8833981519152610ae4565b90506104e66104d06033546001600160a01b031690565b6000805160206124b88339815191529083610f64565b6104f26103088261050d565b33600090815260656020526040902055509195945050505050565b60008061052c670de0b6b3a7640000610526858261154a565b90611556565b6040516370a0823160e01b815230600482015290915060009073aaaaafbd57b72c7b28faf156093feeb76fbf6f3f906370a082319060240160206040518083038186803b15801561057c57600080fd5b505afa158015610590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b491906121d6565b9050818110156105c5579392505050565b5092915050565b6033546001600160a01b0316331461062b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6106356000611562565b565b600054610100900460ff1680610650575060005460ff16155b61066c5760405162461bcd60e51b8152600401610622906122cd565b600054610100900460ff1615801561068e576000805461ffff19166101011790555b6106966115b4565b80156106a8576000805461ff00191690555b50565b6033546001600160a01b031633146107055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610622565b6001600160a01b03811661076a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610622565b6106a881611562565b6040516370a0823160e01b815230600482015260009081906000805160206124b8833981519152906370a082319060240160206040518083038186803b1580156107bc57600080fd5b505afa1580156107d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f491906121d6565b90506000805160206124b88339815191526001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016020604051808303818588803b15801561083f57600080fd5b505af1158015610853573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061087891906121d6565b506040516370a0823160e01b81523060048201526000906109059083906000805160206124b8833981519152906370a08231906024015b60206040518083038186803b1580156108c757600080fd5b505afa1580156108db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ff91906121d6565b9061161b565b9050600080516020612498833981519152846001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b15801561094f57600080fd5b505afa158015610963573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261098b919081019061212e565b60405160200161099b919061223e565b6040516020818303038152906040528051906020012014156109d7576109d06000805160206124b88339815191528286611110565b92506109f3565b6109f06000805160206124b88339815191528286610ae4565b92505b6000806109ff85610f3d565b95509150849050610a1a6001600160a01b0387163383610f64565b6000610a3587846000805160206124b8833981519152610ae4565b9050610a4c6104d06033546001600160a01b031690565b610a586103088261050d565b33600090815260656020526040902055509395945050505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610ade9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611627565b50505050565b6000600080516020612498833981519152846001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015610b2e57600080fd5b505afa158015610b42573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b6a919081019061212e565b604051602001610b7a919061223e565b604051602081830303815290604052805190602001201415610f28576000846001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015610bd157600080fd5b505afa158015610be5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c099190611fde565b90506000856001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015610c4657600080fd5b505afa158015610c5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7e9190611fde565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b158015610cc357600080fd5b505afa158015610cd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfb91906121d6565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b158015610d4057600080fd5b505afa158015610d54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7891906121d6565b9050610d9d6001600160a01b0389166000805160206124d883398151915260006116f9565b610dbf6001600160a01b0389166000805160206124d8833981519152896116f9565b604051635d5155ef60e11b81526000805160206124d88339815191529063baa2abde90610dfd90879087908c9060009081903090429060040161225a565b6040805180830381600087803b158015610e1657600080fd5b505af1158015610e2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4e91906121ee565b50506040516370a0823160e01b8152306004820152600090610e859084906001600160a01b038816906370a08231906024016108af565b6040516370a0823160e01b8152306004820152909150600090610ebd9084906001600160a01b038816906370a08231906024016108af565b90506000610eda87846000805160206124b883398151915261181d565b9050610eff610ef887846000805160206124b883398151915261181d565b8290610f99565b9050610f1a6000805160206124b8833981519152828b611b61565b975050505050505050610f36565b610f33848484611b61565b90505b9392505050565b600080610f5161271061052685600561154a565b9150610f5d838361161b565b9050915091565b6040516001600160a01b038316602482015260448101829052610f9490849063a9059cbb60e01b90606401610aa7565b505050565b6000610f3682846123bc565b6040516370a0823160e01b815230600482015260009073aaaaafbd57b72c7b28faf156093feeb76fbf6f3f906370a082319060240160206040518083038186803b158015610ff257600080fd5b505afa158015611006573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102a91906121d6565b9050818111156110c95760405163a9059cbb60e01b81526001600160a01b03841660048201526024810183905273aaaaafbd57b72c7b28faf156093feeb76fbf6f3f9063a9059cbb906044015b602060405180830381600087803b15801561109157600080fd5b505af11580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ade919061210e565b60405163a9059cbb60e01b81526001600160a01b03841660048201526024810182905273aaaaafbd57b72c7b28faf156093feeb76fbf6f3f9063a9059cbb90604401611077565b6000600080516020612498833981519152846001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b15801561115a57600080fd5b505afa15801561116e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611196919081019061212e565b6040516020016111a6919061223e565b60405160208183030381529060405280519060200120141561153f576000846001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156111fd57600080fd5b505afa158015611211573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112359190611fde565b90506000856001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561127257600080fd5b505afa158015611286573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112aa9190611fde565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b1580156112ef57600080fd5b505afa158015611303573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132791906121d6565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b15801561136c57600080fd5b505afa158015611380573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a491906121d6565b90506113c96001600160a01b0389166000805160206124d883398151915260006116f9565b6113eb6001600160a01b0389166000805160206124d8833981519152896116f9565b604051635d5155ef60e11b81526000805160206124d88339815191529063baa2abde9061142990879087908c9060009081903090429060040161225a565b6040805180830381600087803b15801561144257600080fd5b505af1158015611456573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147a91906121ee565b50506040516370a0823160e01b81523060048201526000906114b19084906001600160a01b038816906370a08231906024016108af565b6040516370a0823160e01b81523060048201529091506000906114e99084906001600160a01b038816906370a08231906024016108af565b9050600061150687846000805160206124b883398151915261181d565b9050611524610ef887846000805160206124b883398151915261181d565b9050610f1a6000805160206124b8833981519152828b611b76565b610f33848484611b76565b6000610f3682846123f4565b6000610f3682846123d4565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16806115cd575060005460ff16155b6115e95760405162461bcd60e51b8152600401610622906122cd565b600054610100900460ff1615801561160b576000805461ffff19166101011790555b611613611ded565b610696611e57565b6000610f368284612413565b600061167c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611eb79092919063ffffffff16565b805190915015610f94578080602001905181019061169a919061210e565b610f945760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610622565b8015806117825750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561174857600080fd5b505afa15801561175c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178091906121d6565b155b6117ed5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610622565b6040516001600160a01b038316602482015260448101829052610f9490849063095ea7b360e01b90606401610aa7565b6000816001600160a01b0316846001600160a01b03161415611840575081610f36565b60606001600160a01b0383166000805160206124b8833981519152148061187d57506001600160a01b0385166000805160206124b8833981519152145b1561190c5760408051600280825260608201835290916020830190803683370190505090508483826000815181106118c557634e487b7160e01b600052603260045260246000fd5b60200260200101836001815181106118ed57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039384166020918202929092010152911690526119d2565b604080516003808252608082019092529060208201606080368337019050509050846000805160206124b8833981519152848360008151811061195f57634e487b7160e01b600052603260045260246000fd5b602002602001018460018151811061198757634e487b7160e01b600052603260045260246000fd5b60200260200101856002815181106119af57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0394851660209182029290920101529282169092529190911690525b6119f56001600160a01b0386166000805160206124d883398151915260006116f9565b611a176001600160a01b0386166000805160206124d8833981519152866116f9565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015611a5957600080fd5b505afa158015611a6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9191906121d6565b6040516338ed173960e01b81529091506000805160206124d8833981519152906338ed173990611ace90889060009087903090429060040161231b565b600060405180830381600087803b158015611ae857600080fd5b505af1158015611afc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b249190810190612066565b506040516370a0823160e01b8152306004820152611b579082906001600160a01b038716906370a08231906024016108af565b9695505050505050565b6000611b6e84848461181d565b949350505050565b600080826001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015611bb257600080fd5b505afa158015611bc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bea9190611fde565b90506000836001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015611c2757600080fd5b505afa158015611c3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5f9190611fde565b90506000611c6e866002611556565b90506000611c7c878361161b565b90506000611c8b89848761181d565b90506000611c9a8a848761181d565b9050611cbf6001600160a01b0387166000805160206124d883398151915260006116f9565b611ce16001600160a01b0387166000805160206124d8833981519152846116f9565b611d046001600160a01b0386166000805160206124d883398151915260006116f9565b611d266001600160a01b0386166000805160206124d8833981519152836116f9565b60405162e8e33760e81b81526001600160a01b03808816600483015286166024820152604481018390526064810182905260006084820181905260a48201523060c48201524260e48201526000805160206124d88339815191529063e8e337009061010401606060405180830381600087803b158015611da557600080fd5b505af1158015611db9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddd9190612211565b9c9b505050505050505050505050565b600054610100900460ff1680611e06575060005460ff16155b611e225760405162461bcd60e51b8152600401610622906122cd565b600054610100900460ff16158015610696576000805461ffff191661010117905580156106a8576000805461ff001916905550565b600054610100900460ff1680611e70575060005460ff16155b611e8c5760405162461bcd60e51b8152600401610622906122cd565b600054610100900460ff16158015611eae576000805461ffff19166101011790555b61069633611562565b6060611b6e848460008585843b611f105760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610622565b600080866001600160a01b03168587604051611f2c919061223e565b60006040518083038185875af1925050503d8060008114611f69576040519150601f19603f3d011682016040523d82523d6000602084013e611f6e565b606091505b5091509150611f7e828286611f89565b979650505050505050565b60608315611f98575081610f36565b825115611fa85782518084602001fd5b8160405162461bcd60e51b8152600401610622919061229a565b600060208284031215611fd3578081fd5b8135610f3681612482565b600060208284031215611fef578081fd5b8151610f3681612482565b6000806040838503121561200c578081fd5b823561201781612482565b946020939093013593505050565b600080600060608486031215612039578081fd5b833561204481612482565b925060208401359150604084013561205b81612482565b809150509250925092565b60006020808385031215612078578182fd5b825167ffffffffffffffff8082111561208f578384fd5b818501915085601f8301126120a2578384fd5b8151818111156120b4576120b461246c565b8060051b91506120c584830161238b565b8181528481019084860184860187018a10156120df578788fd5b8795505b838610156121015780518352600195909501949186019186016120e3565b5098975050505050505050565b60006020828403121561211f578081fd5b81518015158114610f36578182fd5b60006020828403121561213f578081fd5b815167ffffffffffffffff80821115612156578283fd5b818401915084601f830112612169578283fd5b81518181111561217b5761217b61246c565b61218e601f8201601f191660200161238b565b91508082528560208285010111156121a4578384fd5b6121b581602084016020860161242a565b50949350505050565b6000602082840312156121cf578081fd5b5035919050565b6000602082840312156121e7578081fd5b5051919050565b60008060408385031215612200578182fd5b505080516020909101519092909150565b600080600060608486031215612225578283fd5b8351925060208401519150604084015190509250925092565b6000825161225081846020870161242a565b9190910192915050565b6001600160a01b039788168152958716602087015260408601949094526060850192909252608084015290921660a082015260c081019190915260e00190565b60208152600082518060208401526122b981604085016020870161242a565b601f01601f19169190910160400192915050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b8181101561236a5784516001600160a01b031683529383019391830191600101612345565b50506001600160a01b03969096166060850152505050608001529392505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156123b4576123b461246c565b604052919050565b600082198211156123cf576123cf612456565b500190565b6000826123ef57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561240e5761240e612456565b500290565b60008282101561242557612425612456565b500390565b60005b8381101561244557818101518382015260200161242d565b83811115610ade5750506000910152565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146106a857600080fdfee6c995ce413797626574865f7dcde20fd6d3bd1f4de99eb20a39252ab74ddb3e00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29a26469706673582212209d9b50c003bacfb21399763931a0ff3246df88f78eeceb3d9421bda155cf22c264736f6c63430008040033
Deployed Bytecode Sourcemap
36782:9513:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40225:582;;;;;;;;;;-1:-1:-1;40225:582:0;;;;;:::i;:::-;;:::i;:::-;;;10878:25:1;;;10866:2;10851:18;40225:582:0;;;;;;;;37381:42;;;;;;;;;;-1:-1:-1;37381:42:0;;;;;:::i;:::-;;;;;;;;;;;;;;37984:211;;;;;;;;;;;;;:::i;:::-;;38265:893;;;;;;;;;;-1:-1:-1;38265:893:0;;;;;:::i;:::-;;:::i;37626:350::-;;;;;;;;;;-1:-1:-1;37626:350:0;;;;;:::i;:::-;;:::i;26900:94::-;;;;;;;;;;;;;:::i;37503:78::-;;;;;;;;;;;;;:::i;26249:87::-;;;;;;;;;;-1:-1:-1;26322:6:0;;26249:87;;-1:-1:-1;;;;;26322:6:0;;;5074:51:1;;5062:2;5047:18;26249:87:0;5029:102:1;27149:192:0;;;;;;;;;;-1:-1:-1;27149:192:0;;;;;:::i;:::-;;:::i;39215:953::-;;;;;;:::i;:::-;;:::i;40225:582::-;40298:17;40328:70;-1:-1:-1;;;;;40328:35:0;;40364:10;40384:4;40391:6;40328:35;:70::i;:::-;40423:37;40435:10;40447:6;-1:-1:-1;;;;;;;;;;;40423:11:0;:37::i;:::-;40411:49;;40474:17;40493;40514:18;40522:9;40514:7;:18::i;:::-;40545:31;;-1:-1:-1;;;40545:31:0;;;;;10878:25:1;;;40473:59:0;;-1:-1:-1;40473:59:0;-1:-1:-1;;;;;;;;;;;;37100:42:0;40545:20;;10851:18:1;;40545:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;40587:39:0;;40595:10;;40587:39;;;;;40616:9;;40587:39;;;;40616:9;40595:10;40587:39;;;;;;;;;;;;;;;;;;;;;40649:9;40637:21;;40671:45;40697:7;26322:6;;-1:-1:-1;;;;;26322:6:0;;26249:87;40697:7;-1:-1:-1;;;;;;;;;;;37100:42:0;40706:9;40671:25;:45::i;:::-;40749:50;40773:25;40788:9;40773:14;:25::i;:::-;40757:10;40749:19;;;;:7;:19;;;;;;;:23;:50::i;:::-;40735:10;40727:19;;;;:7;:19;;;;;:72;-1:-1:-1;40225:582:0;;;-1:-1:-1;;;40225:582:0:o;37984:211::-;38046:10;38021:14;38038:19;;;:7;:19;;;;;;;38070:36;;38038:19;38070:16;:36::i;:::-;38127:10;38141:1;38119:19;;;:7;:19;;;;;;:23;;;38160:27;38180:6;;38127:10;38160:27;;;37984:211;:::o;38265:893::-;38389:17;38419:70;-1:-1:-1;;;;;38419:35:0;;38455:10;38475:4;38482:6;38419:35;:70::i;:::-;-1:-1:-1;;;;;;;;;;;38546:11:0;-1:-1:-1;;;;;38533:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;38533:34:0;;;;;;;;;;;;:::i;:::-;38516:52;;;;;;;;:::i;:::-;;;;;;;;;;;;;38506:63;;;;;;:84;38502:259;;;38619:41;38628:10;38640:6;38648:11;38619:8;:41::i;:::-;38607:53;;38502:259;;;38705:44;38717:10;38729:6;38737:11;38705;:44::i;:::-;38693:56;;38502:259;38774:17;38793;38814:18;38822:9;38814:7;:18::i;:::-;38773:59;;-1:-1:-1;38773:59:0;-1:-1:-1;38845:55:0;-1:-1:-1;;;;;38845:32:0;;38878:10;38773:59;38845:32;:55::i;:::-;38923:9;38911:21;;38945:18;38966:41;38978:11;38991:9;-1:-1:-1;;;;;;;;;;;38966:11:0;:41::i;:::-;38945:62;;39018:46;39044:7;26322:6;;-1:-1:-1;;;;;26322:6:0;;26249:87;39044:7;-1:-1:-1;;;;;;;;;;;37100:42:0;39053:10;39018:25;:46::i;:::-;39099:51;39123:26;39138:10;39123:14;:26::i;39099:51::-;39085:10;39077:19;;;;:7;:19;;;;;:73;-1:-1:-1;38265:893:0;;;-1:-1:-1;;;;;38265:893:0:o;37626:350::-;37690:7;;37735:36;37766:4;37735:26;:9;37766:4;37735:13;:26::i;:::-;:30;;:36::i;:::-;37799;;-1:-1:-1;;;37799:36:0;;37829:4;37799:36;;;5074:51:1;37710:61:0;;-1:-1:-1;37782:14:0;;37019:42;;37799:21;;5047:18:1;;37799:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;37782:53;;37859:14;37850:6;:23;37846:123;;;37897:6;37626:350;-1:-1:-1;;;37626:350:0:o;37846:123::-;-1:-1:-1;37943:14:0;37626:350;-1:-1:-1;;37626:350:0:o;26900:94::-;26322:6;;-1:-1:-1;;;;;26322:6:0;24672:10;26469:23;26461:68;;;;-1:-1:-1;;;26461:68:0;;9381:2:1;26461:68:0;;;9363:21:1;;;9400:18;;;9393:30;9459:34;9439:18;;;9432:62;9511:18;;26461:68:0;;;;;;;;;26965:21:::1;26983:1;26965:9;:21::i;:::-;26900:94::o:0;37503:78::-;23302:13;;;;;;;;:30;;-1:-1:-1;23320:12:0;;;;23319:13;23302:30;23294:89;;;;-1:-1:-1;;;23294:89:0;;;;;;;:::i;:::-;23396:19;23419:13;;;;;;23418:14;23443:101;;;;23478:13;:20;;-1:-1:-1;;23513:19:0;;;;;23443:101;37557:16:::1;:14;:16::i;:::-;23574:14:::0;23570:68;;;23621:5;23605:21;;-1:-1:-1;;23605:21:0;;;23570:68;37503:78;:::o;27149:192::-;26322:6;;-1:-1:-1;;;;;26322:6:0;24672:10;26469:23;26461:68;;;;-1:-1:-1;;;26461:68:0;;9381:2:1;26461:68:0;;;9363:21:1;;;9400:18;;;9393:30;9459:34;9439:18;;;9432:62;9511:18;;26461:68:0;9353:182:1;26461:68:0;-1:-1:-1;;;;;27238:22:0;::::1;27230:73;;;::::0;-1:-1:-1;;;27230:73:0;;8152:2:1;27230:73:0::1;::::0;::::1;8134:21:1::0;8191:2;8171:18;;;8164:30;8230:34;8210:18;;;8203:62;-1:-1:-1;;;8281:18:1;;;8274:36;8327:19;;27230:73:0::1;8124:228:1::0;27230:73:0::1;27314:19;27324:8;27314:9;:19::i;39215:953::-:0;39331:37;;-1:-1:-1;;;39331:37:0;;39362:4;39331:37;;;5074:51:1;39280:17:0;;;;-1:-1:-1;;;;;;;;;;;37100:42:0;39331:22;;5047:18:1;;39331:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;39310:58;;-1:-1:-1;;;;;;;;;;;;;;;;39379:19:0;;39406:9;39379:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;39450:37:0;;-1:-1:-1;;;39450:37:0;;39481:4;39450:37;;;5074:51:1;39429:18:0;;39450:53;;39492:10;;-1:-1:-1;;;;;;;;;;;37100:42:0;39450:22;;5047:18:1;;39450:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;:53::i;:::-;39429:74;;-1:-1:-1;;;;;;;;;;;39560:11:0;-1:-1:-1;;;;;39547:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;39547:34:0;;;;;;;;;;;;:::i;:::-;39530:52;;;;;;;;:::i;:::-;;;;;;;;;;;;;39520:63;;;;;;:84;39516:255;;;39633:39;-1:-1:-1;;;;;;;;;;;39648:10:0;39660:11;39633:8;:39::i;:::-;39621:51;;39516:255;;;39717:42;-1:-1:-1;;;;;;;;;;;39735:10:0;39747:11;39717;:42::i;:::-;39705:54;;39516:255;39784:17;39803;39824:18;39832:9;39824:7;:18::i;:::-;39783:59;-1:-1:-1;39783:59:0;-1:-1:-1;39783:59:0;;-1:-1:-1;39887:55:0;-1:-1:-1;;;;;39887:32:0;;39920:10;39783:59;39887:32;:55::i;:::-;39955:18;39976:41;39988:11;40001:9;-1:-1:-1;;;;;;;;;;;39976:11:0;:41::i;:::-;39955:62;;40028:46;40054:7;26322:6;;-1:-1:-1;;;;;26322:6:0;;26249:87;40028:46;40109:51;40133:26;40148:10;40133:14;:26::i;40109:51::-;40095:10;40087:19;;;;:7;:19;;;;;:73;-1:-1:-1;39215:953:0;;;-1:-1:-1;;;;;39215:953:0:o;18724:248::-;18895:68;;-1:-1:-1;;;;;5703:15:1;;;18895:68:0;;;5685:34:1;5755:15;;5735:18;;;5728:43;5787:18;;;5780:34;;;18868:96:0;;18888:5;;-1:-1:-1;;;18918:27:0;5620:18:1;;18895:68:0;;;;-1:-1:-1;;18895:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;18895:68:0;-1:-1:-1;;;;;;18895:68:0;;;;;;;;;;18868:19;:96::i;:::-;18724:248;;;;:::o;43252:1349::-;43381:17;-1:-1:-1;;;;;;;;;;;43455:10:0;-1:-1:-1;;;;;43442:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;43442:33:0;;;;;;;;;;;;:::i;:::-;43425:51;;;;;;;;:::i;:::-;;;;;;;;;;;;;43415:62;;;;;;:83;43411:1183;;;43554:14;43584:10;-1:-1:-1;;;;;43571:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43554:50;;43619:14;43649:10;-1:-1:-1;;;;;43636:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43709:39;;-1:-1:-1;;;43709:39:0;;43742:4;43709:39;;;5074:51:1;43619:50:0;;-1:-1:-1;43686:20:0;;-1:-1:-1;;;;;43709:24:0;;;;;5047:18:1;;43709:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43786;;-1:-1:-1;;;43786:39:0;;43819:4;43786:39;;;5074:51:1;43686:62:0;;-1:-1:-1;43763:20:0;;-1:-1:-1;;;;;43786:24:0;;;;;5047:18:1;;43786:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43763:62;-1:-1:-1;43842:57:0;-1:-1:-1;;;;;43842:30:0;;-1:-1:-1;;;;;;;;;;;43897:1:0;43842:30;:57::i;:::-;43914:62;-1:-1:-1;;;;;43914:30:0;;-1:-1:-1;;;;;;;;;;;43969:6:0;43914:30;:62::i;:::-;43991:91;;-1:-1:-1;;;43991:91:0;;-1:-1:-1;;;;;;;;;;;37212:42:0;43991:29;;:91;;44021:6;;44029;;44037;;44045:1;;;;44059:4;;44066:15;;43991:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;44122:39:0;;-1:-1:-1;;;44122:39:0;;44155:4;44122:39;;;5074:51:1;44099:20:0;;44122:57;;44166:12;;-1:-1:-1;;;;;44122:24:0;;;;;5047:18:1;;44122:39:0;5029:102:1;44122:57:0;44217:39;;-1:-1:-1;;;44217:39:0;;44250:4;44217:39;;;5074:51:1;44099:80:0;;-1:-1:-1;44194:20:0;;44217:57;;44261:12;;-1:-1:-1;;;;;44217:24:0;;;;;5047:18:1;;44217:39:0;5029:102:1;44217:57:0;44194:80;;44291:18;44312:33;44318:6;44326:12;-1:-1:-1;;;;;;;;;;;44312:5:0;:33::i;:::-;44291:54;;44373:49;44388:33;44394:6;44402:12;-1:-1:-1;;;;;;;;;;;44388:5:0;:33::i;:::-;44373:10;;:14;:49::i;:::-;44360:62;;44446:47;-1:-1:-1;;;;;;;;;;;44469:10:0;44481:11;44446:16;:47::i;:::-;44439:54;;;;;;;;;;;43411:1183;44533:49;44550:10;44562:6;44570:11;44533:16;:49::i;:::-;44526:56;;43411:1183;43252:1349;;;;;:::o;45786:203::-;45841:17;;45902:35;36976:5;45902:22;:6;36933:1;45902:10;:22::i;:35::-;45890:47;-1:-1:-1;45960:21:0;:6;45890:47;45960:10;:21::i;:::-;45948:33;;45786:203;;;:::o;18505:211::-;18649:58;;-1:-1:-1;;;;;7475:32:1;;18649:58:0;;;7457:51:1;7524:18;;;7517:34;;;18622:86:0;;18642:5;;-1:-1:-1;;;18672:23:0;7430:18:1;;18649:58:0;7412:145:1;18622:86:0;18505:211;;;:::o;2837:98::-;2895:7;2922:5;2926:1;2922;:5;:::i;45997:295::-;46089:36;;-1:-1:-1;;;46089:36:0;;46119:4;46089:36;;;5074:51:1;46075:11:0;;37019:42;;46089:21;;5047:18:1;;46089:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;46075:50;;46146:6;46140:3;:12;46136:149;;;46169:37;;-1:-1:-1;;;46169:37:0;;-1:-1:-1;;;;;7475:32:1;;46169:37:0;;;7457:51:1;7524:18;;;7517:34;;;37019:42:0;;46169:20;;7430:18:1;;46169:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;46136:149::-;46239:34;;-1:-1:-1;;;46239:34:0;;-1:-1:-1;;;;;7475:32:1;;46239:34:0;;;7457:51:1;7524:18;;;7517:34;;;37019:42:0;;46239:20;;7430:18:1;;46239:34:0;7412:145:1;40815:1340:0;40941:17;-1:-1:-1;;;;;;;;;;;41015:10:0;-1:-1:-1;;;;;41002:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;41002:33:0;;;;;;;;;;;;:::i;:::-;40985:51;;;;;;;;:::i;:::-;;;;;;;;;;;;;40975:62;;;;;;:83;40971:1177;;;41114:14;41144:10;-1:-1:-1;;;;;41131:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;41114:50;;41179:14;41209:10;-1:-1:-1;;;;;41196:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;41269:39;;-1:-1:-1;;;41269:39:0;;41302:4;41269:39;;;5074:51:1;41179:50:0;;-1:-1:-1;41246:20:0;;-1:-1:-1;;;;;41269:24:0;;;;;5047:18:1;;41269:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;41346;;-1:-1:-1;;;41346:39:0;;41379:4;41346:39;;;5074:51:1;41246:62:0;;-1:-1:-1;41323:20:0;;-1:-1:-1;;;;;41346:24:0;;;;;5047:18:1;;41346:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;41323:62;-1:-1:-1;41402:57:0;-1:-1:-1;;;;;41402:30:0;;-1:-1:-1;;;;;;;;;;;41457:1:0;41402:30;:57::i;:::-;41474:62;-1:-1:-1;;;;;41474:30:0;;-1:-1:-1;;;;;;;;;;;41529:6:0;41474:30;:62::i;:::-;41551:91;;-1:-1:-1;;;41551:91:0;;-1:-1:-1;;;;;;;;;;;37212:42:0;41551:29;;:91;;41581:6;;41589;;41597;;41605:1;;;;41619:4;;41626:15;;41551:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;41682:39:0;;-1:-1:-1;;;41682:39:0;;41715:4;41682:39;;;5074:51:1;41659:20:0;;41682:57;;41726:12;;-1:-1:-1;;;;;41682:24:0;;;;;5047:18:1;;41682:39:0;5029:102:1;41682:57:0;41777:39;;-1:-1:-1;;;41777:39:0;;41810:4;41777:39;;;5074:51:1;41659:80:0;;-1:-1:-1;41754:20:0;;41777:57;;41821:12;;-1:-1:-1;;;;;41777:24:0;;;;;5047:18:1;;41777:39:0;5029:102:1;41777:57:0;41754:80;;41851:18;41872:33;41878:6;41886:12;-1:-1:-1;;;;;;;;;;;41872:5:0;:33::i;:::-;41851:54;;41933:49;41948:33;41954:6;41962:12;-1:-1:-1;;;;;;;;;;;41948:5:0;:33::i;41933:49::-;41920:62;;42006:44;-1:-1:-1;;;;;;;;;;;42026:10:0;42038:11;42006:13;:44::i;40971:1177::-;42090:46;42104:10;42116:6;42124:11;42090:13;:46::i;3575:98::-;3633:7;3660:5;3664:1;3660;:5;:::i;3974:98::-;4032:7;4059:5;4063:1;4059;:5;:::i;27349:173::-;27424:6;;;-1:-1:-1;;;;;27441:17:0;;;-1:-1:-1;;;;;;27441:17:0;;;;;;;27474:40;;27424:6;;;27441:17;27424:6;;27474:40;;27405:16;;27474:40;27349:173;;:::o;25932:129::-;23302:13;;;;;;;;:30;;-1:-1:-1;23320:12:0;;;;23319:13;23302:30;23294:89;;;;-1:-1:-1;;;23294:89:0;;;;;;;:::i;:::-;23396:19;23419:13;;;;;;23418:14;23443:101;;;;23478:13;:20;;-1:-1:-1;;23513:19:0;;;;;23443:101;25990:26:::1;:24;:26::i;:::-;26027;:24;:26::i;3218:98::-:0;3276:7;3303:5;3307:1;3303;:5;:::i;21078:716::-;21502:23;21528:69;21556:4;21528:69;;;;;;;;;;;;;;;;;21536:5;-1:-1:-1;;;;;21528:27:0;;;:69;;;;;:::i;:::-;21612:17;;21502:95;;-1:-1:-1;21612:21:0;21608:179;;21709:10;21698:30;;;;;;;;;;;;:::i;:::-;21690:85;;;;-1:-1:-1;;;21690:85:0;;10100:2:1;21690:85:0;;;10082:21:1;10139:2;10119:18;;;10112:30;10178:34;10158:18;;;10151:62;-1:-1:-1;;;10229:18:1;;;10222:40;10279:19;;21690:85:0;10072:232:1;19241:616:0;19605:10;;;19604:62;;-1:-1:-1;19621:39:0;;-1:-1:-1;;;19621:39:0;;19645:4;19621:39;;;5348:34:1;-1:-1:-1;;;;;5418:15:1;;;5398:18;;;5391:43;19621:15:0;;;;;5283:18:1;;19621:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;19604:62;19582:166;;;;-1:-1:-1;;;19582:166:0;;10511:2:1;19582:166:0;;;10493:21:1;10550:2;10530:18;;;10523:30;10589:34;10569:18;;;10562:62;-1:-1:-1;;;10640:18:1;;;10633:52;10702:19;;19582:166:0;10483:244:1;19582:166:0;19786:62;;-1:-1:-1;;;;;7475:32:1;;19786:62:0;;;7457:51:1;7524:18;;;7517:34;;;19759:90:0;;19779:5;;-1:-1:-1;;;19809:22:0;7430:18:1;;19786:62:0;7412:145:1;44839:939:0;44962:17;45010:11;-1:-1:-1;;;;;44996:25:0;:10;-1:-1:-1;;;;;44996:25:0;;44992:44;;;-1:-1:-1;45030:6:0;45023:13;;44992:44;45049:21;-1:-1:-1;;;;;45085:19:0;;-1:-1:-1;;;;;;;;;;;45085:19:0;;:41;;-1:-1:-1;;;;;;45108:18:0;;-1:-1:-1;;;;;;;;;;;45108:18:0;45085:41;45081:290;;;45150:16;;;45164:1;45150:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45150:16:0;45143:23;;45203:10;45215:11;45182:4;45187:1;45182:7;;;;;;-1:-1:-1;;;45182:7:0;;;;;;;;;;;;;;45191:4;45196:1;45191:7;;;;;;-1:-1:-1;;;45191:7:0;;;;;;;;;-1:-1:-1;;;;;45181:46:0;;;45191:7;;;;;;;;;45181:46;;;;;45081:290;;;45267:16;;;45281:1;45267:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45267:16:0;45260:23;;45329:10;-1:-1:-1;;;;;;;;;;;45347:11:0;45299:4;45304:1;45299:7;;;;;;-1:-1:-1;;;45299:7:0;;;;;;;;;;;;;;45308:4;45313:1;45308:7;;;;;;-1:-1:-1;;;45308:7:0;;;;;;;;;;;;;;45317:4;45322:1;45317:7;;;;;;-1:-1:-1;;;45317:7:0;;;;;;;;;-1:-1:-1;;;;;45298:61:0;;;45317:7;;;;;;;;;45298:61;;;;;;;;;;;;;45081:290;45383:57;-1:-1:-1;;;;;45383:30:0;;-1:-1:-1;;;;;;;;;;;45438:1:0;45383:30;:57::i;:::-;45451:62;-1:-1:-1;;;;;45451:30:0;;-1:-1:-1;;;;;;;;;;;45506:6:0;45451:30;:62::i;:::-;45546:44;;-1:-1:-1;;;45546:44:0;;45584:4;45546:44;;;5074:51:1;45526:17:0;;-1:-1:-1;;;;;45546:29:0;;;;;5047:18:1;;45546:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;45601:87;;-1:-1:-1;;;45601:87:0;;45526:64;;-1:-1:-1;;;;;;;;;;;;37212:42:0;45601:38;;:87;;45640:6;;45648:1;;45651:4;;45665;;45672:15;;45601:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;45601:87:0;;;;;;;;;;;;:::i;:::-;-1:-1:-1;45711:44:0;;-1:-1:-1;;;45711:44:0;;45749:4;45711:44;;;5074:51:1;45711:59:0;;45760:9;;-1:-1:-1;;;;;45711:29:0;;;;;5047:18:1;;45711:44:0;5029:102:1;45711:59:0;45699:71;44839:939;-1:-1:-1;;;;;;44839:939:0:o;44609:222::-;44743:17;44785:38;44791:10;44803:6;44811:11;44785:5;:38::i;:::-;44773:50;44609:222;-1:-1:-1;;;;44609:222:0:o;42163:1081::-;42294:17;42324:14;42354:11;-1:-1:-1;;;;;42341:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42324:51;;42386:14;42416:11;-1:-1:-1;;;;;42403:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42386:51;-1:-1:-1;42450:22:0;42475:13;:6;42486:1;42475:10;:13::i;:::-;42450:38;-1:-1:-1;42499:22:0;42524:26;:6;42450:38;42524:10;:26::i;:::-;42499:51;;42563:20;42586:41;42592:10;42604:14;42620:6;42586:5;:41::i;:::-;42563:64;;42638:20;42661:41;42667:10;42679:14;42695:6;42661:5;:41::i;:::-;42638:64;-1:-1:-1;42715:53:0;-1:-1:-1;;;;;42715:26:0;;-1:-1:-1;;;;;;;;;;;42766:1:0;42715:26;:53::i;:::-;42779:64;-1:-1:-1;;;;;42779:26:0;;-1:-1:-1;;;;;;;;;;;42830:12:0;42779:26;:64::i;:::-;42854:53;-1:-1:-1;;;;;42854:26:0;;-1:-1:-1;;;;;;;;;;;42905:1:0;42854:26;:53::i;:::-;42918:64;-1:-1:-1;;;;;42918:26:0;;-1:-1:-1;;;;;;;;;;;42969:12:0;42918:26;:64::i;:::-;43013:223;;-1:-1:-1;;;43013:223:0;;-1:-1:-1;;;;;6933:15:1;;;43013:223:0;;;6915:34:1;6985:15;;6965:18;;;6958:43;7017:18;;;7010:34;;;7060:18;;;7053:34;;;43150:1:0;7103:19:1;;;7096:35;;;7147:19;;;7140:35;43190:4:0;7191:19:1;;;7184:44;43210:15:0;7244:19:1;;;7237:35;-1:-1:-1;;;;;;;;;;;37212:42:0;43013:26;;6849:19:1;;43013:223:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42995:241;42163:1081;-1:-1:-1;;;;;;;;;;;;42163:1081:0:o;24521:65::-;23302:13;;;;;;;;:30;;-1:-1:-1;23320:12:0;;;;23319:13;23302:30;23294:89;;;;-1:-1:-1;;;23294:89:0;;;;;;;:::i;:::-;23396:19;23419:13;;;;;;23418:14;23443:101;;;;23478:13;:20;;-1:-1:-1;;23513:19:0;;;;;23570:68;;;;23621:5;23605:21;;-1:-1:-1;;23605:21:0;;;24521:65;:::o;26069:99::-;23302:13;;;;;;;;:30;;-1:-1:-1;23320:12:0;;;;23319:13;23302:30;23294:89;;;;-1:-1:-1;;;23294:89:0;;;;;;;:::i;:::-;23396:19;23419:13;;;;;;23418:14;23443:101;;;;23478:13;:20;;-1:-1:-1;;23513:19:0;;;;;23443:101;26137:23:::1;24672:10:::0;26137:9:::1;:23::i;13439:229::-:0;13576:12;13608:52;13630:6;13638:4;13644:1;13647:12;13576;10956:20;;14846:60;;;;-1:-1:-1;;;14846:60:0;;9742:2:1;14846:60:0;;;9724:21:1;9781:2;9761:18;;;9754:30;9820:31;9800:18;;;9793:59;9869:18;;14846:60:0;9714:179:1;14846:60:0;14920:12;14934:23;14961:6;-1:-1:-1;;;;;14961:11:0;14980:5;14987:4;14961:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14919:73;;;;15010:52;15028:7;15037:10;15049:12;15010:17;:52::i;:::-;15003:59;14559:511;-1:-1:-1;;;;;;;14559:511:0:o;17028:712::-;17178:12;17207:7;17203:530;;;-1:-1:-1;17238:10:0;17231:17;;17203:530;17352:17;;:21;17348:374;;17550:10;17544:17;17611:15;17598:10;17594:2;17590:19;17583:44;17498:148;17693:12;17686:20;;-1:-1:-1;;;17686:20:0;;;;;;;;:::i;14:257:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:31;235:5;210:31;:::i;276:261::-;346:6;399:2;387:9;378:7;374:23;370:32;367:2;;;420:6;412;405:22;367:2;457:9;451:16;476:31;501:5;476:31;:::i;542:325::-;610:6;618;671:2;659:9;650:7;646:23;642:32;639:2;;;692:6;684;677:22;639:2;736:9;723:23;755:31;780:5;755:31;:::i;:::-;805:5;857:2;842:18;;;;829:32;;-1:-1:-1;;;629:238:1:o;872:466::-;949:6;957;965;1018:2;1006:9;997:7;993:23;989:32;986:2;;;1039:6;1031;1024:22;986:2;1083:9;1070:23;1102:31;1127:5;1102:31;:::i;:::-;1152:5;-1:-1:-1;1204:2:1;1189:18;;1176:32;;-1:-1:-1;1260:2:1;1245:18;;1232:32;1273:33;1232:32;1273:33;:::i;:::-;1325:7;1315:17;;;976:362;;;;;:::o;1343:992::-;1438:6;1469:2;1512;1500:9;1491:7;1487:23;1483:32;1480:2;;;1533:6;1525;1518:22;1480:2;1571:9;1565:16;1600:18;1641:2;1633:6;1630:14;1627:2;;;1662:6;1654;1647:22;1627:2;1705:6;1694:9;1690:22;1680:32;;1750:7;1743:4;1739:2;1735:13;1731:27;1721:2;;1777:6;1769;1762:22;1721:2;1811;1805:9;1833:2;1829;1826:10;1823:2;;;1839:18;;:::i;:::-;1885:2;1882:1;1878:10;1868:20;;1908:28;1932:2;1928;1924:11;1908:28;:::i;:::-;1970:15;;;2001:12;;;;2033:11;;;2063;;;2059:20;;2056:33;-1:-1:-1;2053:2:1;;;2107:6;2099;2092:22;2053:2;2134:6;2125:15;;2149:156;2163:2;2160:1;2157:9;2149:156;;;2220:10;;2208:23;;2181:1;2174:9;;;;;2251:12;;;;2283;;2149:156;;;-1:-1:-1;2324:5:1;1449:886;-1:-1:-1;;;;;;;;1449:886:1:o;2340:297::-;2407:6;2460:2;2448:9;2439:7;2435:23;2431:32;2428:2;;;2481:6;2473;2466:22;2428:2;2518:9;2512:16;2571:5;2564:13;2557:21;2550:5;2547:32;2537:2;;2598:6;2590;2583:22;2642:746;2722:6;2775:2;2763:9;2754:7;2750:23;2746:32;2743:2;;;2796:6;2788;2781:22;2743:2;2834:9;2828:16;2863:18;2904:2;2896:6;2893:14;2890:2;;;2925:6;2917;2910:22;2890:2;2968:6;2957:9;2953:22;2943:32;;3013:7;3006:4;3002:2;2998:13;2994:27;2984:2;;3040:6;3032;3025:22;2984:2;3074;3068:9;3096:2;3092;3089:10;3086:2;;;3102:18;;:::i;:::-;3144:53;3187:2;3168:13;;-1:-1:-1;;3164:27:1;3193:2;3160:36;3144:53;:::i;:::-;3131:66;;3220:2;3213:5;3206:17;3260:7;3255:2;3250;3246;3242:11;3238:20;3235:33;3232:2;;;3286:6;3278;3271:22;3232:2;3304:54;3355:2;3350;3343:5;3339:14;3334:2;3330;3326:11;3304:54;:::i;:::-;-1:-1:-1;3377:5:1;2733:655;-1:-1:-1;;;;2733:655:1:o;3393:190::-;3452:6;3505:2;3493:9;3484:7;3480:23;3476:32;3473:2;;;3526:6;3518;3511:22;3473:2;-1:-1:-1;3554:23:1;;3463:120;-1:-1:-1;3463:120:1:o;3588:194::-;3658:6;3711:2;3699:9;3690:7;3686:23;3682:32;3679:2;;;3732:6;3724;3717:22;3679:2;-1:-1:-1;3760:16:1;;3669:113;-1:-1:-1;3669:113:1:o;3787:255::-;3866:6;3874;3927:2;3915:9;3906:7;3902:23;3898:32;3895:2;;;3948:6;3940;3933:22;3895:2;-1:-1:-1;;3976:16:1;;4032:2;4017:18;;;4011:25;3976:16;;4011:25;;-1:-1:-1;3885:157:1:o;4047:316::-;4135:6;4143;4151;4204:2;4192:9;4183:7;4179:23;4175:32;4172:2;;;4225:6;4217;4210:22;4172:2;4259:9;4253:16;4243:26;;4309:2;4298:9;4294:18;4288:25;4278:35;;4353:2;4342:9;4338:18;4332:25;4322:35;;4162:201;;;;;:::o;4368:274::-;4497:3;4535:6;4529:13;4551:53;4597:6;4592:3;4585:4;4577:6;4573:17;4551:53;:::i;:::-;4620:16;;;;;4505:137;-1:-1:-1;;4505:137:1:o;5825:688::-;-1:-1:-1;;;;;6212:15:1;;;6194:34;;6264:15;;;6259:2;6244:18;;6237:43;6311:2;6296:18;;6289:34;;;;6354:2;6339:18;;6332:34;;;;6397:3;6382:19;;6375:35;6447:15;;;6174:3;6426:19;;6419:44;6494:3;6479:19;;6472:35;;;;6143:3;6128:19;;6110:403::o;7562:383::-;7711:2;7700:9;7693:21;7674:4;7743:6;7737:13;7786:6;7781:2;7770:9;7766:18;7759:34;7802:66;7861:6;7856:2;7845:9;7841:18;7836:2;7828:6;7824:15;7802:66;:::i;:::-;7929:2;7908:15;-1:-1:-1;;7904:29:1;7889:45;;;;7936:2;7885:54;;7683:262;-1:-1:-1;;7683:262:1:o;8764:410::-;8966:2;8948:21;;;9005:2;8985:18;;;8978:30;9044:34;9039:2;9024:18;;9017:62;-1:-1:-1;;;9110:2:1;9095:18;;9088:44;9164:3;9149:19;;8938:236::o;10914:983::-;11176:4;11224:3;11213:9;11209:19;11255:6;11244:9;11237:25;11281:2;11319:6;11314:2;11303:9;11299:18;11292:34;11362:3;11357:2;11346:9;11342:18;11335:31;11386:6;11421;11415:13;11452:6;11444;11437:22;11490:3;11479:9;11475:19;11468:26;;11529:2;11521:6;11517:15;11503:29;;11550:4;11563:195;11577:6;11574:1;11571:13;11563:195;;;11642:13;;-1:-1:-1;;;;;11638:39:1;11626:52;;11733:15;;;;11698:12;;;;11674:1;11592:9;11563:195;;;-1:-1:-1;;;;;;;11814:32:1;;;;11809:2;11794:18;;11787:60;-1:-1:-1;;;11878:3:1;11863:19;11856:35;11775:3;11185:712;-1:-1:-1;;;11185:712:1:o;11902:275::-;11973:2;11967:9;12038:2;12019:13;;-1:-1:-1;;12015:27:1;12003:40;;12073:18;12058:34;;12094:22;;;12055:62;12052:2;;;12120:18;;:::i;:::-;12156:2;12149:22;11947:230;;-1:-1:-1;11947:230:1:o;12182:128::-;12222:3;12253:1;12249:6;12246:1;12243:13;12240:2;;;12259:18;;:::i;:::-;-1:-1:-1;12295:9:1;;12230:80::o;12315:217::-;12355:1;12381;12371:2;;-1:-1:-1;;;12406:31:1;;12460:4;12457:1;12450:15;12488:4;12413:1;12478:15;12371:2;-1:-1:-1;12517:9:1;;12361:171::o;12537:168::-;12577:7;12643:1;12639;12635:6;12631:14;12628:1;12625:21;12620:1;12613:9;12606:17;12602:45;12599:2;;;12650:18;;:::i;:::-;-1:-1:-1;12690:9:1;;12589:116::o;12710:125::-;12750:4;12778:1;12775;12772:8;12769:2;;;12783:18;;:::i;:::-;-1:-1:-1;12820:9:1;;12759:76::o;12840:258::-;12912:1;12922:113;12936:6;12933:1;12930:13;12922:113;;;13012:11;;;13006:18;12993:11;;;12986:39;12958:2;12951:10;12922:113;;;13053:6;13050:1;13047:13;13044:2;;;-1:-1:-1;;13088:1:1;13070:16;;13063:27;12893:205::o;13103:127::-;13164:10;13159:3;13155:20;13152:1;13145:31;13195:4;13192:1;13185:15;13219:4;13216:1;13209:15;13235:127;13296:10;13291:3;13287:20;13284:1;13277:31;13327:4;13324:1;13317:15;13351:4;13348:1;13341:15;13367:131;-1:-1:-1;;;;;13442:31:1;;13432:42;;13422:2;;13488:1;13485;13478:12
Swarm Source
ipfs://9d9b50c003bacfb21399763931a0ff3246df88f78eeceb3d9421bda155cf22c2
Loading...
Loading
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.