Overview
S Balance
0 S
S Value
-More Info
Private Name Tags
ContractCreator
Latest 7 from a total of 7 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Create Staked LP... | 2943908 | 45 hrs ago | IN | 0 S | 0.02229114 | ||||
Create Staked LP... | 2719853 | 3 days ago | IN | 0 S | 0.00445822 | ||||
Create Staked LP... | 2710009 | 3 days ago | IN | 0 S | 0.00445822 | ||||
Create Staked LP... | 2710003 | 3 days ago | IN | 0 S | 0.00445822 | ||||
Create Staked LP... | 2709997 | 3 days ago | IN | 0 S | 0.00445822 | ||||
Create Staked LP... | 2709992 | 3 days ago | IN | 0 S | 0.00445822 | ||||
Create Staked LP... | 1734335 | 13 days ago | IN | 0 S | 0.00447703 |
Latest 7 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
2943908 | 45 hrs ago | Contract Creation | 0 S | |||
2719853 | 3 days ago | Contract Creation | 0 S | |||
2710009 | 3 days ago | Contract Creation | 0 S | |||
2710003 | 3 days ago | Contract Creation | 0 S | |||
2709997 | 3 days ago | Contract Creation | 0 S | |||
2709992 | 3 days ago | Contract Creation | 0 S | |||
1734335 | 13 days ago | Contract Creation | 0 S |
Loading...
Loading
Contract Name:
StakedLPTokenFactorySolidlyBase5
Compiler Version
v0.5.16+commit.9c3226ce
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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\IBaseV1Router01.sol pragma solidity >=0.5.0; interface IBaseV1Router01 { function wftm() external pure returns (address); function factory() external pure returns (address); function addLiquidity( address tokenA, address tokenB, bool stable, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function swapExactTokensForTokensSimple( uint amountIn, uint amountOutMin, address tokenFrom, address tokenTo, bool stable, address to, uint deadline ) external returns (uint[] memory amounts); } // File: contracts\interfaces\IBaseV1Pair.sol pragma solidity >=0.5.0; interface IBaseV1Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function stable() external view returns (bool); 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 (uint reserve0, uint reserve1, uint blockTimestampLast); function observationLength() external view returns (uint); function observations(uint) external view returns ( uint timestamp, uint reserve0Cumulative, uint reserve1Cumulative ); function currentCumulativePrices() external view returns ( uint reserve0Cumulative, uint reserve1Cumulative, uint timestamp ); } // 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\interfaces\IBaseV1Factory.sol pragma solidity >=0.5.0; interface IBaseV1Factory { function getPair(address tokenA, address tokenB, bool stable) external view returns (address pair); function getPool(address tokenA, address tokenB, bool stable) external view returns (address pair); } // File: contracts\interfaces\ISolidlyVoter.sol pragma solidity >=0.5.0; interface ISolidlyVoter { function _ve() external view returns (address); function governor() external view returns (address); function emergencyCouncil() external view returns (address); function attachTokenToGauge(uint _tokenId, address account) external; function detachTokenFromGauge(uint _tokenId, address account) external; function emitDeposit(uint _tokenId, address account, uint amount) external; function emitWithdraw(uint _tokenId, address account, uint amount) external; function isWhitelisted(address token) external view returns (bool); function notifyRewardAmount(uint amount) external; function distribute(address _gauge) external; function gauges(address token) external view returns (address); } // File: contracts\interfaces\ISolidlyGauge3.sol pragma solidity >=0.5.0; interface ISolidlyGauge3 { function notifyRewardAmount(address token, uint amount) external; function getReward() external; function claimFees() external returns (uint claimed0, uint claimed1); function left(address token) external view returns (uint); function isForPair() external view returns (bool); function earned(address account) external view returns (uint); function balanceOf(address account) external view returns (uint); function rewardRate() external view returns (uint); function deposit(uint256 amount) external; function withdraw(uint256 amount) external; } // 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\StakedLPTokenSolidlyBase5.sol pragma solidity =0.5.16; // updated codebase for equalizer exchange on base ('scale') contract StakedLPTokenSolidlyBase5 is PoolToken { using SafeToken for address; bool public constant isStakedLPToken = true; string public constant stakedLPTokenType = "SolidlyBase5"; bool public constant stable = false; address public token0; address public token1; address public router; address public gauge; address public rewardsToken; address[] public bridgeTokens; uint256 public constant REINVEST_BOUNTY = 0.02e18; event Reinvest(address indexed caller, uint256 reward, uint256 bounty); function _initialize( address _underlying, address _token0, address _token1, address _router, address _voter, address _rewardsToken, address[] calldata _bridgeTokens ) external { require(factory == address(0), "StakedLPToken: FACTORY_ALREADY_SET"); // sufficient check factory = msg.sender; _setName("Staked Uniswap V2", "STKD-UNI-V2"); underlying = _underlying; token0 = _token0; token1 = _token1; router = _router; gauge = ISolidlyVoter(_voter).gauges(_underlying); require(gauge != address(0), "StakedLPToken: NO_GAUGE"); rewardsToken = _rewardsToken; bridgeTokens = _bridgeTokens; _rewardsToken.safeApprove(address(_router), uint256(-1)); _underlying.safeApprove(address(gauge), uint256(-1)); for (uint i = 0; i < _bridgeTokens.length; i++) { _bridgeTokens[i].safeApprove(address(_router), uint256(-1)); } } /*** PoolToken Overrides ***/ function _update() internal { uint256 _totalBalance = ISolidlyGauge3(gauge).balanceOf(address(this)); totalBalance = _totalBalance; 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(); // handle pools with deposit fees by checking balance before and after deposit uint256 _totalBalanceBefore = ISolidlyGauge3(gauge).balanceOf(address(this)); ISolidlyGauge3(gauge).deposit(mintAmount); uint256 _totalBalanceAfter = ISolidlyGauge3(gauge).balanceOf(address(this)); mintTokens = _totalBalanceAfter.sub(_totalBalanceBefore).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); ISolidlyGauge3(gauge).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 { approveRouter(tokenIn, amount); IBaseV1Router01(router).swapExactTokensForTokensSimple(amount, 0, tokenIn, tokenOut, false, address(this), now); } function addLiquidity(address tokenA, address tokenB, uint256 amountA, uint256 amountB) internal returns (uint256 liquidity) { approveRouter(tokenA, amountA); approveRouter(tokenB, amountB); (,,liquidity) = IBaseV1Router01(router).addLiquidity(tokenA, tokenB, false, amountA, amountB, 0, 0, address(this), now); } function _getReward() internal returns (uint256) { ISolidlyGauge3(gauge).getReward(); return rewardsToken.myBalance(); } function getReward() external nonReentrant returns (uint256) { require(msg.sender == tx.origin); return _getReward(); } function _swapWithBestBridge() internal view returns (address bestBridgeToken, uint bestIndex) { for (uint i = 0; i < bridgeTokens.length; i++) { if (token0 == bridgeTokens[i]) return (bridgeTokens[i], 0); if (token1 == bridgeTokens[i]) return (bridgeTokens[i], 1); } (uint256 r0, uint256 r1,) = IUniswapV2Pair(underlying).getReserves(); address[2] memory tokens = [token0, token1]; uint[2] memory reserves = [r0, r1]; bestBridgeToken = bridgeTokens[0]; bestIndex = 0; uint bestLiquidity = 0; address pairFactory = IBaseV1Router01(router).factory(); for (uint i = 0; i < bridgeTokens.length; i++) { for (uint j = 0; j < 2; j++) { address pair = IBaseV1Factory(pairFactory).getPair(tokens[j], bridgeTokens[i], false); if (pair == address(0)) continue; uint liquidity = tokens[j].balanceOf(pair).mul(1e18).div(reserves[j]); if (liquidity > bestLiquidity) { bestLiquidity = liquidity; bestIndex = j; bestBridgeToken = bridgeTokens[i]; } } } return (bestBridgeToken, bestIndex); } 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. Convert all the remaining rewards to token0 or token1. address tokenA; address tokenB; if (token0 == rewardsToken || token1 == rewardsToken) { (tokenA, tokenB) = token0 == rewardsToken ? (token0, token1) : (token1, token0); } else { (address bridgeToken, uint index) = _swapWithBestBridge(); swapExactTokensForTokens(rewardsToken, bridgeToken, reward.sub(bounty)); if (token0 == bridgeToken || token1 == bridgeToken) { (tokenA, tokenB) = token0 == bridgeToken ? (token0, token1) : (token1, token0); } else { swapExactTokensForTokens(bridgeToken, index == 0 ? token0 : token1, bridgeToken.myBalance()); (tokenA, tokenB) = index == 0 ? (token0, token1) : (token1, token0); } } // 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); // 5. Add liquidity and stake LP token addLiquidity(tokenA, tokenB, totalAmountA.sub(swapAmount), tokenB.myBalance()); emit Reinvest(msg.sender, reward, bounty); } /*** Mirrored From uniswapV2Pair ***/ function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) { (uint _reserve0, uint _reserve1, uint _blockTimestampLast) = IUniswapV2Pair(underlying).getReserves(); reserve0 = safe112(_reserve0); reserve1 = safe112(_reserve1); blockTimestampLast = uint32(_blockTimestampLast % 2**32); // 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 observationLength() external view returns (uint) { return IBaseV1Pair(underlying).observationLength(); } function observations(uint index) external view returns ( uint timestamp, uint reserve0Cumulative, uint reserve1Cumulative ) { return IBaseV1Pair(underlying).observations(index); } function currentCumulativePrices() external view returns ( uint reserve0Cumulative, uint reserve1Cumulative, uint timestamp ) { return IBaseV1Pair(underlying).currentCumulativePrices(); } /*** Utilities ***/ function safe112(uint n) internal pure returns (uint112) { require(n < 2**112, "StakedLPToken: SAFE112"); return uint112(n); } } // File: contracts\StakedLPTokenFactorySolidlyBase5.sol pragma solidity =0.5.16; // updated codebase for equalizer exchange on base ('scale') contract StakedLPTokenFactorySolidlyBase5 { address public router; address public voter; address public rewardsToken; address[] public bridgeTokens; mapping(address => address) public getStakedLPToken; address[] public allStakedLPToken; event StakedLPTokenCreated(address indexed token0, address indexed token1, address indexed pair, address stakedLPToken, uint); constructor(address _router, address _voter, address _rewardsToken, address[] memory _bridgeTokens) public { router = _router; voter = _voter; rewardsToken = _rewardsToken; bridgeTokens = _bridgeTokens; } function allStakedLPTokenLength() external view returns (uint) { return allStakedLPToken.length; } function createStakedLPToken(address pair) external returns (address stakedLPToken) { require(getStakedLPToken[pair] == address(0), "StakedLPTokenFactory: POOL_EXISTS"); require(!IBaseV1Pair(pair).stable(), "StakedLPTokenFactory: STABLE_PAIR"); address token0 = IUniswapV2Pair(pair).token0(); address token1 = IUniswapV2Pair(pair).token1(); bytes memory bytecode = type(StakedLPTokenSolidlyBase5).creationCode; assembly { stakedLPToken := create2(0, add(bytecode, 32), mload(bytecode), pair) } StakedLPTokenSolidlyBase5(stakedLPToken)._initialize(pair, token0, token1, router, voter, rewardsToken, bridgeTokens); getStakedLPToken[pair] = stakedLPToken; allStakedLPToken.push(stakedLPToken); emit StakedLPTokenCreated(token0, token1, pair, stakedLPToken, allStakedLPToken.length); } }
{ "optimizer": { "enabled": true, "runs": 999999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_voter","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address[]","name":"_bridgeTokens","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":"pair","type":"address"},{"indexed":false,"internalType":"address","name":"stakedLPToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"StakedLPTokenCreated","type":"event"},{"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":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bridgeTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"pair","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":"rewardsToken","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"},{"constant":true,"inputs":[],"name":"voter","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051614ceb380380614ceb8339818101604052608081101561003357600080fd5b81516020830151604080850151606086018051925194969395919493918201928464010000000082111561006657600080fd5b90830190602082018581111561007b57600080fd5b825186602082028301116401000000008211171561009857600080fd5b82525081516020918201928201910280838360005b838110156100c55781810151838201526020016100ad565b50505050919091016040525050600080546001600160a01b038089166001600160a01b0319928316179092556001805488841690831617905560028054928716929091169190911790555050805161012490600390602084019061012e565b50505050506101ba565b828054828255906000526020600020908101928215610183579160200282015b8281111561018357825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061014e565b5061018f929150610193565b5090565b6101b791905b8082111561018f5780546001600160a01b0319168155600101610199565b90565b614b22806101c96000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638ad8e3681161005b5780638ad8e36814610141578063940e0a6e1461015e578063d1af0c7d14610178578063f887ea401461018057610088565b80630ea2534b1461008d57806346c96aac146100e9578063492a1b82146100f157806370e5a89814610124575b600080fd5b6100c0600480360360208110156100a357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610188565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100c06101b0565b6100c06004803603602081101561010757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101cc565b6100c06004803603602081101561013a57600080fd5b5035610665565b6100c06004803603602081101561015757600080fd5b5035610699565b6101666106a6565b60408051918252519081900360200190f35b6100c06106ac565b6100c06106c8565b60046020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff8181166000908152600460205260408120549091161561024c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614acd6021913960400191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166322be3de16040518163ffffffff1660e01b815260040160206040518083038186803b15801561029257600080fd5b505afa1580156102a6573d6000803e3d6000fd5b505050506040513d60208110156102bc57600080fd5b505115610314576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614aac6021913960400191505060405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561035c57600080fd5b505afa158015610370573d6000803e3d6000fd5b505050506040513d602081101561038657600080fd5b5051604080517fd21220a7000000000000000000000000000000000000000000000000000000008152905191925060009173ffffffffffffffffffffffffffffffffffffffff86169163d21220a7916004808301926020929190829003018186803b1580156103f457600080fd5b505afa158015610408573d6000803e3d6000fd5b505050506040513d602081101561041e57600080fd5b5051604051909150606090610435602082016106e4565b6020820181038252601f19601f820116604052509050848151602083016000f56000546001546002546040517f48286f6f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a81166004830190815289821660248401528882166044840152948116606483018190529381166084830181905292811660a4830181905260e060c484019081526003805460e48601819052989c50928c16976348286f6f978e978d978d9791969095949093909161010401908490801561054a57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff16815260019091019060200180831161051f575b505098505050505050505050600060405180830381600087803b15801561057057600080fd5b505af1158015610584573d6000803e3d6000fd5b50505073ffffffffffffffffffffffffffffffffffffffff80871660008181526004602090815260408083208054868c167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216811790925560058054600181018255958190527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db090950180549091168217905592548151938452918301919091528051929450868416938816927facd0b0ab7c564649d213cd3222069beca773979de0575467c8a0e5c558639f739281900390910190a4505050919050565b6003818154811061067257fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b6005818154811061067257fe5b60055490565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6143ba806106f28339019056fe60806040526002805460ff19908116601217909155600b8054909116600117905561438b8061002f6000396000f3fe608060405234801561001057600080fd5b50600436106102c85760003560e01c806370a082311161017b578063c45a0155116100d8578063e8bea1671161008c578063f887ea4011610071578063f887ea40146107fb578063fdb5a03e14610803578063fff6cae91461080b576102c8565b8063e8bea167146107eb578063ebeb31db146107f3576102c8565b8063d21220a7116100bd578063d21220a71461074a578063d505accf14610752578063dd62ed3e146107b0576102c8565b8063c45a01551461073a578063d1af0c7d14610742576102c8565b8063a6f19c841161012f578063ad7a672f11610114578063ad7a672f146106f7578063ba9a7a56146106ff578063bc25cf7714610707576102c8565b8063a6f19c84146106b6578063a9059cbb146106be576102c8565b80637ecebe00116101605780637ecebe001461064857806395a2251f1461067b57806395d89b41146106ae576102c8565b806370a08231146105f857806370e5a8981461062b576102c8565b806330adf81f1161022957806348286f6f116101dd5780636a627842116101c25780636a627842146105b55780636c2a3bc5146105e85780636f307dc3146105f0576102c8565b806348286f6f146104f55780634a5d316c146105ad576102c8565b80633644e5151161020e5780633644e515146104dd5780633ba0b9a9146104e55780633d18b912146104ed576102c8565b806330adf81f146104b7578063313ce567146104bf576102c8565b806318160ddd1161028057806322be3de11161026557806322be3de11461044f57806323b872dd14610457578063252c09d71461049a576102c8565b806318160ddd1461040f5780631df8c71714610429576102c8565b8063095ea7b3116102b1578063095ea7b3146103895780630a641063146103d65780630dfe1681146103de576102c8565b806306fdde03146102cd5780630902f1ac1461034a575b600080fd5b6102d5610813565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561030f5781810151838201526020016102f7565b50505050905090810190601f16801561033c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103526108bf565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b6103c26004803603604081101561039f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610b4b565b604080519115158252519081900360200190f35b6103c2610b62565b6103e6610b67565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610417610b88565b60408051918252519081900360200190f35b610431610b8e565b60408051938452602084019290925282820152519081900360600190f35b6103c2610c3e565b6103c26004803603606081101561046d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610c43565b610431600480360360208110156104b057600080fd5b5035610d57565b610417610e14565b6104c7610e38565b6040805160ff9092168252519081900360200190f35b610417610e41565b610417610e47565b610417610e97565b6105ab600480360360e081101561050b57600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235811692602081013582169260408201358316926060830135811692608081013582169260a08201359092169181019060e0810160c082013564010000000081111561056c57600080fd5b82018360208201111561057e57600080fd5b803590602001918460208302840111640100000000831117156105a057600080fd5b509092509050610f77565b005b6105ab6113b8565b610417600480360360208110156105cb57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611469565b610417611866565b6103e6611871565b6104176004803603602081101561060e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661188d565b6103e66004803603602081101561064157600080fd5b503561189f565b6104176004803603602081101561065e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118d3565b6104176004803603602081101561069157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118e5565b6102d5611b7e565b6103e6611bf6565b6103c2600480360360408110156106d457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611c12565b610417611c1f565b610417611c25565b6105ab6004803603602081101561071d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611c2b565b6103e6611dae565b6103e6611dca565b6103e6611de6565b6105ab600480360360e081101561076857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611e02565b610417600480360360408110156107c657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611e46565b6102d5611e63565b610417611e9c565b6103e6611f38565b6105ab611f54565b6105ab612500565b6000805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156108b75780601f1061088c576101008083540402835291602001916108b7565b820191906000526020600020905b81548152906001019060200180831161089a57829003601f168201915b505050505081565b600080600080600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561093057600080fd5b505afa158015610944573d6000803e3d6000fd5b505050506040513d606081101561095a57600080fd5b50805160208201516040909201516dffffffffffffffffffffffffffff91821695509116925063ffffffff169050610991836125a1565b955061099c826125a1565b945064010000000081069350600354600014156109bc5750610b46915050565b600a54600854604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff16916318160ddd916004808301926020929190829003018186803b158015610a2a57600080fd5b505afa158015610a3e573d6000803e3d6000fd5b505050506040513d6020811015610a5457600080fd5b50519050610a90610a8b82610a7f856dffffffffffffffffffffffffffff8d1663ffffffff61262816565b9063ffffffff6126a216565b6125a1565b9750610ab9610a8b82610a7f856dffffffffffffffffffffffffffff8c1663ffffffff61262816565b96506064886dffffffffffffffffffffffffffff16118015610aeb57506064876dffffffffffffffffffffffffffff16115b610b40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602481526020018061427d6024913960400191505060405180910390fd5b50505050505b909192565b6000610b583384846126e4565b5060015b92915050565b600181565b600b54610100900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b6000806000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631df8c7176040518163ffffffff1660e01b815260040160606040518083038186803b158015610bfb57600080fd5b505afa158015610c0f573d6000803e3d6000fd5b505050506040513d6060811015610c2557600080fd5b5080516020820151604090920151909591945092509050565b600081565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610d4257604080518082018252601e81527f496d7065726d61783a205452414e534645525f4e4f545f414c4c4f574544000060208083019190915273ffffffffffffffffffffffffffffffffffffffff87166000908152600582528381203382529091529190912054610d1091849063ffffffff61275316565b73ffffffffffffffffffffffffffffffffffffffff851660009081526005602090815260408083203384529091529020555b610d4d848484612804565b5060019392505050565b600854604080517f252c09d70000000000000000000000000000000000000000000000000000000081526004810184905290516000928392839273ffffffffffffffffffffffffffffffffffffffff9092169163252c09d791602480820192606092909190829003018186803b158015610dd057600080fd5b505afa158015610de4573d6000803e3d6000fd5b505050506040513d6060811015610dfa57600080fd5b508051602082015160409092015190969195509350915050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60025460ff1681565b60065481565b600354600a5460009190811580610e5c575080155b15610e7357670de0b6b3a764000092505050610e94565b610e8f82610a7f83670de0b6b3a764000063ffffffff61262816565b925050505b90565b600b5460009060ff16610f0b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055333214610f3f57600080fd5b610f4761291d565b9050600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590565b60095473ffffffffffffffffffffffffffffffffffffffff1615610fe6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806143356022913960400191505060405180910390fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055604080518082018252601181527f5374616b656420556e69737761702056320000000000000000000000000000006020808301919091528251808401909352600b83527f53544b442d554e492d563200000000000000000000000000000000000000000090830152611081916129c8565b600880547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff8b8116918217909355600b80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff166101008c861602179055600c805483168a8516179055600d805490921688841617909155604080517fb9a09fd50000000000000000000000000000000000000000000000000000000081526004810192909252519186169163b9a09fd591602480820192602092909190829003018186803b15801561116b57600080fd5b505afa15801561117f573d6000803e3d6000fd5b505050506040513d602081101561119557600080fd5b5051600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92831617908190551661124657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5374616b65644c50546f6b656e3a204e4f5f4741554745000000000000000000604482015290519081900360640190fd5b600f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff851617905561129260108383614106565b506112da73ffffffffffffffffffffffffffffffffffffffff8416867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63ffffffff612aac16565b600e546113279073ffffffffffffffffffffffffffffffffffffffff8a811691167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63ffffffff612aac16565b60005b818110156113ad576113a5867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85858581811061136357fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612aac9092919063ffffffff16565b60010161132a565b505050505050505050565b60095473ffffffffffffffffffffffffffffffffffffffff161561143d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f496d7065726d61783a20464143544f52595f414c52454144595f534554000000604482015290519081900360640190fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055565b600b5460009060ff166114dd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905560085460009061152a9073ffffffffffffffffffffffffffffffffffffffff16612c89565b600e54604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905192935060009273ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b1580156115a157600080fd5b505afa1580156115b5573d6000803e3d6000fd5b505050506040513d60208110156115cb57600080fd5b5051600e54604080517fb6b55f2500000000000000000000000000000000000000000000000000000000815260048101869052905192935073ffffffffffffffffffffffffffffffffffffffff9091169163b6b55f259160248082019260009290919082900301818387803b15801561164357600080fd5b505af1158015611657573d6000803e3d6000fd5b5050600e54604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000945073ffffffffffffffffffffffffffffffffffffffff90921692506370a08231916024808301926020929190829003018186803b1580156116ce57600080fd5b505afa1580156116e2573d6000803e3d6000fd5b505050506040513d60208110156116f857600080fd5b5051905061172f611707610e47565b610a7f670de0b6b3a7640000611723858763ffffffff612d2b16565b9063ffffffff61262816565b93506003546000141561175d5761174e846103e863ffffffff612d2b16565b935061175d60006103e8612d6d565b600084116117cc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5374616b65644c50546f6b656e3a204d494e545f414d4f554e545f5a45524f00604482015290519081900360640190fd5b6117d68585612d6d565b6040805184815260208101869052815173ffffffffffffffffffffffffffffffffffffffff88169233927f2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee929081900390910190a3505050611836612e1e565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055919050565b66470de4df82000081565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b60046020526000908152604090205481565b601081815481106118ac57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60076020526000908152604090205481565b600b5460009060ff1661195957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055306000908152600460205260409020546119b5670de0b6b3a7640000610a7f6119a8610e47565b849063ffffffff61262816565b915060008211611a10576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806142a16021913960400191505060405180910390fd5b600a54821115611a8157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5374616b65644c50546f6b656e3a20494e53554646494349454e545f43415348604482015290519081900360640190fd5b611a8b3082612efa565b600e54604080517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815260048101859052905173ffffffffffffffffffffffffffffffffffffffff90921691632e1a7d4d9160248082019260009290919082900301818387803b158015611afe57600080fd5b505af1158015611b12573d6000803e3d6000fd5b50505050611b208383612fbe565b6040805183815260208101839052815173ffffffffffffffffffffffffffffffffffffffff86169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a350611836612e1e565b60018054604080516020600284861615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156108b75780601f1061088c576101008083540402835291602001916108b7565b600e5473ffffffffffffffffffffffffffffffffffffffff1681565b6000610b58338484612804565b600a5481565b6103e881565b600b5460ff16611c9c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600a54600854604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611d80938593611d7b93919273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b158015611d4357600080fd5b505afa158015611d57573d6000803e3d6000fd5b505050506040513d6020811015611d6d57600080fd5b50519063ffffffff612d2b16565b612fbe565b50600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60095473ffffffffffffffffffffffffffffffffffffffff1681565b600f5473ffffffffffffffffffffffffffffffffffffffff1681565b600c5473ffffffffffffffffffffffffffffffffffffffff1681565b611e32878787878787877f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96131ca565b611e3d8787876126e4565b50505050505050565b600560209081526000928352604080842090915290825290205481565b6040518060400160405280600c81526020017f536f6c69646c794261736535000000000000000000000000000000000000000081525081565b600854604080517febeb31db000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff169163ebeb31db916004808301926020929190829003018186803b158015611f0757600080fd5b505afa158015611f1b573d6000803e3d6000fd5b505050506040513d6020811015611f3157600080fd5b5051905090565b600d5473ffffffffffffffffffffffffffffffffffffffff1681565b600b5460ff16611fc557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055333214611ff957600080fd5b600061200361291d565b90508061201057506124cb565b6000670de0b6b3a76400006120328366470de4df82000063ffffffff61262816565b8161203957fe5b600f5491900491506120689073ffffffffffffffffffffffffffffffffffffffff16338363ffffffff61346d16565b600f54600b546000918291610100900473ffffffffffffffffffffffffffffffffffffffff908116911614806120bb5750600f54600c5473ffffffffffffffffffffffffffffffffffffffff9081169116145b1561214557600f54600b54610100900473ffffffffffffffffffffffffffffffffffffffff90811691161461211557600c54600b5473ffffffffffffffffffffffffffffffffffffffff918216916101009091041661213b565b600b54600c5473ffffffffffffffffffffffffffffffffffffffff610100909204821691165b909250905061231d565b600080612150613643565b600f5491935091506121889073ffffffffffffffffffffffffffffffffffffffff1683612183898963ffffffff612d2b16565b613b00565b600b5473ffffffffffffffffffffffffffffffffffffffff8381166101009092041614806121d05750600c5473ffffffffffffffffffffffffffffffffffffffff8381169116145b1561225757600b5473ffffffffffffffffffffffffffffffffffffffff838116610100909204161461222757600c54600b5473ffffffffffffffffffffffffffffffffffffffff918216916101009091041661224d565b600b54600c5473ffffffffffffffffffffffffffffffffffffffff610100909204821691165b909450925061231a565b6122bd82821561227f57600c5473ffffffffffffffffffffffffffffffffffffffff1661229e565b600b54610100900473ffffffffffffffffffffffffffffffffffffffff165b6121838573ffffffffffffffffffffffffffffffffffffffff16612c89565b80156122ee57600c54600b5473ffffffffffffffffffffffffffffffffffffffff9182169161010090910416612314565b600b54600c5473ffffffffffffffffffffffffffffffffffffffff610100909204821691165b90945092505b50505b600061233e8373ffffffffffffffffffffffffffffffffffffffff16612c89565b90506000811161234a57fe5b600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156123b557600080fd5b505afa1580156123c9573d6000803e3d6000fd5b505050506040513d60608110156123df57600080fd5b508051602090910151600b546dffffffffffffffffffffffffffff92831694509116915060009073ffffffffffffffffffffffffffffffffffffffff87811661010090920416146124305781612432565b825b905060006124408583613c91565b905061244d878783613b00565b6124868787612462888563ffffffff612d2b16565b6124818a73ffffffffffffffffffffffffffffffffffffffff16612c89565b613d12565b50604080518a8152602081018a9052815133927fc003f45bc224d116b6d079100d4ab57a5b9633244c47a5a92a176c5b79a85f28928290030190a25050505050505050505b6124d3612e1e565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600b5460ff1661257157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556124d3612e1e565b60006e010000000000000000000000000000821061262057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f5374616b65644c50546f6b656e3a205341464531313200000000000000000000604482015290519081900360640190fd5b50805b919050565b60008261263757506000610b5c565b8282028284828161264457fe5b041461269b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806143146021913960400191505060405180910390fd5b9392505050565b600061269b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613e10565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260056020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600081848411156127fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127c15781810151838201526020016127a9565b50505050905090810190601f1680156127ee5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b604080518082018252601b81527f496d7065726d61783a205452414e534645525f544f4f5f48494748000000000060208083019190915273ffffffffffffffffffffffffffffffffffffffff861660009081526004909152919091205461287291839063ffffffff61275316565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526004602052604080822093909355908416815220546128b4908263ffffffff613e8f16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600e54604080517f3d18b912000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691633d18b912916004808301928692919082900301818387803b15801561298857600080fd5b505af115801561299c573d6000803e3d6000fd5b5050600f546129c3925073ffffffffffffffffffffffffffffffffffffffff169050612c89565b905090565b81516129db90600090602085019061418e565b5080516129ef90600190602084019061418e565b5060405146908060526142c282396040805191829003605201822086516020978801208383018352600184527f310000000000000000000000000000000000000000000000000000000000000093880193909352815180880191909152808201929092527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606083015260808201939093523060a0808301919091528351808303909101815260c090910190925250805192019190912060065550565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b300000000000000000000000000000000000000000000000000000000178152925182516000946060949389169392918291908083835b60208310612b8257805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612b45565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612be4576040519150601f19603f3d011682016040523d82523d6000602084013e612be9565b606091505b5091509150818015612c17575080511580612c175750808060200190516020811015612c1457600080fd5b50515b612c8257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f2173616665417070726f76650000000000000000000000000000000000000000604482015290519081900360640190fd5b5050505050565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009173ffffffffffffffffffffffffffffffffffffffff8416916370a0823191602480820192602092909190829003018186803b158015612cf957600080fd5b505afa158015612d0d573d6000803e3d6000fd5b505050506040513d6020811015612d2357600080fd5b505192915050565b600061269b83836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250612753565b600354612d80908263ffffffff613e8f16565b60035573ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040902054612db9908263ffffffff613e8f16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526004602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600e54604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015612e8f57600080fd5b505afa158015612ea3573d6000803e3d6000fd5b505050506040513d6020811015612eb957600080fd5b5051600a8190556040805182815290519192507f8a0df8ef054fae2c3d2d19a7b322e864870cc9fd3cb07fb9526309c596244bf4919081900360200190a150565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040902054612f30908263ffffffff612d2b16565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260046020526040902055600354612f69908263ffffffff612d2b16565b60035560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600854604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff86811660248301526044808301879052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009560609594169382918083835b602083106130c457805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613087565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613126576040519150601f19603f3d011682016040523d82523d6000602084013e61312b565b606091505b5091509150818015613159575080511580613159575080806020019051602081101561315657600080fd5b50515b6131c457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a205452414e534645525f4641494c454400000000000000604482015290519081900360640190fd5b50505050565b4285101561323957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496d7065726d61783a2045585049524544000000000000000000000000000000604482015290519081900360640190fd5b60065473ffffffffffffffffffffffffffffffffffffffff808a1660008181526007602090815260408083208054600180820190925582518085018a905280840196909652958e166060860152608085018d905260a085019590955260c08085018c90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff8a166101828501526101a284018990526101c28401889052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa15801561337b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116158015906133f657508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b61346157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e56414c49445f5349474e41545552450000000000604482015290519081900360640190fd5b50505050505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000178152925182516000946060949389169392918291908083835b6020831061354357805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613506565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146135a5576040519150601f19603f3d011682016040523d82523d6000602084013e6135aa565b606091505b50915091508180156135d85750805115806135d857508080602001905160208110156135d557600080fd5b50515b612c8257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f21736166655472616e7366657200000000000000000000000000000000000000604482015290519081900360640190fd5b600080805b60105481101561374c576010818154811061365f57fe5b600091825260209091200154600b54610100900473ffffffffffffffffffffffffffffffffffffffff908116911614156136cc57601081815481106136a057fe5b600091825260208220015473ffffffffffffffffffffffffffffffffffffffff1693509150613afc9050565b601081815481106136d957fe5b600091825260209091200154600c5473ffffffffffffffffffffffffffffffffffffffff90811691161415613744576010818154811061371557fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16925060019150613afc9050565b600101613648565b50600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156137b857600080fd5b505afa1580156137cc573d6000803e3d6000fd5b505050506040513d60608110156137e257600080fd5b5080516020909101516dffffffffffffffffffffffffffff918216935016905061380a614208565b5060408051808201909152600b5473ffffffffffffffffffffffffffffffffffffffff61010090910481168252600c54166020820152613848614208565b6040518060400160405280858152602001848152509050601060008154811061386d57fe5b600091825260208083209190910154600d54604080517fc45a0155000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff9384169b5094995089948594939092169263c45a015592600480840193829003018186803b1580156138ee57600080fd5b505afa158015613902573d6000803e3d6000fd5b505050506040513d602081101561391857600080fd5b5051905060005b601054811015613af45760005b6002811015613aeb5760008373ffffffffffffffffffffffffffffffffffffffff16636801cc3088846002811061395f57fe5b60200201516010868154811061397157fe5b6000918252602080832090910154604080517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b16815273ffffffffffffffffffffffffffffffffffffffff958616600482015294909116602485015260448401929092529051606480840193829003018186803b1580156139f657600080fd5b505afa158015613a0a573d6000803e3d6000fd5b505050506040513d6020811015613a2057600080fd5b5051905073ffffffffffffffffffffffffffffffffffffffff8116613a455750613ae3565b6000613a9e878460028110613a5657fe5b6020020151610a7f670de0b6b3a7640000611723868d8960028110613a7757fe5b602002015173ffffffffffffffffffffffffffffffffffffffff169063ffffffff613f0316565b905085811115613ae057809550829a5060108481548110613abb57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169b505b50505b60010161392c565b5060010161391f565b505050505050505b9091565b613b0a8382613fb5565b600d54604080517f13dcfc590000000000000000000000000000000000000000000000000000000081526004810184905260006024820181905273ffffffffffffffffffffffffffffffffffffffff87811660448401528681166064840152608483018290523060a48401524260c4840152925192909316926313dcfc599260e48084019382900301818387803b158015613ba457600080fd5b505af1158015613bb8573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526020811015613bff57600080fd5b8101908080516040519392919084640100000000821115613c1f57600080fd5b908301906020820185811115613c3457600080fd5b8251866020820283011164010000000082111715613c5157600080fd5b82525081516020918201928201910280838360005b83811015613c7e578181015183820152602001613c66565b5050505090500160405250505050505050565b600080613ca66107cd8463ffffffff61262816565b90506000613cc4610f946117238681896103e863ffffffff61262816565b90506000613cf0613ceb83613cdf868063ffffffff61262816565b9063ffffffff613e8f16565b6140b5565b9050613d086107ca610a7f838663ffffffff612d2b16565b9695505050505050565b6000613d1e8584613fb5565b613d288483613fb5565b600d54604080517f5a47ddc300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88811660048301528781166024830152600060448301819052606483018890526084830187905260a4830181905260c483018190523060e4840152426101048401529251931692635a47ddc39261012480840193606093929083900390910190829087803b158015613dd857600080fd5b505af1158015613dec573d6000803e3d6000fd5b505050506040513d6060811015613e0257600080fd5b506040015195945050505050565b60008183613e79576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283519092839260449091019190850190808383600083156127c15781810151838201526020016127a9565b506000838581613e8557fe5b0495945050505050565b60008282018381101561269b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015613f8257600080fd5b505afa158015613f96573d6000803e3d6000fd5b505050506040513d6020811015613fac57600080fd5b50519392505050565b600d54604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff92831660248201529051839285169163dd62ed3e916044808301926020929190829003018186803b15801561402e57600080fd5b505afa158015614042573d6000803e3d6000fd5b505050506040513d602081101561405857600080fd5b505110614064576140b1565b600d546140b19073ffffffffffffffffffffffffffffffffffffffff84811691167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63ffffffff612aac16565b5050565b600060038211156140f8575080600160028204015b818110156140f2578091506002818285816140e157fe5b0401816140ea57fe5b0490506140ca565b50612623565b811561262357506001919050565b82805482825590600052602060002090810192821561417e579160200282015b8281111561417e5781547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff843516178255602090920191600190910190614126565b5061418a929150614226565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106141cf57805160ff19168380011785556141fc565b828001600101855582156141fc579182015b828111156141fc5782518255916020019190600101906141e1565b5061418a929150614262565b60405180604001604052806002906020820280388339509192915050565b610e9491905b8082111561418a5780547fffffffffffffffffffffffff000000000000000000000000000000000000000016815560010161422c565b610e9491905b8082111561418a576000815560010161426856fe5374616b65644c50546f6b656e3a20494e53554646494349454e545f52455345525645535374616b65644c50546f6b656e3a2052454445454d5f414d4f554e545f5a45524f454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775374616b65644c50546f6b656e3a20464143544f52595f414c52454144595f534554a265627a7a723158205ab633da4c4932c94cbe39eb94216824ade10d13767a7a194c28b5c088e0a19064736f6c634300051000325374616b65644c50546f6b656e466163746f72793a20535441424c455f504149525374616b65644c50546f6b656e466163746f72793a20504f4f4c5f455849535453a265627a7a723158200bb26df77c506d79dfcc6b1a1db7d1441e4fb4fe7bee1ef782006f7465a4d95564736f6c63430005100032000000000000000000000000cc6169aa1e879d3a4227536671f85afdb2d23fad00000000000000000000000017fa9da6e01ad59513707f92033a6eb03ccb10b4000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f1900000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000029219dd400f2bf60e5a23d13be72b486d4038894
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638ad8e3681161005b5780638ad8e36814610141578063940e0a6e1461015e578063d1af0c7d14610178578063f887ea401461018057610088565b80630ea2534b1461008d57806346c96aac146100e9578063492a1b82146100f157806370e5a89814610124575b600080fd5b6100c0600480360360208110156100a357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610188565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100c06101b0565b6100c06004803603602081101561010757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101cc565b6100c06004803603602081101561013a57600080fd5b5035610665565b6100c06004803603602081101561015757600080fd5b5035610699565b6101666106a6565b60408051918252519081900360200190f35b6100c06106ac565b6100c06106c8565b60046020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff8181166000908152600460205260408120549091161561024c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614acd6021913960400191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166322be3de16040518163ffffffff1660e01b815260040160206040518083038186803b15801561029257600080fd5b505afa1580156102a6573d6000803e3d6000fd5b505050506040513d60208110156102bc57600080fd5b505115610314576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614aac6021913960400191505060405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561035c57600080fd5b505afa158015610370573d6000803e3d6000fd5b505050506040513d602081101561038657600080fd5b5051604080517fd21220a7000000000000000000000000000000000000000000000000000000008152905191925060009173ffffffffffffffffffffffffffffffffffffffff86169163d21220a7916004808301926020929190829003018186803b1580156103f457600080fd5b505afa158015610408573d6000803e3d6000fd5b505050506040513d602081101561041e57600080fd5b5051604051909150606090610435602082016106e4565b6020820181038252601f19601f820116604052509050848151602083016000f56000546001546002546040517f48286f6f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a81166004830190815289821660248401528882166044840152948116606483018190529381166084830181905292811660a4830181905260e060c484019081526003805460e48601819052989c50928c16976348286f6f978e978d978d9791969095949093909161010401908490801561054a57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff16815260019091019060200180831161051f575b505098505050505050505050600060405180830381600087803b15801561057057600080fd5b505af1158015610584573d6000803e3d6000fd5b50505073ffffffffffffffffffffffffffffffffffffffff80871660008181526004602090815260408083208054868c167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216811790925560058054600181018255958190527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db090950180549091168217905592548151938452918301919091528051929450868416938816927facd0b0ab7c564649d213cd3222069beca773979de0575467c8a0e5c558639f739281900390910190a4505050919050565b6003818154811061067257fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b6005818154811061067257fe5b60055490565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6143ba806106f28339019056fe60806040526002805460ff19908116601217909155600b8054909116600117905561438b8061002f6000396000f3fe608060405234801561001057600080fd5b50600436106102c85760003560e01c806370a082311161017b578063c45a0155116100d8578063e8bea1671161008c578063f887ea4011610071578063f887ea40146107fb578063fdb5a03e14610803578063fff6cae91461080b576102c8565b8063e8bea167146107eb578063ebeb31db146107f3576102c8565b8063d21220a7116100bd578063d21220a71461074a578063d505accf14610752578063dd62ed3e146107b0576102c8565b8063c45a01551461073a578063d1af0c7d14610742576102c8565b8063a6f19c841161012f578063ad7a672f11610114578063ad7a672f146106f7578063ba9a7a56146106ff578063bc25cf7714610707576102c8565b8063a6f19c84146106b6578063a9059cbb146106be576102c8565b80637ecebe00116101605780637ecebe001461064857806395a2251f1461067b57806395d89b41146106ae576102c8565b806370a08231146105f857806370e5a8981461062b576102c8565b806330adf81f1161022957806348286f6f116101dd5780636a627842116101c25780636a627842146105b55780636c2a3bc5146105e85780636f307dc3146105f0576102c8565b806348286f6f146104f55780634a5d316c146105ad576102c8565b80633644e5151161020e5780633644e515146104dd5780633ba0b9a9146104e55780633d18b912146104ed576102c8565b806330adf81f146104b7578063313ce567146104bf576102c8565b806318160ddd1161028057806322be3de11161026557806322be3de11461044f57806323b872dd14610457578063252c09d71461049a576102c8565b806318160ddd1461040f5780631df8c71714610429576102c8565b8063095ea7b3116102b1578063095ea7b3146103895780630a641063146103d65780630dfe1681146103de576102c8565b806306fdde03146102cd5780630902f1ac1461034a575b600080fd5b6102d5610813565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561030f5781810151838201526020016102f7565b50505050905090810190601f16801561033c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103526108bf565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b6103c26004803603604081101561039f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610b4b565b604080519115158252519081900360200190f35b6103c2610b62565b6103e6610b67565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610417610b88565b60408051918252519081900360200190f35b610431610b8e565b60408051938452602084019290925282820152519081900360600190f35b6103c2610c3e565b6103c26004803603606081101561046d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610c43565b610431600480360360208110156104b057600080fd5b5035610d57565b610417610e14565b6104c7610e38565b6040805160ff9092168252519081900360200190f35b610417610e41565b610417610e47565b610417610e97565b6105ab600480360360e081101561050b57600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235811692602081013582169260408201358316926060830135811692608081013582169260a08201359092169181019060e0810160c082013564010000000081111561056c57600080fd5b82018360208201111561057e57600080fd5b803590602001918460208302840111640100000000831117156105a057600080fd5b509092509050610f77565b005b6105ab6113b8565b610417600480360360208110156105cb57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611469565b610417611866565b6103e6611871565b6104176004803603602081101561060e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661188d565b6103e66004803603602081101561064157600080fd5b503561189f565b6104176004803603602081101561065e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118d3565b6104176004803603602081101561069157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118e5565b6102d5611b7e565b6103e6611bf6565b6103c2600480360360408110156106d457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611c12565b610417611c1f565b610417611c25565b6105ab6004803603602081101561071d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611c2b565b6103e6611dae565b6103e6611dca565b6103e6611de6565b6105ab600480360360e081101561076857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611e02565b610417600480360360408110156107c657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611e46565b6102d5611e63565b610417611e9c565b6103e6611f38565b6105ab611f54565b6105ab612500565b6000805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156108b75780601f1061088c576101008083540402835291602001916108b7565b820191906000526020600020905b81548152906001019060200180831161089a57829003601f168201915b505050505081565b600080600080600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561093057600080fd5b505afa158015610944573d6000803e3d6000fd5b505050506040513d606081101561095a57600080fd5b50805160208201516040909201516dffffffffffffffffffffffffffff91821695509116925063ffffffff169050610991836125a1565b955061099c826125a1565b945064010000000081069350600354600014156109bc5750610b46915050565b600a54600854604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff16916318160ddd916004808301926020929190829003018186803b158015610a2a57600080fd5b505afa158015610a3e573d6000803e3d6000fd5b505050506040513d6020811015610a5457600080fd5b50519050610a90610a8b82610a7f856dffffffffffffffffffffffffffff8d1663ffffffff61262816565b9063ffffffff6126a216565b6125a1565b9750610ab9610a8b82610a7f856dffffffffffffffffffffffffffff8c1663ffffffff61262816565b96506064886dffffffffffffffffffffffffffff16118015610aeb57506064876dffffffffffffffffffffffffffff16115b610b40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602481526020018061427d6024913960400191505060405180910390fd5b50505050505b909192565b6000610b583384846126e4565b5060015b92915050565b600181565b600b54610100900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b6000806000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631df8c7176040518163ffffffff1660e01b815260040160606040518083038186803b158015610bfb57600080fd5b505afa158015610c0f573d6000803e3d6000fd5b505050506040513d6060811015610c2557600080fd5b5080516020820151604090920151909591945092509050565b600081565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610d4257604080518082018252601e81527f496d7065726d61783a205452414e534645525f4e4f545f414c4c4f574544000060208083019190915273ffffffffffffffffffffffffffffffffffffffff87166000908152600582528381203382529091529190912054610d1091849063ffffffff61275316565b73ffffffffffffffffffffffffffffffffffffffff851660009081526005602090815260408083203384529091529020555b610d4d848484612804565b5060019392505050565b600854604080517f252c09d70000000000000000000000000000000000000000000000000000000081526004810184905290516000928392839273ffffffffffffffffffffffffffffffffffffffff9092169163252c09d791602480820192606092909190829003018186803b158015610dd057600080fd5b505afa158015610de4573d6000803e3d6000fd5b505050506040513d6060811015610dfa57600080fd5b508051602082015160409092015190969195509350915050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60025460ff1681565b60065481565b600354600a5460009190811580610e5c575080155b15610e7357670de0b6b3a764000092505050610e94565b610e8f82610a7f83670de0b6b3a764000063ffffffff61262816565b925050505b90565b600b5460009060ff16610f0b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055333214610f3f57600080fd5b610f4761291d565b9050600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590565b60095473ffffffffffffffffffffffffffffffffffffffff1615610fe6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806143356022913960400191505060405180910390fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055604080518082018252601181527f5374616b656420556e69737761702056320000000000000000000000000000006020808301919091528251808401909352600b83527f53544b442d554e492d563200000000000000000000000000000000000000000090830152611081916129c8565b600880547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff8b8116918217909355600b80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff166101008c861602179055600c805483168a8516179055600d805490921688841617909155604080517fb9a09fd50000000000000000000000000000000000000000000000000000000081526004810192909252519186169163b9a09fd591602480820192602092909190829003018186803b15801561116b57600080fd5b505afa15801561117f573d6000803e3d6000fd5b505050506040513d602081101561119557600080fd5b5051600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92831617908190551661124657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5374616b65644c50546f6b656e3a204e4f5f4741554745000000000000000000604482015290519081900360640190fd5b600f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff851617905561129260108383614106565b506112da73ffffffffffffffffffffffffffffffffffffffff8416867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63ffffffff612aac16565b600e546113279073ffffffffffffffffffffffffffffffffffffffff8a811691167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63ffffffff612aac16565b60005b818110156113ad576113a5867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85858581811061136357fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612aac9092919063ffffffff16565b60010161132a565b505050505050505050565b60095473ffffffffffffffffffffffffffffffffffffffff161561143d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f496d7065726d61783a20464143544f52595f414c52454144595f534554000000604482015290519081900360640190fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055565b600b5460009060ff166114dd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905560085460009061152a9073ffffffffffffffffffffffffffffffffffffffff16612c89565b600e54604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905192935060009273ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b1580156115a157600080fd5b505afa1580156115b5573d6000803e3d6000fd5b505050506040513d60208110156115cb57600080fd5b5051600e54604080517fb6b55f2500000000000000000000000000000000000000000000000000000000815260048101869052905192935073ffffffffffffffffffffffffffffffffffffffff9091169163b6b55f259160248082019260009290919082900301818387803b15801561164357600080fd5b505af1158015611657573d6000803e3d6000fd5b5050600e54604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000945073ffffffffffffffffffffffffffffffffffffffff90921692506370a08231916024808301926020929190829003018186803b1580156116ce57600080fd5b505afa1580156116e2573d6000803e3d6000fd5b505050506040513d60208110156116f857600080fd5b5051905061172f611707610e47565b610a7f670de0b6b3a7640000611723858763ffffffff612d2b16565b9063ffffffff61262816565b93506003546000141561175d5761174e846103e863ffffffff612d2b16565b935061175d60006103e8612d6d565b600084116117cc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5374616b65644c50546f6b656e3a204d494e545f414d4f554e545f5a45524f00604482015290519081900360640190fd5b6117d68585612d6d565b6040805184815260208101869052815173ffffffffffffffffffffffffffffffffffffffff88169233927f2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee929081900390910190a3505050611836612e1e565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055919050565b66470de4df82000081565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b60046020526000908152604090205481565b601081815481106118ac57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60076020526000908152604090205481565b600b5460009060ff1661195957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055306000908152600460205260409020546119b5670de0b6b3a7640000610a7f6119a8610e47565b849063ffffffff61262816565b915060008211611a10576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806142a16021913960400191505060405180910390fd5b600a54821115611a8157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5374616b65644c50546f6b656e3a20494e53554646494349454e545f43415348604482015290519081900360640190fd5b611a8b3082612efa565b600e54604080517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815260048101859052905173ffffffffffffffffffffffffffffffffffffffff90921691632e1a7d4d9160248082019260009290919082900301818387803b158015611afe57600080fd5b505af1158015611b12573d6000803e3d6000fd5b50505050611b208383612fbe565b6040805183815260208101839052815173ffffffffffffffffffffffffffffffffffffffff86169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a350611836612e1e565b60018054604080516020600284861615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156108b75780601f1061088c576101008083540402835291602001916108b7565b600e5473ffffffffffffffffffffffffffffffffffffffff1681565b6000610b58338484612804565b600a5481565b6103e881565b600b5460ff16611c9c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600a54600854604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611d80938593611d7b93919273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b158015611d4357600080fd5b505afa158015611d57573d6000803e3d6000fd5b505050506040513d6020811015611d6d57600080fd5b50519063ffffffff612d2b16565b612fbe565b50600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60095473ffffffffffffffffffffffffffffffffffffffff1681565b600f5473ffffffffffffffffffffffffffffffffffffffff1681565b600c5473ffffffffffffffffffffffffffffffffffffffff1681565b611e32878787878787877f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96131ca565b611e3d8787876126e4565b50505050505050565b600560209081526000928352604080842090915290825290205481565b6040518060400160405280600c81526020017f536f6c69646c794261736535000000000000000000000000000000000000000081525081565b600854604080517febeb31db000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff169163ebeb31db916004808301926020929190829003018186803b158015611f0757600080fd5b505afa158015611f1b573d6000803e3d6000fd5b505050506040513d6020811015611f3157600080fd5b5051905090565b600d5473ffffffffffffffffffffffffffffffffffffffff1681565b600b5460ff16611fc557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055333214611ff957600080fd5b600061200361291d565b90508061201057506124cb565b6000670de0b6b3a76400006120328366470de4df82000063ffffffff61262816565b8161203957fe5b600f5491900491506120689073ffffffffffffffffffffffffffffffffffffffff16338363ffffffff61346d16565b600f54600b546000918291610100900473ffffffffffffffffffffffffffffffffffffffff908116911614806120bb5750600f54600c5473ffffffffffffffffffffffffffffffffffffffff9081169116145b1561214557600f54600b54610100900473ffffffffffffffffffffffffffffffffffffffff90811691161461211557600c54600b5473ffffffffffffffffffffffffffffffffffffffff918216916101009091041661213b565b600b54600c5473ffffffffffffffffffffffffffffffffffffffff610100909204821691165b909250905061231d565b600080612150613643565b600f5491935091506121889073ffffffffffffffffffffffffffffffffffffffff1683612183898963ffffffff612d2b16565b613b00565b600b5473ffffffffffffffffffffffffffffffffffffffff8381166101009092041614806121d05750600c5473ffffffffffffffffffffffffffffffffffffffff8381169116145b1561225757600b5473ffffffffffffffffffffffffffffffffffffffff838116610100909204161461222757600c54600b5473ffffffffffffffffffffffffffffffffffffffff918216916101009091041661224d565b600b54600c5473ffffffffffffffffffffffffffffffffffffffff610100909204821691165b909450925061231a565b6122bd82821561227f57600c5473ffffffffffffffffffffffffffffffffffffffff1661229e565b600b54610100900473ffffffffffffffffffffffffffffffffffffffff165b6121838573ffffffffffffffffffffffffffffffffffffffff16612c89565b80156122ee57600c54600b5473ffffffffffffffffffffffffffffffffffffffff9182169161010090910416612314565b600b54600c5473ffffffffffffffffffffffffffffffffffffffff610100909204821691165b90945092505b50505b600061233e8373ffffffffffffffffffffffffffffffffffffffff16612c89565b90506000811161234a57fe5b600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156123b557600080fd5b505afa1580156123c9573d6000803e3d6000fd5b505050506040513d60608110156123df57600080fd5b508051602090910151600b546dffffffffffffffffffffffffffff92831694509116915060009073ffffffffffffffffffffffffffffffffffffffff87811661010090920416146124305781612432565b825b905060006124408583613c91565b905061244d878783613b00565b6124868787612462888563ffffffff612d2b16565b6124818a73ffffffffffffffffffffffffffffffffffffffff16612c89565b613d12565b50604080518a8152602081018a9052815133927fc003f45bc224d116b6d079100d4ab57a5b9633244c47a5a92a176c5b79a85f28928290030190a25050505050505050505b6124d3612e1e565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600b5460ff1661257157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556124d3612e1e565b60006e010000000000000000000000000000821061262057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f5374616b65644c50546f6b656e3a205341464531313200000000000000000000604482015290519081900360640190fd5b50805b919050565b60008261263757506000610b5c565b8282028284828161264457fe5b041461269b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806143146021913960400191505060405180910390fd5b9392505050565b600061269b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613e10565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260056020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600081848411156127fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127c15781810151838201526020016127a9565b50505050905090810190601f1680156127ee5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b604080518082018252601b81527f496d7065726d61783a205452414e534645525f544f4f5f48494748000000000060208083019190915273ffffffffffffffffffffffffffffffffffffffff861660009081526004909152919091205461287291839063ffffffff61275316565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526004602052604080822093909355908416815220546128b4908263ffffffff613e8f16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600e54604080517f3d18b912000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691633d18b912916004808301928692919082900301818387803b15801561298857600080fd5b505af115801561299c573d6000803e3d6000fd5b5050600f546129c3925073ffffffffffffffffffffffffffffffffffffffff169050612c89565b905090565b81516129db90600090602085019061418e565b5080516129ef90600190602084019061418e565b5060405146908060526142c282396040805191829003605201822086516020978801208383018352600184527f310000000000000000000000000000000000000000000000000000000000000093880193909352815180880191909152808201929092527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606083015260808201939093523060a0808301919091528351808303909101815260c090910190925250805192019190912060065550565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b300000000000000000000000000000000000000000000000000000000178152925182516000946060949389169392918291908083835b60208310612b8257805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612b45565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612be4576040519150601f19603f3d011682016040523d82523d6000602084013e612be9565b606091505b5091509150818015612c17575080511580612c175750808060200190516020811015612c1457600080fd5b50515b612c8257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f2173616665417070726f76650000000000000000000000000000000000000000604482015290519081900360640190fd5b5050505050565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009173ffffffffffffffffffffffffffffffffffffffff8416916370a0823191602480820192602092909190829003018186803b158015612cf957600080fd5b505afa158015612d0d573d6000803e3d6000fd5b505050506040513d6020811015612d2357600080fd5b505192915050565b600061269b83836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250612753565b600354612d80908263ffffffff613e8f16565b60035573ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040902054612db9908263ffffffff613e8f16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526004602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600e54604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015612e8f57600080fd5b505afa158015612ea3573d6000803e3d6000fd5b505050506040513d6020811015612eb957600080fd5b5051600a8190556040805182815290519192507f8a0df8ef054fae2c3d2d19a7b322e864870cc9fd3cb07fb9526309c596244bf4919081900360200190a150565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040902054612f30908263ffffffff612d2b16565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260046020526040902055600354612f69908263ffffffff612d2b16565b60035560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600854604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff86811660248301526044808301879052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009560609594169382918083835b602083106130c457805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613087565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613126576040519150601f19603f3d011682016040523d82523d6000602084013e61312b565b606091505b5091509150818015613159575080511580613159575080806020019051602081101561315657600080fd5b50515b6131c457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a205452414e534645525f4641494c454400000000000000604482015290519081900360640190fd5b50505050565b4285101561323957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496d7065726d61783a2045585049524544000000000000000000000000000000604482015290519081900360640190fd5b60065473ffffffffffffffffffffffffffffffffffffffff808a1660008181526007602090815260408083208054600180820190925582518085018a905280840196909652958e166060860152608085018d905260a085019590955260c08085018c90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff8a166101828501526101a284018990526101c28401889052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa15801561337b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116158015906133f657508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b61346157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e56414c49445f5349474e41545552450000000000604482015290519081900360640190fd5b50505050505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000178152925182516000946060949389169392918291908083835b6020831061354357805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613506565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146135a5576040519150601f19603f3d011682016040523d82523d6000602084013e6135aa565b606091505b50915091508180156135d85750805115806135d857508080602001905160208110156135d557600080fd5b50515b612c8257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f21736166655472616e7366657200000000000000000000000000000000000000604482015290519081900360640190fd5b600080805b60105481101561374c576010818154811061365f57fe5b600091825260209091200154600b54610100900473ffffffffffffffffffffffffffffffffffffffff908116911614156136cc57601081815481106136a057fe5b600091825260208220015473ffffffffffffffffffffffffffffffffffffffff1693509150613afc9050565b601081815481106136d957fe5b600091825260209091200154600c5473ffffffffffffffffffffffffffffffffffffffff90811691161415613744576010818154811061371557fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16925060019150613afc9050565b600101613648565b50600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156137b857600080fd5b505afa1580156137cc573d6000803e3d6000fd5b505050506040513d60608110156137e257600080fd5b5080516020909101516dffffffffffffffffffffffffffff918216935016905061380a614208565b5060408051808201909152600b5473ffffffffffffffffffffffffffffffffffffffff61010090910481168252600c54166020820152613848614208565b6040518060400160405280858152602001848152509050601060008154811061386d57fe5b600091825260208083209190910154600d54604080517fc45a0155000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff9384169b5094995089948594939092169263c45a015592600480840193829003018186803b1580156138ee57600080fd5b505afa158015613902573d6000803e3d6000fd5b505050506040513d602081101561391857600080fd5b5051905060005b601054811015613af45760005b6002811015613aeb5760008373ffffffffffffffffffffffffffffffffffffffff16636801cc3088846002811061395f57fe5b60200201516010868154811061397157fe5b6000918252602080832090910154604080517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b16815273ffffffffffffffffffffffffffffffffffffffff958616600482015294909116602485015260448401929092529051606480840193829003018186803b1580156139f657600080fd5b505afa158015613a0a573d6000803e3d6000fd5b505050506040513d6020811015613a2057600080fd5b5051905073ffffffffffffffffffffffffffffffffffffffff8116613a455750613ae3565b6000613a9e878460028110613a5657fe5b6020020151610a7f670de0b6b3a7640000611723868d8960028110613a7757fe5b602002015173ffffffffffffffffffffffffffffffffffffffff169063ffffffff613f0316565b905085811115613ae057809550829a5060108481548110613abb57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169b505b50505b60010161392c565b5060010161391f565b505050505050505b9091565b613b0a8382613fb5565b600d54604080517f13dcfc590000000000000000000000000000000000000000000000000000000081526004810184905260006024820181905273ffffffffffffffffffffffffffffffffffffffff87811660448401528681166064840152608483018290523060a48401524260c4840152925192909316926313dcfc599260e48084019382900301818387803b158015613ba457600080fd5b505af1158015613bb8573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526020811015613bff57600080fd5b8101908080516040519392919084640100000000821115613c1f57600080fd5b908301906020820185811115613c3457600080fd5b8251866020820283011164010000000082111715613c5157600080fd5b82525081516020918201928201910280838360005b83811015613c7e578181015183820152602001613c66565b5050505090500160405250505050505050565b600080613ca66107cd8463ffffffff61262816565b90506000613cc4610f946117238681896103e863ffffffff61262816565b90506000613cf0613ceb83613cdf868063ffffffff61262816565b9063ffffffff613e8f16565b6140b5565b9050613d086107ca610a7f838663ffffffff612d2b16565b9695505050505050565b6000613d1e8584613fb5565b613d288483613fb5565b600d54604080517f5a47ddc300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88811660048301528781166024830152600060448301819052606483018890526084830187905260a4830181905260c483018190523060e4840152426101048401529251931692635a47ddc39261012480840193606093929083900390910190829087803b158015613dd857600080fd5b505af1158015613dec573d6000803e3d6000fd5b505050506040513d6060811015613e0257600080fd5b506040015195945050505050565b60008183613e79576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283519092839260449091019190850190808383600083156127c15781810151838201526020016127a9565b506000838581613e8557fe5b0495945050505050565b60008282018381101561269b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015613f8257600080fd5b505afa158015613f96573d6000803e3d6000fd5b505050506040513d6020811015613fac57600080fd5b50519392505050565b600d54604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff92831660248201529051839285169163dd62ed3e916044808301926020929190829003018186803b15801561402e57600080fd5b505afa158015614042573d6000803e3d6000fd5b505050506040513d602081101561405857600080fd5b505110614064576140b1565b600d546140b19073ffffffffffffffffffffffffffffffffffffffff84811691167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63ffffffff612aac16565b5050565b600060038211156140f8575080600160028204015b818110156140f2578091506002818285816140e157fe5b0401816140ea57fe5b0490506140ca565b50612623565b811561262357506001919050565b82805482825590600052602060002090810192821561417e579160200282015b8281111561417e5781547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff843516178255602090920191600190910190614126565b5061418a929150614226565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106141cf57805160ff19168380011785556141fc565b828001600101855582156141fc579182015b828111156141fc5782518255916020019190600101906141e1565b5061418a929150614262565b60405180604001604052806002906020820280388339509192915050565b610e9491905b8082111561418a5780547fffffffffffffffffffffffff000000000000000000000000000000000000000016815560010161422c565b610e9491905b8082111561418a576000815560010161426856fe5374616b65644c50546f6b656e3a20494e53554646494349454e545f52455345525645535374616b65644c50546f6b656e3a2052454445454d5f414d4f554e545f5a45524f454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775374616b65644c50546f6b656e3a20464143544f52595f414c52454144595f534554a265627a7a723158205ab633da4c4932c94cbe39eb94216824ade10d13767a7a194c28b5c088e0a19064736f6c634300051000325374616b65644c50546f6b656e466163746f72793a20535441424c455f504149525374616b65644c50546f6b656e466163746f72793a20504f4f4c5f455849535453a265627a7a723158200bb26df77c506d79dfcc6b1a1db7d1441e4fb4fe7bee1ef782006f7465a4d95564736f6c63430005100032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000cc6169aa1e879d3a4227536671f85afdb2d23fad00000000000000000000000017fa9da6e01ad59513707f92033a6eb03ccb10b4000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f1900000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000029219dd400f2bf60e5a23d13be72b486d4038894
-----Decoded View---------------
Arg [0] : _router (address): 0xcC6169aA1E879d3a4227536671F85afdb2d23fAD
Arg [1] : _voter (address): 0x17fa9dA6e01aD59513707F92033a6eb03CcB10B4
Arg [2] : _rewardsToken (address): 0xddF26B42C1d903De8962d3F79a74a501420d5F19
Arg [3] : _bridgeTokens (address[]): 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38,0x29219dd400f2Bf60E5a23d13Be72B486D4038894
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000cc6169aa1e879d3a4227536671f85afdb2d23fad
Arg [1] : 00000000000000000000000017fa9da6e01ad59513707f92033a6eb03ccb10b4
Arg [2] : 000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [5] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [6] : 00000000000000000000000029219dd400f2bf60e5a23d13be72b486d4038894
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.