POL Price: $0.381605 (+0.43%)
Gas: 36 GWei
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Token Holdings

Sponsored

Transaction Hash
Method
Block
From
To
Create Staked LP...304709352022-07-08 5:10:45821 days ago1657257045IN
Impermax: Quickswap Staked LP Factory
0 POL0.1021228530.00000002
Create Staked LP...304512112022-07-07 17:22:38822 days ago1657214558IN
Impermax: Quickswap Staked LP Factory
0 POL0.1258715336.97650343
Create Staked LP...304512012022-07-07 17:22:18822 days ago1657214538IN
Impermax: Quickswap Staked LP Factory
0 POL0.1298075238.13275695
Create Staked LP...218672152021-11-27 16:42:211044 days ago1638031341IN
Impermax: Quickswap Staked LP Factory
0 POL0.1021228530
Create Staked LP...212171532021-11-10 18:00:481061 days ago1636567248IN
Impermax: Quickswap Staked LP Factory
0 POL0.1021228530
Create Staked LP...212171432021-11-10 18:00:241061 days ago1636567224IN
Impermax: Quickswap Staked LP Factory
0 POL0.1021228530
Create Staked LP...204226422021-10-20 17:20:221082 days ago1634750422IN
Impermax: Quickswap Staked LP Factory
0 POL0.1021228530
Create Staked LP...199304292021-10-07 3:22:591095 days ago1633576979IN
Impermax: Quickswap Staked LP Factory
0 POL0.1021228530
Create Staked LP...199190012021-10-06 20:25:511096 days ago1633551951IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199189822021-10-06 20:25:131096 days ago1633551913IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199189762021-10-06 20:25:011096 days ago1633551901IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199189732021-10-06 20:24:511096 days ago1633551891IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199189662021-10-06 20:24:371096 days ago1633551877IN
Impermax: Quickswap Staked LP Factory
0 POL0.1668006549
Create Staked LP...199189512021-10-06 20:24:071096 days ago1633551847IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199189442021-10-06 20:23:531096 days ago1633551833IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199189382021-10-06 20:23:411096 days ago1633551821IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199189312021-10-06 20:23:271096 days ago1633551807IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199189252021-10-06 20:23:151096 days ago1633551795IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199189202021-10-06 20:23:051096 days ago1633551785IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199189132021-10-06 20:22:511096 days ago1633551771IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199189102021-10-06 20:22:411096 days ago1633551761IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199189032021-10-06 20:22:271096 days ago1633551747IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199188952021-10-06 20:22:111096 days ago1633551731IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199183262021-10-06 20:02:191096 days ago1633550539IN
Impermax: Quickswap Staked LP Factory
0 POL0.204245760
Create Staked LP...199182742021-10-06 19:58:511096 days ago1633550331IN
Impermax: Quickswap Staked LP Factory
0 POL0.3421195100
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
304709352022-07-08 5:10:45821 days ago1657257045
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
304512112022-07-07 17:22:38822 days ago1657214558
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
304512012022-07-07 17:22:18822 days ago1657214538
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
218672152021-11-27 16:42:211044 days ago1638031341
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
212171532021-11-10 18:00:481061 days ago1636567248
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
212171432021-11-10 18:00:241061 days ago1636567224
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
204226422021-10-20 17:20:221082 days ago1634750422
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199304292021-10-07 3:22:591095 days ago1633576979
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199190012021-10-06 20:25:511096 days ago1633551951
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189822021-10-06 20:25:131096 days ago1633551913
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189762021-10-06 20:25:011096 days ago1633551901
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189732021-10-06 20:24:511096 days ago1633551891
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189662021-10-06 20:24:371096 days ago1633551877
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189512021-10-06 20:24:071096 days ago1633551847
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189442021-10-06 20:23:531096 days ago1633551833
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189382021-10-06 20:23:411096 days ago1633551821
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189312021-10-06 20:23:271096 days ago1633551807
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189252021-10-06 20:23:151096 days ago1633551795
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189202021-10-06 20:23:051096 days ago1633551785
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189132021-10-06 20:22:511096 days ago1633551771
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189102021-10-06 20:22:411096 days ago1633551761
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199189032021-10-06 20:22:271096 days ago1633551747
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199188952021-10-06 20:22:111096 days ago1633551731
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199183262021-10-06 20:02:191096 days ago1633550539
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
199182742021-10-06 19:58:511096 days ago1633550331
Impermax: Quickswap Staked LP Factory
 Contract Creation0 POL
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakedLPTokenFactory04

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-10-06
*/

// File: contracts\libraries\SafeMath.sol

pragma solidity =0.5.16;

// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting with custom message on overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, errorMessage);

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on underflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot underflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction underflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on underflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot underflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, errorMessage);

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers.
     * Reverts on division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers.
     * Reverts with custom message on division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: contracts\ImpermaxERC20.sol

pragma solidity =0.5.16;


// This contract is basically UniswapV2ERC20 with small modifications
// src: https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol

contract ImpermaxERC20 {
	using SafeMath for uint;
	
	string public name;
	string public symbol;
	uint8 public decimals = 18;
	uint public totalSupply;
	mapping(address => uint) public balanceOf;
	mapping(address => mapping(address => uint)) public allowance;
	
	bytes32 public DOMAIN_SEPARATOR;
	mapping(address => uint) public nonces;
	
	event Transfer(address indexed from, address indexed to, uint value);
	event Approval(address indexed owner, address indexed spender, uint value);

	constructor() public {}	
	
	function _setName(string memory _name, string memory _symbol) internal {
		name = _name;
		symbol = _symbol;
		uint chainId;
		assembly {
			chainId := chainid
		}
		DOMAIN_SEPARATOR = keccak256(
			abi.encode(
				keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
				keccak256(bytes(_name)),
				keccak256(bytes("1")),
				chainId,
				address(this)
			)
		);
	}

	function _mint(address to, uint value) internal {
		totalSupply = totalSupply.add(value);
		balanceOf[to] = balanceOf[to].add(value);
		emit Transfer(address(0), to, value);
	}

	function _burn(address from, uint value) internal {
		balanceOf[from] = balanceOf[from].sub(value);
		totalSupply = totalSupply.sub(value);
		emit Transfer(from, address(0), value);
	}

	function _approve(address owner, address spender, uint value) private {
		allowance[owner][spender] = value;
		emit Approval(owner, spender, value);
	}

	function _transfer(address from, address to, uint value) internal {
		balanceOf[from] = balanceOf[from].sub(value, "Impermax: TRANSFER_TOO_HIGH");
		balanceOf[to] = balanceOf[to].add(value);
		emit Transfer(from, to, value);
	}

	function approve(address spender, uint value) external returns (bool) {
		_approve(msg.sender, spender, value);
		return true;
	}

	function transfer(address to, uint value) external returns (bool) {
		_transfer(msg.sender, to, value);
		return true;
	}

	function transferFrom(address from, address to, uint value) external returns (bool) {
		if (allowance[from][msg.sender] != uint(-1)) {
			allowance[from][msg.sender] = allowance[from][msg.sender].sub(value, "Impermax: TRANSFER_NOT_ALLOWED");
		}
		_transfer(from, to, value);
		return true;
	}
	
	function _checkSignature(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s, bytes32 typehash) internal {
		require(deadline >= block.timestamp, "Impermax: EXPIRED");
		bytes32 digest = keccak256(
			abi.encodePacked(
				'\x19\x01',
				DOMAIN_SEPARATOR,
				keccak256(abi.encode(typehash, owner, spender, value, nonces[owner]++, deadline))
			)
		);
		address recoveredAddress = ecrecover(digest, v, r, s);
		require(recoveredAddress != address(0) && recoveredAddress == owner, "Impermax: INVALID_SIGNATURE");	
	}

	// keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
	bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
	function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external {
		_checkSignature(owner, spender, value, deadline, v, r, s, PERMIT_TYPEHASH);
		_approve(owner, spender, value);
	}
}

// File: contracts\interfaces\IERC20.sol

pragma solidity >=0.5.0;

interface IERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
}

// File: contracts\interfaces\IPoolToken.sol

pragma solidity >=0.5.0;

interface IPoolToken {

	/*** Impermax ERC20 ***/
	
	event Transfer(address indexed from, address indexed to, uint value);
	event Approval(address indexed owner, address indexed spender, uint value);
	
	function name() external pure returns (string memory);
	function symbol() external pure returns (string memory);
	function decimals() external pure returns (uint8);
	function totalSupply() external view returns (uint);
	function balanceOf(address owner) external view returns (uint);
	function allowance(address owner, address spender) external view returns (uint);
	function approve(address spender, uint value) external returns (bool);
	function transfer(address to, uint value) external returns (bool);
	function transferFrom(address from, address to, uint value) external returns (bool);
	
