More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 10,866 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake And Rede... | 18102812 | 2 hrs ago | IN | 0 ETH | 0.0002071 | ||||
Unstake And Rede... | 18098353 | 6 hrs ago | IN | 0 ETH | 0.00024667 | ||||
Unstake And Rede... | 18091981 | 12 hrs ago | IN | 0 ETH | 0.00050187 | ||||
Migrate Staking | 18091967 | 12 hrs ago | IN | 0 ETH | 0.00027393 | ||||
Migrate Staking | 18088565 | 15 hrs ago | IN | 0 ETH | 0.00014038 | ||||
Unstake And Rede... | 18088123 | 16 hrs ago | IN | 0 ETH | 0.00042715 | ||||
Migrate Staking | 18088105 | 16 hrs ago | IN | 0 ETH | 0.00020967 | ||||
Unstake And Rede... | 18085776 | 18 hrs ago | IN | 0 ETH | 0.00026562 | ||||
Migrate Staking | 18085748 | 18 hrs ago | IN | 0 ETH | 0.00014623 | ||||
Unstake And Rede... | 18079504 | 24 hrs ago | IN | 0 ETH | 0.00019815 | ||||
Unstake And Rede... | 18071047 | 32 hrs ago | IN | 0 ETH | 0.00025608 | ||||
Migrate Staking | 18071035 | 32 hrs ago | IN | 0 ETH | 0.00014264 | ||||
Mint And Stake Q... | 18062605 | 40 hrs ago | IN | 0.00001 ETH | 0.00008761 | ||||
Mint And Stake Q... | 18062600 | 40 hrs ago | IN | 0.00001 ETH | 0.00010168 | ||||
Unstake And Rede... | 18055750 | 47 hrs ago | IN | 0 ETH | 0.0002656 | ||||
Migrate Staking | 18055709 | 47 hrs ago | IN | 0 ETH | 0.00014038 | ||||
Unstake And Rede... | 18020951 | 3 days ago | IN | 0 ETH | 0.00016089 | ||||
Unstake And Rede... | 18019278 | 3 days ago | IN | 0 ETH | 0.00022043 | ||||
Migrate Staking | 18019218 | 3 days ago | IN | 0 ETH | 0.00010552 | ||||
Unstake And Rede... | 18009414 | 3 days ago | IN | 0 ETH | 0.00025011 | ||||
Migrate Staking | 18009366 | 3 days ago | IN | 0 ETH | 0.00014038 | ||||
Unstake And Rede... | 18002783 | 4 days ago | IN | 0 ETH | 0.00009507 | ||||
Unstake And Rede... | 17997947 | 4 days ago | IN | 0 ETH | 0.00014626 | ||||
Unstake And Rede... | 17980912 | 5 days ago | IN | 0 ETH | 0.00007313 | ||||
Migrate Staking | 17980891 | 5 days ago | IN | 0 ETH | 0.00004638 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
18102812 | 2 hrs ago | 0.02382623 ETH | ||||
18102812 | 2 hrs ago | 0.02382623 ETH | ||||
18098353 | 6 hrs ago | 0.01626083 ETH | ||||
18098353 | 6 hrs ago | 0.01626083 ETH | ||||
18088123 | 16 hrs ago | 0.01498019 ETH | ||||
18088123 | 16 hrs ago | 0.01498019 ETH | ||||
18085776 | 18 hrs ago | 0.01624085 ETH | ||||
18085776 | 18 hrs ago | 0.01624085 ETH | ||||
18079504 | 24 hrs ago | 0.01367046 ETH | ||||
18079504 | 24 hrs ago | 0.01367046 ETH | ||||
18071047 | 32 hrs ago | 0.00881304 ETH | ||||
18071047 | 32 hrs ago | 0.00881304 ETH | ||||
18062605 | 40 hrs ago | 0.00001 ETH | ||||
18062600 | 40 hrs ago | 0.00001 ETH | ||||
18055750 | 47 hrs ago | 0.00086817 ETH | ||||
18055750 | 47 hrs ago | 0.00086817 ETH | ||||
18020951 | 3 days ago | 0.04338781 ETH | ||||
18020951 | 3 days ago | 0.04338781 ETH | ||||
18009414 | 3 days ago | 0.01403674 ETH | ||||
18009414 | 3 days ago | 0.01403674 ETH | ||||
18002783 | 4 days ago | 0.02804313 ETH | ||||
18002783 | 4 days ago | 0.02804313 ETH | ||||
17997947 | 4 days ago | 0.01159967 ETH | ||||
17997947 | 4 days ago | 0.01159967 ETH | ||||
17980912 | 5 days ago | 0.00082916 ETH |
Loading...
Loading
Contract Name:
RewardRouter
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "../libraries/math/SafeMath.sol"; import "../libraries/token/IERC20.sol"; import "../libraries/token/SafeERC20.sol"; import "../libraries/utils/ReentrancyGuard.sol"; import "../libraries/utils/Address.sol"; import "./interfaces/IRewardTracker.sol"; import "../tokens/interfaces/IMintable.sol"; import "../tokens/interfaces/IWETH.sol"; import "../core/interfaces/IQlpManager.sol"; import "../access/Governable.sol"; import "./../core/interfaces/IVault.sol"; import "./interfaces/IRewardTrackerClaim.sol"; contract RewardRouter is ReentrancyGuard, Governable { using SafeMath for uint256; using SafeERC20 for IERC20; using Address for address payable; address public immutable weth; address public immutable qlp; address public immutable feeQlpTracker; address public immutable qlpManager; address public immutable oldStakedQlpTracker; //For migration address public immutable oldFeeQlpTracker; //For migration IVault public immutable vault; mapping(address => address) public pendingReceivers; event StakeQlp(address indexed account, uint256 amount); event UnstakeQlp(address indexed account, uint256 amount); event StakeMigration(address indexed account, uint256 amount); receive() external payable { require(msg.sender == weth, "Router: invalid sender"); } constructor( address _weth, address _qlp, address _vault, address _feeQlpTracker, address _qlpManager, address _oldStakedQlpTracker, address _oldFeeQlpTracker ) public{ weth = _weth; qlp = _qlp; vault = IVault(_vault); feeQlpTracker = _feeQlpTracker; qlpManager = _qlpManager; oldStakedQlpTracker = _oldStakedQlpTracker; oldFeeQlpTracker = _oldFeeQlpTracker; } // to help users who accidentally send their tokens to this contract function withdrawToken( address _token, address _account, uint256 _amount ) external onlyGov { IERC20(_token).safeTransfer(_account, _amount); } function mintAndStakeQlp( address _token, uint256 _amount, uint256 _minUsdq, uint256 _minQlp ) external nonReentrant returns (uint256) { require(_amount != 0, "RewardRouter: invalid _amount"); return _mintAndStakeQlp(msg.sender,msg.sender,_token, _amount, _minUsdq, _minQlp); } function _mintAndStakeQlp( address fundingAccount, address account, address _token, uint256 _amount, uint256 _minUsdq, uint256 _minQlp ) private returns (uint256) { uint256 qlpAmount = IQlpManager(qlpManager).addLiquidityForAccount(fundingAccount, account, _token, _amount, _minUsdq, _minQlp); IRewardTracker(feeQlpTracker).stakeForAccount(account, account, qlp, qlpAmount); emit StakeQlp(account, qlpAmount); return qlpAmount; } function mintAndStakeQlpETH(uint256 _minUsdq, uint256 _minQlp) external payable nonReentrant returns (uint256) { require(msg.value != 0, "RewardRouter: invalid msg.value"); IWETH(weth).deposit{value: msg.value}(); return _mintAndStakeQlpETH(msg.value,_minUsdq, _minQlp); } function _mintAndStakeQlpETH(uint256 _amount,uint256 _minUsdq, uint256 _minQlp) private returns (uint256) { require(_amount != 0, "RewardRouter: invalid _amount"); IERC20(weth).approve(qlpManager, _amount); address account = msg.sender; uint256 qlpAmount = IQlpManager(qlpManager).addLiquidityForAccount(address(this), account, weth, _amount, _minUsdq, _minQlp); IRewardTracker(feeQlpTracker).stakeForAccount(account, account, qlp, qlpAmount); emit StakeQlp(account, qlpAmount); return qlpAmount; } function unstakeAndRedeemQlp( address _tokenOut, uint256 _qlpAmount, uint256 _minOut, address _receiver ) external nonReentrant returns (uint256) { require(_qlpAmount != 0, "RewardRouter: invalid _qlpAmount"); address account = msg.sender; IRewardTracker(feeQlpTracker).unstakeForAccount(account, qlp, _qlpAmount, account); uint256 amountOut = IQlpManager(qlpManager).removeLiquidityForAccount(account, _tokenOut, _qlpAmount, _minOut, _receiver); emit UnstakeQlp(account, _qlpAmount); return amountOut; } function unstakeAndRedeemQlpETH( uint256 _qlpAmount, uint256 _minOut, address payable _receiver ) external nonReentrant returns (uint256) { require(_qlpAmount != 0, "RewardRouter: invalid _qlpAmount"); address account = msg.sender; IRewardTracker(feeQlpTracker).unstakeForAccount(account, qlp, _qlpAmount, account); uint256 amountOut = IQlpManager(qlpManager).removeLiquidityForAccount(account, weth, _qlpAmount, _minOut, address(this)); IWETH(weth).withdraw(amountOut); _receiver.sendValue(amountOut); emit UnstakeQlp(account, _qlpAmount); return amountOut; } function claim(address _rewardToken, bool _shouldAddIntoQLP, bool withdrawEth) external nonReentrant { require(IRewardTracker(feeQlpTracker).allTokens(_rewardToken), "RewardRouter: invalid _rewardToken"); address account = msg.sender; if(_shouldAddIntoQLP && vault.whitelistedTokens(_rewardToken)){ uint256 amount = IRewardTracker(feeQlpTracker).claimForAccount(account, _rewardToken, address(this)); if(amount > 0){ if(_rewardToken == weth){ _mintAndStakeQlpETH(amount,0,0); }else{ IERC20(_rewardToken).approve(qlpManager, amount); _mintAndStakeQlp(address(this),account,_rewardToken,amount,0,0); } } }else if(withdrawEth && _rewardToken == weth){ uint256 amount = IRewardTracker(feeQlpTracker).claimForAccount(account, _rewardToken, address(this)); if(amount > 0){ IWETH(weth).withdraw(amount); payable(account).sendValue(amount); } }else{ IRewardTracker(feeQlpTracker).claimForAccount(account, _rewardToken, account); } } function claimOldFees() external nonReentrant { address account = msg.sender; IRewardTrackerClaim(oldFeeQlpTracker).claimForAccount(account, account); } function handleRewards( bool _shouldConvertWethToEth, bool _shouldAddIntoQLP ) external nonReentrant { address account = msg.sender; if (_shouldConvertWethToEth || _shouldAddIntoQLP ) { (address[] memory tokens,uint256[] memory amounts) = IRewardTracker(feeQlpTracker).claimAllForAccount(account, address(this)); for (uint256 i = 0; i < tokens.length; i++) { address token = tokens[i]; uint256 amount = amounts[i]; if(amount > 0){ if(_shouldAddIntoQLP && vault.whitelistedTokens(token)){ if(token == weth){ _mintAndStakeQlpETH(amount,0,0); }else{ IERC20(token).approve(qlpManager, amount); _mintAndStakeQlp(address(this),account,token,amount,0,0); } }else if(_shouldConvertWethToEth && token == weth ){ IWETH(weth).withdraw(amount); payable(account).sendValue(amount); }else{ IERC20(token).safeTransfer(account, amount); } } } } else { IRewardTracker(feeQlpTracker).claimAllForAccount(account, account); } } function signalTransfer(address _receiver) external nonReentrant { pendingReceivers[msg.sender] = _receiver; } function acceptTransfer(address _sender) external nonReentrant { address receiver = msg.sender; require(pendingReceivers[_sender] == receiver, "RewardRouter: transfer not signalled"); require( IQlpManager(qlpManager).lastAddedAt(_sender).add(IQlpManager(qlpManager).cooldownDuration()) <= block.timestamp, "RewardRouter: cooldown duration not yet passed" ); delete pendingReceivers[_sender]; uint256 qlpAmount = IRewardTracker(feeQlpTracker).depositBalances(_sender, qlp); if (qlpAmount > 0) { IRewardTracker(feeQlpTracker).unstakeForAccount(_sender, qlp, qlpAmount, _sender); IRewardTracker(feeQlpTracker).stakeForAccount(_sender, receiver, qlp, qlpAmount); } } function migrateStaking() external nonReentrant { address account = msg.sender; uint256 qlpAmount = IRewardTracker(oldFeeQlpTracker).depositBalances(account, qlp); if (qlpAmount > 0) { IRewardTracker(oldStakedQlpTracker).unstakeForAccount(account, oldFeeQlpTracker, qlpAmount, account); IRewardTracker(oldFeeQlpTracker).unstakeForAccount(account, qlp, qlpAmount, account); IRewardTracker(feeQlpTracker).stakeForAccount(account, account, qlp, qlpAmount); IRewardTrackerClaim(oldFeeQlpTracker).claimForAccount(account, account); emit StakeMigration(account, qlpAmount); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; contract Governable { address public gov; constructor() public { gov = msg.sender; } modifier onlyGov() { require(msg.sender == gov, "Governable: forbidden"); _; } function setGov(address _gov) external onlyGov { gov = _gov; } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./IVault.sol"; interface IQlpManager { function qlp() external view returns (address); function usdq() external view returns (address); function vault() external view returns (IVault); function cooldownDuration() external returns (uint256); function getAumInUsdq(bool maximise) external view returns (uint256); function lastAddedAt(address _account) external returns (uint256); function addLiquidity(address _token, uint256 _amount, uint256 _minUsdq, uint256 _minQlp) external returns (uint256); function addLiquidityForAccount(address _fundingAccount, address _account, address _token, uint256 _amount, uint256 _minUsdq, uint256 _minQlp) external returns (uint256); function removeLiquidity(address _tokenOut, uint256 _qlpAmount, uint256 _minOut, address _receiver) external returns (uint256); function removeLiquidityForAccount(address _account, address _tokenOut, uint256 _qlpAmount, uint256 _minOut, address _receiver) external returns (uint256); function setShortsTrackerAveragePriceWeight(uint256 _shortsTrackerAveragePriceWeight) external; function setCooldownDuration(uint256 _cooldownDuration) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./IVaultUtils.sol"; interface IVault { function isInitialized() external view returns (bool); function isSwapEnabled() external view returns (bool); function isLeverageEnabled() external view returns (bool); function setVaultUtils(IVaultUtils _vaultUtils) external; function setError(uint256 _errorCode, string calldata _error) external; function router() external view returns (address); function usdq() external view returns (address); function gov() external view returns (address); function vaultUtils() external view returns (IVaultUtils); function whitelistedTokenCount() external view returns (uint256); function maxLeverage() external view returns (uint256); function minProfitTime() external view returns (uint256); function hasDynamicFees() external view returns (bool); function fundingInterval() external view returns (uint256); function totalTokenWeights() external view returns (uint256); function getTargetUsdqAmount(address _token) external view returns (uint256); function inManagerMode() external view returns (bool); function inPrivateLiquidationMode() external view returns (bool); function maxGasPrice() external view returns (uint256); function approvedRouters(address _account, address _router) external view returns (bool); function isLiquidator(address _account) external view returns (bool); function isManager(address _account) external view returns (bool); function minProfitBasisPoints(address _token) external view returns (uint256); function tokenBalances(address _token) external view returns (uint256); function lastFundingTimes(address _token) external view returns (uint256); function setMaxLeverage(uint256 _maxLeverage) external; function setInManagerMode(bool _inManagerMode) external; function setManager(address _manager, bool _isManager) external; function setIsSwapEnabled(bool _isSwapEnabled) external; function setIsLeverageEnabled(bool _isLeverageEnabled) external; function setMaxGasPrice(uint256 _maxGasPrice) external; function setUsdqAmount(address _token, uint256 _amount) external; function setBufferAmount(address _token, uint256 _amount) external; function setMaxGlobalShortSize(address _token, uint256 _amount) external; function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) external; function setLiquidator(address _liquidator, bool _isActive) external; function setFundingRate(uint256 _fundingInterval, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) external; function setFees( uint256 _taxBasisPoints, uint256 _stableTaxBasisPoints, uint256 _mintBurnFeeBasisPoints, uint256 _swapFeeBasisPoints, uint256 _stableSwapFeeBasisPoints, uint256 _marginFeeBasisPoints, uint256 _liquidationFeeUsd, uint256 _minProfitTime, bool _hasDynamicFees ) external; function setTokenConfig( address _token, uint256 _tokenDecimals, uint256 _redemptionBps, uint256 _minProfitBps, uint256 _maxUsdqAmount, bool _isStable, bool _isShortable ) external; function setPriceFeed(address _priceFeed) external; function withdrawFees(address _token, address _receiver) external returns (uint256); function directPoolDeposit(address _token) external; function buyUSDQ(address _token, address _receiver) external returns (uint256); function sellUSDQ(address _token, address _receiver) external returns (uint256); function swap(address _tokenIn, address _tokenOut, address _receiver) external returns (uint256); function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external; function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external returns (uint256); function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) external view returns (uint256, uint256); function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) external; function tokenToUsdMin(address _token, uint256 _tokenAmount) external view returns (uint256); function priceFeed() external view returns (address); function fundingRateFactor() external view returns (uint256); function stableFundingRateFactor() external view returns (uint256); function cumulativeFundingRates(address _token) external view returns (uint256); function getNextFundingRate(address _token) external view returns (uint256); function getFeeBasisPoints(address _token, uint256 _usdqDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) external view returns (uint256); function liquidationFeeUsd() external view returns (uint256); function taxBasisPoints() external view returns (uint256); function stableTaxBasisPoints() external view returns (uint256); function mintBurnFeeBasisPoints() external view returns (uint256); function swapFeeBasisPoints() external view returns (uint256); function stableSwapFeeBasisPoints() external view returns (uint256); function marginFeeBasisPoints() external view returns (uint256); function allWhitelistedTokensLength() external view returns (uint256); function allWhitelistedTokens(uint256) external view returns (address); function whitelistedTokens(address _token) external view returns (bool); function stableTokens(address _token) external view returns (bool); function shortableTokens(address _token) external view returns (bool); function feeReserves(address _token) external view returns (uint256); function globalShortSizes(address _token) external view returns (uint256); function globalShortAveragePrices(address _token) external view returns (uint256); function maxGlobalShortSizes(address _token) external view returns (uint256); function tokenDecimals(address _token) external view returns (uint256); function tokenWeights(address _token) external view returns (uint256); function guaranteedUsd(address _token) external view returns (uint256); function poolAmounts(address _token) external view returns (uint256); function bufferAmounts(address _token) external view returns (uint256); function reservedAmounts(address _token) external view returns (uint256); function usdqAmounts(address _token) external view returns (uint256); function maxUsdqAmounts(address _token) external view returns (uint256); function getRedemptionAmount(address _token, uint256 _usdqAmount) external view returns (uint256); function getMaxPrice(address _token) external view returns (uint256); function getMinPrice(address _token) external view returns (uint256); function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) external view returns (bool, uint256); function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) external view returns (uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface IVaultUtils { function updateCumulativeFundingRate(address _collateralToken, address _indexToken) external returns (bool); function validateIncreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external view; function validateDecreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external view; function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) external view returns (uint256, uint256); function getEntryFundingRate(address _collateralToken, address _indexToken, bool _isLong) external view returns (uint256); function getPositionFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta) external view returns (uint256); function getFundingFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _size, uint256 _entryFundingRate) external view returns (uint256); function getBuyUsdqFeeBasisPoints(address _token, uint256 _usdqAmount) external view returns (uint256); function getSellUsdqFeeBasisPoints(address _token, uint256 _usdqAmount) external view returns (uint256); function getSwapFeeBasisPoints(address _tokenIn, address _tokenOut, uint256 _usdqAmount) external view returns (uint256); function getFeeBasisPoints(address _token, uint256 _usdqDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) external view returns (uint256); function getMaxAmountIn( address _tokenIn, address _tokenOut ) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @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.6.12; import "./IERC20.sol"; import "../math/SafeMath.sol"; import "../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.3._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.3._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.6.12; interface IRewardTracker { function depositBalances(address _account, address _depositToken) external view returns (uint256); function stakedAmounts(address _account) external view returns (uint256); function updateRewards(address _rewardToken) external; function stake(address _depositToken, uint256 _amount) external; function stakeForAccount(address _fundingAccount, address _account, address _depositToken, uint256 _amount) external; function unstake(address _depositToken, uint256 _amount) external; function unstakeForAccount(address _account, address _depositToken, uint256 _amount, address _receiver) external; function tokensPerInterval(address _rewardToken) external view returns (uint256); function claim(address _rewardToken, address _receiver) external returns (uint256); function claimForAccount(address _account, address _rewardToken, address _receiver) external returns (uint256); function claimAll(address _receiver) external returns (address[] memory,uint256[] memory); function claimAllForAccount(address _account, address _receiver) external returns (address[] memory,uint256[] memory); function claimable(address _account, address _rewardToken) external view returns (uint256); function claimableAll(address _account) external view returns (address[] memory,uint256[] memory); function averageStakedAmounts(address _account) external view returns (uint256); function cumulativeRewards(address _account, address _rewardToken) external view returns (uint256); function hasCumulativeRewards(address _account) external view returns (bool); function getAllRewardTokens() external view returns (address[] memory); function rewardTokens(address _rewardToken) external view returns (bool); function allTokens(address _rewardToken) external view returns (bool); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.6.12; interface IRewardTrackerClaim { function claimForAccount(address _account, address _receiver) external returns (uint256); //BackCompatibility }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface IMintable { function isMinter(address _account) external returns (bool); function setMinter(address _minter, bool _isActive) external; function mint(address _account, uint256 _amount) external; function burn(address _account, uint256 _amount) external; }
//SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; }
{ "metadata": { "bytecodeHash": "none", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 1 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_qlp","type":"address"},{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_feeQlpTracker","type":"address"},{"internalType":"address","name":"_qlpManager","type":"address"},{"internalType":"address","name":"_oldStakedQlpTracker","type":"address"},{"internalType":"address","name":"_oldFeeQlpTracker","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"StakeMigration","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"StakeQlp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnstakeQlp","type":"event"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"}],"name":"acceptTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"bool","name":"_shouldAddIntoQLP","type":"bool"},{"internalType":"bool","name":"withdrawEth","type":"bool"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimOldFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeQlpTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_shouldConvertWethToEth","type":"bool"},{"internalType":"bool","name":"_shouldAddIntoQLP","type":"bool"}],"name":"handleRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrateStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minUsdq","type":"uint256"},{"internalType":"uint256","name":"_minQlp","type":"uint256"}],"name":"mintAndStakeQlp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minUsdq","type":"uint256"},{"internalType":"uint256","name":"_minQlp","type":"uint256"}],"name":"mintAndStakeQlpETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"oldFeeQlpTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oldStakedQlpTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pendingReceivers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"qlp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"qlpManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"signalTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenOut","type":"address"},{"internalType":"uint256","name":"_qlpAmount","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"unstakeAndRedeemQlp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qlpAmount","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"address payable","name":"_receiver","type":"address"}],"name":"unstakeAndRedeemQlpETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"contract IVault","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101606040523480156200001257600080fd5b5060405162003085380380620030858339810160408190526200003591620000b3565b6001600081905580546001600160a01b031916331790556001600160601b0319606097881b811660805295871b861660a05293861b85166101405291851b841660c052841b831660e052831b82166101005290911b16610120526200014e565b80516001600160a01b0381168114620000ad57600080fd5b92915050565b600080600080600080600060e0888a031215620000ce578283fd5b620000da898962000095565b9650620000eb8960208a0162000095565b9550620000fc8960408a0162000095565b94506200010d8960608a0162000095565b93506200011e8960808a0162000095565b92506200012f8960a08a0162000095565b9150620001408960c08a0162000095565b905092959891949750929550565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205160601c6101405160601c612dc5620002c060003980610c2252806116415280611da15250806110cf52806111c65280611a195280611b0e5280611b815280611cc952508061043f5280611adf5250806103f752806105c052806106685280610a525280610dc9528061133a528061173b5280611e7c5280611f1552806120da525080610463528061074a528061081052806108b252806109ac5280610b615280610cc65280610eba5280610ff65280611294528061153752806118e05280611c255280611fe0528061219a525080610779528061083f52806108e552806109db52806112c352806114d95280611a485280611bb25280611c58528061201152806121cb52508061010e528061041b52806104ce5280610d5b5280610e675280610f64528061136a528061140452806116cd52806117d852806118285280611e4f5280611f465250612dc56000f3fe6080604052600436106100fe5760003560e01c806301e336671461015b57806312d43a511461017b578063250e4f51146101a65780633fc8cef3146101bb5780635154c73e146101d05780635242abb9146101e55780635eef1693146101fa578063655603a41461021a578063680e325e1461023a5780636907ab371461025a5780636b8d98511461027a578063765cf73e1461028f578063844da295146102af578063cfad57a2146102c4578063da94c4cc146102e4578063e1b9db8914610304578063e26aaefa14610324578063e7cf6c1014610339578063ef9aacfd14610359578063f91057a114610379578063fbfa77cf1461038e57610156565b3661015657336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146101545760405162461bcd60e51b815260040161014b9061296f565b60405180910390fd5b005b600080fd5b34801561016757600080fd5b50610154610176366004612538565b6103a3565b34801561018757600080fd5b506101906103e6565b60405161019d91906127df565b60405180910390f35b3480156101b257600080fd5b506101906103f5565b3480156101c757600080fd5b50610190610419565b3480156101dc57600080fd5b5061019061043d565b3480156101f157600080fd5b50610190610461565b61020d610208366004612772565b610485565b60405161019d9190612cd4565b34801561022657600080fd5b5061015461023536600461251c565b610557565b34801561024657600080fd5b5061020d6102553660046125c2565b61094c565b34801561026657600080fd5b50610154610275366004612578565b610b22565b34801561028657600080fd5b5061015461108e565b34801561029b57600080fd5b5061020d6102aa36600461260b565b611161565b3480156102bb57600080fd5b506101906111c4565b3480156102d057600080fd5b506101546102df36600461251c565b6111e8565b3480156102f057600080fd5b5061020d6102ff366004612793565b611234565b34801561031057600080fd5b5061019061031f36600461251c565b6114bc565b34801561033057600080fd5b506101906114d7565b34801561034557600080fd5b50610154610354366004612722565b6114fb565b34801561036557600080fd5b5061015461037436600461251c565b611979565b34801561038557600080fd5b506101546119d5565b34801561039a57600080fd5b50610190611d9f565b6001546001600160a01b031633146103cd5760405162461bcd60e51b815260040161014b90612bed565b6103e16001600160a01b0384168383611dc3565b505050565b6001546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600260005414156104aa5760405162461bcd60e51b815260040161014b90612c9d565b6002600055346104cc5760405162461bcd60e51b815260040161014b90612a64565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561052757600080fd5b505af115801561053b573d6000803e3d6000fd5b505050505061054b348484611e19565b60016000559392505050565b6002600054141561057a5760405162461bcd60e51b815260040161014b90612c9d565b600260008181556001600160a01b038381168252602092909252604090205433911681146105ba5760405162461bcd60e51b815260040161014b90612ba9565b426106f57f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663352693156040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561061957600080fd5b505af115801561062d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610651919061275a565b604051638b770e1160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690638b770e119061069d9088906004016127df565b602060405180830381600087803b1580156106b757600080fd5b505af11580156106cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ef919061275a565b906120a7565b11156107135760405162461bcd60e51b815260040161014b90612a16565b6001600160a01b0380831660009081526002602052604080822080546001600160a01b031916905551637aeceb1f60e11b815290917f0000000000000000000000000000000000000000000000000000000000000000169063f5d9d63e906107a19086907f00000000000000000000000000000000000000000000000000000000000000009060040161282c565b60206040518083038186803b1580156107b957600080fd5b505afa1580156107cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f1919061275a565b905080156109425760405163098bf59d60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063098bf59d9061086b9086907f00000000000000000000000000000000000000000000000000000000000000009086908390600401612893565b600060405180830381600087803b15801561088557600080fd5b505af1158015610899573d6000803e3d6000fd5b5050604051631e42d69b60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016925063790b5a6c915061090f90869086907f0000000000000000000000000000000000000000000000000000000000000000908790600401612869565b600060405180830381600087803b15801561092957600080fd5b505af115801561093d573d6000803e3d6000fd5b505050505b5050600160005550565b6000600260005414156109715760405162461bcd60e51b815260040161014b90612c9d565b6002600055836109935760405162461bcd60e51b815260040161014b9061293a565b60405163098bf59d60e01b815233906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063098bf59d90610a079084907f0000000000000000000000000000000000000000000000000000000000000000908a908390600401612893565b600060405180830381600087803b158015610a2157600080fd5b505af1158015610a35573d6000803e3d6000fd5b50506040516371d597ad60e01b8152600092506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691506371d597ad90610a909085908b908b908b908b906004016128be565b602060405180830381600087803b158015610aaa57600080fd5b505af1158015610abe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae2919061275a565b9050816001600160a01b0316600080516020612d9983398151915287604051610b0b9190612cd4565b60405180910390a260016000559695505050505050565b60026000541415610b455760405162461bcd60e51b815260040161014b90612c9d565b6002600055604051632577b51760e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906395ded45c90610b969086906004016127df565b60206040518083038186803b158015610bae57600080fd5b505afa158015610bc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be69190612706565b610c025760405162461bcd60e51b815260040161014b9061299f565b33828015610ca75750604051630daf9c2160e41b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063daf9c21090610c579087906004016127df565b60206040518083038186803b158015610c6f57600080fd5b505afa158015610c83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca79190612706565b15610e5d5760405163f777b81360e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f777b81390610cff90859089903090600401612846565b602060405180830381600087803b158015610d1957600080fd5b505af1158015610d2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d51919061275a565b90508015610e57577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b03161415610da557610d9f81600080611e19565b50610e57565b60405163095ea7b360e01b81526001600160a01b0386169063095ea7b390610df3907f00000000000000000000000000000000000000000000000000000000000000009085906004016128ee565b602060405180830381600087803b158015610e0d57600080fd5b505af1158015610e21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e459190612706565b50610e55308387846000806120d5565b505b50611083565b818015610e9b57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b0316145b15610fdf5760405163f777b81360e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f777b81390610ef390859089903090600401612846565b602060405180830381600087803b158015610f0d57600080fd5b505af1158015610f21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f45919061275a565b90508015610e5757604051632e1a7d4d60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d90610f99908490600401612cd4565b600060405180830381600087803b158015610fb357600080fd5b505af1158015610fc7573d6000803e3d6000fd5b50610e57925050506001600160a01b03831682612261565b60405163f777b81360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f777b8139061102f90849088908290600401612846565b602060405180830381600087803b15801561104957600080fd5b505af115801561105d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611081919061275a565b505b505060016000555050565b600260005414156110b15760405162461bcd60e51b815260040161014b90612c9d565b60026000556040516309f4173d60e11b815233906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906313e82e7a90611106908490819060040161282c565b602060405180830381600087803b15801561112057600080fd5b505af1158015611134573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611158919061275a565b50506001600055565b6000600260005414156111865760405162461bcd60e51b815260040161014b90612c9d565b6002600055836111a85760405162461bcd60e51b815260040161014b90612b72565b6111b63333878787876120d5565b600160005595945050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001546001600160a01b031633146112125760405162461bcd60e51b815260040161014b90612bed565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000600260005414156112595760405162461bcd60e51b815260040161014b90612c9d565b60026000558361127b5760405162461bcd60e51b815260040161014b9061293a565b60405163098bf59d60e01b815233906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063098bf59d906112ef9084907f0000000000000000000000000000000000000000000000000000000000000000908a908390600401612893565b600060405180830381600087803b15801561130957600080fd5b505af115801561131d573d6000803e3d6000fd5b50506040516371d597ad60e01b8152600092506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691506371d597ad906113989085907f0000000000000000000000000000000000000000000000000000000000000000908b908b9030906004016128be565b602060405180830381600087803b1580156113b257600080fd5b505af11580156113c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ea919061275a565b604051632e1a7d4d60e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d90611439908490600401612cd4565b600060405180830381600087803b15801561145357600080fd5b505af1158015611467573d6000803e3d6000fd5b5061147f925050506001600160a01b03851682612261565b816001600160a01b0316600080516020612d99833981519152876040516114a69190612cd4565b60405180910390a2600160005595945050505050565b6002602052600090815260409020546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6002600054141561151e5760405162461bcd60e51b815260040161014b90612c9d565b600260005533828061152d5750815b156118c9576060807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639e2e602384306040518363ffffffff1660e01b815260040161158392919061282c565b600060405180830381600087803b15801561159d57600080fd5b505af11580156115b1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115d99190810190612645565b9150915060005b82518110156118c15760008382815181106115f757fe5b60200260200101519050600083838151811061160f57fe5b6020026020010151905060008111156118b7578680156116c65750604051630daf9c2160e41b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063daf9c210906116769085906004016127df565b60206040518083038186803b15801561168e57600080fd5b505afa1580156116a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c69190612706565b156117ce577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614156117175761171181600080611e19565b506117c9565b60405163095ea7b360e01b81526001600160a01b0383169063095ea7b390611765907f00000000000000000000000000000000000000000000000000000000000000009085906004016128ee565b602060405180830381600087803b15801561177f57600080fd5b505af1158015611793573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b79190612706565b506117c7308784846000806120d5565b505b6118b7565b87801561180c57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316145b156118a357604051632e1a7d4d60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d9061185d908490600401612cd4565b600060405180830381600087803b15801561187757600080fd5b505af115801561188b573d6000803e3d6000fd5b506117c9925050506001600160a01b03871682612261565b6118b76001600160a01b0383168783611dc3565b50506001016115e0565b505050610942565b604051639e2e602360e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690639e2e602390611917908490819060040161282c565b600060405180830381600087803b15801561193157600080fd5b505af1158015611945573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261196d9190810190612645565b50505050600160005550565b6002600054141561199c5760405162461bcd60e51b815260040161014b90612c9d565b600260008181553381526020919091526040812080546001600160a01b0319166001600160a01b03939093169290921790915560019055565b600260005414156119f85760405162461bcd60e51b815260040161014b90612c9d565b60026000908155604051637aeceb1f60e11b81523391906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f5d9d63e90611a709085907f00000000000000000000000000000000000000000000000000000000000000009060040161282c565b60206040518083038186803b158015611a8857600080fd5b505afa158015611a9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac0919061275a565b905080156111585760405163098bf59d60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063098bf59d90611b3a9085907f00000000000000000000000000000000000000000000000000000000000000009086908390600401612893565b600060405180830381600087803b158015611b5457600080fd5b505af1158015611b68573d6000803e3d6000fd5b505060405163098bf59d60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016925063098bf59d9150611bde9085907f00000000000000000000000000000000000000000000000000000000000000009086908390600401612893565b600060405180830381600087803b158015611bf857600080fd5b505af1158015611c0c573d6000803e3d6000fd5b5050604051631e42d69b60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016925063790b5a6c9150611c8290859081907f0000000000000000000000000000000000000000000000000000000000000000908790600401612869565b600060405180830381600087803b158015611c9c57600080fd5b505af1158015611cb0573d6000803e3d6000fd5b50506040516309f4173d60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506313e82e7a9150611d02908590819060040161282c565b602060405180830381600087803b158015611d1c57600080fd5b505af1158015611d30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d54919061275a565b50816001600160a01b03167f4073fbc10d22408de06753d512861ee083b5796c6f776b50ef54357cadbdc41782604051611d8e9190612cd4565b60405180910390a250506001600055565b7f000000000000000000000000000000000000000000000000000000000000000081565b6103e18363a9059cbb60e01b8484604051602401611de29291906128ee565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526122fd565b600083611e385760405162461bcd60e51b815260040161014b90612b72565b60405163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390611ea6907f00000000000000000000000000000000000000000000000000000000000000009088906004016128ee565b602060405180830381600087803b158015611ec057600080fd5b505af1158015611ed4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef89190612706565b506040516317eb2a1560e01b815233906000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906317eb2a1590611f7490309086907f0000000000000000000000000000000000000000000000000000000000000000908c908c908c906004016127f3565b602060405180830381600087803b158015611f8e57600080fd5b505af1158015611fa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc6919061275a565b604051631e42d69b60e21b81529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063790b5a6c9061203b90859081907f0000000000000000000000000000000000000000000000000000000000000000908790600401612869565b600060405180830381600087803b15801561205557600080fd5b505af1158015612069573d6000803e3d6000fd5b50505050816001600160a01b0316600080516020612d79833981519152826040516120949190612cd4565b60405180910390a29150505b9392505050565b6000828201838110156120cc5760405162461bcd60e51b815260040161014b906129e1565b90505b92915050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166317eb2a158989898989896040518763ffffffff1660e01b815260040161212e969594939291906127f3565b602060405180830381600087803b15801561214857600080fd5b505af115801561215c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612180919061275a565b604051631e42d69b60e21b81529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063790b5a6c906121f5908a9081907f0000000000000000000000000000000000000000000000000000000000000000908790600401612869565b600060405180830381600087803b15801561220f57600080fd5b505af1158015612223573d6000803e3d6000fd5b50505050866001600160a01b0316600080516020612d798339815191528260405161224e9190612cd4565b60405180910390a2979650505050505050565b804710156122815760405162461bcd60e51b815260040161014b90612af5565b6000826001600160a01b03168260405161229a906127dc565b60006040518083038185875af1925050503d80600081146122d7576040519150601f19603f3d011682016040523d82523d6000602084013e6122dc565b606091505b50509050806103e15760405162461bcd60e51b815260040161014b90612a9b565b6060612352826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661238c9092919063ffffffff16565b8051909150156103e157808060200190518101906123709190612706565b6103e15760405162461bcd60e51b815260040161014b90612c53565b606061239b84846000856123a3565b949350505050565b6060824710156123c55760405162461bcd60e51b815260040161014b90612b2c565b6123ce85612464565b6123ea5760405162461bcd60e51b815260040161014b90612c1c565b60006060866001600160a01b0316858760405161240791906127c0565b60006040518083038185875af1925050503d8060008114612444576040519150601f19603f3d011682016040523d82523d6000602084013e612449565b606091505b509150915061245982828661246a565b979650505050505050565b3b151590565b606083156124795750816120a0565b8251156124895782518084602001fd5b8160405162461bcd60e51b815260040161014b9190612907565b80516120cf81612d52565b600082601f8301126124be578081fd5b81516124d16124cc82612d03565b612cdd565b8181529150602080830190848101818402860182018710156124f257600080fd5b60005b84811015612511578151845292820192908201906001016124f5565b505050505092915050565b60006020828403121561252d578081fd5b81356120cc81612d52565b60008060006060848603121561254c578182fd5b833561255781612d52565b9250602084013561256781612d52565b929592945050506040919091013590565b60008060006060848603121561258c578283fd5b833561259781612d52565b925060208401356125a781612d6a565b915060408401356125b781612d6a565b809150509250925092565b600080600080608085870312156125d7578081fd5b84356125e281612d52565b93506020850135925060408501359150606085013561260081612d52565b939692955090935050565b60008060008060808587031215612620578384fd5b843561262b81612d52565b966020860135965060408601359560600135945092505050565b60008060408385031215612657578182fd5b82516001600160401b038082111561266d578384fd5b818501915085601f830112612680578384fd5b815161268e6124cc82612d03565b80828252602080830192508086018a8283870289010111156126ae578889fd5b8896505b848710156126d8576126c48b826124a3565b8452600196909601959281019281016126b2565b5088015190965093505050808211156126ef578283fd5b506126fc858286016124ae565b9150509250929050565b600060208284031215612717578081fd5b81516120cc81612d6a565b60008060408385031215612734578182fd5b823561273f81612d6a565b9150602083013561274f81612d6a565b809150509250929050565b60006020828403121561276b578081fd5b5051919050565b60008060408385031215612784578182fd5b50508035926020909101359150565b6000806000606084860312156127a7578283fd5b833592506020840135915060408401356125b781612d52565b600082516127d2818460208701612d22565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03968716815294861660208601529290941660408401526060830152608082019290925260a081019190915260c00190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6001600160a01b039485168152928416602084015292166040820152606081019190915260800190565b6001600160a01b03948516815292841660208401526040830191909152909116606082015260800190565b6001600160a01b039586168152938516602085015260408401929092526060830152909116608082015260a00190565b6001600160a01b03929092168252602082015260400190565b6000602082528251806020840152612926816040850160208701612d22565b601f01601f19169190910160400192915050565b6020808252818101527f526577617264526f757465723a20696e76616c6964205f716c70416d6f756e74604082015260600190565b6020808252601690820152752937baba32b91d1034b73b30b634b21039b2b73232b960511b604082015260600190565b60208082526022908201527f526577617264526f757465723a20696e76616c6964205f726577617264546f6b60408201526132b760f11b606082015260800190565b6020808252601b908201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604082015260600190565b6020808252602e908201527f526577617264526f757465723a20636f6f6c646f776e206475726174696f6e2060408201526d1b9bdd081e595d081c185cdcd95960921b606082015260800190565b6020808252601f908201527f526577617264526f757465723a20696e76616c6964206d73672e76616c756500604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726040820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601d908201527f526577617264526f757465723a20696e76616c6964205f616d6f756e74000000604082015260600190565b60208082526024908201527f526577617264526f757465723a207472616e73666572206e6f74207369676e616040820152631b1b195960e21b606082015260800190565b60208082526015908201527423b7bb32b93730b136329d103337b93134b23232b760591b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b6040518181016001600160401b0381118282101715612cfb57600080fd5b604052919050565b60006001600160401b03821115612d18578081fd5b5060209081020190565b60005b83811015612d3d578181015183820152602001612d25565b83811115612d4c576000848401525b50505050565b6001600160a01b0381168114612d6757600080fd5b50565b8015158114612d6757600080fdfefd2fae40e94e7367c3ca9f1734cc2e448991b3a8bdb566b40fb66c58b9a1664a63a0e5a9e69200606700d3f3ee818363ce92b67203090afa355baba12067d7ffa164736f6c634300060c000a0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a00000000000000000000000099b31498b0a1dae01fc3433e3cb60f095340935c000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e13100000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe5400000000000000000000000042d36ba59e1d3dcc96365948df794e0054e5fd4d0000000000000000000000004f9e9a2edc0471b6d52634995f827b6678bfb4bd
Deployed Bytecode
0x6080604052600436106100fe5760003560e01c806301e336671461015b57806312d43a511461017b578063250e4f51146101a65780633fc8cef3146101bb5780635154c73e146101d05780635242abb9146101e55780635eef1693146101fa578063655603a41461021a578063680e325e1461023a5780636907ab371461025a5780636b8d98511461027a578063765cf73e1461028f578063844da295146102af578063cfad57a2146102c4578063da94c4cc146102e4578063e1b9db8914610304578063e26aaefa14610324578063e7cf6c1014610339578063ef9aacfd14610359578063f91057a114610379578063fbfa77cf1461038e57610156565b3661015657336001600160a01b037f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e916146101545760405162461bcd60e51b815260040161014b9061296f565b60405180910390fd5b005b600080fd5b34801561016757600080fd5b50610154610176366004612538565b6103a3565b34801561018757600080fd5b506101906103e6565b60405161019d91906127df565b60405180910390f35b3480156101b257600080fd5b506101906103f5565b3480156101c757600080fd5b50610190610419565b3480156101dc57600080fd5b5061019061043d565b3480156101f157600080fd5b50610190610461565b61020d610208366004612772565b610485565b60405161019d9190612cd4565b34801561022657600080fd5b5061015461023536600461251c565b610557565b34801561024657600080fd5b5061020d6102553660046125c2565b61094c565b34801561026657600080fd5b50610154610275366004612578565b610b22565b34801561028657600080fd5b5061015461108e565b34801561029b57600080fd5b5061020d6102aa36600461260b565b611161565b3480156102bb57600080fd5b506101906111c4565b3480156102d057600080fd5b506101546102df36600461251c565b6111e8565b3480156102f057600080fd5b5061020d6102ff366004612793565b611234565b34801561031057600080fd5b5061019061031f36600461251c565b6114bc565b34801561033057600080fd5b506101906114d7565b34801561034557600080fd5b50610154610354366004612722565b6114fb565b34801561036557600080fd5b5061015461037436600461251c565b611979565b34801561038557600080fd5b506101546119d5565b34801561039a57600080fd5b50610190611d9f565b6001546001600160a01b031633146103cd5760405162461bcd60e51b815260040161014b90612bed565b6103e16001600160a01b0384168383611dc3565b505050565b6001546001600160a01b031681565b7f00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe5481565b7f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e981565b7f00000000000000000000000042d36ba59e1d3dcc96365948df794e0054e5fd4d81565b7f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e13181565b6000600260005414156104aa5760405162461bcd60e51b815260040161014b90612c9d565b6002600055346104cc5760405162461bcd60e51b815260040161014b90612a64565b7f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e96001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561052757600080fd5b505af115801561053b573d6000803e3d6000fd5b505050505061054b348484611e19565b60016000559392505050565b6002600054141561057a5760405162461bcd60e51b815260040161014b90612c9d565b600260008181556001600160a01b038381168252602092909252604090205433911681146105ba5760405162461bcd60e51b815260040161014b90612ba9565b426106f57f00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe546001600160a01b031663352693156040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561061957600080fd5b505af115801561062d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610651919061275a565b604051638b770e1160e01b81526001600160a01b037f00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe541690638b770e119061069d9088906004016127df565b602060405180830381600087803b1580156106b757600080fd5b505af11580156106cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ef919061275a565b906120a7565b11156107135760405162461bcd60e51b815260040161014b90612a16565b6001600160a01b0380831660009081526002602052604080822080546001600160a01b031916905551637aeceb1f60e11b815290917f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131169063f5d9d63e906107a19086907f000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a9060040161282c565b60206040518083038186803b1580156107b957600080fd5b505afa1580156107cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f1919061275a565b905080156109425760405163098bf59d60e01b81526001600160a01b037f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131169063098bf59d9061086b9086907f000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a9086908390600401612893565b600060405180830381600087803b15801561088557600080fd5b505af1158015610899573d6000803e3d6000fd5b5050604051631e42d69b60e21b81526001600160a01b037f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e13116925063790b5a6c915061090f90869086907f000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a908790600401612869565b600060405180830381600087803b15801561092957600080fd5b505af115801561093d573d6000803e3d6000fd5b505050505b5050600160005550565b6000600260005414156109715760405162461bcd60e51b815260040161014b90612c9d565b6002600055836109935760405162461bcd60e51b815260040161014b9061293a565b60405163098bf59d60e01b815233906001600160a01b037f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131169063098bf59d90610a079084907f000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a908a908390600401612893565b600060405180830381600087803b158015610a2157600080fd5b505af1158015610a35573d6000803e3d6000fd5b50506040516371d597ad60e01b8152600092506001600160a01b037f00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe541691506371d597ad90610a909085908b908b908b908b906004016128be565b602060405180830381600087803b158015610aaa57600080fd5b505af1158015610abe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae2919061275a565b9050816001600160a01b0316600080516020612d9983398151915287604051610b0b9190612cd4565b60405180910390a260016000559695505050505050565b60026000541415610b455760405162461bcd60e51b815260040161014b90612c9d565b6002600055604051632577b51760e21b81526001600160a01b037f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e13116906395ded45c90610b969086906004016127df565b60206040518083038186803b158015610bae57600080fd5b505afa158015610bc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be69190612706565b610c025760405162461bcd60e51b815260040161014b9061299f565b33828015610ca75750604051630daf9c2160e41b81526001600160a01b037f00000000000000000000000099b31498b0a1dae01fc3433e3cb60f095340935c169063daf9c21090610c579087906004016127df565b60206040518083038186803b158015610c6f57600080fd5b505afa158015610c83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca79190612706565b15610e5d5760405163f777b81360e01b81526000906001600160a01b037f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131169063f777b81390610cff90859089903090600401612846565b602060405180830381600087803b158015610d1957600080fd5b505af1158015610d2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d51919061275a565b90508015610e57577f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e96001600160a01b0316856001600160a01b03161415610da557610d9f81600080611e19565b50610e57565b60405163095ea7b360e01b81526001600160a01b0386169063095ea7b390610df3907f00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe549085906004016128ee565b602060405180830381600087803b158015610e0d57600080fd5b505af1158015610e21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e459190612706565b50610e55308387846000806120d5565b505b50611083565b818015610e9b57507f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e96001600160a01b0316846001600160a01b0316145b15610fdf5760405163f777b81360e01b81526000906001600160a01b037f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131169063f777b81390610ef390859089903090600401612846565b602060405180830381600087803b158015610f0d57600080fd5b505af1158015610f21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f45919061275a565b90508015610e5757604051632e1a7d4d60e01b81526001600160a01b037f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e91690632e1a7d4d90610f99908490600401612cd4565b600060405180830381600087803b158015610fb357600080fd5b505af1158015610fc7573d6000803e3d6000fd5b50610e57925050506001600160a01b03831682612261565b60405163f777b81360e01b81526001600160a01b037f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131169063f777b8139061102f90849088908290600401612846565b602060405180830381600087803b15801561104957600080fd5b505af115801561105d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611081919061275a565b505b505060016000555050565b600260005414156110b15760405162461bcd60e51b815260040161014b90612c9d565b60026000556040516309f4173d60e11b815233906001600160a01b037f0000000000000000000000004f9e9a2edc0471b6d52634995f827b6678bfb4bd16906313e82e7a90611106908490819060040161282c565b602060405180830381600087803b15801561112057600080fd5b505af1158015611134573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611158919061275a565b50506001600055565b6000600260005414156111865760405162461bcd60e51b815260040161014b90612c9d565b6002600055836111a85760405162461bcd60e51b815260040161014b90612b72565b6111b63333878787876120d5565b600160005595945050505050565b7f0000000000000000000000004f9e9a2edc0471b6d52634995f827b6678bfb4bd81565b6001546001600160a01b031633146112125760405162461bcd60e51b815260040161014b90612bed565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000600260005414156112595760405162461bcd60e51b815260040161014b90612c9d565b60026000558361127b5760405162461bcd60e51b815260040161014b9061293a565b60405163098bf59d60e01b815233906001600160a01b037f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131169063098bf59d906112ef9084907f000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a908a908390600401612893565b600060405180830381600087803b15801561130957600080fd5b505af115801561131d573d6000803e3d6000fd5b50506040516371d597ad60e01b8152600092506001600160a01b037f00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe541691506371d597ad906113989085907f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9908b908b9030906004016128be565b602060405180830381600087803b1580156113b257600080fd5b505af11580156113c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ea919061275a565b604051632e1a7d4d60e01b81529091506001600160a01b037f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e91690632e1a7d4d90611439908490600401612cd4565b600060405180830381600087803b15801561145357600080fd5b505af1158015611467573d6000803e3d6000fd5b5061147f925050506001600160a01b03851682612261565b816001600160a01b0316600080516020612d99833981519152876040516114a69190612cd4565b60405180910390a2600160005595945050505050565b6002602052600090815260409020546001600160a01b031681565b7f000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a81565b6002600054141561151e5760405162461bcd60e51b815260040161014b90612c9d565b600260005533828061152d5750815b156118c9576060807f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e1316001600160a01b0316639e2e602384306040518363ffffffff1660e01b815260040161158392919061282c565b600060405180830381600087803b15801561159d57600080fd5b505af11580156115b1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115d99190810190612645565b9150915060005b82518110156118c15760008382815181106115f757fe5b60200260200101519050600083838151811061160f57fe5b6020026020010151905060008111156118b7578680156116c65750604051630daf9c2160e41b81526001600160a01b037f00000000000000000000000099b31498b0a1dae01fc3433e3cb60f095340935c169063daf9c210906116769085906004016127df565b60206040518083038186803b15801561168e57600080fd5b505afa1580156116a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c69190612706565b156117ce577f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e96001600160a01b0316826001600160a01b031614156117175761171181600080611e19565b506117c9565b60405163095ea7b360e01b81526001600160a01b0383169063095ea7b390611765907f00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe549085906004016128ee565b602060405180830381600087803b15801561177f57600080fd5b505af1158015611793573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b79190612706565b506117c7308784846000806120d5565b505b6118b7565b87801561180c57507f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e96001600160a01b0316826001600160a01b0316145b156118a357604051632e1a7d4d60e01b81526001600160a01b037f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e91690632e1a7d4d9061185d908490600401612cd4565b600060405180830381600087803b15801561187757600080fd5b505af115801561188b573d6000803e3d6000fd5b506117c9925050506001600160a01b03871682612261565b6118b76001600160a01b0383168783611dc3565b50506001016115e0565b505050610942565b604051639e2e602360e01b81526001600160a01b037f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e1311690639e2e602390611917908490819060040161282c565b600060405180830381600087803b15801561193157600080fd5b505af1158015611945573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261196d9190810190612645565b50505050600160005550565b6002600054141561199c5760405162461bcd60e51b815260040161014b90612c9d565b600260008181553381526020919091526040812080546001600160a01b0319166001600160a01b03939093169290921790915560019055565b600260005414156119f85760405162461bcd60e51b815260040161014b90612c9d565b60026000908155604051637aeceb1f60e11b81523391906001600160a01b037f0000000000000000000000004f9e9a2edc0471b6d52634995f827b6678bfb4bd169063f5d9d63e90611a709085907f000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a9060040161282c565b60206040518083038186803b158015611a8857600080fd5b505afa158015611a9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac0919061275a565b905080156111585760405163098bf59d60e01b81526001600160a01b037f00000000000000000000000042d36ba59e1d3dcc96365948df794e0054e5fd4d169063098bf59d90611b3a9085907f0000000000000000000000004f9e9a2edc0471b6d52634995f827b6678bfb4bd9086908390600401612893565b600060405180830381600087803b158015611b5457600080fd5b505af1158015611b68573d6000803e3d6000fd5b505060405163098bf59d60e01b81526001600160a01b037f0000000000000000000000004f9e9a2edc0471b6d52634995f827b6678bfb4bd16925063098bf59d9150611bde9085907f000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a9086908390600401612893565b600060405180830381600087803b158015611bf857600080fd5b505af1158015611c0c573d6000803e3d6000fd5b5050604051631e42d69b60e21b81526001600160a01b037f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e13116925063790b5a6c9150611c8290859081907f000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a908790600401612869565b600060405180830381600087803b158015611c9c57600080fd5b505af1158015611cb0573d6000803e3d6000fd5b50506040516309f4173d60e11b81526001600160a01b037f0000000000000000000000004f9e9a2edc0471b6d52634995f827b6678bfb4bd1692506313e82e7a9150611d02908590819060040161282c565b602060405180830381600087803b158015611d1c57600080fd5b505af1158015611d30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d54919061275a565b50816001600160a01b03167f4073fbc10d22408de06753d512861ee083b5796c6f776b50ef54357cadbdc41782604051611d8e9190612cd4565b60405180910390a250506001600055565b7f00000000000000000000000099b31498b0a1dae01fc3433e3cb60f095340935c81565b6103e18363a9059cbb60e01b8484604051602401611de29291906128ee565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526122fd565b600083611e385760405162461bcd60e51b815260040161014b90612b72565b60405163095ea7b360e01b81526001600160a01b037f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9169063095ea7b390611ea6907f00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe549088906004016128ee565b602060405180830381600087803b158015611ec057600080fd5b505af1158015611ed4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef89190612706565b506040516317eb2a1560e01b815233906000906001600160a01b037f00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe5416906317eb2a1590611f7490309086907f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9908c908c908c906004016127f3565b602060405180830381600087803b158015611f8e57600080fd5b505af1158015611fa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc6919061275a565b604051631e42d69b60e21b81529091506001600160a01b037f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131169063790b5a6c9061203b90859081907f000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a908790600401612869565b600060405180830381600087803b15801561205557600080fd5b505af1158015612069573d6000803e3d6000fd5b50505050816001600160a01b0316600080516020612d79833981519152826040516120949190612cd4565b60405180910390a29150505b9392505050565b6000828201838110156120cc5760405162461bcd60e51b815260040161014b906129e1565b90505b92915050565b6000807f00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe546001600160a01b03166317eb2a158989898989896040518763ffffffff1660e01b815260040161212e969594939291906127f3565b602060405180830381600087803b15801561214857600080fd5b505af115801561215c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612180919061275a565b604051631e42d69b60e21b81529091506001600160a01b037f000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131169063790b5a6c906121f5908a9081907f000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a908790600401612869565b600060405180830381600087803b15801561220f57600080fd5b505af1158015612223573d6000803e3d6000fd5b50505050866001600160a01b0316600080516020612d798339815191528260405161224e9190612cd4565b60405180910390a2979650505050505050565b804710156122815760405162461bcd60e51b815260040161014b90612af5565b6000826001600160a01b03168260405161229a906127dc565b60006040518083038185875af1925050503d80600081146122d7576040519150601f19603f3d011682016040523d82523d6000602084013e6122dc565b606091505b50509050806103e15760405162461bcd60e51b815260040161014b90612a9b565b6060612352826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661238c9092919063ffffffff16565b8051909150156103e157808060200190518101906123709190612706565b6103e15760405162461bcd60e51b815260040161014b90612c53565b606061239b84846000856123a3565b949350505050565b6060824710156123c55760405162461bcd60e51b815260040161014b90612b2c565b6123ce85612464565b6123ea5760405162461bcd60e51b815260040161014b90612c1c565b60006060866001600160a01b0316858760405161240791906127c0565b60006040518083038185875af1925050503d8060008114612444576040519150601f19603f3d011682016040523d82523d6000602084013e612449565b606091505b509150915061245982828661246a565b979650505050505050565b3b151590565b606083156124795750816120a0565b8251156124895782518084602001fd5b8160405162461bcd60e51b815260040161014b9190612907565b80516120cf81612d52565b600082601f8301126124be578081fd5b81516124d16124cc82612d03565b612cdd565b8181529150602080830190848101818402860182018710156124f257600080fd5b60005b84811015612511578151845292820192908201906001016124f5565b505050505092915050565b60006020828403121561252d578081fd5b81356120cc81612d52565b60008060006060848603121561254c578182fd5b833561255781612d52565b9250602084013561256781612d52565b929592945050506040919091013590565b60008060006060848603121561258c578283fd5b833561259781612d52565b925060208401356125a781612d6a565b915060408401356125b781612d6a565b809150509250925092565b600080600080608085870312156125d7578081fd5b84356125e281612d52565b93506020850135925060408501359150606085013561260081612d52565b939692955090935050565b60008060008060808587031215612620578384fd5b843561262b81612d52565b966020860135965060408601359560600135945092505050565b60008060408385031215612657578182fd5b82516001600160401b038082111561266d578384fd5b818501915085601f830112612680578384fd5b815161268e6124cc82612d03565b80828252602080830192508086018a8283870289010111156126ae578889fd5b8896505b848710156126d8576126c48b826124a3565b8452600196909601959281019281016126b2565b5088015190965093505050808211156126ef578283fd5b506126fc858286016124ae565b9150509250929050565b600060208284031215612717578081fd5b81516120cc81612d6a565b60008060408385031215612734578182fd5b823561273f81612d6a565b9150602083013561274f81612d6a565b809150509250929050565b60006020828403121561276b578081fd5b5051919050565b60008060408385031215612784578182fd5b50508035926020909101359150565b6000806000606084860312156127a7578283fd5b833592506020840135915060408401356125b781612d52565b600082516127d2818460208701612d22565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03968716815294861660208601529290941660408401526060830152608082019290925260a081019190915260c00190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6001600160a01b039485168152928416602084015292166040820152606081019190915260800190565b6001600160a01b03948516815292841660208401526040830191909152909116606082015260800190565b6001600160a01b039586168152938516602085015260408401929092526060830152909116608082015260a00190565b6001600160a01b03929092168252602082015260400190565b6000602082528251806020840152612926816040850160208701612d22565b601f01601f19169190910160400192915050565b6020808252818101527f526577617264526f757465723a20696e76616c6964205f716c70416d6f756e74604082015260600190565b6020808252601690820152752937baba32b91d1034b73b30b634b21039b2b73232b960511b604082015260600190565b60208082526022908201527f526577617264526f757465723a20696e76616c6964205f726577617264546f6b60408201526132b760f11b606082015260800190565b6020808252601b908201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604082015260600190565b6020808252602e908201527f526577617264526f757465723a20636f6f6c646f776e206475726174696f6e2060408201526d1b9bdd081e595d081c185cdcd95960921b606082015260800190565b6020808252601f908201527f526577617264526f757465723a20696e76616c6964206d73672e76616c756500604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726040820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601d908201527f526577617264526f757465723a20696e76616c6964205f616d6f756e74000000604082015260600190565b60208082526024908201527f526577617264526f757465723a207472616e73666572206e6f74207369676e616040820152631b1b195960e21b606082015260800190565b60208082526015908201527423b7bb32b93730b136329d103337b93134b23232b760591b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b6040518181016001600160401b0381118282101715612cfb57600080fd5b604052919050565b60006001600160401b03821115612d18578081fd5b5060209081020190565b60005b83811015612d3d578181015183820152602001612d25565b83811115612d4c576000848401525b50505050565b6001600160a01b0381168114612d6757600080fd5b50565b8015158114612d6757600080fdfefd2fae40e94e7367c3ca9f1734cc2e448991b3a8bdb566b40fb66c58b9a1664a63a0e5a9e69200606700d3f3ee818363ce92b67203090afa355baba12067d7ffa164736f6c634300060c000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a00000000000000000000000099b31498b0a1dae01fc3433e3cb60f095340935c000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e13100000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe5400000000000000000000000042d36ba59e1d3dcc96365948df794e0054e5fd4d0000000000000000000000004f9e9a2edc0471b6d52634995f827b6678bfb4bd
-----Decoded View---------------
Arg [0] : _weth (address): 0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9
Arg [1] : _qlp (address): 0xC8E48fD037D1C4232F294b635E74d33A0573265a
Arg [2] : _vault (address): 0x99B31498B0a1Dae01fc3433e3Cb60F095340935C
Arg [3] : _feeQlpTracker (address): 0xd3Ee28CB8ed02a5641DFA02624dF399b01f1e131
Arg [4] : _qlpManager (address): 0x87BcD3914eD3dcd5886BA1c0f0DA25150b56fE54
Arg [5] : _oldStakedQlpTracker (address): 0x42d36bA59E1d3DCc96365948Df794e0054e5Fd4d
Arg [6] : _oldFeeQlpTracker (address): 0x4f9e9A2eDc0471b6d52634995F827B6678BFb4BD
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9
Arg [1] : 000000000000000000000000c8e48fd037d1c4232f294b635e74d33a0573265a
Arg [2] : 00000000000000000000000099b31498b0a1dae01fc3433e3cb60f095340935c
Arg [3] : 000000000000000000000000d3ee28cb8ed02a5641dfa02624df399b01f1e131
Arg [4] : 00000000000000000000000087bcd3914ed3dcd5886ba1c0f0da25150b56fe54
Arg [5] : 00000000000000000000000042d36ba59e1d3dcc96365948df794e0054e5fd4d
Arg [6] : 0000000000000000000000004f9e9a2edc0471b6d52634995f827b6678bfb4bd
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.