Overview
ETH Balance
0.220528885711512085 ETH
Eth Value
$791.10 (@ $3,587.28/ETH)Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,029 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Rebalance | 21419735 | 18 days ago | IN | 0 ETH | 0.00171538 | ||||
Rebalance | 21419415 | 18 days ago | IN | 0 ETH | 0.00167912 | ||||
Rebalance | 21419102 | 18 days ago | IN | 0 ETH | 0.00162562 | ||||
Rebalance | 21418787 | 18 days ago | IN | 0 ETH | 0.00190755 | ||||
Rebalance | 21418468 | 18 days ago | IN | 0 ETH | 0.00206346 | ||||
Rebalance | 21418151 | 18 days ago | IN | 0 ETH | 0.00299574 | ||||
Rebalance | 21417800 | 18 days ago | IN | 0 ETH | 0.00307827 | ||||
Rebalance | 21417478 | 18 days ago | IN | 0 ETH | 0.00396327 | ||||
Rebalance | 21417163 | 18 days ago | IN | 0 ETH | 0.00595947 | ||||
Rebalance | 21416848 | 18 days ago | IN | 0 ETH | 0.00479525 | ||||
Rebalance | 21416533 | 18 days ago | IN | 0 ETH | 0.00574236 | ||||
Rebalance | 21416217 | 18 days ago | IN | 0 ETH | 0.00616605 | ||||
Rebalance | 21415902 | 18 days ago | IN | 0 ETH | 0.00495308 | ||||
Rebalance | 21415585 | 18 days ago | IN | 0 ETH | 0.00336817 | ||||
Rebalance | 21415269 | 18 days ago | IN | 0 ETH | 0.00242507 | ||||
Rebalance | 21414953 | 18 days ago | IN | 0 ETH | 0.00300547 | ||||
Rebalance | 21414637 | 18 days ago | IN | 0 ETH | 0.00245103 | ||||
Rebalance | 21414309 | 18 days ago | IN | 0 ETH | 0.00223537 | ||||
Rebalance | 21413994 | 19 days ago | IN | 0 ETH | 0.00147049 | ||||
Rebalance | 21413679 | 19 days ago | IN | 0 ETH | 0.00168805 | ||||
Rebalance | 21413366 | 19 days ago | IN | 0 ETH | 0.00156916 | ||||
Rebalance | 21413053 | 19 days ago | IN | 0 ETH | 0.00189689 | ||||
Rebalance | 21412728 | 19 days ago | IN | 0 ETH | 0.00161222 | ||||
Rebalance | 21412412 | 19 days ago | IN | 0 ETH | 0.0020816 | ||||
Rebalance | 21412090 | 19 days ago | IN | 0 ETH | 0.00250761 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21419735 | 18 days ago | 0.01160678 ETH | ||||
21419415 | 18 days ago | 0.01221766 ETH | ||||
21419102 | 18 days ago | 0.0128607 ETH | ||||
21418787 | 18 days ago | 0.01353758 ETH | ||||
21418468 | 18 days ago | 0.01425008 ETH | ||||
21418151 | 18 days ago | 0.01500008 ETH | ||||
21417800 | 18 days ago | 0.01578956 ETH | ||||
21417478 | 18 days ago | 0.01662059 ETH | ||||
21417163 | 18 days ago | 0.01749536 ETH | ||||
21416848 | 18 days ago | 0.01841617 ETH | ||||
21416533 | 18 days ago | 0.01938544 ETH | ||||
21416217 | 18 days ago | 0.02040573 ETH | ||||
21415902 | 18 days ago | 0.02147972 ETH | ||||
21415585 | 18 days ago | 0.02261023 ETH | ||||
21415269 | 18 days ago | 0.02380024 ETH | ||||
21414953 | 18 days ago | 0.02505288 ETH | ||||
21414637 | 18 days ago | 0.02637146 ETH | ||||
21414309 | 18 days ago | 0.02775943 ETH | ||||
21413994 | 19 days ago | 0.02922045 ETH | ||||
21413679 | 19 days ago | 0.03075837 ETH | ||||
21413366 | 19 days ago | 0.03237723 ETH | ||||
21413053 | 19 days ago | 0.0340813 ETH | ||||
21412728 | 19 days ago | 0.03587505 ETH | ||||
21412412 | 19 days ago | 0.03776321 ETH | ||||
21412090 | 19 days ago | 0.03975075 ETH |
Loading...
Loading
Contract Name:
DRFLord
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.6.12; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol'; import "@openzeppelin/contracts/math/Math.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./uniswapv2/interfaces/IUniswapV2Factory.sol"; import "./uniswapv2/interfaces/IUniswapV2Router02.sol"; import "./uniswapv2/interfaces/IUniswapV2Pair.sol"; import "./uniswapv2/interfaces/IWETH.sol"; import "./interfaces/IDRF.sol"; contract DRFLord is ReentrancyGuard, Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; event Staked(address indexed account, uint256 ethAmount, uint256 lpAmount); event Withdrawn(address indexed account, uint256 drfAmount, uint256 ethAmount, uint256 lpAmount); event Claimed(address indexed account, uint256 ethAmount, uint256 lpAmount); event Halved(uint256 rewardAllocation); event Rebalanced(); event SwappedSDRF(uint256 amount); bool private _initialized; IUniswapV2Factory uniswapFactory; IUniswapV2Router02 uniswapRouter; address weth; address drf; address sdrf; address sdrfFarm; address payable devTreasury; address pairAddress; bool public isFarmOpen = false; uint256 public farmOpenTime; uint256 private constant MAX = uint256(- 1); uint256 public constant INITIAL_PRICE = 4000; uint256 public maxStake = 25 ether; uint256 public rewardAllocation; uint256 public rewardRate; uint256 public constant rewardDuration = 15 days; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; uint256 public finishTime; struct AccountInfo { uint256 balance; uint256 peakBalance; uint256 withdrawTime; uint256 reward; uint256 rewardPerTokenPaid; } /// @notice Account info mapping(address => AccountInfo) public accountInfos; /// @notice Peak LP token balance uint256 public peakPairTokenBalance; /// @dev Total staked token uint256 private _totalSupply; /// @notice Principal supply is used to generate perpetual yield /// @dev Used to give liquidity provider in liquidity pair rewards /// If this value is not zero, it means the principal is not used, and still exist in lord contract uint256 public principalSupply; /// @notice Marketing funds uint256 public marketingSupply; /// @notice Sale supply uint256 public saleSupply; /// @notice Lend supply uint256 public lendSupply; /// @notice Swappable DRF for sDRF uint256 public swappableSupply; /// @notice Deposited DRF from SDRF Farm uint256 public sdrfFarmDepositSupply; /// @notice Burned supply that locked forever uint256 public burnSupply; /// @notice Drift liquidity threshold uint256 public driftThreshold = 75; /// @notice Brake liquidity threshold uint256 public brakeThreshold = 50; /// @notice Last rebalance time uint256 public rebalanceTime; /// @notice rebalance waiting time uint256 public rebalanceWaitingTime = 1 hours; /// @notice Min balance to receive reward as rebalance caller uint256 public rebalanceRewardMinBalance = 1000e18; enum State {Normal, Drift, Brake} struct StateInfo { uint256 reflectFeeDenominator; uint256 buyTxFeeDenominator; uint256 sellTxFeeDenominator; uint256 buyBonusDenominator; uint256 sellFeeDenominator; uint256 rebalanceRewardDenominator; uint256 buyBackDenominator; } /// @notice Current state State public state; /// @notice State info mapping(State => StateInfo) public stateInfo; /// @notice Last state time uint256 public stateActivatedTime; /// @notice Token to pair with DRF when generating liquidity address public liquidityToken; /// @notice If set, LP provider for this liquidity will receive rewards. /// Usually DRF-PartnerToken address public liquidityPairToken; /// @dev Added to receive ETH when remove liquidity on Uniswap receive() external payable { } constructor(address _uniswapRouter, address _drf, address _sdrf, uint256 _farmOpenTime) public { uniswapRouter = IUniswapV2Router02(_uniswapRouter); uniswapFactory = IUniswapV2Factory(uniswapRouter.factory()); weth = uniswapRouter.WETH(); drf = _drf; sdrf = _sdrf; pairAddress = uniswapFactory.createPair(drf, weth); farmOpenTime = _farmOpenTime; devTreasury = msg.sender; liquidityToken = weth; // 5% from total supply principalSupply = 500000e18; // 5% from total supply marketingSupply = 500000e18; // Sale supply saleSupply = 4000000e18; // Lend supply for lp provider lendSupply = 2000000e18; // Farming allocation / 2 rewardAllocation = 1500000e18; // Approve uniswap router to spend weth approveUniswap(weth); // Approve uniswap router to spend drf approveUniswap(drf); // Approve uniswap router to spend lp token approveUniswap(pairAddress); // Initialize lastUpdateTime = farmOpenTime; finishTime = farmOpenTime.add(rewardDuration); rewardRate = rewardAllocation.div(rewardDuration); rebalanceTime = farmOpenTime; } /* ========== Modifiers ========== */ modifier onlySDRFFarm { require(msg.sender == sdrfFarm, 'Only farm'); _; } modifier farmOpen { require(isFarmOpen, 'Farm not open'); _; } modifier checkOpenFarm() { require(farmOpenTime <= block.timestamp, 'Farm not open'); if (!isFarmOpen) { // Set flag isFarmOpen = true; } _; } modifier checkHalving() { if (block.timestamp >= finishTime) { // Halved reward rewardAllocation = rewardAllocation.div(2); // Calculate reward rate rewardRate = rewardAllocation.div(rewardDuration); // Set finish time finishTime = block.timestamp.add(rewardDuration); // Set last update time lastUpdateTime = block.timestamp; // Emit event emit Halved(rewardAllocation); } _; } modifier updateReward(address account) { rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardApplicable(); if (account != address(0)) { accountInfos[account].reward = earned(account); accountInfos[account].rewardPerTokenPaid = rewardPerTokenStored; } _; } /* ========== Only Owner ========== */ function init(address _sdrfFarm) external onlyOwner { // Make sure we can only init one time if (!_initialized) { // Set flag _initialized = true; // Set farm sdrfFarm = _sdrfFarm; // 1.5% reflect, 0.5% buy reserve, 0.5% sell reserve, 4% buy bonus, 2% sell fee, (5% lock liquidity reward from reserve), 12.5% buy back setStateInfo(State.Normal, 67, 200, 200, 25, 50, 20, 8, false); // 1% reflect, 1% buy reserve, 1% sell reserve, 6.25% buy bonus, 2% sell fee, (4% lock liquidity reward from reserve), 20% buy back setStateInfo(State.Drift, 100, 100, 100, 16, 50, 25, 5, false); // 1% reflect, 1% buy reserve, 5% sell reserve, 8% buy bonus, 2% sell fee, (3% lock liquidity reward from reserve), 50% buy back setStateInfo(State.Brake, 100, 100, 20, 12, 50, 33, 2, false); // Apply fee _applyStateFee(); } } function setStateInfo( State _state, uint256 _reflectFeeDenominator, uint256 _buyTxFeeDenominator, uint256 _sellTxFeeDenominator, uint256 _buyBonusDenominator, uint256 _sellFeeDenominator, uint256 _rebalanceRewardDenominator, uint256 _buyBackDenominator, bool applyImmediately ) public onlyOwner { // Make sure fee is valid require(_reflectFeeDenominator >= 10, 'Invalid denominator'); require(_buyTxFeeDenominator >= 10, 'Invalid denominator'); require(_sellTxFeeDenominator >= 10, 'Invalid denominator'); require(_buyBonusDenominator >= 10, 'Invalid denominator'); require(_sellFeeDenominator >= 10, 'Invalid denominator'); require(_rebalanceRewardDenominator >= 10, 'Invalid denominator'); require(_buyBackDenominator > 0, 'Invalid denominator'); stateInfo[_state].reflectFeeDenominator = _reflectFeeDenominator; stateInfo[_state].buyTxFeeDenominator = _buyTxFeeDenominator; stateInfo[_state].sellTxFeeDenominator = _sellTxFeeDenominator; stateInfo[_state].buyBonusDenominator = _buyBonusDenominator; stateInfo[_state].sellFeeDenominator = _sellFeeDenominator; stateInfo[_state].rebalanceRewardDenominator = _rebalanceRewardDenominator; stateInfo[_state].buyBackDenominator = _buyBackDenominator; if (applyImmediately) { _applyStateFee(); } } function setMaxStake(uint256 _maxStake) external onlyOwner { maxStake = _maxStake; } function setStateThreshold(uint256 _driftThreshold, uint256 _brakeThreshold) external onlyOwner { driftThreshold = _driftThreshold; brakeThreshold = _brakeThreshold; } function setRebalanceWaitingTime(uint256 _waitingTime) external onlyOwner { rebalanceWaitingTime = _waitingTime; } function setRebalanceRewardMinBalance(uint256 _minBalance) external onlyOwner { rebalanceRewardMinBalance = _minBalance; } function setLiquidityToken(address _liquidityToken) external onlyOwner { liquidityToken = _liquidityToken; } function setLiquidityPairAddress(address _liquidityPairToken) external onlyOwner { liquidityPairToken = _liquidityPairToken; } function depositPrincipalSupply() public onlyOwner { if (principalSupply > 0) { IDRF(drf).depositPrincipalSupply(principalSupply); principalSupply = 0; } } function withdrawPrincipalSupply() public onlyOwner { if (principalSupply == 0) { principalSupply = IDRF(drf).withdrawPrincipalSupply(); } } function withdrawMarketingSupply(address recipient, uint256 amount) external onlyOwner { require(marketingSupply > 0, 'No supply'); marketingSupply = marketingSupply.sub(amount); IERC20(drf).transfer(recipient, amount); } function approveUniswap(address token) public onlyOwner { IERC20(token).approve(address(uniswapRouter), MAX); } function connectLiquidityToken(address _liquidityToken, address _liquidityPairToken) external onlyOwner { liquidityToken = _liquidityToken; liquidityPairToken = _liquidityPairToken; depositPrincipalSupply(); // Approve uniswap to spend liquidity token approveUniswap(liquidityToken); approveUniswap(liquidityPairToken); } function disconnectLiquidityToken() external onlyOwner { liquidityToken = weth; liquidityPairToken = address(0); withdrawPrincipalSupply(); } /* ========== Only SDRF Farm ========== */ function depositFromSDRFFarm(address sender, uint256 amount) external onlySDRFFarm { // Transfer from sender IERC20(drf).transferFrom(sender, address(this), amount); // Increase deposit sdrfFarmDepositSupply = sdrfFarmDepositSupply.add(amount); } function redeemFromSDRFFarm(address recipient, uint256 amount) external onlySDRFFarm { require(sdrfFarmDepositSupply >= amount, 'Insufficient supply'); // Reduce first sdrfFarmDepositSupply = sdrfFarmDepositSupply.sub(amount); // Transfer to recipient IERC20(drf).transfer(recipient, amount); } /* ========== Mutative ========== */ /// @notice Stake ETH. function stake() external payable nonReentrant checkOpenFarm checkHalving updateReward(msg.sender) { _stake(msg.sender, msg.value); } /// @notice Stake ETH. function stakeTo(address recipient) external payable nonReentrant checkOpenFarm checkHalving updateReward(msg.sender) { _stake(recipient, msg.value); } /// @notice Withdraw LP. function withdraw(uint256 amount) external nonReentrant farmOpen checkHalving updateReward(msg.sender) { _withdraw(msg.sender, msg.sender, amount); } /// @notice Withdraw LP. function withdrawTo(address payable recipient, uint256 amount) external nonReentrant farmOpen checkHalving updateReward(msg.sender) { _withdraw(msg.sender, recipient, amount); } /// @notice Claim reward function claimReward() external nonReentrant farmOpen checkHalving updateReward(msg.sender) returns (uint256 net, uint256 tax) { (net, tax) = _claimReward(msg.sender, msg.sender); } /// @notice Claim reward function claimRewardTo(address recipient) external nonReentrant farmOpen checkHalving updateReward(msg.sender) returns (uint256 net, uint256 tax) { (net, tax) = _claimReward(msg.sender, recipient); } /// @notice Rebalance function rebalance() external { // Let's wait before releasing liquidity require(rebalanceTime.add(rebalanceWaitingTime) <= block.timestamp, 'Too soon'); // Update time rebalanceTime = block.timestamp; // If there is no principal in this contract, it means the principal is actually being used if (principalSupply == 0) { // Distribute principal rewards for liquidity provider or reserve supply IDRF(drf).distributePrincipalRewards(liquidityPairToken); } // Get reserve supply to be locked as liquidity uint256 liquiditySupply = IDRF(drf).reserveSupply(); // If there is supply if (liquiditySupply > 0) { // If sender has required DRF, give reward if (IERC20(drf).balanceOf(msg.sender) >= rebalanceRewardMinBalance) { // Calc reward for msg sender uint256 senderReward = liquiditySupply.div(stateInfo[state].rebalanceRewardDenominator); // Reduce first liquiditySupply = liquiditySupply.sub(senderReward); // Send reward IERC20(drf).transfer(msg.sender, senderReward); } // If we are not in brake state, we can provide other token liquidity // otherwise enforce DRF-ETH address token = state != State.Brake ? liquidityToken : weth; uint256 drfDust; // Add liquidity DRF-Token. Default is DRF-WETH if (token == weth) { (drfDust,) = _addLiquidityDRFETH(liquiditySupply); // Adjust reserve supply IDRF(drf).setReserveSupply(drfDust); // Check if should change state _checkState(); } else { uint256 tokenDust; (drfDust, tokenDust,) = _addLiquidityToken(drf, token, liquiditySupply); // Adjust reserve supply IDRF(drf).setReserveSupply(drfDust); // Send dust out IERC20(liquidityToken).transfer(devTreasury, tokenDust); } } // If we have good amount of ETH if (address(this).balance > 0.01 ether) { // Buy back and burn _buyBack(); } emit Rebalanced(); } /// @notice Swap SDRF to DRF function swap(uint256 amount) external { require(state != State.Brake, 'Swap disabled'); require(swappableSupply >= amount, 'Insufficient supply'); // Reduce swappable supply swappableSupply = swappableSupply.sub(amount); // Receive sDRF IERC20(sdrf).transferFrom(msg.sender, address(this), amount); // Transfer DRF IERC20(drf).transfer(msg.sender, amount); // Emit event emit SwappedSDRF(amount); } /* ========== Private ========== */ function _stake(address recipient, uint256 ethAmount) private { require(ethAmount > 0, 'Cannot stake 0'); require(ethAmount <= maxStake, 'Max stake reached'); // 10% compensation fee uint256 fee = ethAmount.div(10); ethAmount = ethAmount.sub(fee); devTreasury.transfer(fee); uint256 pairETHBalance = IERC20(weth).balanceOf(pairAddress); uint256 pairDRFBalance = IERC20(drf).balanceOf(pairAddress); // If eth amount = 0 then set initial price uint256 drfAmount = pairETHBalance == 0 ? ethAmount.mul(INITIAL_PRICE) : ethAmount.mul(pairDRFBalance).div(pairETHBalance); // If there is still sale supply if (saleSupply > 0) { // Get sale amount uint256 saleAmount = drfAmount > saleSupply ? saleSupply : drfAmount; // Reduce sale supply saleSupply = saleSupply.sub(saleAmount); // Send DRF to recipient IERC20(drf).transfer(recipient, saleAmount); } drfAmount = drfAmount.div(2); uint256 pairTokenAmount; if (lendSupply >= drfAmount) { // Use half of eth ethAmount = ethAmount.div(2); // Reduce DRF can be lend lendSupply = lendSupply.sub(drfAmount); // Add liquidity in uniswap (,, pairTokenAmount) = uniswapRouter.addLiquidityETH{value : ethAmount}(drf, drfAmount, 0, 0, address(this), MAX); } else { uint256 wethDust; IWETH(weth).deposit{value : ethAmount}(); (wethDust,, pairTokenAmount) = _addLiquidityToken(weth, drf, ethAmount); IWETH(weth).withdraw(wethDust); } // Add to balance accountInfos[recipient].balance = accountInfos[recipient].balance.add(pairTokenAmount); // Set peak balance if (accountInfos[recipient].balance > accountInfos[recipient].peakBalance) { accountInfos[recipient].peakBalance = accountInfos[recipient].balance; } // Set stake timestamp as withdraw time to prevent withdraw immediately after first staking if (accountInfos[recipient].withdrawTime == 0) { accountInfos[recipient].withdrawTime = block.timestamp; } // Increase total supply _totalSupply = _totalSupply.add(pairTokenAmount); // Set peak pair token balance uint256 pairTokenBalance = IERC20(pairAddress).balanceOf(address(this)); if (pairTokenBalance > peakPairTokenBalance) { peakPairTokenBalance = pairTokenBalance; } // Check if should change state _checkState(); emit Staked(recipient, ethAmount, pairTokenAmount); } function _withdraw(address sender, address payable recipient, uint256 amount) private { require(state != State.Brake, 'Withdraw disabled'); require(amount > 0 && amount <= maxWithdrawOf(sender), 'Invalid withdraw'); require(amount <= accountInfos[sender].balance, 'Insufficient balance'); // Reduce balance accountInfos[sender].balance = accountInfos[sender].balance.sub(amount); // Set withdraw time accountInfos[sender].withdrawTime = block.timestamp; // Reduce total supply _totalSupply = _totalSupply.sub(amount); // Remove liquidity in uniswap (uint256 drfAmount, uint256 ethAmount) = uniswapRouter.removeLiquidity(drf, weth, amount, 0, 0, address(this), MAX); // Send DRF to recipient IERC20(drf).transfer(recipient, drfAmount); // Withdraw ETH and send to recipient IWETH(weth).withdraw(ethAmount); recipient.transfer(ethAmount); // Check if should change state _checkState(); emit Withdrawn(recipient, drfAmount, ethAmount, amount); } function _claimReward(address sender, address recipient) private returns (uint256 net, uint256 tax) { uint256 reward = accountInfos[sender].reward; require(reward > 0, 'No reward'); // Reduce reward first accountInfos[sender].reward = 0; // Calculate tax and net tax = taxForReward(reward); net = reward.sub(tax); // Add tax to swappable reserve swappableSupply = swappableSupply.add(tax); // Send drf as reward IDRF(drf).transfer(recipient, net); emit Claimed(recipient, net, tax); } /// @notice Check if should change state based on liquidity function _checkState() private { uint256 pairTokenBalance = IERC20(pairAddress).balanceOf(address(this)); uint256 baseThreshold = peakPairTokenBalance.div(100); uint256 driftStateThreshold = baseThreshold.mul(driftThreshold); uint256 brakeStateThreshold = baseThreshold.mul(brakeThreshold); // If drift state already run for 1 day, and liquidity high enough if (state == State.Drift && stateActivatedTime.add(1 days) <= block.timestamp && pairTokenBalance > driftStateThreshold) { state = State.Normal; stateActivatedTime = block.timestamp; _applyStateFee(); } // If brake state already run for 1 day, and liquidity high enough else if (state == State.Brake && stateActivatedTime.add(1 days) <= block.timestamp && pairTokenBalance > brakeStateThreshold) { state = State.Drift; stateActivatedTime = block.timestamp; _applyStateFee(); } // If liquidity reached drift state from normal state else if (state == State.Normal && pairTokenBalance <= driftStateThreshold) { state = State.Drift; stateActivatedTime = block.timestamp; _applyStateFee(); } // If liquidity reached brake state from drift state else if (state == State.Drift && pairTokenBalance <= brakeStateThreshold) { state = State.Brake; stateActivatedTime = block.timestamp; _applyStateFee(); } } /// @notice Apply fee to DRF token function _applyStateFee() private { IDRF(drf).setFee( stateInfo[state].reflectFeeDenominator, stateInfo[state].buyTxFeeDenominator, stateInfo[state].sellTxFeeDenominator, stateInfo[state].buyBonusDenominator, stateInfo[state].sellFeeDenominator ); } /// @notice Add liquidity to DRF-ETH pair using DRF amount function _addLiquidityDRFETH(uint256 drfAmount) private returns (uint256 drfDust, uint256 ethDust) { uint256 drfToSwapForETH = drfAmount.div(2); uint256 drfToAddLiquidity = drfAmount.sub(drfToSwapForETH); uint256 ethBalanceBeforeSwap = address(this).balance; // Swap path address[] memory path = new address[](2); path[0] = drf; path[1] = weth; // Swap DRF for ETH uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( drfToSwapForETH, 0, path, address(this), MAX ); uint256 ethToAddLiquidity = address(this).balance.sub(ethBalanceBeforeSwap); // Add liquidity (uint256 drfUsed, uint256 ethUsed,) = uniswapRouter.addLiquidityETH{value : ethToAddLiquidity}( drf, drfToAddLiquidity, 0, 0, address(this), MAX ); drfDust = drfAmount.sub(drfToSwapForETH); drfDust = drfDust > drfUsed ? drfDust.sub(drfUsed) : 0; ethDust = ethToAddLiquidity > ethUsed ? ethToAddLiquidity.sub(ethUsed) : 0; } /// @notice Add liquidity using token A amount function _addLiquidityToken(address tokenA, address tokenB, uint256 tokenAAmount) private returns (uint256 tokenADust, uint256 tokenBDust, uint256 pairTokenAmount) { uint256 tokenAToSwap = tokenAAmount.div(2); uint256 tokenAToAddLiquidity = tokenAAmount.sub(tokenAToSwap); uint256 tokenBBalanceBeforeSwap = IERC20(tokenB).balanceOf(address(this)); // Swap path address[] memory path = new address[](2); path[0] = tokenA; path[1] = tokenB; // Swap DRF for token uniswapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens( tokenAToSwap, 0, path, address(this), MAX ); uint256 tokenBToAddLiquidity = IERC20(tokenB).balanceOf(address(this)).sub(tokenBBalanceBeforeSwap); // Add liquidity (uint256 tokenAUsed, uint256 tokenBUsed, uint256 liquidity) = uniswapRouter.addLiquidity( tokenA, tokenB, tokenAToAddLiquidity, tokenBToAddLiquidity, 0, 0, address(this), MAX ); tokenADust = tokenAAmount.sub(tokenAToSwap); tokenADust = tokenADust > tokenAUsed ? tokenADust.sub(tokenAUsed) : 0; tokenBDust = tokenBToAddLiquidity > tokenBUsed ? tokenBToAddLiquidity.sub(tokenBUsed) : 0; pairTokenAmount = liquidity; } /// @notice Buy back and burn DRF function _buyBack() private { // Swap path address[] memory path = new address[](2); path[0] = weth; path[1] = drf; // Use ETH to market buy uint[] memory amounts = uniswapRouter.swapExactETHForTokens{value : address(this).balance.div(stateInfo[state].buyBackDenominator)} (0, path, address(this), MAX); // Add as burned supply burnSupply = burnSupply.add(amounts[1]); } /* ========== View ========== */ /// @notice Get staked token total supply function totalSupply() external view returns (uint256) { return _totalSupply; } /// @notice Get staked token balance function balanceOf(address account) public view returns (uint256) { return accountInfos[account].balance; } /// @notice Get account max withdraw function maxWithdrawOf(address account) public view returns (uint256) { // Get how many day already passes uint256 dayCount = block.timestamp.sub(accountInfos[account].withdrawTime).add(1).div(1 days); // If already 10 days passes if (dayCount >= 10) { return Math.min(accountInfos[account].peakBalance, balanceOf(account)); } else { return Math.min(accountInfos[account].peakBalance.div(10).mul(dayCount), balanceOf(account)); } } /// @notice Get reward tax percentage function rewardTaxPercentage() public view returns (uint256) { return state == State.Brake ? 80 : 10; } /// @notice Get claim reward tax function taxForReward(uint256 reward) public view returns (uint256 tax) { tax = reward.div(100).mul(rewardTaxPercentage()); } function lastTimeRewardApplicable() public view returns (uint256) { return Math.min(block.timestamp, finishTime); } function rewardPerToken() public view returns (uint256) { if (_totalSupply == 0) { return rewardPerTokenStored; } return rewardPerTokenStored.add( lastTimeRewardApplicable().sub(lastUpdateTime).mul(rewardRate).mul(1e18).div(_totalSupply) ); } function earned(address account) public view returns (uint256) { return accountInfos[account].balance.mul( rewardPerToken().sub(accountInfos[account].rewardPerTokenPaid) ) .div(1e18) .add(accountInfos[account].reward); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../GSN/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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: Unlicensed pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function migrator() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; function setMigrator(address) external; }
// SPDX-License-Identifier: Unlicensed pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: Unlicensed pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
// SPDX-License-Identifier: Unlicensed pragma solidity >=0.5.0; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; }
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.6.12; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; interface IDRF is IERC20 { function reserveSupply() external returns (uint256); function bonusSupply() external returns (uint256); function lockedSupply() external returns (uint256); function setFee(uint256 _reflectFeeDenominator, uint256 _buyTxFeeDenominator, uint256 _sellTxFeeDenominator, uint256 _buyBonusDenominator, uint256 _sellFeeDenominator) external; function setReserveSupply(uint256 amount) external; function depositPrincipalSupply(uint256 amount) external; function withdrawPrincipalSupply() external returns(uint256); function distributePrincipalRewards(address _pairAddress) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: Unlicensed pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_uniswapRouter","type":"address"},{"internalType":"address","name":"_drf","type":"address"},{"internalType":"address","name":"_sdrf","type":"address"},{"internalType":"uint256","name":"_farmOpenTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpAmount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardAllocation","type":"uint256"}],"name":"Halved","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":"Rebalanced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpAmount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SwappedSDRF","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"drfAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"INITIAL_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountInfos","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"peakBalance","type":"uint256"},{"internalType":"uint256","name":"withdrawTime","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"approveUniswap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"brakeThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[{"internalType":"uint256","name":"net","type":"uint256"},{"internalType":"uint256","name":"tax","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"claimRewardTo","outputs":[{"internalType":"uint256","name":"net","type":"uint256"},{"internalType":"uint256","name":"tax","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_liquidityToken","type":"address"},{"internalType":"address","name":"_liquidityPairToken","type":"address"}],"name":"connectLiquidityToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositFromSDRFFarm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositPrincipalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disconnectLiquidityToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"driftThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmOpenTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finishTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_sdrfFarm","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isFarmOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lendSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityPairToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"maxWithdrawOf","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":"peakPairTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"principalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebalanceRewardMinBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebalanceTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebalanceWaitingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeemFromSDRFFarm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTaxPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sdrfFarmDepositSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_liquidityPairToken","type":"address"}],"name":"setLiquidityPairAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_liquidityToken","type":"address"}],"name":"setLiquidityToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxStake","type":"uint256"}],"name":"setMaxStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minBalance","type":"uint256"}],"name":"setRebalanceRewardMinBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_waitingTime","type":"uint256"}],"name":"setRebalanceWaitingTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum DRFLord.State","name":"_state","type":"uint8"},{"internalType":"uint256","name":"_reflectFeeDenominator","type":"uint256"},{"internalType":"uint256","name":"_buyTxFeeDenominator","type":"uint256"},{"internalType":"uint256","name":"_sellTxFeeDenominator","type":"uint256"},{"internalType":"uint256","name":"_buyBonusDenominator","type":"uint256"},{"internalType":"uint256","name":"_sellFeeDenominator","type":"uint256"},{"internalType":"uint256","name":"_rebalanceRewardDenominator","type":"uint256"},{"internalType":"uint256","name":"_buyBackDenominator","type":"uint256"},{"internalType":"bool","name":"applyImmediately","type":"bool"}],"name":"setStateInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_driftThreshold","type":"uint256"},{"internalType":"uint256","name":"_brakeThreshold","type":"uint256"}],"name":"setStateThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"stakeTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"enum DRFLord.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stateActivatedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum DRFLord.State","name":"","type":"uint8"}],"name":"stateInfo","outputs":[{"internalType":"uint256","name":"reflectFeeDenominator","type":"uint256"},{"internalType":"uint256","name":"buyTxFeeDenominator","type":"uint256"},{"internalType":"uint256","name":"sellTxFeeDenominator","type":"uint256"},{"internalType":"uint256","name":"buyBonusDenominator","type":"uint256"},{"internalType":"uint256","name":"sellFeeDenominator","type":"uint256"},{"internalType":"uint256","name":"rebalanceRewardDenominator","type":"uint256"},{"internalType":"uint256","name":"buyBackDenominator","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swappableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"taxForReward","outputs":[{"internalType":"uint256","name":"tax","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawMarketingSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawPrincipalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526009805460ff60a01b1916905568015af1d78b58c40000600b55604b601b556032601c55610e10601e55683635c9adc5dea00000601f553480156200004857600080fd5b5060405162004fe138038062004fe1833981810160405260808110156200006e57600080fd5b50805160208201516040830151606090930151600160009081559293919262000096620003cb565b600180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600380546001600160a01b0319166001600160a01b0386811691909117918290556040805163c45a015560e01b81529051929091169163c45a015591600480820192602092909190829003018186803b1580156200014157600080fd5b505afa15801562000156573d6000803e3d6000fd5b505050506040513d60208110156200016d57600080fd5b5051600280546001600160a01b0319166001600160a01b03928316179055600354604080516315ab88c960e31b81529051919092169163ad5c4648916004808301926020929190829003018186803b158015620001c957600080fd5b505afa158015620001de573d6000803e3d6000fd5b505050506040513d6020811015620001f557600080fd5b5051600480546001600160a01b03199081166001600160a01b039384161780835560058054831688861617908190556006805490931687861617909255600254604080516364e329cb60e11b81529386169484019490945290841660248301529151919092169163c9c653969160448083019260209291908290030181600087803b1580156200028457600080fd5b505af115801562000299573d6000803e3d6000fd5b505050506040513d6020811015620002b057600080fd5b5051600980546001600160a01b039283166001600160a01b031991821617909155600a8390556008805482163317905560045460238054909216921691821790556969e10de76676d080000060148190556015556a034f086f3b33b6840000006016556a01a784379d99db420000006017556a013da329b6336471800000600c556200033c90620003cf565b60055462000353906001600160a01b0316620003cf565b6009546200036a906001600160a01b0316620003cf565b600a54600e81905550620003926213c680600a54620004c560201b62002f391790919060201c565b601081905550620003b76213c680600c546200052760201b62002f9c1790919060201c565b600d555050600a54601d5550620006189050565b3390565b620003d9620003cb565b6001546001600160a01b039081169116146200043c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040805163095ea7b360e01b81526001600160a01b039283166004820152600019602482015290519183169163095ea7b3916044808201926020929091908290030181600087803b1580156200049457600080fd5b505af1158015620004a9573d6000803e3d6000fd5b505050506040513d6020811015620004c057600080fd5b505050565b60008282018381101562000520576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60006200052083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506200057160201b60201c565b60008183620006015760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620005c5578181015183820152602001620005ab565b50505050905090810190601f168015620005f35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816200060e57fe5b0495945050505050565b6149b980620006286000396000f3fe6080604052600436106103c65760003560e01c806387cad0bf116101f2578063c8f33c911161010d578063df136d65116100a0578063f520e7e51161006f578063f520e7e514610c64578063f7eab29914610c79578063f82f2ccf14610c8e578063fee778f914610ca3576103cd565b8063df136d6514610bdd578063e83bf65614610bf2578063ea1b28e014610c1c578063f2fde38b14610c31576103cd565b8063d1343f5e116100dc578063d1343f5e14610b54578063d49f4bac14610b69578063dd52c6dd14610b8f578063de63378614610ba4576103cd565b8063c8f33c9114610ae2578063cb418a8e14610af7578063cd3daf9d14610b0c578063cdc48eb714610b21576103cd565b8063a96af0f411610185578063bcaf6f9211610154578063bcaf6f9214610a49578063c19d93fb14610a82578063c2afbd8c14610ab8578063c834000b14610acd576103cd565b8063a96af0f4146109be578063b03e6478146109d3578063b6333596146109e8578063b88a802f14610a1b576103cd565b806390f15ec9116101c157806390f15ec91461093757806391a8e0ca1461096a57806394b918de1461097f5780639b1e3479146109a9576103cd565b806387cad0bf1461089a57806388efa22a146108f85780638da5cb5b1461090d5780638ebd2c0614610922576103cd565b80635e4eb6de116102e257806370a08231116102755780637c5e2795116102445780637c5e2795146108315780637d7c2a1c1461084657806380faa57d1461085b57806386f73f5414610870576103cd565b806370a082311461079b578063715018a6146107ce578063731a8a0a146107e35780637b0a47ee1461081c576103cd565b806367739387116102b157806367739387146106f85780636a585ebf1461070d5780636b1f8b80146107365780636fc1483714610771576103cd565b80635e4eb6de146106585780635f87e04c1461066d578063614849f2146106ce578063624bb58f146106e3576103cd565b80632e1a7d4d1161035a57806343cd8f7e1161032957806343cd8f7e146105ca578063459e06f5146105fb5780634f922a9e146106105780635958611e14610643576103cd565b80632e1a7d4d1461051e57806334d54f37146105485780633a4b66f1146105ad578063400e6f71146105b5576103cd565b806318160ddd1161039657806318160ddd1461046d57806319ab453c14610482578063205c2878146104b55780632b1840ef146104ee576103cd565b80628cc262146103d2578063117ee15714610417578063118080181461042c57806315634b3b14610458576103cd565b366103cd57005b600080fd5b3480156103de57600080fd5b50610405600480360360208110156103f557600080fd5b50356001600160a01b0316610cd6565b60408051918252519081900360200190f35b34801561042357600080fd5b50610405610d55565b34801561043857600080fd5b506104566004803603602081101561044f57600080fd5b5035610d5b565b005b34801561046457600080fd5b50610405610db8565b34801561047957600080fd5b50610405610dbe565b34801561048e57600080fd5b50610456600480360360208110156104a557600080fd5b50356001600160a01b0316610dc5565b3480156104c157600080fd5b50610456600480360360408110156104d857600080fd5b506001600160a01b038135169060200135610eb3565b3480156104fa57600080fd5b506104566004803603604081101561051157600080fd5b508035906020013561101e565b34801561052a57600080fd5b506104566004803603602081101561054157600080fd5b5035611081565b34801561055457600080fd5b506105756004803603602081101561056b57600080fd5b503560ff166111eb565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b610456611228565b3480156105c157600080fd5b506104056113ae565b3480156105d657600080fd5b506105df6113b4565b604080516001600160a01b039092168252519081900360200190f35b34801561060757600080fd5b506104056113c3565b34801561061c57600080fd5b506104566004803603602081101561063357600080fd5b50356001600160a01b03166113c9565b34801561064f57600080fd5b50610405611443565b34801561066457600080fd5b50610405611449565b34801561067957600080fd5b50610456600480360361012081101561069157600080fd5b5060ff8135169060208101359060408101359060608101359060808101359060a08101359060c08101359060e0810135906101000135151561144f565b3480156106da57600080fd5b50610456611829565b3480156106ef57600080fd5b506104056118f9565b34801561070457600080fd5b506104056118ff565b34801561071957600080fd5b50610722611905565b604080519115158252519081900360200190f35b34801561074257600080fd5b506104566004803603604081101561075957600080fd5b506001600160a01b0381358116916020013516611915565b34801561077d57600080fd5b506104566004803603602081101561079457600080fd5b50356119d3565b3480156107a757600080fd5b50610405600480360360208110156107be57600080fd5b50356001600160a01b0316611a30565b3480156107da57600080fd5b50610456611a4b565b3480156107ef57600080fd5b506104566004803603604081101561080657600080fd5b506001600160a01b038135169060200135611aed565b34801561082857600080fd5b50610405611c1e565b34801561083d57600080fd5b50610405611c24565b34801561085257600080fd5b50610456611c2a565b34801561086757600080fd5b506104056120ed565b34801561087c57600080fd5b506104056004803603602081101561089357600080fd5b5035612100565b3480156108a657600080fd5b506108cd600480360360208110156108bd57600080fd5b50356001600160a01b031661211e565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b34801561090457600080fd5b5061045661214d565b34801561091957600080fd5b506105df6121d7565b34801561092e57600080fd5b506104566121e6565b34801561094357600080fd5b506104566004803603602081101561095a57600080fd5b50356001600160a01b03166122c6565b34801561097657600080fd5b506104056123a4565b34801561098b57600080fd5b50610456600480360360208110156109a257600080fd5b50356123aa565b3480156109b557600080fd5b50610405612599565b3480156109ca57600080fd5b506104056125c5565b3480156109df57600080fd5b506104056125cb565b3480156109f457600080fd5b5061040560048036036020811015610a0b57600080fd5b50356001600160a01b03166125d1565b348015610a2757600080fd5b50610a30612684565b6040805192835260208301919091528051918290030190f35b348015610a5557600080fd5b5061045660048036036040811015610a6c57600080fd5b506001600160a01b0381351690602001356127f6565b348015610a8e57600080fd5b50610a976128f4565b60405180826002811115610aa757fe5b815260200191505060405180910390f35b348015610ac457600080fd5b506104056128fd565b348015610ad957600080fd5b50610405612903565b348015610aee57600080fd5b50610405612909565b348015610b0357600080fd5b5061040561290f565b348015610b1857600080fd5b50610405612915565b348015610b2d57600080fd5b50610a3060048036036020811015610b4457600080fd5b50356001600160a01b031661295d565b348015610b6057600080fd5b50610405612ad0565b61045660048036036020811015610b7f57600080fd5b50356001600160a01b0316612ad6565b348015610b9b57600080fd5b50610405612c54565b348015610bb057600080fd5b5061045660048036036040811015610bc757600080fd5b506001600160a01b038135169060200135612c5a565b348015610be957600080fd5b50610405612d41565b348015610bfe57600080fd5b5061045660048036036020811015610c1557600080fd5b5035612d47565b348015610c2857600080fd5b50610405612da4565b348015610c3d57600080fd5b5061045660048036036020811015610c5457600080fd5b50356001600160a01b0316612daa565b348015610c7057600080fd5b50610405612ea3565b348015610c8557600080fd5b50610405612eaa565b348015610c9a57600080fd5b506105df612eb0565b348015610caf57600080fd5b5061045660048036036020811015610cc657600080fd5b50356001600160a01b0316612ebf565b6001600160a01b03811660009081526011602052604081206003810154600490910154610d4d9190610d4790670de0b6b3a764000090610d4190610d2290610d1c612915565b90612fde565b6001600160a01b03881660009081526011602052604090205490613020565b90612f9c565b90612f39565b90505b919050565b60175481565b610d63613079565b6001546001600160a01b03908116911614610db3576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b601f55565b60125481565b6013545b90565b610dcd613079565b6001546001600160a01b03908116911614610e1d576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b600154600160a01b900460ff16610eb0576001805460ff60a01b1916600160a01b179055600780546001600160a01b0383166001600160a01b0319909116179055610e766000604360c88060196032601460088761144f565b610e8f600160648060646010603260196005600061144f565b610ea860026064806014600c603260216002600061144f565b610eb061307d565b50565b60026000541415610ef9576040805162461bcd60e51b815260206004820152601f60248201526000805160206148fd833981519152604482015290519081900360640190fd5b6002600055600954600160a01b900460ff16610f4c576040805162461bcd60e51b815260206004820152600d60248201526c2330b936903737ba1037b832b760991b604482015290519081900360640190fd5b6010544210610fb057600c54610f63906002612f9c565b600c819055610f75906213c680612f9c565b600d55610f85426213c680612f39565b60105542600e55600c5460408051918252516000805160206148dd8339815191529181900360200190a15b33610fb9612915565b600f55610fc46120ed565b600e556001600160a01b0381161561100957610fdf81610cd6565b6001600160a01b03821660009081526011602052604090206003810191909155600f546004909101555b611014338484613207565b5050600160005550565b611026613079565b6001546001600160a01b03908116911614611076576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b601b91909155601c55565b600260005414156110c7576040805162461bcd60e51b815260206004820152601f60248201526000805160206148fd833981519152604482015290519081900360640190fd5b6002600055600954600160a01b900460ff1661111a576040805162461bcd60e51b815260206004820152600d60248201526c2330b936903737ba1037b832b760991b604482015290519081900360640190fd5b601054421061117e57600c54611131906002612f9c565b600c819055611143906213c680612f9c565b600d55611153426213c680612f39565b60105542600e55600c5460408051918252516000805160206148dd8339815191529181900360200190a15b33611187612915565b600f556111926120ed565b600e556001600160a01b038116156111d7576111ad81610cd6565b6001600160a01b03821660009081526011602052604090206003810191909155600f546004909101555b6111e2333384613207565b50506001600055565b6021602052600090815260409020805460018201546002830154600384015460048501546005860154600690960154949593949293919290919087565b6002600054141561126e576040805162461bcd60e51b815260206004820152601f60248201526000805160206148fd833981519152604482015290519081900360640190fd5b6002600055600a544210156112ba576040805162461bcd60e51b815260206004820152600d60248201526c2330b936903737ba1037b832b760991b604482015290519081900360640190fd5b600954600160a01b900460ff166112df576009805460ff60a01b1916600160a01b1790555b601054421061134357600c546112f6906002612f9c565b600c819055611308906213c680612f9c565b600d55611318426213c680612f39565b60105542600e55600c5460408051918252516000805160206148dd8339815191529181900360200190a15b3361134c612915565b600f556113576120ed565b600e556001600160a01b0381161561139c5761137281610cd6565b6001600160a01b03821660009081526011602052604090206003810191909155600f546004909101555b6113a633346135a0565b506001600055565b601e5481565b6023546001600160a01b031681565b60145481565b6113d1613079565b6001546001600160a01b03908116911614611421576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b602480546001600160a01b0319166001600160a01b0392909216919091179055565b60105481565b60225481565b611457613079565b6001546001600160a01b039081169116146114a7576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b600a8810156114f3576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b600a87101561153f576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b600a86101561158b576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b600a8510156115d7576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b600a841015611623576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b600a83101561166f576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b600082116116ba576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b87602160008b60028111156116cb57fe5b60028111156116d657fe5b81526020019081526020016000206000018190555086602160008b60028111156116fc57fe5b600281111561170757fe5b81526020019081526020016000206001018190555085602160008b600281111561172d57fe5b600281111561173857fe5b81526020019081526020016000206002018190555084602160008b600281111561175e57fe5b600281111561176957fe5b81526020019081526020016000206003018190555083602160008b600281111561178f57fe5b600281111561179a57fe5b81526020019081526020016000206004018190555082602160008b60028111156117c057fe5b60028111156117cb57fe5b81526020019081526020016000206005018190555081602160008b60028111156117f157fe5b60028111156117fc57fe5b8152602081019190915260400160002060060155801561181e5761181e61307d565b505050505050505050565b611831613079565b6001546001600160a01b03908116911614611881576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b601454156118f757600554601454604080516354277de760e01b81526004810192909252516001600160a01b03909216916354277de79160248082019260009290919082900301818387803b1580156118d957600080fd5b505af11580156118ed573d6000803e3d6000fd5b5050600060145550505b565b60155481565b600c5481565b600954600160a01b900460ff1681565b61191d613079565b6001546001600160a01b0390811691161461196d576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b602380546001600160a01b038085166001600160a01b03199283161790925560248054928416929091169190911790556119a5611829565b6023546119ba906001600160a01b03166122c6565b6024546119cf906001600160a01b03166122c6565b5050565b6119db613079565b6001546001600160a01b03908116911614611a2b576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b600b55565b6001600160a01b031660009081526011602052604090205490565b611a53613079565b6001546001600160a01b03908116911614611aa3576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b611af5613079565b6001546001600160a01b03908116911614611b45576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b600060155411611b88576040805162461bcd60e51b81526020600482015260096024820152684e6f20737570706c7960b81b604482015290519081900360640190fd5b601554611b959082612fde565b6015556005546040805163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611bee57600080fd5b505af1158015611c02573d6000803e3d6000fd5b505050506040513d6020811015611c1857600080fd5b50505050565b600d5481565b610fa081565b42611c42601e54601d54612f3990919063ffffffff16565b1115611c80576040805162461bcd60e51b81526020600482015260086024820152672a37b79039b7b7b760c11b604482015290519081900360640190fd5b42601d55601454611cf557600554602480546040805163ab8a128b60e01b81526001600160a01b0392831660048201529051919093169263ab8a128b928181019260009290919082900301818387803b158015611cdc57600080fd5b505af1158015611cf0573d6000803e3d6000fd5b505050505b600554604080516301ea0f5b60e11b815290516000926001600160a01b0316916303d41eb691600480830192602092919082900301818787803b158015611d3b57600080fd5b505af1158015611d4f573d6000803e3d6000fd5b505050506040513d6020811015611d6557600080fd5b5051905080156120aa57601f54600554604080516370a0823160e01b815233600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611dbd57600080fd5b505afa158015611dd1573d6000803e3d6000fd5b505050506040513d6020811015611de757600080fd5b505110611ec857602054600090611e3790602190839060ff166002811115611e0b57fe5b6002811115611e1657fe5b81526020019081526020016000206005015483612f9c90919063ffffffff16565b9050611e438282612fde565b6005546040805163a9059cbb60e01b81523360048201526024810185905290519294506001600160a01b039091169163a9059cbb916044808201926020929091908290030181600087803b158015611e9a57600080fd5b505af1158015611eae573d6000803e3d6000fd5b505050506040513d6020811015611ec457600080fd5b5050505b6000600260205460ff166002811115611edd57fe5b1415611ef4576004546001600160a01b0316611f01565b6023546001600160a01b03165b6004549091506000906001600160a01b0380841691161415611f9c57611f2683613bd0565b506005546040805163505cee4960e01b81526004810184905290519293506001600160a01b039091169163505cee499160248082019260009290919082900301818387803b158015611f7757600080fd5b505af1158015611f8b573d6000803e3d6000fd5b50505050611f97613e6d565b6120a7565b600554600090611fb6906001600160a01b0316848661405b565b506005546040805163505cee4960e01b81526004810185905290519395509193506001600160a01b03169163505cee499160248082019260009290919082900301818387803b15801561200857600080fd5b505af115801561201c573d6000803e3d6000fd5b50506023546008546040805163a9059cbb60e01b81526001600160a01b03928316600482015260248101879052905191909216935063a9059cbb925060448083019260209291908290030181600087803b15801561207957600080fd5b505af115801561208d573d6000803e3d6000fd5b505050506040513d60208110156120a357600080fd5b5050505b50505b662386f26fc100004711156120c1576120c16143f3565b6040517fc741dbaad15a4f298fe8d80943fa8e005e7bcb2f5b0a0c8dec1fc35be457f14690600090a150565b60006120fb4260105461465d565b905090565b6000610d4d61210d612599565b612118846064612f9c565b90613020565b601160205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b612155613079565b6001546001600160a01b039081169116146121a5576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b600454602380546001600160a01b039092166001600160a01b03199283161790556024805490911690556118f76121e6565b6001546001600160a01b031690565b6121ee613079565b6001546001600160a01b0390811691161461223e576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b6014546118f757600560009054906101000a90046001600160a01b03166001600160a01b0316638ebd2c066040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561229557600080fd5b505af11580156122a9573d6000803e3d6000fd5b505050506040513d60208110156122bf57600080fd5b5051601455565b6122ce613079565b6001546001600160a01b0390811691161461231e576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b6003546040805163095ea7b360e01b81526001600160a01b039283166004820152600019602482015290519183169163095ea7b3916044808201926020929091908290030181600087803b15801561237557600080fd5b505af1158015612389573d6000803e3d6000fd5b505050506040513d602081101561239f57600080fd5b505050565b601c5481565b600260205460ff1660028111156123bd57fe5b1415612400576040805162461bcd60e51b815260206004820152600d60248201526c14ddd85c08191a5cd8589b1959609a1b604482015290519081900360640190fd5b80601854101561244d576040805162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420737570706c7960681b604482015290519081900360640190fd5b60185461245a9082612fde565b601855600654604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b1580156124b757600080fd5b505af11580156124cb573d6000803e3d6000fd5b505050506040513d60208110156124e157600080fd5b50506005546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b15801561253757600080fd5b505af115801561254b573d6000803e3d6000fd5b505050506040513d602081101561256157600080fd5b50506040805182815290517f82dfb2d757e4fa1930f0a0c34debc910aa5d0184176abbd0e2540ebb0424911f9181900360200190a150565b6000600260205460ff1660028111156125ae57fe5b146125ba57600a6125bd565b60505b60ff16905090565b60165481565b601a5481565b6001600160a01b038116600090815260116020526040812060020154819061260a906201518090610d4190600190610d47904290612fde565b9050600a811061264a576001600160a01b0383166000908152601160205260409020600101546126429061263d85611a30565b61465d565b915050610d50565b6001600160a01b0383166000908152601160205260409020600101546126429061267b90839061211890600a612f9c565b61263d85611a30565b600080600260005414156126cd576040805162461bcd60e51b815260206004820152601f60248201526000805160206148fd833981519152604482015290519081900360640190fd5b6002600055600954600160a01b900460ff16612720576040805162461bcd60e51b815260206004820152600d60248201526c2330b936903737ba1037b832b760991b604482015290519081900360640190fd5b601054421061278457600c54612737906002612f9c565b600c819055612749906213c680612f9c565b600d55612759426213c680612f39565b60105542600e55600c5460408051918252516000805160206148dd8339815191529181900360200190a15b3361278d612915565b600f556127986120ed565b600e556001600160a01b038116156127dd576127b381610cd6565b6001600160a01b03821660009081526011602052604090206003810191909155600f546004909101555b6127e73333614673565b60016000559094909350915050565b6007546001600160a01b03163314612841576040805162461bcd60e51b81526020600482015260096024820152684f6e6c79206661726d60b81b604482015290519081900360640190fd5b80601954101561288e576040805162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420737570706c7960681b604482015290519081900360640190fd5b60195461289b9082612fde565b6019556005546040805163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611bee57600080fd5b60205460ff1681565b601d5481565b601b5481565b600e5481565b60185481565b60006013546000141561292b5750600f54610dc2565b6120fb612954601354610d41670de0b6b3a7640000612118600d54612118600e54610d1c6120ed565b600f5490612f39565b600080600260005414156129a6576040805162461bcd60e51b815260206004820152601f60248201526000805160206148fd833981519152604482015290519081900360640190fd5b6002600055600954600160a01b900460ff166129f9576040805162461bcd60e51b815260206004820152600d60248201526c2330b936903737ba1037b832b760991b604482015290519081900360640190fd5b6010544210612a5d57600c54612a10906002612f9c565b600c819055612a22906213c680612f9c565b600d55612a32426213c680612f39565b60105542600e55600c5460408051918252516000805160206148dd8339815191529181900360200190a15b33612a66612915565b600f55612a716120ed565b600e556001600160a01b03811615612ab657612a8c81610cd6565b6001600160a01b03821660009081526011602052604090206003810191909155600f546004909101555b612ac03385614673565b6001600055909590945092505050565b600a5481565b60026000541415612b1c576040805162461bcd60e51b815260206004820152601f60248201526000805160206148fd833981519152604482015290519081900360640190fd5b6002600055600a54421015612b68576040805162461bcd60e51b815260206004820152600d60248201526c2330b936903737ba1037b832b760991b604482015290519081900360640190fd5b600954600160a01b900460ff16612b8d576009805460ff60a01b1916600160a01b1790555b6010544210612bf157600c54612ba4906002612f9c565b600c819055612bb6906213c680612f9c565b600d55612bc6426213c680612f39565b60105542600e55600c5460408051918252516000805160206148dd8339815191529181900360200190a15b33612bfa612915565b600f55612c056120ed565b600e556001600160a01b03811615612c4a57612c2081610cd6565b6001600160a01b03821660009081526011602052604090206003810191909155600f546004909101555b6111e282346135a0565b601f5481565b6007546001600160a01b03163314612ca5576040805162461bcd60e51b81526020600482015260096024820152684f6e6c79206661726d60b81b604482015290519081900360640190fd5b600554604080516323b872dd60e01b81526001600160a01b03858116600483015230602483015260448201859052915191909216916323b872dd9160648083019260209291908290030181600087803b158015612d0157600080fd5b505af1158015612d15573d6000803e3d6000fd5b505050506040513d6020811015612d2b57600080fd5b5050601954612d3a9082612f39565b6019555050565b600f5481565b612d4f613079565b6001546001600160a01b03908116911614612d9f576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b601e55565b600b5481565b612db2613079565b6001546001600160a01b03908116911614612e02576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b6001600160a01b038116612e475760405162461bcd60e51b815260040180806020018281038252602681526020018061491d6026913960400191505060405180910390fd5b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6213c68081565b60195481565b6024546001600160a01b031681565b612ec7613079565b6001546001600160a01b03908116911614612f17576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b602380546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015612f93576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6000612f9383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506147e0565b6000612f9383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614882565b60008261302f57506000612f96565b8282028284828161303c57fe5b0414612f935760405162461bcd60e51b81526004018080602001828103825260218152602001806149436021913960400191505060405180910390fd5b3390565b6005546020546001600160a01b039091169063a2e00d639060219060009060ff1660028111156130a957fe5b60028111156130b457fe5b815260208082019290925260400160009081205491546021919060ff1660028111156130dc57fe5b60028111156130e757fe5b815260208082019290925260400160009081206001015491546021919060ff16600281111561311257fe5b600281111561311d57fe5b81526020019081526020016000206002015460216000602060009054906101000a900460ff16600281111561314e57fe5b600281111561315957fe5b815260208082019290925260400160009081206003015491546021919060ff16600281111561318457fe5b600281111561318f57fe5b8152602001908152602001600020600401546040518663ffffffff1660e01b81526004018086815260200185815260200184815260200183815260200182815260200195505050505050600060405180830381600087803b1580156131f357600080fd5b505af1158015611c18573d6000803e3d6000fd5b600260205460ff16600281111561321a57fe5b1415613261576040805162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dc8191a5cd8589b1959607a1b604482015290519081900360640190fd5b6000811180156132795750613275836125d1565b8111155b6132bd576040805162461bcd60e51b815260206004820152601060248201526f496e76616c696420776974686472617760801b604482015290519081900360640190fd5b6001600160a01b038316600090815260116020526040902054811115613321576040805162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015290519081900360640190fd5b6001600160a01b0383166000908152601160205260409020546133449082612fde565b6001600160a01b0384166000908152601160205260409020908155426002909101556013546133739082612fde565b6013556003546005546004805460408051635d5155ef60e11b81526001600160a01b0394851693810193909352908316602483015260448201859052600060648301819052608483018190523060a484015260001960c4840152815190948594169263baa2abde9260e480830193919282900301818787803b1580156133f857600080fd5b505af115801561340c573d6000803e3d6000fd5b505050506040513d604081101561342257600080fd5b5080516020918201516005546040805163a9059cbb60e01b81526001600160a01b038a81166004830152602482018690529151949750929550169263a9059cbb926044808401938290030181600087803b15801561347f57600080fd5b505af1158015613493573d6000803e3d6000fd5b505050506040513d60208110156134a957600080fd5b50506004805460408051632e1a7d4d60e01b8152928301849052516001600160a01b0390911691632e1a7d4d91602480830192600092919082900301818387803b1580156134f657600080fd5b505af115801561350a573d6000803e3d6000fd5b50506040516001600160a01b038716925083156108fc02915083906000818181858888f19350505050158015613544573d6000803e3d6000fd5b5061354d613e6d565b604080518381526020810183905280820185905290516001600160a01b038616917f75e161b3e824b114fc1a33274bd7091918dd4e639cede50b78b15a4eea956a21919081900360600190a25050505050565b600081116135e6576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600b54811115613631576040805162461bcd60e51b815260206004820152601160248201527013585e081cdd185ad9481c995858da1959607a1b604482015290519081900360640190fd5b600061363e82600a612f9c565b905061364a8282612fde565b6008546040519193506001600160a01b03169082156108fc029083906000818181858888f19350505050158015613685573d6000803e3d6000fd5b5060048054600954604080516370a0823160e01b81526001600160a01b03928316948101949094525160009391909216916370a0823191602480820192602092909190829003018186803b1580156136dc57600080fd5b505afa1580156136f0573d6000803e3d6000fd5b505050506040513d602081101561370657600080fd5b5051600554600954604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b15801561375e57600080fd5b505afa158015613772573d6000803e3d6000fd5b505050506040513d602081101561378857600080fd5b50519050600082156137a7576137a283610d418785613020565b6137b3565b6137b385610fa0613020565b6016549091501561386a57600060165482116137cf57816137d3565b6016545b6016549091506137e39082612fde565b6016556005546040805163a9059cbb60e01b81526001600160a01b038a81166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561383c57600080fd5b505af1158015613850573d6000803e3d6000fd5b505050506040513d602081101561386657600080fd5b5050505b613875816002612f9c565b90506000816017541061394e5761388d866002612f9c565b60175490965061389d9083612fde565b6017556003546005546040805163f305d71960e01b81526001600160a01b03928316600482015260248101869052600060448201819052606482015230608482015260001960a48201529051919092169163f305d71991899160c48082019260609290919082900301818588803b15801561391757600080fd5b505af115801561392b573d6000803e3d6000fd5b50505050506040513d606081101561394257600080fd5b50604001519050613a38565b6004805460408051630d0e30db60e41b815290516000936001600160a01b039093169263d0e30db0928b9281830192879282900301818588803b15801561399457600080fd5b505af11580156139a8573d6000803e3d6000fd5b50506004546005546139cb94506001600160a01b0391821693501690508961405b565b6004805460408051632e1a7d4d60e01b8152928301869052519296509394506001600160a01b0390931692632e1a7d4d925060248082019260009290919082900301818387803b158015613a1e57600080fd5b505af1158015613a32573d6000803e3d6000fd5b50505050505b6001600160a01b038716600090815260116020526040902054613a5b9082612f39565b6001600160a01b0388166000908152601160205260409020818155600101541015613aa1576001600160a01b038716600090815260116020526040902080546001909101555b6001600160a01b038716600090815260116020526040902060020154613ae1576001600160a01b0387166000908152601160205260409020426002909101555b601354613aee9082612f39565b601355600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015613b3c57600080fd5b505afa158015613b50573d6000803e3d6000fd5b505050506040513d6020811015613b6657600080fd5b5051601254909150811115613b7b5760128190555b613b83613e6d565b604080518881526020810184905281516001600160a01b038b16927f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90928290030190a25050505050505050565b60008080613bdf846002612f9c565b90506000613bed8583612fde565b60408051600280825260608083018452939450479392602083019080368337505060055482519293506001600160a01b031691839150600090613c2c57fe5b6001600160a01b039283166020918202929092010152600454825191169082906001908110613c5757fe5b60200260200101906001600160a01b031690816001600160a01b031681525050600360009054906101000a90046001600160a01b03166001600160a01b031663791ac94785600084306000196040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015613d13578181015183820152602001613cfb565b505050509050019650505050505050600060405180830381600087803b158015613d3c57600080fd5b505af1158015613d50573d6000803e3d6000fd5b505050506000613d698347612fde90919063ffffffff16565b6003546005546040805163f305d71960e01b81526001600160a01b039283166004820152602481018990526000604482018190526064820181905230608483015260001960a4830152915194955090938493929092169163f305d71991869160c480830192606092919082900301818588803b158015613de857600080fd5b505af1158015613dfc573d6000803e3d6000fd5b50505050506040513d6060811015613e1357600080fd5b5080516020909101519092509050613e2b8a88612fde565b9850818911613e3b576000613e45565b613e458983612fde565b9850808311613e55576000613e5f565b613e5f8382612fde565b975050505050505050915091565b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015613eb857600080fd5b505afa158015613ecc573d6000803e3d6000fd5b505050506040513d6020811015613ee257600080fd5b5051601254909150600090613ef8906064612f9c565b90506000613f11601b548361302090919063ffffffff16565b90506000613f2a601c548461302090919063ffffffff16565b9050600160205460ff166002811115613f3f57fe5b148015613f5c57506022544290613f599062015180612f39565b11155b8015613f6757508184115b15613f9257602080546000919060ff19166001835b021790555042602255613f8d61307d565b611c18565b600260205460ff166002811115613fa557fe5b148015613fc257506022544290613fbf9062015180612f39565b11155b8015613fcd57508084115b15613fe557602080546001919060ff19168280613f7c565b600060205460ff166002811115613ff857fe5b1480156140055750818411155b1561401d57602080546001919060ff19168280613f7c565b600160205460ff16600281111561403057fe5b14801561403d5750808411155b15611c18576020805460ff1916600217905542602255611c1861307d565b600080808061406b856002612f9c565b905060006140798683612fde565b90506000876001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156140ca57600080fd5b505afa1580156140de573d6000803e3d6000fd5b505050506040513d60208110156140f457600080fd5b5051604080516002808252606080830184529394509091602083019080368337019050509050898160008151811061412857fe5b60200260200101906001600160a01b031690816001600160a01b031681525050888160018151811061415657fe5b60200260200101906001600160a01b031690816001600160a01b031681525050600360009054906101000a90046001600160a01b03166001600160a01b0316635c11d79585600084306000196040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b838110156142125781810151838201526020016141fa565b505050509050019650505050505050600060405180830381600087803b15801561423b57600080fd5b505af115801561424f573d6000803e3d6000fd5b5050505060006142d8838b6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156142a657600080fd5b505afa1580156142ba573d6000803e3d6000fd5b505050506040513d60208110156142d057600080fd5b505190612fde565b6003546040805162e8e33760e81b81526001600160a01b038f811660048301528e81166024830152604482018990526064820185905260006084830181905260a483018190523060c484015260001960e48401529251949550919384938493169163e8e337009161010480830192606092919082900301818787803b15801561436057600080fd5b505af1158015614374573d6000803e3d6000fd5b505050506040513d606081101561438a57600080fd5b508051602082015160409092015190945090925090506143aa8c89612fde565b9a50828b116143ba5760006143c4565b6143c48b84612fde565b9a508184116143d45760006143de565b6143de8483612fde565b9a9e9a9d509b50989950505050505050505050565b6040805160028082526060808301845292602083019080368337505060045482519293506001600160a01b03169183915060009061442d57fe5b6001600160a01b03928316602091820292909201015260055482519116908290600190811061445857fe5b6001600160a01b0392831660209182029290920181019190915260035490546060929190911690637ff36ab5906144c99060219060009060ff16600281111561449d57fe5b60028111156144a857fe5b81526020019081526020016000206006015447612f9c90919063ffffffff16565b600085306000196040518663ffffffff1660e01b81526004018085815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b8381101561453a578181015183820152602001614522565b50505050905001955050505050506000604051808303818588803b15801561456157600080fd5b505af1158015614575573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052602081101561459f57600080fd5b81019080805160405193929190846401000000008211156145bf57600080fd5b9083019060208201858111156145d457600080fd5b82518660208202830111640100000000821117156145f157600080fd5b82525081516020918201928201910280838360005b8381101561461e578181015183820152602001614606565b5050505090500160405250505090506146568160018151811061463d57fe5b6020026020010151601a54612f3990919063ffffffff16565b601a555050565b600081831061466c5781612f93565b5090919050565b6001600160a01b0382166000908152601160205260408120600301548190806146cf576040805162461bcd60e51b8152602060048201526009602482015268139bc81c995dd85c9960ba1b604482015290519081900360640190fd5b6001600160a01b0385166000908152601160205260408120600301556146f481612100565b91506147008183612fde565b6018549093506147109083612f39565b6018556005546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561476957600080fd5b505af115801561477d573d6000803e3d6000fd5b505050506040513d602081101561479357600080fd5b5050604080518481526020810184905281516001600160a01b038716927f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a928290030190a2509250929050565b6000818361486c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614831578181015183820152602001614819565b50505050905090810190601f16801561485e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161487857fe5b0495945050505050565b600081848411156148d45760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614831578181015183820152602001614819565b50505090039056fea7c1f254617196c481de3fce05e7303b9ff1d88bbc9e5adb08638a8e669245865265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220fe6b93ced78f730950b760afbc6cabe376145a6306ce4f4762c5662e5df5df7864736f6c634300060c00330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000002a834c4d2d50cafdca530211581165026ee49ab9000000000000000000000000487dc6fd819dc99959474f6ff5bb91790766b0cb000000000000000000000000000000000000000000000000000000005fe37790
Deployed Bytecode
0x6080604052600436106103c65760003560e01c806387cad0bf116101f2578063c8f33c911161010d578063df136d65116100a0578063f520e7e51161006f578063f520e7e514610c64578063f7eab29914610c79578063f82f2ccf14610c8e578063fee778f914610ca3576103cd565b8063df136d6514610bdd578063e83bf65614610bf2578063ea1b28e014610c1c578063f2fde38b14610c31576103cd565b8063d1343f5e116100dc578063d1343f5e14610b54578063d49f4bac14610b69578063dd52c6dd14610b8f578063de63378614610ba4576103cd565b8063c8f33c9114610ae2578063cb418a8e14610af7578063cd3daf9d14610b0c578063cdc48eb714610b21576103cd565b8063a96af0f411610185578063bcaf6f9211610154578063bcaf6f9214610a49578063c19d93fb14610a82578063c2afbd8c14610ab8578063c834000b14610acd576103cd565b8063a96af0f4146109be578063b03e6478146109d3578063b6333596146109e8578063b88a802f14610a1b576103cd565b806390f15ec9116101c157806390f15ec91461093757806391a8e0ca1461096a57806394b918de1461097f5780639b1e3479146109a9576103cd565b806387cad0bf1461089a57806388efa22a146108f85780638da5cb5b1461090d5780638ebd2c0614610922576103cd565b80635e4eb6de116102e257806370a08231116102755780637c5e2795116102445780637c5e2795146108315780637d7c2a1c1461084657806380faa57d1461085b57806386f73f5414610870576103cd565b806370a082311461079b578063715018a6146107ce578063731a8a0a146107e35780637b0a47ee1461081c576103cd565b806367739387116102b157806367739387146106f85780636a585ebf1461070d5780636b1f8b80146107365780636fc1483714610771576103cd565b80635e4eb6de146106585780635f87e04c1461066d578063614849f2146106ce578063624bb58f146106e3576103cd565b80632e1a7d4d1161035a57806343cd8f7e1161032957806343cd8f7e146105ca578063459e06f5146105fb5780634f922a9e146106105780635958611e14610643576103cd565b80632e1a7d4d1461051e57806334d54f37146105485780633a4b66f1146105ad578063400e6f71146105b5576103cd565b806318160ddd1161039657806318160ddd1461046d57806319ab453c14610482578063205c2878146104b55780632b1840ef146104ee576103cd565b80628cc262146103d2578063117ee15714610417578063118080181461042c57806315634b3b14610458576103cd565b366103cd57005b600080fd5b3480156103de57600080fd5b50610405600480360360208110156103f557600080fd5b50356001600160a01b0316610cd6565b60408051918252519081900360200190f35b34801561042357600080fd5b50610405610d55565b34801561043857600080fd5b506104566004803603602081101561044f57600080fd5b5035610d5b565b005b34801561046457600080fd5b50610405610db8565b34801561047957600080fd5b50610405610dbe565b34801561048e57600080fd5b50610456600480360360208110156104a557600080fd5b50356001600160a01b0316610dc5565b3480156104c157600080fd5b50610456600480360360408110156104d857600080fd5b506001600160a01b038135169060200135610eb3565b3480156104fa57600080fd5b506104566004803603604081101561051157600080fd5b508035906020013561101e565b34801561052a57600080fd5b506104566004803603602081101561054157600080fd5b5035611081565b34801561055457600080fd5b506105756004803603602081101561056b57600080fd5b503560ff166111eb565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b610456611228565b3480156105c157600080fd5b506104056113ae565b3480156105d657600080fd5b506105df6113b4565b604080516001600160a01b039092168252519081900360200190f35b34801561060757600080fd5b506104056113c3565b34801561061c57600080fd5b506104566004803603602081101561063357600080fd5b50356001600160a01b03166113c9565b34801561064f57600080fd5b50610405611443565b34801561066457600080fd5b50610405611449565b34801561067957600080fd5b50610456600480360361012081101561069157600080fd5b5060ff8135169060208101359060408101359060608101359060808101359060a08101359060c08101359060e0810135906101000135151561144f565b3480156106da57600080fd5b50610456611829565b3480156106ef57600080fd5b506104056118f9565b34801561070457600080fd5b506104056118ff565b34801561071957600080fd5b50610722611905565b604080519115158252519081900360200190f35b34801561074257600080fd5b506104566004803603604081101561075957600080fd5b506001600160a01b0381358116916020013516611915565b34801561077d57600080fd5b506104566004803603602081101561079457600080fd5b50356119d3565b3480156107a757600080fd5b50610405600480360360208110156107be57600080fd5b50356001600160a01b0316611a30565b3480156107da57600080fd5b50610456611a4b565b3480156107ef57600080fd5b506104566004803603604081101561080657600080fd5b506001600160a01b038135169060200135611aed565b34801561082857600080fd5b50610405611c1e565b34801561083d57600080fd5b50610405611c24565b34801561085257600080fd5b50610456611c2a565b34801561086757600080fd5b506104056120ed565b34801561087c57600080fd5b506104056004803603602081101561089357600080fd5b5035612100565b3480156108a657600080fd5b506108cd600480360360208110156108bd57600080fd5b50356001600160a01b031661211e565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b34801561090457600080fd5b5061045661214d565b34801561091957600080fd5b506105df6121d7565b34801561092e57600080fd5b506104566121e6565b34801561094357600080fd5b506104566004803603602081101561095a57600080fd5b50356001600160a01b03166122c6565b34801561097657600080fd5b506104056123a4565b34801561098b57600080fd5b50610456600480360360208110156109a257600080fd5b50356123aa565b3480156109b557600080fd5b50610405612599565b3480156109ca57600080fd5b506104056125c5565b3480156109df57600080fd5b506104056125cb565b3480156109f457600080fd5b5061040560048036036020811015610a0b57600080fd5b50356001600160a01b03166125d1565b348015610a2757600080fd5b50610a30612684565b6040805192835260208301919091528051918290030190f35b348015610a5557600080fd5b5061045660048036036040811015610a6c57600080fd5b506001600160a01b0381351690602001356127f6565b348015610a8e57600080fd5b50610a976128f4565b60405180826002811115610aa757fe5b815260200191505060405180910390f35b348015610ac457600080fd5b506104056128fd565b348015610ad957600080fd5b50610405612903565b348015610aee57600080fd5b50610405612909565b348015610b0357600080fd5b5061040561290f565b348015610b1857600080fd5b50610405612915565b348015610b2d57600080fd5b50610a3060048036036020811015610b4457600080fd5b50356001600160a01b031661295d565b348015610b6057600080fd5b50610405612ad0565b61045660048036036020811015610b7f57600080fd5b50356001600160a01b0316612ad6565b348015610b9b57600080fd5b50610405612c54565b348015610bb057600080fd5b5061045660048036036040811015610bc757600080fd5b506001600160a01b038135169060200135612c5a565b348015610be957600080fd5b50610405612d41565b348015610bfe57600080fd5b5061045660048036036020811015610c1557600080fd5b5035612d47565b348015610c2857600080fd5b50610405612da4565b348015610c3d57600080fd5b5061045660048036036020811015610c5457600080fd5b50356001600160a01b0316612daa565b348015610c7057600080fd5b50610405612ea3565b348015610c8557600080fd5b50610405612eaa565b348015610c9a57600080fd5b506105df612eb0565b348015610caf57600080fd5b5061045660048036036020811015610cc657600080fd5b50356001600160a01b0316612ebf565b6001600160a01b03811660009081526011602052604081206003810154600490910154610d4d9190610d4790670de0b6b3a764000090610d4190610d2290610d1c612915565b90612fde565b6001600160a01b03881660009081526011602052604090205490613020565b90612f9c565b90612f39565b90505b919050565b60175481565b610d63613079565b6001546001600160a01b03908116911614610db3576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b601f55565b60125481565b6013545b90565b610dcd613079565b6001546001600160a01b03908116911614610e1d576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b600154600160a01b900460ff16610eb0576001805460ff60a01b1916600160a01b179055600780546001600160a01b0383166001600160a01b0319909116179055610e766000604360c88060196032601460088761144f565b610e8f600160648060646010603260196005600061144f565b610ea860026064806014600c603260216002600061144f565b610eb061307d565b50565b60026000541415610ef9576040805162461bcd60e51b815260206004820152601f60248201526000805160206148fd833981519152604482015290519081900360640190fd5b6002600055600954600160a01b900460ff16610f4c576040805162461bcd60e51b815260206004820152600d60248201526c2330b936903737ba1037b832b760991b604482015290519081900360640190fd5b6010544210610fb057600c54610f63906002612f9c565b600c819055610f75906213c680612f9c565b600d55610f85426213c680612f39565b60105542600e55600c5460408051918252516000805160206148dd8339815191529181900360200190a15b33610fb9612915565b600f55610fc46120ed565b600e556001600160a01b0381161561100957610fdf81610cd6565b6001600160a01b03821660009081526011602052604090206003810191909155600f546004909101555b611014338484613207565b5050600160005550565b611026613079565b6001546001600160a01b03908116911614611076576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b601b91909155601c55565b600260005414156110c7576040805162461bcd60e51b815260206004820152601f60248201526000805160206148fd833981519152604482015290519081900360640190fd5b6002600055600954600160a01b900460ff1661111a576040805162461bcd60e51b815260206004820152600d60248201526c2330b936903737ba1037b832b760991b604482015290519081900360640190fd5b601054421061117e57600c54611131906002612f9c565b600c819055611143906213c680612f9c565b600d55611153426213c680612f39565b60105542600e55600c5460408051918252516000805160206148dd8339815191529181900360200190a15b33611187612915565b600f556111926120ed565b600e556001600160a01b038116156111d7576111ad81610cd6565b6001600160a01b03821660009081526011602052604090206003810191909155600f546004909101555b6111e2333384613207565b50506001600055565b6021602052600090815260409020805460018201546002830154600384015460048501546005860154600690960154949593949293919290919087565b6002600054141561126e576040805162461bcd60e51b815260206004820152601f60248201526000805160206148fd833981519152604482015290519081900360640190fd5b6002600055600a544210156112ba576040805162461bcd60e51b815260206004820152600d60248201526c2330b936903737ba1037b832b760991b604482015290519081900360640190fd5b600954600160a01b900460ff166112df576009805460ff60a01b1916600160a01b1790555b601054421061134357600c546112f6906002612f9c565b600c819055611308906213c680612f9c565b600d55611318426213c680612f39565b60105542600e55600c5460408051918252516000805160206148dd8339815191529181900360200190a15b3361134c612915565b600f556113576120ed565b600e556001600160a01b0381161561139c5761137281610cd6565b6001600160a01b03821660009081526011602052604090206003810191909155600f546004909101555b6113a633346135a0565b506001600055565b601e5481565b6023546001600160a01b031681565b60145481565b6113d1613079565b6001546001600160a01b03908116911614611421576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b602480546001600160a01b0319166001600160a01b0392909216919091179055565b60105481565b60225481565b611457613079565b6001546001600160a01b039081169116146114a7576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b600a8810156114f3576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b600a87101561153f576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b600a86101561158b576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b600a8510156115d7576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b600a841015611623576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b600a83101561166f576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b600082116116ba576040805162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b737b6b4b730ba37b960691b604482015290519081900360640190fd5b87602160008b60028111156116cb57fe5b60028111156116d657fe5b81526020019081526020016000206000018190555086602160008b60028111156116fc57fe5b600281111561170757fe5b81526020019081526020016000206001018190555085602160008b600281111561172d57fe5b600281111561173857fe5b81526020019081526020016000206002018190555084602160008b600281111561175e57fe5b600281111561176957fe5b81526020019081526020016000206003018190555083602160008b600281111561178f57fe5b600281111561179a57fe5b81526020019081526020016000206004018190555082602160008b60028111156117c057fe5b60028111156117cb57fe5b81526020019081526020016000206005018190555081602160008b60028111156117f157fe5b60028111156117fc57fe5b8152602081019190915260400160002060060155801561181e5761181e61307d565b505050505050505050565b611831613079565b6001546001600160a01b03908116911614611881576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b601454156118f757600554601454604080516354277de760e01b81526004810192909252516001600160a01b03909216916354277de79160248082019260009290919082900301818387803b1580156118d957600080fd5b505af11580156118ed573d6000803e3d6000fd5b5050600060145550505b565b60155481565b600c5481565b600954600160a01b900460ff1681565b61191d613079565b6001546001600160a01b0390811691161461196d576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b602380546001600160a01b038085166001600160a01b03199283161790925560248054928416929091169190911790556119a5611829565b6023546119ba906001600160a01b03166122c6565b6024546119cf906001600160a01b03166122c6565b5050565b6119db613079565b6001546001600160a01b03908116911614611a2b576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b600b55565b6001600160a01b031660009081526011602052604090205490565b611a53613079565b6001546001600160a01b03908116911614611aa3576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b611af5613079565b6001546001600160a01b03908116911614611b45576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b600060155411611b88576040805162461bcd60e51b81526020600482015260096024820152684e6f20737570706c7960b81b604482015290519081900360640190fd5b601554611b959082612fde565b6015556005546040805163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611bee57600080fd5b505af1158015611c02573d6000803e3d6000fd5b505050506040513d6020811015611c1857600080fd5b50505050565b600d5481565b610fa081565b42611c42601e54601d54612f3990919063ffffffff16565b1115611c80576040805162461bcd60e51b81526020600482015260086024820152672a37b79039b7b7b760c11b604482015290519081900360640190fd5b42601d55601454611cf557600554602480546040805163ab8a128b60e01b81526001600160a01b0392831660048201529051919093169263ab8a128b928181019260009290919082900301818387803b158015611cdc57600080fd5b505af1158015611cf0573d6000803e3d6000fd5b505050505b600554604080516301ea0f5b60e11b815290516000926001600160a01b0316916303d41eb691600480830192602092919082900301818787803b158015611d3b57600080fd5b505af1158015611d4f573d6000803e3d6000fd5b505050506040513d6020811015611d6557600080fd5b5051905080156120aa57601f54600554604080516370a0823160e01b815233600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611dbd57600080fd5b505afa158015611dd1573d6000803e3d6000fd5b505050506040513d6020811015611de757600080fd5b505110611ec857602054600090611e3790602190839060ff166002811115611e0b57fe5b6002811115611e1657fe5b81526020019081526020016000206005015483612f9c90919063ffffffff16565b9050611e438282612fde565b6005546040805163a9059cbb60e01b81523360048201526024810185905290519294506001600160a01b039091169163a9059cbb916044808201926020929091908290030181600087803b158015611e9a57600080fd5b505af1158015611eae573d6000803e3d6000fd5b505050506040513d6020811015611ec457600080fd5b5050505b6000600260205460ff166002811115611edd57fe5b1415611ef4576004546001600160a01b0316611f01565b6023546001600160a01b03165b6004549091506000906001600160a01b0380841691161415611f9c57611f2683613bd0565b506005546040805163505cee4960e01b81526004810184905290519293506001600160a01b039091169163505cee499160248082019260009290919082900301818387803b158015611f7757600080fd5b505af1158015611f8b573d6000803e3d6000fd5b50505050611f97613e6d565b6120a7565b600554600090611fb6906001600160a01b0316848661405b565b506005546040805163505cee4960e01b81526004810185905290519395509193506001600160a01b03169163505cee499160248082019260009290919082900301818387803b15801561200857600080fd5b505af115801561201c573d6000803e3d6000fd5b50506023546008546040805163a9059cbb60e01b81526001600160a01b03928316600482015260248101879052905191909216935063a9059cbb925060448083019260209291908290030181600087803b15801561207957600080fd5b505af115801561208d573d6000803e3d6000fd5b505050506040513d60208110156120a357600080fd5b5050505b50505b662386f26fc100004711156120c1576120c16143f3565b6040517fc741dbaad15a4f298fe8d80943fa8e005e7bcb2f5b0a0c8dec1fc35be457f14690600090a150565b60006120fb4260105461465d565b905090565b6000610d4d61210d612599565b612118846064612f9c565b90613020565b601160205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b612155613079565b6001546001600160a01b039081169116146121a5576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b600454602380546001600160a01b039092166001600160a01b03199283161790556024805490911690556118f76121e6565b6001546001600160a01b031690565b6121ee613079565b6001546001600160a01b0390811691161461223e576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b6014546118f757600560009054906101000a90046001600160a01b03166001600160a01b0316638ebd2c066040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561229557600080fd5b505af11580156122a9573d6000803e3d6000fd5b505050506040513d60208110156122bf57600080fd5b5051601455565b6122ce613079565b6001546001600160a01b0390811691161461231e576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b6003546040805163095ea7b360e01b81526001600160a01b039283166004820152600019602482015290519183169163095ea7b3916044808201926020929091908290030181600087803b15801561237557600080fd5b505af1158015612389573d6000803e3d6000fd5b505050506040513d602081101561239f57600080fd5b505050565b601c5481565b600260205460ff1660028111156123bd57fe5b1415612400576040805162461bcd60e51b815260206004820152600d60248201526c14ddd85c08191a5cd8589b1959609a1b604482015290519081900360640190fd5b80601854101561244d576040805162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420737570706c7960681b604482015290519081900360640190fd5b60185461245a9082612fde565b601855600654604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b1580156124b757600080fd5b505af11580156124cb573d6000803e3d6000fd5b505050506040513d60208110156124e157600080fd5b50506005546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b15801561253757600080fd5b505af115801561254b573d6000803e3d6000fd5b505050506040513d602081101561256157600080fd5b50506040805182815290517f82dfb2d757e4fa1930f0a0c34debc910aa5d0184176abbd0e2540ebb0424911f9181900360200190a150565b6000600260205460ff1660028111156125ae57fe5b146125ba57600a6125bd565b60505b60ff16905090565b60165481565b601a5481565b6001600160a01b038116600090815260116020526040812060020154819061260a906201518090610d4190600190610d47904290612fde565b9050600a811061264a576001600160a01b0383166000908152601160205260409020600101546126429061263d85611a30565b61465d565b915050610d50565b6001600160a01b0383166000908152601160205260409020600101546126429061267b90839061211890600a612f9c565b61263d85611a30565b600080600260005414156126cd576040805162461bcd60e51b815260206004820152601f60248201526000805160206148fd833981519152604482015290519081900360640190fd5b6002600055600954600160a01b900460ff16612720576040805162461bcd60e51b815260206004820152600d60248201526c2330b936903737ba1037b832b760991b604482015290519081900360640190fd5b601054421061278457600c54612737906002612f9c565b600c819055612749906213c680612f9c565b600d55612759426213c680612f39565b60105542600e55600c5460408051918252516000805160206148dd8339815191529181900360200190a15b3361278d612915565b600f556127986120ed565b600e556001600160a01b038116156127dd576127b381610cd6565b6001600160a01b03821660009081526011602052604090206003810191909155600f546004909101555b6127e73333614673565b60016000559094909350915050565b6007546001600160a01b03163314612841576040805162461bcd60e51b81526020600482015260096024820152684f6e6c79206661726d60b81b604482015290519081900360640190fd5b80601954101561288e576040805162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420737570706c7960681b604482015290519081900360640190fd5b60195461289b9082612fde565b6019556005546040805163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611bee57600080fd5b60205460ff1681565b601d5481565b601b5481565b600e5481565b60185481565b60006013546000141561292b5750600f54610dc2565b6120fb612954601354610d41670de0b6b3a7640000612118600d54612118600e54610d1c6120ed565b600f5490612f39565b600080600260005414156129a6576040805162461bcd60e51b815260206004820152601f60248201526000805160206148fd833981519152604482015290519081900360640190fd5b6002600055600954600160a01b900460ff166129f9576040805162461bcd60e51b815260206004820152600d60248201526c2330b936903737ba1037b832b760991b604482015290519081900360640190fd5b6010544210612a5d57600c54612a10906002612f9c565b600c819055612a22906213c680612f9c565b600d55612a32426213c680612f39565b60105542600e55600c5460408051918252516000805160206148dd8339815191529181900360200190a15b33612a66612915565b600f55612a716120ed565b600e556001600160a01b03811615612ab657612a8c81610cd6565b6001600160a01b03821660009081526011602052604090206003810191909155600f546004909101555b612ac03385614673565b6001600055909590945092505050565b600a5481565b60026000541415612b1c576040805162461bcd60e51b815260206004820152601f60248201526000805160206148fd833981519152604482015290519081900360640190fd5b6002600055600a54421015612b68576040805162461bcd60e51b815260206004820152600d60248201526c2330b936903737ba1037b832b760991b604482015290519081900360640190fd5b600954600160a01b900460ff16612b8d576009805460ff60a01b1916600160a01b1790555b6010544210612bf157600c54612ba4906002612f9c565b600c819055612bb6906213c680612f9c565b600d55612bc6426213c680612f39565b60105542600e55600c5460408051918252516000805160206148dd8339815191529181900360200190a15b33612bfa612915565b600f55612c056120ed565b600e556001600160a01b03811615612c4a57612c2081610cd6565b6001600160a01b03821660009081526011602052604090206003810191909155600f546004909101555b6111e282346135a0565b601f5481565b6007546001600160a01b03163314612ca5576040805162461bcd60e51b81526020600482015260096024820152684f6e6c79206661726d60b81b604482015290519081900360640190fd5b600554604080516323b872dd60e01b81526001600160a01b03858116600483015230602483015260448201859052915191909216916323b872dd9160648083019260209291908290030181600087803b158015612d0157600080fd5b505af1158015612d15573d6000803e3d6000fd5b505050506040513d6020811015612d2b57600080fd5b5050601954612d3a9082612f39565b6019555050565b600f5481565b612d4f613079565b6001546001600160a01b03908116911614612d9f576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b601e55565b600b5481565b612db2613079565b6001546001600160a01b03908116911614612e02576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b6001600160a01b038116612e475760405162461bcd60e51b815260040180806020018281038252602681526020018061491d6026913960400191505060405180910390fd5b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6213c68081565b60195481565b6024546001600160a01b031681565b612ec7613079565b6001546001600160a01b03908116911614612f17576040805162461bcd60e51b81526020600482018190526024820152600080516020614964833981519152604482015290519081900360640190fd5b602380546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015612f93576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6000612f9383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506147e0565b6000612f9383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614882565b60008261302f57506000612f96565b8282028284828161303c57fe5b0414612f935760405162461bcd60e51b81526004018080602001828103825260218152602001806149436021913960400191505060405180910390fd5b3390565b6005546020546001600160a01b039091169063a2e00d639060219060009060ff1660028111156130a957fe5b60028111156130b457fe5b815260208082019290925260400160009081205491546021919060ff1660028111156130dc57fe5b60028111156130e757fe5b815260208082019290925260400160009081206001015491546021919060ff16600281111561311257fe5b600281111561311d57fe5b81526020019081526020016000206002015460216000602060009054906101000a900460ff16600281111561314e57fe5b600281111561315957fe5b815260208082019290925260400160009081206003015491546021919060ff16600281111561318457fe5b600281111561318f57fe5b8152602001908152602001600020600401546040518663ffffffff1660e01b81526004018086815260200185815260200184815260200183815260200182815260200195505050505050600060405180830381600087803b1580156131f357600080fd5b505af1158015611c18573d6000803e3d6000fd5b600260205460ff16600281111561321a57fe5b1415613261576040805162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dc8191a5cd8589b1959607a1b604482015290519081900360640190fd5b6000811180156132795750613275836125d1565b8111155b6132bd576040805162461bcd60e51b815260206004820152601060248201526f496e76616c696420776974686472617760801b604482015290519081900360640190fd5b6001600160a01b038316600090815260116020526040902054811115613321576040805162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015290519081900360640190fd5b6001600160a01b0383166000908152601160205260409020546133449082612fde565b6001600160a01b0384166000908152601160205260409020908155426002909101556013546133739082612fde565b6013556003546005546004805460408051635d5155ef60e11b81526001600160a01b0394851693810193909352908316602483015260448201859052600060648301819052608483018190523060a484015260001960c4840152815190948594169263baa2abde9260e480830193919282900301818787803b1580156133f857600080fd5b505af115801561340c573d6000803e3d6000fd5b505050506040513d604081101561342257600080fd5b5080516020918201516005546040805163a9059cbb60e01b81526001600160a01b038a81166004830152602482018690529151949750929550169263a9059cbb926044808401938290030181600087803b15801561347f57600080fd5b505af1158015613493573d6000803e3d6000fd5b505050506040513d60208110156134a957600080fd5b50506004805460408051632e1a7d4d60e01b8152928301849052516001600160a01b0390911691632e1a7d4d91602480830192600092919082900301818387803b1580156134f657600080fd5b505af115801561350a573d6000803e3d6000fd5b50506040516001600160a01b038716925083156108fc02915083906000818181858888f19350505050158015613544573d6000803e3d6000fd5b5061354d613e6d565b604080518381526020810183905280820185905290516001600160a01b038616917f75e161b3e824b114fc1a33274bd7091918dd4e639cede50b78b15a4eea956a21919081900360600190a25050505050565b600081116135e6576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600b54811115613631576040805162461bcd60e51b815260206004820152601160248201527013585e081cdd185ad9481c995858da1959607a1b604482015290519081900360640190fd5b600061363e82600a612f9c565b905061364a8282612fde565b6008546040519193506001600160a01b03169082156108fc029083906000818181858888f19350505050158015613685573d6000803e3d6000fd5b5060048054600954604080516370a0823160e01b81526001600160a01b03928316948101949094525160009391909216916370a0823191602480820192602092909190829003018186803b1580156136dc57600080fd5b505afa1580156136f0573d6000803e3d6000fd5b505050506040513d602081101561370657600080fd5b5051600554600954604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b15801561375e57600080fd5b505afa158015613772573d6000803e3d6000fd5b505050506040513d602081101561378857600080fd5b50519050600082156137a7576137a283610d418785613020565b6137b3565b6137b385610fa0613020565b6016549091501561386a57600060165482116137cf57816137d3565b6016545b6016549091506137e39082612fde565b6016556005546040805163a9059cbb60e01b81526001600160a01b038a81166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561383c57600080fd5b505af1158015613850573d6000803e3d6000fd5b505050506040513d602081101561386657600080fd5b5050505b613875816002612f9c565b90506000816017541061394e5761388d866002612f9c565b60175490965061389d9083612fde565b6017556003546005546040805163f305d71960e01b81526001600160a01b03928316600482015260248101869052600060448201819052606482015230608482015260001960a48201529051919092169163f305d71991899160c48082019260609290919082900301818588803b15801561391757600080fd5b505af115801561392b573d6000803e3d6000fd5b50505050506040513d606081101561394257600080fd5b50604001519050613a38565b6004805460408051630d0e30db60e41b815290516000936001600160a01b039093169263d0e30db0928b9281830192879282900301818588803b15801561399457600080fd5b505af11580156139a8573d6000803e3d6000fd5b50506004546005546139cb94506001600160a01b0391821693501690508961405b565b6004805460408051632e1a7d4d60e01b8152928301869052519296509394506001600160a01b0390931692632e1a7d4d925060248082019260009290919082900301818387803b158015613a1e57600080fd5b505af1158015613a32573d6000803e3d6000fd5b50505050505b6001600160a01b038716600090815260116020526040902054613a5b9082612f39565b6001600160a01b0388166000908152601160205260409020818155600101541015613aa1576001600160a01b038716600090815260116020526040902080546001909101555b6001600160a01b038716600090815260116020526040902060020154613ae1576001600160a01b0387166000908152601160205260409020426002909101555b601354613aee9082612f39565b601355600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015613b3c57600080fd5b505afa158015613b50573d6000803e3d6000fd5b505050506040513d6020811015613b6657600080fd5b5051601254909150811115613b7b5760128190555b613b83613e6d565b604080518881526020810184905281516001600160a01b038b16927f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90928290030190a25050505050505050565b60008080613bdf846002612f9c565b90506000613bed8583612fde565b60408051600280825260608083018452939450479392602083019080368337505060055482519293506001600160a01b031691839150600090613c2c57fe5b6001600160a01b039283166020918202929092010152600454825191169082906001908110613c5757fe5b60200260200101906001600160a01b031690816001600160a01b031681525050600360009054906101000a90046001600160a01b03166001600160a01b031663791ac94785600084306000196040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015613d13578181015183820152602001613cfb565b505050509050019650505050505050600060405180830381600087803b158015613d3c57600080fd5b505af1158015613d50573d6000803e3d6000fd5b505050506000613d698347612fde90919063ffffffff16565b6003546005546040805163f305d71960e01b81526001600160a01b039283166004820152602481018990526000604482018190526064820181905230608483015260001960a4830152915194955090938493929092169163f305d71991869160c480830192606092919082900301818588803b158015613de857600080fd5b505af1158015613dfc573d6000803e3d6000fd5b50505050506040513d6060811015613e1357600080fd5b5080516020909101519092509050613e2b8a88612fde565b9850818911613e3b576000613e45565b613e458983612fde565b9850808311613e55576000613e5f565b613e5f8382612fde565b975050505050505050915091565b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015613eb857600080fd5b505afa158015613ecc573d6000803e3d6000fd5b505050506040513d6020811015613ee257600080fd5b5051601254909150600090613ef8906064612f9c565b90506000613f11601b548361302090919063ffffffff16565b90506000613f2a601c548461302090919063ffffffff16565b9050600160205460ff166002811115613f3f57fe5b148015613f5c57506022544290613f599062015180612f39565b11155b8015613f6757508184115b15613f9257602080546000919060ff19166001835b021790555042602255613f8d61307d565b611c18565b600260205460ff166002811115613fa557fe5b148015613fc257506022544290613fbf9062015180612f39565b11155b8015613fcd57508084115b15613fe557602080546001919060ff19168280613f7c565b600060205460ff166002811115613ff857fe5b1480156140055750818411155b1561401d57602080546001919060ff19168280613f7c565b600160205460ff16600281111561403057fe5b14801561403d5750808411155b15611c18576020805460ff1916600217905542602255611c1861307d565b600080808061406b856002612f9c565b905060006140798683612fde565b90506000876001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156140ca57600080fd5b505afa1580156140de573d6000803e3d6000fd5b505050506040513d60208110156140f457600080fd5b5051604080516002808252606080830184529394509091602083019080368337019050509050898160008151811061412857fe5b60200260200101906001600160a01b031690816001600160a01b031681525050888160018151811061415657fe5b60200260200101906001600160a01b031690816001600160a01b031681525050600360009054906101000a90046001600160a01b03166001600160a01b0316635c11d79585600084306000196040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b838110156142125781810151838201526020016141fa565b505050509050019650505050505050600060405180830381600087803b15801561423b57600080fd5b505af115801561424f573d6000803e3d6000fd5b5050505060006142d8838b6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156142a657600080fd5b505afa1580156142ba573d6000803e3d6000fd5b505050506040513d60208110156142d057600080fd5b505190612fde565b6003546040805162e8e33760e81b81526001600160a01b038f811660048301528e81166024830152604482018990526064820185905260006084830181905260a483018190523060c484015260001960e48401529251949550919384938493169163e8e337009161010480830192606092919082900301818787803b15801561436057600080fd5b505af1158015614374573d6000803e3d6000fd5b505050506040513d606081101561438a57600080fd5b508051602082015160409092015190945090925090506143aa8c89612fde565b9a50828b116143ba5760006143c4565b6143c48b84612fde565b9a508184116143d45760006143de565b6143de8483612fde565b9a9e9a9d509b50989950505050505050505050565b6040805160028082526060808301845292602083019080368337505060045482519293506001600160a01b03169183915060009061442d57fe5b6001600160a01b03928316602091820292909201015260055482519116908290600190811061445857fe5b6001600160a01b0392831660209182029290920181019190915260035490546060929190911690637ff36ab5906144c99060219060009060ff16600281111561449d57fe5b60028111156144a857fe5b81526020019081526020016000206006015447612f9c90919063ffffffff16565b600085306000196040518663ffffffff1660e01b81526004018085815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b8381101561453a578181015183820152602001614522565b50505050905001955050505050506000604051808303818588803b15801561456157600080fd5b505af1158015614575573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052602081101561459f57600080fd5b81019080805160405193929190846401000000008211156145bf57600080fd5b9083019060208201858111156145d457600080fd5b82518660208202830111640100000000821117156145f157600080fd5b82525081516020918201928201910280838360005b8381101561461e578181015183820152602001614606565b5050505090500160405250505090506146568160018151811061463d57fe5b6020026020010151601a54612f3990919063ffffffff16565b601a555050565b600081831061466c5781612f93565b5090919050565b6001600160a01b0382166000908152601160205260408120600301548190806146cf576040805162461bcd60e51b8152602060048201526009602482015268139bc81c995dd85c9960ba1b604482015290519081900360640190fd5b6001600160a01b0385166000908152601160205260408120600301556146f481612100565b91506147008183612fde565b6018549093506147109083612f39565b6018556005546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561476957600080fd5b505af115801561477d573d6000803e3d6000fd5b505050506040513d602081101561479357600080fd5b5050604080518481526020810184905281516001600160a01b038716927f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a928290030190a2509250929050565b6000818361486c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614831578181015183820152602001614819565b50505050905090810190601f16801561485e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161487857fe5b0495945050505050565b600081848411156148d45760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614831578181015183820152602001614819565b50505090039056fea7c1f254617196c481de3fce05e7303b9ff1d88bbc9e5adb08638a8e669245865265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220fe6b93ced78f730950b760afbc6cabe376145a6306ce4f4762c5662e5df5df7864736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000002a834c4d2d50cafdca530211581165026ee49ab9000000000000000000000000487dc6fd819dc99959474f6ff5bb91790766b0cb000000000000000000000000000000000000000000000000000000005fe37790
-----Decoded View---------------
Arg [0] : _uniswapRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _drf (address): 0x2a834c4D2D50CAFdCA530211581165026Ee49AB9
Arg [2] : _sdrf (address): 0x487Dc6FD819dc99959474F6FF5BB91790766B0cb
Arg [3] : _farmOpenTime (uint256): 1608742800
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 0000000000000000000000002a834c4d2d50cafdca530211581165026ee49ab9
Arg [2] : 000000000000000000000000487dc6fd819dc99959474f6ff5bb91790766b0cb
Arg [3] : 000000000000000000000000000000000000000000000000000000005fe37790
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,587.28 | 0.2205 | $791.1 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.