Overview
ETH Balance
0 ETH
ETH Value
$0.00Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 164720521 | 759 days ago | Contract Creation | 0 ETH | |||
| 91041689 | 986 days ago | Contract Creation | 0 ETH | |||
| 80448688 | 1017 days ago | Contract Creation | 0 ETH | |||
| 76862476 | 1027 days ago | Contract Creation | 0 ETH | |||
| 73600043 | 1037 days ago | Contract Creation | 0 ETH | |||
| 73240987 | 1038 days ago | Contract Creation | 0 ETH | |||
| 73236400 | 1038 days ago | Contract Creation | 0 ETH | |||
| 73221609 | 1038 days ago | Contract Creation | 0 ETH | |||
| 72959098 | 1039 days ago | Contract Creation | 0 ETH | |||
| 72894354 | 1039 days ago | Contract Creation | 0 ETH | |||
| 72086636 | 1041 days ago | 0 ETH | ||||
| 72086636 | 1041 days ago | 0 ETH | ||||
| 72086560 | 1041 days ago | 0 ETH | ||||
| 72086560 | 1041 days ago | 0 ETH | ||||
| 72086560 | 1041 days ago | 0 ETH | ||||
| 72086418 | 1041 days ago | 0 ETH | ||||
| 72086418 | 1041 days ago | 0 ETH | ||||
| 72086418 | 1041 days ago | 0 ETH | ||||
| 72086418 | 1041 days ago | 0 ETH | ||||
| 72086288 | 1041 days ago | 0 ETH | ||||
| 72086288 | 1041 days ago | 0 ETH | ||||
| 72086288 | 1041 days ago | 0 ETH | ||||
| 72085768 | 1041 days ago | 0 ETH | ||||
| 72085768 | 1041 days ago | 0 ETH | ||||
| 72085759 | 1041 days ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
StrFactory
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "../../interface/IFactory.sol";
import "./StrPair.sol";
contract StrFactory is IFactory {
bool public override isPaused;
address public pauser;
address public pendingPauser;
address public immutable override treasury;
mapping(address => mapping(address => mapping(bool => address))) public override getPair;
address[] public allPairs;
/// @dev Simplified check if its a pair, given that `stable` flag might not be available in peripherals
mapping(address => bool) public override isPair;
address internal _temp0;
address internal _temp1;
bool internal _temp;
event PairCreated(
address indexed token0,
address indexed token1,
bool stable,
address pair,
uint allPairsLength
);
constructor(address _treasury) {
pauser = msg.sender;
isPaused = false;
treasury = _treasury;
}
function allPairsLength() external view returns (uint) {
return allPairs.length;
}
function setPauser(address _pauser) external {
require(msg.sender == pauser, "StrFactory: Not pauser");
pendingPauser = _pauser;
}
function acceptPauser() external {
require(msg.sender == pendingPauser, "StrFactory: Not pending pauser");
pauser = pendingPauser;
}
function setPause(bool _state) external {
require(msg.sender == pauser, "StrFactory: Not pauser");
isPaused = _state;
}
function pairCodeHash() external pure override returns (bytes32) {
return keccak256(type(StrPair).creationCode);
}
function getInitializable() external view override returns (address, address, bool) {
return (_temp0, _temp1, _temp);
}
function createPair(address tokenA, address tokenB, bool stable)
external override returns (address pair) {
require(tokenA != tokenB, 'StrFactory: IDENTICAL_ADDRESSES');
(address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
require(token0 != address(0), 'StrFactory: ZERO_ADDRESS');
require(getPair[token0][token1][stable] == address(0), 'StrFactory: PAIR_EXISTS');
// notice salt includes stable as well, 3 parameters
bytes32 salt = keccak256(abi.encodePacked(token0, token1, stable));
(_temp0, _temp1, _temp) = (token0, token1, stable);
pair = address(new StrPair{salt : salt}());
getPair[token0][token1][stable] = pair;
// populate mapping in the reverse direction
getPair[token1][token0][stable] = pair;
allPairs.push(pair);
isPair[pair] = true;
emit PairCreated(token0, token1, stable, pair, allPairs.length);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "../../interface/IERC20.sol";
import "../../lib/SafeERC20.sol";
/// @title Base V1 Fees contract is used as a 1:1 pair relationship to split out fees,
/// this ensures that the curve does not need to be modified for LP shares
contract PairFees {
using SafeERC20 for IERC20;
/// @dev The pair it is bonded to
address internal immutable pair;
/// @dev Token0 of pair, saved localy and statically for gas optimization
address internal immutable token0;
/// @dev Token1 of pair, saved localy and statically for gas optimization
address internal immutable token1;
constructor(address _token0, address _token1) {
pair = msg.sender;
token0 = _token0;
token1 = _token1;
}
// Allow the pair to transfer fees to users
function claimFeesFor(address recipient, uint amount0, uint amount1) external {
require(msg.sender == pair, "Not pair");
if (amount0 > 0) {
IERC20(token0).safeTransfer(recipient, amount0);
}
if (amount1 > 0) {
IERC20(token1).safeTransfer(recipient, amount1);
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "../../interface/IERC20.sol";
import "../../interface/IERC721Metadata.sol";
import "../../interface/IPair.sol";
import "../../interface/IFactory.sol";
import "../../interface/ICallee.sol";
import "../../interface/IUnderlying.sol";
import "./PairFees.sol";
import "../../lib/Math.sol";
import "../../lib/SafeERC20.sol";
import "../Reentrancy.sol";
// The base pair of pools, either stable or volatile
contract StrPair is IERC20, IPair, Reentrancy {
using SafeERC20 for IERC20;
string public name;
string public symbol;
uint8 public constant decimals = 18;
/// @dev Used to denote stable or volatile pair
bool public immutable stable;
uint public override totalSupply = 0;
mapping(address => mapping(address => uint)) public override allowance;
mapping(address => uint) public override balanceOf;
bytes32 public immutable DOMAIN_SEPARATOR;
// keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
uint internal constant _FEE_PRECISION = 1e32;
mapping(address => uint) public nonces;
uint public immutable chainId;
uint internal constant MINIMUM_LIQUIDITY = 10 ** 3;
/// @dev For example 500 = 0.02% OR 5000 = 0.002% swap fee
uint public swapFeeChosen = 500;
/// @dev Capture oracle reading every 30 minutes
uint internal constant PERIOD_SIZE = 1800;
address public immutable override token0;
address public immutable override token1;
address public immutable fees;
address public immutable factory;
address public immutable treasury;
Observation[] public observations;
uint internal immutable decimals0;
uint internal immutable decimals1;
uint public reserve0;
uint public reserve1;
uint public blockTimestampLast;
uint public reserve0CumulativeLast;
uint public reserve1CumulativeLast;
// index0 and index1 are used to accumulate fees,
// this is split out from normal trades to keep the swap "clean"
// this further allows LP holders to easily claim fees for tokens they have/staked
uint public index0 = 0;
uint public index1 = 0;
// position assigned to each LP to track their current index0 & index1 vs the global position
mapping(address => uint) public supplyIndex0;
mapping(address => uint) public supplyIndex1;
// tracks the amount of unclaimed, but claimable tokens off of fees for token0 and token1
mapping(address => uint) public claimable0;
mapping(address => uint) public claimable1;
event Treasury(address indexed sender, uint amount0, uint amount1);
event Fees(address indexed sender, uint amount0, uint amount1);
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint reserve0, uint reserve1);
event Claim(address indexed sender, address indexed recipient, uint amount0, uint amount1);
constructor() {
factory = msg.sender;
treasury = IFactory(msg.sender).treasury();
(address _token0, address _token1, bool _stable) = IFactory(msg.sender).getInitializable();
(token0, token1, stable) = (_token0, _token1, _stable);
fees = address(new PairFees(_token0, _token1));
if (_stable) {
name = string(abi.encodePacked("StableV1 AMM - ", IERC721Metadata(_token0).symbol(), "/", IERC721Metadata(_token1).symbol()));
symbol = string(abi.encodePacked("sAMM-", IERC721Metadata(_token0).symbol(), "/", IERC721Metadata(_token1).symbol()));
swapFeeChosen = 5000; // Defaults swapFeeChosen
} else {
name = string(abi.encodePacked("VolatileV1 AMM - ", IERC721Metadata(_token0).symbol(), "/", IERC721Metadata(_token1).symbol()));
symbol = string(abi.encodePacked("vAMM-", IERC721Metadata(_token0).symbol(), "/", IERC721Metadata(_token1).symbol()));
swapFeeChosen = 500; // Defaults swapFeeChosen
}
decimals0 = 10 ** IUnderlying(_token0).decimals();
decimals1 = 10 ** IUnderlying(_token1).decimals();
observations.push(Observation(block.timestamp, 0, 0));
DOMAIN_SEPARATOR = keccak256(
abi.encode(
keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'),
keccak256(bytes(name)),
keccak256('1'),
block.chainid,
address(this)
)
);
chainId = block.chainid;
}
function setSwapFeeChosen(uint _swapFeeChosen) external {
require(IFactory(factory).treasury() == msg.sender, "StrPair: not StrFactory treasury");
require(_swapFeeChosen > 50, "StrPair: Fee too high amount / _swapFeeChosen = feePaidAmount");
swapFeeChosen = _swapFeeChosen;
}
function observationLength() external view returns (uint) {
return observations.length;
}
function lastObservation() public view returns (Observation memory) {
return observations[observations.length - 1];
}
function metadata() external view returns (
uint dec0,
uint dec1,
uint r0,
uint r1,
bool st,
address t0,
address t1
) {
return (decimals0, decimals1, reserve0, reserve1, stable, token0, token1);
}
function tokens() external view override returns (address, address) {
return (token0, token1);
}
/// @dev Claim accumulated but unclaimed fees (viewable via claimable0 and claimable1)
function claimFees() external override returns (uint claimed0, uint claimed1) {
_updateFor(msg.sender);
claimed0 = claimable0[msg.sender];
claimed1 = claimable1[msg.sender];
if (claimed0 > 0 || claimed1 > 0) {
claimable0[msg.sender] = 0;
claimable1[msg.sender] = 0;
PairFees(fees).claimFeesFor(msg.sender, claimed0, claimed1);
emit Claim(msg.sender, msg.sender, claimed0, claimed1);
}
}
/// @dev Accrue fees on token0
function _update0(uint amount) internal {
uint toFees = amount;
// transfer the fees out to PairFees and Treasury
IERC20(token0).safeTransfer(fees, toFees);
// 1e32 adjustment is removed during claim
uint _ratio = toFees * _FEE_PRECISION / totalSupply;
if (_ratio > 0) {
index0 += _ratio;
}
// keep the same structure of events for compatability
emit Fees(msg.sender, toFees, 0);
}
/// @dev Accrue fees on token1
function _update1(uint amount) internal {
uint toFees = amount;
IERC20(token1).safeTransfer(fees, toFees);
uint _ratio = toFees * _FEE_PRECISION / totalSupply;
if (_ratio > 0) {
index1 += _ratio;
}
// keep the same structure of events for compatability
emit Fees(msg.sender, 0, toFees);
}
/// @dev This function MUST be called on any balance changes,
/// otherwise can be used to infinitely claim fees
// Fees are segregated from core funds, so fees can never put liquidity at risk
function _updateFor(address recipient) internal {
uint _supplied = balanceOf[recipient];
// get LP balance of `recipient`
if (_supplied > 0) {
uint _supplyIndex0 = supplyIndex0[recipient];
// get last adjusted index0 for recipient
uint _supplyIndex1 = supplyIndex1[recipient];
uint _index0 = index0;
// get global index0 for accumulated fees
uint _index1 = index1;
supplyIndex0[recipient] = _index0;
// update user current position to global position
supplyIndex1[recipient] = _index1;
uint _delta0 = _index0 - _supplyIndex0;
// see if there is any difference that need to be accrued
uint _delta1 = _index1 - _supplyIndex1;
if (_delta0 > 0) {
uint _share = _supplied * _delta0 / _FEE_PRECISION;
// add accrued difference for each supplied token
claimable0[recipient] += _share;
}
if (_delta1 > 0) {
uint _share = _supplied * _delta1 / _FEE_PRECISION;
claimable1[recipient] += _share;
}
} else {
supplyIndex0[recipient] = index0;
// new users are set to the default global state
supplyIndex1[recipient] = index1;
}
}
function getReserves() public view override returns (
uint112 _reserve0,
uint112 _reserve1,
uint32 _blockTimestampLast
) {
_reserve0 = uint112(reserve0);
_reserve1 = uint112(reserve1);
_blockTimestampLast = uint32(blockTimestampLast);
}
/// @dev Update reserves and, on the first call per block, price accumulators
function _update(uint balance0, uint balance1, uint _reserve0, uint _reserve1) internal {
uint blockTimestamp = block.timestamp;
uint timeElapsed = blockTimestamp - blockTimestampLast;
// overflow is desired
if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) {
unchecked {
reserve0CumulativeLast += _reserve0 * timeElapsed;
reserve1CumulativeLast += _reserve1 * timeElapsed;
}
}
Observation memory _point = lastObservation();
timeElapsed = blockTimestamp - _point.timestamp;
// compare the last observation with current timestamp,
// if greater than 30 minutes, record a new event
if (timeElapsed > PERIOD_SIZE) {
observations.push(Observation(blockTimestamp, reserve0CumulativeLast, reserve1CumulativeLast));
}
reserve0 = balance0;
reserve1 = balance1;
blockTimestampLast = blockTimestamp;
emit Sync(reserve0, reserve1);
}
/// @dev Produces the cumulative price using counterfactuals to save gas and avoid a call to sync.
function currentCumulativePrices() public view returns (
uint reserve0Cumulative,
uint reserve1Cumulative,
uint blockTimestamp
) {
blockTimestamp = block.timestamp;
reserve0Cumulative = reserve0CumulativeLast;
reserve1Cumulative = reserve1CumulativeLast;
// if time has elapsed since the last update on the pair, mock the accumulated price values
(uint _reserve0, uint _reserve1, uint _blockTimestampLast) = getReserves();
if (_blockTimestampLast != blockTimestamp) {
// subtraction overflow is desired
uint timeElapsed = blockTimestamp - _blockTimestampLast;
unchecked {
reserve0Cumulative += _reserve0 * timeElapsed;
reserve1Cumulative += _reserve1 * timeElapsed;
}
}
}
/// @dev Gives the current twap price measured from amountIn * tokenIn gives amountOut
function current(address tokenIn, uint amountIn) external view returns (uint amountOut) {
Observation memory _observation = lastObservation();
(uint reserve0Cumulative, uint reserve1Cumulative,) = currentCumulativePrices();
if (block.timestamp == _observation.timestamp) {
_observation = observations[observations.length - 2];
}
uint timeElapsed = block.timestamp - _observation.timestamp;
uint _reserve0 = (reserve0Cumulative - _observation.reserve0Cumulative) / timeElapsed;
uint _reserve1 = (reserve1Cumulative - _observation.reserve1Cumulative) / timeElapsed;
amountOut = _getAmountOut(amountIn, tokenIn, _reserve0, _reserve1);
}
/// @dev As per `current`, however allows user configured granularity, up to the full window size
function quote(address tokenIn, uint amountIn, uint granularity)
external view returns (uint amountOut) {
uint [] memory _prices = sample(tokenIn, amountIn, granularity, 1);
uint priceAverageCumulative;
for (uint i = 0; i < _prices.length; i++) {
priceAverageCumulative += _prices[i];
}
return priceAverageCumulative / granularity;
}
/// @dev Returns a memory set of twap prices
function prices(address tokenIn, uint amountIn, uint points)
external view returns (uint[] memory) {
return sample(tokenIn, amountIn, points, 1);
}
function sample(address tokenIn, uint amountIn, uint points, uint window)
public view returns (uint[] memory) {
uint[] memory _prices = new uint[](points);
uint length = observations.length - 1;
uint i = length - (points * window);
uint nextIndex = 0;
uint index = 0;
for (; i < length; i += window) {
nextIndex = i + window;
uint timeElapsed = observations[nextIndex].timestamp - observations[i].timestamp;
uint _reserve0 = (observations[nextIndex].reserve0Cumulative - observations[i].reserve0Cumulative) / timeElapsed;
uint _reserve1 = (observations[nextIndex].reserve1Cumulative - observations[i].reserve1Cumulative) / timeElapsed;
_prices[index] = _getAmountOut(amountIn, tokenIn, _reserve0, _reserve1);
index = index + 1;
}
return _prices;
}
/// @dev This low-level function should be called from a contract which performs important safety checks
/// standard uniswap v2 implementation
function mint(address to) external lock override returns (uint liquidity) {
(uint _reserve0, uint _reserve1) = (reserve0, reserve1);
uint _balance0 = IERC20(token0).balanceOf(address(this));
uint _balance1 = IERC20(token1).balanceOf(address(this));
uint _amount0 = _balance0 - _reserve0;
uint _amount1 = _balance1 - _reserve1;
uint _totalSupply = totalSupply;
// gas savings, must be defined here since totalSupply can update in _mintFee
if (_totalSupply == 0) {
liquidity = Math.sqrt(_amount0 * _amount1) - MINIMUM_LIQUIDITY;
// permanently lock the first MINIMUM_LIQUIDITY tokens
_mint(address(0), MINIMUM_LIQUIDITY);
} else {
liquidity = Math.min(_amount0 * _totalSupply / _reserve0, _amount1 * _totalSupply / _reserve1);
}
require(liquidity > 0, 'StrPair: INSUFFICIENT_LIQUIDITY_MINTED');
_mint(to, liquidity);
_update(_balance0, _balance1, _reserve0, _reserve1);
emit Mint(msg.sender, _amount0, _amount1);
}
/// @dev This low-level function should be called from a contract which performs important safety checks
/// standard uniswap v2 implementation
function burn(address to) external lock override returns (uint amount0, uint amount1) {
(uint _reserve0, uint _reserve1) = (reserve0, reserve1);
(address _token0, address _token1) = (token0, token1);
uint _balance0 = IERC20(_token0).balanceOf(address(this));
uint _balance1 = IERC20(_token1).balanceOf(address(this));
uint _liquidity = balanceOf[address(this)];
// gas savings, must be defined here since totalSupply can update in _mintFee
uint _totalSupply = totalSupply;
// using balances ensures pro-rata distribution
amount0 = _liquidity * _balance0 / _totalSupply;
// using balances ensures pro-rata distribution
amount1 = _liquidity * _balance1 / _totalSupply;
require(amount0 > 0 && amount1 > 0, 'StrPair: INSUFFICIENT_LIQUIDITY_BURNED');
_burn(address(this), _liquidity);
IERC20(_token0).safeTransfer(to, amount0);
IERC20(_token1).safeTransfer(to, amount1);
_balance0 = IERC20(_token0).balanceOf(address(this));
_balance1 = IERC20(_token1).balanceOf(address(this));
_update(_balance0, _balance1, _reserve0, _reserve1);
emit Burn(msg.sender, amount0, amount1, to);
}
/// @dev This low-level function should be called from a contract which performs important safety checks
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external override lock {
require(!IFactory(factory).isPaused(), "StrPair: PAUSE");
require(amount0Out > 0 || amount1Out > 0, 'StrPair: INSUFFICIENT_OUTPUT_AMOUNT');
(uint _reserve0, uint _reserve1) = (reserve0, reserve1);
require(amount0Out < _reserve0 && amount1Out < _reserve1, 'StrPair: INSUFFICIENT_LIQUIDITY');
uint _balance0;
uint _balance1;
{// scope for _token{0,1}, avoids stack too deep errors
(address _token0, address _token1) = (token0, token1);
require(to != _token0 && to != _token1, 'StrPair: INVALID_TO');
// optimistically transfer tokens
if (amount0Out > 0) IERC20(_token0).safeTransfer(to, amount0Out);
// optimistically transfer tokens
if (amount1Out > 0) IERC20(_token1).safeTransfer(to, amount1Out);
// callback, used for flash loans
if (data.length > 0) ICallee(to).hook(msg.sender, amount0Out, amount1Out, data);
_balance0 = IERC20(_token0).balanceOf(address(this));
_balance1 = IERC20(_token1).balanceOf(address(this));
}
uint amount0In = _balance0 > _reserve0 - amount0Out ? _balance0 - (_reserve0 - amount0Out) : 0;
uint amount1In = _balance1 > _reserve1 - amount1Out ? _balance1 - (_reserve1 - amount1Out) : 0;
require(amount0In > 0 || amount1In > 0, 'StrPair: INSUFFICIENT_INPUT_AMOUNT');
{// scope for reserve{0,1}Adjusted, avoids stack too deep errors
(address _token0, address _token1) = (token0, token1);
// accrue fees for token0 and move them out of pool
if (amount0In > 0) _update0(amount0In / swapFeeChosen);
// accrue fees for token1 and move them out of pool
if (amount1In > 0) _update1(amount1In / swapFeeChosen);
// since we removed tokens, we need to reconfirm balances,
// can also simply use previous balance - amountIn/ swapFeeChosen,
// but doing balanceOf again as safety check
_balance0 = IERC20(_token0).balanceOf(address(this));
_balance1 = IERC20(_token1).balanceOf(address(this));
// The curve, either x3y+y3x for stable pools, or x*y for volatile pools
require(_k(_balance0, _balance1) >= _k(_reserve0, _reserve1), 'StrPair: K');
}
_update(_balance0, _balance1, _reserve0, _reserve1);
emit Swap(msg.sender, amount0In, amount1In, amount0Out, amount1Out, to);
}
/// @dev Force balances to match reserves
function skim(address to) external lock {
(address _token0, address _token1) = (token0, token1);
IERC20(_token0).safeTransfer(to, IERC20(_token0).balanceOf(address(this)) - (reserve0));
IERC20(_token1).safeTransfer(to, IERC20(_token1).balanceOf(address(this)) - (reserve1));
}
// force reserves to match balances
function sync() external lock {
_update(
IERC20(token0).balanceOf(address(this)),
IERC20(token1).balanceOf(address(this)),
reserve0,
reserve1
);
}
function _f(uint x0, uint y) internal pure returns (uint) {
return x0 * (y * y / 1e18 * y / 1e18) / 1e18 + (x0 * x0 / 1e18 * x0 / 1e18) * y / 1e18;
}
function _d(uint x0, uint y) internal pure returns (uint) {
return 3 * x0 * (y * y / 1e18) / 1e18 + (x0 * x0 / 1e18 * x0 / 1e18);
}
function _getY(uint x0, uint xy, uint y) internal pure returns (uint) {
for (uint i = 0; i < 255; i++) {
uint yPrev = y;
uint k = _f(x0, y);
if (k < xy) {
uint dy = (xy - k) * 1e18 / _d(x0, y);
y = y + dy;
} else {
uint dy = (k - xy) * 1e18 / _d(x0, y);
y = y - dy;
}
if (Math.closeTo(y, yPrev, 1)) {
break;
}
}
return y;
}
function getAmountOut(uint amountIn, address tokenIn) external view override returns (uint) {
(uint _reserve0, uint _reserve1) = (reserve0, reserve1);
// remove fee from amount received
amountIn -= amountIn / swapFeeChosen;
return _getAmountOut(amountIn, tokenIn, _reserve0, _reserve1);
}
function _getAmountOut(uint amountIn, address tokenIn, uint _reserve0, uint _reserve1) internal view returns (uint) {
if (stable) {
uint xy = _k(_reserve0, _reserve1);
_reserve0 = _reserve0 * 1e18 / decimals0;
_reserve1 = _reserve1 * 1e18 / decimals1;
(uint reserveA, uint reserveB) = tokenIn == token0 ? (_reserve0, _reserve1) : (_reserve1, _reserve0);
amountIn = tokenIn == token0 ? amountIn * 1e18 / decimals0 : amountIn * 1e18 / decimals1;
uint y = reserveB - _getY(amountIn + reserveA, xy, reserveB);
return y * (tokenIn == token0 ? decimals1 : decimals0) / 1e18;
} else {
(uint reserveA, uint reserveB) = tokenIn == token0 ? (_reserve0, _reserve1) : (_reserve1, _reserve0);
return amountIn * reserveB / (reserveA + amountIn);
}
}
function _k(uint x, uint y) internal view returns (uint) {
if (stable) {
uint _x = x * 1e18 / decimals0;
uint _y = y * 1e18 / decimals1;
uint _a = (_x * _y) / 1e18;
uint _b = ((_x * _x) / 1e18 + (_y * _y) / 1e18);
// x3y+y3x >= k
return _a * _b / 1e18;
} else {
// xy >= k
return x * y;
}
}
//****************************************************************************
//**************************** ERC20 *****************************************
//****************************************************************************
function _mint(address dst, uint amount) internal {
// balances must be updated on mint/burn/transfer
_updateFor(dst);
totalSupply += amount;
balanceOf[dst] += amount;
emit Transfer(address(0), dst, amount);
}
function _burn(address dst, uint amount) internal {
_updateFor(dst);
totalSupply -= amount;
balanceOf[dst] -= amount;
emit Transfer(dst, address(0), amount);
}
function approve(address spender, uint amount) external override returns (bool) {
require(spender != address(0), "StrPair: Approve to the zero address");
allowance[msg.sender][spender] = amount;
emit Approval(msg.sender, spender, amount);
return true;
}
function permit(
address owner,
address spender,
uint value,
uint deadline,
uint8 v,
bytes32 r,
bytes32 s
) external override {
require(deadline >= block.timestamp, 'StrPair: EXPIRED');
bytes32 digest = keccak256(
abi.encodePacked(
'\x19\x01',
DOMAIN_SEPARATOR,
keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
)
);
address recoveredAddress = ecrecover(digest, v, r, s);
require(recoveredAddress != address(0) && recoveredAddress == owner, 'StrPair: INVALID_SIGNATURE');
allowance[owner][spender] = value;
emit Approval(owner, spender, value);
}
function transfer(address dst, uint amount) external override returns (bool) {
_transferTokens(msg.sender, dst, amount);
return true;
}
function transferFrom(address src, address dst, uint amount) external override returns (bool) {
address spender = msg.sender;
uint spenderAllowance = allowance[src][spender];
if (spender != src && spenderAllowance != type(uint).max) {
require(spenderAllowance >= amount, "StrPair: Insufficient allowance");
unchecked {
uint newAllowance = spenderAllowance - amount;
allowance[src][spender] = newAllowance;
emit Approval(src, spender, newAllowance);
}
}
_transferTokens(src, dst, amount);
return true;
}
function _transferTokens(address src, address dst, uint amount) internal {
require(dst != address(0), "StrPair: Transfer to the zero address");
// update fee position for src
_updateFor(src);
// update fee position for dst
_updateFor(dst);
uint srcBalance = balanceOf[src];
require(srcBalance >= amount, "StrPair: Transfer amount exceeds balance");
unchecked {
balanceOf[src] = srcBalance - amount;
}
balanceOf[dst] += amount;
emit Transfer(src, dst, amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
abstract contract Reentrancy {
/// @dev simple re-entrancy check
uint internal _unlocked = 1;
modifier lock() {
require(_unlocked == 1, "Reentrant call");
_unlocked = 2;
_;
_unlocked = 1;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
interface ICallee {
function hook(address sender, uint amount0, uint amount1, bytes calldata data) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "./IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "./IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
interface IFactory {
function treasury() external view returns (address);
function isPair(address pair) external view returns (bool);
function getInitializable() external view returns (address, address, bool);
function isPaused() external view returns (bool);
function pairCodeHash() external pure returns (bytes32);
function getPair(address tokenA, address token, bool stable) external view returns (address);
function createPair(address tokenA, address tokenB, bool stable) external returns (address pair);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
interface IPair {
// Structure to capture time period obervations every 30 minutes, used for local oracles
struct Observation {
uint timestamp;
uint reserve0Cumulative;
uint reserve1Cumulative;
}
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function burn(address to) external returns (uint amount0, uint amount1);
function mint(address to) external returns (uint liquidity);
function getReserves() external view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast);
function getAmountOut(uint, address) external view returns (uint);
function claimFees() external returns (uint, uint);
function tokens() external view returns (address, address);
function token0() external view returns (address);
function token1() external view returns (address);
function stable() external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
interface IUnderlying {
function approve(address spender, uint value) external returns (bool);
function mint(address, uint) external;
function totalSupply() external view returns (uint);
function balanceOf(address) external view returns (uint);
function transfer(address, uint) external returns (bool);
function decimals() external returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.13;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
library Math {
function max(uint a, uint b) internal pure returns (uint) {
return a >= b ? a : b;
}
function min(uint a, uint b) internal pure returns (uint) {
return a < b ? a : b;
}
function positiveInt128(int128 value) internal pure returns (int128) {
return value < 0 ? int128(0) : value;
}
function closeTo(uint a, uint b, uint target) internal pure returns (bool) {
if (a > b) {
if (a - b <= target) {
return true;
}
} else {
if (b - a <= target) {
return true;
}
}
return false;
}
function sqrt(uint y) internal pure returns (uint z) {
if (y > 3) {
z = y;
uint x = y / 2 + 1;
while (x < z) {
z = x;
x = (y / x + x) / 2;
}
} else if (y != 0) {
z = 1;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.13;
import "../interface/IERC20.sol";
import "./Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint value
) internal {
uint newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"bool","name":"stable","type":"bool"},{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"allPairsLength","type":"uint256"}],"name":"PairCreated","type":"event"},{"inputs":[],"name":"acceptPauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allPairs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allPairsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"bool","name":"stable","type":"bool"}],"name":"createPair","outputs":[{"internalType":"address","name":"pair","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getInitializable","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairCodeHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"pauser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingPauser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pauser","type":"address"}],"name":"setPauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60a060405234801561001057600080fd5b5060405161589238038061589283398101604081905261002f9161005a565b600080546001600160a81b031916336101000260ff19161790556001600160a01b031660805261008a565b60006020828403121561006c57600080fd5b81516001600160a01b038116811461008357600080fd5b9392505050565b6080516157ed6100a5600039600061017201526157ed6000f3fe60806040523480156200001157600080fd5b5060043610620000fd5760003560e01c80639a7165e41162000097578063b187bd26116200006e578063b187bd26146200021f578063bedb86fb146200023e578063e5e31b131462000255578063eb13c4cf146200027b57600080fd5b80639a7165e414620001e85780639aab924814620001fc5780639fd0506d146200020657600080fd5b8063574f2ba311620000d8578063574f2ba3146200015957806361d027b3146200016c5780636801cc30146200019457806382dfdce414620001d157600080fd5b8063167a6f9014620001025780631e3dd18b146200010e5780632d88af4a1462000142575b600080fd5b6200010c620002b4565b005b620001256200011f366004620007d1565b6200033f565b6040516001600160a01b0390911681526020015b60405180910390f35b6200010c6200015336600462000808565b6200036a565b6003545b60405190815260200162000139565b620001257f000000000000000000000000000000000000000000000000000000000000000081565b62000125620001a53660046200083e565b60026020908152600093845260408085208252928452828420905282529020546001600160a01b031681565b62000125620001e23660046200083e565b620003e6565b60015462000125906001600160a01b031681565b6200015d62000722565b600054620001259061010090046001600160a01b031681565b6000546200022d9060ff1681565b604051901515815260200162000139565b6200010c6200024f36600462000888565b62000756565b6200022d6200026636600462000808565b60046020526000908152604090205460ff1681565b600554600654604080516001600160a01b0393841681529282166020840152600160a01b90910460ff1615159082015260600162000139565b6001546001600160a01b03163314620003145760405162461bcd60e51b815260206004820152601e60248201527f537472466163746f72793a204e6f742070656e64696e6720706175736572000060448201526064015b60405180910390fd5b600154600080546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600381815481106200035057600080fd5b6000918252602090912001546001600160a01b0316905081565b60005461010090046001600160a01b03163314620003c45760405162461bcd60e51b815260206004820152601660248201527529ba392330b1ba37b93c9d102737ba103830bab9b2b960511b60448201526064016200030b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b0316846001600160a01b0316036200044b5760405162461bcd60e51b815260206004820152601f60248201527f537472466163746f72793a204944454e544943414c5f4144445245535345530060448201526064016200030b565b600080846001600160a01b0316866001600160a01b0316106200047057848662000473565b85855b90925090506001600160a01b038216620004d05760405162461bcd60e51b815260206004820152601860248201527f537472466163746f72793a205a45524f5f41444452455353000000000000000060448201526064016200030b565b6001600160a01b0382811660009081526002602090815260408083208585168452825280832088151584529091529020541615620005515760405162461bcd60e51b815260206004820152601760248201527f537472466163746f72793a20504149525f45584953545300000000000000000060448201526064016200030b565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015284151560f81b604882015260009060490160408051601f19818403018152908290528051602090910120600680546001600160a01b038087166001600160a01b03198b1515600160a01b0281166001600160a81b03199094169390931717909255600580549288169290911691909117905591508190620005f890620007c3565b8190604051809103906000f590508015801562000619573d6000803e3d6000fd5b506001600160a01b0384811660008181526002602081815260408084208987168086529083528185208d15158087529084528286208054988a166001600160a01b0319998a16811790915582875294845282862087875284528286208187528452828620805489168617905560038054600181810183557fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9091018054909a1687179099558587526004855295839020805460ff1916909817909755935481519687529186019290925290840152929650907fc4805696c66d7cf352fc1d6bb633ad5ee82f6cb577c453024b6e0eb8306c6fc99060600160405180910390a35050509392505050565b6000604051806020016200073690620007c3565b6020820181038252601f19601f8201166040525080519060200120905090565b60005461010090046001600160a01b03163314620007b05760405162461bcd60e51b815260206004820152601660248201527529ba392330b1ba37b93c9d102737ba103830bab9b2b960511b60448201526064016200030b565b6000805460ff1916911515919091179055565b614f1180620008a783390190565b600060208284031215620007e457600080fd5b5035919050565b80356001600160a01b03811681146200080357600080fd5b919050565b6000602082840312156200081b57600080fd5b6200082682620007eb565b9392505050565b803580151581146200080357600080fd5b6000806000606084860312156200085457600080fd5b6200085f84620007eb565b92506200086f60208501620007eb565b91506200087f604085016200082d565b90509250925092565b6000602082840312156200089b57600080fd5b62000826826200082d56fe6101c0604052600160005560006003556101f46007556000600e556000600f553480156200002c57600080fd5b5033610140819052604080516361d027b360e01b815290516361d027b3916004808201926020929091908290030181865afa15801562000070573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000969190620008e6565b6001600160a01b0316610160816001600160a01b0316815250506000806000336001600160a01b031663eb13c4cf6040518163ffffffff1660e01b8152600401606060405180830381865afa158015620000f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200011a91906200090b565b8015156080526001600160a01b0380831661010052831660e0526040519295509093509150839083906200014e9062000815565b6001600160a01b03928316815291166020820152604001604051809103906000f08015801562000182573d6000803e3d6000fd5b506001600160a01b0316610120528015620003bb57826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620001d6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620002009190810190620009a6565b826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156200023f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620002699190810190620009a6565b6040516020016200027c92919062000a5e565b60405160208183030381529060405260019080519060200190620002a292919062000823565b50826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620002e2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200030c9190810190620009a6565b826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156200034b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620003759190810190620009a6565b6040516020016200038892919062000ab9565b60405160208183030381529060405260029080519060200190620003ae92919062000823565b50611388600755620005da565b826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620003fa573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620004249190810190620009a6565b826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000463573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200048d9190810190620009a6565b604051602001620004a092919062000b0a565b60405160208183030381529060405260019080519060200190620004c692919062000823565b50826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000506573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620005309190810190620009a6565b826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156200056f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620005999190810190620009a6565b604051602001620005ac92919062000b67565b60405160208183030381529060405260029080519060200190620005d292919062000823565b506101f46007555b826001600160a01b031663313ce5676040518163ffffffff1660e01b81526004016020604051808303816000875af11580156200061b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000641919062000b89565b6200064e90600a62000cc3565b6101808181525050816001600160a01b031663313ce5676040518163ffffffff1660e01b81526004016020604051808303816000875af115801562000697573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006bd919062000b89565b620006ca90600a62000cc3565b6101a0526040805160608101825242815260006020820181815282840182815260088054600180820183559190945293517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee360039094029384015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4830155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee59091015590517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f91620007a09162000d10565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160408051601f19818403018152919052805160209091012060a05250504660c0525062000db3565b61051b80620049f683390190565b828054620008319062000cd4565b90600052602060002090601f016020900481019282620008555760008555620008a0565b82601f106200087057805160ff1916838001178555620008a0565b82800160010185558215620008a0579182015b82811115620008a057825182559160200191906001019062000883565b50620008ae929150620008b2565b5090565b5b80821115620008ae5760008155600101620008b3565b80516001600160a01b0381168114620008e157600080fd5b919050565b600060208284031215620008f957600080fd5b6200090482620008c9565b9392505050565b6000806000606084860312156200092157600080fd5b6200092c84620008c9565b92506200093c60208501620008c9565b9150604084015180151581146200095257600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200099057818101518382015260200162000976565b83811115620009a0576000848401525b50505050565b600060208284031215620009b957600080fd5b81516001600160401b0380821115620009d157600080fd5b818401915084601f830112620009e657600080fd5b815181811115620009fb57620009fb6200095d565b604051601f8201601f19908116603f0116810190838211818310171562000a265762000a266200095d565b8160405282815287602084870101111562000a4057600080fd5b62000a5383602083016020880162000973565b979650505050505050565b6e029ba30b13632ab189020a6a690169608d1b81526000835162000a8a81600f85016020880162000973565b602f60f81b600f91840191820152835162000aad81601084016020880162000973565b01601001949350505050565b6473414d4d2d60d81b81526000835162000adb81600585016020880162000973565b602f60f81b600591840191820152835162000afe81600684016020880162000973565b01600601949350505050565b7002b37b630ba34b632ab189020a6a690169607d1b81526000835162000b3881601185016020880162000973565b602f60f81b601191840191820152835162000b5b81601284016020880162000973565b01601201949350505050565b6476414d4d2d60d81b81526000835162000adb81600585016020880162000973565b60006020828403121562000b9c57600080fd5b815160ff811681146200090457600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000c0557816000190482111562000be95762000be962000bae565b8085161562000bf757918102915b93841c939080029062000bc9565b509250929050565b60008262000c1e5750600162000cbd565b8162000c2d5750600062000cbd565b816001811462000c46576002811462000c515762000c71565b600191505062000cbd565b60ff84111562000c655762000c6562000bae565b50506001821b62000cbd565b5060208310610133831016604e8410600b841016171562000c96575081810a62000cbd565b62000ca2838362000bc4565b806000190482111562000cb95762000cb962000bae565b0290505b92915050565b60006200090460ff84168362000c0d565b600181811c9082168062000ce957607f821691505b60208210810362000d0a57634e487b7160e01b600052602260045260246000fd5b50919050565b600080835481600182811c91508083168062000d2d57607f831692505b6020808410820362000d4d57634e487b7160e01b86526022600452602486fd5b81801562000d64576001811462000d765762000da5565b60ff1986168952848901965062000da5565b60008a81526020902060005b8681101562000d9d5781548b82015290850190830162000d82565b505084890196505b509498975050505050505050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a051613ab662000f40600039600081816105270152818161278f01528181612a4c01528181612b0e0152612c190152600081816105040152818161274e01528181612a0d01528181612b500152612bf30152600061063b01526000818161086b0152818161095b0152611c8b01526000818161073f015281816120750152818161259e015261267c0152600081816105b1015281816107a70152818161089b01528181610b0601528181610df6015281816116c4015281816118f101528181611ec001528181612492015261265a015260008181610386015281816105890152818161078201528181610ae501528181610dd50152818161162e015281816118cf01528181611e9e0152818161240a0152818161257c01528181612a8e01528181612ad501528181612bba0152612c5d015260006107180152600081816104d6015261217201526000818161043f015281816105590152818161272601526129d90152613ab66000f3fe608060405234801561001057600080fd5b50600436106102f15760003560e01c80637ecebe001161019d578063bc25cf77116100e9578063d21220a7116100a2578063dd62ed3e1161007c578063dd62ed3e146108d8578063ebeb31db14610903578063f140a35a1461090b578063fff6cae91461091e57600080fd5b8063d21220a714610896578063d294f093146108bd578063d505accf146108c557600080fd5b8063bc25cf7714610838578063bda39cad1461084b578063bf944dbc14610854578063c245febc1461085d578063c45a015514610866578063c5700a021461088d57600080fd5b80639af1d35a116101565780639e8cc04b116101305780639e8cc04b146107d25780639f767c88146107e5578063a1ac4d1314610805578063a9059cbb1461082557600080fd5b80639af1d35a1461073a5780639c4f2483146107615780639d63848a1461077457600080fd5b80637ecebe0014610690578063886e40eb146106b057806389afcb44146106b95780638a7b8cf2146106e157806395d89b411461070b5780639a8a05921461071357600080fd5b806330adf81f1161025c5780634d5a9f8a116102155780635a76f25e116101ef5780635a76f25e1461062d57806361d027b3146106365780636a6278421461065d57806370a082311461067057600080fd5b80634d5a9f8a146105e7578063517b3f82146106075780635881c4751461061a57600080fd5b806330adf81f14610487578063313ce567146104ae57806332c0defd146104c85780633644e515146104d1578063392f37e9146104f8578063443cb4bc146105de57600080fd5b806318160ddd116102ae57806318160ddd146103e05780631df8c717146103f7578063205aabf11461041a57806322be3de11461043a57806323b872dd14610461578063252c09d71461047457600080fd5b8063022c0d9f146102f657806306fdde031461030b5780630902f1ac14610329578063095ea7b31461035e5780630dfe16811461038157806313345fe1146103c0575b600080fd5b610309610304366004613574565b610926565b005b610313610fe6565b604051610320919061363a565b60405180910390f35b600954600a54600b54604080516001600160701b03948516815293909216602084015263ffffffff1690820152606001610320565b61037161036c36600461366d565b611074565b6040519015158152602001610320565b6103a87f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b6103d36103ce366004613699565b61113d565b60405161032091906136d4565b6103e960035481565b604051908152602001610320565b6103ff611345565b60408051938452602084019290925290820152606001610320565b6103e9610428366004613718565b60116020526000908152604090205481565b6103717f000000000000000000000000000000000000000000000000000000000000000081565b61037161046f366004613735565b6113ad565b6103ff610482366004613776565b6114bb565b6103e97f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6104b6601281565b60405160ff9091168152602001610320565b6103e9600e5481565b6103e97f000000000000000000000000000000000000000000000000000000000000000081565b600954600a54604080517f000000000000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060208201529081019290925260608201527f0000000000000000000000000000000000000000000000000000000000000000151560808201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660a08301527f00000000000000000000000000000000000000000000000000000000000000001660c082015260e001610320565b6103e960095481565b6103e96105f5366004613718565b60126020526000908152604090205481565b6103e961061536600461366d565b6114ee565b6103d361062836600461378f565b6115d6565b6103e9600a5481565b6103a87f000000000000000000000000000000000000000000000000000000000000000081565b6103e961066b366004613718565b6115e5565b6103e961067e366004613718565b60056020526000908152604090205481565b6103e961069e366004613718565b60066020526000908152604090205481565b6103e960075481565b6106cc6106c7366004613718565b611884565b60408051928352602083019190915201610320565b6106e9611bf2565b6040805182518152602080840151908201529181015190820152606001610320565b610313611c72565b6103e97f000000000000000000000000000000000000000000000000000000000000000081565b6103a87f000000000000000000000000000000000000000000000000000000000000000081565b61030961076f366004613776565b611c7f565b604080516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811682527f000000000000000000000000000000000000000000000000000000000000000016602082015201610320565b6103e96107e036600461378f565b611ddc565b6103e96107f3366004613718565b60106020526000908152604090205481565b6103e9610813366004613718565b60136020526000908152604090205481565b61037161083336600461366d565b611e49565b610309610846366004613718565b611e5f565b6103e9600f5481565b6103e9600c5481565b6103e9600d5481565b6103a87f000000000000000000000000000000000000000000000000000000000000000081565b6103e9600b5481565b6103a87f000000000000000000000000000000000000000000000000000000000000000081565b6106cc611fec565b6103096108d33660046137c4565b612113565b6103e96108e636600461383b565b600460209081526000928352604080842090915290825290205481565b6008546103e9565b6103e9610919366004613874565b612391565b6103096123ca565b6000546001146109515760405162461bcd60e51b815260040161094890613899565b60405180910390fd5b60026000819055507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b187bd266040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109db91906138c1565b15610a195760405162461bcd60e51b815260206004820152600e60248201526d537472506169723a20504155534560901b6044820152606401610948565b6000851180610a285750600084115b610a805760405162461bcd60e51b815260206004820152602360248201527f537472506169723a20494e53554646494349454e545f4f55545055545f414d4f60448201526215539560ea1b6064820152608401610948565b600954600a548187108015610a9457508086105b610ae05760405162461bcd60e51b815260206004820152601f60248201527f537472506169723a20494e53554646494349454e545f4c4951554944495459006044820152606401610948565b6000807f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0389811690831614801590610b535750806001600160a01b0316896001600160a01b031614155b610b955760405162461bcd60e51b8152602060048201526013602482015272537472506169723a20494e56414c49445f544f60681b6044820152606401610948565b8a15610baf57610baf6001600160a01b0383168a8d612517565b8915610bc957610bc96001600160a01b0382168a8c612517565b8615610c3657604051639a7bff7960e01b81526001600160a01b038a1690639a7bff7990610c039033908f908f908e908e906004016138e3565b600060405180830381600087803b158015610c1d57600080fd5b505af1158015610c31573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015610c7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9e919061392f565b6040516370a0823160e01b81523060048201529094506001600160a01b038216906370a0823190602401602060405180830381865afa158015610ce5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d09919061392f565b9250505060008985610d1b919061395e565b8311610d28576000610d3c565b610d328a8661395e565b610d3c908461395e565b90506000610d4a8a8661395e565b8311610d57576000610d6b565b610d618a8661395e565b610d6b908461395e565b90506000821180610d7c5750600081115b610dd35760405162461bcd60e51b815260206004820152602260248201527f537472506169723a20494e53554646494349454e545f494e5055545f414d4f55604482015261139560f21b6064820152608401610948565b7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008315610e3157610e3160075485610e2c9190613975565b61256e565b8215610e4d57610e4d60075484610e489190613975565b61264c565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015610e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb5919061392f565b6040516370a0823160e01b81523060048201529096506001600160a01b038216906370a0823190602401602060405180830381865afa158015610efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f20919061392f565b9450610f2c8888612722565b610f368787612722565b1015610f715760405162461bcd60e51b815260206004820152600a602482015269537472506169723a204b60b01b6044820152606401610948565b5050610f7f8484888861286e565b60408051838152602081018390529081018c9052606081018b90526001600160a01b038a169033907fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229060800160405180910390a350506001600055505050505050505050565b60018054610ff390613997565b80601f016020809104026020016040519081016040528092919081815260200182805461101f90613997565b801561106c5780601f106110415761010080835404028352916020019161106c565b820191906000526020600020905b81548152906001019060200180831161104f57829003601f168201915b505050505081565b60006001600160a01b0383166110d85760405162461bcd60e51b8152602060048201526024808201527f537472506169723a20417070726f766520746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610948565b3360008181526004602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060015b92915050565b606060008367ffffffffffffffff81111561115a5761115a6139cb565b604051908082528060200260200182016040528015611183578160200160208202803683370190505b506008549091506000906111999060019061395e565b905060006111a785876139e1565b6111b1908361395e565b90506000805b83831015611335576111c98784613a00565b91506000600884815481106111e0576111e0613a18565b9060005260206000209060030201600001546008848154811061120557611205613a18565b906000526020600020906003020160000154611221919061395e565b90506000816008868154811061123957611239613a18565b9060005260206000209060030201600101546008868154811061125e5761125e613a18565b90600052602060002090600302016001015461127a919061395e565b6112849190613975565b90506000826008878154811061129c5761129c613a18565b906000526020600020906003020160020154600887815481106112c1576112c1613a18565b9060005260206000209060030201600201546112dd919061395e565b6112e79190613975565b90506112f58c8e84846129d5565b88858151811061130757611307613a18565b602090810291909101015261131d846001613a00565b9350505050868361132e9190613a00565b92506111b7565b509293505050505b949350505050565b600c54600d544260008080611363600954600a54600b549192909190565b63ffffffff1692506001600160701b031692506001600160701b031692508381146113a5576000611394828661395e565b848102979097019683029590950194505b505050909192565b6001600160a01b0383166000818152600460209081526040808320338085529252822054919290919082148015906113e757506000198114155b156114a2578381101561143c5760405162461bcd60e51b815260206004820152601f60248201527f537472506169723a20496e73756666696369656e7420616c6c6f77616e6365006044820152606401610948565b6001600160a01b03868116600081815260046020908152604080832094871680845294825291829020888603908190559151828152919392917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b6114ad868686612cca565b6001925050505b9392505050565b600881815481106114cb57600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b6000806114f9611bf2565b9050600080611506611345565b5084519193509150420361156e57600880546115249060029061395e565b8154811061153457611534613a18565b9060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505092505b825160009061157d904261395e565b9050600081856020015185611592919061395e565b61159c9190613975565b90506000828660400151856115b1919061395e565b6115bb9190613975565b90506115c9888a84846129d5565b9998505050505050505050565b606061133d848484600161113d565b600080546001146116085760405162461bcd60e51b815260040161094890613899565b60026000908155600954600a546040516370a0823160e01b8152306004820152919290917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561167d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a1919061392f565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561170b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172f919061392f565b9050600061173d858461395e565b9050600061174b858461395e565b600354909150600081900361178d576103e861176f61176a84866139e1565b612e4b565b611779919061395e565b975061178860006103e8612ebb565b6117c2565b6117bf8761179b83866139e1565b6117a59190613975565b876117b084866139e1565b6117ba9190613975565b612f4e565b97505b600088116118215760405162461bcd60e51b815260206004820152602660248201527f537472506169723a20494e53554646494349454e545f4c49515549444954595f60448201526513525395115160d21b6064820152608401610948565b61182b8989612ebb565b6118378585898961286e565b604080518481526020810184905233917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a250506001600055509395945050505050565b6000806000546001146118a95760405162461bcd60e51b815260040161094890613899565b60026000908155600954600a546040516370a0823160e01b8152306004820152919290917f0000000000000000000000000000000000000000000000000000000000000000917f0000000000000000000000000000000000000000000000000000000000000000916001600160a01b038416906370a0823190602401602060405180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611966919061392f565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156119b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d4919061392f565b3060009081526005602052604090205460035491925090806119f685846139e1565b611a009190613975565b995080611a0d84846139e1565b611a179190613975565b985060008a118015611a295750600089115b611a845760405162461bcd60e51b815260206004820152602660248201527f537472506169723a20494e53554646494349454e545f4c49515549444954595f60448201526510955493915160d21b6064820152608401610948565b611a8e3083612f64565b611aa26001600160a01b0387168c8c612517565b611ab66001600160a01b0386168c8b612517565b6040516370a0823160e01b81523060048201526001600160a01b038716906370a0823190602401602060405180830381865afa158015611afa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1e919061392f565b6040516370a0823160e01b81523060048201529094506001600160a01b038616906370a0823190602401602060405180830381865afa158015611b65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b89919061392f565b9250611b9784848a8a61286e565b604080518b8152602081018b90526001600160a01b038d169133917fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496910160405180910390a350505050505050506001600081905550915091565b611c1660405180606001604052806000815260200160008152602001600081525090565b60088054611c269060019061395e565b81548110611c3657611c36613a18565b90600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b60028054610ff390613997565b336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166361d027b36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ce7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0b9190613a2e565b6001600160a01b031614611d615760405162461bcd60e51b815260206004820181905260248201527f537472506169723a206e6f7420537472466163746f72792074726561737572796044820152606401610948565b60328111611dd75760405162461bcd60e51b815260206004820152603d60248201527f537472506169723a2046656520746f6f206869676820616d6f756e74202f205f60448201527f7377617046656543686f73656e203d2066656550616964416d6f756e740000006064820152608401610948565b600755565b600080611dec858585600161113d565b90506000805b8251811015611e3457828181518110611e0d57611e0d613a18565b602002602001015182611e209190613a00565b915080611e2c81613a4b565b915050611df2565b50611e3f8482613975565b9695505050505050565b6000611e56338484612cca565b50600192915050565b600054600114611e815760405162461bcd60e51b815260040161094890613899565b60026000556009546040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000000000000000000000917f000000000000000000000000000000000000000000000000000000000000000091611f569185916001600160a01b038616906370a0823190602401602060405180830381865afa158015611f17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3b919061392f565b611f45919061395e565b6001600160a01b0385169190612517565b600a546040516370a0823160e01b8152306004820152611fe29185916001600160a01b038516906370a0823190602401602060405180830381865afa158015611fa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc7919061392f565b611fd1919061395e565b6001600160a01b0384169190612517565b5050600160005550565b600080611ff833612fef565b505033600090815260126020908152604080832054601390925290912054811515806120245750600081115b1561210f573360008181526012602090815260408083208390556013909152808220919091555163299e7ae760e11b8152600481019190915260248101839052604481018290526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063533cf5ce90606401600060405180830381600087803b1580156120b957600080fd5b505af11580156120cd573d6000803e3d6000fd5b505060408051858152602081018590523393508392507f865ca08d59f5cb456e85cd2f7ef63664ea4f73327414e9d8152c4158b0e94645910160405180910390a35b9091565b428410156121565760405162461bcd60e51b815260206004820152601060248201526f14dd1c94185a5c8e881156141254915160821b6044820152606401610948565b6001600160a01b038716600090815260066020526040812080547f0000000000000000000000000000000000000000000000000000000000000000917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b91876121c483613a4b565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161223d92919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa1580156122a8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906122de5750886001600160a01b0316816001600160a01b0316145b61232a5760405162461bcd60e51b815260206004820152601a60248201527f537472506169723a20494e56414c49445f5349474e41545552450000000000006044820152606401610948565b6001600160a01b038981166000818152600460209081526040808320948d16808452948252918290208b905590518a81527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050505050505050565b600954600a5460075460009291906123a99086613975565b6123b3908661395e565b94506123c1858584846129d5565b95945050505050565b6000546001146123ec5760405162461bcd60e51b815260040161094890613899565b60026000556040516370a0823160e01b8152306004820152612510907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015612459573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247d919061392f565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156124e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612505919061392f565b600954600a5461286e565b6001600055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261256990849061315b565b505050565b806125c36001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083612517565b6003546000906125e16d04ee2d6d415b85acef8100000000846139e1565b6125eb9190613975565b9050801561260b5780600e60008282546126059190613a00565b90915550505b604080518381526000602082015233917f112c256902bf554b6ed882d2936687aaeb4225e8cd5b51303c90ca6cf43a860291015b60405180910390a2505050565b806126a16001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083612517565b6003546000906126bf6d04ee2d6d415b85acef8100000000846139e1565b6126c99190613975565b905080156126e95780600f60008282546126e39190613a00565b90915550505b60408051600081526020810184905233917f112c256902bf554b6ed882d2936687aaeb4225e8cd5b51303c90ca6cf43a8602910161263f565b60007f00000000000000000000000000000000000000000000000000000000000000001561285d5760007f000000000000000000000000000000000000000000000000000000000000000061277f85670de0b6b3a76400006139e1565b6127899190613975565b905060007f00000000000000000000000000000000000000000000000000000000000000006127c085670de0b6b3a76400006139e1565b6127ca9190613975565b90506000670de0b6b3a76400006127e183856139e1565b6127eb9190613975565b90506000670de0b6b3a764000061280284806139e1565b61280c9190613975565b670de0b6b3a764000061281f86806139e1565b6128299190613975565b6128339190613a00565b9050670de0b6b3a764000061284882846139e1565b6128529190613975565b945050505050611137565b61286782846139e1565b9050611137565b600b544290600090612880908361395e565b905060008111801561289157508315155b801561289c57508215155b156128b657600c8054858302019055600d80548483020190555b60006128c0611bf2565b80519091506128cf908461395e565b91506107088211156129845760408051606081018252848152600c5460208201908152600d549282019283526008805460018101825560009190915291517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600390930292830155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee482015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee5909101555b6009879055600a869055600b83905560408051888152602081018890527fcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a910160405180910390a150505050505050565b60007f000000000000000000000000000000000000000000000000000000000000000015612c58576000612a098484612722565b90507f0000000000000000000000000000000000000000000000000000000000000000612a3e85670de0b6b3a76400006139e1565b612a489190613975565b93507f0000000000000000000000000000000000000000000000000000000000000000612a7d84670de0b6b3a76400006139e1565b612a879190613975565b92506000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316876001600160a01b031614612acc578486612acf565b85855b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316876001600160a01b031614612b4e577f0000000000000000000000000000000000000000000000000000000000000000612b3f89670de0b6b3a76400006139e1565b612b499190613975565b612b8b565b7f0000000000000000000000000000000000000000000000000000000000000000612b8189670de0b6b3a76400006139e1565b612b8b9190613975565b97506000612ba3612b9c848b613a00565b858461322d565b612bad908361395e565b9050670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316896001600160a01b031614612c17577f0000000000000000000000000000000000000000000000000000000000000000612c39565b7f00000000000000000000000000000000000000000000000000000000000000005b612c4390836139e1565b612c4d9190613975565b94505050505061133d565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b031614612c9b578385612c9e565b84845b9092509050612cad8783613a00565b612cb782896139e1565b612cc19190613975565b9250505061133d565b6001600160a01b038216612d2e5760405162461bcd60e51b815260206004820152602560248201527f537472506169723a205472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610948565b612d3783612fef565b612d4082612fef565b6001600160a01b03831660009081526005602052604090205481811015612dba5760405162461bcd60e51b815260206004820152602860248201527f537472506169723a205472616e7366657220616d6f756e7420657863656564736044820152672062616c616e636560c01b6064820152608401610948565b6001600160a01b03808516600090815260056020526040808220858503905591851681529081208054849290612df1908490613a00565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612e3d91815260200190565b60405180910390a350505050565b60006003821115612eac5750806000612e65600283613975565b612e70906001613a00565b90505b81811015612ea657905080600281612e8b8186613975565b612e959190613a00565b612e9f9190613975565b9050612e73565b50919050565b8115612eb6575060015b919050565b612ec482612fef565b8060036000828254612ed69190613a00565b90915550506001600160a01b03821660009081526005602052604081208054839290612f03908490613a00565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6000818310612f5d57816114b4565b5090919050565b612f6d82612fef565b8060036000828254612f7f919061395e565b90915550506001600160a01b03821660009081526005602052604081208054839290612fac90849061395e565b90915550506040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001612f42565b6001600160a01b0381166000908152600560205260409020548015613129576001600160a01b0382166000908152601060209081526040808320805460118085529285208054600e54600f54948190559490955282905593613051858461395e565b9050600061305f858461395e565b905081156130c05760006d04ee2d6d415b85acef8100000000613082848a6139e1565b61308c9190613975565b6001600160a01b038a166000908152601260205260408120805492935083929091906130b9908490613a00565b9091555050505b801561311f5760006d04ee2d6d415b85acef81000000006130e1838a6139e1565b6130eb9190613975565b6001600160a01b038a16600090815260136020526040812080549293508392909190613118908490613a00565b9091555050505b5050505050505050565b600e546001600160a01b038316600090815260106020908152604080832093909355600f546011909152919020555050565b60006131b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661330f9092919063ffffffff16565b80519091501561256957808060200190518101906131ce91906138c1565b6125695760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610948565b6000805b60ff8110156133065782600061324787836133d5565b90508581101561329757600061325d8887613472565b613267838961395e565b61327990670de0b6b3a76400006139e1565b6132839190613975565b905061328f8187613a00565b9550506132d9565b60006132a38887613472565b6132ad888461395e565b6132bf90670de0b6b3a76400006139e1565b6132c99190613975565b90506132d5818761395e565b9550505b6132e5858360016134da565b156132f1575050613306565b505080806132fe90613a4b565b915050613231565b50909392505050565b60606001600160a01b0384163b6133685760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610948565b600080856001600160a01b0316856040516133839190613a64565b6000604051808303816000865af19150503d80600081146133c0576040519150601f19603f3d011682016040523d82523d6000602084013e6133c5565b606091505b5091509150611e3f828286613523565b6000670de0b6b3a7640000828185816133ee82806139e1565b6133f89190613975565b61340291906139e1565b61340c9190613975565b61341691906139e1565b6134209190613975565b670de0b6b3a764000080848161343682806139e1565b6134409190613975565b61344a91906139e1565b6134549190613975565b61345e90866139e1565b6134689190613975565b6114b49190613a00565b6000670de0b6b3a7640000838161348982806139e1565b6134939190613975565b61349d91906139e1565b6134a79190613975565b670de0b6b3a7640000806134bb85806139e1565b6134c59190613975565b6134d08660036139e1565b61345e91906139e1565b60008284111561350157816134ef848661395e565b116134fc575060016114b4565b613519565b8161350c858561395e565b11613519575060016114b4565b5060009392505050565b606083156135325750816114b4565b8251156135425782518084602001fd5b8160405162461bcd60e51b8152600401610948919061363a565b6001600160a01b038116811461357157600080fd5b50565b60008060008060006080868803121561358c57600080fd5b853594506020860135935060408601356135a58161355c565b9250606086013567ffffffffffffffff808211156135c257600080fd5b818801915088601f8301126135d657600080fd5b8135818111156135e557600080fd5b8960208285010111156135f757600080fd5b9699959850939650602001949392505050565b60005b8381101561362557818101518382015260200161360d565b83811115613634576000848401525b50505050565b602081526000825180602084015261365981604085016020870161360a565b601f01601f19169190910160400192915050565b6000806040838503121561368057600080fd5b823561368b8161355c565b946020939093013593505050565b600080600080608085870312156136af57600080fd5b84356136ba8161355c565b966020860135965060408601359560600135945092505050565b6020808252825182820181905260009190848201906040850190845b8181101561370c578351835292840192918401916001016136f0565b50909695505050505050565b60006020828403121561372a57600080fd5b81356114b48161355c565b60008060006060848603121561374a57600080fd5b83356137558161355c565b925060208401356137658161355c565b929592945050506040919091013590565b60006020828403121561378857600080fd5b5035919050565b6000806000606084860312156137a457600080fd5b83356137af8161355c565b95602085013595506040909401359392505050565b600080600080600080600060e0888a0312156137df57600080fd5b87356137ea8161355c565b965060208801356137fa8161355c565b95506040880135945060608801359350608088013560ff8116811461381e57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561384e57600080fd5b82356138598161355c565b915060208301356138698161355c565b809150509250929050565b6000806040838503121561388757600080fd5b8235915060208301356138698161355c565b6020808252600e908201526d1499595b9d1c985b9d0818d85b1b60921b604082015260600190565b6000602082840312156138d357600080fd5b815180151581146114b457600080fd5b60018060a01b038616815284602082015283604082015260806060820152816080820152818360a0830137600081830160a090810191909152601f909201601f19160101949350505050565b60006020828403121561394157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561397057613970613948565b500390565b60008261399257634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806139ab57607f821691505b602082108103612ea657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60008160001904831182151516156139fb576139fb613948565b500290565b60008219821115613a1357613a13613948565b500190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613a4057600080fd5b81516114b48161355c565b600060018201613a5d57613a5d613948565b5060010190565b60008251613a7681846020870161360a565b919091019291505056fea264697066735822122075d3bf894731c1109d991bf2755bc58d506ea9dba8009c75910d42300072923f64736f6c634300080d003360e060405234801561001057600080fd5b5060405161051b38038061051b83398101604081905261002f91610066565b336080526001600160a01b0391821660a0521660c052610099565b80516001600160a01b038116811461006157600080fd5b919050565b6000806040838503121561007957600080fd5b6100828361004a565b91506100906020840161004a565b90509250929050565b60805160a05160c0516104566100c5600039600060fa0152600060c001526000605001526104566000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063533cf5ce14610030575b600080fd5b61004361003e36600461033e565b610045565b005b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146100ad5760405162461bcd60e51b81526020600482015260086024820152672737ba103830b4b960c11b60448201526064015b60405180910390fd5b81156100e7576100e76001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168484610126565b8015610121576101216001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168483610126565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610121928692916000916101b6918516908490610233565b80519091501561012157808060200190518101906101d4919061037f565b6101215760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016100a4565b60606001600160a01b0384163b61028c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100a4565b600080856001600160a01b0316856040516102a791906103d1565b6000604051808303816000865af19150503d80600081146102e4576040519150601f19603f3d011682016040523d82523d6000602084013e6102e9565b606091505b50915091506102f9828286610305565b925050505b9392505050565b606083156103145750816102fe565b8251156103245782518084602001fd5b8160405162461bcd60e51b81526004016100a491906103ed565b60008060006060848603121561035357600080fd5b83356001600160a01b038116811461036a57600080fd5b95602085013595506040909401359392505050565b60006020828403121561039157600080fd5b815180151581146102fe57600080fd5b60005b838110156103bc5781810151838201526020016103a4565b838111156103cb576000848401525b50505050565b600082516103e38184602087016103a1565b9190910192915050565b602081526000825180602084015261040c8160408501602087016103a1565b601f01601f1916919091016040019291505056fea2646970667358221220515ff9c993fb4728196da1ff90f9463f5edb41760b0096cb3c731a9f4c432ec264736f6c634300080d0033a2646970667358221220d357add935d4489f3a67b381ec58feb841080b57c588182307c53a4e88872f3f64736f6c634300080d00330000000000000000000000003bb9372989c81d56db64e8aad38401e677b91244
Deployed Bytecode
0x60806040523480156200001157600080fd5b5060043610620000fd5760003560e01c80639a7165e41162000097578063b187bd26116200006e578063b187bd26146200021f578063bedb86fb146200023e578063e5e31b131462000255578063eb13c4cf146200027b57600080fd5b80639a7165e414620001e85780639aab924814620001fc5780639fd0506d146200020657600080fd5b8063574f2ba311620000d8578063574f2ba3146200015957806361d027b3146200016c5780636801cc30146200019457806382dfdce414620001d157600080fd5b8063167a6f9014620001025780631e3dd18b146200010e5780632d88af4a1462000142575b600080fd5b6200010c620002b4565b005b620001256200011f366004620007d1565b6200033f565b6040516001600160a01b0390911681526020015b60405180910390f35b6200010c6200015336600462000808565b6200036a565b6003545b60405190815260200162000139565b620001257f0000000000000000000000003bb9372989c81d56db64e8aad38401e677b9124481565b62000125620001a53660046200083e565b60026020908152600093845260408085208252928452828420905282529020546001600160a01b031681565b62000125620001e23660046200083e565b620003e6565b60015462000125906001600160a01b031681565b6200015d62000722565b600054620001259061010090046001600160a01b031681565b6000546200022d9060ff1681565b604051901515815260200162000139565b6200010c6200024f36600462000888565b62000756565b6200022d6200026636600462000808565b60046020526000908152604090205460ff1681565b600554600654604080516001600160a01b0393841681529282166020840152600160a01b90910460ff1615159082015260600162000139565b6001546001600160a01b03163314620003145760405162461bcd60e51b815260206004820152601e60248201527f537472466163746f72793a204e6f742070656e64696e6720706175736572000060448201526064015b60405180910390fd5b600154600080546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600381815481106200035057600080fd5b6000918252602090912001546001600160a01b0316905081565b60005461010090046001600160a01b03163314620003c45760405162461bcd60e51b815260206004820152601660248201527529ba392330b1ba37b93c9d102737ba103830bab9b2b960511b60448201526064016200030b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b0316846001600160a01b0316036200044b5760405162461bcd60e51b815260206004820152601f60248201527f537472466163746f72793a204944454e544943414c5f4144445245535345530060448201526064016200030b565b600080846001600160a01b0316866001600160a01b0316106200047057848662000473565b85855b90925090506001600160a01b038216620004d05760405162461bcd60e51b815260206004820152601860248201527f537472466163746f72793a205a45524f5f41444452455353000000000000000060448201526064016200030b565b6001600160a01b0382811660009081526002602090815260408083208585168452825280832088151584529091529020541615620005515760405162461bcd60e51b815260206004820152601760248201527f537472466163746f72793a20504149525f45584953545300000000000000000060448201526064016200030b565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015284151560f81b604882015260009060490160408051601f19818403018152908290528051602090910120600680546001600160a01b038087166001600160a01b03198b1515600160a01b0281166001600160a81b03199094169390931717909255600580549288169290911691909117905591508190620005f890620007c3565b8190604051809103906000f590508015801562000619573d6000803e3d6000fd5b506001600160a01b0384811660008181526002602081815260408084208987168086529083528185208d15158087529084528286208054988a166001600160a01b0319998a16811790915582875294845282862087875284528286208187528452828620805489168617905560038054600181810183557fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9091018054909a1687179099558587526004855295839020805460ff1916909817909755935481519687529186019290925290840152929650907fc4805696c66d7cf352fc1d6bb633ad5ee82f6cb577c453024b6e0eb8306c6fc99060600160405180910390a35050509392505050565b6000604051806020016200073690620007c3565b6020820181038252601f19601f8201166040525080519060200120905090565b60005461010090046001600160a01b03163314620007b05760405162461bcd60e51b815260206004820152601660248201527529ba392330b1ba37b93c9d102737ba103830bab9b2b960511b60448201526064016200030b565b6000805460ff1916911515919091179055565b614f1180620008a783390190565b600060208284031215620007e457600080fd5b5035919050565b80356001600160a01b03811681146200080357600080fd5b919050565b6000602082840312156200081b57600080fd5b6200082682620007eb565b9392505050565b803580151581146200080357600080fd5b6000806000606084860312156200085457600080fd5b6200085f84620007eb565b92506200086f60208501620007eb565b91506200087f604085016200082d565b90509250925092565b6000602082840312156200089b57600080fd5b62000826826200082d56fe6101c0604052600160005560006003556101f46007556000600e556000600f553480156200002c57600080fd5b5033610140819052604080516361d027b360e01b815290516361d027b3916004808201926020929091908290030181865afa15801562000070573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000969190620008e6565b6001600160a01b0316610160816001600160a01b0316815250506000806000336001600160a01b031663eb13c4cf6040518163ffffffff1660e01b8152600401606060405180830381865afa158015620000f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200011a91906200090b565b8015156080526001600160a01b0380831661010052831660e0526040519295509093509150839083906200014e9062000815565b6001600160a01b03928316815291166020820152604001604051809103906000f08015801562000182573d6000803e3d6000fd5b506001600160a01b0316610120528015620003bb57826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620001d6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620002009190810190620009a6565b826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156200023f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620002699190810190620009a6565b6040516020016200027c92919062000a5e565b60405160208183030381529060405260019080519060200190620002a292919062000823565b50826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620002e2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200030c9190810190620009a6565b826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156200034b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620003759190810190620009a6565b6040516020016200038892919062000ab9565b60405160208183030381529060405260029080519060200190620003ae92919062000823565b50611388600755620005da565b826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620003fa573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620004249190810190620009a6565b826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000463573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200048d9190810190620009a6565b604051602001620004a092919062000b0a565b60405160208183030381529060405260019080519060200190620004c692919062000823565b50826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000506573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620005309190810190620009a6565b826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156200056f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620005999190810190620009a6565b604051602001620005ac92919062000b67565b60405160208183030381529060405260029080519060200190620005d292919062000823565b506101f46007555b826001600160a01b031663313ce5676040518163ffffffff1660e01b81526004016020604051808303816000875af11580156200061b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000641919062000b89565b6200064e90600a62000cc3565b6101808181525050816001600160a01b031663313ce5676040518163ffffffff1660e01b81526004016020604051808303816000875af115801562000697573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006bd919062000b89565b620006ca90600a62000cc3565b6101a0526040805160608101825242815260006020820181815282840182815260088054600180820183559190945293517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee360039094029384015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4830155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee59091015590517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f91620007a09162000d10565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160408051601f19818403018152919052805160209091012060a05250504660c0525062000db3565b61051b80620049f683390190565b828054620008319062000cd4565b90600052602060002090601f016020900481019282620008555760008555620008a0565b82601f106200087057805160ff1916838001178555620008a0565b82800160010185558215620008a0579182015b82811115620008a057825182559160200191906001019062000883565b50620008ae929150620008b2565b5090565b5b80821115620008ae5760008155600101620008b3565b80516001600160a01b0381168114620008e157600080fd5b919050565b600060208284031215620008f957600080fd5b6200090482620008c9565b9392505050565b6000806000606084860312156200092157600080fd5b6200092c84620008c9565b92506200093c60208501620008c9565b9150604084015180151581146200095257600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200099057818101518382015260200162000976565b83811115620009a0576000848401525b50505050565b600060208284031215620009b957600080fd5b81516001600160401b0380821115620009d157600080fd5b818401915084601f830112620009e657600080fd5b815181811115620009fb57620009fb6200095d565b604051601f8201601f19908116603f0116810190838211818310171562000a265762000a266200095d565b8160405282815287602084870101111562000a4057600080fd5b62000a5383602083016020880162000973565b979650505050505050565b6e029ba30b13632ab189020a6a690169608d1b81526000835162000a8a81600f85016020880162000973565b602f60f81b600f91840191820152835162000aad81601084016020880162000973565b01601001949350505050565b6473414d4d2d60d81b81526000835162000adb81600585016020880162000973565b602f60f81b600591840191820152835162000afe81600684016020880162000973565b01600601949350505050565b7002b37b630ba34b632ab189020a6a690169607d1b81526000835162000b3881601185016020880162000973565b602f60f81b601191840191820152835162000b5b81601284016020880162000973565b01601201949350505050565b6476414d4d2d60d81b81526000835162000adb81600585016020880162000973565b60006020828403121562000b9c57600080fd5b815160ff811681146200090457600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000c0557816000190482111562000be95762000be962000bae565b8085161562000bf757918102915b93841c939080029062000bc9565b509250929050565b60008262000c1e5750600162000cbd565b8162000c2d5750600062000cbd565b816001811462000c46576002811462000c515762000c71565b600191505062000cbd565b60ff84111562000c655762000c6562000bae565b50506001821b62000cbd565b5060208310610133831016604e8410600b841016171562000c96575081810a62000cbd565b62000ca2838362000bc4565b806000190482111562000cb95762000cb962000bae565b0290505b92915050565b60006200090460ff84168362000c0d565b600181811c9082168062000ce957607f821691505b60208210810362000d0a57634e487b7160e01b600052602260045260246000fd5b50919050565b600080835481600182811c91508083168062000d2d57607f831692505b6020808410820362000d4d57634e487b7160e01b86526022600452602486fd5b81801562000d64576001811462000d765762000da5565b60ff1986168952848901965062000da5565b60008a81526020902060005b8681101562000d9d5781548b82015290850190830162000d82565b505084890196505b509498975050505050505050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a051613ab662000f40600039600081816105270152818161278f01528181612a4c01528181612b0e0152612c190152600081816105040152818161274e01528181612a0d01528181612b500152612bf30152600061063b01526000818161086b0152818161095b0152611c8b01526000818161073f015281816120750152818161259e015261267c0152600081816105b1015281816107a70152818161089b01528181610b0601528181610df6015281816116c4015281816118f101528181611ec001528181612492015261265a015260008181610386015281816105890152818161078201528181610ae501528181610dd50152818161162e015281816118cf01528181611e9e0152818161240a0152818161257c01528181612a8e01528181612ad501528181612bba0152612c5d015260006107180152600081816104d6015261217201526000818161043f015281816105590152818161272601526129d90152613ab66000f3fe608060405234801561001057600080fd5b50600436106102f15760003560e01c80637ecebe001161019d578063bc25cf77116100e9578063d21220a7116100a2578063dd62ed3e1161007c578063dd62ed3e146108d8578063ebeb31db14610903578063f140a35a1461090b578063fff6cae91461091e57600080fd5b8063d21220a714610896578063d294f093146108bd578063d505accf146108c557600080fd5b8063bc25cf7714610838578063bda39cad1461084b578063bf944dbc14610854578063c245febc1461085d578063c45a015514610866578063c5700a021461088d57600080fd5b80639af1d35a116101565780639e8cc04b116101305780639e8cc04b146107d25780639f767c88146107e5578063a1ac4d1314610805578063a9059cbb1461082557600080fd5b80639af1d35a1461073a5780639c4f2483146107615780639d63848a1461077457600080fd5b80637ecebe0014610690578063886e40eb146106b057806389afcb44146106b95780638a7b8cf2146106e157806395d89b411461070b5780639a8a05921461071357600080fd5b806330adf81f1161025c5780634d5a9f8a116102155780635a76f25e116101ef5780635a76f25e1461062d57806361d027b3146106365780636a6278421461065d57806370a082311461067057600080fd5b80634d5a9f8a146105e7578063517b3f82146106075780635881c4751461061a57600080fd5b806330adf81f14610487578063313ce567146104ae57806332c0defd146104c85780633644e515146104d1578063392f37e9146104f8578063443cb4bc146105de57600080fd5b806318160ddd116102ae57806318160ddd146103e05780631df8c717146103f7578063205aabf11461041a57806322be3de11461043a57806323b872dd14610461578063252c09d71461047457600080fd5b8063022c0d9f146102f657806306fdde031461030b5780630902f1ac14610329578063095ea7b31461035e5780630dfe16811461038157806313345fe1146103c0575b600080fd5b610309610304366004613574565b610926565b005b610313610fe6565b604051610320919061363a565b60405180910390f35b600954600a54600b54604080516001600160701b03948516815293909216602084015263ffffffff1690820152606001610320565b61037161036c36600461366d565b611074565b6040519015158152602001610320565b6103a87f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b6103d36103ce366004613699565b61113d565b60405161032091906136d4565b6103e960035481565b604051908152602001610320565b6103ff611345565b60408051938452602084019290925290820152606001610320565b6103e9610428366004613718565b60116020526000908152604090205481565b6103717f000000000000000000000000000000000000000000000000000000000000000081565b61037161046f366004613735565b6113ad565b6103ff610482366004613776565b6114bb565b6103e97f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6104b6601281565b60405160ff9091168152602001610320565b6103e9600e5481565b6103e97f000000000000000000000000000000000000000000000000000000000000000081565b600954600a54604080517f000000000000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060208201529081019290925260608201527f0000000000000000000000000000000000000000000000000000000000000000151560808201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660a08301527f00000000000000000000000000000000000000000000000000000000000000001660c082015260e001610320565b6103e960095481565b6103e96105f5366004613718565b60126020526000908152604090205481565b6103e961061536600461366d565b6114ee565b6103d361062836600461378f565b6115d6565b6103e9600a5481565b6103a87f000000000000000000000000000000000000000000000000000000000000000081565b6103e961066b366004613718565b6115e5565b6103e961067e366004613718565b60056020526000908152604090205481565b6103e961069e366004613718565b60066020526000908152604090205481565b6103e960075481565b6106cc6106c7366004613718565b611884565b60408051928352602083019190915201610320565b6106e9611bf2565b6040805182518152602080840151908201529181015190820152606001610320565b610313611c72565b6103e97f000000000000000000000000000000000000000000000000000000000000000081565b6103a87f000000000000000000000000000000000000000000000000000000000000000081565b61030961076f366004613776565b611c7f565b604080516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811682527f000000000000000000000000000000000000000000000000000000000000000016602082015201610320565b6103e96107e036600461378f565b611ddc565b6103e96107f3366004613718565b60106020526000908152604090205481565b6103e9610813366004613718565b60136020526000908152604090205481565b61037161083336600461366d565b611e49565b610309610846366004613718565b611e5f565b6103e9600f5481565b6103e9600c5481565b6103e9600d5481565b6103a87f000000000000000000000000000000000000000000000000000000000000000081565b6103e9600b5481565b6103a87f000000000000000000000000000000000000000000000000000000000000000081565b6106cc611fec565b6103096108d33660046137c4565b612113565b6103e96108e636600461383b565b600460209081526000928352604080842090915290825290205481565b6008546103e9565b6103e9610919366004613874565b612391565b6103096123ca565b6000546001146109515760405162461bcd60e51b815260040161094890613899565b60405180910390fd5b60026000819055507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b187bd266040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109db91906138c1565b15610a195760405162461bcd60e51b815260206004820152600e60248201526d537472506169723a20504155534560901b6044820152606401610948565b6000851180610a285750600084115b610a805760405162461bcd60e51b815260206004820152602360248201527f537472506169723a20494e53554646494349454e545f4f55545055545f414d4f60448201526215539560ea1b6064820152608401610948565b600954600a548187108015610a9457508086105b610ae05760405162461bcd60e51b815260206004820152601f60248201527f537472506169723a20494e53554646494349454e545f4c4951554944495459006044820152606401610948565b6000807f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0389811690831614801590610b535750806001600160a01b0316896001600160a01b031614155b610b955760405162461bcd60e51b8152602060048201526013602482015272537472506169723a20494e56414c49445f544f60681b6044820152606401610948565b8a15610baf57610baf6001600160a01b0383168a8d612517565b8915610bc957610bc96001600160a01b0382168a8c612517565b8615610c3657604051639a7bff7960e01b81526001600160a01b038a1690639a7bff7990610c039033908f908f908e908e906004016138e3565b600060405180830381600087803b158015610c1d57600080fd5b505af1158015610c31573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015610c7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9e919061392f565b6040516370a0823160e01b81523060048201529094506001600160a01b038216906370a0823190602401602060405180830381865afa158015610ce5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d09919061392f565b9250505060008985610d1b919061395e565b8311610d28576000610d3c565b610d328a8661395e565b610d3c908461395e565b90506000610d4a8a8661395e565b8311610d57576000610d6b565b610d618a8661395e565b610d6b908461395e565b90506000821180610d7c5750600081115b610dd35760405162461bcd60e51b815260206004820152602260248201527f537472506169723a20494e53554646494349454e545f494e5055545f414d4f55604482015261139560f21b6064820152608401610948565b7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008315610e3157610e3160075485610e2c9190613975565b61256e565b8215610e4d57610e4d60075484610e489190613975565b61264c565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015610e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb5919061392f565b6040516370a0823160e01b81523060048201529096506001600160a01b038216906370a0823190602401602060405180830381865afa158015610efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f20919061392f565b9450610f2c8888612722565b610f368787612722565b1015610f715760405162461bcd60e51b815260206004820152600a602482015269537472506169723a204b60b01b6044820152606401610948565b5050610f7f8484888861286e565b60408051838152602081018390529081018c9052606081018b90526001600160a01b038a169033907fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229060800160405180910390a350506001600055505050505050505050565b60018054610ff390613997565b80601f016020809104026020016040519081016040528092919081815260200182805461101f90613997565b801561106c5780601f106110415761010080835404028352916020019161106c565b820191906000526020600020905b81548152906001019060200180831161104f57829003601f168201915b505050505081565b60006001600160a01b0383166110d85760405162461bcd60e51b8152602060048201526024808201527f537472506169723a20417070726f766520746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610948565b3360008181526004602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060015b92915050565b606060008367ffffffffffffffff81111561115a5761115a6139cb565b604051908082528060200260200182016040528015611183578160200160208202803683370190505b506008549091506000906111999060019061395e565b905060006111a785876139e1565b6111b1908361395e565b90506000805b83831015611335576111c98784613a00565b91506000600884815481106111e0576111e0613a18565b9060005260206000209060030201600001546008848154811061120557611205613a18565b906000526020600020906003020160000154611221919061395e565b90506000816008868154811061123957611239613a18565b9060005260206000209060030201600101546008868154811061125e5761125e613a18565b90600052602060002090600302016001015461127a919061395e565b6112849190613975565b90506000826008878154811061129c5761129c613a18565b906000526020600020906003020160020154600887815481106112c1576112c1613a18565b9060005260206000209060030201600201546112dd919061395e565b6112e79190613975565b90506112f58c8e84846129d5565b88858151811061130757611307613a18565b602090810291909101015261131d846001613a00565b9350505050868361132e9190613a00565b92506111b7565b509293505050505b949350505050565b600c54600d544260008080611363600954600a54600b549192909190565b63ffffffff1692506001600160701b031692506001600160701b031692508381146113a5576000611394828661395e565b848102979097019683029590950194505b505050909192565b6001600160a01b0383166000818152600460209081526040808320338085529252822054919290919082148015906113e757506000198114155b156114a2578381101561143c5760405162461bcd60e51b815260206004820152601f60248201527f537472506169723a20496e73756666696369656e7420616c6c6f77616e6365006044820152606401610948565b6001600160a01b03868116600081815260046020908152604080832094871680845294825291829020888603908190559151828152919392917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b6114ad868686612cca565b6001925050505b9392505050565b600881815481106114cb57600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b6000806114f9611bf2565b9050600080611506611345565b5084519193509150420361156e57600880546115249060029061395e565b8154811061153457611534613a18565b9060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505092505b825160009061157d904261395e565b9050600081856020015185611592919061395e565b61159c9190613975565b90506000828660400151856115b1919061395e565b6115bb9190613975565b90506115c9888a84846129d5565b9998505050505050505050565b606061133d848484600161113d565b600080546001146116085760405162461bcd60e51b815260040161094890613899565b60026000908155600954600a546040516370a0823160e01b8152306004820152919290917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561167d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a1919061392f565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561170b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172f919061392f565b9050600061173d858461395e565b9050600061174b858461395e565b600354909150600081900361178d576103e861176f61176a84866139e1565b612e4b565b611779919061395e565b975061178860006103e8612ebb565b6117c2565b6117bf8761179b83866139e1565b6117a59190613975565b876117b084866139e1565b6117ba9190613975565b612f4e565b97505b600088116118215760405162461bcd60e51b815260206004820152602660248201527f537472506169723a20494e53554646494349454e545f4c49515549444954595f60448201526513525395115160d21b6064820152608401610948565b61182b8989612ebb565b6118378585898961286e565b604080518481526020810184905233917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a250506001600055509395945050505050565b6000806000546001146118a95760405162461bcd60e51b815260040161094890613899565b60026000908155600954600a546040516370a0823160e01b8152306004820152919290917f0000000000000000000000000000000000000000000000000000000000000000917f0000000000000000000000000000000000000000000000000000000000000000916001600160a01b038416906370a0823190602401602060405180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611966919061392f565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156119b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d4919061392f565b3060009081526005602052604090205460035491925090806119f685846139e1565b611a009190613975565b995080611a0d84846139e1565b611a179190613975565b985060008a118015611a295750600089115b611a845760405162461bcd60e51b815260206004820152602660248201527f537472506169723a20494e53554646494349454e545f4c49515549444954595f60448201526510955493915160d21b6064820152608401610948565b611a8e3083612f64565b611aa26001600160a01b0387168c8c612517565b611ab66001600160a01b0386168c8b612517565b6040516370a0823160e01b81523060048201526001600160a01b038716906370a0823190602401602060405180830381865afa158015611afa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1e919061392f565b6040516370a0823160e01b81523060048201529094506001600160a01b038616906370a0823190602401602060405180830381865afa158015611b65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b89919061392f565b9250611b9784848a8a61286e565b604080518b8152602081018b90526001600160a01b038d169133917fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496910160405180910390a350505050505050506001600081905550915091565b611c1660405180606001604052806000815260200160008152602001600081525090565b60088054611c269060019061395e565b81548110611c3657611c36613a18565b90600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b60028054610ff390613997565b336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166361d027b36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ce7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0b9190613a2e565b6001600160a01b031614611d615760405162461bcd60e51b815260206004820181905260248201527f537472506169723a206e6f7420537472466163746f72792074726561737572796044820152606401610948565b60328111611dd75760405162461bcd60e51b815260206004820152603d60248201527f537472506169723a2046656520746f6f206869676820616d6f756e74202f205f60448201527f7377617046656543686f73656e203d2066656550616964416d6f756e740000006064820152608401610948565b600755565b600080611dec858585600161113d565b90506000805b8251811015611e3457828181518110611e0d57611e0d613a18565b602002602001015182611e209190613a00565b915080611e2c81613a4b565b915050611df2565b50611e3f8482613975565b9695505050505050565b6000611e56338484612cca565b50600192915050565b600054600114611e815760405162461bcd60e51b815260040161094890613899565b60026000556009546040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000000000000000000000917f000000000000000000000000000000000000000000000000000000000000000091611f569185916001600160a01b038616906370a0823190602401602060405180830381865afa158015611f17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3b919061392f565b611f45919061395e565b6001600160a01b0385169190612517565b600a546040516370a0823160e01b8152306004820152611fe29185916001600160a01b038516906370a0823190602401602060405180830381865afa158015611fa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc7919061392f565b611fd1919061395e565b6001600160a01b0384169190612517565b5050600160005550565b600080611ff833612fef565b505033600090815260126020908152604080832054601390925290912054811515806120245750600081115b1561210f573360008181526012602090815260408083208390556013909152808220919091555163299e7ae760e11b8152600481019190915260248101839052604481018290526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063533cf5ce90606401600060405180830381600087803b1580156120b957600080fd5b505af11580156120cd573d6000803e3d6000fd5b505060408051858152602081018590523393508392507f865ca08d59f5cb456e85cd2f7ef63664ea4f73327414e9d8152c4158b0e94645910160405180910390a35b9091565b428410156121565760405162461bcd60e51b815260206004820152601060248201526f14dd1c94185a5c8e881156141254915160821b6044820152606401610948565b6001600160a01b038716600090815260066020526040812080547f0000000000000000000000000000000000000000000000000000000000000000917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b91876121c483613a4b565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161223d92919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa1580156122a8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906122de5750886001600160a01b0316816001600160a01b0316145b61232a5760405162461bcd60e51b815260206004820152601a60248201527f537472506169723a20494e56414c49445f5349474e41545552450000000000006044820152606401610948565b6001600160a01b038981166000818152600460209081526040808320948d16808452948252918290208b905590518a81527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050505050505050565b600954600a5460075460009291906123a99086613975565b6123b3908661395e565b94506123c1858584846129d5565b95945050505050565b6000546001146123ec5760405162461bcd60e51b815260040161094890613899565b60026000556040516370a0823160e01b8152306004820152612510907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015612459573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247d919061392f565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156124e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612505919061392f565b600954600a5461286e565b6001600055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261256990849061315b565b505050565b806125c36001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083612517565b6003546000906125e16d04ee2d6d415b85acef8100000000846139e1565b6125eb9190613975565b9050801561260b5780600e60008282546126059190613a00565b90915550505b604080518381526000602082015233917f112c256902bf554b6ed882d2936687aaeb4225e8cd5b51303c90ca6cf43a860291015b60405180910390a2505050565b806126a16001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083612517565b6003546000906126bf6d04ee2d6d415b85acef8100000000846139e1565b6126c99190613975565b905080156126e95780600f60008282546126e39190613a00565b90915550505b60408051600081526020810184905233917f112c256902bf554b6ed882d2936687aaeb4225e8cd5b51303c90ca6cf43a8602910161263f565b60007f00000000000000000000000000000000000000000000000000000000000000001561285d5760007f000000000000000000000000000000000000000000000000000000000000000061277f85670de0b6b3a76400006139e1565b6127899190613975565b905060007f00000000000000000000000000000000000000000000000000000000000000006127c085670de0b6b3a76400006139e1565b6127ca9190613975565b90506000670de0b6b3a76400006127e183856139e1565b6127eb9190613975565b90506000670de0b6b3a764000061280284806139e1565b61280c9190613975565b670de0b6b3a764000061281f86806139e1565b6128299190613975565b6128339190613a00565b9050670de0b6b3a764000061284882846139e1565b6128529190613975565b945050505050611137565b61286782846139e1565b9050611137565b600b544290600090612880908361395e565b905060008111801561289157508315155b801561289c57508215155b156128b657600c8054858302019055600d80548483020190555b60006128c0611bf2565b80519091506128cf908461395e565b91506107088211156129845760408051606081018252848152600c5460208201908152600d549282019283526008805460018101825560009190915291517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600390930292830155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee482015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee5909101555b6009879055600a869055600b83905560408051888152602081018890527fcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a910160405180910390a150505050505050565b60007f000000000000000000000000000000000000000000000000000000000000000015612c58576000612a098484612722565b90507f0000000000000000000000000000000000000000000000000000000000000000612a3e85670de0b6b3a76400006139e1565b612a489190613975565b93507f0000000000000000000000000000000000000000000000000000000000000000612a7d84670de0b6b3a76400006139e1565b612a879190613975565b92506000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316876001600160a01b031614612acc578486612acf565b85855b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316876001600160a01b031614612b4e577f0000000000000000000000000000000000000000000000000000000000000000612b3f89670de0b6b3a76400006139e1565b612b499190613975565b612b8b565b7f0000000000000000000000000000000000000000000000000000000000000000612b8189670de0b6b3a76400006139e1565b612b8b9190613975565b97506000612ba3612b9c848b613a00565b858461322d565b612bad908361395e565b9050670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316896001600160a01b031614612c17577f0000000000000000000000000000000000000000000000000000000000000000612c39565b7f00000000000000000000000000000000000000000000000000000000000000005b612c4390836139e1565b612c4d9190613975565b94505050505061133d565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b031614612c9b578385612c9e565b84845b9092509050612cad8783613a00565b612cb782896139e1565b612cc19190613975565b9250505061133d565b6001600160a01b038216612d2e5760405162461bcd60e51b815260206004820152602560248201527f537472506169723a205472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610948565b612d3783612fef565b612d4082612fef565b6001600160a01b03831660009081526005602052604090205481811015612dba5760405162461bcd60e51b815260206004820152602860248201527f537472506169723a205472616e7366657220616d6f756e7420657863656564736044820152672062616c616e636560c01b6064820152608401610948565b6001600160a01b03808516600090815260056020526040808220858503905591851681529081208054849290612df1908490613a00565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612e3d91815260200190565b60405180910390a350505050565b60006003821115612eac5750806000612e65600283613975565b612e70906001613a00565b90505b81811015612ea657905080600281612e8b8186613975565b612e959190613a00565b612e9f9190613975565b9050612e73565b50919050565b8115612eb6575060015b919050565b612ec482612fef565b8060036000828254612ed69190613a00565b90915550506001600160a01b03821660009081526005602052604081208054839290612f03908490613a00565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6000818310612f5d57816114b4565b5090919050565b612f6d82612fef565b8060036000828254612f7f919061395e565b90915550506001600160a01b03821660009081526005602052604081208054839290612fac90849061395e565b90915550506040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001612f42565b6001600160a01b0381166000908152600560205260409020548015613129576001600160a01b0382166000908152601060209081526040808320805460118085529285208054600e54600f54948190559490955282905593613051858461395e565b9050600061305f858461395e565b905081156130c05760006d04ee2d6d415b85acef8100000000613082848a6139e1565b61308c9190613975565b6001600160a01b038a166000908152601260205260408120805492935083929091906130b9908490613a00565b9091555050505b801561311f5760006d04ee2d6d415b85acef81000000006130e1838a6139e1565b6130eb9190613975565b6001600160a01b038a16600090815260136020526040812080549293508392909190613118908490613a00565b9091555050505b5050505050505050565b600e546001600160a01b038316600090815260106020908152604080832093909355600f546011909152919020555050565b60006131b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661330f9092919063ffffffff16565b80519091501561256957808060200190518101906131ce91906138c1565b6125695760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610948565b6000805b60ff8110156133065782600061324787836133d5565b90508581101561329757600061325d8887613472565b613267838961395e565b61327990670de0b6b3a76400006139e1565b6132839190613975565b905061328f8187613a00565b9550506132d9565b60006132a38887613472565b6132ad888461395e565b6132bf90670de0b6b3a76400006139e1565b6132c99190613975565b90506132d5818761395e565b9550505b6132e5858360016134da565b156132f1575050613306565b505080806132fe90613a4b565b915050613231565b50909392505050565b60606001600160a01b0384163b6133685760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610948565b600080856001600160a01b0316856040516133839190613a64565b6000604051808303816000865af19150503d80600081146133c0576040519150601f19603f3d011682016040523d82523d6000602084013e6133c5565b606091505b5091509150611e3f828286613523565b6000670de0b6b3a7640000828185816133ee82806139e1565b6133f89190613975565b61340291906139e1565b61340c9190613975565b61341691906139e1565b6134209190613975565b670de0b6b3a764000080848161343682806139e1565b6134409190613975565b61344a91906139e1565b6134549190613975565b61345e90866139e1565b6134689190613975565b6114b49190613a00565b6000670de0b6b3a7640000838161348982806139e1565b6134939190613975565b61349d91906139e1565b6134a79190613975565b670de0b6b3a7640000806134bb85806139e1565b6134c59190613975565b6134d08660036139e1565b61345e91906139e1565b60008284111561350157816134ef848661395e565b116134fc575060016114b4565b613519565b8161350c858561395e565b11613519575060016114b4565b5060009392505050565b606083156135325750816114b4565b8251156135425782518084602001fd5b8160405162461bcd60e51b8152600401610948919061363a565b6001600160a01b038116811461357157600080fd5b50565b60008060008060006080868803121561358c57600080fd5b853594506020860135935060408601356135a58161355c565b9250606086013567ffffffffffffffff808211156135c257600080fd5b818801915088601f8301126135d657600080fd5b8135818111156135e557600080fd5b8960208285010111156135f757600080fd5b9699959850939650602001949392505050565b60005b8381101561362557818101518382015260200161360d565b83811115613634576000848401525b50505050565b602081526000825180602084015261365981604085016020870161360a565b601f01601f19169190910160400192915050565b6000806040838503121561368057600080fd5b823561368b8161355c565b946020939093013593505050565b600080600080608085870312156136af57600080fd5b84356136ba8161355c565b966020860135965060408601359560600135945092505050565b6020808252825182820181905260009190848201906040850190845b8181101561370c578351835292840192918401916001016136f0565b50909695505050505050565b60006020828403121561372a57600080fd5b81356114b48161355c565b60008060006060848603121561374a57600080fd5b83356137558161355c565b925060208401356137658161355c565b929592945050506040919091013590565b60006020828403121561378857600080fd5b5035919050565b6000806000606084860312156137a457600080fd5b83356137af8161355c565b95602085013595506040909401359392505050565b600080600080600080600060e0888a0312156137df57600080fd5b87356137ea8161355c565b965060208801356137fa8161355c565b95506040880135945060608801359350608088013560ff8116811461381e57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561384e57600080fd5b82356138598161355c565b915060208301356138698161355c565b809150509250929050565b6000806040838503121561388757600080fd5b8235915060208301356138698161355c565b6020808252600e908201526d1499595b9d1c985b9d0818d85b1b60921b604082015260600190565b6000602082840312156138d357600080fd5b815180151581146114b457600080fd5b60018060a01b038616815284602082015283604082015260806060820152816080820152818360a0830137600081830160a090810191909152601f909201601f19160101949350505050565b60006020828403121561394157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561397057613970613948565b500390565b60008261399257634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806139ab57607f821691505b602082108103612ea657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60008160001904831182151516156139fb576139fb613948565b500290565b60008219821115613a1357613a13613948565b500190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613a4057600080fd5b81516114b48161355c565b600060018201613a5d57613a5d613948565b5060010190565b60008251613a7681846020870161360a565b919091019291505056fea264697066735822122075d3bf894731c1109d991bf2755bc58d506ea9dba8009c75910d42300072923f64736f6c634300080d003360e060405234801561001057600080fd5b5060405161051b38038061051b83398101604081905261002f91610066565b336080526001600160a01b0391821660a0521660c052610099565b80516001600160a01b038116811461006157600080fd5b919050565b6000806040838503121561007957600080fd5b6100828361004a565b91506100906020840161004a565b90509250929050565b60805160a05160c0516104566100c5600039600060fa0152600060c001526000605001526104566000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063533cf5ce14610030575b600080fd5b61004361003e36600461033e565b610045565b005b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146100ad5760405162461bcd60e51b81526020600482015260086024820152672737ba103830b4b960c11b60448201526064015b60405180910390fd5b81156100e7576100e76001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168484610126565b8015610121576101216001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168483610126565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610121928692916000916101b6918516908490610233565b80519091501561012157808060200190518101906101d4919061037f565b6101215760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016100a4565b60606001600160a01b0384163b61028c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100a4565b600080856001600160a01b0316856040516102a791906103d1565b6000604051808303816000865af19150503d80600081146102e4576040519150601f19603f3d011682016040523d82523d6000602084013e6102e9565b606091505b50915091506102f9828286610305565b925050505b9392505050565b606083156103145750816102fe565b8251156103245782518084602001fd5b8160405162461bcd60e51b81526004016100a491906103ed565b60008060006060848603121561035357600080fd5b83356001600160a01b038116811461036a57600080fd5b95602085013595506040909401359392505050565b60006020828403121561039157600080fd5b815180151581146102fe57600080fd5b60005b838110156103bc5781810151838201526020016103a4565b838111156103cb576000848401525b50505050565b600082516103e38184602087016103a1565b9190910192915050565b602081526000825180602084015261040c8160408501602087016103a1565b601f01601f1916919091016040019291505056fea2646970667358221220515ff9c993fb4728196da1ff90f9463f5edb41760b0096cb3c731a9f4c432ec264736f6c634300080d0033a2646970667358221220d357add935d4489f3a67b381ec58feb841080b57c588182307c53a4e88872f3f64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003bb9372989c81d56db64e8aad38401e677b91244
-----Decoded View---------------
Arg [0] : _treasury (address): 0x3Bb9372989c81d56db64e8aaD38401E677b91244
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003bb9372989c81d56db64e8aad38401e677b91244
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.