Overview
ETH Balance
0.012696502865703718 ETH
Eth Value
$42.28 (@ $3,329.99/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,447 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap Exact Token... | 21292634 | 57 days ago | IN | 0.00447308 ETH | 0.00350148 | ||||
Swap Exact Token... | 21292608 | 57 days ago | IN | 0.00447308 ETH | 0.0032582 | ||||
Swap Exact Token... | 21232810 | 66 days ago | IN | 0.00522448 ETH | 0.00310075 | ||||
Swap Exact Token... | 21215458 | 68 days ago | IN | 0.00517278 ETH | 0.00488282 | ||||
Swap Exact Token... | 21215449 | 68 days ago | IN | 0.00517411 ETH | 0.00502424 | ||||
Remove Liquidity... | 21208143 | 69 days ago | IN | 0 ETH | 0.00219368 | ||||
Swap Exact Token... | 21188033 | 72 days ago | IN | 0.00509562 ETH | 0.00836601 | ||||
Swap Exact Token... | 21171351 | 74 days ago | IN | 0.00485961 ETH | 0.00687687 | ||||
Remove Liquidity... | 21162120 | 76 days ago | IN | 0 ETH | 0.00280773 | ||||
Swap Exact Token... | 21161717 | 76 days ago | IN | 0.00501133 ETH | 0.0058006 | ||||
Add Liquidity ET... | 21161355 | 76 days ago | IN | 22 ETH | 0.00298965 | ||||
Remove Liquidity... | 21161337 | 76 days ago | IN | 0 ETH | 0.00290488 | ||||
Swap Exact Token... | 21161183 | 76 days ago | IN | 0.0049961 ETH | 0.00397028 | ||||
Remove Liquidity... | 21131675 | 80 days ago | IN | 0 ETH | 0.00415274 | ||||
Swap Exact Token... | 21127898 | 80 days ago | IN | 0.00610558 ETH | 0.00464689 | ||||
Swap Exact Token... | 21124821 | 81 days ago | IN | 0.00656388 ETH | 0.00168003 | ||||
Remove Liquidity... | 21124814 | 81 days ago | IN | 0 ETH | 0.00101984 | ||||
Swap Exact Token... | 21122839 | 81 days ago | IN | 0.00650488 ETH | 0.00520813 | ||||
Swap Exact Token... | 21122805 | 81 days ago | IN | 0.00650488 ETH | 0.00507999 | ||||
Remove Liquidity... | 21122330 | 81 days ago | IN | 0 ETH | 0.00419964 | ||||
Add Liquidity ET... | 21122282 | 81 days ago | IN | 0.00100042 ETH | 0.00414754 | ||||
Swap Exact ETH F... | 21122262 | 81 days ago | IN | 0.00546955 ETH | 0.00619906 | ||||
Swap Exact Token... | 21121794 | 81 days ago | IN | 0.00654679 ETH | 0.00163076 | ||||
Swap Exact Token... | 21119942 | 82 days ago | IN | 0.00660124 ETH | 0.00159426 | ||||
Swap Exact Token... | 21119936 | 82 days ago | IN | 0.00660124 ETH | 0.001477 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21292634 | 57 days ago | 0.02907602 ETH | ||||
21292634 | 57 days ago | 0.02907602 ETH | ||||
21292634 | 57 days ago | 0.00027956 ETH | ||||
21292634 | 57 days ago | 0.00041935 ETH | ||||
21292634 | 57 days ago | 0.00062902 ETH | ||||
21292634 | 57 days ago | 0.00104837 ETH | ||||
21292634 | 57 days ago | 0.00069891 ETH | ||||
21292634 | 57 days ago | 0.00139783 ETH | ||||
21292608 | 57 days ago | 0.05100615 ETH | ||||
21292608 | 57 days ago | 0.05100615 ETH | ||||
21292608 | 57 days ago | 0.00027956 ETH | ||||
21292608 | 57 days ago | 0.00041935 ETH | ||||
21292608 | 57 days ago | 0.00062902 ETH | ||||
21292608 | 57 days ago | 0.00104837 ETH | ||||
21292608 | 57 days ago | 0.00069891 ETH | ||||
21292608 | 57 days ago | 0.00139783 ETH | ||||
21232810 | 66 days ago | 0.0253564 ETH | ||||
21232810 | 66 days ago | 0.0253564 ETH | ||||
21232810 | 66 days ago | 0.00032384 ETH | ||||
21232810 | 66 days ago | 0.00048576 ETH | ||||
21232810 | 66 days ago | 0.00072864 ETH | ||||
21232810 | 66 days ago | 0.0012144 ETH | ||||
21232810 | 66 days ago | 0.0008096 ETH | ||||
21232810 | 66 days ago | 0.0016192 ETH | ||||
21221508 | 67 days ago | 0.11152202 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
XpRouter
Compiler Version
v0.6.6+commit.6c089d02
Optimization Enabled:
Yes with 200 runs
Other Settings:
istanbul EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity =0.6.6; import "./IXpRouter.sol"; interface IXpPair { event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 value); function setMetadata( string calldata website, string calldata image, string calldata description, string calldata chat, string calldata social ) external; function websiteUrl() external view returns (string memory); function imageUrl() external view returns (string memory); function tokenDescription() external view returns (string memory); function chatUrl() external view returns (string memory); function socialUrl() external view returns (string memory); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function updateProvider(address user) external; function euler(uint256) external view returns (uint256); function viewShare() external view returns (uint256 share); function claimShare() external; function poolBalance() external view returns (uint256); function totalCollected() external view returns (uint256); function setProtocol(address) external; function protocol() external view returns (address); function payableProtocol() external view returns (address payable origin); function creator() external view returns (address); function renounce() external; function setFees() external; function updateFees(uint8, uint8, uint8, uint8) external; function buyLpFee() external view returns (uint8); function sellLpFee() external view returns (uint8); function buyProtocolFee() external view returns (uint8); function sellProtocolFee() external view returns (uint8); function buyTotalFee() external view returns (uint8); function sellTotalFee() external view returns (uint8); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function first_mint( address to, uint8 buyLp, uint8 sellLp, uint8 buyProtocol, uint8 sellProtocol, address protocolAddress ) external returns (uint256 liquidity); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address _token0, address _token1) external; } library SafeMath { function add(uint256 x, uint256 y) internal pure returns (uint256 z) { require((z = x + y) >= x, "ds-math-add-overflow"); } function sub(uint256 x, uint256 y) internal pure returns (uint256 z) { require((z = x - y) <= x, "ds-math-sub-underflow"); } function mul(uint256 x, uint256 y) internal pure returns (uint256 z) { require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow"); } } library UniswapV2Library { using SafeMath for uint256; // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, "UniswapV2Library: IDENTICAL_ADDRESSES"); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), "UniswapV2Library: ZERO_ADDRESS"); } // calculates the CREATE2 address for a pair without making any external calls function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) { (address token0, address token1) = sortTokens(tokenA, tokenB); pair = address( uint256( keccak256( abi.encodePacked( hex"ff", factory, keccak256(abi.encodePacked(token0, token1)), hex"cc3cfdf52516f231101bbe110b15f3c47658e576e20d8ad98b7fb074339665e1" // init code hash ) ) ) ); } // fetches and sorts the reserves for a pair function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint256 reserveA, uint256 reserveB) { (address token0,) = sortTokens(tokenA, tokenB); address pair = pairFor(factory, tokenA, tokenB); (uint256 reserve0, uint256 reserve1,) = IXpPair(pair).getReserves(); (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0); } // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) internal pure returns (uint256 amountB) { require(amountA > 0, "UniswapV2Library: INSUFFICIENT_AMOUNT"); require(reserveA > 0 && reserveB > 0, "UniswapV2Library: INSUFFICIENT_LIQUIDITY"); amountB = amountA.mul(reserveB) / reserveA; } // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) internal pure returns (uint256 amountOut) { require(amountIn > 0, "UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT"); require(reserveIn > 0 && reserveOut > 0, "UniswapV2Library: INSUFFICIENT_LIQUIDITY"); uint256 amountInWithFee = amountIn.mul(1000); //997 uint256 numerator = amountInWithFee.mul(reserveOut); uint256 denominator = reserveIn.mul(1000).add(amountInWithFee); amountOut = numerator / denominator; } // given an output amount of an asset and pair reserves, returns a required input amount of the other asset function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) internal pure returns (uint256 amountIn) { require(amountOut > 0, "UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT"); require(reserveIn > 0 && reserveOut > 0, "UniswapV2Library: INSUFFICIENT_LIQUIDITY"); uint256 numerator = reserveIn.mul(amountOut).mul(1000); uint256 denominator = reserveOut.sub(amountOut).mul(1000); //997 amountIn = (numerator / denominator).add(1); } // performs chained getAmountOut calculations on any number of pairs function getAmountsOut(address factory, uint256 amountIn, address[] memory path) internal view returns (uint256[] memory amounts) { require(path.length >= 2, "UniswapV2Library: INVALID_PATH"); amounts = new uint256[](path.length); amounts[0] = amountIn; for (uint256 i; i < path.length - 1; i++) { (uint256 reserveIn, uint256 reserveOut) = getReserves(factory, path[i], path[i + 1]); amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut); } } // performs chained getAmountIn calculations on any number of pairs function getAmountsIn(address factory, uint256 amountOut, address[] memory path) internal view returns (uint256[] memory amounts) { require(path.length >= 2, "UniswapV2Library: INVALID_PATH"); amounts = new uint256[](path.length); amounts[amounts.length - 1] = amountOut; for (uint256 i = path.length - 1; i > 0; i--) { (uint256 reserveIn, uint256 reserveOut) = getReserves(factory, path[i - 1], path[i]); amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut); } } } interface IXpFactory { event PairCreated(address indexed token0, address indexed token1, address pair, uint256); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function routerSetter() external view returns (address); function router() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint256) external view returns (address pair); function allPairsLength() external view returns (uint256); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; function setRouterSetter(address) external; function setRouter(address) external; } library TransferHelper { 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))), "TransferHelper::safeApprove: approve failed" ); } 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))), "TransferHelper::safeTransfer: transfer failed" ); } 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))), "TransferHelper::transferFrom: transferFrom failed" ); } function safeTransferETH(address to, uint256 value) internal { (bool success,) = to.call{value: value}(new bytes(0)); require(success, "TransferHelper::safeTransferETH: ETH transfer failed"); } } interface IERC20 { event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 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 (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); } interface IWETH { function deposit() external payable; function transfer(address to, uint256 value) external returns (bool); function withdraw(uint256) external; } interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); function getRoundData(uint80 _roundId) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); } interface IStakingContract { function stake(uint256, address, address) external; } contract XpRouter is IXpRouter { using SafeMath for uint256; address public immutable override factory; address public immutable override WETH; address payable public treasury; AggregatorV3Interface internal priceFeed; address payable public teamWallet; address payable public stakingContractXpLp; address payable public stakingContractXp; address public canUpdateTokenFactory; address public tokenFactory; mapping(address => bool) public override exemptFromFee; function setTokenFactory(address _tokenFactory) external { require(msg.sender == canUpdateTokenFactory, "XpRouter: FORBIDDEN"); tokenFactory = _tokenFactory; } function addExemptFromFee(address _address) external { // only token factory or teamwallet can add exempt from fee require(msg.sender == tokenFactory || msg.sender == teamWallet, "XpRouter: FORBIDDEN"); exemptFromFee[_address] = true; } modifier ensure(uint256 deadline) { require(deadline >= block.timestamp, "XpRouter: EXPIRED"); _; } constructor( address _factory, address _WETH, address _oracleAddress, address _teamWallet, address _stakingContractXpLp, address _stakingContractXp ) public { factory = _factory; WETH = _WETH; priceFeed = AggregatorV3Interface(_oracleAddress); treasury = msg.sender; teamWallet = payable(_teamWallet); stakingContractXpLp = payable(_stakingContractXpLp); stakingContractXp = payable(_stakingContractXp); canUpdateTokenFactory = msg.sender; } receive() external payable { assert(msg.sender == WETH); // only accept ETH via fallback from the WETH contract } function getEthUsdcPrice() internal view returns (uint256) { (, int256 price,,,) = priceFeed.latestRoundData(); require(price > 0, "Invalid price"); return uint256(price / 100); } function usdcToEth(uint256 usdcAmount) public view returns (uint256) { uint256 ethUsdcPrice = getEthUsdcPrice(); return (usdcAmount * 1e6 * 1e18 / ethUsdcPrice); } // **** HARDSTAKE ERC20 & LP **** function updateSelf(address _token) public override { IXpPair pair = IXpPair(_token); require(IXpFactory(factory).getPair(pair.token0(), pair.token1()) == _token); pair.updateProvider(msg.sender); } function safeTransferLp(address _token, address to, uint256 _amount) public override { require(_amount > 0, "Amount must be greater than 0"); IXpPair pair = IXpPair(_token); require(IXpFactory(factory).getPair(pair.token0(), pair.token1()) == _token); TransferHelper.safeTransferFrom(_token, msg.sender, to, _amount); pair.updateProvider(msg.sender); } function hardstake(address _contract, address _token, uint256 _amount) public override { require(_amount > 0, "Amount must be greater than 0"); TransferHelper.safeTransferFrom(_token, msg.sender, _contract, _amount); try IXpPair(_token).token0() returns (address token0) { address token1 = IXpPair(_token).token1(); if (IXpFactory(factory).getPair(token0, token1) == _token) { IXpPair(_token).updateProvider(msg.sender); } } catch {} IStakingContract(_contract).stake(_amount, msg.sender, _token); } // **** ADD LIQUIDITY **** function _addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin ) internal virtual returns (uint256 amountA, uint256 amountB) { // create the pair if it doesn't exist yet if (IXpFactory(factory).getPair(tokenA, tokenB) == address(0)) { address pair = IXpFactory(factory).createPair(tokenA, tokenB); } (uint256 reserveA, uint256 reserveB) = UniswapV2Library.getReserves(factory, tokenA, tokenB); if (reserveA == 0 && reserveB == 0) { (amountA, amountB) = (amountADesired, amountBDesired); } else { uint256 amountBOptimal = UniswapV2Library.quote(amountADesired, reserveA, reserveB); if (amountBOptimal <= amountBDesired) { require(amountBOptimal >= amountBMin, "XpRouter: INSUFFICIENT_B_AMOUNT"); (amountA, amountB) = (amountADesired, amountBOptimal); } else { uint256 amountAOptimal = UniswapV2Library.quote(amountBDesired, reserveB, reserveA); assert(amountAOptimal <= amountADesired); require(amountAOptimal >= amountAMin, "XpRouter: INSUFFICIENT_A_AMOUNT"); (amountA, amountB) = (amountAOptimal, amountBDesired); } } } function launch( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, uint8 buyLpFee, uint8 sellLpFee, uint8 buyProtocolFee, uint8 sellProtocolFee, address protocolAddress ) external payable virtual override returns (uint256 amountToken, uint256 amountETH, uint256 liquidity) { (amountToken, amountETH) = _addLiquidity(token, WETH, amountTokenDesired, msg.value, amountTokenMin, amountETHMin); address pair = UniswapV2Library.pairFor(factory, token, WETH); TransferHelper.safeTransferFrom(token, msg.sender, pair, amountToken); IWETH(WETH).deposit{value: amountETH}(); assert(IWETH(WETH).transfer(pair, amountETH)); liquidity = IXpPair(pair).first_mint(msg.sender, buyLpFee, sellLpFee, buyProtocolFee, sellProtocolFee, protocolAddress); IXpPair(UniswapV2Library.pairFor(factory, token, WETH)).updateProvider(msg.sender); // refund dust eth, if any if (msg.value > amountETH) TransferHelper.safeTransferETH(msg.sender, msg.value - amountETH); } function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, uint256 deadline ) external payable virtual override ensure(deadline) returns (uint256 amountToken, uint256 amountETH, uint256 liquidity) { (amountToken, amountETH) = _addLiquidity(token, WETH, amountTokenDesired, msg.value, amountTokenMin, amountETHMin); address pair = UniswapV2Library.pairFor(factory, token, WETH); TransferHelper.safeTransferFrom(token, msg.sender, pair, amountToken); IWETH(WETH).deposit{value: amountETH}(); assert(IWETH(WETH).transfer(pair, amountETH)); liquidity = IXpPair(pair).mint(msg.sender); IXpPair(UniswapV2Library.pairFor(factory, token, WETH)).updateProvider(msg.sender); // refund dust eth, if any if (msg.value > amountETH) TransferHelper.safeTransferETH(msg.sender, msg.value - amountETH); } // **** REMOVE LIQUIDITY **** function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) internal ensure(deadline) returns (uint256 amountA, uint256 amountB) { address pair = UniswapV2Library.pairFor(factory, tokenA, tokenB); IXpPair(pair).transferFrom(msg.sender, pair, liquidity); // send liquidity to pair (uint256 amount0, uint256 amount1) = IXpPair(pair).burn(to); (address token0,) = UniswapV2Library.sortTokens(tokenA, tokenB); (amountA, amountB) = tokenA == token0 ? (amount0, amount1) : (amount1, amount0); require(amountA >= amountAMin, "XpRouter: INSUFFICIENT_A_AMOUNT"); require(amountB >= amountBMin, "XpRouter: INSUFFICIENT_B_AMOUNT"); } // **** REMOVE LIQUIDITY (supporting fee-on-transfer tokens) **** function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, uint256 deadline ) public virtual override ensure(deadline) returns (uint256 amountETH) { (, amountETH) = removeLiquidity(token, WETH, liquidity, amountTokenMin, amountETHMin, address(this), deadline); IXpPair(UniswapV2Library.pairFor(factory, token, WETH)).updateProvider(msg.sender); TransferHelper.safeTransfer(token, msg.sender, IERC20(token).balanceOf(address(this))); IWETH(WETH).withdraw(amountETH); TransferHelper.safeTransferETH(msg.sender, amountETH); } // **** SWAP (supporting fee-on-transfer tokens) **** function _swapSupportingFeeOnTransferTokens(address[] memory path, address _to) internal virtual { for (uint256 i; i < path.length - 1; i++) { (address input, address output) = (path[i], path[i + 1]); (address token0,) = UniswapV2Library.sortTokens(input, output); IXpPair pair = IXpPair(UniswapV2Library.pairFor(factory, input, output)); uint256 amountInput; uint256 amountOutput; { // scope to avoid stack too deep errors (uint256 reserve0, uint256 reserve1,) = pair.getReserves(); (uint256 reserveInput, uint256 reserveOutput) = input == token0 ? (reserve0, reserve1) : (reserve1, reserve0); amountInput = IERC20(input).balanceOf(address(pair)).sub(reserveInput); amountOutput = UniswapV2Library.getAmountOut(amountInput, reserveInput, reserveOutput); } (uint256 amount0Out, uint256 amount1Out) = input == token0 ? (uint256(0), amountOutput) : (amountOutput, uint256(0)); address to = i < path.length - 2 ? UniswapV2Library.pairFor(factory, output, path[i + 2]) : _to; pair.swap(amount0Out, amount1Out, to, new bytes(0)); } } function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable virtual override ensure(deadline) { require(path.length == 2, "XpRouter: INVALID_PATH_LENGTH"); IXpPair Pair = IXpPair(UniswapV2Library.pairFor(factory, path[0], path[1])); require(path[0] == WETH, "XpRouter: INVALID_PATH"); uint256 totalBuyFeeInEth = usdcToEth(Pair.buyTotalFee()); require(msg.value > totalBuyFeeInEth, "XpRouter: INSUFFICIENT_ETH_FEE"); uint256 amountIn = msg.value - usdcToEth(Pair.buyTotalFee()); IWETH(WETH).deposit{value: amountIn}(); assert(IWETH(WETH).transfer(UniswapV2Library.pairFor(factory, path[0], path[1]), amountIn)); uint256 balanceBefore = IERC20(path[path.length - 1]).balanceOf(to); _swapSupportingFeeOnTransferTokens(path, to); require( IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin, "XpRouter: INSUFFICIENT_OUTPUT_AMOUNT" ); // 50% of buy protocol fees go to the deployer uint256 buyProtocolFee_ = usdcToEth(Pair.buyProtocolFee()) / 2; // 50% of buy lp fees go to liquidity pool uint256 buyLpFee_ = usdcToEth(Pair.buyLpFee()) / 2; // 50% of buy protocol fees go to the deployer (bool sent1,) = IXpPair(UniswapV2Library.pairFor(factory, path[0], path[1])).payableProtocol().call{ value: buyProtocolFee_ }(""); // 50% of buy lp fees go to liquidity pool (bool sent2,) = UniswapV2Library.pairFor(factory, path[0], path[1]).call{value: buyLpFee_}(""); // 25% of buy protocol and buy lp fees go to the team wallet and staking contract uint256 toTeamWalletAndStaking = (buyProtocolFee_ / 2) + (buyLpFee_ / 2); (bool sent3,) = teamWallet.call{value: toTeamWalletAndStaking}(""); // Of the 25% that goes to staking contract, 60% goes to XpLp and 40% goes to Xp uint256 toStakingContractXpLp = toTeamWalletAndStaking * 60 / 100; uint256 toStakingContractXp = toTeamWalletAndStaking * 40 / 100; (bool sent4,) = stakingContractXpLp.call{value: toStakingContractXpLp}(""); (bool sent5,) = stakingContractXp.call{value: toStakingContractXp}(""); (bool sent6,) = treasury.call{value: usdcToEth(1)}(""); // sent $1 to treasury require(sent1 && sent2 && sent3 && sent4 && sent5 && sent6, "Failed to send Ether"); } function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable virtual override ensure(deadline) { require(path.length == 2, "XpRouter: INVALID_PATH_LENGTH"); IXpPair Pair = IXpPair(UniswapV2Library.pairFor(factory, path[0], path[1])); require(path[path.length - 1] == WETH, "XpRouter: INVALID_PATH"); TransferHelper.safeTransferFrom( path[0], msg.sender, UniswapV2Library.pairFor(factory, path[0], path[1]), amountIn ); _swapSupportingFeeOnTransferTokens(path, address(this)); uint256 amountOut = IERC20(WETH).balanceOf(address(this)); require(amountOut >= amountOutMin, "XpRouter: INSUFFICIENT_OUTPUT_AMOUNT"); if (!exemptFromFee[msg.sender]) { uint256 totalSellFeeInEth = usdcToEth(Pair.sellTotalFee()); require(msg.value >= totalSellFeeInEth, "XpRouter: INSUFFICIENT_ETH_FEE"); _chargeFeesSell(Pair, path); } IWETH(WETH).withdraw(amountOut); TransferHelper.safeTransferETH(to, amountOut); } function _chargeFeesSell(IXpPair pair, address[] memory path) private { // 50% of sell protocol fees go to the deployer uint256 sellProtocolFee_ = usdcToEth(pair.sellProtocolFee()) / 2; // started with $10, took $5 // 50% of sell lp fees go to liquidity pool uint256 sellLpFee_ = usdcToEth(pair.sellLpFee()) / 2; // started with $10, took $5 // 50% of sell protocol fees go to the deployer (bool sent1,) = pair.payableProtocol().call{value: sellProtocolFee_}(""); // sent $5 from protocol fee to team // 50% of sell lp fees go to liquidity pool (bool sent2,) = UniswapV2Library.pairFor(factory, path[0], path[1]).call{value: sellLpFee_}(""); // sent $5 from lp fee to liquidity pool // 25% of sell protocol and sell lp fees go to the team wallet and staking contract uint256 toTeamWalletAndStaking = (sellProtocolFee_ / 2) + (sellLpFee_ / 2); (bool sent3,) = teamWallet.call{value: toTeamWalletAndStaking}(""); // sent 2.5$ from sell protocol and lp fees to team // Of the 25% that goes to staking contract, 60% goes to XpLp and 40% goes to Xp uint256 toStakingContractXpLp = toTeamWalletAndStaking * 60 / 100; uint256 toStakingContractXp = toTeamWalletAndStaking * 40 / 100; (bool sent4,) = stakingContractXpLp.call{value: toStakingContractXpLp}(""); // sent 3$ from sell protocol and lp fees to XpLp (bool sent5,) = stakingContractXp.call{value: toStakingContractXp}(""); // sent 2$ from sell protocol and lp fees to Xp (bool sent6,) = treasury.call{value: usdcToEth(1)}(""); // sent $1 to treasury require(sent1 && sent2 && sent3 && sent4 && sent5 && sent6, "Failed to send Ether"); } // **** LIBRARY FUNCTIONS **** function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) public pure virtual override returns (uint256 amountB) { return UniswapV2Library.quote(amountA, reserveA, reserveB); } function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) public pure virtual override returns (uint256 amountOut) { return UniswapV2Library.getAmountOut(amountIn, reserveIn, reserveOut); } function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) public pure virtual override returns (uint256 amountIn) { return UniswapV2Library.getAmountIn(amountOut, reserveIn, reserveOut); } function getAmountsOut(uint256 amountIn, address[] memory path) public view virtual override returns (uint256[] memory amounts) { return UniswapV2Library.getAmountsOut(factory, amountIn, path); } function getAmountsIn(uint256 amountOut, address[] memory path) public view virtual override returns (uint256[] memory amounts) { return UniswapV2Library.getAmountsIn(factory, amountOut, path); } }
pragma solidity >=0.6.2; interface IXpRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, uint256 deadline ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) external pure returns (uint256 amountB); function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) external pure returns (uint256 amountOut); function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) external pure returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, uint256 deadline ) external returns (uint256 amountETH); function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function launch( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, uint8 buyLpFee, uint8 sellLpFee, uint8 buyProtocolFee, uint8 sellProtocolFee, address protocolAddress ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); function updateSelf(address _token) external; function safeTransferLp(address _token, address to, uint256 _amount) external; function hardstake(address _contract, address _token, uint256 _amount) external; function exemptFromFee(address _address) external returns (bool); }
{ "remappings": [ "forge-std/=lib/forge-std/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "istanbul", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WETH","type":"address"},{"internalType":"address","name":"_oracleAddress","type":"address"},{"internalType":"address","name":"_teamWallet","type":"address"},{"internalType":"address","name":"_stakingContractXpLp","type":"address"},{"internalType":"address","name":"_stakingContractXp","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addExemptFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountTokenDesired","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"canUpdateTokenFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"exemptFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountIn","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsIn","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"hardstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountTokenDesired","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"uint8","name":"buyLpFee","type":"uint8"},{"internalType":"uint8","name":"sellLpFee","type":"uint8"},{"internalType":"uint8","name":"buyProtocolFee","type":"uint8"},{"internalType":"uint8","name":"sellProtocolFee","type":"uint8"},{"internalType":"address","name":"protocolAddress","type":"address"}],"name":"launch","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"reserveA","type":"uint256"},{"internalType":"uint256","name":"reserveB","type":"uint256"}],"name":"quote","outputs":[{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETHSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"safeTransferLp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenFactory","type":"address"}],"name":"setTokenFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContractXp","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingContractXpLp","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETHSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"teamWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"updateSelf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"usdcAmount","type":"uint256"}],"name":"usdcToEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c060405234801561001057600080fd5b506040516200467338038062004673833981810160405260c081101561003557600080fd5b5080516020820151604083015160608085015160808087015160a09788015187851b6001600160601b03199081169093529386901b909116909652600180546001600160a01b03199081166001600160a01b039586161790915560008054339083168117825560028054841694871694909417909355600380548316988616989098179097556004805482169385169390931790925560058054909216179055918216929116906144a290620001d190398061017a5280610e275280610f9152806111655280611666528061176b52806118dc528061195052806120fb528061214f5280612270528061239152806123e7528061241b528061248f52806125dc528061269b52806126f15280612725528061279952806129115250806109f65280610be75280610dbd5280610ee152806112075280611468528061173b52806119825280611cba5280611dc15280612087528061212d528061230752806123c552806125ba52806126cf52806128ef5280612f4152806130c0528061335c52806139435280613e215280613ed25280613f4f52506144a26000f3fe60806040526004361061016a5760003560e01c8063791ac947116100d1578063b6f9de951161008a578063d06ca61f11610064578063d06ca61f146106f8578063e77772fe146107ad578063f6f1e306146107c2578063fe1bfba61461081e576101a3565b8063b6f9de9514610614578063c45a015514610698578063cc4cf868146106ad576101a3565b8063791ac947146104945780637f43d1671461051d57806385f8c25914610550578063ad14df2414610586578063ad5c4648146105c9578063ad615dec146105de576101a3565b80634fa215b5116101235780634fa215b5146103cf57806358e4b731146103e4578063590205301461042b578063599270441461045557806361d027b31461046a57806365d3daca1461047f576101a3565b8063054d50d4146101a85780630eea6e97146101f057806312cde208146102335780631f00ca74146102665780632f73a9f81461036b578063398074f01461039e576101a3565b366101a357336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146101a157fe5b005b600080fd5b3480156101b457600080fd5b506101de600480360360608110156101cb57600080fd5b5080359060208101359060400135610881565b60408051918252519081900360200190f35b3480156101fc57600080fd5b506101a16004803603606081101561021357600080fd5b506001600160a01b03813581169160208101359091169060400135610896565b34801561023f57600080fd5b506101a16004803603602081101561025657600080fd5b50356001600160a01b0316610b52565b34801561027257600080fd5b5061031b6004803603604081101561028957600080fd5b81359190810190604081016020820135600160201b8111156102aa57600080fd5b8201836020820111156102bc57600080fd5b803590602001918460208302840111600160201b831117156102dd57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610be0945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561035757818101518382015260200161033f565b505050509050019250505060405180910390f35b34801561037757600080fd5b506101a16004803603602081101561038e57600080fd5b50356001600160a01b0316610c16565b3480156103aa57600080fd5b506103b3610c8d565b604080516001600160a01b039092168252519081900360200190f35b3480156103db57600080fd5b506103b3610c9c565b3480156103f057600080fd5b506104176004803603602081101561040757600080fd5b50356001600160a01b0316610cab565b604080519115158252519081900360200190f35b34801561043757600080fd5b506101de6004803603602081101561044e57600080fd5b5035610cc0565b34801561046157600080fd5b506103b3610cea565b34801561047657600080fd5b506103b3610cf9565b34801561048b57600080fd5b506103b3610d08565b6101a1600480360360a08110156104aa57600080fd5b813591602081013591810190606081016040820135600160201b8111156104d057600080fd5b8201836020820111156104e257600080fd5b803590602001918460208302840111600160201b8311171561050357600080fd5b91935091506001600160a01b038135169060200135610d17565b34801561052957600080fd5b506101a16004803603602081101561054057600080fd5b50356001600160a01b03166111f6565b34801561055c57600080fd5b506101de6004803603606081101561057357600080fd5b50803590602081013590604001356113f5565b34801561059257600080fd5b506101a1600480360360608110156105a957600080fd5b506001600160a01b03813581169160208101359091169060400135611402565b3480156105d557600080fd5b506103b3611664565b3480156105ea57600080fd5b506101de6004803603606081101561060157600080fd5b5080359060208101359060400135611688565b6101a16004803603608081101561062a57600080fd5b81359190810190604081016020820135600160201b81111561064b57600080fd5b82018360208201111561065d57600080fd5b803590602001918460208302840111600160201b8311171561067e57600080fd5b91935091506001600160a01b038135169060200135611695565b3480156106a457600080fd5b506103b3612085565b3480156106b957600080fd5b506101de600480360360a08110156106d057600080fd5b506001600160a01b0381351690602081013590604081013590606081013590608001356120a9565b34801561070457600080fd5b5061031b6004803603604081101561071b57600080fd5b81359190810190604081016020820135600160201b81111561073c57600080fd5b82018360208201111561074e57600080fd5b803590602001918460208302840111600160201b8311171561076f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612300945050505050565b3480156107b957600080fd5b506103b361232d565b610800600480360360a08110156107d857600080fd5b506001600160a01b03813516906020810135906040810135906060810135906080013561233c565b60408051938452602084019290925282820152519081900360600190f35b610800600480360361012081101561083557600080fd5b506001600160a01b03813581169160208101359160408201359160608101359160ff608083013581169260a081013582169260c082013583169260e08301351691610100013516612690565b600061088e8484846129c8565b949350505050565b600081116108eb576040805162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e2030000000604482015290519081900360640190fd5b6108f782338584612ab8565b816001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561093057600080fd5b505afa92505050801561095557506040513d602081101561095057600080fd5b505160015b61095e57610add565b6000836001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561099957600080fd5b505afa1580156109ad573d6000803e3d6000fd5b505050506040513d60208110156109c357600080fd5b50516040805163e6a4390560e01b81526001600160a01b03858116600483015280841660248301529151929350818716927f00000000000000000000000000000000000000000000000000000000000000009092169163e6a4390591604480820192602092909190829003018186803b158015610a3f57600080fd5b505afa158015610a53573d6000803e3d6000fd5b505050506040513d6020811015610a6957600080fd5b50516001600160a01b03161415610ada57604080516377b83b4560e11b815233600482015290516001600160a01b0386169163ef70768a91602480830192600092919082900301818387803b158015610ac157600080fd5b505af1158015610ad5573d6000803e3d6000fd5b505050505b50505b6040805163a7d545db60e01b8152600481018390523360248201526001600160a01b03848116604483015291519185169163a7d545db9160648082019260009290919082900301818387803b158015610b3557600080fd5b505af1158015610b49573d6000803e3d6000fd5b50505050505050565b6006546001600160a01b0316331480610b7557506002546001600160a01b031633145b610bbc576040805162461bcd60e51b81526020600482015260136024820152722c382937baba32b91d102327a92124a22222a760691b604482015290519081900360640190fd5b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6060610c0d7f00000000000000000000000000000000000000000000000000000000000000008484612c0d565b90505b92915050565b6005546001600160a01b03163314610c6b576040805162461bcd60e51b81526020600482015260136024820152722c382937baba32b91d102327a92124a22222a760691b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b6003546001600160a01b031681565b60076020526000908152604090205460ff1681565b600080610ccb612d5a565b90508069d3c21bcecceda1000000840281610ce257fe5b049392505050565b6002546001600160a01b031681565b6000546001600160a01b031681565b6005546001600160a01b031681565b8042811015610d61576040805162461bcd60e51b8152602060048201526011602482015270161c149bdd5d195c8e8811561412549151607a1b604482015290519081900360640190fd5b60028414610db6576040805162461bcd60e51b815260206004820152601d60248201527f5870526f757465723a20494e56414c49445f504154485f4c454e475448000000604482015290519081900360640190fd5b6000610e1b7f000000000000000000000000000000000000000000000000000000000000000087876000818110610de957fe5b905060200201356001600160a01b031688886001818110610e0657fe5b905060200201356001600160a01b0316612e2a565b90506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001686866000198101818110610e5757fe5b905060200201356001600160a01b03166001600160a01b031614610ebb576040805162461bcd60e51b81526020600482015260166024820152750b0e0a4deeae8cae47440929cac82989288bea082a8960531b604482015290519081900360640190fd5b610f3086866000818110610ecb57fe5b905060200201356001600160a01b031633610f2a7f00000000000000000000000000000000000000000000000000000000000000008a8a6000818110610f0d57fe5b905060200201356001600160a01b03168b8b6001818110610e0657fe5b8b612ab8565b610f6e868680806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250612eea915050565b604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b158015610fd857600080fd5b505afa158015610fec573d6000803e3d6000fd5b505050506040513d602081101561100257600080fd5b50519050878110156110455760405162461bcd60e51b81526004018080602001828103825260248152602001806143f16024913960400191505060405180910390fd5b3360009081526007602052604090205460ff166111635760006110cd836001600160a01b031662afb3256040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b505afa1580156110ad573d6000803e3d6000fd5b505050506040513d60208110156110c357600080fd5b505160ff16610cc0565b905080341015611124576040805162461bcd60e51b815260206004820152601e60248201527f5870526f757465723a20494e53554646494349454e545f4554485f4645450000604482015290519081900360640190fd5b6111618389898080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061320792505050565b505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156111c957600080fd5b505af11580156111dd573d6000803e3d6000fd5b505050506111eb8582613610565b505050505050505050565b6000819050816001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a43905836001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561126d57600080fd5b505afa158015611281573d6000803e3d6000fd5b505050506040513d602081101561129757600080fd5b50516040805163d21220a760e01b815290516001600160a01b0387169163d21220a7916004808301926020929190829003018186803b1580156112d957600080fd5b505afa1580156112ed573d6000803e3d6000fd5b505050506040513d602081101561130357600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926020929190829003018186803b15801561135357600080fd5b505afa158015611367573d6000803e3d6000fd5b505050506040513d602081101561137d57600080fd5b50516001600160a01b03161461139257600080fd5b604080516377b83b4560e11b815233600482015290516001600160a01b0383169163ef70768a91602480830192600092919082900301818387803b1580156113d957600080fd5b505af11580156113ed573d6000803e3d6000fd5b505050505050565b600061088e848484613703565b60008111611457576040805162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e2030000000604482015290519081900360640190fd5b6000839050836001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a43905836001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156114ce57600080fd5b505afa1580156114e2573d6000803e3d6000fd5b505050506040513d60208110156114f857600080fd5b50516040805163d21220a760e01b815290516001600160a01b0387169163d21220a7916004808301926020929190829003018186803b15801561153a57600080fd5b505afa15801561154e573d6000803e3d6000fd5b505050506040513d602081101561156457600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926020929190829003018186803b1580156115b457600080fd5b505afa1580156115c8573d6000803e3d6000fd5b505050506040513d60208110156115de57600080fd5b50516001600160a01b0316146115f357600080fd5b6115ff84338585612ab8565b604080516377b83b4560e11b815233600482015290516001600160a01b0383169163ef70768a91602480830192600092919082900301818387803b15801561164657600080fd5b505af115801561165a573d6000803e3d6000fd5b5050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061088e8484846137f3565b80428110156116df576040805162461bcd60e51b8152602060048201526011602482015270161c149bdd5d195c8e8811561412549151607a1b604482015290519081900360640190fd5b60028414611734576040805162461bcd60e51b815260206004820152601d60248201527f5870526f757465723a20494e56414c49445f504154485f4c454e475448000000604482015290519081900360640190fd5b60006117677f000000000000000000000000000000000000000000000000000000000000000087876000818110610de957fe5b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316868660008181106117a057fe5b905060200201356001600160a01b03166001600160a01b031614611804576040805162461bcd60e51b81526020600482015260166024820152750b0e0a4deeae8cae47440929cac82989288bea082a8960531b604482015290519081900360640190fd5b6000611842826001600160a01b0316633705b3926040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b9050803411611898576040805162461bcd60e51b815260206004820152601e60248201527f5870526f757465723a20494e53554646494349454e545f4554485f4645450000604482015290519081900360640190fd5b60006118d6836001600160a01b0316633705b3926040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b340390507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561193557600080fd5b505af1158015611949573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb6119cb7f00000000000000000000000000000000000000000000000000000000000000008b8b60008181106119ae57fe5b905060200201356001600160a01b03168c8c6001818110610e0657fe5b836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611a1b57600080fd5b505af1158015611a2f573d6000803e3d6000fd5b505050506040513d6020811015611a4557600080fd5b5051611a4d57fe5b600088886000198101818110611a5f57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611ac457600080fd5b505afa158015611ad8573d6000803e3d6000fd5b505050506040513d6020811015611aee57600080fd5b50516040805160208b810282810182019093528b8252929350611b309290918c918c9182918501908490808284376000920191909152508b9250612eea915050565b89611be2828b8b6000198101818110611b4557fe5b905060200201356001600160a01b03166001600160a01b03166370a082318b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611baa57600080fd5b505afa158015611bbe573d6000803e3d6000fd5b505050506040513d6020811015611bd457600080fd5b50519063ffffffff61389f16565b1015611c1f5760405162461bcd60e51b81526004018080602001828103825260248152602001806143f16024913960400191505060405180910390fd5b60006002611c5f866001600160a01b031663cc2b76576040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b81611c6657fe5b04905060006002611ca9876001600160a01b0316636fd3acb46040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b81611cb057fe5b0490506000611d037f00000000000000000000000000000000000000000000000000000000000000008d8d6000818110611ce657fe5b905060200201356001600160a01b03168e8e6001818110610e0657fe5b6001600160a01b031663ccec72fb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d3b57600080fd5b505afa158015611d4f573d6000803e3d6000fd5b505050506040513d6020811015611d6557600080fd5b50516040516001600160a01b03909116908490600081818185875af1925050503d8060008114611db1576040519150601f19603f3d011682016040523d82523d6000602084013e611db6565b606091505b505090506000611e0a7f00000000000000000000000000000000000000000000000000000000000000008e8e6000818110611ded57fe5b905060200201356001600160a01b03168f8f6001818110610e0657fe5b6040516001600160a01b0391909116908490600081818185875af1925050503d8060008114611e55576040519150601f19603f3d011682016040523d82523d6000602084013e611e5a565b606091505b50509050600060028481611e6a57fe5b04600286600254604051929091049290920192506000916001600160a01b03169083908381818185875af1925050503d8060008114611ec5576040519150601f19603f3d011682016040523d82523d6000602084013e611eca565b606091505b505090506000606483603c0281611edd57fe5b60035460405192909104925060646028860204916000916001600160a01b03169084908381818185875af1925050503d8060008114611f38576040519150601f19603f3d011682016040523d82523d6000602084013e611f3d565b606091505b50506004546040519192506000916001600160a01b039091169084908381818185875af1925050503d8060008114611f91576040519150601f19603f3d011682016040523d82523d6000602084013e611f96565b606091505b505060008054919250906001600160a01b0316611fb36001610cc0565b604051600081818185875af1925050503d8060008114611fef576040519150601f19603f3d011682016040523d82523d6000602084013e611ff4565b606091505b505090508880156120025750875b801561200b5750855b80156120145750825b801561201d5750815b80156120265750805b61206e576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b505050505050505050505050505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600081428110156120f5576040805162461bcd60e51b8152602060048201526011602482015270161c149bdd5d195c8e8811561412549151607a1b604482015290519081900360640190fd5b612124877f000000000000000000000000000000000000000000000000000000000000000088888830896138ef565b925061217390507f0000000000000000000000000000000000000000000000000000000000000000887f0000000000000000000000000000000000000000000000000000000000000000612e2a565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b1580156121ca57600080fd5b505af11580156121de573d6000803e3d6000fd5b5050505061226e8733896001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561223d57600080fd5b505afa158015612251573d6000803e3d6000fd5b505050506040513d602081101561226757600080fd5b5051613b65565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156122d457600080fd5b505af11580156122e8573d6000803e3d6000fd5b505050506122f63383613610565b5095945050505050565b6060610c0d7f00000000000000000000000000000000000000000000000000000000000000008484613cb9565b6006546001600160a01b031681565b6000806000834281101561238b576040805162461bcd60e51b8152602060048201526011602482015270161c149bdd5d195c8e8811561412549151607a1b604482015290519081900360640190fd5b6123b9897f00000000000000000000000000000000000000000000000000000000000000008a348b8b613df0565b9094509250600061240b7f00000000000000000000000000000000000000000000000000000000000000008b7f0000000000000000000000000000000000000000000000000000000000000000612e2a565b90506124198a338388612ab8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561247457600080fd5b505af1158015612488573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561250d57600080fd5b505af1158015612521573d6000803e3d6000fd5b505050506040513d602081101561253757600080fd5b505161253f57fe5b604080516335313c2160e11b815233600482015290516001600160a01b03831691636a6278429160248083019260209291908290030181600087803b15801561258757600080fd5b505af115801561259b573d6000803e3d6000fd5b505050506040513d60208110156125b157600080fd5b505192506126007f00000000000000000000000000000000000000000000000000000000000000008b7f0000000000000000000000000000000000000000000000000000000000000000612e2a565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b15801561265757600080fd5b505af115801561266b573d6000803e3d6000fd5b50505050833411156126835761268333853403613610565b5050955095509592505050565b60008060006126c38c7f00000000000000000000000000000000000000000000000000000000000000008d348e8e613df0565b909350915060006127157f00000000000000000000000000000000000000000000000000000000000000008e7f0000000000000000000000000000000000000000000000000000000000000000612e2a565b90506127238d338387612ab8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b15801561277e57600080fd5b505af1158015612792573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb82856040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561281757600080fd5b505af115801561282b573d6000803e3d6000fd5b505050506040513d602081101561284157600080fd5b505161284957fe5b6040805163dc2dc3f360e01b815233600482015260ff808c166024830152808b166044830152808a166064830152881660848201526001600160a01b0387811660a483015291519183169163dc2dc3f39160c4808201926020929091908290030181600087803b1580156128bc57600080fd5b505af11580156128d0573d6000803e3d6000fd5b505050506040513d60208110156128e657600080fd5b505191506129357f00000000000000000000000000000000000000000000000000000000000000008e7f0000000000000000000000000000000000000000000000000000000000000000612e2a565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b15801561298c57600080fd5b505af11580156129a0573d6000803e3d6000fd5b50505050823411156129b8576129b833843403613610565b5099509950999650505050505050565b6000808411612a085760405162461bcd60e51b815260040180806020018281038252602b815260200180614442602b913960400191505060405180910390fd5b600083118015612a185750600082115b612a535760405162461bcd60e51b81526004018080602001828103825260288152602001806143a46028913960400191505060405180910390fd5b6000612a67856103e863ffffffff61409016565b90506000612a7b828563ffffffff61409016565b90506000612aa183612a95886103e863ffffffff61409016565b9063ffffffff6140f316565b9050808281612aac57fe5b04979650505050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b60208310612b3d5780518252601f199092019160209182019101612b1e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612b9f576040519150601f19603f3d011682016040523d82523d6000602084013e612ba4565b606091505b5091509150818015612bd2575080511580612bd25750808060200190516020811015612bcf57600080fd5b50515b6113ed5760405162461bcd60e51b815260040180806020018281038252603181526020018061431a6031913960400191505060405180910390fd5b6060600282511015612c66576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015612c7e57600080fd5b50604051908082528060200260200182016040528015612ca8578160200160208202803683370190505b5090508281600183510381518110612cbc57fe5b60209081029190910101528151600019015b8015612d5257600080612d0b87866001860381518110612cea57fe5b6020026020010151878681518110612cfe57fe5b6020026020010151614142565b91509150612d2d848481518110612d1e57fe5b60200260200101518383613703565b846001850381518110612d3c57fe5b6020908102919091010152505060001901612cce565b509392505050565b600080600160009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015612dab57600080fd5b505afa158015612dbf573d6000803e3d6000fd5b505050506040513d60a0811015612dd557600080fd5b5060200151905060008113612e21576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c696420707269636560981b604482015290519081900360640190fd5b60649005919050565b6000806000612e39858561420f565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fcc3cfdf52516f231101bbe110b15f3c47658e576e20d8ad98b7fb074339665e1609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b60005b600183510381101561320257600080848381518110612f0857fe5b6020026020010151858460010181518110612f1f57fe5b6020026020010151915091506000612f37838361420f565b5090506000612f677f00000000000000000000000000000000000000000000000000000000000000008585612e2a565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015612fa857600080fd5b505afa158015612fbc573d6000803e3d6000fd5b505050506040513d6060811015612fd257600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a81169089161461300857828461300b565b83835b91509150613069828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611baa57600080fd5b95506130768683836129c8565b945050505050600080856001600160a01b0316886001600160a01b0316146130a0578260006130a4565b6000835b91509150600060028c51038a106130bb578a6130fc565b6130fc7f0000000000000000000000000000000000000000000000000000000000000000898e8d600201815181106130ef57fe5b6020026020010151612e2a565b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b8381101561318657818101518382015260200161316e565b50505050905090810190601f1680156131b35780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156131d557600080fd5b505af11580156131e9573d6000803e3d6000fd5b50506001909b019a50612eed9950505050505050505050565b505050565b60006002613247846001600160a01b031663e2a7797e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b8161324e57fe5b04905060006002613291856001600160a01b031663c7b8b46d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b8161329857fe5b0490506000846001600160a01b031663ccec72fb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156132d657600080fd5b505afa1580156132ea573d6000803e3d6000fd5b505050506040513d602081101561330057600080fd5b50516040516001600160a01b03909116908490600081818185875af1925050503d806000811461334c576040519150601f19603f3d011682016040523d82523d6000602084013e613351565b606091505b50509050600061339d7f00000000000000000000000000000000000000000000000000000000000000008660008151811061338857fe5b6020026020010151876001815181106130ef57fe5b6040516001600160a01b0391909116908490600081818185875af1925050503d80600081146133e8576040519150601f19603f3d011682016040523d82523d6000602084013e6133ed565b606091505b505090506000600284816133fd57fe5b04600286600254604051929091049290920192506000916001600160a01b03169083908381818185875af1925050503d8060008114613458576040519150601f19603f3d011682016040523d82523d6000602084013e61345d565b606091505b505090506000606483603c028161347057fe5b60035460405192909104925060646028860204916000916001600160a01b03169084908381818185875af1925050503d80600081146134cb576040519150601f19603f3d011682016040523d82523d6000602084013e6134d0565b606091505b50506004546040519192506000916001600160a01b039091169084908381818185875af1925050503d8060008114613524576040519150601f19603f3d011682016040523d82523d6000602084013e613529565b606091505b505060008054919250906001600160a01b03166135466001610cc0565b604051600081818185875af1925050503d8060008114613582576040519150601f19603f3d011682016040523d82523d6000602084013e613587565b606091505b505090508880156135955750875b801561359e5750855b80156135a75750825b80156135b05750815b80156135b95750805b613601576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b50505050505050505050505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b6020831061365c5780518252601f19909201916020918201910161363d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146136be576040519150601f19603f3d011682016040523d82523d6000602084013e6136c3565b606091505b50509050806132025760405162461bcd60e51b815260040180806020018281038252603481526020018061434b6034913960400191505060405180910390fd5b60008084116137435760405162461bcd60e51b815260040180806020018281038252602c8152602001806142ee602c913960400191505060405180910390fd5b6000831180156137535750600082115b61378e5760405162461bcd60e51b81526004018080602001828103825260288152602001806143a46028913960400191505060405180910390fd5b60006137b26103e86137a6868863ffffffff61409016565b9063ffffffff61409016565b905060006137cc6103e86137a6868963ffffffff61389f16565b90506137e960018284816137dc57fe5b049063ffffffff6140f316565b9695505050505050565b60008084116138335760405162461bcd60e51b81526004018080602001828103825260258152602001806143cc6025913960400191505060405180910390fd5b6000831180156138435750600082115b61387e5760405162461bcd60e51b81526004018080602001828103825260288152602001806143a46028913960400191505060405180910390fd5b8261388f858463ffffffff61409016565b8161389657fe5b04949350505050565b80820382811115610c10576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b600080824281101561393c576040805162461bcd60e51b8152602060048201526011602482015270161c149bdd5d195c8e8811561412549151607a1b604482015290519081900360640190fd5b60006139697f00000000000000000000000000000000000000000000000000000000000000008c8c612e2a565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b1580156139c457600080fd5b505af11580156139d8573d6000803e3d6000fd5b505050506040513d60208110156139ee57600080fd5b50506040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b158015613a3b57600080fd5b505af1158015613a4f573d6000803e3d6000fd5b505050506040513d6040811015613a6557600080fd5b50805160209091015190925090506000613a7f8e8e61420f565b509050806001600160a01b03168e6001600160a01b031614613aa2578183613aa5565b82825b90975095508a871015613aff576040805162461bcd60e51b815260206004820152601f60248201527f5870526f757465723a20494e53554646494349454e545f415f414d4f554e5400604482015290519081900360640190fd5b89861015613b54576040805162461bcd60e51b815260206004820152601f60248201527f5870526f757465723a20494e53554646494349454e545f425f414d4f554e5400604482015290519081900360640190fd5b505050505097509795505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b60208310613be25780518252601f199092019160209182019101613bc3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613c44576040519150601f19603f3d011682016040523d82523d6000602084013e613c49565b606091505b5091509150818015613c77575080511580613c775750808060200190516020811015613c7457600080fd5b50515b613cb25760405162461bcd60e51b815260040180806020018281038252602d815260200180614415602d913960400191505060405180910390fd5b5050505050565b6060600282511015613d12576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015613d2a57600080fd5b50604051908082528060200260200182016040528015613d54578160200160208202803683370190505b5090508281600081518110613d6557fe5b60200260200101818152505060005b6001835103811015612d5257600080613daa87868581518110613d9357fe5b6020026020010151878660010181518110612cfe57fe5b91509150613dcc848481518110613dbd57fe5b602002602001015183836129c8565b848460010181518110613ddb57fe5b60209081029190910101525050600101613d74565b6040805163e6a4390560e01b81526001600160a01b03888116600483015287811660248301529151600092839283927f00000000000000000000000000000000000000000000000000000000000000009092169163e6a4390591604480820192602092909190829003018186803b158015613e6a57600080fd5b505afa158015613e7e573d6000803e3d6000fd5b505050506040513d6020811015613e9457600080fd5b50516001600160a01b03161415613f4757604080516364e329cb60e11b81526001600160a01b038a81166004830152898116602483015291516000927f0000000000000000000000000000000000000000000000000000000000000000169163c9c6539691604480830192602092919082900301818787803b158015613f1957600080fd5b505af1158015613f2d573d6000803e3d6000fd5b505050506040513d6020811015613f4357600080fd5b5050505b600080613f757f00000000000000000000000000000000000000000000000000000000000000008b8b614142565b91509150816000148015613f87575080155b15613f9757879350869250614083565b6000613fa48984846137f3565b905087811161400d5785811015614002576040805162461bcd60e51b815260206004820152601f60248201527f5870526f757465723a20494e53554646494349454e545f425f414d4f554e5400604482015290519081900360640190fd5b889450925082614081565b600061401a8984866137f3565b90508981111561402657fe5b8781101561407b576040805162461bcd60e51b815260206004820152601f60248201527f5870526f757465723a20494e53554646494349454e545f415f414d4f554e5400604482015290519081900360640190fd5b94508793505b505b5050965096945050505050565b60008115806140ab575050808202828282816140a857fe5b04145b610c10576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b80820182811015610c10576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6000806000614151858561420f565b5090506000614161878787612e2a565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561419f57600080fd5b505afa1580156141b3573d6000803e3d6000fd5b505050506040513d60608110156141c957600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b03888116908516146141fc5780826141ff565b81815b909a909950975050505050505050565b600080826001600160a01b0316846001600160a01b031614156142635760405162461bcd60e51b815260040180806020018281038252602581526020018061437f6025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610614283578284614286565b83835b90925090506001600160a01b0382166142e6576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b925092905056fe556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472616e7366657246726f6d206661696c65645472616e7366657248656c7065723a3a736166655472616e736665724554483a20455448207472616e73666572206661696c6564556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e545870526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c6564556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a264697066735822122072cc4dbb6dafd5811b7233e762c37ce004b42fd2a8599deb06febe5fe4d2dd7d64736f6c63430006060033000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b84190000000000000000000000004547bc9cc66725d8a607acbb6d8a94e8ccdb48e10000000000000000000000001d84f81a014dd217f8d8e8ee984ecdea26b0ba990000000000000000000000001d84f81a014dd217f8d8e8ee984ecdea26b0ba99
Deployed Bytecode
0x60806040526004361061016a5760003560e01c8063791ac947116100d1578063b6f9de951161008a578063d06ca61f11610064578063d06ca61f146106f8578063e77772fe146107ad578063f6f1e306146107c2578063fe1bfba61461081e576101a3565b8063b6f9de9514610614578063c45a015514610698578063cc4cf868146106ad576101a3565b8063791ac947146104945780637f43d1671461051d57806385f8c25914610550578063ad14df2414610586578063ad5c4648146105c9578063ad615dec146105de576101a3565b80634fa215b5116101235780634fa215b5146103cf57806358e4b731146103e4578063590205301461042b578063599270441461045557806361d027b31461046a57806365d3daca1461047f576101a3565b8063054d50d4146101a85780630eea6e97146101f057806312cde208146102335780631f00ca74146102665780632f73a9f81461036b578063398074f01461039e576101a3565b366101a357336001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216146101a157fe5b005b600080fd5b3480156101b457600080fd5b506101de600480360360608110156101cb57600080fd5b5080359060208101359060400135610881565b60408051918252519081900360200190f35b3480156101fc57600080fd5b506101a16004803603606081101561021357600080fd5b506001600160a01b03813581169160208101359091169060400135610896565b34801561023f57600080fd5b506101a16004803603602081101561025657600080fd5b50356001600160a01b0316610b52565b34801561027257600080fd5b5061031b6004803603604081101561028957600080fd5b81359190810190604081016020820135600160201b8111156102aa57600080fd5b8201836020820111156102bc57600080fd5b803590602001918460208302840111600160201b831117156102dd57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610be0945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561035757818101518382015260200161033f565b505050509050019250505060405180910390f35b34801561037757600080fd5b506101a16004803603602081101561038e57600080fd5b50356001600160a01b0316610c16565b3480156103aa57600080fd5b506103b3610c8d565b604080516001600160a01b039092168252519081900360200190f35b3480156103db57600080fd5b506103b3610c9c565b3480156103f057600080fd5b506104176004803603602081101561040757600080fd5b50356001600160a01b0316610cab565b604080519115158252519081900360200190f35b34801561043757600080fd5b506101de6004803603602081101561044e57600080fd5b5035610cc0565b34801561046157600080fd5b506103b3610cea565b34801561047657600080fd5b506103b3610cf9565b34801561048b57600080fd5b506103b3610d08565b6101a1600480360360a08110156104aa57600080fd5b813591602081013591810190606081016040820135600160201b8111156104d057600080fd5b8201836020820111156104e257600080fd5b803590602001918460208302840111600160201b8311171561050357600080fd5b91935091506001600160a01b038135169060200135610d17565b34801561052957600080fd5b506101a16004803603602081101561054057600080fd5b50356001600160a01b03166111f6565b34801561055c57600080fd5b506101de6004803603606081101561057357600080fd5b50803590602081013590604001356113f5565b34801561059257600080fd5b506101a1600480360360608110156105a957600080fd5b506001600160a01b03813581169160208101359091169060400135611402565b3480156105d557600080fd5b506103b3611664565b3480156105ea57600080fd5b506101de6004803603606081101561060157600080fd5b5080359060208101359060400135611688565b6101a16004803603608081101561062a57600080fd5b81359190810190604081016020820135600160201b81111561064b57600080fd5b82018360208201111561065d57600080fd5b803590602001918460208302840111600160201b8311171561067e57600080fd5b91935091506001600160a01b038135169060200135611695565b3480156106a457600080fd5b506103b3612085565b3480156106b957600080fd5b506101de600480360360a08110156106d057600080fd5b506001600160a01b0381351690602081013590604081013590606081013590608001356120a9565b34801561070457600080fd5b5061031b6004803603604081101561071b57600080fd5b81359190810190604081016020820135600160201b81111561073c57600080fd5b82018360208201111561074e57600080fd5b803590602001918460208302840111600160201b8311171561076f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612300945050505050565b3480156107b957600080fd5b506103b361232d565b610800600480360360a08110156107d857600080fd5b506001600160a01b03813516906020810135906040810135906060810135906080013561233c565b60408051938452602084019290925282820152519081900360600190f35b610800600480360361012081101561083557600080fd5b506001600160a01b03813581169160208101359160408201359160608101359160ff608083013581169260a081013582169260c082013583169260e08301351691610100013516612690565b600061088e8484846129c8565b949350505050565b600081116108eb576040805162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e2030000000604482015290519081900360640190fd5b6108f782338584612ab8565b816001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561093057600080fd5b505afa92505050801561095557506040513d602081101561095057600080fd5b505160015b61095e57610add565b6000836001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561099957600080fd5b505afa1580156109ad573d6000803e3d6000fd5b505050506040513d60208110156109c357600080fd5b50516040805163e6a4390560e01b81526001600160a01b03858116600483015280841660248301529151929350818716927f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd29092169163e6a4390591604480820192602092909190829003018186803b158015610a3f57600080fd5b505afa158015610a53573d6000803e3d6000fd5b505050506040513d6020811015610a6957600080fd5b50516001600160a01b03161415610ada57604080516377b83b4560e11b815233600482015290516001600160a01b0386169163ef70768a91602480830192600092919082900301818387803b158015610ac157600080fd5b505af1158015610ad5573d6000803e3d6000fd5b505050505b50505b6040805163a7d545db60e01b8152600481018390523360248201526001600160a01b03848116604483015291519185169163a7d545db9160648082019260009290919082900301818387803b158015610b3557600080fd5b505af1158015610b49573d6000803e3d6000fd5b50505050505050565b6006546001600160a01b0316331480610b7557506002546001600160a01b031633145b610bbc576040805162461bcd60e51b81526020600482015260136024820152722c382937baba32b91d102327a92124a22222a760691b604482015290519081900360640190fd5b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6060610c0d7f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28484612c0d565b90505b92915050565b6005546001600160a01b03163314610c6b576040805162461bcd60e51b81526020600482015260136024820152722c382937baba32b91d102327a92124a22222a760691b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b6003546001600160a01b031681565b60076020526000908152604090205460ff1681565b600080610ccb612d5a565b90508069d3c21bcecceda1000000840281610ce257fe5b049392505050565b6002546001600160a01b031681565b6000546001600160a01b031681565b6005546001600160a01b031681565b8042811015610d61576040805162461bcd60e51b8152602060048201526011602482015270161c149bdd5d195c8e8811561412549151607a1b604482015290519081900360640190fd5b60028414610db6576040805162461bcd60e51b815260206004820152601d60248201527f5870526f757465723a20494e56414c49445f504154485f4c454e475448000000604482015290519081900360640190fd5b6000610e1b7f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd287876000818110610de957fe5b905060200201356001600160a01b031688886001818110610e0657fe5b905060200201356001600160a01b0316612e2a565b90506001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21686866000198101818110610e5757fe5b905060200201356001600160a01b03166001600160a01b031614610ebb576040805162461bcd60e51b81526020600482015260166024820152750b0e0a4deeae8cae47440929cac82989288bea082a8960531b604482015290519081900360640190fd5b610f3086866000818110610ecb57fe5b905060200201356001600160a01b031633610f2a7f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28a8a6000818110610f0d57fe5b905060200201356001600160a01b03168b8b6001818110610e0657fe5b8b612ab8565b610f6e868680806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250612eea915050565b604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216916370a0823191602480820192602092909190829003018186803b158015610fd857600080fd5b505afa158015610fec573d6000803e3d6000fd5b505050506040513d602081101561100257600080fd5b50519050878110156110455760405162461bcd60e51b81526004018080602001828103825260248152602001806143f16024913960400191505060405180910390fd5b3360009081526007602052604090205460ff166111635760006110cd836001600160a01b031662afb3256040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b505afa1580156110ad573d6000803e3d6000fd5b505050506040513d60208110156110c357600080fd5b505160ff16610cc0565b905080341015611124576040805162461bcd60e51b815260206004820152601e60248201527f5870526f757465723a20494e53554646494349454e545f4554485f4645450000604482015290519081900360640190fd5b6111618389898080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061320792505050565b505b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156111c957600080fd5b505af11580156111dd573d6000803e3d6000fd5b505050506111eb8582613610565b505050505050505050565b6000819050816001600160a01b03167f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd26001600160a01b031663e6a43905836001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561126d57600080fd5b505afa158015611281573d6000803e3d6000fd5b505050506040513d602081101561129757600080fd5b50516040805163d21220a760e01b815290516001600160a01b0387169163d21220a7916004808301926020929190829003018186803b1580156112d957600080fd5b505afa1580156112ed573d6000803e3d6000fd5b505050506040513d602081101561130357600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926020929190829003018186803b15801561135357600080fd5b505afa158015611367573d6000803e3d6000fd5b505050506040513d602081101561137d57600080fd5b50516001600160a01b03161461139257600080fd5b604080516377b83b4560e11b815233600482015290516001600160a01b0383169163ef70768a91602480830192600092919082900301818387803b1580156113d957600080fd5b505af11580156113ed573d6000803e3d6000fd5b505050505050565b600061088e848484613703565b60008111611457576040805162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e2030000000604482015290519081900360640190fd5b6000839050836001600160a01b03167f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd26001600160a01b031663e6a43905836001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156114ce57600080fd5b505afa1580156114e2573d6000803e3d6000fd5b505050506040513d60208110156114f857600080fd5b50516040805163d21220a760e01b815290516001600160a01b0387169163d21220a7916004808301926020929190829003018186803b15801561153a57600080fd5b505afa15801561154e573d6000803e3d6000fd5b505050506040513d602081101561156457600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926020929190829003018186803b1580156115b457600080fd5b505afa1580156115c8573d6000803e3d6000fd5b505050506040513d60208110156115de57600080fd5b50516001600160a01b0316146115f357600080fd5b6115ff84338585612ab8565b604080516377b83b4560e11b815233600482015290516001600160a01b0383169163ef70768a91602480830192600092919082900301818387803b15801561164657600080fd5b505af115801561165a573d6000803e3d6000fd5b5050505050505050565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b600061088e8484846137f3565b80428110156116df576040805162461bcd60e51b8152602060048201526011602482015270161c149bdd5d195c8e8811561412549151607a1b604482015290519081900360640190fd5b60028414611734576040805162461bcd60e51b815260206004820152601d60248201527f5870526f757465723a20494e56414c49445f504154485f4c454e475448000000604482015290519081900360640190fd5b60006117677f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd287876000818110610de957fe5b90507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316868660008181106117a057fe5b905060200201356001600160a01b03166001600160a01b031614611804576040805162461bcd60e51b81526020600482015260166024820152750b0e0a4deeae8cae47440929cac82989288bea082a8960531b604482015290519081900360640190fd5b6000611842826001600160a01b0316633705b3926040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b9050803411611898576040805162461bcd60e51b815260206004820152601e60248201527f5870526f757465723a20494e53554646494349454e545f4554485f4645450000604482015290519081900360640190fd5b60006118d6836001600160a01b0316633705b3926040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b340390507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561193557600080fd5b505af1158015611949573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb6119cb7f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28b8b60008181106119ae57fe5b905060200201356001600160a01b03168c8c6001818110610e0657fe5b836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611a1b57600080fd5b505af1158015611a2f573d6000803e3d6000fd5b505050506040513d6020811015611a4557600080fd5b5051611a4d57fe5b600088886000198101818110611a5f57fe5b905060200201356001600160a01b03166001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611ac457600080fd5b505afa158015611ad8573d6000803e3d6000fd5b505050506040513d6020811015611aee57600080fd5b50516040805160208b810282810182019093528b8252929350611b309290918c918c9182918501908490808284376000920191909152508b9250612eea915050565b89611be2828b8b6000198101818110611b4557fe5b905060200201356001600160a01b03166001600160a01b03166370a082318b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611baa57600080fd5b505afa158015611bbe573d6000803e3d6000fd5b505050506040513d6020811015611bd457600080fd5b50519063ffffffff61389f16565b1015611c1f5760405162461bcd60e51b81526004018080602001828103825260248152602001806143f16024913960400191505060405180910390fd5b60006002611c5f866001600160a01b031663cc2b76576040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b81611c6657fe5b04905060006002611ca9876001600160a01b0316636fd3acb46040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b81611cb057fe5b0490506000611d037f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28d8d6000818110611ce657fe5b905060200201356001600160a01b03168e8e6001818110610e0657fe5b6001600160a01b031663ccec72fb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d3b57600080fd5b505afa158015611d4f573d6000803e3d6000fd5b505050506040513d6020811015611d6557600080fd5b50516040516001600160a01b03909116908490600081818185875af1925050503d8060008114611db1576040519150601f19603f3d011682016040523d82523d6000602084013e611db6565b606091505b505090506000611e0a7f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28e8e6000818110611ded57fe5b905060200201356001600160a01b03168f8f6001818110610e0657fe5b6040516001600160a01b0391909116908490600081818185875af1925050503d8060008114611e55576040519150601f19603f3d011682016040523d82523d6000602084013e611e5a565b606091505b50509050600060028481611e6a57fe5b04600286600254604051929091049290920192506000916001600160a01b03169083908381818185875af1925050503d8060008114611ec5576040519150601f19603f3d011682016040523d82523d6000602084013e611eca565b606091505b505090506000606483603c0281611edd57fe5b60035460405192909104925060646028860204916000916001600160a01b03169084908381818185875af1925050503d8060008114611f38576040519150601f19603f3d011682016040523d82523d6000602084013e611f3d565b606091505b50506004546040519192506000916001600160a01b039091169084908381818185875af1925050503d8060008114611f91576040519150601f19603f3d011682016040523d82523d6000602084013e611f96565b606091505b505060008054919250906001600160a01b0316611fb36001610cc0565b604051600081818185875af1925050503d8060008114611fef576040519150601f19603f3d011682016040523d82523d6000602084013e611ff4565b606091505b505090508880156120025750875b801561200b5750855b80156120145750825b801561201d5750815b80156120265750805b61206e576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b505050505050505050505050505050505050505050565b7f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd281565b600081428110156120f5576040805162461bcd60e51b8152602060048201526011602482015270161c149bdd5d195c8e8811561412549151607a1b604482015290519081900360640190fd5b612124877f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc288888830896138ef565b925061217390507f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd2887f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612e2a565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b1580156121ca57600080fd5b505af11580156121de573d6000803e3d6000fd5b5050505061226e8733896001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561223d57600080fd5b505afa158015612251573d6000803e3d6000fd5b505050506040513d602081101561226757600080fd5b5051613b65565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156122d457600080fd5b505af11580156122e8573d6000803e3d6000fd5b505050506122f63383613610565b5095945050505050565b6060610c0d7f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28484613cb9565b6006546001600160a01b031681565b6000806000834281101561238b576040805162461bcd60e51b8152602060048201526011602482015270161c149bdd5d195c8e8811561412549151607a1b604482015290519081900360640190fd5b6123b9897f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28a348b8b613df0565b9094509250600061240b7f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612e2a565b90506124198a338388612ab8565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561247457600080fd5b505af1158015612488573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb82866040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561250d57600080fd5b505af1158015612521573d6000803e3d6000fd5b505050506040513d602081101561253757600080fd5b505161253f57fe5b604080516335313c2160e11b815233600482015290516001600160a01b03831691636a6278429160248083019260209291908290030181600087803b15801561258757600080fd5b505af115801561259b573d6000803e3d6000fd5b505050506040513d60208110156125b157600080fd5b505192506126007f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612e2a565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b15801561265757600080fd5b505af115801561266b573d6000803e3d6000fd5b50505050833411156126835761268333853403613610565b5050955095509592505050565b60008060006126c38c7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28d348e8e613df0565b909350915060006127157f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28e7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612e2a565b90506127238d338387612ab8565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b15801561277e57600080fd5b505af1158015612792573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663a9059cbb82856040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561281757600080fd5b505af115801561282b573d6000803e3d6000fd5b505050506040513d602081101561284157600080fd5b505161284957fe5b6040805163dc2dc3f360e01b815233600482015260ff808c166024830152808b166044830152808a166064830152881660848201526001600160a01b0387811660a483015291519183169163dc2dc3f39160c4808201926020929091908290030181600087803b1580156128bc57600080fd5b505af11580156128d0573d6000803e3d6000fd5b505050506040513d60208110156128e657600080fd5b505191506129357f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28e7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2612e2a565b6001600160a01b031663ef70768a336040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b15801561298c57600080fd5b505af11580156129a0573d6000803e3d6000fd5b50505050823411156129b8576129b833843403613610565b5099509950999650505050505050565b6000808411612a085760405162461bcd60e51b815260040180806020018281038252602b815260200180614442602b913960400191505060405180910390fd5b600083118015612a185750600082115b612a535760405162461bcd60e51b81526004018080602001828103825260288152602001806143a46028913960400191505060405180910390fd5b6000612a67856103e863ffffffff61409016565b90506000612a7b828563ffffffff61409016565b90506000612aa183612a95886103e863ffffffff61409016565b9063ffffffff6140f316565b9050808281612aac57fe5b04979650505050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b60208310612b3d5780518252601f199092019160209182019101612b1e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612b9f576040519150601f19603f3d011682016040523d82523d6000602084013e612ba4565b606091505b5091509150818015612bd2575080511580612bd25750808060200190516020811015612bcf57600080fd5b50515b6113ed5760405162461bcd60e51b815260040180806020018281038252603181526020018061431a6031913960400191505060405180910390fd5b6060600282511015612c66576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015612c7e57600080fd5b50604051908082528060200260200182016040528015612ca8578160200160208202803683370190505b5090508281600183510381518110612cbc57fe5b60209081029190910101528151600019015b8015612d5257600080612d0b87866001860381518110612cea57fe5b6020026020010151878681518110612cfe57fe5b6020026020010151614142565b91509150612d2d848481518110612d1e57fe5b60200260200101518383613703565b846001850381518110612d3c57fe5b6020908102919091010152505060001901612cce565b509392505050565b600080600160009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015612dab57600080fd5b505afa158015612dbf573d6000803e3d6000fd5b505050506040513d60a0811015612dd557600080fd5b5060200151905060008113612e21576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c696420707269636560981b604482015290519081900360640190fd5b60649005919050565b6000806000612e39858561420f565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fcc3cfdf52516f231101bbe110b15f3c47658e576e20d8ad98b7fb074339665e1609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b60005b600183510381101561320257600080848381518110612f0857fe5b6020026020010151858460010181518110612f1f57fe5b6020026020010151915091506000612f37838361420f565b5090506000612f677f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28585612e2a565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015612fa857600080fd5b505afa158015612fbc573d6000803e3d6000fd5b505050506040513d6060811015612fd257600080fd5b5080516020909101516001600160701b0391821693501690506000806001600160a01b038a81169089161461300857828461300b565b83835b91509150613069828b6001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611baa57600080fd5b95506130768683836129c8565b945050505050600080856001600160a01b0316886001600160a01b0316146130a0578260006130a4565b6000835b91509150600060028c51038a106130bb578a6130fc565b6130fc7f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd2898e8d600201815181106130ef57fe5b6020026020010151612e2a565b604080516000808252602082019283905263022c0d9f60e01b835260248201878152604483018790526001600160a01b038086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b8381101561318657818101518382015260200161316e565b50505050905090810190601f1680156131b35780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156131d557600080fd5b505af11580156131e9573d6000803e3d6000fd5b50506001909b019a50612eed9950505050505050505050565b505050565b60006002613247846001600160a01b031663e2a7797e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b8161324e57fe5b04905060006002613291856001600160a01b031663c7b8b46d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561109957600080fd5b8161329857fe5b0490506000846001600160a01b031663ccec72fb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156132d657600080fd5b505afa1580156132ea573d6000803e3d6000fd5b505050506040513d602081101561330057600080fd5b50516040516001600160a01b03909116908490600081818185875af1925050503d806000811461334c576040519150601f19603f3d011682016040523d82523d6000602084013e613351565b606091505b50509050600061339d7f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28660008151811061338857fe5b6020026020010151876001815181106130ef57fe5b6040516001600160a01b0391909116908490600081818185875af1925050503d80600081146133e8576040519150601f19603f3d011682016040523d82523d6000602084013e6133ed565b606091505b505090506000600284816133fd57fe5b04600286600254604051929091049290920192506000916001600160a01b03169083908381818185875af1925050503d8060008114613458576040519150601f19603f3d011682016040523d82523d6000602084013e61345d565b606091505b505090506000606483603c028161347057fe5b60035460405192909104925060646028860204916000916001600160a01b03169084908381818185875af1925050503d80600081146134cb576040519150601f19603f3d011682016040523d82523d6000602084013e6134d0565b606091505b50506004546040519192506000916001600160a01b039091169084908381818185875af1925050503d8060008114613524576040519150601f19603f3d011682016040523d82523d6000602084013e613529565b606091505b505060008054919250906001600160a01b03166135466001610cc0565b604051600081818185875af1925050503d8060008114613582576040519150601f19603f3d011682016040523d82523d6000602084013e613587565b606091505b505090508880156135955750875b801561359e5750855b80156135a75750825b80156135b05750815b80156135b95750805b613601576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b50505050505050505050505050565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b6020831061365c5780518252601f19909201916020918201910161363d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146136be576040519150601f19603f3d011682016040523d82523d6000602084013e6136c3565b606091505b50509050806132025760405162461bcd60e51b815260040180806020018281038252603481526020018061434b6034913960400191505060405180910390fd5b60008084116137435760405162461bcd60e51b815260040180806020018281038252602c8152602001806142ee602c913960400191505060405180910390fd5b6000831180156137535750600082115b61378e5760405162461bcd60e51b81526004018080602001828103825260288152602001806143a46028913960400191505060405180910390fd5b60006137b26103e86137a6868863ffffffff61409016565b9063ffffffff61409016565b905060006137cc6103e86137a6868963ffffffff61389f16565b90506137e960018284816137dc57fe5b049063ffffffff6140f316565b9695505050505050565b60008084116138335760405162461bcd60e51b81526004018080602001828103825260258152602001806143cc6025913960400191505060405180910390fd5b6000831180156138435750600082115b61387e5760405162461bcd60e51b81526004018080602001828103825260288152602001806143a46028913960400191505060405180910390fd5b8261388f858463ffffffff61409016565b8161389657fe5b04949350505050565b80820382811115610c10576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b600080824281101561393c576040805162461bcd60e51b8152602060048201526011602482015270161c149bdd5d195c8e8811561412549151607a1b604482015290519081900360640190fd5b60006139697f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28c8c612e2a565b604080516323b872dd60e01b81523360048201526001600160a01b03831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b1580156139c457600080fd5b505af11580156139d8573d6000803e3d6000fd5b505050506040513d60208110156139ee57600080fd5b50506040805163226bf2d160e21b81526001600160a01b03888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b158015613a3b57600080fd5b505af1158015613a4f573d6000803e3d6000fd5b505050506040513d6040811015613a6557600080fd5b50805160209091015190925090506000613a7f8e8e61420f565b509050806001600160a01b03168e6001600160a01b031614613aa2578183613aa5565b82825b90975095508a871015613aff576040805162461bcd60e51b815260206004820152601f60248201527f5870526f757465723a20494e53554646494349454e545f415f414d4f554e5400604482015290519081900360640190fd5b89861015613b54576040805162461bcd60e51b815260206004820152601f60248201527f5870526f757465723a20494e53554646494349454e545f425f414d4f554e5400604482015290519081900360640190fd5b505050505097509795505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b60208310613be25780518252601f199092019160209182019101613bc3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613c44576040519150601f19603f3d011682016040523d82523d6000602084013e613c49565b606091505b5091509150818015613c77575080511580613c775750808060200190516020811015613c7457600080fd5b50515b613cb25760405162461bcd60e51b815260040180806020018281038252602d815260200180614415602d913960400191505060405180910390fd5b5050505050565b6060600282511015613d12576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015613d2a57600080fd5b50604051908082528060200260200182016040528015613d54578160200160208202803683370190505b5090508281600081518110613d6557fe5b60200260200101818152505060005b6001835103811015612d5257600080613daa87868581518110613d9357fe5b6020026020010151878660010181518110612cfe57fe5b91509150613dcc848481518110613dbd57fe5b602002602001015183836129c8565b848460010181518110613ddb57fe5b60209081029190910101525050600101613d74565b6040805163e6a4390560e01b81526001600160a01b03888116600483015287811660248301529151600092839283927f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd29092169163e6a4390591604480820192602092909190829003018186803b158015613e6a57600080fd5b505afa158015613e7e573d6000803e3d6000fd5b505050506040513d6020811015613e9457600080fd5b50516001600160a01b03161415613f4757604080516364e329cb60e11b81526001600160a01b038a81166004830152898116602483015291516000927f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd2169163c9c6539691604480830192602092919082900301818787803b158015613f1957600080fd5b505af1158015613f2d573d6000803e3d6000fd5b505050506040513d6020811015613f4357600080fd5b5050505b600080613f757f000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd28b8b614142565b91509150816000148015613f87575080155b15613f9757879350869250614083565b6000613fa48984846137f3565b905087811161400d5785811015614002576040805162461bcd60e51b815260206004820152601f60248201527f5870526f757465723a20494e53554646494349454e545f425f414d4f554e5400604482015290519081900360640190fd5b889450925082614081565b600061401a8984866137f3565b90508981111561402657fe5b8781101561407b576040805162461bcd60e51b815260206004820152601f60248201527f5870526f757465723a20494e53554646494349454e545f415f414d4f554e5400604482015290519081900360640190fd5b94508793505b505b5050965096945050505050565b60008115806140ab575050808202828282816140a857fe5b04145b610c10576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b80820182811015610c10576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6000806000614151858561420f565b5090506000614161878787612e2a565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561419f57600080fd5b505afa1580156141b3573d6000803e3d6000fd5b505050506040513d60608110156141c957600080fd5b5080516020909101516001600160701b0391821693501690506001600160a01b03888116908516146141fc5780826141ff565b81815b909a909950975050505050505050565b600080826001600160a01b0316846001600160a01b031614156142635760405162461bcd60e51b815260040180806020018281038252602581526020018061437f6025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610614283578284614286565b83835b90925090506001600160a01b0382166142e6576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b925092905056fe556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472616e7366657246726f6d206661696c65645472616e7366657248656c7065723a3a736166655472616e736665724554483a20455448207472616e73666572206661696c6564556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e545870526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c6564556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a264697066735822122072cc4dbb6dafd5811b7233e762c37ce004b42fd2a8599deb06febe5fe4d2dd7d64736f6c63430006060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b84190000000000000000000000004547bc9cc66725d8a607acbb6d8a94e8ccdb48e10000000000000000000000001d84f81a014dd217f8d8e8ee984ecdea26b0ba990000000000000000000000001d84f81a014dd217f8d8e8ee984ecdea26b0ba99
-----Decoded View---------------
Arg [0] : _factory (address): 0x787cCAa7dFD93c4BaB69633B223718acc6D01fD2
Arg [1] : _WETH (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [2] : _oracleAddress (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
Arg [3] : _teamWallet (address): 0x4547BC9cC66725d8A607ACbB6D8A94E8ccdb48e1
Arg [4] : _stakingContractXpLp (address): 0x1D84F81a014dD217F8d8e8ee984ECdeA26b0bA99
Arg [5] : _stakingContractXp (address): 0x1D84F81a014dD217F8d8e8ee984ECdeA26b0bA99
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000787ccaa7dfd93c4bab69633b223718acc6d01fd2
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [2] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Arg [3] : 0000000000000000000000004547bc9cc66725d8a607acbb6d8a94e8ccdb48e1
Arg [4] : 0000000000000000000000001d84f81a014dd217f8d8e8ee984ecdea26b0ba99
Arg [5] : 0000000000000000000000001d84f81a014dd217f8d8e8ee984ecdea26b0ba99
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.