Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
LiquidityBuySellFeeToken
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; /** * ____ _______ _______ _ * | _ \| ____\ \/ /_ _|__ ___ | |___ * | | | | _| \ / | |/ _ \ / _ \| / __| * | |_| | |___ / \ | | (_) | (_) | \__ \ * |____/|_____/_/\_\ |_|\___/ \___/|_|___/ * * This smart contract was created effortlessly using the DEXTools Token Creator. * * 🌐 Website: https://www.dextools.io/ * 🐦 Twitter: https://twitter.com/DEXToolsApp * 💬 Telegram: https://t.me/DEXToolsCommunity * * 🚀 Unleash the power of decentralized finances and tokenization with DEXTools Token Creator. Customize your token seamlessly. Manage your created tokens conveniently from your user panel - start creating your dream token today! */ import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import { Address } from "@openzeppelin/contracts/utils/Address.sol"; import { IUniswapV2Router02 } from "./interfaces/IUniswapV2Router02.sol"; import { IUniswapV2Factory } from "./interfaces/IUniswapV2Factory.sol"; enum TokenType { Standard, Liquidity, LiquidityFee, LiquidityBuySellFee, Burn, Baby, StandardAntiBot, LiquidityAntiBot, LiquidityFeeAntiBot, LiquidityBuySellFeeAntiBot, BurnAntiBot, BabyAntiBot } contract LiquidityBuySellFeeToken is IERC20, Initializable, OwnableUpgradeable { using Address for address; using SafeERC20 for IERC20; uint256 public constant VERSION = 1; uint256 public constant MAX_FEE = 10 ** 4 / 5; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _isExcluded; address[] private _excluded; uint256 private constant MAX = ~uint256(0); uint256 private _tTotal; uint256 private _rTotal; uint256 private _tFeeTotal; string private _name; string private _symbol; uint8 private _decimals; // Transfer Fee uint256 public _taxFee; uint256 private _previousTaxFee; uint256 public _liquidityFee; uint256 private _previousLiquidityFee; uint256 public _marketingFee; uint256 private _previousMarketingFee; // Sell Fee uint256 private _sellTaxFee; uint256 private _sellLiquidityFee; uint256 private _sellMarketingFee; // Buy Fee uint256 private _buyTaxFee; uint256 private _buyLiquidityFee; uint256 private _buyMarketingFee; IUniswapV2Router02 public uniswapV2Router; address public uniswapV2Pair; address public _marketingAddress; address public _marketingToken; bool private inSwapAndLiquify; bool public swapAndLiquifyEnabled; uint256 private numTokensSellToAddToLiquidity; event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap); event SwapAndLiquifyAmountUpdated(uint256 amount); event SwapAndLiquify( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity ); /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); } function initialize( address owner_, string memory name_, string memory symbol_, uint256 totalSupply_, address[3] memory addrs, // router, marketing wallet, marketing token uint16[3] memory feeSettings, // tax, liquidity, marketing uint16[3] memory buyFeeSettings, // buyTax, buyLiquidity, buyMarketing uint16[3] memory sellFeeSettings // sellTax, sellLiquidity, sellMarketing ) public initializer { // Set fees _taxFee = feeSettings[0]; _previousTaxFee = _taxFee; _liquidityFee = feeSettings[1]; _previousLiquidityFee = _liquidityFee; _marketingFee = feeSettings[2]; _previousMarketingFee = _marketingFee; require( _taxFee + _liquidityFee + _marketingFee <= MAX_FEE, "fee is over 20%" ); require(addrs[1] != address(0), "marketing wallet is zero"); _marketingAddress = addrs[1]; _marketingToken = addrs[2]; // Set buy fees _buyTaxFee = buyFeeSettings[0]; _buyLiquidityFee = buyFeeSettings[1]; _buyMarketingFee = buyFeeSettings[2]; require( _buyTaxFee + _buyLiquidityFee + _buyMarketingFee <= MAX_FEE, "buy fee is over 20%" ); // Set sell fees _sellTaxFee = sellFeeSettings[0]; _sellLiquidityFee = sellFeeSettings[1]; _sellMarketingFee = sellFeeSettings[2]; require( _sellTaxFee + _sellLiquidityFee + _sellMarketingFee <= MAX_FEE, "sell fee is over 20%" ); _name = name_; _symbol = symbol_; _decimals = 9; _tTotal = totalSupply_; _rTotal = (MAX - (MAX % _tTotal)); numTokensSellToAddToLiquidity = totalSupply_ / (10 ** 3); // 0.1% swapAndLiquifyEnabled = true; // Set the owner to the factory initializer caller __Ownable_init(); transferOwnership(owner_); _rOwned[owner()] = _rTotal; IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(addrs[0]); // Create a uniswap pair for this new token uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); // set the rest of the contract variables uniswapV2Router = _uniswapV2Router; emit Transfer(address(0), owner(), _tTotal); } function name() public view returns (string memory) { return _name; } function symbol() public view returns (string memory) { return _symbol; } function decimals() public view returns (uint8) { return _decimals; } function totalSupply() public view override returns (uint256) { return _tTotal; } function balanceOf(address account) public view override returns (uint256) { if (_isExcluded[account]) return _tOwned[account]; return tokenFromReflection(_rOwned[account]); } function transfer( address recipient, uint256 amount ) public override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance( address owner, address spender ) public view override returns (uint256) { return _allowances[owner][spender]; } function approve( address spender, uint256 amount ) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) public override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()] - amount ); return true; } function increaseAllowance( address spender, uint256 addedValue ) public virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender] + addedValue ); return true; } function decreaseAllowance( address spender, uint256 subtractedValue ) public virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender] - subtractedValue ); return true; } function isExcludedFromReward(address account) public view returns (bool) { return _isExcluded[account]; } function totalFees() public view returns (uint256) { return _tFeeTotal; } function deliver(uint256 tAmount) public { address sender = _msgSender(); require( !_isExcluded[sender], "Excluded addresses cannot call this function" ); (uint256 rAmount, , , , , , ) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender] - rAmount; _rTotal = _rTotal - rAmount; _tFeeTotal = _tFeeTotal + tAmount; } function reflectionFromToken( uint256 tAmount, bool deductTransferFee ) public view returns (uint256) { require(tAmount <= _tTotal, "Amount must be less than supply"); if (!deductTransferFee) { (uint256 rAmount, , , , , , ) = _getValues(tAmount); return rAmount; } else { (, uint256 rTransferAmount, , , , , ) = _getValues(tAmount); return rTransferAmount; } } function tokenFromReflection( uint256 rAmount ) public view returns (uint256) { require( rAmount <= _rTotal, "Amount must be less than total reflections" ); uint256 currentRate = _getRate(); return rAmount / currentRate; } /* function excludeFromReward(address account) public onlyOwner { require(_excluded.length <= 1000, "Cannot exclude more accounts"); // require(account != 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 'We can not exclude Uniswap router.'); require(!_isExcluded[account], "Account is already excluded"); if (_rOwned[account] > 0) { _tOwned[account] = tokenFromReflection(_rOwned[account]); } _isExcluded[account] = true; _excluded.push(account); } function includeInReward(address account) external onlyOwner { require(_isExcluded[account], "Account is already included"); for (uint256 i = 0; i < _excluded.length; i++) { if (_excluded[i] == account) { _excluded[i] = _excluded[_excluded.length - 1]; _tOwned[account] = 0; _isExcluded[account] = false; _excluded.pop(); break; } } } */ function _transferBothExcluded( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tMarketing ) = _getValues(tAmount); _tOwned[sender] = _tOwned[sender] - tAmount; _rOwned[sender] = _rOwned[sender] - rAmount; _tOwned[recipient] = _tOwned[recipient] + tTransferAmount; _rOwned[recipient] = _rOwned[recipient] + rTransferAmount; _takeLiquidity(tLiquidity); _takeMarketingFee(tMarketing); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } /** function updateFees( uint256 taxFeeBps, uint256 liquidityFeeBps, uint256 marketingFeeBps ) external onlyOwner { _taxFee = taxFeeBps; _liquidityFee = liquidityFeeBps; _marketingFee = marketingFeeBps; require( _taxFee + _liquidityFee + _marketingFee <= MAX_FEE, "fee is over 20%" ); } function updateBuyFees( uint256 taxFeeBps, uint256 liquidityFeeBps, uint256 marketingFeeBps ) external onlyOwner { _buyTaxFee = taxFeeBps; _buyLiquidityFee = liquidityFeeBps; _buyMarketingFee = marketingFeeBps; require( _buyTaxFee + _buyLiquidityFee + _buyMarketingFee <= MAX_FEE, "buy fee is over 20%" ); } function updateSellFees( uint256 taxFeeBps, uint256 liquidityFeeBps, uint256 marketingFeeBps ) external onlyOwner { _sellTaxFee = taxFeeBps; _sellLiquidityFee = liquidityFeeBps; _sellMarketingFee = marketingFeeBps; require( _sellTaxFee + _sellLiquidityFee + _sellMarketingFee <= MAX_FEE, "sell fee is over 20%" ); } */ function setSwapBackSettings(uint256 _amount) external onlyOwner { require( _amount >= (totalSupply() * 5) / (10 ** 4), "Swapback amount should be at least 0.05% of total supply" ); require( _amount < (totalSupply() * 5) / 100, "Swapback amount should be less than 5% of the total supply" ); numTokensSellToAddToLiquidity = _amount; emit SwapAndLiquifyAmountUpdated(_amount); } //to recieve ETH from uniswapV2Router when swaping receive() external payable {} function _reflectFee(uint256 rFee, uint256 tFee) private { _rTotal = _rTotal - rFee; _tFeeTotal = _tFeeTotal + tFee; } function _getValues( uint256 tAmount ) private view returns (uint256, uint256, uint256, uint256, uint256, uint256, uint256) { ( uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tMarketing ) = _getTValues(tAmount); (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues( tAmount, tFee, tLiquidity, tMarketing, _getRate() ); return ( rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tLiquidity, tMarketing ); } function _getTValues( uint256 tAmount ) private view returns (uint256, uint256, uint256, uint256) { uint256 tFee = calculateTaxFee(tAmount); uint256 tLiquidity = calculateLiquidityFee(tAmount); uint256 tMarketing = calculateMarketingFee(tAmount); uint256 tTransferAmount = ((tAmount - tFee) - tLiquidity) - tMarketing; return (tTransferAmount, tFee, tLiquidity, tMarketing); } function _getRValues( uint256 tAmount, uint256 tFee, uint256 tLiquidity, uint256 tMarketing, uint256 currentRate ) private pure returns (uint256, uint256, uint256) { uint256 rAmount = tAmount * currentRate; uint256 rFee = tFee * currentRate; uint256 rLiquidity = tLiquidity * currentRate; uint256 rMarketing = tMarketing * currentRate; uint256 rTransferAmount = ((rAmount - rFee) - rLiquidity) - rMarketing; return (rAmount, rTransferAmount, rFee); } function _getRate() private view returns (uint256) { (uint256 rSupply, uint256 tSupply) = _getCurrentSupply(); return rSupply / tSupply; } function _getCurrentSupply() private view returns (uint256, uint256) { uint256 rSupply = _rTotal; uint256 tSupply = _tTotal; for (uint256 i = 0; i < _excluded.length; i++) { if ( _rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply ) return (_rTotal, _tTotal); rSupply = rSupply - _rOwned[_excluded[i]]; tSupply = tSupply - _tOwned[_excluded[i]]; } if (rSupply < _rTotal / _tTotal) return (_rTotal, _tTotal); return (rSupply, tSupply); } function _takeLiquidity(uint256 tLiquidity) private { uint256 currentRate = _getRate(); uint256 rLiquidity = tLiquidity * currentRate; _rOwned[address(this)] = _rOwned[address(this)] + rLiquidity; if (_isExcluded[address(this)]) _tOwned[address(this)] = _tOwned[address(this)] + tLiquidity; } function _takeMarketingFee(uint256 tMarketing) private { address receiver = _marketingAddress; if (_marketingToken != address(0)) receiver = address(this); if (tMarketing > 0) { uint256 currentRate = _getRate(); uint256 rMarketing = tMarketing * currentRate; _rOwned[receiver] = _rOwned[receiver] + rMarketing; if (_isExcluded[receiver]) _tOwned[receiver] = _tOwned[receiver] + tMarketing; emit Transfer(_msgSender(), receiver, tMarketing); } } function calculateTaxFee(uint256 _amount) private view returns (uint256) { return (_amount * _taxFee) / (10 ** 4); } function calculateLiquidityFee( uint256 _amount ) private view returns (uint256) { return (_amount * _liquidityFee) / (10 ** 4); } function calculateMarketingFee( uint256 _amount ) private view returns (uint256) { if (_marketingAddress == address(0)) return 0; return (_amount * _marketingFee) / (10 ** 4); } function removeAllFee() private { _previousTaxFee = _taxFee; _previousLiquidityFee = _liquidityFee; _previousMarketingFee = _marketingFee; _taxFee = 0; _liquidityFee = 0; _marketingFee = 0; } function restoreAllFee() private { _taxFee = _previousTaxFee; _liquidityFee = _previousLiquidityFee; _marketingFee = _previousMarketingFee; } function _approve(address owner, address spender, uint256 amount) private { require(owner != address(0), "approve from the zero address"); require(spender != address(0), "approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function _transfer(address from, address to, uint256 amount) private { require(from != address(0), "transfer from the zero address"); require(to != address(0), "transfer to the zero address"); require(amount > 0, "transfer amount is zero"); // is the token balance of this contract address over the min number of // tokens that we need to initiate a swap + liquidity lock? // also, don't get caught in a circular liquidity event. // also, don't swap & liquify if sender is uniswap pair. uint256 contractTokenBalance = balanceOf(address(this)); bool overMinTokenBalance = contractTokenBalance >= numTokensSellToAddToLiquidity; if ( overMinTokenBalance && !inSwapAndLiquify && from != uniswapV2Pair && from != address(uniswapV2Router) && swapAndLiquifyEnabled ) { inSwapAndLiquify = true; uint256 _totalFees = _liquidityFee + _sellLiquidityFee + _buyLiquidityFee + _marketingFee + _sellMarketingFee + _buyMarketingFee; contractTokenBalance = numTokensSellToAddToLiquidity; if ( _marketingFee > 0 || _sellMarketingFee > 0 || _buyMarketingFee > 0 ) { uint256 marketingTokens = (contractTokenBalance * (_marketingFee + _sellMarketingFee + _buyMarketingFee)) / _totalFees; sendMarketingFee(_marketingToken, marketingTokens); } if ( _liquidityFee > 0 || _sellLiquidityFee > 0 || _buyLiquidityFee > 0 ) { uint256 swapTokens = (contractTokenBalance * (_liquidityFee + _sellLiquidityFee + _buyLiquidityFee)) / _totalFees; swapAndLiquify(swapTokens); } inSwapAndLiquify = false; } //indicates if fee should be deducted from transfer bool takeFee = !inSwapAndLiquify; //don't take fee on liquidity removals if (from == uniswapV2Pair && to == address(uniswapV2Router)) takeFee = false; //if any account belongs to _isExcludedFromFee account then remove the fee if (owner() == from || owner() == to || _marketingAddress == from || _marketingAddress == to || address(this) == from || address(this) == to) { takeFee = false; } //indicates if buy or sell fee is applied from transfer bool isBuySellFee = false; if (takeFee) { _previousTaxFee = _taxFee; _previousLiquidityFee = _liquidityFee; _previousMarketingFee = _marketingFee; // on sell if (uniswapV2Pair == to) { _taxFee = _sellTaxFee; _liquidityFee = _sellLiquidityFee; _marketingFee = _sellMarketingFee; isBuySellFee = true; } // on buy else if (uniswapV2Pair == from) { _taxFee = _buyTaxFee; _liquidityFee = _buyLiquidityFee; _marketingFee = _buyMarketingFee; isBuySellFee = true; } } //transfer amount, it will take tax, burn, liquidity fee _tokenTransfer(from, to, amount, takeFee); // if buy or sell fee is setted restore to normal fees if (isBuySellFee) restoreAllFee(); } function swapAndLiquify(uint256 contractTokenBalance) private { // split the contract balance into halves uint256 half = contractTokenBalance / 2; uint256 otherHalf = contractTokenBalance - half; // capture the contract's current ETH balance. // this is so that we can capture exactly the amount of ETH that the // swap creates, and not make the liquidity event include any ETH that // has been manually sent to the contract uint256 initialBalance = address(this).balance; // swap tokens for ETH swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered // how much ETH did we just swap into? uint256 newBalance = address(this).balance - initialBalance; // add liquidity to uniswap addLiquidity(otherHalf, newBalance); emit SwapAndLiquify(half, newBalance, otherHalf); } function swapTokensForEth(uint256 tokenAmount) private { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); // make the swap uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } function swapTokensForTokens( address tokenAddress, uint256 tokenAmount ) private { address[] memory path = new address[](3); path[0] = address(this); path[1] = uniswapV2Router.WETH(); path[2] = tokenAddress; _approve(address(this), address(uniswapV2Router), tokenAmount); // make the swap uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens( tokenAmount, 0, path, address(this), block.timestamp ); } function sendMarketingFee( address tokenAddress, uint256 tokenAmount ) private { // Send native token if (tokenAddress == uniswapV2Router.WETH()) { uint256 initialBalance = address(this).balance; swapTokensForEth(tokenAmount); tokenAmount = address(this).balance - initialBalance; payable(_marketingAddress).transfer(tokenAmount); // Send custom token } else if (tokenAddress != address(0)) { uint256 initialTokenBalance = IERC20(tokenAddress).balanceOf( address(this) ); swapTokensForTokens(tokenAddress, tokenAmount); tokenAmount = (IERC20(tokenAddress).balanceOf(address(this))) - initialTokenBalance; IERC20(tokenAddress).safeTransfer(_marketingAddress, tokenAmount); // Send this token } else { _transfer(address(this), _marketingAddress, tokenAmount); } } function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(uniswapV2Router), tokenAmount); // add the liquidity uniswapV2Router.addLiquidityETH{ value: ethAmount }( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable address(0xdead), block.timestamp ); } //this method is responsible for taking all fee, if takeFee is true function _tokenTransfer( address sender, address recipient, uint256 amount, bool takeFee ) private { if (!takeFee) removeAllFee(); if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && _isExcluded[recipient]) { _transferToExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && !_isExcluded[recipient]) { _transferStandard(sender, recipient, amount); } else if (_isExcluded[sender] && _isExcluded[recipient]) { _transferBothExcluded(sender, recipient, amount); } else { _transferStandard(sender, recipient, amount); } if (!takeFee) restoreAllFee(); } function _transferStandard( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tMarketing ) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender] - rAmount; _rOwned[recipient] = _rOwned[recipient] + rTransferAmount; _takeLiquidity(tLiquidity); _takeMarketingFee(tMarketing); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function _transferToExcluded( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tMarketing ) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender] - rAmount; _tOwned[recipient] = _tOwned[recipient] + tTransferAmount; _rOwned[recipient] = _rOwned[recipient] + rTransferAmount; _takeLiquidity(tLiquidity); _takeMarketingFee(tMarketing); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function _transferFromExcluded( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tMarketing ) = _getValues(tAmount); _tOwned[sender] = _tOwned[sender] - tAmount; _rOwned[sender] = _rOwned[sender] - rAmount; _rOwned[recipient] = _rOwned[recipient] + rTransferAmount; _takeLiquidity(tLiquidity); _takeMarketingFee(tMarketing); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import {Initializable} from "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized != type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; import {Initializable} from "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ 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]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; /** * ____ _______ _______ _ * | _ \| ____\ \/ /_ _|__ ___ | |___ * | | | | _| \ / | |/ _ \ / _ \| / __| * | |_| | |___ / \ | | (_) | (_) | \__ \ * |____/|_____/_/\_\ |_|\___/ \___/|_|___/ * * This smart contract was created effortlessly using the DEXTools Token Creator. * * 🌐 Website: https://www.dextools.io/ * 🐦 Twitter: https://twitter.com/DEXToolsApp * 💬 Telegram: https://t.me/DEXToolsCommunity * * 🚀 Unleash the power of decentralized finances and tokenization with DEXTools Token Creator. Customize your token seamlessly. Manage your created tokens conveniently from your user panel - start creating your dream token today! */ interface IUniswapV2Factory { event PairCreated( address indexed token0, address indexed token1, address pair, uint256 ); 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(uint256) external view returns (address pair); function allPairsLength() external view returns (uint256); function createPair( address tokenA, address tokenB ) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; /** * ____ _______ _______ _ * | _ \| ____\ \/ /_ _|__ ___ | |___ * | | | | _| \ / | |/ _ \ / _ \| / __| * | |_| | |___ / \ | | (_) | (_) | \__ \ * |____/|_____/_/\_\ |_|\___/ \___/|_|___/ * * This smart contract was created effortlessly using the DEXTools Token Creator. * * 🌐 Website: https://www.dextools.io/ * 🐦 Twitter: https://twitter.com/DEXToolsApp * 💬 Telegram: https://t.me/DEXToolsCommunity * * 🚀 Unleash the power of decentralized finances and tokenization with DEXTools Token Creator. Customize your token seamlessly. Manage your created tokens conveniently from your user panel - start creating your dream token today! */ interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); // solhint-disable-line func-name-mixedcase function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut( uint256 amountIn, address[] calldata path ) external view returns (uint256[] memory amounts); function getAmountsIn( uint256 amountOut, address[] calldata path ) external view returns (uint256[] memory amounts); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; }
{ "evmVersion": "paris", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minTokensBeforeSwap","type":"uint256"}],"name":"MinTokensBeforeSwapUpdated","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":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SwapAndLiquifyAmountUpdated","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"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_marketingAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_marketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_marketingToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_taxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"tAmount","type":"uint256"}],"name":"deliver","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":"owner_","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"totalSupply_","type":"uint256"},{"internalType":"address[3]","name":"addrs","type":"address[3]"},{"internalType":"uint16[3]","name":"feeSettings","type":"uint16[3]"},{"internalType":"uint16[3]","name":"buyFeeSettings","type":"uint16[3]"},{"internalType":"uint16[3]","name":"sellFeeSettings","type":"uint16[3]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"},{"internalType":"bool","name":"deductTransferFee","type":"bool"}],"name":"reflectionFromToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setSwapBackSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAndLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b506200001c62000022565b620000e3565b600054610100900460ff16156200008f5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000e1576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b61318780620000f36000396000f3fe6080604052600436106101dc5760003560e01c80634a74bb0211610102578063a457c2d711610095578063cd05e4ad11610064578063cd05e4ad1461054d578063dd62ed3e1461056d578063f2fde38b146105b3578063ffa1ad74146105d357600080fd5b8063a457c2d7146104d7578063a9059cbb146104f7578063bc063e1a14610517578063caac79341461052d57600080fd5b8063796431d0116100d1578063796431d01461044b57806388f820201461046b5780638da5cb5b146104a457806395d89b41146104c257600080fd5b80634a74bb02146103df5780636bc87c3a1461040057806370a0823114610416578063715018a61461043657600080fd5b80632d8381191161017a5780633b124fe7116101495780633b124fe7146103675780633bd5d1731461037d5780634549b0391461039f57806349bd5a5e146103bf57600080fd5b80632d838119146102e5578063313ce5671461030557806339509351146103275780633afe68931461034757600080fd5b80631694505e116101b65780631694505e1461026257806318160ddd1461029a57806322976e0d146102af57806323b872dd146102c557600080fd5b806306fdde03146101e8578063095ea7b31461021357806313114a9d1461024357600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b506101fd6105e8565b60405161020a9190612a66565b60405180910390f35b34801561021f57600080fd5b5061023361022e366004612aae565b61067a565b604051901515815260200161020a565b34801561024f57600080fd5b50606c545b60405190815260200161020a565b34801561026e57600080fd5b50607c54610282906001600160a01b031681565b6040516001600160a01b03909116815260200161020a565b3480156102a657600080fd5b50606a54610254565b3480156102bb57600080fd5b5061025460745481565b3480156102d157600080fd5b506102336102e0366004612ada565b610691565b3480156102f157600080fd5b50610254610300366004612b1b565b6106e3565b34801561031157600080fd5b50606f5460405160ff909116815260200161020a565b34801561033357600080fd5b50610233610342366004612aae565b61076c565b34801561035357600080fd5b50607f54610282906001600160a01b031681565b34801561037357600080fd5b5061025460705481565b34801561038957600080fd5b5061039d610398366004612b1b565b6107a3565b005b3480156103ab57600080fd5b506102546103ba366004612b42565b610891565b3480156103cb57600080fd5b50607d54610282906001600160a01b031681565b3480156103eb57600080fd5b50607f5461023390600160a81b900460ff1681565b34801561040c57600080fd5b5061025460725481565b34801561042257600080fd5b50610254610431366004612b72565b610920565b34801561044257600080fd5b5061039d61097f565b34801561045757600080fd5b5061039d610466366004612b1b565b610993565b34801561047757600080fd5b50610233610486366004612b72565b6001600160a01b031660009081526068602052604090205460ff1690565b3480156104b057600080fd5b506033546001600160a01b0316610282565b3480156104ce57600080fd5b506101fd610b00565b3480156104e357600080fd5b506102336104f2366004612aae565b610b0f565b34801561050357600080fd5b50610233610512366004612aae565b610b46565b34801561052357600080fd5b506102546107d081565b34801561053957600080fd5b50607e54610282906001600160a01b031681565b34801561055957600080fd5b5061039d610568366004612cbc565b610b53565b34801561057957600080fd5b50610254610588366004612dca565b6001600160a01b03918216600090815260676020908152604080832093909416825291909152205490565b3480156105bf57600080fd5b5061039d6105ce366004612b72565b61110a565b3480156105df57600080fd5b50610254600181565b6060606d80546105f790612df8565b80601f016020809104026020016040519081016040528092919081815260200182805461062390612df8565b80156106705780601f1061064557610100808354040283529160200191610670565b820191906000526020600020905b81548152906001019060200180831161065357829003601f168201915b5050505050905090565b6000610687338484611183565b5060015b92915050565b600061069e848484611290565b6001600160a01b0384166000908152606760209081526040808320338085529252909120546106d99186916106d4908690612e48565b611183565b5060019392505050565b6000606b5482111561074f5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084015b60405180910390fd5b60006107596116ef565b90506107658184612e71565b9392505050565b3360008181526067602090815260408083206001600160a01b038716845290915281205490916106879185906106d4908690612e85565b3360008181526068602052604090205460ff16156108185760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201526b3434b990333ab731ba34b7b760a11b6064820152608401610746565b600061082383611712565b505050506001600160a01b038516600090815260656020526040902054929350610851928492509050612e48565b6001600160a01b038316600090815260656020526040902055606b54610878908290612e48565b606b55606c54610889908490612e85565b606c55505050565b6000606a548311156108e55760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610746565b816109055760006108f584611712565b5094965061068b95505050505050565b600061091084611712565b5093965061068b95505050505050565b6001600160a01b03811660009081526068602052604081205460ff161561095d57506001600160a01b031660009081526066602052604090205490565b6001600160a01b03821660009081526065602052604090205461068b906106e3565b61098761176d565b61099160006117c7565b565b61099b61176d565b6127106109a7606a5490565b6109b2906005612e98565b6109bc9190612e71565b811015610a315760405162461bcd60e51b815260206004820152603860248201527f537761706261636b20616d6f756e742073686f756c64206265206174206c656160448201527f737420302e303525206f6620746f74616c20737570706c7900000000000000006064820152608401610746565b6064610a3c606a5490565b610a47906005612e98565b610a519190612e71565b8110610ac55760405162461bcd60e51b815260206004820152603a60248201527f537761706261636b20616d6f756e742073686f756c64206265206c657373207460448201527f68616e203525206f662074686520746f74616c20737570706c790000000000006064820152608401610746565b60808190556040518181527ff7edd1a72d399eb95c56c07c5a26f00a9096735269c96c75caa8fc4e15bcd5d29060200160405180910390a150565b6060606e80546105f790612df8565b3360008181526067602090815260408083206001600160a01b038716845290915281205490916106879185906106d4908690612e48565b6000610687338484611290565b600054610100900460ff1615808015610b735750600054600160ff909116105b80610b8d5750303b158015610b8d575060005460ff166001145b610bf05760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610746565b6000805460ff191660011790558015610c13576000805461ff0019166101001790555b835161ffff9081166070819055607181905560208601518216607281905560738190556040870151909216607481905560758190556107d0929091610c589190612e85565b610c629190612e85565b1115610ca25760405162461bcd60e51b815260206004820152600f60248201526e666565206973206f7665722032302560881b6044820152606401610746565b60208501516001600160a01b0316610cfc5760405162461bcd60e51b815260206004820152601860248201527f6d61726b6574696e672077616c6c6574206973207a65726f00000000000000006044820152606401610746565b602085810151607e80546001600160a01b03199081166001600160a01b0393841617909155604080890151607f80549093169316929092179055845161ffff9081166079819055928601518116607a8190559186015116607b8190556107d0929091610d6791612e85565b610d719190612e85565b1115610db55760405162461bcd60e51b815260206004820152601360248201527262757920666565206973206f7665722032302560681b6044820152606401610746565b815161ffff9081166076819055602084015182166077819055604085015190921660788190556107d0929091610deb9190612e85565b610df59190612e85565b1115610e3a5760405162461bcd60e51b815260206004820152601460248201527373656c6c20666565206973206f7665722032302560601b6044820152606401610746565b606d610e468982612f0b565b50606e610e538882612f0b565b50606f805460ff19166009179055606a869055610e7286600019612fcb565b610e7e90600019612e48565b606b55610e8d6103e887612e71565b608055607f805460ff60a81b1916600160a81b179055610eab611819565b610eb48961110a565b606b5460656000610ecd6033546001600160a01b031690565b6001600160a01b031681526020810191909152604001600090812091909155858160200201519050806001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f579190612fdf565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fa4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc89190612fdf565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015611015573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110399190612fdf565b607d80546001600160a01b03199081166001600160a01b0393841617909155607c8054909116838316179055603354166001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef606a546040516110b091815260200190565b60405180910390a35080156110ff576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050505050565b61111261176d565b6001600160a01b0381166111775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610746565b611180816117c7565b50565b6001600160a01b0383166111d95760405162461bcd60e51b815260206004820152601d60248201527f617070726f76652066726f6d20746865207a65726f20616464726573730000006044820152606401610746565b6001600160a01b03821661122f5760405162461bcd60e51b815260206004820152601b60248201527f617070726f766520746f20746865207a65726f206164647265737300000000006044820152606401610746565b6001600160a01b0383811660008181526067602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166112e65760405162461bcd60e51b815260206004820152601e60248201527f7472616e736665722066726f6d20746865207a65726f206164647265737300006044820152606401610746565b6001600160a01b03821661133c5760405162461bcd60e51b815260206004820152601c60248201527f7472616e7366657220746f20746865207a65726f2061646472657373000000006044820152606401610746565b6000811161138c5760405162461bcd60e51b815260206004820152601760248201527f7472616e7366657220616d6f756e74206973207a65726f0000000000000000006044820152606401610746565b600061139730610920565b608054909150811080159081906113b85750607f54600160a01b900460ff16155b80156113d25750607d546001600160a01b03868116911614155b80156113ec5750607c546001600160a01b03868116911614155b80156114015750607f54600160a81b900460ff165b1561155357607f805460ff60a01b1916600160a01b179055607b54607854607454607a546077546072546000959493929161143b91612e85565b6114459190612e85565b61144f9190612e85565b6114599190612e85565b6114639190612e85565b905060805492506000607454118061147d57506000607854115b8061148a57506000607b54115b156114de57600081607b546078546074546114a59190612e85565b6114af9190612e85565b6114b99086612e98565b6114c39190612e71565b607f549091506114dc906001600160a01b031682611848565b505b600060725411806114f157506000607754115b806114fe57506000607a54115b1561154457600081607a546077546072546115199190612e85565b6115239190612e85565b61152d9086612e98565b6115379190612e71565b905061154281611a64565b505b50607f805460ff60a01b191690555b607f54607d54600160a01b90910460ff1615906001600160a01b0390811690871614801561158e5750607c546001600160a01b038681169116145b15611597575060005b856001600160a01b03166115b36033546001600160a01b031690565b6001600160a01b031614806115ea5750846001600160a01b03166115df6033546001600160a01b031690565b6001600160a01b0316145b806116025750607e546001600160a01b038781169116145b8061161a5750607e546001600160a01b038681169116145b8061162d5750306001600160a01b038716145b806116405750306001600160a01b038616145b15611649575060005b600081156116bd57607054607155607254607355607454607555607d546001600160a01b03808816911603611692575060765460705560775460725560785460745560016116bd565b607d546001600160a01b038089169116036116bd5750607954607055607a54607255607b5460745560015b6116c987878785611aeb565b80156116e6576116e6607154607055607354607255607554607455565b50505050505050565b60008060006116fc611c85565b909250905061170b8183612e71565b9250505090565b600080600080600080600080600080600061172c8c611e08565b9350935093509350600080600061174d8f8787876117486116ef565b611e67565b919f509d509b509599509397509195509350505050919395979092949650565b6033546001600160a01b031633146109915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610746565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166118405760405162461bcd60e51b815260040161074690612ffc565b610991611ed9565b607c60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561189b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118bf9190612fdf565b6001600160a01b0316826001600160a01b03160361192c57476118e182611f09565b6118eb8147612e48565b607e546040519193506001600160a01b03169083156108fc029084906000818181858888f19350505050158015611926573d6000803e3d6000fd5b50505050565b6001600160a01b03821615611a48576040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015611982573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a69190613047565b90506119b28383612063565b6040516370a0823160e01b815230600482015281906001600160a01b038516906370a0823190602401602060405180830381865afa1580156119f8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1c9190613047565b611a269190612e48565b607e54909250611a43906001600160a01b038581169116846121eb565b505050565b607e54611a609030906001600160a01b031683611290565b5050565b6000611a71600283612e71565b90506000611a7f8284612e48565b905047611a8b83611f09565b6000611a978247612e48565b9050611aa3838261223d565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050505050565b80611b1557611b156070805460715560728054607355607480546075556000928390559082905555565b6001600160a01b03841660009081526068602052604090205460ff168015611b5657506001600160a01b03831660009081526068602052604090205460ff16155b15611b6b57611b668484846122ef565b611c69565b6001600160a01b03841660009081526068602052604090205460ff16158015611bac57506001600160a01b03831660009081526068602052604090205460ff165b15611bbc57611b66848484612430565b6001600160a01b03841660009081526068602052604090205460ff16158015611bfe57506001600160a01b03831660009081526068602052604090205460ff16155b15611c0e57611b668484846124ea565b6001600160a01b03841660009081526068602052604090205460ff168015611c4e57506001600160a01b03831660009081526068602052604090205460ff165b15611c5e57611b6684848461253d565b611c698484846124ea565b8061192657611926607154607055607354607255607554607455565b606b54606a546000918291825b606954811015611dd757826065600060698481548110611cb457611cb4612eaf565b60009182526020808320909101546001600160a01b031683528201929092526040019020541180611d1f5750816066600060698481548110611cf857611cf8612eaf565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15611d3557606b54606a54945094505050509091565b6065600060698381548110611d4c57611d4c612eaf565b60009182526020808320909101546001600160a01b03168352820192909252604001902054611d7b9084612e48565b92506066600060698381548110611d9457611d94612eaf565b60009182526020808320909101546001600160a01b03168352820192909252604001902054611dc39083612e48565b915080611dcf81613060565b915050611c92565b50606a54606b54611de89190612e71565b821015611dff57606b54606a549350935050509091565b90939092509050565b6000806000806000611e19866125c0565b90506000611e26876125dd565b90506000611e33886125f0565b905060008183611e43868c612e48565b611e4d9190612e48565b611e579190612e48565b9993985091965094509092505050565b6000808080611e76858a612e98565b90506000611e84868a612e98565b90506000611e92878a612e98565b90506000611ea0888a612e98565b905060008183611eb08688612e48565b611eba9190612e48565b611ec49190612e48565b949d949c50929a509298505050505050505050565b600054610100900460ff16611f005760405162461bcd60e51b815260040161074690612ffc565b610991336117c7565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611f3e57611f3e612eaf565b6001600160a01b03928316602091820292909201810191909152607c54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611f97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fbb9190612fdf565b81600181518110611fce57611fce612eaf565b6001600160a01b039283166020918202929092010152607c54611ff49130911684611183565b607c5460405163791ac94760e01b81526001600160a01b039091169063791ac9479061202d908590600090869030904290600401613079565b600060405180830381600087803b15801561204757600080fd5b505af115801561205b573d6000803e3d6000fd5b505050505050565b6040805160038082526080820190925260009160208201606080368337019050509050308160008151811061209a5761209a612eaf565b6001600160a01b03928316602091820292909201810191909152607c54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156120f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121179190612fdf565b8160018151811061212a5761212a612eaf565b60200260200101906001600160a01b031690816001600160a01b031681525050828160028151811061215e5761215e612eaf565b6001600160a01b039283166020918202929092010152607c546121849130911684611183565b607c54604051635c11d79560e01b81526001600160a01b0390911690635c11d795906121bd908590600090869030904290600401613079565b600060405180830381600087803b1580156121d757600080fd5b505af11580156116e6573d6000803e3d6000fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a4390849061261c565b607c546122559030906001600160a01b031684611183565b607c5460405163f305d71960e01b815230600482015260248101849052600060448201819052606482015261dead60848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af11580156122c3573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906122e891906130ea565b5050505050565b600080600080600080600061230388611712565b965096509650965096509650965087606660008c6001600160a01b03166001600160a01b03168152602001908152602001600020546123429190612e48565b6001600160a01b038b16600090815260666020908152604080832093909355606590522054612372908890612e48565b6001600160a01b03808c1660009081526065602052604080822093909355908b16815220546123a2908790612e85565b6001600160a01b038a166000908152606560205260409020556123c4826126f1565b6123cd8161277b565b6123d7858461288c565b886001600160a01b03168a6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8660405161241c91815260200190565b60405180910390a350505050505050505050565b600080600080600080600061244488611712565b965096509650965096509650965086606560008c6001600160a01b03166001600160a01b03168152602001908152602001600020546124839190612e48565b6001600160a01b03808c16600090815260656020908152604080832094909455918c168152606690915220546124ba908590612e85565b6001600160a01b038a166000908152606660209081526040808320939093556065905220546123a2908790612e85565b60008060008060008060006124fe88611712565b965096509650965096509650965086606560008c6001600160a01b03166001600160a01b03168152602001908152602001600020546123729190612e48565b600080600080600080600061255188611712565b965096509650965096509650965087606660008c6001600160a01b03166001600160a01b03168152602001908152602001600020546125909190612e48565b6001600160a01b038b16600090815260666020908152604080832093909355606590522054612483908890612e48565b6000612710607054836125d39190612e98565b61068b9190612e71565b6000612710607254836125d39190612e98565b607e546000906001600160a01b031661260b57506000919050565b612710607454836125d39190612e98565b6000612671826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128b29092919063ffffffff16565b90508051600014806126925750808060200190518101906126929190613118565b611a435760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610746565b60006126fb6116ef565b905060006127098284612e98565b30600090815260656020526040902054909150612727908290612e85565b3060009081526065602090815260408083209390935560689052205460ff1615611a435730600090815260666020526040902054612766908490612e85565b30600090815260666020526040902055505050565b607e54607f546001600160a01b039182169116156127965750305b8115611a605760006127a66116ef565b905060006127b48285612e98565b6001600160a01b0384166000908152606560205260409020549091506127db908290612e85565b6001600160a01b03841660009081526065602090815260408083209390935560689052205460ff1615612846576001600160a01b03831660009081526066602052604090205461282c908590612e85565b6001600160a01b0384166000908152606660205260409020555b6040518481526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a350505050565b81606b5461289a9190612e48565b606b55606c546128ab908290612e85565b606c555050565b60606128c184846000856128c9565b949350505050565b60608247101561292a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610746565b600080866001600160a01b031685876040516129469190613135565b60006040518083038185875af1925050503d8060008114612983576040519150601f19603f3d011682016040523d82523d6000602084013e612988565b606091505b5091509150612999878383876129a4565b979650505050505050565b60608315612a13578251600003612a0c576001600160a01b0385163b612a0c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610746565b50816128c1565b6128c18383815115612a285781518083602001fd5b8060405162461bcd60e51b81526004016107469190612a66565b60005b83811015612a5d578181015183820152602001612a45565b50506000910152565b6020815260008251806020840152612a85816040850160208701612a42565b601f01601f19169190910160400192915050565b6001600160a01b038116811461118057600080fd5b60008060408385031215612ac157600080fd5b8235612acc81612a99565b946020939093013593505050565b600080600060608486031215612aef57600080fd5b8335612afa81612a99565b92506020840135612b0a81612a99565b929592945050506040919091013590565b600060208284031215612b2d57600080fd5b5035919050565b801515811461118057600080fd5b60008060408385031215612b5557600080fd5b823591506020830135612b6781612b34565b809150509250929050565b600060208284031215612b8457600080fd5b813561076581612a99565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715612bc857612bc8612b8f565b60405290565b600082601f830112612bdf57600080fd5b813567ffffffffffffffff80821115612bfa57612bfa612b8f565b604051601f8301601f19908116603f01168101908282118183101715612c2257612c22612b8f565b81604052838152866020858801011115612c3b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600082601f830112612c6c57600080fd5b612c74612ba5565b806060840185811115612c8657600080fd5b845b81811015612cb157803561ffff81168114612ca35760008081fd5b845260209384019301612c88565b509095945050505050565b600080600080600080600080610200898b031215612cd957600080fd5b8835612ce481612a99565b975060208981013567ffffffffffffffff80821115612d0257600080fd5b612d0e8d838e01612bce565b995060408c0135915080821115612d2457600080fd5b50612d318c828d01612bce565b97505060608a013595508a609f8b0112612d4a57600080fd5b612d52612ba5565b8060e08c018d811115612d6457600080fd5b60808d015b81811015612d89578035612d7c81612a99565b8452928401928401612d69565b50819750612d978e82612c5b565b965050505050612dab8a6101408b01612c5b565b9150612dbb8a6101a08b01612c5b565b90509295985092959890939650565b60008060408385031215612ddd57600080fd5b8235612de881612a99565b91506020830135612b6781612a99565b600181811c90821680612e0c57607f821691505b602082108103612e2c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561068b5761068b612e32565b634e487b7160e01b600052601260045260246000fd5b600082612e8057612e80612e5b565b500490565b8082018082111561068b5761068b612e32565b808202811582820484141761068b5761068b612e32565b634e487b7160e01b600052603260045260246000fd5b601f821115611a4357600081815260208120601f850160051c81016020861015612eec5750805b601f850160051c820191505b8181101561205b57828155600101612ef8565b815167ffffffffffffffff811115612f2557612f25612b8f565b612f3981612f338454612df8565b84612ec5565b602080601f831160018114612f6e5760008415612f565750858301515b600019600386901b1c1916600185901b17855561205b565b600085815260208120601f198616915b82811015612f9d57888601518255948401946001909101908401612f7e565b5085821015612fbb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082612fda57612fda612e5b565b500690565b600060208284031215612ff157600080fd5b815161076581612a99565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561305957600080fd5b5051919050565b60006001820161307257613072612e32565b5060010190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156130c95784516001600160a01b0316835293830193918301916001016130a4565b50506001600160a01b03969096166060850152505050608001529392505050565b6000806000606084860312156130ff57600080fd5b8351925060208401519150604084015190509250925092565b60006020828403121561312a57600080fd5b815161076581612b34565b60008251613147818460208701612a42565b919091019291505056fea26469706673582212209e33c6667c0f8ba06fb42c06a718d4329836d311f4475194263c861b52c0448464736f6c63430008130033
Deployed Bytecode
0x6080604052600436106101dc5760003560e01c80634a74bb0211610102578063a457c2d711610095578063cd05e4ad11610064578063cd05e4ad1461054d578063dd62ed3e1461056d578063f2fde38b146105b3578063ffa1ad74146105d357600080fd5b8063a457c2d7146104d7578063a9059cbb146104f7578063bc063e1a14610517578063caac79341461052d57600080fd5b8063796431d0116100d1578063796431d01461044b57806388f820201461046b5780638da5cb5b146104a457806395d89b41146104c257600080fd5b80634a74bb02146103df5780636bc87c3a1461040057806370a0823114610416578063715018a61461043657600080fd5b80632d8381191161017a5780633b124fe7116101495780633b124fe7146103675780633bd5d1731461037d5780634549b0391461039f57806349bd5a5e146103bf57600080fd5b80632d838119146102e5578063313ce5671461030557806339509351146103275780633afe68931461034757600080fd5b80631694505e116101b65780631694505e1461026257806318160ddd1461029a57806322976e0d146102af57806323b872dd146102c557600080fd5b806306fdde03146101e8578063095ea7b31461021357806313114a9d1461024357600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b506101fd6105e8565b60405161020a9190612a66565b60405180910390f35b34801561021f57600080fd5b5061023361022e366004612aae565b61067a565b604051901515815260200161020a565b34801561024f57600080fd5b50606c545b60405190815260200161020a565b34801561026e57600080fd5b50607c54610282906001600160a01b031681565b6040516001600160a01b03909116815260200161020a565b3480156102a657600080fd5b50606a54610254565b3480156102bb57600080fd5b5061025460745481565b3480156102d157600080fd5b506102336102e0366004612ada565b610691565b3480156102f157600080fd5b50610254610300366004612b1b565b6106e3565b34801561031157600080fd5b50606f5460405160ff909116815260200161020a565b34801561033357600080fd5b50610233610342366004612aae565b61076c565b34801561035357600080fd5b50607f54610282906001600160a01b031681565b34801561037357600080fd5b5061025460705481565b34801561038957600080fd5b5061039d610398366004612b1b565b6107a3565b005b3480156103ab57600080fd5b506102546103ba366004612b42565b610891565b3480156103cb57600080fd5b50607d54610282906001600160a01b031681565b3480156103eb57600080fd5b50607f5461023390600160a81b900460ff1681565b34801561040c57600080fd5b5061025460725481565b34801561042257600080fd5b50610254610431366004612b72565b610920565b34801561044257600080fd5b5061039d61097f565b34801561045757600080fd5b5061039d610466366004612b1b565b610993565b34801561047757600080fd5b50610233610486366004612b72565b6001600160a01b031660009081526068602052604090205460ff1690565b3480156104b057600080fd5b506033546001600160a01b0316610282565b3480156104ce57600080fd5b506101fd610b00565b3480156104e357600080fd5b506102336104f2366004612aae565b610b0f565b34801561050357600080fd5b50610233610512366004612aae565b610b46565b34801561052357600080fd5b506102546107d081565b34801561053957600080fd5b50607e54610282906001600160a01b031681565b34801561055957600080fd5b5061039d610568366004612cbc565b610b53565b34801561057957600080fd5b50610254610588366004612dca565b6001600160a01b03918216600090815260676020908152604080832093909416825291909152205490565b3480156105bf57600080fd5b5061039d6105ce366004612b72565b61110a565b3480156105df57600080fd5b50610254600181565b6060606d80546105f790612df8565b80601f016020809104026020016040519081016040528092919081815260200182805461062390612df8565b80156106705780601f1061064557610100808354040283529160200191610670565b820191906000526020600020905b81548152906001019060200180831161065357829003601f168201915b5050505050905090565b6000610687338484611183565b5060015b92915050565b600061069e848484611290565b6001600160a01b0384166000908152606760209081526040808320338085529252909120546106d99186916106d4908690612e48565b611183565b5060019392505050565b6000606b5482111561074f5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084015b60405180910390fd5b60006107596116ef565b90506107658184612e71565b9392505050565b3360008181526067602090815260408083206001600160a01b038716845290915281205490916106879185906106d4908690612e85565b3360008181526068602052604090205460ff16156108185760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201526b3434b990333ab731ba34b7b760a11b6064820152608401610746565b600061082383611712565b505050506001600160a01b038516600090815260656020526040902054929350610851928492509050612e48565b6001600160a01b038316600090815260656020526040902055606b54610878908290612e48565b606b55606c54610889908490612e85565b606c55505050565b6000606a548311156108e55760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610746565b816109055760006108f584611712565b5094965061068b95505050505050565b600061091084611712565b5093965061068b95505050505050565b6001600160a01b03811660009081526068602052604081205460ff161561095d57506001600160a01b031660009081526066602052604090205490565b6001600160a01b03821660009081526065602052604090205461068b906106e3565b61098761176d565b61099160006117c7565b565b61099b61176d565b6127106109a7606a5490565b6109b2906005612e98565b6109bc9190612e71565b811015610a315760405162461bcd60e51b815260206004820152603860248201527f537761706261636b20616d6f756e742073686f756c64206265206174206c656160448201527f737420302e303525206f6620746f74616c20737570706c7900000000000000006064820152608401610746565b6064610a3c606a5490565b610a47906005612e98565b610a519190612e71565b8110610ac55760405162461bcd60e51b815260206004820152603a60248201527f537761706261636b20616d6f756e742073686f756c64206265206c657373207460448201527f68616e203525206f662074686520746f74616c20737570706c790000000000006064820152608401610746565b60808190556040518181527ff7edd1a72d399eb95c56c07c5a26f00a9096735269c96c75caa8fc4e15bcd5d29060200160405180910390a150565b6060606e80546105f790612df8565b3360008181526067602090815260408083206001600160a01b038716845290915281205490916106879185906106d4908690612e48565b6000610687338484611290565b600054610100900460ff1615808015610b735750600054600160ff909116105b80610b8d5750303b158015610b8d575060005460ff166001145b610bf05760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610746565b6000805460ff191660011790558015610c13576000805461ff0019166101001790555b835161ffff9081166070819055607181905560208601518216607281905560738190556040870151909216607481905560758190556107d0929091610c589190612e85565b610c629190612e85565b1115610ca25760405162461bcd60e51b815260206004820152600f60248201526e666565206973206f7665722032302560881b6044820152606401610746565b60208501516001600160a01b0316610cfc5760405162461bcd60e51b815260206004820152601860248201527f6d61726b6574696e672077616c6c6574206973207a65726f00000000000000006044820152606401610746565b602085810151607e80546001600160a01b03199081166001600160a01b0393841617909155604080890151607f80549093169316929092179055845161ffff9081166079819055928601518116607a8190559186015116607b8190556107d0929091610d6791612e85565b610d719190612e85565b1115610db55760405162461bcd60e51b815260206004820152601360248201527262757920666565206973206f7665722032302560681b6044820152606401610746565b815161ffff9081166076819055602084015182166077819055604085015190921660788190556107d0929091610deb9190612e85565b610df59190612e85565b1115610e3a5760405162461bcd60e51b815260206004820152601460248201527373656c6c20666565206973206f7665722032302560601b6044820152606401610746565b606d610e468982612f0b565b50606e610e538882612f0b565b50606f805460ff19166009179055606a869055610e7286600019612fcb565b610e7e90600019612e48565b606b55610e8d6103e887612e71565b608055607f805460ff60a81b1916600160a81b179055610eab611819565b610eb48961110a565b606b5460656000610ecd6033546001600160a01b031690565b6001600160a01b031681526020810191909152604001600090812091909155858160200201519050806001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f579190612fdf565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fa4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc89190612fdf565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015611015573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110399190612fdf565b607d80546001600160a01b03199081166001600160a01b0393841617909155607c8054909116838316179055603354166001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef606a546040516110b091815260200190565b60405180910390a35080156110ff576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050505050565b61111261176d565b6001600160a01b0381166111775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610746565b611180816117c7565b50565b6001600160a01b0383166111d95760405162461bcd60e51b815260206004820152601d60248201527f617070726f76652066726f6d20746865207a65726f20616464726573730000006044820152606401610746565b6001600160a01b03821661122f5760405162461bcd60e51b815260206004820152601b60248201527f617070726f766520746f20746865207a65726f206164647265737300000000006044820152606401610746565b6001600160a01b0383811660008181526067602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166112e65760405162461bcd60e51b815260206004820152601e60248201527f7472616e736665722066726f6d20746865207a65726f206164647265737300006044820152606401610746565b6001600160a01b03821661133c5760405162461bcd60e51b815260206004820152601c60248201527f7472616e7366657220746f20746865207a65726f2061646472657373000000006044820152606401610746565b6000811161138c5760405162461bcd60e51b815260206004820152601760248201527f7472616e7366657220616d6f756e74206973207a65726f0000000000000000006044820152606401610746565b600061139730610920565b608054909150811080159081906113b85750607f54600160a01b900460ff16155b80156113d25750607d546001600160a01b03868116911614155b80156113ec5750607c546001600160a01b03868116911614155b80156114015750607f54600160a81b900460ff165b1561155357607f805460ff60a01b1916600160a01b179055607b54607854607454607a546077546072546000959493929161143b91612e85565b6114459190612e85565b61144f9190612e85565b6114599190612e85565b6114639190612e85565b905060805492506000607454118061147d57506000607854115b8061148a57506000607b54115b156114de57600081607b546078546074546114a59190612e85565b6114af9190612e85565b6114b99086612e98565b6114c39190612e71565b607f549091506114dc906001600160a01b031682611848565b505b600060725411806114f157506000607754115b806114fe57506000607a54115b1561154457600081607a546077546072546115199190612e85565b6115239190612e85565b61152d9086612e98565b6115379190612e71565b905061154281611a64565b505b50607f805460ff60a01b191690555b607f54607d54600160a01b90910460ff1615906001600160a01b0390811690871614801561158e5750607c546001600160a01b038681169116145b15611597575060005b856001600160a01b03166115b36033546001600160a01b031690565b6001600160a01b031614806115ea5750846001600160a01b03166115df6033546001600160a01b031690565b6001600160a01b0316145b806116025750607e546001600160a01b038781169116145b8061161a5750607e546001600160a01b038681169116145b8061162d5750306001600160a01b038716145b806116405750306001600160a01b038616145b15611649575060005b600081156116bd57607054607155607254607355607454607555607d546001600160a01b03808816911603611692575060765460705560775460725560785460745560016116bd565b607d546001600160a01b038089169116036116bd5750607954607055607a54607255607b5460745560015b6116c987878785611aeb565b80156116e6576116e6607154607055607354607255607554607455565b50505050505050565b60008060006116fc611c85565b909250905061170b8183612e71565b9250505090565b600080600080600080600080600080600061172c8c611e08565b9350935093509350600080600061174d8f8787876117486116ef565b611e67565b919f509d509b509599509397509195509350505050919395979092949650565b6033546001600160a01b031633146109915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610746565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166118405760405162461bcd60e51b815260040161074690612ffc565b610991611ed9565b607c60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561189b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118bf9190612fdf565b6001600160a01b0316826001600160a01b03160361192c57476118e182611f09565b6118eb8147612e48565b607e546040519193506001600160a01b03169083156108fc029084906000818181858888f19350505050158015611926573d6000803e3d6000fd5b50505050565b6001600160a01b03821615611a48576040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015611982573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a69190613047565b90506119b28383612063565b6040516370a0823160e01b815230600482015281906001600160a01b038516906370a0823190602401602060405180830381865afa1580156119f8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1c9190613047565b611a269190612e48565b607e54909250611a43906001600160a01b038581169116846121eb565b505050565b607e54611a609030906001600160a01b031683611290565b5050565b6000611a71600283612e71565b90506000611a7f8284612e48565b905047611a8b83611f09565b6000611a978247612e48565b9050611aa3838261223d565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050505050565b80611b1557611b156070805460715560728054607355607480546075556000928390559082905555565b6001600160a01b03841660009081526068602052604090205460ff168015611b5657506001600160a01b03831660009081526068602052604090205460ff16155b15611b6b57611b668484846122ef565b611c69565b6001600160a01b03841660009081526068602052604090205460ff16158015611bac57506001600160a01b03831660009081526068602052604090205460ff165b15611bbc57611b66848484612430565b6001600160a01b03841660009081526068602052604090205460ff16158015611bfe57506001600160a01b03831660009081526068602052604090205460ff16155b15611c0e57611b668484846124ea565b6001600160a01b03841660009081526068602052604090205460ff168015611c4e57506001600160a01b03831660009081526068602052604090205460ff165b15611c5e57611b6684848461253d565b611c698484846124ea565b8061192657611926607154607055607354607255607554607455565b606b54606a546000918291825b606954811015611dd757826065600060698481548110611cb457611cb4612eaf565b60009182526020808320909101546001600160a01b031683528201929092526040019020541180611d1f5750816066600060698481548110611cf857611cf8612eaf565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15611d3557606b54606a54945094505050509091565b6065600060698381548110611d4c57611d4c612eaf565b60009182526020808320909101546001600160a01b03168352820192909252604001902054611d7b9084612e48565b92506066600060698381548110611d9457611d94612eaf565b60009182526020808320909101546001600160a01b03168352820192909252604001902054611dc39083612e48565b915080611dcf81613060565b915050611c92565b50606a54606b54611de89190612e71565b821015611dff57606b54606a549350935050509091565b90939092509050565b6000806000806000611e19866125c0565b90506000611e26876125dd565b90506000611e33886125f0565b905060008183611e43868c612e48565b611e4d9190612e48565b611e579190612e48565b9993985091965094509092505050565b6000808080611e76858a612e98565b90506000611e84868a612e98565b90506000611e92878a612e98565b90506000611ea0888a612e98565b905060008183611eb08688612e48565b611eba9190612e48565b611ec49190612e48565b949d949c50929a509298505050505050505050565b600054610100900460ff16611f005760405162461bcd60e51b815260040161074690612ffc565b610991336117c7565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611f3e57611f3e612eaf565b6001600160a01b03928316602091820292909201810191909152607c54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611f97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fbb9190612fdf565b81600181518110611fce57611fce612eaf565b6001600160a01b039283166020918202929092010152607c54611ff49130911684611183565b607c5460405163791ac94760e01b81526001600160a01b039091169063791ac9479061202d908590600090869030904290600401613079565b600060405180830381600087803b15801561204757600080fd5b505af115801561205b573d6000803e3d6000fd5b505050505050565b6040805160038082526080820190925260009160208201606080368337019050509050308160008151811061209a5761209a612eaf565b6001600160a01b03928316602091820292909201810191909152607c54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156120f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121179190612fdf565b8160018151811061212a5761212a612eaf565b60200260200101906001600160a01b031690816001600160a01b031681525050828160028151811061215e5761215e612eaf565b6001600160a01b039283166020918202929092010152607c546121849130911684611183565b607c54604051635c11d79560e01b81526001600160a01b0390911690635c11d795906121bd908590600090869030904290600401613079565b600060405180830381600087803b1580156121d757600080fd5b505af11580156116e6573d6000803e3d6000fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a4390849061261c565b607c546122559030906001600160a01b031684611183565b607c5460405163f305d71960e01b815230600482015260248101849052600060448201819052606482015261dead60848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af11580156122c3573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906122e891906130ea565b5050505050565b600080600080600080600061230388611712565b965096509650965096509650965087606660008c6001600160a01b03166001600160a01b03168152602001908152602001600020546123429190612e48565b6001600160a01b038b16600090815260666020908152604080832093909355606590522054612372908890612e48565b6001600160a01b03808c1660009081526065602052604080822093909355908b16815220546123a2908790612e85565b6001600160a01b038a166000908152606560205260409020556123c4826126f1565b6123cd8161277b565b6123d7858461288c565b886001600160a01b03168a6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8660405161241c91815260200190565b60405180910390a350505050505050505050565b600080600080600080600061244488611712565b965096509650965096509650965086606560008c6001600160a01b03166001600160a01b03168152602001908152602001600020546124839190612e48565b6001600160a01b03808c16600090815260656020908152604080832094909455918c168152606690915220546124ba908590612e85565b6001600160a01b038a166000908152606660209081526040808320939093556065905220546123a2908790612e85565b60008060008060008060006124fe88611712565b965096509650965096509650965086606560008c6001600160a01b03166001600160a01b03168152602001908152602001600020546123729190612e48565b600080600080600080600061255188611712565b965096509650965096509650965087606660008c6001600160a01b03166001600160a01b03168152602001908152602001600020546125909190612e48565b6001600160a01b038b16600090815260666020908152604080832093909355606590522054612483908890612e48565b6000612710607054836125d39190612e98565b61068b9190612e71565b6000612710607254836125d39190612e98565b607e546000906001600160a01b031661260b57506000919050565b612710607454836125d39190612e98565b6000612671826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128b29092919063ffffffff16565b90508051600014806126925750808060200190518101906126929190613118565b611a435760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610746565b60006126fb6116ef565b905060006127098284612e98565b30600090815260656020526040902054909150612727908290612e85565b3060009081526065602090815260408083209390935560689052205460ff1615611a435730600090815260666020526040902054612766908490612e85565b30600090815260666020526040902055505050565b607e54607f546001600160a01b039182169116156127965750305b8115611a605760006127a66116ef565b905060006127b48285612e98565b6001600160a01b0384166000908152606560205260409020549091506127db908290612e85565b6001600160a01b03841660009081526065602090815260408083209390935560689052205460ff1615612846576001600160a01b03831660009081526066602052604090205461282c908590612e85565b6001600160a01b0384166000908152606660205260409020555b6040518481526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a350505050565b81606b5461289a9190612e48565b606b55606c546128ab908290612e85565b606c555050565b60606128c184846000856128c9565b949350505050565b60608247101561292a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610746565b600080866001600160a01b031685876040516129469190613135565b60006040518083038185875af1925050503d8060008114612983576040519150601f19603f3d011682016040523d82523d6000602084013e612988565b606091505b5091509150612999878383876129a4565b979650505050505050565b60608315612a13578251600003612a0c576001600160a01b0385163b612a0c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610746565b50816128c1565b6128c18383815115612a285781518083602001fd5b8060405162461bcd60e51b81526004016107469190612a66565b60005b83811015612a5d578181015183820152602001612a45565b50506000910152565b6020815260008251806020840152612a85816040850160208701612a42565b601f01601f19169190910160400192915050565b6001600160a01b038116811461118057600080fd5b60008060408385031215612ac157600080fd5b8235612acc81612a99565b946020939093013593505050565b600080600060608486031215612aef57600080fd5b8335612afa81612a99565b92506020840135612b0a81612a99565b929592945050506040919091013590565b600060208284031215612b2d57600080fd5b5035919050565b801515811461118057600080fd5b60008060408385031215612b5557600080fd5b823591506020830135612b6781612b34565b809150509250929050565b600060208284031215612b8457600080fd5b813561076581612a99565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715612bc857612bc8612b8f565b60405290565b600082601f830112612bdf57600080fd5b813567ffffffffffffffff80821115612bfa57612bfa612b8f565b604051601f8301601f19908116603f01168101908282118183101715612c2257612c22612b8f565b81604052838152866020858801011115612c3b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600082601f830112612c6c57600080fd5b612c74612ba5565b806060840185811115612c8657600080fd5b845b81811015612cb157803561ffff81168114612ca35760008081fd5b845260209384019301612c88565b509095945050505050565b600080600080600080600080610200898b031215612cd957600080fd5b8835612ce481612a99565b975060208981013567ffffffffffffffff80821115612d0257600080fd5b612d0e8d838e01612bce565b995060408c0135915080821115612d2457600080fd5b50612d318c828d01612bce565b97505060608a013595508a609f8b0112612d4a57600080fd5b612d52612ba5565b8060e08c018d811115612d6457600080fd5b60808d015b81811015612d89578035612d7c81612a99565b8452928401928401612d69565b50819750612d978e82612c5b565b965050505050612dab8a6101408b01612c5b565b9150612dbb8a6101a08b01612c5b565b90509295985092959890939650565b60008060408385031215612ddd57600080fd5b8235612de881612a99565b91506020830135612b6781612a99565b600181811c90821680612e0c57607f821691505b602082108103612e2c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561068b5761068b612e32565b634e487b7160e01b600052601260045260246000fd5b600082612e8057612e80612e5b565b500490565b8082018082111561068b5761068b612e32565b808202811582820484141761068b5761068b612e32565b634e487b7160e01b600052603260045260246000fd5b601f821115611a4357600081815260208120601f850160051c81016020861015612eec5750805b601f850160051c820191505b8181101561205b57828155600101612ef8565b815167ffffffffffffffff811115612f2557612f25612b8f565b612f3981612f338454612df8565b84612ec5565b602080601f831160018114612f6e5760008415612f565750858301515b600019600386901b1c1916600185901b17855561205b565b600085815260208120601f198616915b82811015612f9d57888601518255948401946001909101908401612f7e565b5085821015612fbb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082612fda57612fda612e5b565b500690565b600060208284031215612ff157600080fd5b815161076581612a99565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561305957600080fd5b5051919050565b60006001820161307257613072612e32565b5060010190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156130c95784516001600160a01b0316835293830193918301916001016130a4565b50506001600160a01b03969096166060850152505050608001529392505050565b6000806000606084860312156130ff57600080fd5b8351925060208401519150604084015190509250925092565b60006020828403121561312a57600080fd5b815161076581612b34565b60008251613147818460208701612a42565b919091019291505056fea26469706673582212209e33c6667c0f8ba06fb42c06a718d4329836d311f4475194263c861b52c0448464736f6c63430008130033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.