	function DOMAIN_SEPARATOR() external view returns (bytes32);
	function PERMIT_TYPEHASH() external pure returns (bytes32);
	function nonces(address owner) external view returns (uint);
	function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
	
	/*** Pool Token ***/
	
	event Mint(address indexed sender, address indexed minter, uint mintAmount, uint mintTokens);
	event Redeem(address indexed sender, address indexed redeemer, uint redeemAmount, uint redeemTokens);
	event Sync(uint totalBalance);
	
	function underlying() external view returns (address);
	function factory() external view returns (address);
	function totalBalance() external view returns (uint);
	function MINIMUM_LIQUIDITY() external pure returns (uint);

	function exchangeRate() external returns (uint);
	function mint(address minter) external returns (uint mintTokens);
	function redeem(address redeemer) external returns (uint redeemAmount);
	function skim(address to) external;
	function sync() external;
	
	function _setFactory() external;
}

// File: contracts\PoolToken.sol

pragma solidity =0.5.16;





contract PoolToken is IPoolToken, ImpermaxERC20 {
   	uint internal constant initialExchangeRate = 1e18;
	address public underlying;
	address public factory;
	uint public totalBalance;
	uint public constant MINIMUM_LIQUIDITY = 1000;
	
	event Mint(address indexed sender, address indexed minter, uint mintAmount, uint mintTokens);
	event Redeem(address indexed sender, address indexed redeemer, uint redeemAmount, uint redeemTokens);
	event Sync(uint totalBalance);
	
	/*** Initialize ***/
	
	// called once by the factory
	function _setFactory() external {
		require(factory == address(0), "Impermax: FACTORY_ALREADY_SET");
		factory = msg.sender;
	}
	
	/*** PoolToken ***/
	
	function _update() internal {
		totalBalance = IERC20(underlying).balanceOf(address(this));
		emit Sync(totalBalance);
	}

	function exchangeRate() public returns (uint) 
	{
		uint _totalSupply = totalSupply; // gas savings
		uint _totalBalance = totalBalance; // gas savings
		if (_totalSupply == 0 || _totalBalance == 0) return initialExchangeRate;
		return _totalBalance.mul(1e18).div(_totalSupply);
	}
	
	// this low-level function should be called from another contract
	function mint(address minter) external nonReentrant update returns (uint mintTokens) {
		uint balance = IERC20(underlying).balanceOf(address(this));
		uint mintAmount = balance.sub(totalBalance);
		mintTokens = mintAmount.mul(1e18).div(exchangeRate());

		if(totalSupply == 0) {
			// permanently lock the first MINIMUM_LIQUIDITY tokens
			mintTokens = mintTokens.sub(MINIMUM_LIQUIDITY);
			_mint(address(0), MINIMUM_LIQUIDITY);
		}
		require(mintTokens > 0, "Impermax: MINT_AMOUNT_ZERO");
		_mint(minter, mintTokens);
		emit Mint(msg.sender, minter, mintAmount, mintTokens);
	}

	// this low-level function should be called from another contract
	function redeem(address redeemer) external nonReentrant update returns (uint redeemAmount) {
		uint redeemTokens = balanceOf[address(this)];
		redeemAmount = redeemTokens.mul(exchangeRate()).div(1e18);

		require(redeemAmount > 0, "Impermax: REDEEM_AMOUNT_ZERO");
		require(redeemAmount <= totalBalance, "Impermax: INSUFFICIENT_CASH");
		_burn(address(this), redeemTokens);
		_safeTransfer(redeemer, redeemAmount);
		emit Redeem(msg.sender, redeemer, redeemAmount, redeemTokens);		
	}

	// force real balance to match totalBalance
	function skim(address to) external nonReentrant {
		_safeTransfer(to, IERC20(underlying).balanceOf(address(this)).sub(totalBalance));
	}

	// force totalBalance to match real balance
	function sync() external nonReentrant update {}
	
	/*** Utilities ***/
	
	// same safe transfer function used by UniSwapV2 (with fixed underlying)
	bytes4 private constant SELECTOR = bytes4(keccak256(bytes("transfer(address,uint256)")));
	function _safeTransfer(address to, uint amount) internal {
		(bool success, bytes memory data) = underlying.call(abi.encodeWithSelector(SELECTOR, to, amount));
		require(success && (data.length == 0 || abi.decode(data, (bool))), "Impermax: TRANSFER_FAILED");
	}
	
	// prevents a contract from calling itself, directly or indirectly.
	bool internal _notEntered = true;
	modifier nonReentrant() {
		require(_notEntered, "Impermax: REENTERED");
		_notEntered = false;
		_;
		_notEntered = true;
	}
	
	// update totalBalance with current balance
	modifier update() {
		_;
		_update();
	}
}

// File: contracts\interfaces\IStakingRewards.sol

pragma solidity >=0.5.0;

interface IStakingRewards {
    function rewardsToken() external view returns (address);
    function stakingToken() external view returns (address);
    function balanceOf(address account) external view returns (uint256);
    function earned(address account) external view returns (uint256);

    function stake(uint256 amount) external;
    function withdraw(uint256 amount) external;
    function getReward() external;
}

// File: contracts\interfaces\IUniswapV2Router01.sol

pragma solidity >=0.5.0;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

// File: contracts\interfaces\IUniswapV2Pair.sol

pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
	
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);

    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
}

// File: contracts\libraries\SafeToken.sol

pragma solidity 0.5.16;

interface ERC20Interface {
    function balanceOf(address user) external view returns (uint256);
}

library SafeToken {
    function myBalance(address token) internal view returns (uint256) {
        return ERC20Interface(token).balanceOf(address(this));
    }

    function balanceOf(address token, address user) internal view returns (uint256) {
        return ERC20Interface(token).balanceOf(user);
    }

    function safeApprove(address token, address to, uint256 value) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "!safeApprove");
    }

    function safeTransfer(address token, address to, uint256 value) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "!safeTransfer");
    }

    function safeTransferFrom(address token, address from, address to, uint256 value) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "!safeTransferFrom");
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call.value(value)(new bytes(0));
        require(success, "!safeTransferETH");
    }
}

// File: contracts\libraries\Math.sol

pragma solidity =0.5.16;

// a library for performing various math operations
// forked from: https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/libraries/Math.sol

