Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,000,000,000,000 APESAFE 🦍
Holders
529
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 9 Decimals)
Balance
1,000,000,000 APESAFE 🦍Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
APESAFE
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* https://t.me/apestax APE SAFE https://apesafe.web.app/ APE STAX https://apestax.com https://twitter.com/ape_stax https://www.reddit.com/r/APESTAX https://www.instagram.com/apestax Welcome to the jungle. APE SAFE is a utility token for the APE ecosystem. 10% buy tax: 3.3% buyback, 3.4% marketing, 3.3% USDC redistribution 12.5% sell tax: 3.5% buyback, 4% marketing, 5% USDC redistribution 1 trillion token supply 10 second cooldown between transfers for buys. 30 second cooldown between transfers for sells and wallet to wallet. First 10 minutes buy limit of 1% total supply (10000000000 tokens) */ // SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.6; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/token/ERC20/IERC20.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/access/Ownable.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/utils/Context.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/utils/math/SafeMath.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/utils/Address.sol"; contract APESAFE is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; // ERC20 mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private constant _totalSupply = 10**12 * 10**_decimals; string private constant _name = 'APE SAFE'; string private constant _symbol = 'APESAFE \xF0\x9F\xA6\x8D'; uint8 private constant _decimals = 9; // uniswap address public constant uniswapV2RouterAddr = address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); IUniswapV2Router02 public uniswapV2Router = IUniswapV2Router02(uniswapV2RouterAddr); address public constant uniswapV2FactoryAddr = address(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f); address public liquidityPoolAddr = UniswapV2Library.pairFor(uniswapV2FactoryAddr, uniswapV2Router.WETH(), address(this)); // USDC Redis uint256 USDCPoolBalance; struct Holder { uint256 allocInLastPos; uint256 redisPoolInLastPos; uint256 withdrawnAlloc; uint256 timeTransfer; bool hasPos; } // first 10 minutes there is a buy limit of 10 bn uint256 private constant _buyLimit = 10000000000 * 10**_decimals; uint256 private constant _buyLimitTime = 10 minutes; uint256 private _buyCooldown = 10 seconds; uint256 private _sellCooldown = 30 seconds; uint256 private _w2wCooldown = 30 seconds; bool public w2wCooldownEnabled; bool public sellCooldownEnabled; bool public buyCooldownEnabled; bool public swapEnabled; bool public lfg; uint256 public lfgTime; mapping (address => Holder) public holders; mapping (address => bool) private excludedFromRewards; mapping (address => bool) private excludedFromTaxes; uint256 public fundsUnlockTime; address public USDCAddr = address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48); IERC20 USDC = IERC20(USDCAddr); // taxes struct Taxes { uint256 redistribution; uint256 marketing; uint256 buyback; } address payable public marketingAddr = payable(0x8c45c344de8A19cAfD0cCCE300AB9DE397b7D886); address payable public buybackAddr = payable(0x02a051380adF7DA7A44706AA0Ba0880c3C4568a0); Taxes private _buyTaxrates = Taxes(33, 34, 33); Taxes private _sellTaxrates = Taxes(50, 40, 35); Taxes private _w2wTaxrates = Taxes(50, 40, 35); uint256 public pendingRedisTokens; uint256 public pendingBuybackTokens; // whitelist for making special transfers, untaxed, "unswapped" and unrewarded mapping (address => bool) public whitelist; // blacklist to block transfers mapping (address => bool) public blacklist; // -------- CONSTRUCTOR constructor() { _balances[_msgSender()] = _totalSupply; emit Transfer(address(0), _msgSender(), _totalSupply); whitelist[_msgSender()] = true; whitelist[address(this)] = true; fundsUnlockTime = block.timestamp.add(61 days); w2wCooldownEnabled = true; sellCooldownEnabled = true; buyCooldownEnabled = true; swapEnabled = true; } receive() external payable {} // -------- IERC20METADATA function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function decimals() public view virtual override returns (uint8) { return _decimals; } // -------- IERC20 function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - 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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } // -------- INTERNAL & PRIVATE function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater than zero"); require(!blacklist[sender] && !blacklist[recipient], "APESAFE: Address is blacklisted. "); require(lfg || whitelist[sender] || whitelist[recipient], "APESAFE: Trading is not live yet. "); // for providing initial liquidity and swaps // careful, need to whitelist owner later also for removing liquidity if (inSwap || whitelist[sender] || whitelist[recipient]) { _standardTokenTransfer(sender, recipient, amount); return; } Taxes memory taxrates = Taxes(0, 0, 0); // buys if (sender == liquidityPoolAddr && recipient != uniswapV2RouterAddr) { if (lfgTime.add(_buyLimitTime) >= block.timestamp) { require( amount <= _buyLimit, "APESAFE: No buy greater than 10 billion can be made for the first 10 minutes. " ); } if (sellCooldownEnabled) { _checkCooldown(recipient, _buyCooldown); } if (!excludedFromRewards[recipient]) { _positionChange(recipient); } taxrates = _buyTaxrates; } // sells if (recipient == liquidityPoolAddr && sender != uniswapV2RouterAddr) { if (sellCooldownEnabled) { _checkCooldown(sender, _sellCooldown); } if (!excludedFromRewards[sender]) { _positionChange(sender); } if (swapEnabled) { _doTheSwap(); } taxrates = _sellTaxrates; } // wallet to wallet if (recipient != liquidityPoolAddr && sender != liquidityPoolAddr) { if (w2wCooldownEnabled) { _checkCooldown(sender, _w2wCooldown); } if (!excludedFromRewards[sender]) { _positionChange(sender); } if (!excludedFromRewards[recipient]) { _positionChange(recipient); } if (swapEnabled) { _doTheSwap(); } taxrates = _w2wTaxrates; } // transfer if (excludedFromTaxes[sender] || excludedFromTaxes[recipient]) { _standardTokenTransfer(sender, recipient, amount); } else { address contractAddr = address(this); uint256 taxAmount; (amount,taxAmount) = _taxTo(amount, taxrates.buyback, contractAddr); pendingBuybackTokens += taxAmount; (amount,taxAmount) = _taxTo(amount, taxrates.redistribution, contractAddr); pendingRedisTokens += taxAmount; (amount,) = _taxTo(amount, taxrates.marketing, contractAddr); _standardTokenTransfer(sender, recipient, amount); } } function _checkCooldown(address addr, uint256 cooldown) private { // enforce cooldown and note down time require( holders[addr].timeTransfer.add(cooldown) < block.timestamp, "APESAFE: Need to wait until next transfer. " ); holders[addr].timeTransfer = block.timestamp; } function _standardTokenTransfer(address sender, address recipient, uint256 amount) private { _balances[sender] = _balances[sender].sub(amount); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } function _taxTo(uint256 amount, uint256 taxrate, address recipient) private returns (uint256,uint256) { uint256 taxAmount = amount.mul(taxrate).div(1000); _balances[recipient] = _balances[recipient].add(taxAmount); amount = amount.sub(taxAmount); return (amount, taxAmount); } // -------- SWAP bool public inSwap = false; modifier lockTheSwap { inSwap = true; _; inSwap = false; } function _doTheSwap() private { if (balanceOf(address(this)) == 0) { return; } uint256 redisTokensToSwap = _getTokensToSwap(pendingRedisTokens); uint256 buybackTokensToSwap = _getTokensToSwap(pendingBuybackTokens); uint256 marketingTokensToSwap = _getTokensToSwap(balanceOf(address(this)).sub(pendingRedisTokens).sub(pendingBuybackTokens)); pendingRedisTokens = pendingRedisTokens.sub(redisTokensToSwap); pendingBuybackTokens = pendingBuybackTokens.sub(buybackTokensToSwap); uint256 totalTokensToSwap = redisTokensToSwap.add(buybackTokensToSwap).add(marketingTokensToSwap); _swapTokensForETH(totalTokensToSwap); uint256 redisRatio = redisTokensToSwap.mul(10000).div(totalTokensToSwap); uint256 buybackRatio = buybackTokensToSwap.mul(10000).div(totalTokensToSwap); uint256 ethForRedis = address(this).balance.mul(redisRatio).div(10000); uint256 ethForBuyback = address(this).balance.mul(buybackRatio).div(10000); uint256 ethForMarketing = address(this).balance.sub(ethForRedis).sub(ethForBuyback); _swapETHForUSDC(ethForRedis); if (ethForBuyback != 0) { buybackAddr.transfer(ethForBuyback); } if (ethForMarketing != 0) { marketingAddr.transfer(ethForMarketing); } } function _getTokensToSwap(uint256 tokenAmount) public view returns (uint256) { // no more than 4% price impact if (tokenAmount.mul(1000).div(balanceOf(liquidityPoolAddr)) <= 40) { return tokenAmount; } return balanceOf(liquidityPoolAddr).mul(4).div(100); } function _swapETHForUSDC(uint256 weiAmount) private lockTheSwap() { if (weiAmount == 0) { return; } address[] memory path = new address[](2); path[0] = uniswapV2Router.WETH(); path[1] = USDCAddr; uint256 prevBalance = USDC.balanceOf(address(this)); uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: weiAmount}( 0, path, address(this), block.timestamp.add(300) ); uint256 postBalance = USDC.balanceOf(address(this)); USDCPoolBalance += postBalance.sub(prevBalance); } function _swapUSDCToTokensTo(uint256 tokenAmount, address payable addr) private lockTheSwap() { if (tokenAmount == 0) { return; } address[] memory path = new address[](3); path[0] = USDCAddr; path[1] = uniswapV2Router.WETH(); path[2] = address(this); USDC.approve(uniswapV2RouterAddr, tokenAmount); uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens( tokenAmount, 0, path, addr, block.timestamp.add(300) ); } function _swapTokensForETH(uint256 tokenAmount) private lockTheSwap() { if (tokenAmount == 0) { return; } address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), uniswapV2RouterAddr, tokenAmount); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, payable(this), block.timestamp.add(300) ); } // -------- ADMIN function divideAndConquer() external onlyOwner() { _lfg(); } function _lfg() private { require(!lfg, "APESAFE: Wen moon ser. "); lfg = true; lfgTime = block.timestamp; } function setAutoSwap(bool onoff) external onlyOwner() { swapEnabled = onoff; } function manualSwap() external onlyOwner() { _doTheSwap(); } function setWhitelist(address addr, bool onoff) external onlyOwner() { whitelist[addr] = onoff; } function setBlacklist(address addr, bool onoff) external onlyOwner() { blacklist[addr] = onoff; } function setTaxrates(uint256 i, Taxes calldata taxrates) external onlyOwner() { if (i == 0) { _buyTaxrates = taxrates; } else if (i == 1){ _sellTaxrates = taxrates; } else { _w2wTaxrates = taxrates; } } // not pretty, yes function setCooldown(uint256 i, uint256 cooldown) external onlyOwner() { require(cooldown <= 60 seconds, "APESAFE: Cooldown value too large. "); if (i == 0) { _buyCooldown = cooldown; if (cooldown == 0) { buyCooldownEnabled = false; } else { buyCooldownEnabled = true; } } else if (i == 1) { _sellCooldown = cooldown; if (cooldown == 0) { sellCooldownEnabled = false; } else { sellCooldownEnabled = true; } } else { _w2wCooldown = cooldown; if (cooldown == 0) { w2wCooldownEnabled = false; } else { w2wCooldownEnabled = true; } }//no, sniper! if (!lfg) { _lfg(); } } function setMarketingWallet(address payable addr) external onlyOwner() { marketingAddr = addr; } function setBuybackLottery(address payable addr) external onlyOwner() { buybackAddr = addr; } // -------- USDCREDIS // public function withdrawAlloc() public { address addr = _msgSender(); _withdraw(addr); } function getAlloc(address addr) public view returns (uint256) { uint256 allocSinceLastPos = _getAllocSinceLastPos(addr); return holders[addr].allocInLastPos.add(allocSinceLastPos).sub(holders[addr].withdrawnAlloc); } function convertUSDCToTokens() public { address payable addr = payable(_msgSender()); uint256 amount = getAlloc(addr); holders[addr].withdrawnAlloc = holders[addr].withdrawnAlloc.add(amount); _positionChange(addr); _swapUSDCToTokensTo(amount, addr); } // owner function withdrawAllocFor(address payable addr) external onlyOwner() { _withdraw(addr); } // similar to locking liquiditypools in uniswap this locks the usdc pool function lockRedisPool(uint256 time) external onlyOwner() { require(fundsUnlockTime <= time, "APESAFE: Too early."); fundsUnlockTime = time; } function drainRedisPool() external onlyOwner() { require(fundsUnlockTime <= block.timestamp, "APESAFE: Too early."); USDC.transfer(_msgSender(), USDC.balanceOf(address(this))); } function disperseTokens(address[] calldata recipients, uint256[] calldata values) external onlyOwner() { for (uint256 i = 0; i < recipients.length; i++) { _transfer(owner(), recipients[i], values[i]); holders[recipients[i]].hasPos = true; } } function updatePosition(address addr) external onlyOwner() { _positionChange(addr); } // emergency function, hopefully never used... function fixPosition(address addr, Holder calldata holder) external onlyOwner() { holders[addr] = holder; } // private function _positionChange(address addr) private { Holder memory holder = holders[addr]; if (excludedFromRewards[addr]) { if (holder.hasPos) { holder.allocInLastPos = 0; holder.redisPoolInLastPos = 0; holder.withdrawnAlloc = 0; holder.hasPos = false; holders[addr] = holder; } return; } if (!holder.hasPos) { holder.hasPos = true; } uint256 allocSinceLastPos = _getAllocSinceLastPos(addr); holder.allocInLastPos = holder.allocInLastPos.add(allocSinceLastPos); holder.redisPoolInLastPos = USDCPoolBalance; holders[addr] = holder; } function _getAllocSinceLastPos(address addr) private view returns (uint256) { uint256 redisPoolSinceLastPos = USDCPoolBalance.sub(holders[addr].redisPoolInLastPos); uint256 allocPerc = balanceOf(addr).mul(100000).div(_totalSupply); return redisPoolSinceLastPos.mul(allocPerc).div(100000); } function _withdraw(address addr) private { require(holders[addr].hasPos, "APESAFE: No position found for this address."); uint256 amount = getAlloc(addr); holders[addr].withdrawnAlloc = holders[addr].withdrawnAlloc.add(amount); USDC.transfer(addr, amount); } } // -------- LIBRARIES & INTERFACES library UniswapV2Library { // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS'); } // calculates the CREATE2 address for a pair without making any external calls function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) { (address token0, address token1) = sortTokens(tokenA, tokenB); pair = address(uint160(uint(keccak256(abi.encodePacked( hex'ff', factory, keccak256(abi.encodePacked(token0, token1)), hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash ))))); } } interface IUniswapV2Router02 { function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function WETH() external pure returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"USDCAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"_getTokensToSwap","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":[{"internalType":"address","name":"","type":"address"}],"name":"blacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyCooldownEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buybackAddr","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"convertUSDCToTokens","outputs":[],"stateMutability":"nonpayable","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":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"disperseTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"divideAndConquer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drainRedisPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"components":[{"internalType":"uint256","name":"allocInLastPos","type":"uint256"},{"internalType":"uint256","name":"redisPoolInLastPos","type":"uint256"},{"internalType":"uint256","name":"withdrawnAlloc","type":"uint256"},{"internalType":"uint256","name":"timeTransfer","type":"uint256"},{"internalType":"bool","name":"hasPos","type":"bool"}],"internalType":"struct APESAFE.Holder","name":"holder","type":"tuple"}],"name":"fixPosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fundsUnlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getAlloc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holders","outputs":[{"internalType":"uint256","name":"allocInLastPos","type":"uint256"},{"internalType":"uint256","name":"redisPoolInLastPos","type":"uint256"},{"internalType":"uint256","name":"withdrawnAlloc","type":"uint256"},{"internalType":"uint256","name":"timeTransfer","type":"uint256"},{"internalType":"bool","name":"hasPos","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inSwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"lfg","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lfgTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityPoolAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"lockRedisPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manualSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"marketingAddr","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingBuybackTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingRedisTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellCooldownEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"onoff","type":"bool"}],"name":"setAutoSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"onoff","type":"bool"}],"name":"setBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"addr","type":"address"}],"name":"setBuybackLottery","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"uint256","name":"cooldown","type":"uint256"}],"name":"setCooldown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"addr","type":"address"}],"name":"setMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"},{"components":[{"internalType":"uint256","name":"redistribution","type":"uint256"},{"internalType":"uint256","name":"marketing","type":"uint256"},{"internalType":"uint256","name":"buyback","type":"uint256"}],"internalType":"struct APESAFE.Taxes","name":"taxrates","type":"tuple"}],"name":"setTaxrates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"onoff","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uniswapV2FactoryAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2RouterAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"updatePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"w2wCooldownEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAlloc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"addr","type":"address"}],"name":"withdrawAllocFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040819052600380546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556315ab88c960e31b8252620000c191735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f919063ad5c46489060849060209060048186803b1580156200007457600080fd5b505afa15801562000089573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000af91906200051b565b306200031960201b6200162c1760201c565b600480546001600160a01b03929092166001600160a01b0319928316179055600a600655601e6007819055600855600f8054821673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489081179091556010805483169091179055601180548216738c45c344de8a19cafd0ccce300ab9de397b7d886179055601280549091167302a051380adf7da7a44706aa0ba0880c3c4568a017905560408051606080820183526021808352602260208085018290529385018290526013829055601455601555825180820184526032808252602882850181905260239286018390526016829055601781905560188390558551938401865281845283850181905292909401819052601993909355601a55601b91909155805460ff19169055348015620001e957600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620002396009600a620005b1565b6200024a9064e8d4a5100062000670565b33600081815260016020526040812092909255907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6200028d6009600a620005b1565b6200029e9064e8d4a5100062000670565b60405190815260200160405180910390a3336000908152601e602090815260408083208054600160ff199182168117909255308552919093208054909116909217909155620002fd90429062506b80906200170562000402821b17901c565b600e556009805463ffffffff19166301010101179055620006a8565b6000808062000329858562000419565b6040516001600160601b0319606084811b8216602084015283901b1660348201529193509150869060480160405160208183030381529060405280519060200120604051602001620003e09291907fff00000000000000000000000000000000000000000000000000000000000000815260609290921b6001600160601b031916600183015260158201527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b60006200041082846200054d565b90505b92915050565b600080826001600160a01b0316846001600160a01b03161415620004925760405162461bcd60e51b815260206004820152602560248201527f556e697377617056324c6962726172793a204944454e544943414c5f41444452604482015264455353455360d81b60648201526084015b60405180910390fd5b826001600160a01b0316846001600160a01b031610620004b4578284620004b7565b83835b90925090506001600160a01b038216620005145760405162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015260640162000489565b9250929050565b6000602082840312156200052e57600080fd5b81516001600160a01b03811681146200054657600080fd5b9392505050565b6000821982111562000563576200056362000692565b500190565b600181815b80851115620005a95781600019048211156200058d576200058d62000692565b808516156200059b57918102915b93841c93908002906200056d565b509250929050565b60006200041060ff841683600082620005cd5750600162000413565b81620005dc5750600062000413565b8160018114620005f55760028114620006005762000620565b600191505062000413565b60ff84111562000614576200061462000692565b50506001821b62000413565b5060208310610133831016604e8410600b841016171562000645575081810a62000413565b62000651838362000568565b806000190482111562000668576200066862000692565b029392505050565b60008160001904831182151516156200068d576200068d62000692565b500290565b634e487b7160e01b600052601160045260246000fd5b61341880620006b86000396000f3fe60806040526004361061031e5760003560e01c80636ddd1713116101ab578063a457c2d7116100f7578063dd62ed3e11610095578063f2fde38b1161006f578063f2fde38b146109dc578063f9f92be4146109fc578063fdcd7f4c14610a2c578063ff142f9714610a4c57600080fd5b8063dd62ed3e14610957578063e0beac771461099d578063e63c2fc0146109bd57600080fd5b8063b202dedc116100d1578063b202dedc146108df578063cea20851146108f5578063d83067861461091d578063dd1fa7181461093757600080fd5b8063a457c2d71461087f578063a50ed19b1461089f578063a9059cbb146108bf57600080fd5b806388a75d0c1161016457806393818cfa1161013e57806393818cfa146107da57806395d89b41146107fa578063986c6aa01461082f5780639b19251a1461084f57600080fd5b806388a75d0c146107855780638da5cb5b1461079a5780638f793cb9146107b857600080fd5b80636ddd1713146106c457806370a08231146106e5578063715018a61461071b5780637bf6494a1461073057806381f651aa1461074557806385c619051461076557600080fd5b8063395093511161026a57806353d6fd5911610223578063626d386d116101fd578063626d386d1461064e57806364be10ed1461066e57806369ae3dfa1461068e5780636ca9a3f6146106a457600080fd5b806353d6fd59146105ee5780635d098b381461060e578063617fe0ed1461062e57600080fd5b806339509351146105495780633ff42b92146105695780634013bc3e146105895780634cc9202b1461059f5780634cc98cfe146105bf57806351bc3c85146105d957600080fd5b80631694505e116102d757806323b872dd116102b157806323b872dd146104e357806323fb16e9146105035780632f30b5c414610518578063313ce5671461052d57600080fd5b80631694505e1461043757806318160ddd1461045757806318a5bbdc1461046c57600080fd5b80630505a8631461032a57806306fdde0314610353578063095ea7b31461038d5780630c418998146103bd5780630ddeee88146103f5578063153b0d1e1461041557600080fd5b3661032557005b600080fd5b34801561033657600080fd5b50610340600a5481565b6040519081526020015b60405180910390f35b34801561035f57600080fd5b50604080518082019091526008815267415045205341464560c01b60208201525b60405161034a919061310a565b34801561039957600080fd5b506103ad6103a8366004612f41565b610a74565b604051901515815260200161034a565b3480156103c957600080fd5b506012546103dd906001600160a01b031681565b6040516001600160a01b03909116815260200161034a565b34801561040157600080fd5b50610340610410366004612e1e565b610a8b565b34801561042157600080fd5b50610435610430366004612ed2565b610ad4565b005b34801561044357600080fd5b506003546103dd906001600160a01b031681565b34801561046357600080fd5b50610340610b32565b34801561047857600080fd5b506104b9610487366004612e1e565b600b60205260009081526040902080546001820154600283015460038401546004909401549293919290919060ff1685565b6040805195865260208601949094529284019190915260608301521515608082015260a00161034a565b3480156104ef57600080fd5b506103ad6104fe366004612e91565b610b54565b34801561050f57600080fd5b50610435610c05565b34801561052457600080fd5b50610435610c6d565b34801561053957600080fd5b506040516009815260200161034a565b34801561055557600080fd5b506103ad610564366004612f41565b610c7a565b34801561057557600080fd5b506011546103dd906001600160a01b031681565b34801561059557600080fd5b50610340601c5481565b3480156105ab57600080fd5b506104356105ba366004613013565b610cb1565b3480156105cb57600080fd5b506009546103ad9060ff1681565b3480156105e557600080fd5b50610435610d28565b3480156105fa57600080fd5b50610435610609366004612ed2565b610d5c565b34801561061a57600080fd5b50610435610629366004612e1e565b610db1565b34801561063a57600080fd5b506009546103ad9062010000900460ff1681565b34801561065a57600080fd5b50610435610669366004612e1e565b610dfd565b34801561067a57600080fd5b50610435610689366004612e1e565b610e49565b34801561069a57600080fd5b50610340600e5481565b3480156106b057600080fd5b506103406106bf366004613013565b610e7c565b3480156106d057600080fd5b506009546103ad906301000000900460ff1681565b3480156106f157600080fd5b50610340610700366004612e1e565b6001600160a01b031660009081526001602052604090205490565b34801561072757600080fd5b50610435610ee8565b34801561073c57600080fd5b50610435610f5c565b34801561075157600080fd5b506004546103dd906001600160a01b031681565b34801561077157600080fd5b50610435610780366004612f00565b6110d9565b34801561079157600080fd5b5061043561112d565b3480156107a657600080fd5b506000546001600160a01b03166103dd565b3480156107c457600080fd5b506009546103ad90640100000000900460ff1681565b3480156107e657600080fd5b506104356107f5366004612fd9565b61115f565b34801561080657600080fd5b5060408051808201909152600c81526b4150455341464520f09fa68d60a01b6020820152610380565b34801561083b57600080fd5b5061043561084a366004613045565b6111a7565b34801561085b57600080fd5b506103ad61086a366004612e1e565b601e6020526000908152604090205460ff1681565b34801561088b57600080fd5b506103ad61089a366004612f41565b611232565b3480156108ab57600080fd5b506104356108ba36600461306f565b6112cd565b3480156108cb57600080fd5b506103ad6108da366004612f41565b611402565b3480156108eb57600080fd5b50610340601d5481565b34801561090157600080fd5b506103dd737a250d5630b4cf539739df2c5dacb4c659f2488d81565b34801561092957600080fd5b506020546103ad9060ff1681565b34801561094357600080fd5b50610435610952366004612f6d565b61140f565b34801561096357600080fd5b50610340610972366004612e58565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b3480156109a957600080fd5b506104356109b8366004612e1e565b61150f565b3480156109c957600080fd5b506009546103ad90610100900460ff1681565b3480156109e857600080fd5b506104356109f7366004612e1e565b611542565b348015610a0857600080fd5b506103ad610a17366004612e1e565b601f6020526000908152604090205460ff1681565b348015610a3857600080fd5b50600f546103dd906001600160a01b031681565b348015610a5857600080fd5b506103dd735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b6000610a81338484611711565b5060015b92915050565b600080610a9783611836565b6001600160a01b0384166000908152600b6020526040902060028101549054919250610acd91610ac79084611705565b906118c4565b9392505050565b6000546001600160a01b03163314610b075760405162461bcd60e51b8152600401610afe9061315f565b60405180910390fd5b6001600160a01b03919091166000908152601f60205260409020805460ff1916911515919091179055565b6000610b406009600a61324d565b610b4f9064e8d4a510006132f8565b905090565b6000610b618484846118d0565b6001600160a01b038416600090815260026020908152604080832033845290915290205482811015610be65760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610afe565b610bfa8533610bf58685613317565b611711565b506001949350505050565b336000610c1182610a8b565b6001600160a01b0383166000908152600b6020526040902060020154909150610c3a9082611705565b6001600160a01b0383166000908152600b6020526040902060020155610c5f82611f92565b610c6981836120f8565b5050565b33610c778161234f565b50565b3360008181526002602090815260408083206001600160a01b03871684529091528120549091610a81918590610bf59086906131d0565b6000546001600160a01b03163314610cdb5760405162461bcd60e51b8152600401610afe9061315f565b80600e541115610d235760405162461bcd60e51b815260206004820152601360248201527220a822a9a0a3229d102a37b79032b0b9363c9760691b6044820152606401610afe565b600e55565b6000546001600160a01b03163314610d525760405162461bcd60e51b8152600401610afe9061315f565b610d5a6124a1565b565b6000546001600160a01b03163314610d865760405162461bcd60e51b8152600401610afe9061315f565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314610ddb5760405162461bcd60e51b8152600401610afe9061315f565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610e275760405162461bcd60e51b8152600401610afe9061315f565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610e735760405162461bcd60e51b8152600401610afe9061315f565b610c778161234f565b6004546001600160a01b0316600090815260016020526040812054602890610eb090610eaa856103e8612643565b9061264f565b11610eb9575090565b600480546001600160a01b0316600090815260016020526040902054610a8591606491610eaa91905b90612643565b6000546001600160a01b03163314610f125760405162461bcd60e51b8152600401610afe9061315f565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03163314610f865760405162461bcd60e51b8152600401610afe9061315f565b42600e541115610fce5760405162461bcd60e51b815260206004820152601360248201527220a822a9a0a3229d102a37b79032b0b9363c9760691b6044820152606401610afe565b6010546001600160a01b031663a9059cbb336010546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561102357600080fd5b505afa158015611037573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105b919061302c565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156110a157600080fd5b505af11580156110b5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c779190612ff6565b6000546001600160a01b031633146111035760405162461bcd60e51b8152600401610afe9061315f565b6001600160a01b0382166000908152600b6020526040902081906111278282613375565b50505050565b6000546001600160a01b031633146111575760405162461bcd60e51b8152600401610afe9061315f565b610d5a61265b565b6000546001600160a01b031633146111895760405162461bcd60e51b8152600401610afe9061315f565b6009805491151563010000000263ff00000019909216919091179055565b6000546001600160a01b031633146111d15760405162461bcd60e51b8152600401610afe9061315f565b816111ed57803560135560208101356014556040013560155550565b81600114156112145780356016908155602082013560175560408201356018558190611127565b803560199081556020820135601a556040820135601b558190611127565b3360009081526002602090815260408083206001600160a01b0386168452909152812054828110156112b45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610afe565b6112c33385610bf58685613317565b5060019392505050565b6000546001600160a01b031633146112f75760405162461bcd60e51b8152600401610afe9061315f565b603c8111156113545760405162461bcd60e51b815260206004820152602360248201527f415045534146453a20436f6f6c646f776e2076616c756520746f6f206c61726760448201526203297160ed1b6064820152608401610afe565b8161138a57600681905580611374576009805462ff0000191690556113e8565b6009805462ff00001916620100001790556113e8565b81600114156113c1576007819055806113ad576009805461ff00191690556113e8565b6009805461ff0019166101001790556113e8565b6008819055806113da576009805460ff191690556113e8565b6009805460ff191660011790555b600954640100000000900460ff16610c6957610c6961265b565b6000610a813384846118d0565b6000546001600160a01b031633146114395760405162461bcd60e51b8152600401610afe9061315f565b60005b838110156115085761149e6114596000546001600160a01b031690565b86868481811061146b5761146b61335f565b90506020020160208101906114809190612e1e565b8585858181106114925761149261335f565b905060200201356118d0565b6001600b60008787858181106114b6576114b661335f565b90506020020160208101906114cb9190612e1e565b6001600160a01b031681526020810191909152604001600020600401805460ff1916911515919091179055806115008161332e565b91505061143c565b5050505050565b6000546001600160a01b031633146115395760405162461bcd60e51b8152600401610afe9061315f565b610c7781611f92565b6000546001600160a01b0316331461156c5760405162461bcd60e51b8152600401610afe9061315f565b6001600160a01b0381166115d15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610afe565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600080600061163b85856126d1565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015291935091508690604801604051602081830303815290604052805190602001206040516020016116e39291906001600160f81b0319815260609290921b6bffffffffffffffffffffffff1916600183015260158201527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b6000610acd82846131d0565b6001600160a01b0383166117735760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610afe565b6001600160a01b0382166117d45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610afe565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0381166000908152600b6020526040812060010154600554829161186191906118c4565b905060006118a96118746009600a61324d565b6118839064e8d4a510006132f8565b610eaa620186a0610ee2886001600160a01b031660009081526001602052604090205490565b90506118bc620186a0610eaa8484612643565b949350505050565b6000610acd8284613317565b6001600160a01b0383166119345760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610afe565b6001600160a01b0382166119965760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610afe565b600081116119f85760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610afe565b6001600160a01b0383166000908152601f602052604090205460ff16158015611a3a57506001600160a01b0382166000908152601f602052604090205460ff16155b611a905760405162461bcd60e51b815260206004820152602160248201527f415045534146453a204164647265737320697320626c61636b6c69737465642e6044820152600160fd1b6064820152608401610afe565b600954640100000000900460ff1680611ac157506001600160a01b0383166000908152601e602052604090205460ff165b80611ae457506001600160a01b0382166000908152601e602052604090205460ff165b611b3b5760405162461bcd60e51b815260206004820152602260248201527f415045534146453a2054726164696e67206973206e6f74206c69766520796574604482015261017160f51b6064820152608401610afe565b60205460ff1680611b6457506001600160a01b0383166000908152601e602052604090205460ff165b80611b8757506001600160a01b0382166000908152601e602052604090205460ff165b15611b9c57611b978383836127c9565b505050565b60408051606081018252600080825260208201819052918101919091526004546001600160a01b038581169116148015611bf357506001600160a01b038316737a250d5630b4cf539739df2c5dacb4c659f2488d14155b15611d1d57600a544290611c0990610258611705565b10611cb557611c1a6009600a61324d565b611c29906402540be4006132f8565b821115611cb55760405162461bcd60e51b815260206004820152604e60248201527f415045534146453a204e6f206275792067726561746572207468616e2031302060448201527f62696c6c696f6e2063616e206265206d61646520666f7220746865206669727360648201526d03a1018981036b4b73aba32b997160951b608482015260a401610afe565b600954610100900460ff1615611cd157611cd18360065461286f565b6001600160a01b0383166000908152600c602052604090205460ff16611cfa57611cfa83611f92565b506040805160608101825260135481526014546020820152601554918101919091525b6004546001600160a01b038481169116148015611d5757506001600160a01b038416737a250d5630b4cf539739df2c5dacb4c659f2488d14155b15611dde57600954610100900460ff1615611d7857611d788460075461286f565b6001600160a01b0384166000908152600c602052604090205460ff16611da157611da184611f92565b6009546301000000900460ff1615611dbb57611dbb6124a1565b506040805160608101825260165481526017546020820152601854918101919091525b6004546001600160a01b03848116911614801590611e0a57506004546001600160a01b03858116911614155b15611eb55760095460ff1615611e2657611e268460085461286f565b6001600160a01b0384166000908152600c602052604090205460ff16611e4f57611e4f84611f92565b6001600160a01b0383166000908152600c602052604090205460ff16611e7857611e7883611f92565b6009546301000000900460ff1615611e9257611e926124a1565b50604080516060810182526019548152601a546020820152601b54918101919091525b6001600160a01b0384166000908152600d602052604090205460ff1680611ef457506001600160a01b0383166000908152600d602052604090205460ff165b15611f0957611f048484846127c9565b611127565b60003090506000611f1f84846040015184612919565b809250819550505080601d6000828254611f3991906131d0565b90915550508251611f4c90859084612919565b809250819550505080601c6000828254611f6691906131d0565b92505081905550611f7c84846020015184612919565b509350611f8a8686866127c9565b505050505050565b6001600160a01b0381166000818152600b60209081526040808320815160a081018352815481526001820154818501526002820154818401526003820154606082015260049091015460ff90811615156080830152948452600c909252909120549091161561206b57806080015115610c6957600080825260208083018281526040808501848152608086018581526001600160a01b0388168652600b909452932084518155905160018201559151600283015560608301516003830155516004909101805491151560ff199092169190911790555050565b806080015161207c57600160808201525b600061208783611836565b82519091506120969082611705565b82525060055460208083019182526001600160a01b03939093166000908152600b909352604092839020825181559051600182015591810151600283015560608101516003830155608001516004909101805460ff1916911515919091179055565b6020805460ff191660011790558161210f57612341565b60408051600380825260808201909252600091602082016060803683375050600f5482519293506001600160a01b0316918391506000906121525761215261335f565b6001600160a01b03928316602091820292909201810191909152600354604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156121a657600080fd5b505afa1580156121ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121de9190612e3b565b816001815181106121f1576121f161335f565b60200260200101906001600160a01b031690816001600160a01b03168152505030816002815181106122255761222561335f565b6001600160a01b03928316602091820292909201015260105460405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d60048201526024810186905291169063095ea7b390604401602060405180830381600087803b15801561229257600080fd5b505af11580156122a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ca9190612ff6565b506003546001600160a01b0316635c11d79584600084866122ed4261012c611705565b6040518663ffffffff1660e01b815260040161230d959493929190613194565b600060405180830381600087803b15801561232757600080fd5b505af115801561233b573d6000803e3d6000fd5b50505050505b50506020805460ff19169055565b6001600160a01b0381166000908152600b602052604090206004015460ff166123cf5760405162461bcd60e51b815260206004820152602c60248201527f415045534146453a204e6f20706f736974696f6e20666f756e6420666f72207460448201526b3434b99030b2323932b9b99760a11b6064820152608401610afe565b60006123da82610a8b565b6001600160a01b0383166000908152600b60205260409020600201549091506124039082611705565b6001600160a01b038381166000818152600b60205260409081902060020193909355601054925163a9059cbb60e01b815260048101919091526024810184905291169063a9059cbb90604401602060405180830381600087803b15801561246957600080fd5b505af115801561247d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b979190612ff6565b306000908152600160205260409020546124b757565b60006124c4601c54610e7c565b905060006124d3601d54610e7c565b905060006125056106bf601d54610ac7601c54610ac7306001600160a01b031660009081526001602052604090205490565b601c5490915061251590846118c4565b601c55601d5461252590836118c4565b601d55600061253e826125388686611705565b90611705565b905061254981612981565b600061255b82610eaa87612710612643565b9050600061256f83610eaa87612710612643565b90506000612583612710610eaa4786612643565b90506000612597612710610eaa4786612643565b905060006125a982610ac747866118c4565b90506125b483612b2e565b81156125f6576012546040516001600160a01b039091169083156108fc029084906000818181858888f193505050501580156125f4573d6000803e3d6000fd5b505b8015612638576011546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612636573d6000803e3d6000fd5b505b505050505050505050565b6000610acd82846132f8565b6000610acd82846131e8565b600954640100000000900460ff16156126b65760405162461bcd60e51b815260206004820152601760248201527f415045534146453a2057656e206d6f6f6e207365722e200000000000000000006044820152606401610afe565b6009805464ff00000000191664010000000017905542600a55565b600080826001600160a01b0316846001600160a01b031614156127445760405162461bcd60e51b815260206004820152602560248201527f556e697377617056324c6962726172793a204944454e544943414c5f41444452604482015264455353455360d81b6064820152608401610afe565b826001600160a01b0316846001600160a01b031610612764578284612767565b83835b90925090506001600160a01b0382166127c25760405162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f4144445245535300006044820152606401610afe565b9250929050565b6001600160a01b0383166000908152600160205260409020546127ec90826118c4565b6001600160a01b03808516600090815260016020526040808220939093559084168152205461281b9082611705565b6001600160a01b0380841660008181526001602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906118299085815260200190565b6001600160a01b0382166000908152600b602052604090206003015442906128979083611705565b106128f85760405162461bcd60e51b815260206004820152602b60248201527f415045534146453a204e65656420746f207761697420756e74696c206e65787460448201526a0103a3930b739b332b917160ad1b6064820152608401610afe565b506001600160a01b03166000908152600b6020526040902042600390910155565b6000808061292d6103e8610eaa8888612643565b6001600160a01b0385166000908152600160205260409020549091506129539082611705565b6001600160a01b03851660009081526001602052604090205561297686826118c4565b969095509350505050565b6020805460ff191660011790558061299857612b21565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106129cd576129cd61335f565b6001600160a01b03928316602091820292909201810191909152600354604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b158015612a2157600080fd5b505afa158015612a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a599190612e3b565b81600181518110612a6c57612a6c61335f565b60200260200101906001600160a01b031690816001600160a01b031681525050612aab30737a250d5630b4cf539739df2c5dacb4c659f2488d84611711565b6003546001600160a01b031663791ac9478360008430612acd4261012c611705565b6040518663ffffffff1660e01b8152600401612aed959493929190613194565b600060405180830381600087803b158015612b0757600080fd5b505af1158015612b1b573d6000803e3d6000fd5b50505050505b506020805460ff19169055565b6020805460ff1916600117905580612b4557612b21565b6040805160028082526060820183526000926020830190803683375050600354604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c464892506004808301926020929190829003018186803b158015612baa57600080fd5b505afa158015612bbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612be29190612e3b565b81600081518110612bf557612bf561335f565b6001600160a01b039283166020918202929092010152600f54825191169082906001908110612c2657612c2661335f565b6001600160a01b0392831660209182029290920101526010546040516370a0823160e01b815230600482015260009291909116906370a082319060240160206040518083038186803b158015612c7b57600080fd5b505afa158015612c8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cb3919061302c565b6003549091506001600160a01b031663b6f9de958460008530612cd84261012c611705565b6040518663ffffffff1660e01b8152600401612cf794939291906130d5565b6000604051808303818588803b158015612d1057600080fd5b505af1158015612d24573d6000803e3d6000fd5b50506010546040516370a0823160e01b8152306004820152600094506001600160a01b0390911692506370a08231915060240160206040518083038186803b158015612d6f57600080fd5b505afa158015612d83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612da7919061302c565b9050612db381836118c4565b60056000828254612dc491906131d0565b9091555050505050506020805460ff19169055565b60008083601f840112612deb57600080fd5b50813567ffffffffffffffff811115612e0357600080fd5b6020830191508360208260051b85010111156127c257600080fd5b600060208284031215612e3057600080fd5b8135610acd816133bf565b600060208284031215612e4d57600080fd5b8151610acd816133bf565b60008060408385031215612e6b57600080fd5b8235612e76816133bf565b91506020830135612e86816133bf565b809150509250929050565b600080600060608486031215612ea657600080fd5b8335612eb1816133bf565b92506020840135612ec1816133bf565b929592945050506040919091013590565b60008060408385031215612ee557600080fd5b8235612ef0816133bf565b91506020830135612e86816133d4565b60008082840360c0811215612f1457600080fd5b8335612f1f816133bf565b925060a0601f1982011215612f3357600080fd5b506020830190509250929050565b60008060408385031215612f5457600080fd5b8235612f5f816133bf565b946020939093013593505050565b60008060008060408587031215612f8357600080fd5b843567ffffffffffffffff80821115612f9b57600080fd5b612fa788838901612dd9565b90965094506020870135915080821115612fc057600080fd5b50612fcd87828801612dd9565b95989497509550505050565b600060208284031215612feb57600080fd5b8135610acd816133d4565b60006020828403121561300857600080fd5b8151610acd816133d4565b60006020828403121561302557600080fd5b5035919050565b60006020828403121561303e57600080fd5b5051919050565b600080828403608081121561305957600080fd5b833592506060601f1982011215612f3357600080fd5b6000806040838503121561308257600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b838110156130ca5781516001600160a01b0316875295820195908201906001016130a5565b509495945050505050565b8481526080602082015260006130ee6080830186613091565b6001600160a01b03949094166040830152506060015292915050565b600060208083528351808285015260005b818110156131375785810183015185820160400152820161311b565b81811115613149576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b85815284602082015260a0604082015260006131b360a0830186613091565b6001600160a01b0394909416606083015250608001529392505050565b600082198211156131e3576131e3613349565b500190565b60008261320557634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561324557816000190482111561322b5761322b613349565b8085161561323857918102915b93841c939080029061320f565b509250929050565b6000610acd60ff84168360008261326657506001610a85565b8161327357506000610a85565b81600181146132895760028114613293576132af565b6001915050610a85565b60ff8411156132a4576132a4613349565b50506001821b610a85565b5060208310610133831016604e8410600b84101617156132d2575081810a610a85565b6132dc838361320a565b80600019048211156132f0576132f0613349565b029392505050565b600081600019048311821515161561331257613312613349565b500290565b60008282101561332957613329613349565b500390565b600060001982141561334257613342613349565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b813581556020820135600182015560408201356002820155606082013560038201556004810160808301356133a9816133d4565b815490151560ff1660ff19919091161790555050565b6001600160a01b0381168114610c7757600080fd5b8015158114610c7757600080fdfea26469706673582212201f37342fa14af3c47a47483ddc714d93ef24c8b9d472251b0c53e3cd50bc35f864736f6c63430008060033
Deployed Bytecode
0x60806040526004361061031e5760003560e01c80636ddd1713116101ab578063a457c2d7116100f7578063dd62ed3e11610095578063f2fde38b1161006f578063f2fde38b146109dc578063f9f92be4146109fc578063fdcd7f4c14610a2c578063ff142f9714610a4c57600080fd5b8063dd62ed3e14610957578063e0beac771461099d578063e63c2fc0146109bd57600080fd5b8063b202dedc116100d1578063b202dedc146108df578063cea20851146108f5578063d83067861461091d578063dd1fa7181461093757600080fd5b8063a457c2d71461087f578063a50ed19b1461089f578063a9059cbb146108bf57600080fd5b806388a75d0c1161016457806393818cfa1161013e57806393818cfa146107da57806395d89b41146107fa578063986c6aa01461082f5780639b19251a1461084f57600080fd5b806388a75d0c146107855780638da5cb5b1461079a5780638f793cb9146107b857600080fd5b80636ddd1713146106c457806370a08231146106e5578063715018a61461071b5780637bf6494a1461073057806381f651aa1461074557806385c619051461076557600080fd5b8063395093511161026a57806353d6fd5911610223578063626d386d116101fd578063626d386d1461064e57806364be10ed1461066e57806369ae3dfa1461068e5780636ca9a3f6146106a457600080fd5b806353d6fd59146105ee5780635d098b381461060e578063617fe0ed1461062e57600080fd5b806339509351146105495780633ff42b92146105695780634013bc3e146105895780634cc9202b1461059f5780634cc98cfe146105bf57806351bc3c85146105d957600080fd5b80631694505e116102d757806323b872dd116102b157806323b872dd146104e357806323fb16e9146105035780632f30b5c414610518578063313ce5671461052d57600080fd5b80631694505e1461043757806318160ddd1461045757806318a5bbdc1461046c57600080fd5b80630505a8631461032a57806306fdde0314610353578063095ea7b31461038d5780630c418998146103bd5780630ddeee88146103f5578063153b0d1e1461041557600080fd5b3661032557005b600080fd5b34801561033657600080fd5b50610340600a5481565b6040519081526020015b60405180910390f35b34801561035f57600080fd5b50604080518082019091526008815267415045205341464560c01b60208201525b60405161034a919061310a565b34801561039957600080fd5b506103ad6103a8366004612f41565b610a74565b604051901515815260200161034a565b3480156103c957600080fd5b506012546103dd906001600160a01b031681565b6040516001600160a01b03909116815260200161034a565b34801561040157600080fd5b50610340610410366004612e1e565b610a8b565b34801561042157600080fd5b50610435610430366004612ed2565b610ad4565b005b34801561044357600080fd5b506003546103dd906001600160a01b031681565b34801561046357600080fd5b50610340610b32565b34801561047857600080fd5b506104b9610487366004612e1e565b600b60205260009081526040902080546001820154600283015460038401546004909401549293919290919060ff1685565b6040805195865260208601949094529284019190915260608301521515608082015260a00161034a565b3480156104ef57600080fd5b506103ad6104fe366004612e91565b610b54565b34801561050f57600080fd5b50610435610c05565b34801561052457600080fd5b50610435610c6d565b34801561053957600080fd5b506040516009815260200161034a565b34801561055557600080fd5b506103ad610564366004612f41565b610c7a565b34801561057557600080fd5b506011546103dd906001600160a01b031681565b34801561059557600080fd5b50610340601c5481565b3480156105ab57600080fd5b506104356105ba366004613013565b610cb1565b3480156105cb57600080fd5b506009546103ad9060ff1681565b3480156105e557600080fd5b50610435610d28565b3480156105fa57600080fd5b50610435610609366004612ed2565b610d5c565b34801561061a57600080fd5b50610435610629366004612e1e565b610db1565b34801561063a57600080fd5b506009546103ad9062010000900460ff1681565b34801561065a57600080fd5b50610435610669366004612e1e565b610dfd565b34801561067a57600080fd5b50610435610689366004612e1e565b610e49565b34801561069a57600080fd5b50610340600e5481565b3480156106b057600080fd5b506103406106bf366004613013565b610e7c565b3480156106d057600080fd5b506009546103ad906301000000900460ff1681565b3480156106f157600080fd5b50610340610700366004612e1e565b6001600160a01b031660009081526001602052604090205490565b34801561072757600080fd5b50610435610ee8565b34801561073c57600080fd5b50610435610f5c565b34801561075157600080fd5b506004546103dd906001600160a01b031681565b34801561077157600080fd5b50610435610780366004612f00565b6110d9565b34801561079157600080fd5b5061043561112d565b3480156107a657600080fd5b506000546001600160a01b03166103dd565b3480156107c457600080fd5b506009546103ad90640100000000900460ff1681565b3480156107e657600080fd5b506104356107f5366004612fd9565b61115f565b34801561080657600080fd5b5060408051808201909152600c81526b4150455341464520f09fa68d60a01b6020820152610380565b34801561083b57600080fd5b5061043561084a366004613045565b6111a7565b34801561085b57600080fd5b506103ad61086a366004612e1e565b601e6020526000908152604090205460ff1681565b34801561088b57600080fd5b506103ad61089a366004612f41565b611232565b3480156108ab57600080fd5b506104356108ba36600461306f565b6112cd565b3480156108cb57600080fd5b506103ad6108da366004612f41565b611402565b3480156108eb57600080fd5b50610340601d5481565b34801561090157600080fd5b506103dd737a250d5630b4cf539739df2c5dacb4c659f2488d81565b34801561092957600080fd5b506020546103ad9060ff1681565b34801561094357600080fd5b50610435610952366004612f6d565b61140f565b34801561096357600080fd5b50610340610972366004612e58565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b3480156109a957600080fd5b506104356109b8366004612e1e565b61150f565b3480156109c957600080fd5b506009546103ad90610100900460ff1681565b3480156109e857600080fd5b506104356109f7366004612e1e565b611542565b348015610a0857600080fd5b506103ad610a17366004612e1e565b601f6020526000908152604090205460ff1681565b348015610a3857600080fd5b50600f546103dd906001600160a01b031681565b348015610a5857600080fd5b506103dd735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b6000610a81338484611711565b5060015b92915050565b600080610a9783611836565b6001600160a01b0384166000908152600b6020526040902060028101549054919250610acd91610ac79084611705565b906118c4565b9392505050565b6000546001600160a01b03163314610b075760405162461bcd60e51b8152600401610afe9061315f565b60405180910390fd5b6001600160a01b03919091166000908152601f60205260409020805460ff1916911515919091179055565b6000610b406009600a61324d565b610b4f9064e8d4a510006132f8565b905090565b6000610b618484846118d0565b6001600160a01b038416600090815260026020908152604080832033845290915290205482811015610be65760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610afe565b610bfa8533610bf58685613317565b611711565b506001949350505050565b336000610c1182610a8b565b6001600160a01b0383166000908152600b6020526040902060020154909150610c3a9082611705565b6001600160a01b0383166000908152600b6020526040902060020155610c5f82611f92565b610c6981836120f8565b5050565b33610c778161234f565b50565b3360008181526002602090815260408083206001600160a01b03871684529091528120549091610a81918590610bf59086906131d0565b6000546001600160a01b03163314610cdb5760405162461bcd60e51b8152600401610afe9061315f565b80600e541115610d235760405162461bcd60e51b815260206004820152601360248201527220a822a9a0a3229d102a37b79032b0b9363c9760691b6044820152606401610afe565b600e55565b6000546001600160a01b03163314610d525760405162461bcd60e51b8152600401610afe9061315f565b610d5a6124a1565b565b6000546001600160a01b03163314610d865760405162461bcd60e51b8152600401610afe9061315f565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314610ddb5760405162461bcd60e51b8152600401610afe9061315f565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610e275760405162461bcd60e51b8152600401610afe9061315f565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610e735760405162461bcd60e51b8152600401610afe9061315f565b610c778161234f565b6004546001600160a01b0316600090815260016020526040812054602890610eb090610eaa856103e8612643565b9061264f565b11610eb9575090565b600480546001600160a01b0316600090815260016020526040902054610a8591606491610eaa91905b90612643565b6000546001600160a01b03163314610f125760405162461bcd60e51b8152600401610afe9061315f565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03163314610f865760405162461bcd60e51b8152600401610afe9061315f565b42600e541115610fce5760405162461bcd60e51b815260206004820152601360248201527220a822a9a0a3229d102a37b79032b0b9363c9760691b6044820152606401610afe565b6010546001600160a01b031663a9059cbb336010546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561102357600080fd5b505afa158015611037573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105b919061302c565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156110a157600080fd5b505af11580156110b5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c779190612ff6565b6000546001600160a01b031633146111035760405162461bcd60e51b8152600401610afe9061315f565b6001600160a01b0382166000908152600b6020526040902081906111278282613375565b50505050565b6000546001600160a01b031633146111575760405162461bcd60e51b8152600401610afe9061315f565b610d5a61265b565b6000546001600160a01b031633146111895760405162461bcd60e51b8152600401610afe9061315f565b6009805491151563010000000263ff00000019909216919091179055565b6000546001600160a01b031633146111d15760405162461bcd60e51b8152600401610afe9061315f565b816111ed57803560135560208101356014556040013560155550565b81600114156112145780356016908155602082013560175560408201356018558190611127565b803560199081556020820135601a556040820135601b558190611127565b3360009081526002602090815260408083206001600160a01b0386168452909152812054828110156112b45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610afe565b6112c33385610bf58685613317565b5060019392505050565b6000546001600160a01b031633146112f75760405162461bcd60e51b8152600401610afe9061315f565b603c8111156113545760405162461bcd60e51b815260206004820152602360248201527f415045534146453a20436f6f6c646f776e2076616c756520746f6f206c61726760448201526203297160ed1b6064820152608401610afe565b8161138a57600681905580611374576009805462ff0000191690556113e8565b6009805462ff00001916620100001790556113e8565b81600114156113c1576007819055806113ad576009805461ff00191690556113e8565b6009805461ff0019166101001790556113e8565b6008819055806113da576009805460ff191690556113e8565b6009805460ff191660011790555b600954640100000000900460ff16610c6957610c6961265b565b6000610a813384846118d0565b6000546001600160a01b031633146114395760405162461bcd60e51b8152600401610afe9061315f565b60005b838110156115085761149e6114596000546001600160a01b031690565b86868481811061146b5761146b61335f565b90506020020160208101906114809190612e1e565b8585858181106114925761149261335f565b905060200201356118d0565b6001600b60008787858181106114b6576114b661335f565b90506020020160208101906114cb9190612e1e565b6001600160a01b031681526020810191909152604001600020600401805460ff1916911515919091179055806115008161332e565b91505061143c565b5050505050565b6000546001600160a01b031633146115395760405162461bcd60e51b8152600401610afe9061315f565b610c7781611f92565b6000546001600160a01b0316331461156c5760405162461bcd60e51b8152600401610afe9061315f565b6001600160a01b0381166115d15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610afe565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600080600061163b85856126d1565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015291935091508690604801604051602081830303815290604052805190602001206040516020016116e39291906001600160f81b0319815260609290921b6bffffffffffffffffffffffff1916600183015260158201527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b6000610acd82846131d0565b6001600160a01b0383166117735760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610afe565b6001600160a01b0382166117d45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610afe565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0381166000908152600b6020526040812060010154600554829161186191906118c4565b905060006118a96118746009600a61324d565b6118839064e8d4a510006132f8565b610eaa620186a0610ee2886001600160a01b031660009081526001602052604090205490565b90506118bc620186a0610eaa8484612643565b949350505050565b6000610acd8284613317565b6001600160a01b0383166119345760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610afe565b6001600160a01b0382166119965760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610afe565b600081116119f85760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610afe565b6001600160a01b0383166000908152601f602052604090205460ff16158015611a3a57506001600160a01b0382166000908152601f602052604090205460ff16155b611a905760405162461bcd60e51b815260206004820152602160248201527f415045534146453a204164647265737320697320626c61636b6c69737465642e6044820152600160fd1b6064820152608401610afe565b600954640100000000900460ff1680611ac157506001600160a01b0383166000908152601e602052604090205460ff165b80611ae457506001600160a01b0382166000908152601e602052604090205460ff165b611b3b5760405162461bcd60e51b815260206004820152602260248201527f415045534146453a2054726164696e67206973206e6f74206c69766520796574604482015261017160f51b6064820152608401610afe565b60205460ff1680611b6457506001600160a01b0383166000908152601e602052604090205460ff165b80611b8757506001600160a01b0382166000908152601e602052604090205460ff165b15611b9c57611b978383836127c9565b505050565b60408051606081018252600080825260208201819052918101919091526004546001600160a01b038581169116148015611bf357506001600160a01b038316737a250d5630b4cf539739df2c5dacb4c659f2488d14155b15611d1d57600a544290611c0990610258611705565b10611cb557611c1a6009600a61324d565b611c29906402540be4006132f8565b821115611cb55760405162461bcd60e51b815260206004820152604e60248201527f415045534146453a204e6f206275792067726561746572207468616e2031302060448201527f62696c6c696f6e2063616e206265206d61646520666f7220746865206669727360648201526d03a1018981036b4b73aba32b997160951b608482015260a401610afe565b600954610100900460ff1615611cd157611cd18360065461286f565b6001600160a01b0383166000908152600c602052604090205460ff16611cfa57611cfa83611f92565b506040805160608101825260135481526014546020820152601554918101919091525b6004546001600160a01b038481169116148015611d5757506001600160a01b038416737a250d5630b4cf539739df2c5dacb4c659f2488d14155b15611dde57600954610100900460ff1615611d7857611d788460075461286f565b6001600160a01b0384166000908152600c602052604090205460ff16611da157611da184611f92565b6009546301000000900460ff1615611dbb57611dbb6124a1565b506040805160608101825260165481526017546020820152601854918101919091525b6004546001600160a01b03848116911614801590611e0a57506004546001600160a01b03858116911614155b15611eb55760095460ff1615611e2657611e268460085461286f565b6001600160a01b0384166000908152600c602052604090205460ff16611e4f57611e4f84611f92565b6001600160a01b0383166000908152600c602052604090205460ff16611e7857611e7883611f92565b6009546301000000900460ff1615611e9257611e926124a1565b50604080516060810182526019548152601a546020820152601b54918101919091525b6001600160a01b0384166000908152600d602052604090205460ff1680611ef457506001600160a01b0383166000908152600d602052604090205460ff165b15611f0957611f048484846127c9565b611127565b60003090506000611f1f84846040015184612919565b809250819550505080601d6000828254611f3991906131d0565b90915550508251611f4c90859084612919565b809250819550505080601c6000828254611f6691906131d0565b92505081905550611f7c84846020015184612919565b509350611f8a8686866127c9565b505050505050565b6001600160a01b0381166000818152600b60209081526040808320815160a081018352815481526001820154818501526002820154818401526003820154606082015260049091015460ff90811615156080830152948452600c909252909120549091161561206b57806080015115610c6957600080825260208083018281526040808501848152608086018581526001600160a01b0388168652600b909452932084518155905160018201559151600283015560608301516003830155516004909101805491151560ff199092169190911790555050565b806080015161207c57600160808201525b600061208783611836565b82519091506120969082611705565b82525060055460208083019182526001600160a01b03939093166000908152600b909352604092839020825181559051600182015591810151600283015560608101516003830155608001516004909101805460ff1916911515919091179055565b6020805460ff191660011790558161210f57612341565b60408051600380825260808201909252600091602082016060803683375050600f5482519293506001600160a01b0316918391506000906121525761215261335f565b6001600160a01b03928316602091820292909201810191909152600354604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156121a657600080fd5b505afa1580156121ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121de9190612e3b565b816001815181106121f1576121f161335f565b60200260200101906001600160a01b031690816001600160a01b03168152505030816002815181106122255761222561335f565b6001600160a01b03928316602091820292909201015260105460405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d60048201526024810186905291169063095ea7b390604401602060405180830381600087803b15801561229257600080fd5b505af11580156122a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ca9190612ff6565b506003546001600160a01b0316635c11d79584600084866122ed4261012c611705565b6040518663ffffffff1660e01b815260040161230d959493929190613194565b600060405180830381600087803b15801561232757600080fd5b505af115801561233b573d6000803e3d6000fd5b50505050505b50506020805460ff19169055565b6001600160a01b0381166000908152600b602052604090206004015460ff166123cf5760405162461bcd60e51b815260206004820152602c60248201527f415045534146453a204e6f20706f736974696f6e20666f756e6420666f72207460448201526b3434b99030b2323932b9b99760a11b6064820152608401610afe565b60006123da82610a8b565b6001600160a01b0383166000908152600b60205260409020600201549091506124039082611705565b6001600160a01b038381166000818152600b60205260409081902060020193909355601054925163a9059cbb60e01b815260048101919091526024810184905291169063a9059cbb90604401602060405180830381600087803b15801561246957600080fd5b505af115801561247d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b979190612ff6565b306000908152600160205260409020546124b757565b60006124c4601c54610e7c565b905060006124d3601d54610e7c565b905060006125056106bf601d54610ac7601c54610ac7306001600160a01b031660009081526001602052604090205490565b601c5490915061251590846118c4565b601c55601d5461252590836118c4565b601d55600061253e826125388686611705565b90611705565b905061254981612981565b600061255b82610eaa87612710612643565b9050600061256f83610eaa87612710612643565b90506000612583612710610eaa4786612643565b90506000612597612710610eaa4786612643565b905060006125a982610ac747866118c4565b90506125b483612b2e565b81156125f6576012546040516001600160a01b039091169083156108fc029084906000818181858888f193505050501580156125f4573d6000803e3d6000fd5b505b8015612638576011546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612636573d6000803e3d6000fd5b505b505050505050505050565b6000610acd82846132f8565b6000610acd82846131e8565b600954640100000000900460ff16156126b65760405162461bcd60e51b815260206004820152601760248201527f415045534146453a2057656e206d6f6f6e207365722e200000000000000000006044820152606401610afe565b6009805464ff00000000191664010000000017905542600a55565b600080826001600160a01b0316846001600160a01b031614156127445760405162461bcd60e51b815260206004820152602560248201527f556e697377617056324c6962726172793a204944454e544943414c5f41444452604482015264455353455360d81b6064820152608401610afe565b826001600160a01b0316846001600160a01b031610612764578284612767565b83835b90925090506001600160a01b0382166127c25760405162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f4144445245535300006044820152606401610afe565b9250929050565b6001600160a01b0383166000908152600160205260409020546127ec90826118c4565b6001600160a01b03808516600090815260016020526040808220939093559084168152205461281b9082611705565b6001600160a01b0380841660008181526001602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906118299085815260200190565b6001600160a01b0382166000908152600b602052604090206003015442906128979083611705565b106128f85760405162461bcd60e51b815260206004820152602b60248201527f415045534146453a204e65656420746f207761697420756e74696c206e65787460448201526a0103a3930b739b332b917160ad1b6064820152608401610afe565b506001600160a01b03166000908152600b6020526040902042600390910155565b6000808061292d6103e8610eaa8888612643565b6001600160a01b0385166000908152600160205260409020549091506129539082611705565b6001600160a01b03851660009081526001602052604090205561297686826118c4565b969095509350505050565b6020805460ff191660011790558061299857612b21565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106129cd576129cd61335f565b6001600160a01b03928316602091820292909201810191909152600354604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b158015612a2157600080fd5b505afa158015612a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a599190612e3b565b81600181518110612a6c57612a6c61335f565b60200260200101906001600160a01b031690816001600160a01b031681525050612aab30737a250d5630b4cf539739df2c5dacb4c659f2488d84611711565b6003546001600160a01b031663791ac9478360008430612acd4261012c611705565b6040518663ffffffff1660e01b8152600401612aed959493929190613194565b600060405180830381600087803b158015612b0757600080fd5b505af1158015612b1b573d6000803e3d6000fd5b50505050505b506020805460ff19169055565b6020805460ff1916600117905580612b4557612b21565b6040805160028082526060820183526000926020830190803683375050600354604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c464892506004808301926020929190829003018186803b158015612baa57600080fd5b505afa158015612bbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612be29190612e3b565b81600081518110612bf557612bf561335f565b6001600160a01b039283166020918202929092010152600f54825191169082906001908110612c2657612c2661335f565b6001600160a01b0392831660209182029290920101526010546040516370a0823160e01b815230600482015260009291909116906370a082319060240160206040518083038186803b158015612c7b57600080fd5b505afa158015612c8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cb3919061302c565b6003549091506001600160a01b031663b6f9de958460008530612cd84261012c611705565b6040518663ffffffff1660e01b8152600401612cf794939291906130d5565b6000604051808303818588803b158015612d1057600080fd5b505af1158015612d24573d6000803e3d6000fd5b50506010546040516370a0823160e01b8152306004820152600094506001600160a01b0390911692506370a08231915060240160206040518083038186803b158015612d6f57600080fd5b505afa158015612d83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612da7919061302c565b9050612db381836118c4565b60056000828254612dc491906131d0565b9091555050505050506020805460ff19169055565b60008083601f840112612deb57600080fd5b50813567ffffffffffffffff811115612e0357600080fd5b6020830191508360208260051b85010111156127c257600080fd5b600060208284031215612e3057600080fd5b8135610acd816133bf565b600060208284031215612e4d57600080fd5b8151610acd816133bf565b60008060408385031215612e6b57600080fd5b8235612e76816133bf565b91506020830135612e86816133bf565b809150509250929050565b600080600060608486031215612ea657600080fd5b8335612eb1816133bf565b92506020840135612ec1816133bf565b929592945050506040919091013590565b60008060408385031215612ee557600080fd5b8235612ef0816133bf565b91506020830135612e86816133d4565b60008082840360c0811215612f1457600080fd5b8335612f1f816133bf565b925060a0601f1982011215612f3357600080fd5b506020830190509250929050565b60008060408385031215612f5457600080fd5b8235612f5f816133bf565b946020939093013593505050565b60008060008060408587031215612f8357600080fd5b843567ffffffffffffffff80821115612f9b57600080fd5b612fa788838901612dd9565b90965094506020870135915080821115612fc057600080fd5b50612fcd87828801612dd9565b95989497509550505050565b600060208284031215612feb57600080fd5b8135610acd816133d4565b60006020828403121561300857600080fd5b8151610acd816133d4565b60006020828403121561302557600080fd5b5035919050565b60006020828403121561303e57600080fd5b5051919050565b600080828403608081121561305957600080fd5b833592506060601f1982011215612f3357600080fd5b6000806040838503121561308257600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b838110156130ca5781516001600160a01b0316875295820195908201906001016130a5565b509495945050505050565b8481526080602082015260006130ee6080830186613091565b6001600160a01b03949094166040830152506060015292915050565b600060208083528351808285015260005b818110156131375785810183015185820160400152820161311b565b81811115613149576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b85815284602082015260a0604082015260006131b360a0830186613091565b6001600160a01b0394909416606083015250608001529392505050565b600082198211156131e3576131e3613349565b500190565b60008261320557634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561324557816000190482111561322b5761322b613349565b8085161561323857918102915b93841c939080029061320f565b509250929050565b6000610acd60ff84168360008261326657506001610a85565b8161327357506000610a85565b81600181146132895760028114613293576132af565b6001915050610a85565b60ff8411156132a4576132a4613349565b50506001821b610a85565b5060208310610133831016604e8410600b84101617156132d2575081810a610a85565b6132dc838361320a565b80600019048211156132f0576132f0613349565b029392505050565b600081600019048311821515161561331257613312613349565b500290565b60008282101561332957613329613349565b500390565b600060001982141561334257613342613349565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b813581556020820135600182015560408201356002820155606082013560038201556004810160808301356133a9816133d4565b815490151560ff1660ff19919091161790555050565b6001600160a01b0381168114610c7757600080fd5b8015158114610c7757600080fdfea26469706673582212201f37342fa14af3c47a47483ddc714d93ef24c8b9d472251b0c53e3cd50bc35f864736f6c63430008060033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.