More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 484 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw All | 21920201 | 12 hrs ago | IN | 0 ETH | 0.00028197 | ||||
Unlock | 21920198 | 12 hrs ago | IN | 0 ETH | 0.00025661 | ||||
Withdraw All | 21919644 | 14 hrs ago | IN | 0 ETH | 0.00078195 | ||||
Unlock | 21919638 | 14 hrs ago | IN | 0 ETH | 0.00072637 | ||||
Deposit | 21835280 | 12 days ago | IN | 0 ETH | 0.00027714 | ||||
Withdraw All | 21826150 | 13 days ago | IN | 0 ETH | 0.00056618 | ||||
Unlock | 21826147 | 13 days ago | IN | 0 ETH | 0.00059964 | ||||
Deposit | 21806763 | 16 days ago | IN | 0 ETH | 0.00018133 | ||||
Withdraw By Amou... | 21797894 | 17 days ago | IN | 0 ETH | 0.00026763 | ||||
Unlock | 21797890 | 17 days ago | IN | 0 ETH | 0.00029026 | ||||
Unlock | 21784206 | 19 days ago | IN | 0 ETH | 0.00037773 | ||||
Withdraw All | 21773912 | 20 days ago | IN | 0 ETH | 0.00071184 | ||||
Withdraw All | 21758659 | 23 days ago | IN | 0 ETH | 0.00078383 | ||||
Deposit | 21755508 | 23 days ago | IN | 0 ETH | 0.00039034 | ||||
Deposit | 21741289 | 25 days ago | IN | 0 ETH | 0.00083351 | ||||
Deposit | 21733304 | 26 days ago | IN | 0 ETH | 0.0010167 | ||||
Withdraw All | 21681848 | 33 days ago | IN | 0 ETH | 0.00168818 | ||||
Unlock | 21681844 | 33 days ago | IN | 0 ETH | 0.00156743 | ||||
Withdraw All | 21572280 | 49 days ago | IN | 0 ETH | 0.00117318 | ||||
Unlock | 21572277 | 49 days ago | IN | 0 ETH | 0.00138426 | ||||
Unlock | 21570312 | 49 days ago | IN | 0 ETH | 0.00100984 | ||||
Withdraw All | 21561079 | 50 days ago | IN | 0 ETH | 0.00152996 | ||||
Unlock | 21561077 | 50 days ago | IN | 0 ETH | 0.00169278 | ||||
Deposit | 21527823 | 55 days ago | IN | 0 ETH | 0.00120393 | ||||
Withdraw All | 21491797 | 60 days ago | IN | 0 ETH | 0.00086382 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
CakePool
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPLv3 pragma solidity 0.8.19; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "../farm/interfaces/IMasterChefV2.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract CakePool is Ownable, Pausable, ReentrancyGuard { using SafeERC20 for IERC20; struct UserInfo { uint256 shares; // number of shares for a user. uint256 lastDepositedTime; // keep track of deposited time for potential penalty. uint256 lastUserActionAmount; // keep track of token deposited at the last user action. uint256 lastUserActionTime; // keep track of the last user action time. uint256 lockStartTime; // lock start time. uint256 lockEndTime; // lock end time. uint256 userBoostedShare; // boost share, in order to give the user higher reward. The user only enjoys the reward, so the principal needs to be recorded as a debt. bool locked; //lock status. uint256 lockedAmount; // amount deposited during lock period. } IERC20 public immutable token; // staking token. IERC20 public immutable bbc; // earning token. IMasterChefV2 public immutable masterchefV2; mapping(address => UserInfo) public userInfo; mapping(address => bool) public freePerformanceFeeUsers; // free performance fee users. mapping(address => bool) public freeWithdrawFeeUsers; // free withdraw fee users. mapping(address => bool) public freeOverdueFeeUsers; // free overdue fee users. uint256 public totalShares; address public admin; address public treasury; address public operator; uint256 public bbcPoolPID; uint256 public totalBoostDebt; // total boost debt. uint256 public totalLockedAmount; // total lock amount. uint256 public constant MAX_PERFORMANCE_FEE = 2000; // 20% uint256 public constant MAX_WITHDRAW_FEE = 500; // 5% uint256 public constant MAX_OVERDUE_FEE = 100 * 1e10; // 100% uint256 public constant MAX_WITHDRAW_FEE_PERIOD = 1 weeks; // 1 week uint256 public constant MIN_LOCK_DURATION = 1 weeks; // 1 week uint256 public constant MAX_LOCK_DURATION_LIMIT = 1000 days; // 1000 days uint256 public constant BOOST_WEIGHT_LIMIT = 5000 * 1e10; // 5000% uint256 public constant PRECISION_FACTOR = 1e12; // precision factor. uint256 public constant PRECISION_FACTOR_SHARE = 1e28; // precision factor for share. uint256 public constant MIN_DEPOSIT_AMOUNT = 0.00001 ether; uint256 public constant MIN_WITHDRAW_AMOUNT = 0.00001 ether; uint256 public UNLOCK_FREE_DURATION = 2 weeks; // 2 week uint256 public MAX_LOCK_DURATION = 365 days; // 365 days uint256 public DURATION_FACTOR = 365 days; // 365 days, in order to calculate user additional boost. uint256 public DURATION_FACTOR_OVERDUE = 90 days; // 90 days, in order to calculate overdue fee. uint256 public BOOST_WEIGHT = 2000 * 1e10; // 2000% uint256 public constant FEE_RATE_SCALE = 10000; uint256 public performanceFee = 200; // 2% uint256 public withdrawFee = 400; // 4% uint256 public overdueFee = 100 * 1e10; // 100% uint256 public withdrawFeePeriod = 72 hours; // 3 days event Deposit( address indexed sender, uint256 amount, uint256 shares, uint256 duration, uint256 lastDepositedTime ); event Withdraw(address indexed sender, uint256 amount, uint256 shares); event Harvest(address indexed sender, uint256 amount); event Pause(); event Unpause(); event Init(); event Lock( address indexed sender, uint256 lockedAmount, uint256 shares, uint256 lockedDuration, uint256 blockTimestamp ); event Unlock( address indexed sender, uint256 amount, uint256 blockTimestamp ); event NewAdmin(address admin); event NewTreasury(address treasury); event NewOperator(address operator); event FreeFeeUser(address indexed user, bool indexed free); event NewPerformanceFee(uint256 performanceFee); event NewWithdrawFee(uint256 withdrawFee); event NewOverdueFee(uint256 overdueFee); event NewWithdrawFeePeriod(uint256 withdrawFeePeriod); event NewMaxLockDuration(uint256 maxLockDuration); event NewDurationFactor(uint256 durationFactor); event NewDurationFactorOverdue(uint256 durationFactorOverdue); event NewUnlockFreeDuration(uint256 unlockFreeDuration); event NewBoostWeight(uint256 boostWeight); /** * @notice Constructor * @param _token: Staking token contract * @param _masterchefV2: MasterChefV2 contract * @param _admin: address of the admin * @param _treasury: address of the treasury (collects fees) * @param _operator: address of operator * @param _pid: bbc pool ID in MasterChefV2 */ constructor( IERC20 _token, IMasterChefV2 _masterchefV2, address _admin, address _treasury, address _operator, uint256 _pid ) { require(address(_token) != address(0), "Invalid token"); require(address(_masterchefV2) != address(0), "Invalid masterchefV2"); require(_admin != address(0), "Invalid admin"); require(_treasury != address(0), "Invalid treasury"); require(_operator != address(0), "Invalid operator"); token = _token; bbc = IERC20(_masterchefV2.BBC()); masterchefV2 = _masterchefV2; admin = _admin; treasury = _treasury; operator = _operator; bbcPoolPID = _pid; } /** * @notice Deposits a dummy token to `MASTER_CHEF` MCV2. * It will transfer all the `dummyToken` in the msg sender address. * @param dummyToken The address of the token to be deposited into MCV2. */ function init(IERC20 dummyToken, uint256 amount) public onlyOwner { uint256 balance = dummyToken.balanceOf(msg.sender); require(balance != 0, "Balance must exceed 0"); if (amount == 0 || amount > balance) amount = balance; dummyToken.safeTransferFrom(msg.sender, address(this), amount); dummyToken.approve(address(masterchefV2), amount); masterchefV2.deposit(bbcPoolPID, amount); emit Init(); } function close() public onlyOwner { masterchefV2.emergencyWithdraw(bbcPoolPID); } /** * @notice Checks if the msg.sender is the admin address. */ modifier onlyAdmin() { require(msg.sender == admin, "admin: wut?"); _; } /** * @notice Checks if the msg.sender is either the bbc owner address or the operator address. */ modifier onlyOperatorOrBBCOwner(address _user) { require( msg.sender == _user || msg.sender == operator, "Not operator or bbc owner" ); _; } /** * @notice Update user share When need to unlock or charges a fee. * @param _user: User address */ function updateUserShare(address _user) internal virtual { UserInfo storage user = userInfo[_user]; if (user.shares > 0) { if (user.locked) { // Calculate the user's current token amount and update related parameters. uint256 currentAmount = (balanceOf() * (user.shares)) / totalShares - user.userBoostedShare; totalBoostDebt -= user.userBoostedShare; user.userBoostedShare = 0; totalShares -= user.shares; //Charge a overdue fee after the free duration has expired. if ( !freeOverdueFeeUsers[_user] && ((user.lockEndTime + UNLOCK_FREE_DURATION) < block.timestamp) ) { uint256 earnAmount = currentAmount - user.lockedAmount; uint256 overdueDuration = block.timestamp - user.lockEndTime - UNLOCK_FREE_DURATION; if (overdueDuration > DURATION_FACTOR_OVERDUE) { overdueDuration = DURATION_FACTOR_OVERDUE; } // Rates are calculated based on the user's overdue duration. uint256 overdueWeight = (overdueDuration * overdueFee) / DURATION_FACTOR_OVERDUE; uint256 currentOverdueFee = (earnAmount * overdueWeight) / PRECISION_FACTOR; uint256 feeHalf = currentOverdueFee / 2; bbc.safeTransfer(treasury, feeHalf); bbc.safeTransfer( address(0xdead), currentOverdueFee - feeHalf ); currentAmount -= currentOverdueFee; } // Recalculate the user's share. uint256 pool = balanceOf(); uint256 currentShares; if (totalShares != 0) { currentShares = (currentAmount * totalShares) / (pool - currentAmount); } else { currentShares = currentAmount; } user.shares = currentShares; totalShares += currentShares; // After the lock duration, update related parameters. if (user.lockEndTime < block.timestamp) { user.locked = false; user.lockStartTime = 0; user.lockEndTime = 0; totalLockedAmount -= user.lockedAmount; user.lockedAmount = 0; emit Unlock(_user, currentAmount, block.timestamp); } } else if (!freePerformanceFeeUsers[_user]) { // Calculate Performance fee. uint256 totalAmount = (user.shares * balanceOf()) / totalShares; totalShares -= user.shares; user.shares = 0; uint256 earnAmount = totalAmount - user.lastUserActionAmount; uint256 currentPerformanceFee = (earnAmount * performanceFee) / FEE_RATE_SCALE; if (currentPerformanceFee > 0) { bbc.safeTransfer(treasury, currentPerformanceFee); totalAmount -= currentPerformanceFee; } // Recalculate the user's share. uint256 pool = balanceOf(); uint256 newShares; if (totalShares != 0) { newShares = (totalAmount * totalShares) / (pool - totalAmount); } else { newShares = totalAmount; } user.shares = newShares; totalShares += newShares; } } } /** * @notice Unlock user bbc funds. * @dev Only possible when contract not paused. * @param _user: User address */ function unlock( address _user ) public onlyOperatorOrBBCOwner(_user) whenNotPaused nonReentrant { UserInfo storage user = userInfo[_user]; require( user.locked && user.lockEndTime < block.timestamp, "Cannot unlock yet" ); depositOperation(0, 0, _user); } /** * @notice Deposit funds into the BBC Pool. * @dev Only possible when contract not paused. * @param _amount: number of tokens to deposit (in BBC) * @param _lockDuration: Token lock duration */ function deposit( uint256 _amount, uint256 _lockDuration ) public whenNotPaused nonReentrant { require(_amount > 0 || _lockDuration > 0, "Nothing to deposit"); depositOperation(_amount, _lockDuration, msg.sender); } /** * @notice The operation of deposite. * @param _amount: number of tokens to deposit (in BBC) * @param _lockDuration: Token lock duration * @param _user: User address */ function depositOperation( uint256 _amount, uint256 _lockDuration, address _user ) internal virtual { UserInfo storage user = userInfo[_user]; if (user.shares == 0 || _amount > 0) { require(_amount > MIN_DEPOSIT_AMOUNT, "Deposit amount must be greater than MIN_DEPOSIT_AMOUNT"); } // Calculate the total lock duration and check whether the lock duration meets the conditions. uint256 totalLockDuration = _lockDuration; uint256 userLockEndTime = user.lockEndTime; if (userLockEndTime >= block.timestamp) { // Adding funds during the lock duration is equivalent to re-locking the position, needs to update some variables. if (_amount > 0) { user.lockStartTime = block.timestamp; totalLockedAmount -= user.lockedAmount; user.lockedAmount = 0; } totalLockDuration += userLockEndTime - user.lockStartTime; } require( _lockDuration == 0 || totalLockDuration >= MIN_LOCK_DURATION, "Minimum lock period is one week" ); require( totalLockDuration <= MAX_LOCK_DURATION, "Maximum lock period exceeded" ); // Harvest tokens from Masterchef. harvest(); // Handle stock funds. if (totalShares == 0) { uint256 stockAmount = bbc.balanceOf(address(this)); bbc.safeTransfer(treasury, stockAmount); } // Update user share. updateUserShare(_user); // Update lock duration. if (_lockDuration > 0) { if (userLockEndTime < block.timestamp) { user.lockStartTime = block.timestamp; userLockEndTime = block.timestamp + _lockDuration; } else { userLockEndTime += _lockDuration; } user.locked = true; user.lockEndTime = userLockEndTime; } uint256 currentShares; uint256 currentAmount; uint256 userCurrentLockedBalance; uint256 pool = balanceOf(); if (_amount > 0) { token.safeTransferFrom(_user, address(this), _amount); currentAmount = _amount; } // Calculate lock funds if (user.shares > 0 && user.locked) { userCurrentLockedBalance = (pool * user.shares) / totalShares; currentAmount += userCurrentLockedBalance; totalShares -= user.shares; user.shares = 0; // Update lock amount if (user.lockStartTime == block.timestamp) { user.lockedAmount = userCurrentLockedBalance; totalLockedAmount += userCurrentLockedBalance; } } if (totalShares != 0) { currentShares = (currentAmount * totalShares) / (pool - userCurrentLockedBalance); } else { currentShares = currentAmount; } // Calculate the boost weight share. if (userLockEndTime > user.lockStartTime) { // Calculate boost share. uint256 boostWeight = ((userLockEndTime - user.lockStartTime) * BOOST_WEIGHT) / DURATION_FACTOR; uint256 boostShares = (boostWeight * currentShares) / PRECISION_FACTOR; currentShares += boostShares; user.shares += currentShares; // Calculate boost share , the user only enjoys the reward, so the principal needs to be recorded as a debt. uint256 userBoostedShare = (boostWeight * currentAmount) / PRECISION_FACTOR; user.userBoostedShare += userBoostedShare; totalBoostDebt += userBoostedShare; // Update lock amount. user.lockedAmount += _amount; totalLockedAmount += _amount; emit Lock( _user, user.lockedAmount, user.shares, (userLockEndTime - user.lockStartTime), block.timestamp ); } else { user.shares += currentShares; } if (_amount > 0 || _lockDuration > 0) { user.lastDepositedTime = block.timestamp; } totalShares += currentShares; user.lastUserActionAmount = (user.shares * balanceOf()) / totalShares - user.userBoostedShare; user.lastUserActionTime = block.timestamp; emit Deposit( _user, _amount, currentShares, _lockDuration, block.timestamp ); } /** * @notice Withdraw funds from the BBC Pool. * @param _amount: Number of amount to withdraw */ function withdrawByAmount( uint256 _amount ) public whenNotPaused nonReentrant { withdrawOperation(0, _amount); } /** * @notice Withdraw funds from the BBC Pool. * @param _shares: Number of shares to withdraw */ function withdraw(uint256 _shares) public whenNotPaused nonReentrant { require(_shares > 0, "Nothing to withdraw"); withdrawOperation(_shares, 0); } /** * @notice The operation of withdraw. * @param _shares: Number of shares to withdraw * @param _amount: Number of amount to withdraw */ function withdrawOperation(uint256 _shares, uint256 _amount) internal virtual { UserInfo storage user = userInfo[msg.sender]; if(_shares==0 && _amount > 0) require(_amount > MIN_WITHDRAW_AMOUNT, "Withdraw amount must be greater than MIN_WITHDRAW_AMOUNT"); else require(_shares <= user.shares, "Withdraw amount exceeds balance"); require(user.lockEndTime < block.timestamp, "Still in lock"); // Calculate the percent of withdraw shares, when unlocking or calculating the Performance fee, the shares will be updated. uint256 currentShare = _shares; uint256 sharesPercent = (_shares * PRECISION_FACTOR_SHARE) / user.shares; // Harvest token from MasterchefV2. harvest(); // Update user share. updateUserShare(msg.sender); if (_shares == 0 && _amount > 0) { uint256 pool = balanceOf(); currentShare = (_amount * totalShares) / pool; // Calculate equivalent shares if (currentShare > user.shares) { currentShare = user.shares; } } else { currentShare = (sharesPercent * user.shares) / PRECISION_FACTOR_SHARE; } uint256 currentAmount = (balanceOf() * currentShare) / totalShares; user.shares -= currentShare; totalShares -= currentShare; // Calculate withdraw fee if ( !freeWithdrawFeeUsers[msg.sender] && (block.timestamp < user.lastDepositedTime + withdrawFeePeriod) ) { uint256 currentWithdrawFee = (currentAmount * withdrawFee) / FEE_RATE_SCALE; token.safeTransfer(treasury, currentWithdrawFee); currentAmount -= currentWithdrawFee; } token.safeTransfer(msg.sender, currentAmount); if (user.shares > 0) { user.lastUserActionAmount = (user.shares * balanceOf()) / totalShares; } else { user.lastUserActionAmount = 0; } user.lastUserActionTime = block.timestamp; emit Withdraw(msg.sender, currentAmount, currentShare); } /** * @notice Withdraw all funds for a user */ function withdrawAll() public { withdraw(userInfo[msg.sender].shares); } /** * @notice Harvest pending BBC tokens from MasterChef */ function harvest() internal returns (uint256) { uint256 pendingBBC = masterchefV2.pendingBBC(bbcPoolPID, address(this)); if (pendingBBC > 0) { uint256 balBefore = bbc.balanceOf(address(this)); masterchefV2.withdraw(bbcPoolPID, 0); uint256 balAfter = bbc.balanceOf(address(this)); uint256 balInc = balAfter - balBefore; emit Harvest(msg.sender, balInc); return balInc; } return 0; } /** * @notice Set admin address * @dev Only callable by the contract owner. */ function setAdmin(address _admin) public onlyOwner { require(_admin != address(0), "Cannot be zero address"); admin = _admin; emit NewAdmin(admin); } /** * @notice Set treasury address * @dev Only callable by the contract owner. */ function setTreasury(address _treasury) public onlyOwner { require(_treasury != address(0), "Cannot be zero address"); treasury = _treasury; emit NewTreasury(treasury); } /** * @notice Set operator address * @dev Callable by the contract owner. */ function setOperator(address _operator) public onlyOwner { require(_operator != address(0), "Cannot be zero address"); operator = _operator; emit NewOperator(operator); } /** * @notice Set free performance fee address * @dev Only callable by the contract admin. * @param _user: User address * @param _free: true:free false:not free */ function setFreePerformanceFeeUser( address _user, bool _free ) public onlyAdmin { require(_user != address(0), "Cannot be zero address"); freePerformanceFeeUsers[_user] = _free; emit FreeFeeUser(_user, _free); } /** * @notice Set free overdue fee address * @dev Only callable by the contract admin. * @param _user: User address * @param _free: true:free false:not free */ function setFreeOverdueFeeUser(address _user, bool _free) public onlyAdmin { require(_user != address(0), "Cannot be zero address"); freeOverdueFeeUsers[_user] = _free; emit FreeFeeUser(_user, _free); } /** * @notice Set free withdraw fee address * @dev Only callable by the contract admin. * @param _user: User address * @param _free: true:free false:not free */ function setFreeWithdrawFeeUser(address _user, bool _free) public onlyAdmin { require(_user != address(0), "Cannot be zero address"); freeWithdrawFeeUsers[_user] = _free; emit FreeFeeUser(_user, _free); } /** * @notice Set performance fee * @dev Only callable by the contract admin. */ function setPerformanceFee(uint256 _performanceFee) public onlyAdmin { require( _performanceFee <= MAX_PERFORMANCE_FEE, "performanceFee cannot be more than MAX_PERFORMANCE_FEE" ); performanceFee = _performanceFee; emit NewPerformanceFee(performanceFee); } /** * @notice Set withdraw fee * @dev Only callable by the contract admin. */ function setWithdrawFee(uint256 _withdrawFee) public onlyAdmin { require( _withdrawFee <= MAX_WITHDRAW_FEE, "withdrawFee cannot be more than MAX_WITHDRAW_FEE" ); withdrawFee = _withdrawFee; emit NewWithdrawFee(withdrawFee); } /** * @notice Set overdue fee * @dev Only callable by the contract admin. */ function setOverdueFee(uint256 _overdueFee) public onlyAdmin { require( _overdueFee <= MAX_OVERDUE_FEE, "overdueFee cannot be more than MAX_OVERDUE_FEE" ); overdueFee = _overdueFee; emit NewOverdueFee(_overdueFee); } /** * @notice Set withdraw fee period * @dev Only callable by the contract admin. */ function setWithdrawFeePeriod(uint256 _withdrawFeePeriod) public onlyAdmin { require( _withdrawFeePeriod <= MAX_WITHDRAW_FEE_PERIOD, "withdrawFeePeriod cannot be more than MAX_WITHDRAW_FEE_PERIOD" ); withdrawFeePeriod = _withdrawFeePeriod; emit NewWithdrawFeePeriod(withdrawFeePeriod); } /** * @notice Set MAX_LOCK_DURATION * @dev Only callable by the contract admin. */ function setMaxLockDuration(uint256 _maxLockDuration) public onlyAdmin { require( _maxLockDuration <= MAX_LOCK_DURATION_LIMIT, "MAX_LOCK_DURATION cannot be more than MAX_LOCK_DURATION_LIMIT" ); MAX_LOCK_DURATION = _maxLockDuration; emit NewMaxLockDuration(_maxLockDuration); } /** * @notice Set DURATION_FACTOR * @dev Only callable by the contract admin. */ function setDurationFactor(uint256 _durationFactor) public onlyAdmin { require(_durationFactor > 0, "DURATION_FACTOR cannot be zero"); DURATION_FACTOR = _durationFactor; emit NewDurationFactor(_durationFactor); } /** * @notice Set DURATION_FACTOR_OVERDUE * @dev Only callable by the contract admin. */ function setDurationFactorOverdue( uint256 _durationFactorOverdue ) public onlyAdmin { require( _durationFactorOverdue > 0, "DURATION_FACTOR_OVERDUE cannot be zero" ); DURATION_FACTOR_OVERDUE = _durationFactorOverdue; emit NewDurationFactorOverdue(_durationFactorOverdue); } /** * @notice Set UNLOCK_FREE_DURATION * @dev Only callable by the contract admin. */ function setUnlockFreeDuration( uint256 _unlockFreeDuration ) public onlyAdmin { require(_unlockFreeDuration > 0, "UNLOCK_FREE_DURATION cannot be zero"); UNLOCK_FREE_DURATION = _unlockFreeDuration; emit NewUnlockFreeDuration(_unlockFreeDuration); } /** * @notice Set BOOST_WEIGHT * @dev Only callable by the contract admin. */ function setBoostWeight(uint256 _boostWeight) public onlyAdmin { require( _boostWeight <= BOOST_WEIGHT_LIMIT, "BOOST_WEIGHT cannot be more than BOOST_WEIGHT_LIMIT" ); BOOST_WEIGHT = _boostWeight; emit NewBoostWeight(_boostWeight); } /** * @notice Withdraw unexpected tokens sent to the BBC Pool */ function inCaseTokensGetStuck(address _token) public onlyAdmin { require( _token != address(token), "Token cannot be same as deposit token" ); uint256 amount = IERC20(_token).balanceOf(address(this)); IERC20(_token).safeTransfer(msg.sender, amount); } /** * @notice Trigger stopped state * @dev Only possible when contract not paused. */ function pause() public onlyAdmin whenNotPaused { _pause(); emit Pause(); } /** * @notice Return to normal state * @dev Only possible when contract is paused. */ function unpause() public onlyAdmin whenPaused { _unpause(); emit Unpause(); } /** * @notice Calculate Performance fee. * @param _user: User address * @return Returns Performance fee. */ function calculatePerformanceFee( address _user ) public view returns (uint256) { UserInfo storage user = userInfo[_user]; if ( user.shares > 0 && !user.locked && !freePerformanceFeeUsers[_user] ) { uint256 earnAmount = getProfit(_user); uint256 currentPerformanceFee = (earnAmount * performanceFee) / FEE_RATE_SCALE; return currentPerformanceFee; } return 0; } /** * @notice Calculate overdue fee. * @param _user: User address * @return Returns Overdue fee. */ function calculateOverdueFee(address _user) public view returns (uint256) { UserInfo storage user = userInfo[_user]; if ( user.shares > 0 && user.locked && !freeOverdueFeeUsers[_user] && ((user.lockEndTime + UNLOCK_FREE_DURATION) < block.timestamp) ) { uint256 earnAmount = getProfit(_user); uint256 overdueDuration = block.timestamp - user.lockEndTime - UNLOCK_FREE_DURATION; if (overdueDuration > DURATION_FACTOR_OVERDUE) { overdueDuration = DURATION_FACTOR_OVERDUE; } // Rates are calculated based on the user's overdue duration. uint256 overdueWeight = (overdueDuration * overdueFee) / DURATION_FACTOR_OVERDUE; uint256 currentOverdueFee = (earnAmount * overdueWeight) / PRECISION_FACTOR; return currentOverdueFee; } return 0; } /** * @notice Calculate Performance Fee Or Overdue Fee * @param _user: User address * @return Returns Performance Fee Or Overdue Fee. */ function calculatePerformanceFeeOrOverdueFee( address _user ) internal view returns (uint256) { return calculatePerformanceFee(_user) + calculateOverdueFee(_user); } /** * @notice Calculate withdraw fee. * @param _user: User address * @param _shares: Number of shares to withdraw * @return Returns Withdraw fee. */ function calculateWithdrawFee( address _user, uint256 _shares ) public view returns (uint256) { UserInfo storage user = userInfo[_user]; if (user.shares < _shares) { _shares = user.shares; } if (!freeWithdrawFeeUsers[msg.sender] && !user.locked && (block.timestamp < user.lastDepositedTime + withdrawFeePeriod)) { uint256 pool = balanceOf() + calculateTotalPendingBBCRewards(); uint256 sharesPercent = (_shares * PRECISION_FACTOR) / user.shares; uint256 currentTotalAmount = (pool * (user.shares)) / totalShares - user.userBoostedShare - calculatePerformanceFeeOrOverdueFee(_user); uint256 currentAmount = (currentTotalAmount * sharesPercent) / PRECISION_FACTOR; uint256 currentWithdrawFee = (currentAmount * withdrawFee) / FEE_RATE_SCALE; return currentWithdrawFee; } return 0; } /** * @notice Calculates the total pending rewards that can be harvested * @return Returns total pending bbc rewards */ function calculateTotalPendingBBCRewards() public view returns (uint256) { uint256 amount = masterchefV2.pendingBBC(bbcPoolPID, address(this)); return amount; } function getPricePerFullShare() public virtual view returns (uint256) { return totalShares == 0 ? 1e18 : ((balanceOf() + calculateTotalPendingBBCRewards()) * 1e18 / totalShares); } function getProfit(address _user) public virtual view returns (uint256) { UserInfo storage user = userInfo[_user]; if (user.shares == 0) return 0; uint256 pool = balanceOf() + calculateTotalPendingBBCRewards(); if (user.locked) { uint256 currentAmount = (pool * user.shares) / totalShares - user.userBoostedShare; return currentAmount - user.lockedAmount; } return (user.shares * pool) / totalShares - user.lastUserActionAmount; } /** * @notice Current pool available balance * @dev The contract puts 100% of the tokens to work. */ function available() public view returns (uint256) { return token.balanceOf(address(this)); } /** * @notice Calculates the total underlying bbcs * @dev It includes bbcs held by the contract and the boost debt amount. */ function balanceOf() public view returns (uint256) { return token.balanceOf(address(this)) + totalBoostDebt; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @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]. */ abstract 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() { _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 making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.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 Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ 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' 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)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to * 0 before setting it to a non-zero value. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @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://consensys.net/diligence/blog/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.8.0/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"); (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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ 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.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: GPLv3 pragma solidity 0.8.19; interface IMasterChefV2 { function BBC() external view returns (address); function deposit(uint256 _pid, uint256 _amount) external; function withdraw(uint256 _pid, uint256 _amount) external; function pendingBBC( uint256 _pid, address _user ) external view returns (uint256); function userInfo( uint256 _pid, address _user ) external view returns (uint256, uint256, uint256); function emergencyWithdraw(uint256 _pid) external; function lpToken(uint256 _pid) external view returns (address); function poolLength() external view returns (uint256 pools); function getBoostMultiplier( address _user, uint256 _pid ) external view returns (uint256); function updateBoostMultiplier( address _user, uint256 _pid, uint256 _newMultiplier ) external; }
{ "optimizer": { "enabled": true, "runs": 999999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"contract IMasterChefV2","name":"_masterchefV2","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_operator","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastDepositedTime","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"bool","name":"free","type":"bool"}],"name":"FreeFeeUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[],"name":"Init","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"lockedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockedDuration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockTimestamp","type":"uint256"}],"name":"Lock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"boostWeight","type":"uint256"}],"name":"NewBoostWeight","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"durationFactor","type":"uint256"}],"name":"NewDurationFactor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"durationFactorOverdue","type":"uint256"}],"name":"NewDurationFactorOverdue","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxLockDuration","type":"uint256"}],"name":"NewMaxLockDuration","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"}],"name":"NewOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"overdueFee","type":"uint256"}],"name":"NewOverdueFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"performanceFee","type":"uint256"}],"name":"NewPerformanceFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasury","type":"address"}],"name":"NewTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"unlockFreeDuration","type":"uint256"}],"name":"NewUnlockFreeDuration","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"withdrawFee","type":"uint256"}],"name":"NewWithdrawFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"withdrawFeePeriod","type":"uint256"}],"name":"NewWithdrawFeePeriod","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockTimestamp","type":"uint256"}],"name":"Unlock","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BOOST_WEIGHT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BOOST_WEIGHT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DURATION_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DURATION_FACTOR_OVERDUE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_RATE_SCALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_LOCK_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_LOCK_DURATION_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_OVERDUE_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PERFORMANCE_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAW_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAW_FEE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_DEPOSIT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_LOCK_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_WITHDRAW_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION_FACTOR_SHARE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNLOCK_FREE_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bbc","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bbcPoolPID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"calculateOverdueFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"calculatePerformanceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateTotalPendingBBCRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"calculateWithdrawFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"close","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_lockDuration","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeOverdueFeeUsers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freePerformanceFeeUsers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeWithdrawFeeUsers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getProfit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"dummyToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"masterchefV2","outputs":[{"internalType":"contract IMasterChefV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"overdueFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_boostWeight","type":"uint256"}],"name":"setBoostWeight","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_durationFactor","type":"uint256"}],"name":"setDurationFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_durationFactorOverdue","type":"uint256"}],"name":"setDurationFactorOverdue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bool","name":"_free","type":"bool"}],"name":"setFreeOverdueFeeUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bool","name":"_free","type":"bool"}],"name":"setFreePerformanceFeeUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bool","name":"_free","type":"bool"}],"name":"setFreeWithdrawFeeUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxLockDuration","type":"uint256"}],"name":"setMaxLockDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_overdueFee","type":"uint256"}],"name":"setOverdueFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceFee","type":"uint256"}],"name":"setPerformanceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_unlockFreeDuration","type":"uint256"}],"name":"setUnlockFreeDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawFee","type":"uint256"}],"name":"setWithdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawFeePeriod","type":"uint256"}],"name":"setWithdrawFeePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBoostDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLockedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"lastDepositedTime","type":"uint256"},{"internalType":"uint256","name":"lastUserActionAmount","type":"uint256"},{"internalType":"uint256","name":"lastUserActionTime","type":"uint256"},{"internalType":"uint256","name":"lockStartTime","type":"uint256"},{"internalType":"uint256","name":"lockEndTime","type":"uint256"},{"internalType":"uint256","name":"userBoostedShare","type":"uint256"},{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"uint256","name":"lockedAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawByAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFeePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e060405262127500600d556301e13380600e556301e13380600f556276a7006010556512309ce5400060115560c860125561019060135564e8d4a510006014556203f4806015553480156200005457600080fd5b5060405162004f7438038062004f74833981016040819052620000779162000353565b6200008233620002ea565b6000805460ff60a01b19169055600180556001600160a01b038616620000df5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b60448201526064015b60405180910390fd5b6001600160a01b038516620001375760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206d61737465726368656656320000000000000000000000006044820152606401620000d6565b6001600160a01b0384166200017f5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21030b236b4b760991b6044820152606401620000d6565b6001600160a01b038316620001ca5760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420747265617375727960801b6044820152606401620000d6565b6001600160a01b038216620002155760405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b21037b832b930ba37b960811b6044820152606401620000d6565b856001600160a01b03166080816001600160a01b031681525050846001600160a01b031663662d6d766040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200026e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002949190620003db565b6001600160a01b0390811660a05294851660c052600780549486166001600160a01b031995861617905560088054938616938516939093179092556009805491909416921691909117909155600a555062000402565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200035057600080fd5b50565b60008060008060008060c087890312156200036d57600080fd5b86516200037a816200033a565b60208801519096506200038d816200033a565b6040880151909550620003a0816200033a565b6060880151909450620003b3816200033a565b6080880151909350620003c6816200033a565b8092505060a087015190509295509295509295565b600060208284031215620003ee57600080fd5b8151620003fb816200033a565b9392505050565b60805160a05160c051614abd620004b760003960008181610911015281816112d901528181611390015281816118200152818161217501528181613e260152613f8701526000818161088c015281816135650152818161360601528181613eca01528181614028015281816142a5015281816142f501526145160152600081816109f7015281816118c401528181611c02015281816127600152818161321d0152818161326e01526136d40152614abd6000f3fe608060405234801561001057600080fd5b50600436106104a85760003560e01c80638b48a05e1161026b578063c6ed51be11610150578063e941fa78116100c8578063f786b95811610097578063fc0c546a1161007c578063fc0c546a146109f2578063fc4477b414610a19578063fd253b6414610a2257600080fd5b8063f786b958146109bf578063f851a440146109d257600080fd5b8063e941fa781461097d578063f0f4426014610986578063f2fde38b14610999578063f5c2e29c146109ac57600080fd5b8063def68a9c1161011f578063e2bbb15811610104578063e2bbb15814610958578063e464c6231461096b578063e73008bc1461097457600080fd5b8063def68a9c1461093c578063df10b4e61461094f57600080fd5b8063c6ed51be146108f9578063cb528b521461090c578063ccd34cd51461081f578063d4b0de2f1461093357600080fd5b8063acaf88cd116101e3578063b6ac642a116101b2578063bdca916511610197578063bdca9165146108ca578063c54d349c146108d3578063c600e1dc146108e657600080fd5b8063b6ac642a146108ae578063bc75f4b8146108c157600080fd5b8063acaf88cd1461086b578063b3ab15fb14610874578063b440458614610887578063b68578441461058e57600080fd5b806395dc14e11161023a578063a3d09b4e1161021f578063a3d09b4e14610851578063a5834e0614610859578063aaada5da1461086257600080fd5b806395dc14e11461082b578063a3639b391461083e57600080fd5b80638b48a05e146107e55780638da5cb5b146107ee57806393c99e6a1461080c578063948a03f21461081f57600080fd5b806348a0d75411610391578063715018a61161030957806378b4330f116102d8578063853828b6116102bd578063853828b6146107b157806387788782146107b957806387d4bda9146107c257600080fd5b806378b4330f146105c15780638456cb59146107a957600080fd5b8063715018a61461077e578063722713f714610786578063731ff24a1461078e57806377c7b8fc146107a157600080fd5b80635c975abb11610360578063668679ba11610345578063668679ba14610735578063704b6c021461075857806370897b231461076b57600080fd5b80635c975abb146106f257806361d027b31461071557600080fd5b806348a0d754146106895780634f1bfc9e146106915780635521e9bf1461069a578063570ca735146106ad57600080fd5b80632f6c493c116104245780633f415502116103f35780633fec4e32116103d85780633fec4e321461063b578063423b93ed1461066e57806343d726d61461068157600080fd5b80633f415502146106205780633f4ba83a1461063357600080fd5b80632f6c493c146105de57806335981921146105f1578063399ae724146106045780633a98ef391461061757600080fd5b80631ea30fef1161047b57806329a5cfd61161046057806329a5cfd6146105ae5780632cfc5f01146105c15780632e1a7d4d146105cb57600080fd5b80631ea30fef1461058e5780631efac1b81461059b57600080fd5b806301e81326146104ad57806305a9f274146104cb5780630c59696b146104d45780631959a002146104e9575b600080fd5b6104b86305265c0081565b6040519081526020015b60405180910390f35b6104b8600c5481565b6104e76104e2366004614825565b610a2f565b005b6105486104f7366004614860565b60026020819052600091825260409091208054600182015492820154600383015460048401546005850154600686015460078701546008909701549597969495939492939192909160ff9091169089565b60408051998a5260208a0198909852968801959095526060870193909352608086019190915260a085015260c0840152151560e0830152610100820152610120016104c2565b6104b86509184e72a00081565b6104e76105a9366004614825565b610b86565b6104b86105bc366004614884565b610ccf565b6104b862093a8081565b6104e76105d9366004614825565b610e1b565b6104e76105ec366004614860565b610eac565b6104e76105ff366004614825565b61101a565b6104e7610612366004614884565b611160565b6104b860065481565b6104e761062e3660046148be565b61142f565b6104e76115ac565b61065e610649366004614860565b60036020526000908152604090205460ff1681565b60405190151581526020016104c2565b6104e761067c3660046148be565b611668565b6104e76117e5565b6104b8611893565b6104b8600e5481565b6104e76106a8366004614825565b611949565b6009546106cd9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016104c2565b60005474010000000000000000000000000000000000000000900460ff1661065e565b6008546106cd9073ffffffffffffffffffffffffffffffffffffffff1681565b61065e610743366004614860565b60056020526000908152604090205460ff1681565b6104e7610766366004614860565b611964565b6104e7610779366004614825565b611a5c565b6104e7611ba4565b6104b8611bb8565b6104b86b204fce5e3e2502611000000081565b6104b8611c77565b6104e7611cc9565b6104e7611d85565b6104b860125481565b61065e6107d0366004614860565b60046020526000908152604090205460ff1681565b6104b861271081565b60005473ffffffffffffffffffffffffffffffffffffffff166106cd565b6104e761081a366004614825565b611d9e565b6104b864e8d4a5100081565b6104b8610839366004614860565b611eea565b6104e761084c366004614825565b612002565b6104b8612122565b6104b860145481565b6104b8600d5481565b6104b860105481565b6104e7610882366004614860565b6121e0565b6106cd7f000000000000000000000000000000000000000000000000000000000000000081565b6104e76108bc366004614825565b6122d8565b6104b860115481565b6104b86107d081565b6104e76108e1366004614825565b612420565b6104b86108f4366004614860565b612566565b6104b8610907366004614860565b612642565b6106cd7f000000000000000000000000000000000000000000000000000000000000000081565b6104b86101f481565b6104e761094a366004614860565b6126dd565b6104b860155481565b6104e76109663660046148f7565b6128ed565b6104b8600f5481565b6104b8600b5481565b6104b860135481565b6104e7610994366004614860565b612986565b6104e76109a7366004614860565b612a7e565b6104e76109ba3660046148be565b612b32565b6104e76109cd366004614825565b612caf565b6007546106cd9073ffffffffffffffffffffffffffffffffffffffff1681565b6106cd7f000000000000000000000000000000000000000000000000000000000000000081565b6104b8600a5481565b6104b8652d79883d200081565b60075473ffffffffffffffffffffffffffffffffffffffff163314610ab5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f00000000000000000000000000000000000000000060448201526064015b60405180910390fd5b64e8d4a51000811115610b4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f6f7665726475654665652063616e6e6f74206265206d6f7265207468616e204d60448201527f41585f4f5645524455455f4645450000000000000000000000000000000000006064820152608401610aac565b60148190556040518181527ff4bd1c5978320077e792afbb3911e8cab1325ce28a6b3e67f9067a1d80692961906020015b60405180910390a150565b60075473ffffffffffffffffffffffffffffffffffffffff163314610c07576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b62093a80811115610c9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603d60248201527f7769746864726177466565506572696f642063616e6e6f74206265206d6f726560448201527f207468616e204d41585f57495448445241575f4645455f504552494f440000006064820152608401610aac565b60158190556040518181527fb89ddaddb7435be26824cb48d2d0186c9525a2e1ec057abcb502704cdc0686cc90602001610b7b565b73ffffffffffffffffffffffffffffffffffffffff821660009081526002602052604081208054831115610d0257805492505b3360009081526004602052604090205460ff16158015610d275750600781015460ff16155b8015610d4357506015548160010154610d409190614948565b42105b15610e0f576000610d52612122565b610d5a611bb8565b610d649190614948565b8254909150600090610d7b64e8d4a510008761495b565b610d859190614972565b90506000610d9287612df9565b60068086015490548654610da6908761495b565b610db09190614972565b610dba91906149ad565b610dc491906149ad565b9050600064e8d4a51000610dd8848461495b565b610de29190614972565b9050600061271060135483610df7919061495b565b610e019190614972565b9650610e1595505050505050565b60009150505b92915050565b610e23612e17565b610e2b612e9c565b60008111610e95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4e6f7468696e6720746f207769746864726177000000000000000000000000006044820152606401610aac565b610ea0816000612f0f565b610ea960018055565b50565b803373ffffffffffffffffffffffffffffffffffffffff82161480610ee8575060095473ffffffffffffffffffffffffffffffffffffffff1633145b610f4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4e6f74206f70657261746f72206f7220626263206f776e6572000000000000006044820152606401610aac565b610f56612e17565b610f5e612e9c565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600260205260409020600781015460ff168015610f9a5750428160050154105b611000576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f7420756e6c6f636b207965740000000000000000000000000000006044820152606401610aac565b61100c60008085613318565b5061101660018055565b5050565b60075473ffffffffffffffffffffffffffffffffffffffff16331461109b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b6000811161112b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4455524154494f4e5f464143544f525f4f5645524455452063616e6e6f74206260448201527f65207a65726f00000000000000000000000000000000000000000000000000006064820152608401610aac565b60108190556040518181527f18b6d179114082d7eda9837e15a39eb30032d5f3df00487a67541398f48fabfe90602001610b7b565b611168613a36565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015260009073ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa1580156111d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f991906149c0565b905080600003611265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f42616c616e6365206d75737420657863656564203000000000000000000000006044820152606401610aac565b81158061127157508082115b1561127a578091505b61129c73ffffffffffffffffffffffffffffffffffffffff8416333085613ab7565b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820184905284169063095ea7b3906044016020604051808303816000875af1158015611331573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135591906149d9565b50600a546040517fe2bbb1580000000000000000000000000000000000000000000000000000000081526004810191909152602481018390527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063e2bbb15890604401600060405180830381600087803b1580156113e957600080fd5b505af11580156113fd573d6000803e3d6000fd5b50506040517f57a86f7d14ccde89e22870afe839e3011216827daa9b24e18629f0a1e9d6cc14925060009150a1505050565b60075473ffffffffffffffffffffffffffffffffffffffff1633146114b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b73ffffffffffffffffffffffffffffffffffffffff821661152d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616e6e6f74206265207a65726f2061646472657373000000000000000000006044820152606401610aac565b73ffffffffffffffffffffffffffffffffffffffff821660008181526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915590519092917f3d7902bc9a6665bd7caf4240b834bb805d3cd68256889e9f8d2e40a10be41d4491a35050565b60075473ffffffffffffffffffffffffffffffffffffffff16331461162d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b611635613b93565b61163d613c17565b6040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b60075473ffffffffffffffffffffffffffffffffffffffff1633146116e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b73ffffffffffffffffffffffffffffffffffffffff8216611766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616e6e6f74206265207a65726f2061646472657373000000000000000000006044820152606401610aac565b73ffffffffffffffffffffffffffffffffffffffff821660008181526003602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915590519092917f3d7902bc9a6665bd7caf4240b834bb805d3cd68256889e9f8d2e40a10be41d4491a35050565b6117ed613a36565b600a546040517f5312ea8e00000000000000000000000000000000000000000000000000000000815260048101919091527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690635312ea8e90602401600060405180830381600087803b15801561187957600080fd5b505af115801561188d573d6000803e3d6000fd5b50505050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015611920573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061194491906149c0565b905090565b611951612e17565b611959612e9c565b610ea0600082612f0f565b61196c613a36565b73ffffffffffffffffffffffffffffffffffffffff81166119e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616e6e6f74206265207a65726f2061646472657373000000000000000000006044820152606401610aac565b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c90602001610b7b565b60075473ffffffffffffffffffffffffffffffffffffffff163314611add576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b6107d0811115611b6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f706572666f726d616e63654665652063616e6e6f74206265206d6f726520746860448201527f616e204d41585f504552464f524d414e43455f464545000000000000000000006064820152608401610aac565b60128190556040518181527fefeafcf03e479a9566d7ef321b4816de0ba19cfa3cd0fae2f8c5f4a0afb342c490602001610b7b565b611bac613a36565b611bb66000613c94565b565b600b546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000919073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015611c49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6d91906149c0565b6119449190614948565b6000600654600014611cbc57600654611c8e612122565b611c96611bb8565b611ca09190614948565b611cb290670de0b6b3a764000061495b565b6119449190614972565b50670de0b6b3a764000090565b60075473ffffffffffffffffffffffffffffffffffffffff163314611d4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b611d52612e17565b611d5a613d09565b6040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b33600090815260026020526040902054611bb690610e1b565b60075473ffffffffffffffffffffffffffffffffffffffff163314611e1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b652d79883d2000811115611eb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f424f4f53545f5745494748542063616e6e6f74206265206d6f7265207468616e60448201527f20424f4f53545f5745494748545f4c494d4954000000000000000000000000006064820152608401610aac565b60118190556040518181527f7666dfff8c3377938e522b4eed3aff079973a976f95969db60a406d49f40da4e90602001610b7b565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600260205260408120805415801590611f235750600781015460ff165b8015611f55575073ffffffffffffffffffffffffffffffffffffffff831660009081526005602052604090205460ff16155b8015611f71575042600d548260050154611f6f9190614948565b105b15611ff9576000611f8184612566565b90506000600d54836005015442611f9891906149ad565b611fa291906149ad565b9050601054811115611fb357506010545b600060105460145483611fc6919061495b565b611fd09190614972565b9050600064e8d4a51000611fe4838661495b565b611fee9190614972565b979650505050505050565b50600092915050565b60075473ffffffffffffffffffffffffffffffffffffffff163314612083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b600081116120ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4455524154494f4e5f464143544f522063616e6e6f74206265207a65726f00006044820152606401610aac565b600f8190556040518181527f9478eb023aac0a7d58a4e935377056bf27cf5b72a2300725f831817a8f62fbde90602001610b7b565b600a546040517fddaf5c4c0000000000000000000000000000000000000000000000000000000081526004810191909152306024820152600090819073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063ddaf5c4c90604401602060405180830381865afa1580156121bc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1591906149c0565b6121e8613a36565b73ffffffffffffffffffffffffffffffffffffffff8116612265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616e6e6f74206265207a65726f2061646472657373000000000000000000006044820152606401610aac565b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fda12ee837e6978172aaf54b16145ffe08414fd8710092ef033c71b8eb6ec189a90602001610b7b565b60075473ffffffffffffffffffffffffffffffffffffffff163314612359576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b6101f48111156123eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f77697468647261774665652063616e6e6f74206265206d6f7265207468616e2060448201527f4d41585f57495448445241575f464545000000000000000000000000000000006064820152608401610aac565b60138190556040518181527fd5fe46099fa396290a7f57e36c3c3c8774e2562c18ed5d1dcc0fa75071e03f1d90602001610b7b565b60075473ffffffffffffffffffffffffffffffffffffffff1633146124a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b60008111612531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e4c4f434b5f465245455f4455524154494f4e2063616e6e6f74206265207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610aac565b600d8190556040518181527ff84bf2b901cfc02956d4e69556d7448cef4ea13587e7714dba7c6d697091e7ad90602001610b7b565b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602052604081208054820361259c5750600092915050565b60006125a6612122565b6125ae611bb8565b6125b89190614948565b600783015490915060ff161561261157600082600601546006548460000154846125e2919061495b565b6125ec9190614972565b6125f691906149ad565b905082600801548161260891906149ad565b95945050505050565b6002820154600654835461262690849061495b565b6126309190614972565b61263a91906149ad565b949350505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020526040812080541580159061267c5750600781015460ff16155b80156126ae575073ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604090205460ff16155b15611ff95760006126be84612566565b90506000612710601254836126d3919061495b565b6126089190614972565b60075473ffffffffffffffffffffffffffffffffffffffff16331461275e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612839576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f546f6b656e2063616e6e6f742062652073616d65206173206465706f7369742060448201527f746f6b656e0000000000000000000000000000000000000000000000000000006064820152608401610aac565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa1580156128a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128ca91906149c0565b905061101673ffffffffffffffffffffffffffffffffffffffff83163383613d78565b6128f5612e17565b6128fd612e9c565b600082118061290c5750600081115b612972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4e6f7468696e6720746f206465706f73697400000000000000000000000000006044820152606401610aac565b61297d828233613318565b61101660018055565b61298e613a36565b73ffffffffffffffffffffffffffffffffffffffff8116612a0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616e6e6f74206265207a65726f2061646472657373000000000000000000006044820152606401610aac565b600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fafa147634b29e2c7bd53ce194256b9f41cfb9ba3036f2b822fdd1d965beea08690602001610b7b565b612a86613a36565b73ffffffffffffffffffffffffffffffffffffffff8116612b29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610aac565b610ea981613c94565b60075473ffffffffffffffffffffffffffffffffffffffff163314612bb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b73ffffffffffffffffffffffffffffffffffffffff8216612c30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616e6e6f74206265207a65726f2061646472657373000000000000000000006044820152606401610aac565b73ffffffffffffffffffffffffffffffffffffffff821660008181526004602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915590519092917f3d7902bc9a6665bd7caf4240b834bb805d3cd68256889e9f8d2e40a10be41d4491a35050565b60075473ffffffffffffffffffffffffffffffffffffffff163314612d30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b6305265c00811115612dc4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603d60248201527f4d41585f4c4f434b5f4455524154494f4e2063616e6e6f74206265206d6f726560448201527f207468616e204d41585f4c4f434b5f4455524154494f4e5f4c494d49540000006064820152608401610aac565b600e8190556040518181527fcab2f3455b51b6ca5377e84fccd0f890b6f6ca36c02e18b6d36cb34f469fe4fe90602001610b7b565b6000612e0482611eea565b612e0d83612642565b610e159190614948565b60005474010000000000000000000000000000000000000000900460ff1615611bb6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610aac565b600260015403612f08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610aac565b6002600155565b33600090815260026020526040902082158015612f2c5750600082115b15612fcb576509184e72a0008211612fc6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f576974686472617720616d6f756e74206d75737420626520677265617465722060448201527f7468616e204d494e5f57495448445241575f414d4f554e5400000000000000006064820152608401610aac565b613036565b8054831115613036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f576974686472617720616d6f756e7420657863656564732062616c616e6365006044820152606401610aac565b428160050154106130a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f5374696c6c20696e206c6f636b000000000000000000000000000000000000006044820152606401610aac565b805483906000906130c06b204fce5e3e250261100000008461495b565b6130ca9190614972565b90506130d4613dd3565b506130de336140ff565b841580156130ec5750600084115b1561312d5760006130fb611bb8565b9050806006548661310c919061495b565b6131169190614972565b845490935083111561312757835492505b50613154565b82546b204fce5e3e2502611000000090613147908361495b565b6131519190614972565b91505b600060065483613162611bb8565b61316c919061495b565b6131769190614972565b90508284600001600082825461318c91906149ad565b9250508190555082600660008282546131a591906149ad565b90915550503360009081526004602052604090205460ff161580156131da575060155484600101546131d79190614948565b42105b15613254576000612710601354836131f2919061495b565b6131fc9190614972565b6008549091506132469073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116911683613d78565b61325081836149ad565b9150505b61329573ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383613d78565b8354156132c7576006546132a7611bb8565b85546132b3919061495b565b6132bd9190614972565b60028501556132cf565b600060028501555b426003850155604080518281526020810185905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a2505050505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602052604090208054158061334b5750600084115b156133e5576509184e72a00084116133e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f4465706f73697420616d6f756e74206d7573742062652067726561746572207460448201527f68616e204d494e5f4445504f5349545f414d4f554e54000000000000000000006064820152608401610aac565b6005810154839042811061343f578515613423574260048401556008830154600c80546000906134169084906149ad565b9091555050600060088401555b600483015461343290826149ad565b61343c9083614948565b91505b84158061344f575062093a808210155b6134b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4d696e696d756d206c6f636b20706572696f64206973206f6e65207765656b006044820152606401610aac565b600e54821115613521576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4d6178696d756d206c6f636b20706572696f64206578636565646564000000006044820152606401610aac565b613529613dd3565b50600654600003613631576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156135c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135e591906149c0565b60085490915061362f9073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116911683613d78565b505b61363a846140ff565b84156136a4574281101561366257426004840181905561365b908690614948565b905061366f565b61366c8582614948565b90505b6007830180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600583018190555b6000806000806136b2611bb8565b90508915613700576136fc73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001689308d613ab7565b8992505b8654158015906137145750600787015460ff165b1561378c576006548754613728908361495b565b6137329190614972565b915061373e8284614948565b925086600001546006600082825461375691906149ad565b909155505060008755600487015442900361378c5781876008018190555081600c60008282546137869190614948565b90915550505b600654156137bc5761379e82826149ad565b6006546137ab908561495b565b6137b59190614972565b93506137c0565b8293505b8660040154851115613940576000600f546011548960040154886137e491906149ad565b6137ee919061495b565b6137f89190614972565b9050600064e8d4a5100061380c878461495b565b6138169190614972565b90506138228187614948565b9550858960000160008282546138389190614948565b909155506000905064e8d4a51000613850878561495b565b61385a9190614972565b9050808a60060160008282546138709190614948565b9250508190555080600b60008282546138899190614948565b925050819055508c8a60080160008282546138a49190614948565b925050819055508c600c60008282546138bd9190614948565b909155505060088a01548a5460048c015473ffffffffffffffffffffffffffffffffffffffff8e16927f2b943276e5d747f6f7dd46d3b880d8874cb8d6b9b88ca1903990a2738e7dc7a1929091613914908d6149ad565b6040805193845260208401929092529082015242606082015260800160405180910390a250505061395a565b838760000160008282546139549190614948565b90915550505b60008a11806139695750600089115b15613975574260018801555b83600660008282546139879190614948565b9091555050600680880154905461399c611bb8565b89546139a8919061495b565b6139b29190614972565b6139bc91906149ad565b60028801554260038801819055604080518c8152602081018790529081018b9052606081019190915273ffffffffffffffffffffffffffffffffffffffff8916907f7162984403f6c73c8639375d45a9187dfd04602231bd8e587c415718b5f7e5f99060800160405180910390a250505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611bb6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aac565b60405173ffffffffffffffffffffffffffffffffffffffff8085166024830152831660448201526064810182905261188d9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526145b5565b60005474010000000000000000000000000000000000000000900460ff16611bb6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610aac565b613c1f613b93565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613d11612e17565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613c6a3390565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052613dce9084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401613b11565b505050565b600a546040517fddaf5c4c0000000000000000000000000000000000000000000000000000000081526004810191909152306024820152600090819073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063ddaf5c4c90604401602060405180830381865afa158015613e6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e9191906149c0565b905080156140f7576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015613f26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f4a91906149c0565b600a546040517f441a3e700000000000000000000000000000000000000000000000000000000081526004810191909152600060248201529091507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063441a3e7090604401600060405180830381600087803b158015613fe057600080fd5b505af1158015613ff4573d6000803e3d6000fd5b50506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600092507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1691506370a0823190602401602060405180830381865afa158015614085573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140a991906149c0565b905060006140b783836149ad565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a2949350505050565b600091505090565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020526040902080541561101657600781015460ff16156144505760008160060154600654836000015461414f611bb8565b614159919061495b565b6141639190614972565b61416d91906149ad565b90508160060154600b600082825461418591906149ad565b909155505060006006808401829055835481549092906141a69084906149ad565b909155505073ffffffffffffffffffffffffffffffffffffffff831660009081526005602052604090205460ff161580156141f1575042600d5483600501546141ef9190614948565b105b1561432e57600082600801548261420891906149ad565b90506000600d5484600501544261421f91906149ad565b61422991906149ad565b905060105481111561423a57506010545b60006010546014548361424d919061495b565b6142579190614972565b9050600064e8d4a5100061426b838661495b565b6142759190614972565b90506000614284600283614972565b6008549091506142ce9073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116911683613d78565b61431c61dead6142de83856149ad565b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169190613d78565b61432682876149ad565b955050505050505b6000614338611bb8565b9050600060065460001461436e5761435083836149ad565b60065461435d908561495b565b6143679190614972565b9050614371565b50815b80845560068054829190600090614389908490614948565b90915550506005840154421115614449576007840180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600060048501819055600585018190556008850154600c8054919290916143ec9084906149ad565b9091555050600060088501556040805184815242602082015273ffffffffffffffffffffffffffffffffffffffff8716917ff7870c5b224cbc19873599e46ccfc7103934650509b1af0c3ce90138377c2004910160405180910390a25b5050505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604090205460ff1661101657600060065461448a611bb8565b8354614496919061495b565b6144a09190614972565b90508160000154600660008282546144b891906149ad565b9091555050600080835560028301546144d190836149ad565b90506000612710601254836144e6919061495b565b6144f09190614972565b9050801561454c5760085461453f9073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116911683613d78565b61454981846149ad565b92505b6000614556611bb8565b9050600060065460001461458c5761456e85836149ad565b60065461457b908761495b565b6145859190614972565b905061458f565b50835b808655600680548291906000906145a7908490614948565b909155505050505050505050565b6000614617826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166146c49092919063ffffffff16565b905080516000148061463857508080602001905181019061463891906149d9565b613dce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610aac565b606061263a8484600085856000808673ffffffffffffffffffffffffffffffffffffffff1685876040516146f89190614a1a565b60006040518083038185875af1925050503d8060008114614735576040519150601f19603f3d011682016040523d82523d6000602084013e61473a565b606091505b5091509150611fee87838387606083156147dc5782516000036147d55773ffffffffffffffffffffffffffffffffffffffff85163b6147d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610aac565b508161263a565b61263a83838151156147f15781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aac9190614a36565b60006020828403121561483757600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff81168114610ea957600080fd5b60006020828403121561487257600080fd5b813561487d8161483e565b9392505050565b6000806040838503121561489757600080fd5b82356148a28161483e565b946020939093013593505050565b8015158114610ea957600080fd5b600080604083850312156148d157600080fd5b82356148dc8161483e565b915060208301356148ec816148b0565b809150509250929050565b6000806040838503121561490a57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610e1557610e15614919565b8082028115828204841417610e1557610e15614919565b6000826149a8577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b81810381811115610e1557610e15614919565b6000602082840312156149d257600080fd5b5051919050565b6000602082840312156149eb57600080fd5b815161487d816148b0565b60005b83811015614a115781810151838201526020016149f9565b50506000910152565b60008251614a2c8184602087016149f6565b9190910192915050565b6020815260008251806020840152614a558160408501602087016149f6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212209293578dc22638488111f38225b68cf0ab20de01345ccf974910cde2e2940c8664736f6c63430008130033000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a324360000000000000000000000003fefd06828689252a69207718985b9a78350561f00000000000000000000000095fe70a9449d1e8276040d29a4fdf63b94246288000000000000000000000000b5c4d8671e03fba09d467c50fc51215b77ee54540000000000000000000000001d8ecef8fcaaa50f0326d9af768809a01aae61a90000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106104a85760003560e01c80638b48a05e1161026b578063c6ed51be11610150578063e941fa78116100c8578063f786b95811610097578063fc0c546a1161007c578063fc0c546a146109f2578063fc4477b414610a19578063fd253b6414610a2257600080fd5b8063f786b958146109bf578063f851a440146109d257600080fd5b8063e941fa781461097d578063f0f4426014610986578063f2fde38b14610999578063f5c2e29c146109ac57600080fd5b8063def68a9c1161011f578063e2bbb15811610104578063e2bbb15814610958578063e464c6231461096b578063e73008bc1461097457600080fd5b8063def68a9c1461093c578063df10b4e61461094f57600080fd5b8063c6ed51be146108f9578063cb528b521461090c578063ccd34cd51461081f578063d4b0de2f1461093357600080fd5b8063acaf88cd116101e3578063b6ac642a116101b2578063bdca916511610197578063bdca9165146108ca578063c54d349c146108d3578063c600e1dc146108e657600080fd5b8063b6ac642a146108ae578063bc75f4b8146108c157600080fd5b8063acaf88cd1461086b578063b3ab15fb14610874578063b440458614610887578063b68578441461058e57600080fd5b806395dc14e11161023a578063a3d09b4e1161021f578063a3d09b4e14610851578063a5834e0614610859578063aaada5da1461086257600080fd5b806395dc14e11461082b578063a3639b391461083e57600080fd5b80638b48a05e146107e55780638da5cb5b146107ee57806393c99e6a1461080c578063948a03f21461081f57600080fd5b806348a0d75411610391578063715018a61161030957806378b4330f116102d8578063853828b6116102bd578063853828b6146107b157806387788782146107b957806387d4bda9146107c257600080fd5b806378b4330f146105c15780638456cb59146107a957600080fd5b8063715018a61461077e578063722713f714610786578063731ff24a1461078e57806377c7b8fc146107a157600080fd5b80635c975abb11610360578063668679ba11610345578063668679ba14610735578063704b6c021461075857806370897b231461076b57600080fd5b80635c975abb146106f257806361d027b31461071557600080fd5b806348a0d754146106895780634f1bfc9e146106915780635521e9bf1461069a578063570ca735146106ad57600080fd5b80632f6c493c116104245780633f415502116103f35780633fec4e32116103d85780633fec4e321461063b578063423b93ed1461066e57806343d726d61461068157600080fd5b80633f415502146106205780633f4ba83a1461063357600080fd5b80632f6c493c146105de57806335981921146105f1578063399ae724146106045780633a98ef391461061757600080fd5b80631ea30fef1161047b57806329a5cfd61161046057806329a5cfd6146105ae5780632cfc5f01146105c15780632e1a7d4d146105cb57600080fd5b80631ea30fef1461058e5780631efac1b81461059b57600080fd5b806301e81326146104ad57806305a9f274146104cb5780630c59696b146104d45780631959a002146104e9575b600080fd5b6104b86305265c0081565b6040519081526020015b60405180910390f35b6104b8600c5481565b6104e76104e2366004614825565b610a2f565b005b6105486104f7366004614860565b60026020819052600091825260409091208054600182015492820154600383015460048401546005850154600686015460078701546008909701549597969495939492939192909160ff9091169089565b60408051998a5260208a0198909852968801959095526060870193909352608086019190915260a085015260c0840152151560e0830152610100820152610120016104c2565b6104b86509184e72a00081565b6104e76105a9366004614825565b610b86565b6104b86105bc366004614884565b610ccf565b6104b862093a8081565b6104e76105d9366004614825565b610e1b565b6104e76105ec366004614860565b610eac565b6104e76105ff366004614825565b61101a565b6104e7610612366004614884565b611160565b6104b860065481565b6104e761062e3660046148be565b61142f565b6104e76115ac565b61065e610649366004614860565b60036020526000908152604090205460ff1681565b60405190151581526020016104c2565b6104e761067c3660046148be565b611668565b6104e76117e5565b6104b8611893565b6104b8600e5481565b6104e76106a8366004614825565b611949565b6009546106cd9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016104c2565b60005474010000000000000000000000000000000000000000900460ff1661065e565b6008546106cd9073ffffffffffffffffffffffffffffffffffffffff1681565b61065e610743366004614860565b60056020526000908152604090205460ff1681565b6104e7610766366004614860565b611964565b6104e7610779366004614825565b611a5c565b6104e7611ba4565b6104b8611bb8565b6104b86b204fce5e3e2502611000000081565b6104b8611c77565b6104e7611cc9565b6104e7611d85565b6104b860125481565b61065e6107d0366004614860565b60046020526000908152604090205460ff1681565b6104b861271081565b60005473ffffffffffffffffffffffffffffffffffffffff166106cd565b6104e761081a366004614825565b611d9e565b6104b864e8d4a5100081565b6104b8610839366004614860565b611eea565b6104e761084c366004614825565b612002565b6104b8612122565b6104b860145481565b6104b8600d5481565b6104b860105481565b6104e7610882366004614860565b6121e0565b6106cd7f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a3243681565b6104e76108bc366004614825565b6122d8565b6104b860115481565b6104b86107d081565b6104e76108e1366004614825565b612420565b6104b86108f4366004614860565b612566565b6104b8610907366004614860565b612642565b6106cd7f0000000000000000000000003fefd06828689252a69207718985b9a78350561f81565b6104b86101f481565b6104e761094a366004614860565b6126dd565b6104b860155481565b6104e76109663660046148f7565b6128ed565b6104b8600f5481565b6104b8600b5481565b6104b860135481565b6104e7610994366004614860565b612986565b6104e76109a7366004614860565b612a7e565b6104e76109ba3660046148be565b612b32565b6104e76109cd366004614825565b612caf565b6007546106cd9073ffffffffffffffffffffffffffffffffffffffff1681565b6106cd7f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a3243681565b6104b8600a5481565b6104b8652d79883d200081565b60075473ffffffffffffffffffffffffffffffffffffffff163314610ab5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f00000000000000000000000000000000000000000060448201526064015b60405180910390fd5b64e8d4a51000811115610b4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f6f7665726475654665652063616e6e6f74206265206d6f7265207468616e204d60448201527f41585f4f5645524455455f4645450000000000000000000000000000000000006064820152608401610aac565b60148190556040518181527ff4bd1c5978320077e792afbb3911e8cab1325ce28a6b3e67f9067a1d80692961906020015b60405180910390a150565b60075473ffffffffffffffffffffffffffffffffffffffff163314610c07576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b62093a80811115610c9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603d60248201527f7769746864726177466565506572696f642063616e6e6f74206265206d6f726560448201527f207468616e204d41585f57495448445241575f4645455f504552494f440000006064820152608401610aac565b60158190556040518181527fb89ddaddb7435be26824cb48d2d0186c9525a2e1ec057abcb502704cdc0686cc90602001610b7b565b73ffffffffffffffffffffffffffffffffffffffff821660009081526002602052604081208054831115610d0257805492505b3360009081526004602052604090205460ff16158015610d275750600781015460ff16155b8015610d4357506015548160010154610d409190614948565b42105b15610e0f576000610d52612122565b610d5a611bb8565b610d649190614948565b8254909150600090610d7b64e8d4a510008761495b565b610d859190614972565b90506000610d9287612df9565b60068086015490548654610da6908761495b565b610db09190614972565b610dba91906149ad565b610dc491906149ad565b9050600064e8d4a51000610dd8848461495b565b610de29190614972565b9050600061271060135483610df7919061495b565b610e019190614972565b9650610e1595505050505050565b60009150505b92915050565b610e23612e17565b610e2b612e9c565b60008111610e95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4e6f7468696e6720746f207769746864726177000000000000000000000000006044820152606401610aac565b610ea0816000612f0f565b610ea960018055565b50565b803373ffffffffffffffffffffffffffffffffffffffff82161480610ee8575060095473ffffffffffffffffffffffffffffffffffffffff1633145b610f4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4e6f74206f70657261746f72206f7220626263206f776e6572000000000000006044820152606401610aac565b610f56612e17565b610f5e612e9c565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600260205260409020600781015460ff168015610f9a5750428160050154105b611000576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f7420756e6c6f636b207965740000000000000000000000000000006044820152606401610aac565b61100c60008085613318565b5061101660018055565b5050565b60075473ffffffffffffffffffffffffffffffffffffffff16331461109b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b6000811161112b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4455524154494f4e5f464143544f525f4f5645524455452063616e6e6f74206260448201527f65207a65726f00000000000000000000000000000000000000000000000000006064820152608401610aac565b60108190556040518181527f18b6d179114082d7eda9837e15a39eb30032d5f3df00487a67541398f48fabfe90602001610b7b565b611168613a36565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015260009073ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa1580156111d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f991906149c0565b905080600003611265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f42616c616e6365206d75737420657863656564203000000000000000000000006044820152606401610aac565b81158061127157508082115b1561127a578091505b61129c73ffffffffffffffffffffffffffffffffffffffff8416333085613ab7565b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003fefd06828689252a69207718985b9a78350561f811660048301526024820184905284169063095ea7b3906044016020604051808303816000875af1158015611331573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135591906149d9565b50600a546040517fe2bbb1580000000000000000000000000000000000000000000000000000000081526004810191909152602481018390527f0000000000000000000000003fefd06828689252a69207718985b9a78350561f73ffffffffffffffffffffffffffffffffffffffff169063e2bbb15890604401600060405180830381600087803b1580156113e957600080fd5b505af11580156113fd573d6000803e3d6000fd5b50506040517f57a86f7d14ccde89e22870afe839e3011216827daa9b24e18629f0a1e9d6cc14925060009150a1505050565b60075473ffffffffffffffffffffffffffffffffffffffff1633146114b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b73ffffffffffffffffffffffffffffffffffffffff821661152d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616e6e6f74206265207a65726f2061646472657373000000000000000000006044820152606401610aac565b73ffffffffffffffffffffffffffffffffffffffff821660008181526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915590519092917f3d7902bc9a6665bd7caf4240b834bb805d3cd68256889e9f8d2e40a10be41d4491a35050565b60075473ffffffffffffffffffffffffffffffffffffffff16331461162d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b611635613b93565b61163d613c17565b6040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b60075473ffffffffffffffffffffffffffffffffffffffff1633146116e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b73ffffffffffffffffffffffffffffffffffffffff8216611766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616e6e6f74206265207a65726f2061646472657373000000000000000000006044820152606401610aac565b73ffffffffffffffffffffffffffffffffffffffff821660008181526003602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915590519092917f3d7902bc9a6665bd7caf4240b834bb805d3cd68256889e9f8d2e40a10be41d4491a35050565b6117ed613a36565b600a546040517f5312ea8e00000000000000000000000000000000000000000000000000000000815260048101919091527f0000000000000000000000003fefd06828689252a69207718985b9a78350561f73ffffffffffffffffffffffffffffffffffffffff1690635312ea8e90602401600060405180830381600087803b15801561187957600080fd5b505af115801561188d573d6000803e3d6000fd5b50505050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a3243673ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015611920573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061194491906149c0565b905090565b611951612e17565b611959612e9c565b610ea0600082612f0f565b61196c613a36565b73ffffffffffffffffffffffffffffffffffffffff81166119e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616e6e6f74206265207a65726f2061646472657373000000000000000000006044820152606401610aac565b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c90602001610b7b565b60075473ffffffffffffffffffffffffffffffffffffffff163314611add576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b6107d0811115611b6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f706572666f726d616e63654665652063616e6e6f74206265206d6f726520746860448201527f616e204d41585f504552464f524d414e43455f464545000000000000000000006064820152608401610aac565b60128190556040518181527fefeafcf03e479a9566d7ef321b4816de0ba19cfa3cd0fae2f8c5f4a0afb342c490602001610b7b565b611bac613a36565b611bb66000613c94565b565b600b546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000919073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a3243616906370a0823190602401602060405180830381865afa158015611c49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6d91906149c0565b6119449190614948565b6000600654600014611cbc57600654611c8e612122565b611c96611bb8565b611ca09190614948565b611cb290670de0b6b3a764000061495b565b6119449190614972565b50670de0b6b3a764000090565b60075473ffffffffffffffffffffffffffffffffffffffff163314611d4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b611d52612e17565b611d5a613d09565b6040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b33600090815260026020526040902054611bb690610e1b565b60075473ffffffffffffffffffffffffffffffffffffffff163314611e1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b652d79883d2000811115611eb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f424f4f53545f5745494748542063616e6e6f74206265206d6f7265207468616e60448201527f20424f4f53545f5745494748545f4c494d4954000000000000000000000000006064820152608401610aac565b60118190556040518181527f7666dfff8c3377938e522b4eed3aff079973a976f95969db60a406d49f40da4e90602001610b7b565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600260205260408120805415801590611f235750600781015460ff165b8015611f55575073ffffffffffffffffffffffffffffffffffffffff831660009081526005602052604090205460ff16155b8015611f71575042600d548260050154611f6f9190614948565b105b15611ff9576000611f8184612566565b90506000600d54836005015442611f9891906149ad565b611fa291906149ad565b9050601054811115611fb357506010545b600060105460145483611fc6919061495b565b611fd09190614972565b9050600064e8d4a51000611fe4838661495b565b611fee9190614972565b979650505050505050565b50600092915050565b60075473ffffffffffffffffffffffffffffffffffffffff163314612083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b600081116120ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4455524154494f4e5f464143544f522063616e6e6f74206265207a65726f00006044820152606401610aac565b600f8190556040518181527f9478eb023aac0a7d58a4e935377056bf27cf5b72a2300725f831817a8f62fbde90602001610b7b565b600a546040517fddaf5c4c0000000000000000000000000000000000000000000000000000000081526004810191909152306024820152600090819073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003fefd06828689252a69207718985b9a78350561f169063ddaf5c4c90604401602060405180830381865afa1580156121bc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1591906149c0565b6121e8613a36565b73ffffffffffffffffffffffffffffffffffffffff8116612265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616e6e6f74206265207a65726f2061646472657373000000000000000000006044820152606401610aac565b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fda12ee837e6978172aaf54b16145ffe08414fd8710092ef033c71b8eb6ec189a90602001610b7b565b60075473ffffffffffffffffffffffffffffffffffffffff163314612359576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b6101f48111156123eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f77697468647261774665652063616e6e6f74206265206d6f7265207468616e2060448201527f4d41585f57495448445241575f464545000000000000000000000000000000006064820152608401610aac565b60138190556040518181527fd5fe46099fa396290a7f57e36c3c3c8774e2562c18ed5d1dcc0fa75071e03f1d90602001610b7b565b60075473ffffffffffffffffffffffffffffffffffffffff1633146124a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b60008111612531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e4c4f434b5f465245455f4455524154494f4e2063616e6e6f74206265207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610aac565b600d8190556040518181527ff84bf2b901cfc02956d4e69556d7448cef4ea13587e7714dba7c6d697091e7ad90602001610b7b565b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602052604081208054820361259c5750600092915050565b60006125a6612122565b6125ae611bb8565b6125b89190614948565b600783015490915060ff161561261157600082600601546006548460000154846125e2919061495b565b6125ec9190614972565b6125f691906149ad565b905082600801548161260891906149ad565b95945050505050565b6002820154600654835461262690849061495b565b6126309190614972565b61263a91906149ad565b949350505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020526040812080541580159061267c5750600781015460ff16155b80156126ae575073ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604090205460ff16155b15611ff95760006126be84612566565b90506000612710601254836126d3919061495b565b6126089190614972565b60075473ffffffffffffffffffffffffffffffffffffffff16331461275e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b7f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a3243673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612839576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f546f6b656e2063616e6e6f742062652073616d65206173206465706f7369742060448201527f746f6b656e0000000000000000000000000000000000000000000000000000006064820152608401610aac565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa1580156128a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128ca91906149c0565b905061101673ffffffffffffffffffffffffffffffffffffffff83163383613d78565b6128f5612e17565b6128fd612e9c565b600082118061290c5750600081115b612972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4e6f7468696e6720746f206465706f73697400000000000000000000000000006044820152606401610aac565b61297d828233613318565b61101660018055565b61298e613a36565b73ffffffffffffffffffffffffffffffffffffffff8116612a0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616e6e6f74206265207a65726f2061646472657373000000000000000000006044820152606401610aac565b600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fafa147634b29e2c7bd53ce194256b9f41cfb9ba3036f2b822fdd1d965beea08690602001610b7b565b612a86613a36565b73ffffffffffffffffffffffffffffffffffffffff8116612b29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610aac565b610ea981613c94565b60075473ffffffffffffffffffffffffffffffffffffffff163314612bb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b73ffffffffffffffffffffffffffffffffffffffff8216612c30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616e6e6f74206265207a65726f2061646472657373000000000000000000006044820152606401610aac565b73ffffffffffffffffffffffffffffffffffffffff821660008181526004602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915590519092917f3d7902bc9a6665bd7caf4240b834bb805d3cd68256889e9f8d2e40a10be41d4491a35050565b60075473ffffffffffffffffffffffffffffffffffffffff163314612d30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f0000000000000000000000000000000000000000006044820152606401610aac565b6305265c00811115612dc4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603d60248201527f4d41585f4c4f434b5f4455524154494f4e2063616e6e6f74206265206d6f726560448201527f207468616e204d41585f4c4f434b5f4455524154494f4e5f4c494d49540000006064820152608401610aac565b600e8190556040518181527fcab2f3455b51b6ca5377e84fccd0f890b6f6ca36c02e18b6d36cb34f469fe4fe90602001610b7b565b6000612e0482611eea565b612e0d83612642565b610e159190614948565b60005474010000000000000000000000000000000000000000900460ff1615611bb6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610aac565b600260015403612f08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610aac565b6002600155565b33600090815260026020526040902082158015612f2c5750600082115b15612fcb576509184e72a0008211612fc6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f576974686472617720616d6f756e74206d75737420626520677265617465722060448201527f7468616e204d494e5f57495448445241575f414d4f554e5400000000000000006064820152608401610aac565b613036565b8054831115613036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f576974686472617720616d6f756e7420657863656564732062616c616e6365006044820152606401610aac565b428160050154106130a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f5374696c6c20696e206c6f636b000000000000000000000000000000000000006044820152606401610aac565b805483906000906130c06b204fce5e3e250261100000008461495b565b6130ca9190614972565b90506130d4613dd3565b506130de336140ff565b841580156130ec5750600084115b1561312d5760006130fb611bb8565b9050806006548661310c919061495b565b6131169190614972565b845490935083111561312757835492505b50613154565b82546b204fce5e3e2502611000000090613147908361495b565b6131519190614972565b91505b600060065483613162611bb8565b61316c919061495b565b6131769190614972565b90508284600001600082825461318c91906149ad565b9250508190555082600660008282546131a591906149ad565b90915550503360009081526004602052604090205460ff161580156131da575060155484600101546131d79190614948565b42105b15613254576000612710601354836131f2919061495b565b6131fc9190614972565b6008549091506132469073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a324368116911683613d78565b61325081836149ad565b9150505b61329573ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a32436163383613d78565b8354156132c7576006546132a7611bb8565b85546132b3919061495b565b6132bd9190614972565b60028501556132cf565b600060028501555b426003850155604080518281526020810185905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a2505050505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602052604090208054158061334b5750600084115b156133e5576509184e72a00084116133e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f4465706f73697420616d6f756e74206d7573742062652067726561746572207460448201527f68616e204d494e5f4445504f5349545f414d4f554e54000000000000000000006064820152608401610aac565b6005810154839042811061343f578515613423574260048401556008830154600c80546000906134169084906149ad565b9091555050600060088401555b600483015461343290826149ad565b61343c9083614948565b91505b84158061344f575062093a808210155b6134b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4d696e696d756d206c6f636b20706572696f64206973206f6e65207765656b006044820152606401610aac565b600e54821115613521576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4d6178696d756d206c6f636b20706572696f64206578636565646564000000006044820152606401610aac565b613529613dd3565b50600654600003613631576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a3243673ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156135c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135e591906149c0565b60085490915061362f9073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a324368116911683613d78565b505b61363a846140ff565b84156136a4574281101561366257426004840181905561365b908690614948565b905061366f565b61366c8582614948565b90505b6007830180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600583018190555b6000806000806136b2611bb8565b90508915613700576136fc73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a324361689308d613ab7565b8992505b8654158015906137145750600787015460ff165b1561378c576006548754613728908361495b565b6137329190614972565b915061373e8284614948565b925086600001546006600082825461375691906149ad565b909155505060008755600487015442900361378c5781876008018190555081600c60008282546137869190614948565b90915550505b600654156137bc5761379e82826149ad565b6006546137ab908561495b565b6137b59190614972565b93506137c0565b8293505b8660040154851115613940576000600f546011548960040154886137e491906149ad565b6137ee919061495b565b6137f89190614972565b9050600064e8d4a5100061380c878461495b565b6138169190614972565b90506138228187614948565b9550858960000160008282546138389190614948565b909155506000905064e8d4a51000613850878561495b565b61385a9190614972565b9050808a60060160008282546138709190614948565b9250508190555080600b60008282546138899190614948565b925050819055508c8a60080160008282546138a49190614948565b925050819055508c600c60008282546138bd9190614948565b909155505060088a01548a5460048c015473ffffffffffffffffffffffffffffffffffffffff8e16927f2b943276e5d747f6f7dd46d3b880d8874cb8d6b9b88ca1903990a2738e7dc7a1929091613914908d6149ad565b6040805193845260208401929092529082015242606082015260800160405180910390a250505061395a565b838760000160008282546139549190614948565b90915550505b60008a11806139695750600089115b15613975574260018801555b83600660008282546139879190614948565b9091555050600680880154905461399c611bb8565b89546139a8919061495b565b6139b29190614972565b6139bc91906149ad565b60028801554260038801819055604080518c8152602081018790529081018b9052606081019190915273ffffffffffffffffffffffffffffffffffffffff8916907f7162984403f6c73c8639375d45a9187dfd04602231bd8e587c415718b5f7e5f99060800160405180910390a250505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611bb6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aac565b60405173ffffffffffffffffffffffffffffffffffffffff8085166024830152831660448201526064810182905261188d9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526145b5565b60005474010000000000000000000000000000000000000000900460ff16611bb6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610aac565b613c1f613b93565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613d11612e17565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613c6a3390565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052613dce9084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401613b11565b505050565b600a546040517fddaf5c4c0000000000000000000000000000000000000000000000000000000081526004810191909152306024820152600090819073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003fefd06828689252a69207718985b9a78350561f169063ddaf5c4c90604401602060405180830381865afa158015613e6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e9191906149c0565b905080156140f7576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a3243673ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015613f26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f4a91906149c0565b600a546040517f441a3e700000000000000000000000000000000000000000000000000000000081526004810191909152600060248201529091507f0000000000000000000000003fefd06828689252a69207718985b9a78350561f73ffffffffffffffffffffffffffffffffffffffff169063441a3e7090604401600060405180830381600087803b158015613fe057600080fd5b505af1158015613ff4573d6000803e3d6000fd5b50506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600092507f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a3243673ffffffffffffffffffffffffffffffffffffffff1691506370a0823190602401602060405180830381865afa158015614085573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140a991906149c0565b905060006140b783836149ad565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a2949350505050565b600091505090565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020526040902080541561101657600781015460ff16156144505760008160060154600654836000015461414f611bb8565b614159919061495b565b6141639190614972565b61416d91906149ad565b90508160060154600b600082825461418591906149ad565b909155505060006006808401829055835481549092906141a69084906149ad565b909155505073ffffffffffffffffffffffffffffffffffffffff831660009081526005602052604090205460ff161580156141f1575042600d5483600501546141ef9190614948565b105b1561432e57600082600801548261420891906149ad565b90506000600d5484600501544261421f91906149ad565b61422991906149ad565b905060105481111561423a57506010545b60006010546014548361424d919061495b565b6142579190614972565b9050600064e8d4a5100061426b838661495b565b6142759190614972565b90506000614284600283614972565b6008549091506142ce9073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a324368116911683613d78565b61431c61dead6142de83856149ad565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a32436169190613d78565b61432682876149ad565b955050505050505b6000614338611bb8565b9050600060065460001461436e5761435083836149ad565b60065461435d908561495b565b6143679190614972565b9050614371565b50815b80845560068054829190600090614389908490614948565b90915550506005840154421115614449576007840180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600060048501819055600585018190556008850154600c8054919290916143ec9084906149ad565b9091555050600060088501556040805184815242602082015273ffffffffffffffffffffffffffffffffffffffff8716917ff7870c5b224cbc19873599e46ccfc7103934650509b1af0c3ce90138377c2004910160405180910390a25b5050505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604090205460ff1661101657600060065461448a611bb8565b8354614496919061495b565b6144a09190614972565b90508160000154600660008282546144b891906149ad565b9091555050600080835560028301546144d190836149ad565b90506000612710601254836144e6919061495b565b6144f09190614972565b9050801561454c5760085461453f9073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a324368116911683613d78565b61454981846149ad565b92505b6000614556611bb8565b9050600060065460001461458c5761456e85836149ad565b60065461457b908761495b565b6145859190614972565b905061458f565b50835b808655600680548291906000906145a7908490614948565b909155505050505050505050565b6000614617826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166146c49092919063ffffffff16565b905080516000148061463857508080602001905181019061463891906149d9565b613dce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610aac565b606061263a8484600085856000808673ffffffffffffffffffffffffffffffffffffffff1685876040516146f89190614a1a565b60006040518083038185875af1925050503d8060008114614735576040519150601f19603f3d011682016040523d82523d6000602084013e61473a565b606091505b5091509150611fee87838387606083156147dc5782516000036147d55773ffffffffffffffffffffffffffffffffffffffff85163b6147d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610aac565b508161263a565b61263a83838151156147f15781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aac9190614a36565b60006020828403121561483757600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff81168114610ea957600080fd5b60006020828403121561487257600080fd5b813561487d8161483e565b9392505050565b6000806040838503121561489757600080fd5b82356148a28161483e565b946020939093013593505050565b8015158114610ea957600080fd5b600080604083850312156148d157600080fd5b82356148dc8161483e565b915060208301356148ec816148b0565b809150509250929050565b6000806040838503121561490a57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610e1557610e15614919565b8082028115828204841417610e1557610e15614919565b6000826149a8577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b81810381811115610e1557610e15614919565b6000602082840312156149d257600080fd5b5051919050565b6000602082840312156149eb57600080fd5b815161487d816148b0565b60005b83811015614a115781810151838201526020016149f9565b50506000910152565b60008251614a2c8184602087016149f6565b9190910192915050565b6020815260008251806020840152614a558160408501602087016149f6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212209293578dc22638488111f38225b68cf0ab20de01345ccf974910cde2e2940c8664736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a324360000000000000000000000003fefd06828689252a69207718985b9a78350561f00000000000000000000000095fe70a9449d1e8276040d29a4fdf63b94246288000000000000000000000000b5c4d8671e03fba09d467c50fc51215b77ee54540000000000000000000000001d8ecef8fcaaa50f0326d9af768809a01aae61a90000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _token (address): 0x015628Ce9150Db1bCE2FBb717A09E846F8a32436
Arg [1] : _masterchefV2 (address): 0x3fefd06828689252A69207718985B9a78350561F
Arg [2] : _admin (address): 0x95Fe70a9449D1e8276040d29A4FDF63B94246288
Arg [3] : _treasury (address): 0xb5C4D8671E03FBA09D467C50FC51215b77eE5454
Arg [4] : _operator (address): 0x1d8ECEf8fcaaA50f0326D9af768809a01aaE61A9
Arg [5] : _pid (uint256): 0
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000015628ce9150db1bce2fbb717a09e846f8a32436
Arg [1] : 0000000000000000000000003fefd06828689252a69207718985b9a78350561f
Arg [2] : 00000000000000000000000095fe70a9449d1e8276040d29a4fdf63b94246288
Arg [3] : 000000000000000000000000b5c4d8671e03fba09d467c50fc51215b77ee5454
Arg [4] : 0000000000000000000000001d8ecef8fcaaa50f0326d9af768809a01aae61a9
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.