library Math {
    function min(uint x, uint y) internal pure returns (uint z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint y) internal pure returns (uint z) {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

// File: contracts\StakedLPToken04.sol

pragma solidity =0.5.16;








interface IDragonLair {
	function leave(uint256 _dQuickAmount) external;
}

contract StakedLPToken04 is IUniswapV2Pair, PoolToken {
    using SafeToken for address;
	
	bool public constant isStakedLPToken = true;
	string public constant stakedLPTokenType = "04";
	
	address public stakingRewards;
	address public router;
	address public WETH;
	address public token0;
	address public token1;
	uint256 public constant REINVEST_BOUNTY = 0.02e18;
	
	address public constant rewardsToken = 0xf28164A485B0B2C90639E47b0f377b4a438a16B1;
	address public constant QUICK = 0x831753DD7087CaC61aB5644b308642cc1c33Dc13;

	event Reinvest(address indexed caller, uint256 reward, uint256 bounty);
	
	function _initialize(
		address _stakingRewards,
		address _underlying,
		address _token0,
		address _token1,
		address _router,
		address _WETH
	) external {
		require(factory == address(0), "StakedLPToken: FACTORY_ALREADY_SET"); // sufficient check
		factory = msg.sender;
		_setName("Staked Uniswap V2", "STKD-UNI-V2");
		stakingRewards = _stakingRewards;
		underlying = _underlying;
		token0 = _token0;
		token1 = _token1;
		router = _router;
		WETH = _WETH;
		rewardsToken.safeApprove(address(_router), uint256(-1));
		_WETH.safeApprove(address(_router), uint256(-1));
		_underlying.safeApprove(address(_stakingRewards), uint256(-1));
	}
	
	/*** PoolToken Overrides ***/
	
	function _update() internal {
		totalBalance = IStakingRewards(stakingRewards).balanceOf(address(this));
		emit Sync(totalBalance);
	}
	
	// this low-level function should be called from another contract
	function mint(address minter) external nonReentrant update returns (uint mintTokens) {
		uint mintAmount = underlying.myBalance();
		IStakingRewards(stakingRewards).stake(mintAmount);
		mintTokens = mintAmount.mul(1e18).div(exchangeRate());

		if(totalSupply == 0) {
			// permanently lock the first MINIMUM_LIQUIDITY tokens
			mintTokens = mintTokens.sub(MINIMUM_LIQUIDITY);
			_mint(address(0), MINIMUM_LIQUIDITY);
		}
		require(mintTokens > 0, "StakedLPToken: MINT_AMOUNT_ZERO");
		_mint(minter, mintTokens);
		emit Mint(msg.sender, minter, mintAmount, mintTokens);
	}

	// this low-level function should be called from another contract
	function redeem(address redeemer) external nonReentrant update returns (uint redeemAmount) {
		uint redeemTokens = balanceOf[address(this)];
		redeemAmount = redeemTokens.mul(exchangeRate()).div(1e18);

		require(redeemAmount > 0, "StakedLPToken: REDEEM_AMOUNT_ZERO");
		require(redeemAmount <= totalBalance, "StakedLPToken: INSUFFICIENT_CASH");
		_burn(address(this), redeemTokens);
		IStakingRewards(stakingRewards).withdraw(redeemAmount);
		_safeTransfer(redeemer, redeemAmount);
		emit Redeem(msg.sender, redeemer, redeemAmount, redeemTokens);		
	}
	
	/*** Reinvest ***/
	
	function _optimalDepositA(uint256 amountA, uint256 reserveA) internal pure returns (uint256) {
		uint256 a = uint256(1997).mul(reserveA);
		uint256 b = amountA.mul(1000).mul(reserveA).mul(3988);
		uint256 c = Math.sqrt(a.mul(a).add(b));
		return c.sub(a).div(1994);
	}
	
	function approveRouter(address token, uint256 amount) internal {
		if (IERC20(token).allowance(address(this), router) >= amount) return;
		token.safeApprove(address(router), uint256(-1));
	}
	
	function swapExactTokensForTokens(address tokenIn, address tokenOut, uint256 amount) internal {
		address[] memory path = new address[](2);
		path[0] = address(tokenIn);
		path[1] = address(tokenOut);
		approveRouter(tokenIn, amount);
		IUniswapV2Router01(router).swapExactTokensForTokens(amount, 0, path, address(this), now);
	}
	
	function addLiquidity(address tokenA, address tokenB, uint256 amountA, uint256 amountB) internal returns (uint256 liquidity) {
		approveRouter(tokenA, amountA);
		approveRouter(tokenB, amountB);
		(,,liquidity) = IUniswapV2Router01(router).addLiquidity(tokenA, tokenB, amountA, amountB, 0, 0, address(this), now);
	}
	
	function _getReward() internal returns (uint256) {
		IStakingRewards(stakingRewards).getReward();
		return rewardsToken.myBalance();
	}
	
	function getReward() external nonReentrant returns (uint256) {
		require(msg.sender == tx.origin);
		return _getReward();
	}
	
	function reinvest() external nonReentrant update {
		require(msg.sender == tx.origin);
		// 1. Withdraw all the rewards.		
		uint256 reward = _getReward();
		if (reward == 0) return;
		// 2. Send the reward bounty to the caller.
		uint256 bounty = reward.mul(REINVEST_BOUNTY) / 1e18;
		rewardsToken.safeTransfer(msg.sender, bounty);
		// 3.0 Unwrap QUICK
		IDragonLair(rewardsToken).leave(rewardsToken.myBalance());
		// 3. Convert all the remaining rewards to token0 or token1.
		address tokenA;
		address tokenB;
		if (token0 == QUICK || token1 == QUICK) {
			(tokenA, tokenB) = token0 == QUICK ? (token0, token1) : (token1, token0);
		}
		else {
			swapExactTokensForTokens(QUICK, WETH, QUICK.myBalance());
			if (token0 == WETH || token1 == WETH) { 
				(tokenA, tokenB) = token0 == WETH ? (token0, token1) : (token1, token0);
			}
			else {
				swapExactTokensForTokens(WETH, token0, WETH.myBalance());
				(tokenA, tokenB) = (token0, token1);
			}
		}
		// 4. Convert tokenA to LP Token underlyings.
		uint256 totalAmountA = tokenA.myBalance();
		assert(totalAmountA > 0);
		(uint256 r0, uint256 r1,) = IUniswapV2Pair(underlying).getReserves();
		uint256 reserveA = tokenA == token0 ? r0 : r1;
		uint256 swapAmount = _optimalDepositA(totalAmountA, reserveA);
		swapExactTokensForTokens(tokenA, tokenB, swapAmount);
		uint256 liquidity = addLiquidity(tokenA, tokenB, totalAmountA.sub(swapAmount), tokenB.myBalance());
		// 5. Stake the LP Tokens. 
		IStakingRewards(stakingRewards).stake(liquidity);
		emit Reinvest(msg.sender, reward, bounty);
	}
		
	/*** Mirrored From uniswapV2Pair ***/

	function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) {
		(reserve0, reserve1, blockTimestampLast) = IUniswapV2Pair(underlying).getReserves();
		// if no token has been minted yet mirror uniswap getReserves
		if (totalSupply == 0) return (reserve0, reserve1, blockTimestampLast);
		// else, return the underlying reserves of this contract
		uint256 _totalBalance = totalBalance;
		uint256 _totalSupply = IUniswapV2Pair(underlying).totalSupply();
		reserve0 = safe112(_totalBalance.mul(reserve0).div(_totalSupply));
		reserve1 = safe112(_totalBalance.mul(reserve1).div(_totalSupply));
		require(reserve0 > 100 && reserve1 > 100, "StakedLPToken: INSUFFICIENT_RESERVES");
	}
	function price0CumulativeLast() external view returns (uint256) {
		return IUniswapV2Pair(underlying).price0CumulativeLast();
	}
	function price1CumulativeLast() external view returns (uint256) {
		return IUniswapV2Pair(underlying).price1CumulativeLast();
	}

	/*** Utilities ***/
	
    function safe112(uint n) internal pure returns (uint112) {
        require(n < 2**112, "StakedLPToken: SAFE112");
        return uint112(n);
    }
}

// File: contracts\StakedLPTokenFactory04.sol

pragma solidity =0.5.16;




contract StakedLPTokenFactory04 {
	address public router;
	address public WETH;

	mapping(address => address) public getStakedLPToken;
	address[] public allStakedLPToken;

	event StakedLPTokenCreated(address indexed token0, address indexed token1, address indexed stakingRewards, address stakedLPToken, uint);

	constructor(address _router, address _WETH) public {
		router = _router;
		WETH = _WETH;
	}

	function allStakedLPTokenLength() external view returns (uint) {
		return allStakedLPToken.length;
	}

	function createStakedLPToken(address stakingRewards) external returns (address stakedLPToken) {
		require(getStakedLPToken[stakingRewards] == address(0), "StakedLPTokenFactory: STAKING_REWARDS_EXISTS");
		address pair = IStakingRewards(stakingRewards).stakingToken();
		address token0 = IUniswapV2Pair(pair).token0();
		address token1 = IUniswapV2Pair(pair).token1();
		bytes memory bytecode = type(StakedLPToken04).creationCode;
		assembly {
			stakedLPToken := create2(0, add(bytecode, 32), mload(bytecode), stakingRewards)
		}
		StakedLPToken04(stakedLPToken)._initialize(stakingRewards, pair, token0, token1, router, WETH);
		getStakedLPToken[stakingRewards] = stakedLPToken;
		allStakedLPToken.push(stakedLPToken);
		emit StakedLPTokenCreated(token0, token1, stakingRewards, stakedLPToken, allStakedLPToken.length);
	}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_WETH","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":true,"internalType":"address","name":"stakingRewards","type":"address"},{"indexed":false,"internalType":"address","name":"stakedLPToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"StakedLPTokenCreated","type":"event"},{"constant":true,"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allStakedLPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"allStakedLPTokenLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"stakingRewards","type":"address"}],"name":"createStakedLPToken","outputs":[{"internalType":"address","name":"stakedLPToken","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"getStakedLPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5060405161406b38038061406b8339818101604052604081101561003357600080fd5b508051602090910151600080546001600160a01b039384166001600160a01b03199182161790915560018054939092169216919091179055613ff18061007a6000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063940e0a6e11610050578063940e0a6e14610123578063ad5c46481461013d578063f887ea401461014557610072565b80630ea2534b14610077578063492a1b82146100d35780638ad8e36814610106575b600080fd5b6100aa6004803603602081101561008d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661014d565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100aa600480360360208110156100e957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610175565b6100aa6004803603602081101561011c57600080fd5b5035610563565b61012b610597565b60408051918252519081900360200190f35b6100aa61059d565b6100aa6105b9565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff818116600090815260026020526040812054909116156101f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180613f91602c913960400191505060405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff166372f702f36040518163ffffffff1660e01b815260040160206040518083038186803b15801561023d57600080fd5b505afa158015610251573d6000803e3d6000fd5b505050506040513d602081101561026757600080fd5b5051604080517f0dfe1681000000000000000000000000000000000000000000000000000000008152905191925060009173ffffffffffffffffffffffffffffffffffffffff841691630dfe1681916004808301926020929190829003018186803b1580156102d557600080fd5b505afa1580156102e9573d6000803e3d6000fd5b505050506040513d60208110156102ff57600080fd5b5051604080517fd21220a7000000000000000000000000000000000000000000000000000000008152905191925060009173ffffffffffffffffffffffffffffffffffffffff85169163d21220a7916004808301926020929190829003018186803b15801561036d57600080fd5b505afa158015610381573d6000803e3d6000fd5b505050506040513d602081101561039757600080fd5b50516040519091506060906103ae602082016105d5565b6020820181038252601f19601f820116604052509050858151602083016000f560008054600154604080517ffb71e1c800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8c811660048301528a8116602483015289811660448301528881166064830152938416608482015291831660a4830152519398509088169263fb71e1c89260c48084019391929182900301818387803b15801561046d57600080fd5b505af1158015610481573d6000803e3d6000fd5b50505073ffffffffffffffffffffffffffffffffffffffff80881660008181526002602090815260408083208054868d167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216811790925560038054600181018255958190527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90950180549091168217905592548151938452918301919091528051929450868416938816927facd0b0ab7c564649d213cd3222069beca773979de0575467c8a0e5c558639f739281900390910190a450505050919050565b6003818154811061057057fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60035490565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6139ae806105e38339019056fe60806040526002805460ff19908116601217909155600b8054909116600117905561397f8061002f6000396000f3fe608060405234801561001057600080fd5b50600436106102ad5760003560e01c80636f307dc31161017b578063c45a0155116100d8578063e8bea1671161008c578063fb71e1c811610071578063fb71e1c8146106e2578063fdb5a03e1461073d578063fff6cae914610745576102ad565b8063e8bea167146106d2578063f887ea40146106da576102ad565b8063d21220a7116100bd578063d21220a714610631578063d505accf14610639578063dd62ed3e14610697576102ad565b8063c45a015514610621578063d1af0c7d14610629576102ad565b8063a9059cbb1161012f578063ad7a672f11610114578063ad7a672f146105de578063ba9a7a56146105e6578063bc25cf77146105ee576102ad565b8063a9059cbb1461059d578063ad5c4648146105d6576102ad565b80637ecebe00116101605780637ecebe001461052f57806395a2251f1461056257806395d89b4114610595576102ad565b80636f307dc3146104f457806370a08231146104fc576102ad565b8063313ce567116102295780635909c0d5116101dd57806364b87a70116101c257806364b87a70146104b15780636a627842146104b95780636c2a3bc5146104ec576102ad565b80635909c0d5146104a15780635a3d5493146104a9576102ad565b80633ba0b9a91161020e5780633ba0b9a9146104875780633d18b9121461048f5780634a5d316c14610497576102ad565b8063313ce567146104615780633644e5151461047f576102ad565b80630dfe168111610280578063188672a011610265578063188672a01461040e57806323b872dd1461041657806330adf81f14610459576102ad565b80630dfe1681146103c357806318160ddd146103f4576102ad565b806306fdde03146102b25780630902f1ac1461032f578063095ea7b31461036e5780630a641063146103bb575b600080fd5b6102ba61074d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102f45781810151838201526020016102dc565b50505050905090810190601f1680156103215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103376107f9565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b6103a76004803603604081101561038457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610a3f565b604080519115158252519081900360200190f35b6103a7610a56565b6103cb610a5b565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103fc610a77565b60408051918252519081900360200190f35b6103cb610a7d565b6103a76004803603606081101561042c57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610a95565b6103fc610ba9565b610469610bcd565b6040805160ff9092168252519081900360200190f35b6103fc610bd6565b6103fc610bdc565b6103fc610c2c565b61049f610d0c565b005b6103fc610dbd565b6103fc610e59565b6103cb610ec4565b6103fc600480360360208110156104cf57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610ee5565b6103fc61118d565b6103cb611198565b6103fc6004803603602081101561051257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166111b4565b6103fc6004803603602081101561054557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166111c6565b6103fc6004803603602081101561057857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166111d8565b6102ba611473565b6103a7600480360360408110156105b357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356114eb565b6103cb6114f8565b6103fc611514565b6103fc61151a565b61049f6004803603602081101561060457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611520565b6103cb6116a3565b6103cb6116bf565b6103cb6116d7565b61049f600480360360e081101561064f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356116f3565b6103fc600480360360408110156106ad57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611737565b6102ba611754565b6103cb61178d565b61049f600480360360c08110156106f857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160408201358116916060810135821691608082013581169160a00135166117a9565b61049f611a37565b61049f612042565b6000805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156107f15780601f106107c6576101008083540402835291602001916107f1565b820191906000526020600020905b8154815290600101906020018083116107d457829003601f168201915b505050505081565b6000806000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561086657600080fd5b505afa15801561087a573d6000803e3d6000fd5b505050506040513d606081101561089057600080fd5b50805160208201516040909201516003549195509193509091506108b357610a3a565b600a54600854604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff16916318160ddd916004808301926020929190829003018186803b15801561092157600080fd5b505afa158015610935573d6000803e3d6000fd5b505050506040513d602081101561094b57600080fd5b5051905061098761098282610976856dffffffffffffffffffffffffffff8a1663ffffffff6120e316565b9063ffffffff61215d16565b61219f565b94506109b061098282610976856dffffffffffffffffffffffffffff891663ffffffff6120e316565b93506064856dffffffffffffffffffffffffffff161180156109e257506064846dffffffffffffffffffffffffffff16115b610a37576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806138716024913960400191505060405180910390fd5b50505b909192565b6000610a4c338484612226565b5060015b92915050565b600181565b600e5473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b73831753dd7087cac61ab5644b308642cc1c33dc1381565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610b9457604080518082018252601e81527f496d7065726d61783a205452414e534645525f4e4f545f414c4c4f574544000060208083019190915273ffffffffffffffffffffffffffffffffffffffff87166000908152600582528381203382529091529190912054610b6291849063ffffffff61229516565b73ffffffffffffffffffffffffffffffffffffffff851660009081526005602090815260408083203384529091529020555b610b9f848484612346565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60025460ff1681565b60065481565b600354600a5460009190811580610bf1575080155b15610c0857670de0b6b3a764000092505050610c29565b610c248261097683670de0b6b3a764000063ffffffff6120e316565b925050505b90565b600b5460009060ff16610ca057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055333214610cd457600080fd5b610cdc61245f565b9050600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590565b60095473ffffffffffffffffffffffffffffffffffffffff1615610d9157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f496d7065726d61783a20464143544f52595f414c52454144595f534554000000604482015290519081900360640190fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055565b600854604080517f5909c0d5000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691635909c0d5916004808301926020929190829003018186803b158015610e2857600080fd5b505afa158015610e3c573d6000803e3d6000fd5b505050506040513d6020811015610e5257600080fd5b5051905090565b600854604080517f5a3d5493000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691635a3d5493916004808301926020929190829003018186803b158015610e2857600080fd5b600b54610100900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5460009060ff16610f5957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600854600090610fa69073ffffffffffffffffffffffffffffffffffffffff1661251b565b9050600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a694fc3a826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561101d57600080fd5b505af1158015611031573d6000803e3d6000fd5b50505050611058611040610bdc565b61097683670de0b6b3a764000063ffffffff6120e316565b91506003546000141561108657611077826103e863ffffffff6125bd16565b915061108660006103e86125ff565b600082116110f557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5374616b65644c50546f6b656e3a204d494e545f414d4f554e545f5a45524f00604482015290519081900360640190fd5b6110ff83836125ff565b6040805182815260208101849052815173ffffffffffffffffffffffffffffffffffffffff86169233927f2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee929081900390910190a35061115d6126b0565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055919050565b66470de4df82000081565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b60046020526000908152604090205481565b60076020526000908152604090205481565b600b5460009060ff1661124c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055306000908152600460205260409020546112a8670de0b6b3a764000061097661129b610bdc565b849063ffffffff6120e316565b915060008211611303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806138956021913960400191505060405180910390fd5b600a5482111561137457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5374616b65644c50546f6b656e3a20494e53554646494349454e545f43415348604482015290519081900360640190fd5b61137e308261278a565b600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156113f357600080fd5b505af1158015611407573d6000803e3d6000fd5b50505050611415838361284e565b6040805183815260208101839052815173ffffffffffffffffffffffffffffffffffffffff86169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a35061115d6126b0565b60018054604080516020600284861615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156107f15780601f106107c6576101008083540402835291602001916107f1565b6000610a4c338484612346565b600d5473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b6103e881565b600b5460ff1661159157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600a54600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905161167593859361167093919273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b15801561163857600080fd5b505afa15801561164c573d6000803e3d6000fd5b505050506040513d602081101561166257600080fd5b50519063ffffffff6125bd16565b61284e565b50600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60095473ffffffffffffffffffffffffffffffffffffffff1681565b73f28164a485b0b2c90639e47b0f377b4a438a16b181565b600f5473ffffffffffffffffffffffffffffffffffffffff1681565b611723878787878787877f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9612a5a565b61172e878787612226565b50505050505050565b600560209081526000928352604080842090915290825290205481565b6040518060400160405280600281526020017f303400000000000000000000000000000000000000000000000000000000000081525081565b600c5473ffffffffffffffffffffffffffffffffffffffff1681565b60095473ffffffffffffffffffffffffffffffffffffffff1615611818576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806139296022913960400191505060405180910390fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055604080518082018252601181527f5374616b656420556e69737761702056320000000000000000000000000000006020808301919091528251808401909352600b83527f53544b442d554e492d5632000000000000000000000000000000000000000000908301526118b391612cfd565b600b80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff8981169190910291909117909155600880547fffffffffffffffffffffffff000000000000000000000000000000000000000090811688841617909155600e80548216878416179055600f80548216868416179055600c80548216858416179055600d80549091169183169190911790556119a173f28164a485b0b2c90639e47b0f377b4a438a16b1837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612de1565b6119e873ffffffffffffffffffffffffffffffffffffffff8216837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63ffffffff612de116565b611a2f73ffffffffffffffffffffffffffffffffffffffff8616877fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63ffffffff612de116565b505050505050565b600b5460ff16611aa857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055333214611adc57600080fd5b6000611ae661245f565b905080611af3575061200d565b6000670de0b6b3a7640000611b158366470de4df82000063ffffffff6120e316565b81611b1c57fe5b049050611b4473f28164a485b0b2c90639e47b0f377b4a438a16b1338363ffffffff612fbe16565b73f28164a485b0b2c90639e47b0f377b4a438a16b16367dfd4c9611b678261251b565b6040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611b9d57600080fd5b505af1158015611bb1573d6000803e3d6000fd5b5050600e546000925082915073ffffffffffffffffffffffffffffffffffffffff1673831753dd7087cac61ab5644b308642cc1c33dc131480611c1f5750600f5473ffffffffffffffffffffffffffffffffffffffff1673831753dd7087cac61ab5644b308642cc1c33dc13145b15611ca757600e5473ffffffffffffffffffffffffffffffffffffffff1673831753dd7087cac61ab5644b308642cc1c33dc1314611c7c57600f54600e5473ffffffffffffffffffffffffffffffffffffffff9182169116611c9d565b600e54600f5473ffffffffffffffffffffffffffffffffffffffff91821691165b9092509050611dd0565b600d54611ce89073831753dd7087cac61ab5644b308642cc1c33dc139073ffffffffffffffffffffffffffffffffffffffff16611ce38261251b565b613194565b600d54600e5473ffffffffffffffffffffffffffffffffffffffff90811691161480611d315750600d54600f5473ffffffffffffffffffffffffffffffffffffffff9081169116145b15611d8057600d54600e5473ffffffffffffffffffffffffffffffffffffffff908116911614611c7c57600f54600e5473ffffffffffffffffffffffffffffffffffffffff9182169116611c9d565b600d54600e54611dad9173ffffffffffffffffffffffffffffffffffffffff9081169116611ce38261251b565b5050600e54600f5473ffffffffffffffffffffffffffffffffffffffff91821691165b6000611df18373ffffffffffffffffffffffffffffffffffffffff1661251b565b905060008111611dfd57fe5b600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611e6857600080fd5b505afa158015611e7c573d6000803e3d6000fd5b505050506040513d6060811015611e9257600080fd5b508051602090910151600e546dffffffffffffffffffffffffffff92831694509116915060009073ffffffffffffffffffffffffffffffffffffffff878116911614611ede5781611ee0565b825b90506000611eee8583613411565b9050611efb878783613194565b6000611f368888611f12898663ffffffff6125bd16565b611f318b73ffffffffffffffffffffffffffffffffffffffff1661251b565b61349e565b9050600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a694fc3a826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611fad57600080fd5b505af1158015611fc1573d6000803e3d6000fd5b5050604080518d8152602081018d905281513394507fc003f45bc224d116b6d079100d4ab57a5b9633244c47a5a92a176c5b79a85f2893509081900390910190a2505050505050505050505b6120156126b0565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600b5460ff166120b357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556120156126b0565b6000826120f257506000610a50565b828202828482816120ff57fe5b0414612156576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806139086021913960400191505060405180910390fd5b9392505050565b600061215683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613594565b60006e010000000000000000000000000000821061221e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f5374616b65644c50546f6b656e3a205341464531313200000000000000000000604482015290519081900360640190fd5b50805b919050565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260056020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000818484111561233e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156123035781810151838201526020016122eb565b50505050905090810190601f1680156123305780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b604080518082018252601b81527f496d7065726d61783a205452414e534645525f544f4f5f48494748000000000060208083019190915273ffffffffffffffffffffffffffffffffffffffff86166000908152600490915291909120546123b491839063ffffffff61229516565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526004602052604080822093909355908416815220546123f6908263ffffffff61361316565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156124cb57600080fd5b505af11580156124df573d6000803e3d6000fd5b5050505061251673f28164a485b0b2c90639e47b0f377b4a438a16b173ffffffffffffffffffffffffffffffffffffffff1661251b565b905090565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009173ffffffffffffffffffffffffffffffffffffffff8416916370a0823191602480820192602092909190829003018186803b15801561258b57600080fd5b505afa15801561259f573d6000803e3d6000fd5b505050506040513d60208110156125b557600080fd5b505192915050565b600061215683836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250612295565b600354612612908263ffffffff61361316565b60035573ffffffffffffffffffffffffffffffffffffffff821660009081526004602052604090205461264b908263ffffffff61361316565b73ffffffffffffffffffffffffffffffffffffffff831660008181526004602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600b54604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905161010090920473ffffffffffffffffffffffffffffffffffffffff16916370a0823191602480820192602092909190829003018186803b15801561272557600080fd5b505afa158015612739573d6000803e3d6000fd5b505050506040513d602081101561274f57600080fd5b5051600a81905560408051918252517f8a0df8ef054fae2c3d2d19a7b322e864870cc9fd3cb07fb9526309c596244bf49181900360200190a1565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260409020546127c0908263ffffffff6125bd16565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600460205260409020556003546127f9908263ffffffff6125bd16565b60035560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600854604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff86811660248301526044808301879052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009560609594169382918083835b6020831061295457805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612917565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146129b6576040519150601f19603f3d011682016040523d82523d6000602084013e6129bb565b606091505b50915091508180156129e95750805115806129e957508080602001905160208110156129e657600080fd5b50515b612a5457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a205452414e534645525f4641494c454400000000000000604482015290519081900360640190fd5b50505050565b42851015612ac957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496d7065726d61783a2045585049524544000000000000000000000000000000604482015290519081900360640190fd5b60065473ffffffffffffffffffffffffffffffffffffffff808a1660008181526007602090815260408083208054600180820190925582518085018a905280840196909652958e166060860152608085018d905260a085019590955260c08085018c90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff8a166101828501526101a284018990526101c28401889052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015612c0b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590612c8657508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b612cf157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e56414c49445f5349474e41545552450000000000604482015290519081900360640190fd5b50505050505050505050565b8151612d109060009060208501906137d8565b508051612d249060019060208401906137d8565b5060405146908060526138b682396040805191829003605201822086516020978801208383018352600184527f310000000000000000000000000000000000000000000000000000000000000093880193909352815180880191909152808201929092527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606083015260808201939093523060a0808301919091528351808303909101815260c090910190925250805192019190912060065550565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b300000000000000000000000000000000000000000000000000000000178152925182516000946060949389169392918291908083835b60208310612eb757805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612e7a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612f19576040519150601f19603f3d011682016040523d82523d6000602084013e612f1e565b606091505b5091509150818015612f4c575080511580612f4c5750808060200190516020811015612f4957600080fd5b50515b612fb757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f2173616665417070726f76650000000000000000000000000000000000000000604482015290519081900360640190fd5b5050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000178152925182516000946060949389169392918291908083835b6020831061309457805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613057565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146130f6576040519150601f19603f3d011682016040523d82523d6000602084013e6130fb565b606091505b5091509150818015613129575080511580613129575080806020019051602081101561312657600080fd5b50515b612fb757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f21736166655472616e7366657200000000000000000000000000000000000000604482015290519081900360640190fd5b604080516002808252606080830184529260208301908038833901905050905083816000815181106131c257fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050828160018151811061320a57fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061324e8483613687565b600c546040517f38ed1739000000000000000000000000000000000000000000000000000000008152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a4870152875173ffffffffffffffffffffffffffffffffffffffff909716966338ed1739968a968a9594939092909160c40190602080880191028083838b5b838110156132fa5781810151838201526020016132e2565b505050509050019650505050505050600060405180830381600087803b15801561332357600080fd5b505af1158015613337573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052602081101561337e57600080fd5b810190808051604051939291908464010000000082111561339e57600080fd5b9083019060208201858111156133b357600080fd5b82518660208202830111640100000000821117156133d057600080fd5b82525081516020918201928201910280838360005b838110156133fd5781810151838201526020016133e5565b505050509050016040525050505050505050565b6000806134266107cd8463ffffffff6120e316565b90506000613450610f946134448681896103e863ffffffff6120e316565b9063ffffffff6120e316565b9050600061347c6134778361346b868063ffffffff6120e316565b9063ffffffff61361316565b613787565b90506134946107ca610976838663ffffffff6125bd16565b9695505050505050565b60006134aa8584613687565b6134b48483613687565b600c54604080517fe8e3370000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88811660048301528781166024830152604482018790526064820186905260006084830181905260a483018190523060c48401524260e4840152925193169263e8e337009261010480840193606093929083900390910190829087803b15801561355c57600080fd5b505af1158015613570573d6000803e3d6000fd5b505050506040513d606081101561358657600080fd5b506040015195945050505050565b600081836135fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283519092839260449091019190850190808383600083156123035781810151838201526020016122eb565b50600083858161360957fe5b0495945050505050565b60008282018381101561215657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600c54604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff92831660248201529051839285169163dd62ed3e916044808301926020929190829003018186803b15801561370057600080fd5b505afa158015613714573d6000803e3d6000fd5b505050506040513d602081101561372a57600080fd5b50511061373657613783565b600c546137839073ffffffffffffffffffffffffffffffffffffffff84811691167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63ffffffff612de116565b5050565b600060038211156137ca575080600160028204015b818110156137c4578091506002818285816137b357fe5b0401816137bc57fe5b04905061379c565b50612221565b811561222157506001919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061381957805160ff1916838001178555613846565b82800160010185558215613846579182015b8281111561384657825182559160200191906001019061382b565b50613852929150613856565b5090565b610c2991905b80821115613852576000815560010161385c56fe5374616b65644c50546f6b656e3a20494e53554646494349454e545f52455345525645535374616b65644c50546f6b656e3a2052454445454d5f414d4f554e545f5a45524f454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775374616b65644c50546f6b656e3a20464143544f52595f414c52454144595f534554a265627a7a72315820882d5bd1ecbdcefe59960439f0c62069bf03708871ea45e94f1be33230ed68a564736f6c634300051000325374616b65644c50546f6b656e466163746f72793a205354414b494e475f524557415244535f455849535453a265627a7a723158207f75c917e63000169f0711508309537459e20498de4a874b68f60f6524c9c4da64736f6c63430005100032000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063940e0a6e11610050578063940e0a6e14610123578063ad5c46481461013d578063f887ea401461014557610072565b80630ea2534b14610077578063492a1b82146100d35780638ad8e36814610106575b600080fd5b6100aa6004803603602081101561008d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661014d565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100aa600480360360208110156100e957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610175565b6100aa6004803603602081101561011c57600080fd5b5035610563565b61012b610597565b60408051918252519081900360200190f35b6100aa61059d565b6100aa6105b9565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff818116600090815260026020526040812054909116156101f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180613f91602c913960400191505060405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff166372f702f36040518163ffffffff1660e01b815260040160206040518083038186803b15801561023d57600080fd5b505afa158015610251573d6000803e3d6000fd5b505050506040513d602081101561026757600080fd5b5051604080517f0dfe1681000000000000000000000000000000000000000000000000000000008152905191925060009173ffffffffffffffffffffffffffffffffffffffff841691630dfe1681916004808301926020929190829003018186803b1580156102d557600080fd5b505afa1580156102e9573d6000803e3d6000fd5b505050506040513d60208110156102ff57600080fd5b5051604080517fd21220a7000000000000000000000000000000000000000000000000000000008152905191925060009173ffffffffffffffffffffffffffffffffffffffff85169163d21220a7916004808301926020929190829003018186803b15801561036d57600080fd5b505afa158015610381573d6000803e3d6000fd5b505050506040513d602081101561039757600080fd5b50516040519091506060906103ae602082016105d5565b6020820181038252601f19601f820116604052509050858151602083016000f560008054600154604080517ffb71e1c800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8c811660048301528a8116602483015289811660448301528881166064830152938416608482015291831660a4830152519398509088169263fb71e1c89260c48084019391929182900301818387803b15801561046d57600080fd5b505af1158015610481573d6000803e3d6000fd5b50505073ffffffffffffffffffffffffffffffffffffffff80881660008181526002602090815260408083208054868d167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216811790925560038054600181018255958190527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90950180549091168217905592548151938452918301919091528051929450868416938816927facd0b0ab7c564649d213cd3222069beca773979de0575467c8a0e5c558639f739281900390910190a450505050919050565b6003818154811061057057fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60035490565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6139ae806105e38339019056fe60806040526002805460ff19908116601217909155600b8054909116600117905561397f8061002f6000396000f3fe608060405234801561001057600080fd5b50600436106102ad5760003560e01c80636f307dc31161017b578063c45a0155116100d8578063e8bea1671161008c578063fb71e1c811610071578063fb71e1c8146106e2578063fdb5a03e1461073d578063fff6cae914610745576102ad565b8063e8bea167146106d2578063f887ea40146106da576102ad565b8063d21220a7116100bd578063d21220a714610631578063d505accf14610639578063dd62ed3e14610697576102ad565b8063c45a015514610621578063d1af0c7d14610629576102ad565b8063a9059cbb1161012f578063ad7a672f11610114578063ad7a672f146105de578063ba9a7a56146105e6578063bc25cf77146105ee576102ad565b8063a9059cbb1461059d578063ad5c4648146105d6576102ad565b80637ecebe00116101605780637ecebe001461052f57806395a2251f1461056257806395d89b4114610595576102ad565b80636f307dc3146104f457806370a08231146104fc576102ad565b8063313ce567116102295780635909c0d5116101dd57806364b87a70116101c257806364b87a70146104b15780636a627842146104b95780636c2a3bc5146104ec576102ad565b80635909c0d5146104a15780635a3d5493146104a9576102ad565b80633ba0b9a91161020e5780633ba0b9a9146104875780633d18b9121461048f5780634a5d316c14610497576102ad565b8063313ce567146104615780633644e5151461047f576102ad565b80630dfe168111610280578063188672a011610265578063188672a01461040e57806323b872dd1461041657806330adf81f14610459576102ad565b80630dfe1681146103c357806318160ddd146103f4576102ad565b806306fdde03146102b25780630902f1ac1461032f578063095ea7b31461036e5780630a641063146103bb575b600080fd5b6102ba61074d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102f45781810151838201526020016102dc565b50505050905090810190601f1680156103215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103376107f9565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b6103a76004803603604081101561038457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610a3f565b604080519115158252519081900360200190f35b6103a7610a56565b6103cb610a5b565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103fc610a77565b60408051918252519081900360200190f35b6103cb610a7d565b6103a76004803603606081101561042c57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610a95565b6103fc610ba9565b610469610bcd565b6040805160ff9092168252519081900360200190f35b6103fc610bd6565b6103fc610bdc565b6103fc610c2c565b61049f610d0c565b005b6103fc610dbd565b6103fc610e59565b6103cb610ec4565b6103fc600480360360208110156104cf57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610ee5565b6103fc61118d565b6103cb611198565b6103fc6004803603602081101561051257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166111b4565b6103fc6004803603602081101561054557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166111c6565b6103fc6004803603602081101561057857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166111d8565b6102ba611473565b6103a7600480360360408110156105b357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356114eb565b6103cb6114f8565b6103fc611514565b6103fc61151a565b61049f6004803603602081101561060457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611520565b6103cb6116a3565b6103cb6116bf565b6103cb6116d7565b61049f600480360360e081101561064f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356116f3565b6103fc600480360360408110156106ad57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611737565b6102ba611754565b6103cb61178d565b61049f600480360360c08110156106f857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160408201358116916060810135821691608082013581169160a00135166117a9565b61049f611a37565b61049f612042565b6000805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156107f15780601f106107c6576101008083540402835291602001916107f1565b820191906000526020600020905b8154815290600101906020018083116107d457829003601f168201915b505050505081565b6000806000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561086657600080fd5b505afa15801561087a573d6000803e3d6000fd5b505050506040513d606081101561089057600080fd5b50805160208201516040909201516003549195509193509091506108b357610a3a565b600a54600854604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff16916318160ddd916004808301926020929190829003018186803b15801561092157600080fd5b505afa158015610935573d6000803e3d6000fd5b505050506040513d602081101561094b57600080fd5b5051905061098761098282610976856dffffffffffffffffffffffffffff8a1663ffffffff6120e316565b9063ffffffff61215d16565b61219f565b94506109b061098282610976856dffffffffffffffffffffffffffff891663ffffffff6120e316565b93506064856dffffffffffffffffffffffffffff161180156109e257506064846dffffffffffffffffffffffffffff16115b610a37576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806138716024913960400191505060405180910390fd5b50505b909192565b6000610a4c338484612226565b5060015b92915050565b600181565b600e5473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b73831753dd7087cac61ab5644b308642cc1c33dc1381565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610b9457604080518082018252601e81527f496d7065726d61783a205452414e534645525f4e4f545f414c4c4f574544000060208083019190915273ffffffffffffffffffffffffffffffffffffffff87166000908152600582528381203382529091529190912054610b6291849063ffffffff61229516565b73ffffffffffffffffffffffffffffffffffffffff851660009081526005602090815260408083203384529091529020555b610b9f848484612346565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60025460ff1681565b60065481565b600354600a5460009190811580610bf1575080155b15610c0857670de0b6b3a764000092505050610c29565b610c248261097683670de0b6b3a764000063ffffffff6120e316565b925050505b90565b600b5460009060ff16610ca057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055333214610cd457600080fd5b610cdc61245f565b9050600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590565b60095473ffffffffffffffffffffffffffffffffffffffff1615610d9157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f496d7065726d61783a20464143544f52595f414c52454144595f534554000000604482015290519081900360640190fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055565b600854604080517f5909c0d5000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691635909c0d5916004808301926020929190829003018186803b158015610e2857600080fd5b505afa158015610e3c573d6000803e3d6000fd5b505050506040513d6020811015610e5257600080fd5b5051905090565b600854604080517f5a3d5493000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691635a3d5493916004808301926020929190829003018186803b158015610e2857600080fd5b600b54610100900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5460009060ff16610f5957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600854600090610fa69073ffffffffffffffffffffffffffffffffffffffff1661251b565b9050600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a694fc3a826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561101d57600080fd5b505af1158015611031573d6000803e3d6000fd5b50505050611058611040610bdc565b61097683670de0b6b3a764000063ffffffff6120e316565b91506003546000141561108657611077826103e863ffffffff6125bd16565b915061108660006103e86125ff565b600082116110f557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5374616b65644c50546f6b656e3a204d494e545f414d4f554e545f5a45524f00604482015290519081900360640190fd5b6110ff83836125ff565b6040805182815260208101849052815173ffffffffffffffffffffffffffffffffffffffff86169233927f2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee929081900390910190a35061115d6126b0565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055919050565b66470de4df82000081565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b60046020526000908152604090205481565b60076020526000908152604090205481565b600b5460009060ff1661124c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055306000908152600460205260409020546112a8670de0b6b3a764000061097661129b610bdc565b849063ffffffff6120e316565b915060008211611303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806138956021913960400191505060405180910390fd5b600a5482111561137457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5374616b65644c50546f6b656e3a20494e53554646494349454e545f43415348604482015290519081900360640190fd5b61137e308261278a565b600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156113f357600080fd5b505af1158015611407573d6000803e3d6000fd5b50505050611415838361284e565b6040805183815260208101839052815173ffffffffffffffffffffffffffffffffffffffff86169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a35061115d6126b0565b60018054604080516020600284861615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156107f15780601f106107c6576101008083540402835291602001916107f1565b6000610a4c338484612346565b600d5473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b6103e881565b600b5460ff1661159157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600a54600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905161167593859361167093919273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b15801561163857600080fd5b505afa15801561164c573d6000803e3d6000fd5b505050506040513d602081101561166257600080fd5b50519063ffffffff6125bd16565b61284e565b50600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60095473ffffffffffffffffffffffffffffffffffffffff1681565b73f28164a485b0b2c90639e47b0f377b4a438a16b181565b600f5473ffffffffffffffffffffffffffffffffffffffff1681565b611723878787878787877f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9612a5a565b61172e878787612226565b50505050505050565b600560209081526000928352604080842090915290825290205481565b6040518060400160405280600281526020017f303400000000000000000000000000000000000000000000000000000000000081525081565b600c5473ffffffffffffffffffffffffffffffffffffffff1681565b60095473ffffffffffffffffffffffffffffffffffffffff1615611818576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806139296022913960400191505060405180910390fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055604080518082018252601181527f5374616b656420556e69737761702056320000000000000000000000000000006020808301919091528251808401909352600b83527f53544b442d554e492d5632000000000000000000000000000000000000000000908301526118b391612cfd565b600b80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff8981169190910291909117909155600880547fffffffffffffffffffffffff000000000000000000000000000000000000000090811688841617909155600e80548216878416179055600f80548216868416179055600c80548216858416179055600d80549091169183169190911790556119a173f28164a485b0b2c90639e47b0f377b4a438a16b1837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612de1565b6119e873ffffffffffffffffffffffffffffffffffffffff8216837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63ffffffff612de116565b611a2f73ffffffffffffffffffffffffffffffffffffffff8616877fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63ffffffff612de116565b505050505050565b600b5460ff16611aa857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055333214611adc57600080fd5b6000611ae661245f565b905080611af3575061200d565b6000670de0b6b3a7640000611b158366470de4df82000063ffffffff6120e316565b81611b1c57fe5b049050611b4473f28164a485b0b2c90639e47b0f377b4a438a16b1338363ffffffff612fbe16565b73f28164a485b0b2c90639e47b0f377b4a438a16b16367dfd4c9611b678261251b565b6040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611b9d57600080fd5b505af1158015611bb1573d6000803e3d6000fd5b5050600e546000925082915073ffffffffffffffffffffffffffffffffffffffff1673831753dd7087cac61ab5644b308642cc1c33dc131480611c1f5750600f5473ffffffffffffffffffffffffffffffffffffffff1673831753dd7087cac61ab5644b308642cc1c33dc13145b15611ca757600e5473ffffffffffffffffffffffffffffffffffffffff1673831753dd7087cac61ab5644b308642cc1c33dc1314611c7c57600f54600e5473ffffffffffffffffffffffffffffffffffffffff9182169116611c9d565b600e54600f5473ffffffffffffffffffffffffffffffffffffffff91821691165b9092509050611dd0565b600d54611ce89073831753dd7087cac61ab5644b308642cc1c33dc139073ffffffffffffffffffffffffffffffffffffffff16611ce38261251b565b613194565b600d54600e5473ffffffffffffffffffffffffffffffffffffffff90811691161480611d315750600d54600f5473ffffffffffffffffffffffffffffffffffffffff9081169116145b15611d8057600d54600e5473ffffffffffffffffffffffffffffffffffffffff908116911614611c7c57600f54600e5473ffffffffffffffffffffffffffffffffffffffff9182169116611c9d565b600d54600e54611dad9173ffffffffffffffffffffffffffffffffffffffff9081169116611ce38261251b565b5050600e54600f5473ffffffffffffffffffffffffffffffffffffffff91821691165b6000611df18373ffffffffffffffffffffffffffffffffffffffff1661251b565b905060008111611dfd57fe5b600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611e6857600080fd5b505afa158015611e7c573d6000803e3d6000fd5b505050506040513d6060811015611e9257600080fd5b508051602090910151600e546dffffffffffffffffffffffffffff92831694509116915060009073ffffffffffffffffffffffffffffffffffffffff878116911614611ede5781611ee0565b825b90506000611eee8583613411565b9050611efb878783613194565b6000611f368888611f12898663ffffffff6125bd16565b611f318b73ffffffffffffffffffffffffffffffffffffffff1661251b565b61349e565b9050600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a694fc3a826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611fad57600080fd5b505af1158015611fc1573d6000803e3d6000fd5b5050604080518d8152602081018d905281513394507fc003f45bc224d116b6d079100d4ab57a5b9633244c47a5a92a176c5b79a85f2893509081900390910190a2505050505050505050505b6120156126b0565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600b5460ff166120b357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556120156126b0565b6000826120f257506000610a50565b828202828482816120ff57fe5b0414612156576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806139086021913960400191505060405180910390fd5b9392505050565b600061215683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613594565b60006e010000000000000000000000000000821061221e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f5374616b65644c50546f6b656e3a205341464531313200000000000000000000604482015290519081900360640190fd5b50805b919050565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260056020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000818484111561233e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156123035781810151838201526020016122eb565b50505050905090810190601f1680156123305780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b604080518082018252601b81527f496d7065726d61783a205452414e534645525f544f4f5f48494748000000000060208083019190915273ffffffffffffffffffffffffffffffffffffffff86166000908152600490915291909120546123b491839063ffffffff61229516565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526004602052604080822093909355908416815220546123f6908263ffffffff61361316565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156124cb57600080fd5b505af11580156124df573d6000803e3d6000fd5b5050505061251673f28164a485b0b2c90639e47b0f377b4a438a16b173ffffffffffffffffffffffffffffffffffffffff1661251b565b905090565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009173ffffffffffffffffffffffffffffffffffffffff8416916370a0823191602480820192602092909190829003018186803b15801561258b57600080fd5b505afa15801561259f573d6000803e3d6000fd5b505050506040513d60208110156125b557600080fd5b505192915050565b600061215683836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250612295565b600354612612908263ffffffff61361316565b60035573ffffffffffffffffffffffffffffffffffffffff821660009081526004602052604090205461264b908263ffffffff61361316565b73ffffffffffffffffffffffffffffffffffffffff831660008181526004602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600b54604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905161010090920473ffffffffffffffffffffffffffffffffffffffff16916370a0823191602480820192602092909190829003018186803b15801561272557600080fd5b505afa158015612739573d6000803e3d6000fd5b505050506040513d602081101561274f57600080fd5b5051600a81905560408051918252517f8a0df8ef054fae2c3d2d19a7b322e864870cc9fd3cb07fb9526309c596244bf49181900360200190a1565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260409020546127c0908263ffffffff6125bd16565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600460205260409020556003546127f9908263ffffffff6125bd16565b60035560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600854604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff86811660248301526044808301879052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009560609594169382918083835b6020831061295457805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612917565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146129b6576040519150601f19603f3d011682016040523d82523d6000602084013e6129bb565b606091505b50915091508180156129e95750805115806129e957508080602001905160208110156129e657600080fd5b50515b612a5457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a205452414e534645525f4641494c454400000000000000604482015290519081900360640190fd5b50505050565b42851015612ac957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496d7065726d61783a2045585049524544000000000000000000000000000000604482015290519081900360640190fd5b60065473ffffffffffffffffffffffffffffffffffffffff808a1660008181526007602090815260408083208054600180820190925582518085018a905280840196909652958e166060860152608085018d905260a085019590955260c08085018c90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff8a166101828501526101a284018990526101c28401889052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015612c0b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590612c8657508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b612cf157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e56414c49445f5349474e41545552450000000000604482015290519081900360640190fd5b50505050505050505050565b8151612d109060009060208501906137d8565b508051612d249060019060208401906137d8565b5060405146908060526138b682396040805191829003605201822086516020978801208383018352600184527f310000000000000000000000000000000000000000000000000000000000000093880193909352815180880191909152808201929092527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606083015260808201939093523060a0808301919091528351808303909101815260c090910190925250805192019190912060065550565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b300000000000000000000000000000000000000000000000000000000178152925182516000946060949389169392918291908083835b60208310612eb757805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612e7a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612f19576040519150601f19603f3d011682016040523d82523d6000602084013e612f1e565b606091505b5091509150818015612f4c575080511580612f4c5750808060200190516020811015612f4957600080fd5b50515b612fb757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f2173616665417070726f76650000000000000000000000000000000000000000604482015290519081900360640190fd5b5050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000178152925182516000946060949389169392918291908083835b6020831061309457805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613057565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146130f6576040519150601f19603f3d011682016040523d82523d6000602084013e6130fb565b606091505b5091509150818015613129575080511580613129575080806020019051602081101561312657600080fd5b50515b612fb757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f21736166655472616e7366657200000000000000000000000000000000000000604482015290519081900360640190fd5b604080516002808252606080830184529260208301908038833901905050905083816000815181106131c257fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050828160018151811061320a57fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061324e8483613687565b600c546040517f38ed1739000000000000000000000000000000000000000000000000000000008152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a4870152875173ffffffffffffffffffffffffffffffffffffffff909716966338ed1739968a968a9594939092909160c40190602080880191028083838b5b838110156132fa5781810151838201526020016132e2565b505050509050019650505050505050600060405180830381600087803b15801561332357600080fd5b505af1158015613337573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052602081101561337e57600080fd5b810190808051604051939291908464010000000082111561339e57600080fd5b9083019060208201858111156133b357600080fd5b82518660208202830111640100000000821117156133d057600080fd5b82525081516020918201928201910280838360005b838110156133fd5781810151838201526020016133e5565b505050509050016040525050505050505050565b6000806134266107cd8463ffffffff6120e316565b90506000613450610f946134448681896103e863ffffffff6120e316565b9063ffffffff6120e316565b9050600061347c6134778361346b868063ffffffff6120e316565b9063ffffffff61361316565b613787565b90506134946107ca610976838663ffffffff6125bd16565b9695505050505050565b60006134aa8584613687565b6134b48483613687565b600c54604080517fe8e3370000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88811660048301528781166024830152604482018790526064820186905260006084830181905260a483018190523060c48401524260e4840152925193169263e8e337009261010480840193606093929083900390910190829087803b15801561355c57600080fd5b505af1158015613570573d6000803e3d6000fd5b505050506040513d606081101561358657600080fd5b506040015195945050505050565b600081836135fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283519092839260449091019190850190808383600083156123035781810151838201526020016122eb565b50600083858161360957fe5b0495945050505050565b60008282018381101561215657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600c54604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff92831660248201529051839285169163dd62ed3e916044808301926020929190829003018186803b15801561370057600080fd5b505afa158015613714573d6000803e3d6000fd5b505050506040513d602081101561372a57600080fd5b50511061373657613783565b600c546137839073ffffffffffffffffffffffffffffffffffffffff84811691167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63ffffffff612de116565b5050565b600060038211156137ca575080600160028204015b818110156137c4578091506002818285816137b357fe5b0401816137bc57fe5b04905061379c565b50612221565b811561222157506001919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061381957805160ff1916838001178555613846565b82800160010185558215613846579182015b8281111561384657825182559160200191906001019061382b565b50613852929150613856565b5090565b610c2991905b80821115613852576000815560010161385c56fe5374616b65644c50546f6b656e3a20494e53554646494349454e545f52455345525645535374616b65644c50546f6b656e3a2052454445454d5f414d4f554e545f5a45524f454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775374616b65644c50546f6b656e3a20464143544f52595f414c52454144595f534554a265627a7a72315820882d5bd1ecbdcefe59960439f0c62069bf03708871ea45e94f1be33230ed68a564736f6c634300051000325374616b65644c50546f6b656e466163746f72793a205354414b494e475f524557415244535f455849535453a265627a7a723158207f75c917e63000169f0711508309537459e20498de4a874b68f60f6524c9c4da64736f6c63430005100032

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619

-----Decoded View---------------
Arg [0] : _router (address): 0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff
Arg [1] : _WETH (address): 0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff
Arg [1] : 0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619


Deployed Bytecode Sourcemap

31732:1367:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31732:1367:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31818:51;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31818:51:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;32260:836;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32260:836:0;;;;:::i;31873:33::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31873:33:0;;:::i;32152:103::-;;;:::i;:::-;;;;;;;;;;;;;;;;31793:19;;;:::i;31768:21::-;;;:::i;31818:51::-;;;;;;;;;;;;;;;:::o;32260:836::-;32367:46;:32;;;32331:21;32367:32;;;:16;:32;;;;;;32331:21;;32367:32;:46;32359:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32467:12;32498:14;32482:44;;;:46;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32482:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32482:46:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32482:46:0;32550:29;;;;;;;;32482:46;;-1:-1:-1;32533:14:0;;32550:27;;;;;;:29;;;;;32482:46;;32550:29;;;;;;;:27;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;32550:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32550:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32550:29:0;32601;;;;;;;;32550;;-1:-1:-1;32584:14:0;;32601:27;;;;;;:29;;;;;32550;;32601;;;;;;;:27;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;32601:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32601:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32601:29:0;32659:34;;32601:29;;-1:-1:-1;32635:21:0;;32659:34;32601:29;32659:34;;;:::i;:::-;41:4:-1;34:5;30:16;25:3;21:26;14:5;7:41;87:2;83:7;78:2;73:3;69:12;65:26;61:2;54:38;32659:34:0;32635:58;;32777:14;32766:8;32760:15;32755:2;32745:8;32741:17;32738:1;32730:62;32882:6;;;;32890:4;32801:94;;;;;;:42;:94;;;;;;;;;;;;;;;;;;;;;;;;;;;;32882:6;;;32801:94;;;;32890:4;;;32801:94;;;;;32713:79;;-1:-1:-1;32801:42:0;;;;;;:94;;;;;32882:6;;32801:94;;;;;;32882:6;32801:42;:94;;;5:2:-1;;;;30:1;27;20:12;5:2;32801:94:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;32900:32:0;;;;;;;;:16;:32;;;;;;;;:48;;;;;;;;;;;;;;32953:16;27:10:-1;;32900:48:0;23:18:-1;;45:23;;32953:36:0;;;;;;;;;;;;;;;;;33067:23;;32999:92;;;;;;;;;;;;;;32900:32;;-1:-1:-1;32999:92:0;;;;;;;;;;;;;;;;;32260:836;;;;;;;:::o;31873:33::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31873:33:0;:::o;32152:103::-;32227:16;:23;32152:103;:::o;31793:19::-;;;;;;:::o;31768:21::-;;;;;;:::o;31732:1367::-;;;;;;;;:::o

Swarm Source

bzzr://7f75c917e63000169f0711508309537459e20498de4a874b68f60f6524c9c4da

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.