More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 18,658 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 70586621 | 36 hrs ago | IN | 0 POL | 0.00303264 | ||||
Approve | 70511149 | 3 days ago | IN | 0 POL | 0.00139032 | ||||
Approve | 70478177 | 4 days ago | IN | 0 POL | 0.00090799 | ||||
Transfer | 70467918 | 4 days ago | IN | 0 POL | 0.00234717 | ||||
Transfer | 70460456 | 4 days ago | IN | 0 POL | 0.00234717 | ||||
Transfer | 70456226 | 4 days ago | IN | 0 POL | 0.00415075 | ||||
Approve | 70451677 | 4 days ago | IN | 0 POL | 0.00181771 | ||||
Approve | 70451677 | 4 days ago | IN | 0 POL | 0.00181771 | ||||
Approve | 70451672 | 4 days ago | IN | 0 POL | 0.00138816 | ||||
Approve | 70447793 | 4 days ago | IN | 0 POL | 0.00139824 | ||||
Transfer | 70399993 | 6 days ago | IN | 0 POL | 0.0035988 | ||||
Approve | 70388113 | 6 days ago | IN | 0 POL | 0.00190626 | ||||
Approve | 70292241 | 8 days ago | IN | 0 POL | 0.0034947 | ||||
Approve | 70274320 | 9 days ago | IN | 0 POL | 0.0023304 | ||||
Approve | 70273511 | 9 days ago | IN | 0 POL | 0.0023304 | ||||
Approve | 70273270 | 9 days ago | IN | 0 POL | 0.0023268 | ||||
Approve | 70272705 | 9 days ago | IN | 0 POL | 0.0023154 | ||||
Transfer | 70272691 | 9 days ago | IN | 0 POL | 0.0033206 | ||||
Transfer | 70260586 | 9 days ago | IN | 0 POL | 0.00183417 | ||||
Transfer | 70259503 | 9 days ago | IN | 0 POL | 0.0018953 | ||||
Transfer | 70259502 | 9 days ago | IN | 0 POL | 0.00189568 | ||||
Approve | 70258940 | 9 days ago | IN | 0 POL | 0.00209736 | ||||
Approve | 70258940 | 9 days ago | IN | 0 POL | 0.00209736 | ||||
Transfer | 70226065 | 10 days ago | IN | 0 POL | 0.00234681 | ||||
Transfer | 70223967 | 10 days ago | IN | 0 POL | 0.00267414 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
68232609 | 59 days ago | 23.6930411 POL | ||||
68232609 | 59 days ago | 47.38608221 POL | ||||
68232609 | 59 days ago | 11.84652055 POL | ||||
68232609 | 59 days ago | 35.53956166 POL | ||||
68232609 | 59 days ago | 8.97875162 POL | ||||
68232609 | 59 days ago | 23.6930411 POL | ||||
68232609 | 59 days ago | 134.47628337 POL | ||||
68232573 | 59 days ago | 23.6930411 POL | ||||
68232573 | 59 days ago | 134.47628337 POL | ||||
68232573 | 59 days ago | 23.6930411 POL | ||||
68232573 | 59 days ago | 134.47628337 POL | ||||
68232573 | 59 days ago | 23.6930411 POL | ||||
68232573 | 59 days ago | 134.47628337 POL | ||||
68232573 | 59 days ago | 23.6930411 POL | ||||
68232573 | 59 days ago | 134.47628337 POL | ||||
68232573 | 59 days ago | 23.6930411 POL | ||||
68232573 | 59 days ago | 134.47628337 POL | ||||
68232573 | 59 days ago | 23.6930411 POL | ||||
68232573 | 59 days ago | 134.47628337 POL | ||||
68232573 | 59 days ago | 23.6930411 POL | ||||
68232573 | 59 days ago | 134.47628337 POL | ||||
68232573 | 59 days ago | 23.6930411 POL | ||||
68232573 | 59 days ago | 134.47628337 POL | ||||
68232573 | 59 days ago | 23.6930411 POL | ||||
68232573 | 59 days ago | 134.47628337 POL |
Loading...
Loading
Contract Name:
YPredictToken
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {IUniswapV2Router02} from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import {IUniswapV2Factory} from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; contract YPredictToken is ERC20, Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; IUniswapV2Router02 public quickSwapRouter; address public quickSwapPair; bool private swapping; address payable public liquidityWallet; address payable public devWallet = payable(0x31B6c544168342E6f5F4283F50F749A3f44B4586); address payable public marketingWallet = payable(0x31B6c544168342E6f5F4283F50F749A3f44B4586); address payable public ctoWallet = payable(0x31B6c544168342E6f5F4283F50F749A3f44B4586); address payable public researchWallet = payable(0x31B6c544168342E6f5F4283F50F749A3f44B4586); uint256 public nativeAmountToSwap = 300000000 ether; uint256 public devFeeOnBuy; uint256 public devFeeOnSell; uint256 public marketingFeeOnBuy; uint256 public marketingFeeOnSell; uint256 public liquidityFeeOnBuy; uint256 public liquidityFeeOnSell; uint256 public ctoFeeOnBuy; uint256 public ctoFeeOnSell; uint256 public researchFeeOnBuy; uint256 public researchFeeOnSell; uint256 public totalFeesOnBuy; uint256 public totalFeesOnSell; uint256 public liquidityShare; uint256 public devShare; uint256 public marketingShare; uint256 public ctoShare; uint256 public researchShare; uint256 public totalShares; bool public SwapAndLiquifyEnabled = false; // exlcude from fees and max transaction amount mapping(address => bool) private _isExcludedFromFees; // getting fee addresses mapping(address => bool) public _isGetFees; // store addresses that are automated market maker pairs. Any transfer to these addresses // could be subject to a maximum transfer amount mapping(address => bool) public automatedMarketMakerPairs; // Contract Events event ExcludeFromFees(address indexed account, bool isExcluded); event GetFee(address indexed account, bool isGetFee); event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded); event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); event DevWalletUpdated( address indexed newDevWallet, address indexed oldDevWallet ); event MarketingWalletUpdated( address indexed newMarketingWallet, address indexed oldMarketingWallet ); event LiquidityWalletUpdated( address indexed newLiquidityWallet, address indexed oldLiquidityWallet ); event CtoWalletUpdated( address indexed newCtoWallet, address indexed oldCtoWallet ); event ResearchWalletUpdated( address indexed newResearchWallet, address indexed oldResearchWallet ); event UpdateQuickSwapRouter( address indexed newAddress, address indexed oldAddress ); event SwapAndLiquify( uint256 tokensSwapped, uint256 nativeReceived, uint256 tokensIntoLiqudity ); event UpdateSwapAndLiquify(bool value); event SetDevFee(uint256 onBuy, uint256 onSell); event SetMarketingFee(uint256 onBuy, uint256 onSell); event SetLiquidityFee(uint256 onBuy, uint256 onSell); event SetCtoFee(uint256 onBuy, uint256 onSell); event SetResearchFee(uint256 onBuy, uint256 onSell); event SetNativeAmountToSwap(uint256 nativeAmountToSwap); constructor() ERC20("yPredict", "YPRED") { devFeeOnBuy = 1; devFeeOnSell = 1; marketingFeeOnBuy = 0; marketingFeeOnSell = 3; liquidityFeeOnBuy = 1; liquidityFeeOnSell = 1; ctoFeeOnBuy = 1; ctoFeeOnSell = 0; researchFeeOnBuy = 2; researchFeeOnSell = 2; devShare = devFeeOnBuy + devFeeOnSell; marketingShare = marketingFeeOnBuy + marketingFeeOnSell; liquidityShare = liquidityFeeOnBuy + liquidityFeeOnSell; ctoShare = ctoFeeOnBuy + ctoFeeOnSell; researchShare = researchFeeOnBuy + researchFeeOnSell; totalFeesOnBuy = devFeeOnBuy .add(marketingFeeOnBuy) .add(liquidityFeeOnBuy) .add(ctoFeeOnBuy) .add(researchFeeOnSell); totalFeesOnSell = devFeeOnSell .add(marketingFeeOnSell) .add(liquidityFeeOnSell) .add(ctoFeeOnSell) .add(researchFeeOnSell); totalShares = totalFeesOnBuy + totalFeesOnSell; IUniswapV2Router02 _quickSwapRouter = IUniswapV2Router02( 0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff ); address _quickSwapPair = IUniswapV2Factory(_quickSwapRouter.factory()) .createPair(address(this), _quickSwapRouter.WETH()); quickSwapRouter = _quickSwapRouter; quickSwapPair = _quickSwapPair; _setAutomatedMarketMakerPair(quickSwapPair, true); // exclude from paying fees or having max transaction amount excludeFromFees(devWallet, true); excludeFromFees(marketingWallet, true); excludeFromFees(liquidityWallet, true); excludeFromFees(ctoWallet, true); excludeFromFees(researchWallet, true); excludeFromFees(address(this), true); excludeFromFees(owner(), true); // set getFee addresses _isGetFees[_quickSwapPair] = true; _transferOwnership(0x6FA6DA462CBA635b0193809332387cDC25Df3e8D); _mint( 0x6FA6DA462CBA635b0193809332387cDC25Df3e8D, 100000000 * (10 ** 18) ); } receive() external payable {} function updateSwapAndLiquifiy(bool value) public onlyOwner { SwapAndLiquifyEnabled = value; emit UpdateSwapAndLiquify(value); } function updateQuickSwapRouter(address newAddress) public onlyOwner { require( newAddress != address(quickSwapRouter), "The router already has that address" ); emit UpdateQuickSwapRouter(newAddress, address(quickSwapRouter)); quickSwapRouter = IUniswapV2Router02(newAddress); address _quickSwapPair; _quickSwapPair = IUniswapV2Factory(quickSwapRouter.factory()).getPair( address(this), quickSwapRouter.WETH() ); if (_quickSwapPair == address(0)) { _quickSwapPair = IUniswapV2Factory(quickSwapRouter.factory()) .createPair(address(this), quickSwapRouter.WETH()); } _setAutomatedMarketMakerPair(quickSwapPair, false); quickSwapPair = _quickSwapPair; _setAutomatedMarketMakerPair(quickSwapPair, true); } function excludeFromFees(address account, bool excluded) public onlyOwner { // require( // _isExcludedFromFees[account] != excluded, // "Account is already the value of 'excluded'" // ); _isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); } function setFeeAccount(address account, bool isGetFee) public onlyOwner { require( _isGetFees[account] != isGetFee, "Account is already the value of 'isGetFee'" ); _isGetFees[account] = isGetFee; emit GetFee(account, isGetFee); } function excludeMultipleAccountsFromFees( address[] calldata accounts, bool excluded ) public onlyOwner { for (uint256 i = 0; i < accounts.length; i++) { _isExcludedFromFees[accounts[i]] = excluded; } emit ExcludeMultipleAccountsFromFees(accounts, excluded); } function setAutomatedMarketMakerPair( address pair, bool value ) public onlyOwner { _setAutomatedMarketMakerPair(pair, value); } function _setAutomatedMarketMakerPair(address pair, bool value) private { require( automatedMarketMakerPairs[pair] != value, "Automated market maker pair is already set to that value" ); automatedMarketMakerPairs[pair] = value; emit SetAutomatedMarketMakerPair(pair, value); } function setNativeAmountToSwap(uint256 _nativeAmount) public onlyOwner { nativeAmountToSwap = _nativeAmount; emit SetNativeAmountToSwap(nativeAmountToSwap); } function updateDevWallet(address newDevWallet) public onlyOwner { require( newDevWallet != devWallet, "The dev wallet is already this address" ); excludeFromFees(newDevWallet, true); excludeFromFees(devWallet, false); emit DevWalletUpdated(newDevWallet, devWallet); devWallet = payable(newDevWallet); } function updateMarketingWallet( address newMarketingWallet ) public onlyOwner { require( newMarketingWallet != marketingWallet, "The marketing wallet is already this address" ); excludeFromFees(newMarketingWallet, true); excludeFromFees(marketingWallet, false); emit MarketingWalletUpdated(newMarketingWallet, marketingWallet); marketingWallet = payable(newMarketingWallet); } function updateLiquidityWallet( address _liquidityWallet ) external onlyOwner { require( _liquidityWallet != liquidityWallet, "The liquidity Wallet is already this address" ); excludeFromFees(_liquidityWallet, true); emit LiquidityWalletUpdated(_liquidityWallet, liquidityWallet); liquidityWallet = payable(_liquidityWallet); } function updateCtoWallet(address _ctoWallet) external onlyOwner { require( _ctoWallet != ctoWallet, "The CTO wallet is already this address" ); excludeFromFees(_ctoWallet, true); emit CtoWalletUpdated(_ctoWallet, ctoWallet); ctoWallet = payable(_ctoWallet); } function updateResearchWallet(address _researchWallet) external onlyOwner { require( _researchWallet != researchWallet, "The research wallet is already this address" ); excludeFromFees(_researchWallet, true); emit ResearchWalletUpdated(_researchWallet, researchWallet); researchWallet = payable(_researchWallet); } function isExcludedFromFees(address account) public view returns (bool) { return _isExcludedFromFees[account]; } function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "BEP20: transfer from the zero address"); require(to != address(0), "BEP20: transfer to the zero address"); if (amount == 0) { super._transfer(from, to, 0); return; } if (SwapAndLiquifyEnabled) { uint256 contractTokenBalance = balanceOf(address(this)); uint256 nativeTokenAmount = _getTokenAmountFromNative(); bool canSwap = contractTokenBalance >= nativeTokenAmount; if (canSwap && !swapping && !automatedMarketMakerPairs[from]) { swapping = true; // Set number of tokens to sell to nativeTokenAmount contractTokenBalance = nativeTokenAmount; swapTokens(contractTokenBalance); swapping = false; } } // indicates if fee should be deducted from transfer bool takeFee = true; // if any account belongs to _isExcludedFromFee account then remove the fee if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) { takeFee = false; } if (takeFee) { uint256 fees; if (_isGetFees[from] || _isGetFees[to]) { if (_isGetFees[from]) { fees = amount.mul(totalFeesOnBuy).div(10 ** 2); super._transfer(from, address(this), fees); } else { fees = amount.mul(totalFeesOnSell).div(10 ** 2); super._transfer(from, address(this), fees); } amount = amount.sub(fees); } } super._transfer(from, to, amount); } function swapTokens(uint256 tokenAmount) private { uint256 tokensForLiquidity = tokenAmount.mul(liquidityShare).div( totalShares ); uint256 swapTokenAmount = tokenAmount.sub(tokensForLiquidity); swapTokensForNative(swapTokenAmount); uint256 swappedNative = address(this).balance; uint256 nativeForMarketing = swappedNative.mul(marketingShare).div( totalShares ); uint256 nativeForLiquidity = swappedNative.mul(liquidityShare).div( totalShares ); uint256 nativeForCto = swappedNative.mul(ctoShare).div(totalShares); uint256 nativeForResearch = swappedNative.mul(researchShare).div( totalShares ); uint256 nativeForDev = swappedNative .sub(nativeForMarketing) .sub(nativeForLiquidity) .sub(nativeForCto) .sub(nativeForResearch); if (tokensForLiquidity > 0) { addLiquidity(tokensForLiquidity, nativeForLiquidity); } if (nativeForMarketing > 0) { transferNativeToMarketingWallet(nativeForMarketing); } if (nativeForCto > 0) { transferNativeToCtoWallet(nativeForCto); } if (nativeForResearch > 0) { transferNativeToResearchWallet(nativeForResearch); } if (nativeForDev > 0) { transferNativeToDevWallet(nativeForDev); } } function addLiquidity(uint256 tokenAmount, uint256 nativeAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(quickSwapRouter), tokenAmount); // add the liquidity quickSwapRouter.addLiquidityETH{value: nativeAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable liquidityWallet, block.timestamp ); } // Swap tokens on PacakeSwap function swapTokensForNative(uint256 tokenAmount) private { // generate the quickswap pair path of token -> WETH address[] memory path = new address[](2); path[0] = address(this); path[1] = quickSwapRouter.WETH(); _approve(address(this), address(quickSwapRouter), tokenAmount); // make the swap quickSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of Native path, address(this), block.timestamp + 120 ); } function _getTokenAmountFromNative() internal view returns (uint256) { uint256 tokenAmount; address[] memory path = new address[](2); path[0] = quickSwapRouter.WETH(); path[1] = address(this); uint256[] memory amounts = quickSwapRouter.getAmountsOut( nativeAmountToSwap, path ); tokenAmount = amounts[1]; return tokenAmount; } function transferNativeToDevWallet(uint256 amount) private { devWallet.transfer(amount); } function transferNativeToMarketingWallet(uint256 amount) private { marketingWallet.transfer(amount); } function transferNativeToCtoWallet(uint256 amount) private { ctoWallet.transfer(amount); } function transferNativeToResearchWallet(uint256 amount) private { researchWallet.transfer(amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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) { return a + b; } /** * @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 a - b; } /** * @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) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting 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) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
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 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; }
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: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://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"); (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"); (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"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
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": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newCtoWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldCtoWallet","type":"address"}],"name":"CtoWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newDevWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldDevWallet","type":"address"}],"name":"DevWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeMultipleAccountsFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isGetFee","type":"bool"}],"name":"GetFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newLiquidityWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldLiquidityWallet","type":"address"}],"name":"LiquidityWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newMarketingWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldMarketingWallet","type":"address"}],"name":"MarketingWalletUpdated","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":[{"indexed":true,"internalType":"address","name":"newResearchWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldResearchWallet","type":"address"}],"name":"ResearchWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"onBuy","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"onSell","type":"uint256"}],"name":"SetCtoFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"onBuy","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"onSell","type":"uint256"}],"name":"SetDevFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"onBuy","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"onSell","type":"uint256"}],"name":"SetLiquidityFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"onBuy","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"onSell","type":"uint256"}],"name":"SetMarketingFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"nativeAmountToSwap","type":"uint256"}],"name":"SetNativeAmountToSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"onBuy","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"onSell","type":"uint256"}],"name":"SetResearchFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nativeReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateQuickSwapRouter","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"UpdateSwapAndLiquify","type":"event"},{"inputs":[],"name":"SwapAndLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isGetFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ctoFeeOnBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ctoFeeOnSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ctoShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ctoWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devFeeOnBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFeeOnSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeMultipleAccountsFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFeeOnBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFeeOnSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingFeeOnBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingFeeOnSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nativeAmountToSwap","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":"quickSwapPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quickSwapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"researchFeeOnBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"researchFeeOnSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"researchShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"researchWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isGetFee","type":"bool"}],"name":"setFeeAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nativeAmount","type":"uint256"}],"name":"setNativeAmountToSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeesOnBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeesOnSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ctoWallet","type":"address"}],"name":"updateCtoWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDevWallet","type":"address"}],"name":"updateDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_liquidityWallet","type":"address"}],"name":"updateLiquidityWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newMarketingWallet","type":"address"}],"name":"updateMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateQuickSwapRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_researchWallet","type":"address"}],"name":"updateResearchWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"updateSwapAndLiquifiy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600980547331b6c544168342e6f5f4283f50f749a3f44b45866001600160a01b03199182168117909255600a8054821683179055600b8054821683179055600c805490911690911790556af8277896582678ac000000600d556020805460ff191690553480156200007457600080fd5b5060408051808201825260088152671e541c99591a58dd60c21b602080830191825283518085019094526005845264165414915160da1b908401528151919291620000c29160039162000823565b508051620000d890600490602084019062000823565b505050620000f5620000ef6200051d60201b60201c565b62000521565b6001600e819055600f81905560006010819055600360115560128290556013829055601482905560155560026016819055601755620001359080620008f4565b601b556011546010546200014a9190620008f4565b601c556013546012546200015f9190620008f4565b601a55601554601454620001749190620008f4565b601d55601754601654620001899190620008f4565b601e81905550620001d6601754620001c2601454620001c2601254620001c2601054600e546200057360201b62001a2e1790919060201c565b6200057360201b62001a2e1790919060201c565b6018819055506200020f601754620001c2601554620001c2601354620001c2601154600f546200057360201b62001a2e1790919060201c565b6019819055601854620002239190620008f4565b601f81905550600073a5e0829caced8ffdd4de3c43696c57f7d7a678ff90506000816001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156200027e57600080fd5b505afa15801562000293573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b99190620008c9565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200030257600080fd5b505afa15801562000317573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200033d9190620008c9565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156200038657600080fd5b505af11580156200039b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003c19190620008c9565b600680546001600160a01b038086166001600160a01b031992831617909255600780549284169290911682179055909150620003ff90600162000588565b60095462000418906001600160a01b0316600162000677565b600a5462000431906001600160a01b0316600162000677565b6008546200044a906001600160a01b0316600162000677565b600b5462000463906001600160a01b0316600162000677565b600c546200047c906001600160a01b0316600162000677565b6200048930600162000677565b620004a8620004a06005546001600160a01b031690565b600162000677565b6001600160a01b0381166000908152602260205260409020805460ff19166001179055620004ea736fa6da462cba635b0193809332387cdc25df3e8d62000521565b62000515736fa6da462cba635b0193809332387cdc25df3e8d6a52b7d2dcc80cd2e4000000620006e0565b505062000958565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000620005818284620008f4565b9392505050565b6001600160a01b03821660009081526023602052604090205460ff1615158115151415620006235760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c7565000000000000000060648201526084015b60405180910390fd5b6001600160a01b038216600081815260236020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b62000681620007c5565b6001600160a01b038216600081815260216020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b038216620007385760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016200061a565b80600260008282546200074c9190620008f4565b90915550506001600160a01b038216600090815260208190526040812080548392906200077b908490620008f4565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6005546001600160a01b03163314620008215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200061a565b565b82805462000831906200091b565b90600052602060002090601f016020900481019282620008555760008555620008a0565b82601f106200087057805160ff1916838001178555620008a0565b82800160010185558215620008a0579182015b82811115620008a057825182559160200191906001019062000883565b50620008ae929150620008b2565b5090565b5b80821115620008ae5760008155600101620008b3565b600060208284031215620008dc57600080fd5b81516001600160a01b03811681146200058157600080fd5b600082198211156200091657634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200093057607f821691505b602082108114156200095257634e487b7160e01b600052602260045260246000fd5b50919050565b61305c80620009686000396000f3fe60806040526004361061036f5760003560e01c80637b3c83b1116101c6578063a9059cbb116100f7578063d469801611610095578063e189eb421161006f578063e189eb42146109d2578063e37ba8f9146109f2578063f2fde38b14610a12578063f574673114610a3257600080fd5b8063d469801614610956578063dc4c7dbc14610976578063dd62ed3e1461098c57600080fd5b8063b3e1c051116100d1578063b3e1c051146108c6578063b62496f5146108e6578063c024666814610916578063c492f0461461093657600080fd5b8063a9059cbb14610870578063aacebbe314610890578063aed04fae146108b057600080fd5b806395d89b4111610164578063a254b41e1161013e578063a254b41e146107f0578063a457c2d714610810578063a4de3c1914610830578063a7e643af1461085057600080fd5b806395d89b41146107a55780639a7a23d6146107ba5780639c4afbbd146107da57600080fd5b80638ad66fe4116101a05780638ad66fe41461073b5780638da5cb5b146107515780638ea5220f1461076f5780639502c4261461078f57600080fd5b80637b3c83b1146106df5780638300084c146106f55780638768a9cd1461070b57600080fd5b8063423ce9cc116102a05780635fc2e5961161023e57806370a082311161021857806370a082311461065e578063715018a61461069457806375f0a874146106a9578063766ea415146106c957600080fd5b80635fc2e5961461060857806368b4cac91461061e5780636d2dda021461063e57600080fd5b80634fbee1931161027a5780634fbee19314610579578063577d7dc7146105b25780635bdd18d6146105c85780635f2586ec146105e857600080fd5b8063423ce9cc1461051157806342db14b31461052b57806345ac46581461054157600080fd5b806323b872dd1161030d578063313ce567116102e7578063313ce567146104a957806339509351146104c557806339899f26146104e55780633a98ef39146104fb57600080fd5b806323b872dd1461045d57806325f3a50c1461047d5780632ce86fbf1461049357600080fd5b8063095ea7b311610349578063095ea7b3146103e057806315291cd41461041057806318160ddd146104265780631816467f1461043b57600080fd5b806306fdde031461037b578063087ed972146103a657806309218ee7146103ca57600080fd5b3661037657005b600080fd5b34801561038757600080fd5b50610390610a48565b60405161039d9190612d80565b60405180910390f35b3480156103b257600080fd5b506103bc60195481565b60405190815260200161039d565b3480156103d657600080fd5b506103bc601c5481565b3480156103ec57600080fd5b506104006103fb366004612aee565b610ada565b604051901515815260200161039d565b34801561041c57600080fd5b506103bc601a5481565b34801561043257600080fd5b506002546103bc565b34801561044757600080fd5b5061045b610456366004612a05565b610af2565b005b34801561046957600080fd5b50610400610478366004612a78565b610c1a565b34801561048957600080fd5b506103bc60145481565b34801561049f57600080fd5b506103bc60135481565b3480156104b557600080fd5b506040516012815260200161039d565b3480156104d157600080fd5b506104006104e0366004612aee565b610c3e565b3480156104f157600080fd5b506103bc600e5481565b34801561050757600080fd5b506103bc601f5481565b34801561051d57600080fd5b506020546104009060ff1681565b34801561053757600080fd5b506103bc60165481565b34801561054d57600080fd5b50600b54610561906001600160a01b031681565b6040516001600160a01b03909116815260200161039d565b34801561058557600080fd5b50610400610594366004612a05565b6001600160a01b031660009081526021602052604090205460ff1690565b3480156105be57600080fd5b506103bc601e5481565b3480156105d457600080fd5b50600754610561906001600160a01b031681565b3480156105f457600080fd5b5061045b610603366004612a05565b610c7d565b34801561061457600080fd5b506103bc60105481565b34801561062a57600080fd5b5061045b610639366004612c81565b611151565b34801561064a57600080fd5b50600c54610561906001600160a01b031681565b34801561066a57600080fd5b506103bc610679366004612a05565b6001600160a01b031660009081526020819052604090205490565b3480156106a057600080fd5b5061045b6111bc565b3480156106b557600080fd5b50600a54610561906001600160a01b031681565b3480156106d557600080fd5b506103bc60185481565b3480156106eb57600080fd5b506103bc60125481565b34801561070157600080fd5b506103bc601d5481565b34801561071757600080fd5b50610400610726366004612a05565b60226020526000908152604090205460ff1681565b34801561074757600080fd5b506103bc60155481565b34801561075d57600080fd5b506005546001600160a01b0316610561565b34801561077b57600080fd5b50600954610561906001600160a01b031681565b34801561079b57600080fd5b506103bc600f5481565b3480156107b157600080fd5b506103906111d0565b3480156107c657600080fd5b5061045b6107d5366004612ab9565b6111df565b3480156107e657600080fd5b506103bc600d5481565b3480156107fc57600080fd5b5061045b61080b366004612c9c565b6111f1565b34801561081c57600080fd5b5061040061082b366004612aee565b61122e565b34801561083c57600080fd5b5061045b61084b366004612ab9565b6112d8565b34801561085c57600080fd5b5061045b61086b366004612a05565b6113f3565b34801561087c57600080fd5b5061040061088b366004612aee565b6114ff565b34801561089c57600080fd5b5061045b6108ab366004612a05565b61150d565b3480156108bc57600080fd5b506103bc601b5481565b3480156108d257600080fd5b5061045b6108e1366004612a05565b611630565b3480156108f257600080fd5b50610400610901366004612a05565b60236020526000908152604090205460ff1681565b34801561092257600080fd5b5061045b610931366004612ab9565b61173c565b34801561094257600080fd5b5061045b610951366004612b1a565b6117ba565b34801561096257600080fd5b50600854610561906001600160a01b031681565b34801561098257600080fd5b506103bc60115481565b34801561099857600080fd5b506103bc6109a7366004612a3f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156109de57600080fd5b50600654610561906001600160a01b031681565b3480156109fe57600080fd5b5061045b610a0d366004612a05565b611892565b348015610a1e57600080fd5b5061045b610a2d366004612a05565b61199e565b348015610a3e57600080fd5b506103bc60175481565b606060038054610a5790612ef7565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8390612ef7565b8015610ad05780601f10610aa557610100808354040283529160200191610ad0565b820191906000526020600020905b815481529060010190602001808311610ab357829003601f168201915b5050505050905090565b600033610ae8818585611a41565b5060019392505050565b610afa611b99565b6009546001600160a01b0382811691161415610b835760405162461bcd60e51b815260206004820152602660248201527f546865206465762077616c6c657420697320616c72656164792074686973206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610b8e81600161173c565b600954610ba5906001600160a01b0316600061173c565b6009546040516001600160a01b03918216918316907f0db17895a9d092fb3ca24d626f2150dd80c185b0706b36f1040ee239f56cb87190600090a3600980547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600033610c28858285611bf3565b610c33858585611ca3565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190610ae89082908690610c78908790612e50565b611a41565b610c85611b99565b6006546001600160a01b0382811691161415610d095760405162461bcd60e51b815260206004820152602360248201527f54686520726f7574657220616c7265616479206861732074686174206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b7a565b6006546040516001600160a01b03918216918316907f1a6cd3f30dba8cd73c2530749ea63c2c644fee629e4dc6850c16ae09ab2f31db90600090a3600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038316908117909155604080517fc45a015500000000000000000000000000000000000000000000000000000000815290516000929163c45a0155916004808301926020929190829003018186803b158015610dcc57600080fd5b505afa158015610de0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e049190612a22565b6001600160a01b031663e6a4390530600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015610e6157600080fd5b505afa158015610e75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e999190612a22565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b158015610ef757600080fd5b505afa158015610f0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2f9190612a22565b90506001600160a01b0381166110f557600660009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015610f8d57600080fd5b505afa158015610fa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc59190612a22565b6001600160a01b031663c9c6539630600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561102257600080fd5b505afa158015611036573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105a9190612a22565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156110ba57600080fd5b505af11580156110ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f29190612a22565b90505b60075461110c906001600160a01b03166000611fd1565b600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03831690811790915561114d906001611fd1565b5050565b611159611b99565b602080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682151590811782556040519081527f701507a13d5701687328d70ea5a717a33a062f46c229a785b315fb4517fef06991015b60405180910390a150565b6111c4611b99565b6111ce60006120d8565b565b606060048054610a5790612ef7565b6111e7611b99565b61114d8282611fd1565b6111f9611b99565b600d8190556040518181527f7c57306552f9ca1d69c9c779932ef43e8bc6f04d7718d9e1fbf6a877013ececd906020016111b1565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156112cb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610b7a565b610c338286868403611a41565b6112e0611b99565b6001600160a01b03821660009081526022602052604090205460ff16151581151514156113755760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f662060448201527f27697347657446656527000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b03821660008181526022602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527fd3d1fab5db42ae85293059c69e12bf01ffffb1dd5ff4caa5e5568f99fc387f2491015b60405180910390a25050565b6113fb611b99565b600c546001600160a01b038281169116141561147f5760405162461bcd60e51b815260206004820152602b60248201527f5468652072657365617263682077616c6c657420697320616c7265616479207460448201527f68697320616464726573730000000000000000000000000000000000000000006064820152608401610b7a565b61148a81600161173c565b600c546040516001600160a01b03918216918316907f4ed7074fd83d2988c1fc2bb0b2be70d256d1fbf6f1333cab788623497e23e77290600090a3600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600033610ae8818585611ca3565b611515611b99565b600a546001600160a01b03828116911614156115995760405162461bcd60e51b815260206004820152602c60248201527f546865206d61726b6574696e672077616c6c657420697320616c72656164792060448201527f74686973206164647265737300000000000000000000000000000000000000006064820152608401610b7a565b6115a481600161173c565b600a546115bb906001600160a01b0316600061173c565b600a546040516001600160a01b03918216918316907f8616c7a330e3cf61290821331585511f1e2778171e2b005fb5ec60cfe874dc6790600090a3600a80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611638611b99565b600b546001600160a01b03828116911614156116bc5760405162461bcd60e51b815260206004820152602660248201527f5468652043544f2077616c6c657420697320616c72656164792074686973206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b7a565b6116c781600161173c565b600b546040516001600160a01b03918216918316907ffb0ff0db4b4a5f7ae70e91d6d8765885e8b7ebefa75211c996e1af8cc25f00ed90600090a3600b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611744611b99565b6001600160a01b03821660008181526021602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df791016113e7565b6117c2611b99565b60005b828110156118515781602160008686858181106117e4576117e4612fb3565b90506020020160208101906117f99190612a05565b6001600160a01b03168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061184981612f4b565b9150506117c5565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b3583838360405161188593929190612d27565b60405180910390a1505050565b61189a611b99565b6008546001600160a01b038281169116141561191e5760405162461bcd60e51b815260206004820152602c60248201527f546865206c69717569646974792057616c6c657420697320616c72656164792060448201527f74686973206164647265737300000000000000000000000000000000000000006064820152608401610b7a565b61192981600161173c565b6008546040516001600160a01b03918216918316907f6080503d1da552ae8eb4b7b8a20245d9fabed014180510e7d1a05ea08fdb0f3e90600090a3600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6119a6611b99565b6001600160a01b038116611a225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b7a565b611a2b816120d8565b50565b6000611a3a8284612e50565b9392505050565b6001600160a01b038316611abc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b038216611b385760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146111ce5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b7a565b6001600160a01b038381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611c9d5781811015611c905760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b7a565b611c9d8484848403611a41565b50505050565b6001600160a01b038316611d1f5760405162461bcd60e51b815260206004820152602560248201527f42455032303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b038216611d9b5760405162461bcd60e51b815260206004820152602360248201527f42455032303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b7a565b80611db157611dac83836000612142565b505050565b60205460ff1615611ea8573060009081526020819052604081205490611dd5612359565b90508082108015908190611e04575060075474010000000000000000000000000000000000000000900460ff16155b8015611e2957506001600160a01b03861660009081526023602052604090205460ff16155b15611ea457600780547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790559091508190611e7b82612554565b600780547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690555b5050505b6001600160a01b03831660009081526021602052604090205460019060ff1680611eea57506001600160a01b03831660009081526021602052604090205460ff165b15611ef3575060005b8015611fc6576001600160a01b03841660009081526022602052604081205460ff1680611f3857506001600160a01b03841660009081526022602052604090205460ff165b15611fc4576001600160a01b03851660009081526022602052604090205460ff1615611f9057611f7e6064611f786018548661267e90919063ffffffff16565b9061268a565b9050611f8b853083612142565b611fb7565b611faa6064611f786019548661267e90919063ffffffff16565b9050611fb7853083612142565b611fc18382612696565b92505b505b611c9d848484612142565b6001600160a01b03821660009081526023602052604090205460ff16151581151514156120665760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610b7a565b6001600160a01b03821660008181526023602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166121be5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b03821661223a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b038316600090815260208190526040902054818110156122c95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612300908490612e50565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161234c91815260200190565b60405180910390a3611c9d565b6040805160028082526060820183526000928392839290916020830190803683375050600654604080517fad5c464800000000000000000000000000000000000000000000000000000000815290519394506001600160a01b039091169263ad5c464892506004808301926020929190829003018186803b1580156123dd57600080fd5b505afa1580156123f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124159190612a22565b8160008151811061242857612428612fb3565b60200260200101906001600160a01b031690816001600160a01b031681525050308160018151811061245c5761245c612fb3565b6001600160a01b039283166020918202929092010152600654600d546040517fd06ca61f000000000000000000000000000000000000000000000000000000008152600093929092169163d06ca61f916124ba918690600401612df3565b60006040518083038186803b1580156124d257600080fd5b505afa1580156124e6573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261252c9190810190612b9e565b90508060018151811061254157612541612fb3565b6020026020010151925082935050505090565b6000612571601f54611f78601a548561267e90919063ffffffff16565b9050600061257f8383612696565b905061258a816126a2565b600047905060006125ac601f54611f78601c548561267e90919063ffffffff16565b905060006125cb601f54611f78601a548661267e90919063ffffffff16565b905060006125ea601f54611f78601d548761267e90919063ffffffff16565b90506000612609601f54611f78601e548861267e90919063ffffffff16565b905060006126258261261f858188818c8c612696565b90612696565b9050871561263757612637888561282c565b84156126465761264685612908565b82156126555761265583612942565b8115612664576126648261297c565b801561267357612673816129b6565b505050505050505050565b6000611a3a8284612ea3565b6000611a3a8284612e68565b6000611a3a8284612ee0565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106126d7576126d7612fb3565b6001600160a01b03928316602091820292909201810191909152600654604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c4648926004808301939192829003018186803b15801561274457600080fd5b505afa158015612758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061277c9190612a22565b8160018151811061278f5761278f612fb3565b6001600160a01b0392831660209182029290920101526006546127b59130911684611a41565b6006546001600160a01b031663791ac94783600084306127d6426078612e50565b6040518663ffffffff1660e01b81526004016127f6959493929190612e14565b600060405180830381600087803b15801561281057600080fd5b505af1158015612824573d6000803e3d6000fd5b505050505050565b6006546128449030906001600160a01b031684611a41565b6006546008546040517ff305d7190000000000000000000000000000000000000000000000000000000081523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c4016060604051808303818588803b1580156128c857600080fd5b505af11580156128dc573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906129019190612cb5565b5050505050565b600a546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561114d573d6000803e3d6000fd5b600b546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561114d573d6000803e3d6000fd5b600c546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561114d573d6000803e3d6000fd5b6009546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561114d573d6000803e3d6000fd5b80358015158114612a0057600080fd5b919050565b600060208284031215612a1757600080fd5b8135611a3a81613011565b600060208284031215612a3457600080fd5b8151611a3a81613011565b60008060408385031215612a5257600080fd5b8235612a5d81613011565b91506020830135612a6d81613011565b809150509250929050565b600080600060608486031215612a8d57600080fd5b8335612a9881613011565b92506020840135612aa881613011565b929592945050506040919091013590565b60008060408385031215612acc57600080fd5b8235612ad781613011565b9150612ae5602084016129f0565b90509250929050565b60008060408385031215612b0157600080fd5b8235612b0c81613011565b946020939093013593505050565b600080600060408486031215612b2f57600080fd5b833567ffffffffffffffff80821115612b4757600080fd5b818601915086601f830112612b5b57600080fd5b813581811115612b6a57600080fd5b8760208260051b8501011115612b7f57600080fd5b602092830195509350612b9591860190506129f0565b90509250925092565b60006020808385031215612bb157600080fd5b825167ffffffffffffffff80821115612bc957600080fd5b818501915085601f830112612bdd57600080fd5b815181811115612bef57612bef612fe2565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f83011681018181108582111715612c3257612c32612fe2565b604052828152858101935084860182860187018a1015612c5157600080fd5b600095505b83861015612c74578051855260019590950194938601938601612c56565b5098975050505050505050565b600060208284031215612c9357600080fd5b611a3a826129f0565b600060208284031215612cae57600080fd5b5035919050565b600080600060608486031215612cca57600080fd5b8351925060208401519150604084015190509250925092565b600081518084526020808501945080840160005b83811015612d1c5781516001600160a01b031687529582019590820190600101612cf7565b509495945050505050565b6040808252810183905260008460608301825b86811015612d6a578235612d4d81613011565b6001600160a01b0316825260209283019290910190600101612d3a565b5080925050508215156020830152949350505050565b600060208083528351808285015260005b81811015612dad57858101830151858201604001528201612d91565b81811115612dbf576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b828152604060208201526000612e0c6040830184612ce3565b949350505050565b85815284602082015260a060408201526000612e3360a0830186612ce3565b6001600160a01b0394909416606083015250608001529392505050565b60008219821115612e6357612e63612f84565b500190565b600082612e9e577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612edb57612edb612f84565b500290565b600082821015612ef257612ef2612f84565b500390565b600181811c90821680612f0b57607f821691505b60208210811415612f45577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612f7d57612f7d612f84565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b0381168114611a2b57600080fdfea2646970667358221220eb34ebd0d669b6409ad1213380615d9a74604a2a68353ab309edf23e87d5042964736f6c63430008070033
Deployed Bytecode
0x60806040526004361061036f5760003560e01c80637b3c83b1116101c6578063a9059cbb116100f7578063d469801611610095578063e189eb421161006f578063e189eb42146109d2578063e37ba8f9146109f2578063f2fde38b14610a12578063f574673114610a3257600080fd5b8063d469801614610956578063dc4c7dbc14610976578063dd62ed3e1461098c57600080fd5b8063b3e1c051116100d1578063b3e1c051146108c6578063b62496f5146108e6578063c024666814610916578063c492f0461461093657600080fd5b8063a9059cbb14610870578063aacebbe314610890578063aed04fae146108b057600080fd5b806395d89b4111610164578063a254b41e1161013e578063a254b41e146107f0578063a457c2d714610810578063a4de3c1914610830578063a7e643af1461085057600080fd5b806395d89b41146107a55780639a7a23d6146107ba5780639c4afbbd146107da57600080fd5b80638ad66fe4116101a05780638ad66fe41461073b5780638da5cb5b146107515780638ea5220f1461076f5780639502c4261461078f57600080fd5b80637b3c83b1146106df5780638300084c146106f55780638768a9cd1461070b57600080fd5b8063423ce9cc116102a05780635fc2e5961161023e57806370a082311161021857806370a082311461065e578063715018a61461069457806375f0a874146106a9578063766ea415146106c957600080fd5b80635fc2e5961461060857806368b4cac91461061e5780636d2dda021461063e57600080fd5b80634fbee1931161027a5780634fbee19314610579578063577d7dc7146105b25780635bdd18d6146105c85780635f2586ec146105e857600080fd5b8063423ce9cc1461051157806342db14b31461052b57806345ac46581461054157600080fd5b806323b872dd1161030d578063313ce567116102e7578063313ce567146104a957806339509351146104c557806339899f26146104e55780633a98ef39146104fb57600080fd5b806323b872dd1461045d57806325f3a50c1461047d5780632ce86fbf1461049357600080fd5b8063095ea7b311610349578063095ea7b3146103e057806315291cd41461041057806318160ddd146104265780631816467f1461043b57600080fd5b806306fdde031461037b578063087ed972146103a657806309218ee7146103ca57600080fd5b3661037657005b600080fd5b34801561038757600080fd5b50610390610a48565b60405161039d9190612d80565b60405180910390f35b3480156103b257600080fd5b506103bc60195481565b60405190815260200161039d565b3480156103d657600080fd5b506103bc601c5481565b3480156103ec57600080fd5b506104006103fb366004612aee565b610ada565b604051901515815260200161039d565b34801561041c57600080fd5b506103bc601a5481565b34801561043257600080fd5b506002546103bc565b34801561044757600080fd5b5061045b610456366004612a05565b610af2565b005b34801561046957600080fd5b50610400610478366004612a78565b610c1a565b34801561048957600080fd5b506103bc60145481565b34801561049f57600080fd5b506103bc60135481565b3480156104b557600080fd5b506040516012815260200161039d565b3480156104d157600080fd5b506104006104e0366004612aee565b610c3e565b3480156104f157600080fd5b506103bc600e5481565b34801561050757600080fd5b506103bc601f5481565b34801561051d57600080fd5b506020546104009060ff1681565b34801561053757600080fd5b506103bc60165481565b34801561054d57600080fd5b50600b54610561906001600160a01b031681565b6040516001600160a01b03909116815260200161039d565b34801561058557600080fd5b50610400610594366004612a05565b6001600160a01b031660009081526021602052604090205460ff1690565b3480156105be57600080fd5b506103bc601e5481565b3480156105d457600080fd5b50600754610561906001600160a01b031681565b3480156105f457600080fd5b5061045b610603366004612a05565b610c7d565b34801561061457600080fd5b506103bc60105481565b34801561062a57600080fd5b5061045b610639366004612c81565b611151565b34801561064a57600080fd5b50600c54610561906001600160a01b031681565b34801561066a57600080fd5b506103bc610679366004612a05565b6001600160a01b031660009081526020819052604090205490565b3480156106a057600080fd5b5061045b6111bc565b3480156106b557600080fd5b50600a54610561906001600160a01b031681565b3480156106d557600080fd5b506103bc60185481565b3480156106eb57600080fd5b506103bc60125481565b34801561070157600080fd5b506103bc601d5481565b34801561071757600080fd5b50610400610726366004612a05565b60226020526000908152604090205460ff1681565b34801561074757600080fd5b506103bc60155481565b34801561075d57600080fd5b506005546001600160a01b0316610561565b34801561077b57600080fd5b50600954610561906001600160a01b031681565b34801561079b57600080fd5b506103bc600f5481565b3480156107b157600080fd5b506103906111d0565b3480156107c657600080fd5b5061045b6107d5366004612ab9565b6111df565b3480156107e657600080fd5b506103bc600d5481565b3480156107fc57600080fd5b5061045b61080b366004612c9c565b6111f1565b34801561081c57600080fd5b5061040061082b366004612aee565b61122e565b34801561083c57600080fd5b5061045b61084b366004612ab9565b6112d8565b34801561085c57600080fd5b5061045b61086b366004612a05565b6113f3565b34801561087c57600080fd5b5061040061088b366004612aee565b6114ff565b34801561089c57600080fd5b5061045b6108ab366004612a05565b61150d565b3480156108bc57600080fd5b506103bc601b5481565b3480156108d257600080fd5b5061045b6108e1366004612a05565b611630565b3480156108f257600080fd5b50610400610901366004612a05565b60236020526000908152604090205460ff1681565b34801561092257600080fd5b5061045b610931366004612ab9565b61173c565b34801561094257600080fd5b5061045b610951366004612b1a565b6117ba565b34801561096257600080fd5b50600854610561906001600160a01b031681565b34801561098257600080fd5b506103bc60115481565b34801561099857600080fd5b506103bc6109a7366004612a3f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156109de57600080fd5b50600654610561906001600160a01b031681565b3480156109fe57600080fd5b5061045b610a0d366004612a05565b611892565b348015610a1e57600080fd5b5061045b610a2d366004612a05565b61199e565b348015610a3e57600080fd5b506103bc60175481565b606060038054610a5790612ef7565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8390612ef7565b8015610ad05780601f10610aa557610100808354040283529160200191610ad0565b820191906000526020600020905b815481529060010190602001808311610ab357829003601f168201915b5050505050905090565b600033610ae8818585611a41565b5060019392505050565b610afa611b99565b6009546001600160a01b0382811691161415610b835760405162461bcd60e51b815260206004820152602660248201527f546865206465762077616c6c657420697320616c72656164792074686973206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610b8e81600161173c565b600954610ba5906001600160a01b0316600061173c565b6009546040516001600160a01b03918216918316907f0db17895a9d092fb3ca24d626f2150dd80c185b0706b36f1040ee239f56cb87190600090a3600980547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600033610c28858285611bf3565b610c33858585611ca3565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190610ae89082908690610c78908790612e50565b611a41565b610c85611b99565b6006546001600160a01b0382811691161415610d095760405162461bcd60e51b815260206004820152602360248201527f54686520726f7574657220616c7265616479206861732074686174206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b7a565b6006546040516001600160a01b03918216918316907f1a6cd3f30dba8cd73c2530749ea63c2c644fee629e4dc6850c16ae09ab2f31db90600090a3600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038316908117909155604080517fc45a015500000000000000000000000000000000000000000000000000000000815290516000929163c45a0155916004808301926020929190829003018186803b158015610dcc57600080fd5b505afa158015610de0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e049190612a22565b6001600160a01b031663e6a4390530600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015610e6157600080fd5b505afa158015610e75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e999190612a22565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b158015610ef757600080fd5b505afa158015610f0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2f9190612a22565b90506001600160a01b0381166110f557600660009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015610f8d57600080fd5b505afa158015610fa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc59190612a22565b6001600160a01b031663c9c6539630600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561102257600080fd5b505afa158015611036573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105a9190612a22565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156110ba57600080fd5b505af11580156110ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f29190612a22565b90505b60075461110c906001600160a01b03166000611fd1565b600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03831690811790915561114d906001611fd1565b5050565b611159611b99565b602080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682151590811782556040519081527f701507a13d5701687328d70ea5a717a33a062f46c229a785b315fb4517fef06991015b60405180910390a150565b6111c4611b99565b6111ce60006120d8565b565b606060048054610a5790612ef7565b6111e7611b99565b61114d8282611fd1565b6111f9611b99565b600d8190556040518181527f7c57306552f9ca1d69c9c779932ef43e8bc6f04d7718d9e1fbf6a877013ececd906020016111b1565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156112cb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610b7a565b610c338286868403611a41565b6112e0611b99565b6001600160a01b03821660009081526022602052604090205460ff16151581151514156113755760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f662060448201527f27697347657446656527000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b03821660008181526022602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527fd3d1fab5db42ae85293059c69e12bf01ffffb1dd5ff4caa5e5568f99fc387f2491015b60405180910390a25050565b6113fb611b99565b600c546001600160a01b038281169116141561147f5760405162461bcd60e51b815260206004820152602b60248201527f5468652072657365617263682077616c6c657420697320616c7265616479207460448201527f68697320616464726573730000000000000000000000000000000000000000006064820152608401610b7a565b61148a81600161173c565b600c546040516001600160a01b03918216918316907f4ed7074fd83d2988c1fc2bb0b2be70d256d1fbf6f1333cab788623497e23e77290600090a3600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600033610ae8818585611ca3565b611515611b99565b600a546001600160a01b03828116911614156115995760405162461bcd60e51b815260206004820152602c60248201527f546865206d61726b6574696e672077616c6c657420697320616c72656164792060448201527f74686973206164647265737300000000000000000000000000000000000000006064820152608401610b7a565b6115a481600161173c565b600a546115bb906001600160a01b0316600061173c565b600a546040516001600160a01b03918216918316907f8616c7a330e3cf61290821331585511f1e2778171e2b005fb5ec60cfe874dc6790600090a3600a80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611638611b99565b600b546001600160a01b03828116911614156116bc5760405162461bcd60e51b815260206004820152602660248201527f5468652043544f2077616c6c657420697320616c72656164792074686973206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b7a565b6116c781600161173c565b600b546040516001600160a01b03918216918316907ffb0ff0db4b4a5f7ae70e91d6d8765885e8b7ebefa75211c996e1af8cc25f00ed90600090a3600b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611744611b99565b6001600160a01b03821660008181526021602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df791016113e7565b6117c2611b99565b60005b828110156118515781602160008686858181106117e4576117e4612fb3565b90506020020160208101906117f99190612a05565b6001600160a01b03168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061184981612f4b565b9150506117c5565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b3583838360405161188593929190612d27565b60405180910390a1505050565b61189a611b99565b6008546001600160a01b038281169116141561191e5760405162461bcd60e51b815260206004820152602c60248201527f546865206c69717569646974792057616c6c657420697320616c72656164792060448201527f74686973206164647265737300000000000000000000000000000000000000006064820152608401610b7a565b61192981600161173c565b6008546040516001600160a01b03918216918316907f6080503d1da552ae8eb4b7b8a20245d9fabed014180510e7d1a05ea08fdb0f3e90600090a3600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6119a6611b99565b6001600160a01b038116611a225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b7a565b611a2b816120d8565b50565b6000611a3a8284612e50565b9392505050565b6001600160a01b038316611abc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b038216611b385760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146111ce5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b7a565b6001600160a01b038381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611c9d5781811015611c905760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b7a565b611c9d8484848403611a41565b50505050565b6001600160a01b038316611d1f5760405162461bcd60e51b815260206004820152602560248201527f42455032303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b038216611d9b5760405162461bcd60e51b815260206004820152602360248201527f42455032303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b7a565b80611db157611dac83836000612142565b505050565b60205460ff1615611ea8573060009081526020819052604081205490611dd5612359565b90508082108015908190611e04575060075474010000000000000000000000000000000000000000900460ff16155b8015611e2957506001600160a01b03861660009081526023602052604090205460ff16155b15611ea457600780547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790559091508190611e7b82612554565b600780547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690555b5050505b6001600160a01b03831660009081526021602052604090205460019060ff1680611eea57506001600160a01b03831660009081526021602052604090205460ff165b15611ef3575060005b8015611fc6576001600160a01b03841660009081526022602052604081205460ff1680611f3857506001600160a01b03841660009081526022602052604090205460ff165b15611fc4576001600160a01b03851660009081526022602052604090205460ff1615611f9057611f7e6064611f786018548661267e90919063ffffffff16565b9061268a565b9050611f8b853083612142565b611fb7565b611faa6064611f786019548661267e90919063ffffffff16565b9050611fb7853083612142565b611fc18382612696565b92505b505b611c9d848484612142565b6001600160a01b03821660009081526023602052604090205460ff16151581151514156120665760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610b7a565b6001600160a01b03821660008181526023602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166121be5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b03821661223a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b038316600090815260208190526040902054818110156122c95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610b7a565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612300908490612e50565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161234c91815260200190565b60405180910390a3611c9d565b6040805160028082526060820183526000928392839290916020830190803683375050600654604080517fad5c464800000000000000000000000000000000000000000000000000000000815290519394506001600160a01b039091169263ad5c464892506004808301926020929190829003018186803b1580156123dd57600080fd5b505afa1580156123f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124159190612a22565b8160008151811061242857612428612fb3565b60200260200101906001600160a01b031690816001600160a01b031681525050308160018151811061245c5761245c612fb3565b6001600160a01b039283166020918202929092010152600654600d546040517fd06ca61f000000000000000000000000000000000000000000000000000000008152600093929092169163d06ca61f916124ba918690600401612df3565b60006040518083038186803b1580156124d257600080fd5b505afa1580156124e6573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261252c9190810190612b9e565b90508060018151811061254157612541612fb3565b6020026020010151925082935050505090565b6000612571601f54611f78601a548561267e90919063ffffffff16565b9050600061257f8383612696565b905061258a816126a2565b600047905060006125ac601f54611f78601c548561267e90919063ffffffff16565b905060006125cb601f54611f78601a548661267e90919063ffffffff16565b905060006125ea601f54611f78601d548761267e90919063ffffffff16565b90506000612609601f54611f78601e548861267e90919063ffffffff16565b905060006126258261261f858188818c8c612696565b90612696565b9050871561263757612637888561282c565b84156126465761264685612908565b82156126555761265583612942565b8115612664576126648261297c565b801561267357612673816129b6565b505050505050505050565b6000611a3a8284612ea3565b6000611a3a8284612e68565b6000611a3a8284612ee0565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106126d7576126d7612fb3565b6001600160a01b03928316602091820292909201810191909152600654604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c4648926004808301939192829003018186803b15801561274457600080fd5b505afa158015612758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061277c9190612a22565b8160018151811061278f5761278f612fb3565b6001600160a01b0392831660209182029290920101526006546127b59130911684611a41565b6006546001600160a01b031663791ac94783600084306127d6426078612e50565b6040518663ffffffff1660e01b81526004016127f6959493929190612e14565b600060405180830381600087803b15801561281057600080fd5b505af1158015612824573d6000803e3d6000fd5b505050505050565b6006546128449030906001600160a01b031684611a41565b6006546008546040517ff305d7190000000000000000000000000000000000000000000000000000000081523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c4016060604051808303818588803b1580156128c857600080fd5b505af11580156128dc573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906129019190612cb5565b5050505050565b600a546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561114d573d6000803e3d6000fd5b600b546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561114d573d6000803e3d6000fd5b600c546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561114d573d6000803e3d6000fd5b6009546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561114d573d6000803e3d6000fd5b80358015158114612a0057600080fd5b919050565b600060208284031215612a1757600080fd5b8135611a3a81613011565b600060208284031215612a3457600080fd5b8151611a3a81613011565b60008060408385031215612a5257600080fd5b8235612a5d81613011565b91506020830135612a6d81613011565b809150509250929050565b600080600060608486031215612a8d57600080fd5b8335612a9881613011565b92506020840135612aa881613011565b929592945050506040919091013590565b60008060408385031215612acc57600080fd5b8235612ad781613011565b9150612ae5602084016129f0565b90509250929050565b60008060408385031215612b0157600080fd5b8235612b0c81613011565b946020939093013593505050565b600080600060408486031215612b2f57600080fd5b833567ffffffffffffffff80821115612b4757600080fd5b818601915086601f830112612b5b57600080fd5b813581811115612b6a57600080fd5b8760208260051b8501011115612b7f57600080fd5b602092830195509350612b9591860190506129f0565b90509250925092565b60006020808385031215612bb157600080fd5b825167ffffffffffffffff80821115612bc957600080fd5b818501915085601f830112612bdd57600080fd5b815181811115612bef57612bef612fe2565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f83011681018181108582111715612c3257612c32612fe2565b604052828152858101935084860182860187018a1015612c5157600080fd5b600095505b83861015612c74578051855260019590950194938601938601612c56565b5098975050505050505050565b600060208284031215612c9357600080fd5b611a3a826129f0565b600060208284031215612cae57600080fd5b5035919050565b600080600060608486031215612cca57600080fd5b8351925060208401519150604084015190509250925092565b600081518084526020808501945080840160005b83811015612d1c5781516001600160a01b031687529582019590820190600101612cf7565b509495945050505050565b6040808252810183905260008460608301825b86811015612d6a578235612d4d81613011565b6001600160a01b0316825260209283019290910190600101612d3a565b5080925050508215156020830152949350505050565b600060208083528351808285015260005b81811015612dad57858101830151858201604001528201612d91565b81811115612dbf576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b828152604060208201526000612e0c6040830184612ce3565b949350505050565b85815284602082015260a060408201526000612e3360a0830186612ce3565b6001600160a01b0394909416606083015250608001529392505050565b60008219821115612e6357612e63612f84565b500190565b600082612e9e577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612edb57612edb612f84565b500290565b600082821015612ef257612ef2612f84565b500390565b600181811c90821680612f0b57607f821691505b60208210811415612f45577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612f7d57612f7d612f84565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b0381168114611a2b57600080fdfea2646970667358221220eb34ebd0d669b6409ad1213380615d9a74604a2a68353ab309edf23e87d5042964736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.