ERC-20
Overview
Max Total Supply
420,690,000,000 GIB
Holders
134
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
2,034,375,722.049816942089416407 GIBValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GIB
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "./GIBDiv.sol"; /** Website: https://gibmemes.xyz TG: https://t.me/gib6900 X: https://x.com/gib6900 */ contract GIB is ERC20, Ownable { IUniswapRouter public router; address public pair; uint256 public constant PERIOD_DURATION = 300; uint256 public startTimestamp; enum Interval { First, Second, Third } bool private swapping; bool public swapEnabled = true; bool public claimEnabled = true; bool public tradingEnabled; DividendTracker public dividendTracker; address public devWallet; uint256 public swapTokensAtAmount; uint256 public maxBuyAmount; uint256 public maxSellAmount; uint256 public maxWallet; uint256 buyDevTax = 10; // 1% uint256 buyMemesTax = 10; // 1% uint256 sellDevTax = 10; // 1% uint256 sellMemesTax = 10; // 1% uint256 public totalBuyTax = 20; // 2% uint256 public totalSellTax = 20; // 2% mapping(address => bool) private _isExcludedFromFees; mapping(address => bool) public automatedMarketMakerPairs; mapping(address => bool) private _isExcludedFromMaxWallet; address[3] public tokensArray; // Events event ExcludeFromFees(address indexed account, bool isExcluded); event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); constructor() ERC20("GIB6900", "GIB") { dividendTracker = new DividendTracker( "GIB_DIVIDEND_Tracker", "GIB_DIVIDEND_Tracker" ); setDevWallet(0xAcBd180c9D49b5EbE57a9aCaa25fd11c0237A823); IUniswapRouter _router = IUniswapRouter( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); address _pair = IFactory(_router.factory()).createPair( address(this), _router.WETH() ); startTimestamp = block.timestamp; router = _router; pair = _pair; setSwapTokensAtAmount(420690000); updateMaxWalletAmount(8413800000); setMaxBuyAndSell(8413800000, 8413800000); _setAutomatedMarketMakerPair(_pair, true); // initial high tax buyDevTax = 190; // 19% buyMemesTax = 20; sellDevTax = 190; sellMemesTax = 20; totalBuyTax = 210; // 21% totalSellTax = 210; tokensArray[0] = 0xE0f63A424a4439cBE457D80E4f4b51aD25b2c56C; // spx6900 tokensArray[1] = 0x812Ba41e071C7b7fA4EBcFB62dF5F45f6fA853Ee; //neiro tokensArray[2] = 0x72e4f9F808C49A2a61dE9C5896298920Dc4EEEa9; // bitcoin hp dividendTracker.updateToken( tokensArray[0], tokensArray[1], tokensArray[2] ); dividendTracker.excludeFromDividends(address(dividendTracker), true); dividendTracker.excludeFromDividends(address(this), true); dividendTracker.excludeFromDividends(owner(), true); dividendTracker.excludeFromDividends(address(0xdead), true); dividendTracker.excludeFromDividends(address(0), true); dividendTracker.excludeFromDividends(address(_router), true); excludeFromMaxWallet(address(_pair), true); excludeFromMaxWallet(address(this), true); excludeFromMaxWallet(address(_router), true); excludeFromMaxWallet(address(dividendTracker), true); excludeFromMaxWallet(address(0xdead), true); excludeFromFees(address(this), true); excludeFromFees(address(dividendTracker), true); excludeFromFees(address(0xdead), true); _mint(owner(), 420690000000 * (10**18)); } receive() external payable {} modifier onlyDev() { if (msg.sender != devWallet) { revert("not dev account"); } _; } function updateDividendTracker(address newAddress) public onlyDev { DividendTracker newDividendTracker = DividendTracker(newAddress); newDividendTracker.excludeFromDividends( address(newDividendTracker), true ); newDividendTracker.excludeFromDividends(address(this), true); newDividendTracker.excludeFromDividends(owner(), true); newDividendTracker.excludeFromDividends(address(router), true); dividendTracker.excludeFromDividends(address(0), true); dividendTracker = newDividendTracker; } /// @notice Manual claim the dividends function claimDividend() external { require(claimEnabled, "Claim not enabled"); dividendTracker.processAccount(msg.sender); } function removeLimits() external onlyOwner { updateMaxWalletAmount(420690000000); setMaxBuyAndSell(420690000000, 420690000000); } function updateMaxWalletAmount(uint256 newNum) internal { maxWallet = newNum * 10**18; } function setMaxBuyAndSell(uint256 maxBuy, uint256 maxSell) internal { maxBuyAmount = maxBuy * 10**18; maxSellAmount = maxSell * 10**18; } function setSwapTokensAtAmount(uint256 amount) public onlyOwner { swapTokensAtAmount = amount * 10**18; } function excludeFromMaxWallet(address account, bool excluded) public onlyOwner { _isExcludedFromMaxWallet[account] = excluded; } /// @notice Withdraw tokens sent by mistake. /// @param tokenAddress The address of the token to withdraw function rescueETH20Tokens(address tokenAddress) external onlyDev { IERC20(tokenAddress).transfer( owner(), IERC20(tokenAddress).balanceOf(address(this)) ); } /// @notice Send remaining ETH to dev /// @dev It will send all ETH to dev function forceSend() external onlyDev { uint256 ETHbalance = address(this).balance; (bool success, ) = payable(devWallet).call{value: ETHbalance}(""); require(success); } function trackerRescueETH20Tokens(address tokenAddress) external onlyDev { dividendTracker.trackerRescueETH20Tokens(msg.sender, tokenAddress); } function updateRouter(address newRouter) external onlyOwner { router = IUniswapRouter(newRouter); } // Exclude / Include functions function excludeFromFees(address account, bool excluded) public onlyOwner { require( _isExcludedFromFees[account] != excluded, "Account is already the value of 'excluded'" ); _isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); } /// @dev "true" to exlcude, "false" to include function excludeFromDividends(address account, bool value) public onlyOwner { dividendTracker.excludeFromDividends(account, value); } function setDevWallet(address newWallet) public onlyOwner { devWallet = newWallet; } function setBuyTaxes(uint256 _dev, uint256 _memes) external onlyOwner { require(_dev + _memes <= 350, "Fee must be <= 35%"); buyDevTax = _dev; buyMemesTax = _memes; totalBuyTax = _dev + _memes; } function setSellTaxes(uint256 _dev, uint256 _memes) external onlyOwner { require(_dev + _memes <= 350, "Fee must be <= 35%"); sellDevTax = _dev; sellMemesTax = _memes; totalSellTax = _dev + _memes; } /// @notice Enable or disable internal swaps /// @dev Set "true" to enable internal swaps for liquidity, treasury and dividends function setSwapEnabled(bool _enabled) external onlyOwner { swapEnabled = _enabled; } function enableTrading() external onlyOwner { require(!tradingEnabled, "Trading already enabled"); tradingEnabled = true; } function setClaimEnabled(bool state) external onlyOwner { claimEnabled = state; } /// @dev Set new pairs created due to listing in new DEX function setAutomatedMarketMakerPair(address newPair, bool value) external onlyOwner { _setAutomatedMarketMakerPair(newPair, value); } function _setAutomatedMarketMakerPair(address newPair, bool value) private { require( automatedMarketMakerPairs[newPair] != value, "Automated market maker pair is already set to that value" ); automatedMarketMakerPairs[newPair] = value; if (value) { dividendTracker.excludeFromDividends(newPair, true); } emit SetAutomatedMarketMakerPair(newPair, value); } function getTotalDividendsDistributed() external view returns ( uint256, uint256, uint256 ) { return ( dividendTracker.totalDividendsDistributedSPX6900(), dividendTracker.totalDividendsDistributedNeiro(), dividendTracker.totalDividendsDistributedBitcoinHP() ); } function isExcludedFromFees(address account) public view returns (bool) { return _isExcludedFromFees[account]; } function withdrawableDividendOf(address account) public view returns ( uint256, uint256, uint256 ) { return dividendTracker.withdrawableDividendOf(account); } function dividendTokenBalanceOf(address account) public view returns (uint256) { return dividendTracker.balanceOf(account); } function getAccountInfo(address account) external view returns ( address, uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256 ) { return dividendTracker.getAccount(account); } function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); if ( !_isExcludedFromFees[from] && !_isExcludedFromFees[to] && !swapping && from != owner() ) { require(tradingEnabled, "Trading not active"); if (automatedMarketMakerPairs[to]) { require( amount <= maxSellAmount, "You are exceeding maxSellAmount" ); } else if (automatedMarketMakerPairs[from]) require( amount <= maxBuyAmount, "You are exceeding maxBuyAmount" ); if (!_isExcludedFromMaxWallet[to]) { require( amount + balanceOf(to) <= maxWallet, "Unable to exceed Max Wallet" ); } } if (amount == 0) { super._transfer(from, to, 0); return; } uint256 contractTokenBalance = balanceOf(address(this)); bool canSwap = contractTokenBalance >= swapTokensAtAmount; if ( canSwap && !swapping && swapEnabled && automatedMarketMakerPairs[to] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to] ) { swapping = true; if (totalSellTax > 0) { swapAndLiquify(swapTokensAtAmount); } swapping = false; } bool takeFee = !swapping; if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) { takeFee = false; } if (!automatedMarketMakerPairs[to] && !automatedMarketMakerPairs[from]) takeFee = false; if (takeFee) { uint256 feeAmt; if (automatedMarketMakerPairs[to]) feeAmt = (amount * totalSellTax) / 1000; else if (automatedMarketMakerPairs[from]) feeAmt = (amount * totalBuyTax) / 1000; amount = amount - feeAmt; super._transfer(from, address(this), feeAmt); } super._transfer(from, to, amount); try dividendTracker.setBalance(from, balanceOf(from)) {} catch {} try dividendTracker.setBalance(to, balanceOf(to)) {} catch {} } function swapAndLiquify(uint256 tokens) private { uint256 contractBalance = balanceOf(address(this)); uint256 totalTokens = tokens; if (contractBalance == 0 || totalTokens == 0) { return; } if (contractBalance > totalTokens * 15) { totalTokens *= 15; } // Get the current balance of ETH uint256 balanceBefore = address(this).balance; uint256 toSwapForDev = (totalTokens * sellDevTax) / totalSellTax; swapTokensForETH(toSwapForDev); uint256 devAmt = address(this).balance - balanceBefore; if (devAmt > 0) { (bool success, ) = payable(devWallet).call{value: devAmt}(""); require(success, "Failed to send ETH to dev wallet"); } uint256 tokenForMemesDividends = ((totalTokens * sellMemesTax) / totalSellTax); uint8 currentInterval = uint8(getCurrentInterval()); distributeDividendsForInterval(currentInterval, tokenForMemesDividends); } function distributeDividendsForInterval( uint8 intervalIndex, uint256 tokensForDividends ) private { uint256 balanceBefore = address(this).balance; // Swap tokens for ETH swapTokensForETH(tokensForDividends); uint256 currentBalance = address(this).balance - balanceBefore; address token = tokensArray[intervalIndex]; if (currentBalance > 0) { // Swap ETH for tokens swapETHForTokens(currentBalance, token); } uint256 tokenBalance = IERC20(token).balanceOf(address(this)); uint256 tokenDividends = tokenBalance; if (tokenDividends > 0) { bool success = IERC20(token).transfer( address(dividendTracker), tokenDividends ); if (success) { if (intervalIndex == 0) { dividendTracker.distributeDividends(tokenDividends, 0, 0); } else if (intervalIndex == 1) { dividendTracker.distributeDividends(0, tokenDividends, 0); } else if (intervalIndex == 2) { dividendTracker.distributeDividends(0, 0, tokenDividends); } } } } // transfers Dividend from the owners wallet to holders // must approve this contract, on pair contract before calling function ManualSPX6900DividendDistribution(uint256 amount) public onlyDev { bool success = IERC20(pair).transferFrom( msg.sender, address(dividendTracker), amount ); if (success) { dividendTracker.distributeDividends(amount, 0, 0); } } // transfers Dividend from the owners wallet to holders // must approve this contract, on pair contract before calling function ManualNeiroDividendDistribution(uint256 amount) public onlyDev { bool success = transferFrom( msg.sender, address(dividendTracker), amount ); if (success) { dividendTracker.distributeDividends(0, amount, 0); } } function ManualBitcoinDividendDistribution(uint256 amount) public onlyDev { bool success = transferFrom( msg.sender, address(dividendTracker), amount ); if (success) { dividendTracker.distributeDividends(0, 0, amount); } } function swapTokensForETH(uint256 tokenAmount) private { address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); _approve(address(this), address(router), tokenAmount); // make the swap router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } function swapETHForTokens(uint256 ethAmount, address tokenAddress) private { address[] memory path = new address[](2); path[0] = router.WETH(); // WETH address path[1] = tokenAddress; // Token address // Swap ETH for tokens router.swapExactETHForTokensSupportingFeeOnTransferTokens{ value: ethAmount }(0, path, address(this), block.timestamp); } function getCurrentInterval() public view returns (Interval) { uint256 timeElapsed = block.timestamp - startTimestamp; uint256 intervalIndex = (timeElapsed / PERIOD_DURATION) % 3; if (intervalIndex == 0) { return Interval.First; } else if (intervalIndex == 1) { return Interval.Second; } else if (intervalIndex > 1) { return Interval.Third; } else { return Interval.First; } } } contract DividendTracker is Ownable, DividendPayingToken { struct AccountInfo { address account; uint256 withdrawableDividendsSPX6900; uint256 withdrawableDividendsNeiro; uint256 withdrawableDividendsBitcoinHP; uint256 totalDividendsSPX6900; uint256 totalDividendsNeiro; uint256 totalDividendsBitcoinHP; uint256 lastClaimTimeSPX6900; uint256 lastClaimTimeNeiro; uint256 lastClaimTimeBitcoinHP; } mapping(address => bool) public excludedFromDividends; mapping(address => uint256) public lastClaimTimesSPX6900; mapping(address => uint256) public lastClaimTimesNeiro; mapping(address => uint256) public lastClaimTimesBitcoinHP; event ExcludeFromDividends(address indexed account, bool value); event Claim(address indexed account, uint256 amount); constructor(string memory name, string memory symbol) DividendPayingToken(name, symbol) {} function trackerRescueETH20Tokens(address recipient, address tokenAddress) external onlyOwner { IERC20(tokenAddress).transfer( recipient, IERC20(tokenAddress).balanceOf(address(this)) ); } function updateToken( address _spx6900, address _neiro, address _bitcoinHp ) external onlyOwner { spx6900 = _spx6900; neiro = _neiro; bitcoinHP = _bitcoinHp; } function _transfer( address, address, uint256 ) internal pure override { require(false, "GIB_Dividend_Tracker: No transfers allowed"); } function excludeFromDividends(address account, bool value) external onlyOwner { require(excludedFromDividends[account] != value); excludedFromDividends[account] = value; if (value == true) { _setBalance(account, 0); } else { _setBalance(account, balanceOf(account)); } emit ExcludeFromDividends(account, value); } function getAccount(address account) public view returns ( address, uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256 ) { AccountInfo memory info; info.account = account; ( info.withdrawableDividendsSPX6900, info.withdrawableDividendsNeiro, info.withdrawableDividendsBitcoinHP ) = withdrawableDividendOf(account); ( info.totalDividendsSPX6900, info.totalDividendsNeiro, info.totalDividendsBitcoinHP ) = accumulativeDividendOf(account); info.lastClaimTimeSPX6900 = lastClaimTimesSPX6900[account]; info.lastClaimTimeNeiro = lastClaimTimesNeiro[account]; info.lastClaimTimeBitcoinHP = lastClaimTimesBitcoinHP[account]; return ( info.account, info.withdrawableDividendsSPX6900, info.withdrawableDividendsNeiro, info.withdrawableDividendsBitcoinHP, info.lastClaimTimeSPX6900, info.lastClaimTimeNeiro, info.lastClaimTimeBitcoinHP, totalDividendsWithdrawnSPX6900, totalDividendsWithdrawnNeiro, totalDividendsWithdrawnBitcoinHP ); } function setBalance(address account, uint256 newBalance) external onlyOwner { if (excludedFromDividends[account]) { return; } _setBalance(account, newBalance); } function processAccount(address account) external onlyOwner returns (bool) { ( uint256 amountSPX6900, uint256 amountNeiro, uint256 amountBitcoinHP ) = _withdrawDividendOfUser(account); if (amountSPX6900 > 0) { lastClaimTimesSPX6900[account] = block.timestamp; emit Claim(account, amountSPX6900); return true; } if (amountNeiro > 0) { lastClaimTimesNeiro[account] = block.timestamp; emit Claim(account, amountNeiro); return true; } if (amountBitcoinHP > 0) { lastClaimTimesBitcoinHP[account] = block.timestamp; emit Claim(account, amountBitcoinHP); return true; } return true; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./libraries/SafeMath.sol"; import "./interfaces/IGIBDiv.sol"; interface IPair { function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); function token0() external view returns (address); } interface IFactory { function createPair(address tokenA, address tokenB) external returns (address pair); function getPair(address tokenA, address tokenB) external view returns (address pair); } interface IUniswapRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidityETH( address token, uint256 amountTokensDesired, uint256 amountTokensMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; } contract DividendPayingToken is ERC20, DividendPayingTokenInterface, Ownable { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; address public spx6900; address public neiro; address public bitcoinHP; uint256 internal constant magnitude = 2**128; uint256 internal MagnifiedDividendPerShareSPX6900; uint256 internal MagnifiedDividendPerShareNeiro; uint256 internal MagnifiedDividendPerShareBitcoinHP; // About dividendCorrection: // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with: // `dividendOf(_user) = dividendPerShare * balanceOf(_user)`. // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens), // `dividendOf(_user)` should not be changed, // but the computed value of `dividendPerShare * balanceOf(_user)` is changed. // To keep the `dividendOf(_user)` unchanged, we add a correction term: // `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`, // where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed: // `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`. // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed. mapping(address => int256) internal magnifiedDividendCorrectionsSPX6900; mapping(address => int256) internal magnifiedDividendCorrectionsNeiro; mapping(address => int256) internal magnifiedDividendCorrectionsBitcoinHP; mapping(address => uint256) internal withdrawnDividendsSPX6900; mapping(address => uint256) internal withdrawnDividendsNeiro; mapping(address => uint256) internal withdrawnDividendsBitcoinHP; uint256 public totalDividendsDistributedSPX6900; uint256 public totalDividendsDistributedNeiro; uint256 public totalDividendsDistributedBitcoinHP; uint256 public totalDividendsWithdrawnSPX6900; uint256 public totalDividendsWithdrawnNeiro; uint256 public totalDividendsWithdrawnBitcoinHP; constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {} function distributeDividends( uint256 amountSPX6900, uint256 amountNeiro, uint256 amountBitcoinHP ) public onlyOwner { require(totalSupply() > 0, "Total supply must be greater than zero"); if (amountSPX6900 > 0) { MagnifiedDividendPerShareSPX6900 = MagnifiedDividendPerShareSPX6900.add( (amountSPX6900).mul(magnitude) / totalSupply() ); emit DividendsDistributed(msg.sender, amountSPX6900); totalDividendsDistributedSPX6900 = totalDividendsDistributedSPX6900.add( amountSPX6900 ); } if (amountNeiro > 0) { MagnifiedDividendPerShareNeiro = MagnifiedDividendPerShareNeiro.add( (amountNeiro).mul(magnitude) / totalSupply() ); emit DividendsDistributed(msg.sender, amountNeiro); totalDividendsDistributedNeiro = totalDividendsDistributedNeiro.add( amountNeiro ); } if (amountBitcoinHP > 0) { MagnifiedDividendPerShareBitcoinHP = MagnifiedDividendPerShareBitcoinHP.add( (amountBitcoinHP).mul(magnitude) / totalSupply() ); emit DividendsDistributed(msg.sender, amountBitcoinHP); totalDividendsDistributedBitcoinHP = totalDividendsDistributedBitcoinHP.add( amountBitcoinHP ); } } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function withdrawDividend() public // virtual override { _withdrawDividendOfUser(msg.sender); } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function _withdrawDividendOfUser(address user) internal returns ( uint256, uint256, uint256 ) { uint256 withdrawableSPX6900; uint256 withdrawableNeiro; uint256 withdrawableBitcoinHP; ( uint256 _withdrawableDividendSPx6900, uint256 _withdrawableDividendNeiro, uint256 _withdrawableDividendBitcoinHP ) = withdrawableDividendOf(user); if (_withdrawableDividendSPx6900 > 0) { withdrawnDividendsSPX6900[user] = withdrawnDividendsSPX6900[user].add( _withdrawableDividendSPx6900 ); totalDividendsWithdrawnSPX6900 += _withdrawableDividendSPx6900; emit DividendWithdrawn(user, _withdrawableDividendSPx6900); bool success = IERC20(spx6900).transfer( user, _withdrawableDividendSPx6900 ); if (!success) { withdrawnDividendsSPX6900[user] = withdrawnDividendsSPX6900[user] .sub(_withdrawableDividendSPx6900); totalDividendsWithdrawnSPX6900 -= _withdrawableDividendSPx6900; } else { withdrawableSPX6900 = _withdrawableDividendSPx6900; } } if (_withdrawableDividendNeiro > 0) { withdrawnDividendsNeiro[user] = withdrawnDividendsNeiro[user].add( _withdrawableDividendNeiro ); totalDividendsWithdrawnNeiro += _withdrawableDividendNeiro; emit DividendWithdrawn(user, _withdrawableDividendNeiro); bool success = IERC20(neiro).transfer( user, _withdrawableDividendNeiro ); if (!success) { withdrawnDividendsNeiro[user] = withdrawnDividendsNeiro[user].sub( _withdrawableDividendNeiro ); totalDividendsWithdrawnNeiro -= _withdrawableDividendNeiro; } else { withdrawableNeiro = _withdrawableDividendNeiro; } } if (_withdrawableDividendBitcoinHP > 0) { withdrawnDividendsBitcoinHP[user] = withdrawnDividendsBitcoinHP[user].add( _withdrawableDividendBitcoinHP ); totalDividendsWithdrawnBitcoinHP += _withdrawableDividendBitcoinHP; emit DividendWithdrawn(user, _withdrawableDividendBitcoinHP); bool success = IERC20(bitcoinHP).transfer( user, _withdrawableDividendBitcoinHP ); if (!success) { withdrawnDividendsBitcoinHP[user] = withdrawnDividendsBitcoinHP[user].sub( _withdrawableDividendBitcoinHP ); totalDividendsWithdrawnBitcoinHP -= _withdrawableDividendBitcoinHP; } else { withdrawableBitcoinHP = _withdrawableDividendBitcoinHP; } } return (withdrawableSPX6900, withdrawableNeiro, withdrawableBitcoinHP); } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner) public view override returns ( uint256, uint256, uint256 ) { return withdrawableDividendOf(_owner); } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf(address _owner) public view override returns ( uint256, uint256, uint256 ) { ( uint256 dividendOfSPX6900, uint256 dividendOfNeiro, uint256 dividendOfBitcoinHP ) = accumulativeDividendOf(_owner); return ( dividendOfSPX6900.sub(withdrawnDividendsSPX6900[_owner]), dividendOfNeiro.sub(withdrawnDividendsNeiro[_owner]), dividendOfBitcoinHP.sub(withdrawnDividendsBitcoinHP[_owner]) ); } /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf(address _owner) public view override returns ( uint256, uint256, uint256 ) { return ( withdrawnDividendsSPX6900[_owner], withdrawnDividendsNeiro[_owner], withdrawnDividendsBitcoinHP[_owner] ); } /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf(address _owner) public view override returns ( uint256, uint256, uint256 ) { uint256 spx6900Share = MagnifiedDividendPerShareSPX6900 .mul(balanceOf(_owner)) .toInt256Safe() .add(magnifiedDividendCorrectionsSPX6900[_owner]) .toUint256Safe() / magnitude; uint256 neiroShare = MagnifiedDividendPerShareNeiro .mul(balanceOf(_owner)) .toInt256Safe() .add(magnifiedDividendCorrectionsNeiro[_owner]) .toUint256Safe() / magnitude; uint256 bitcoinShare = MagnifiedDividendPerShareBitcoinHP .mul(balanceOf(_owner)) .toInt256Safe() .add(magnifiedDividendCorrectionsBitcoinHP[_owner]) .toUint256Safe() / magnitude; return (spx6900Share, neiroShare, bitcoinShare); } /// @dev Internal function that transfer tokens from one address to another. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param from The address to transfer from. /// @param to The address to transfer to. /// @param value The amount to be transferred. function _transfer( address from, address to, uint256 value ) internal virtual override { require(false); int256 _magCorrection = MagnifiedDividendPerShareSPX6900 .mul(value) .toInt256Safe(); magnifiedDividendCorrectionsSPX6900[ from ] = magnifiedDividendCorrectionsSPX6900[from].add(_magCorrection); magnifiedDividendCorrectionsSPX6900[ to ] = magnifiedDividendCorrectionsSPX6900[to].sub(_magCorrection); int256 _magCorrectionToken = MagnifiedDividendPerShareNeiro .mul(value) .toInt256Safe(); magnifiedDividendCorrectionsNeiro[ from ] = magnifiedDividendCorrectionsNeiro[from].add(_magCorrectionToken); magnifiedDividendCorrectionsNeiro[to] = magnifiedDividendCorrectionsNeiro[ to ].sub(_magCorrectionToken); int256 _magCorrectionBitcoin = MagnifiedDividendPerShareBitcoinHP .mul(value) .toInt256Safe(); magnifiedDividendCorrectionsBitcoinHP[ from ] = magnifiedDividendCorrectionsBitcoinHP[from].add(_magCorrectionToken); magnifiedDividendCorrectionsBitcoinHP[to] = magnifiedDividendCorrectionsBitcoinHP[ to ].sub(_magCorrectionBitcoin); } /// @dev Internal function that mints tokens to an account. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param account The account that will receive the created tokens. /// @param value The amount that will be created. function _mint(address account, uint256 value) internal override { super._mint(account, value); magnifiedDividendCorrectionsSPX6900[ account ] = magnifiedDividendCorrectionsSPX6900[account].sub( (MagnifiedDividendPerShareSPX6900.mul(value)).toInt256Safe() ); magnifiedDividendCorrectionsNeiro[ account ] = magnifiedDividendCorrectionsNeiro[account].sub( (MagnifiedDividendPerShareNeiro.mul(value)).toInt256Safe() ); magnifiedDividendCorrectionsBitcoinHP[ account ] = magnifiedDividendCorrectionsBitcoinHP[account].sub( (MagnifiedDividendPerShareBitcoinHP.mul(value)).toInt256Safe() ); } /// @dev Internal function that burns an amount of the token of a given account. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param account The account whose tokens will be burnt. /// @param value The amount that will be burnt. function _burn(address account, uint256 value) internal override { super._burn(account, value); magnifiedDividendCorrectionsSPX6900[ account ] = magnifiedDividendCorrectionsSPX6900[account].add( (MagnifiedDividendPerShareSPX6900.mul(value)).toInt256Safe() ); magnifiedDividendCorrectionsNeiro[ account ] = magnifiedDividendCorrectionsNeiro[account].add( (MagnifiedDividendPerShareNeiro.mul(value)).toInt256Safe() ); magnifiedDividendCorrectionsBitcoinHP[ account ] = magnifiedDividendCorrectionsBitcoinHP[account].add( (MagnifiedDividendPerShareBitcoinHP.mul(value)).toInt256Safe() ); } function _setBalance(address account, uint256 newBalance) internal { uint256 currentBalance = balanceOf(account); if (newBalance > currentBalance) { uint256 mintAmount = newBalance.sub(currentBalance); _mint(account, mintAmount); } else if (newBalance < currentBalance) { uint256 burnAmount = currentBalance.sub(newBalance); _burn(account, burnAmount); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; interface DividendPayingTokenInterface { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner) external view returns ( uint256, uint256, uint256 ); /// @notice Withdraws the ether distributed to the sender. /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer. /// MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0. function withdrawDividend() external; /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf(address _owner) external view returns ( uint256, uint256, uint256 ); /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf(address _owner) external view returns ( uint256, uint256, uint256 ); /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf(address _owner) external view returns ( uint256, uint256, uint256 ); /// @dev This event MUST emit when ether is distributed to token holders. /// @param from The address which sends ether to this contract. /// @param weiAmount The amount of distributed ether in wei. event DividendsDistributed(address indexed from, uint256 weiAmount); /// @dev This event MUST emit when an address withdraws their dividend. /// @param to The address which withdraws ether from this contract. /// @param weiAmount The amount of withdrawn ether in wei. event DividendWithdrawn(address indexed to, uint256 weiAmount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @title SafeMathInt * @dev Math operations for int256 with overflow safety checks. */ library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; } /** * @dev Division of two int256 variables and fails on overflow. */ function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; } /** * @dev Subtracts two int256 variables and fails on overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; } /** * @dev Adds two int256 variables and fails on overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; } /** * @dev Converts to absolute value, and fails on overflow. */ function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; } function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } } /** * @title SafeMathUint * @dev Math operations with safety checks that revert on error */ library SafeMathUint { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
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":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","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":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ManualBitcoinDividendDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ManualNeiroDividendDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ManualSPX6900DividendDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"PERIOD_DURATION","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":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimDividend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract DividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"forceSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentInterval","outputs":[{"internalType":"enum GIB.Interval","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBuyAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSellAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"rescueETH20Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newPair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dev","type":"uint256"},{"internalType":"uint256","name":"_memes","type":"uint256"}],"name":"setBuyTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setClaimEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"setDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dev","type":"uint256"},{"internalType":"uint256","name":"_memes","type":"uint256"}],"name":"setSellTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensArray","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBuyTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSellTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"trackerRescueETH20Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRouter","type":"address"}],"name":"updateRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526009805462ffff00191662010100179055600a600f819055601081905560118190556012556014601381905580553480156200003f57600080fd5b50604051806040016040528060078152602001660474942363930360cc1b8152506040518060400160405280600381526020016223a4a160e91b81525081600390816200008d919062000d02565b5060046200009c828262000d02565b505050620000b9620000b36200079e60201b60201c565b620007a2565b604051620000c79062000c50565b620000d29062000dce565b604051809103906000f080158015620000ef573d6000803e3d6000fd5b50600980546001600160a01b039290921664010000000002600160201b600160c01b03199092169190911790556200013b73acbd180c9d49b5ebe57a9acaa25fd11c0237a823620007f4565b6000737a250d5630b4cf539739df2c5dacb4c659f2488d90506000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000195573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001bb919062000e50565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000209573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200022f919062000e50565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200027d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002a3919062000e50565b42600855600680546001600160a01b038086166001600160a01b03199283161790925560078054928416929091169190911790559050620002e8631913385062000820565b620002f86401f580664062000844565b620003096401f5806640806200085e565b6200031681600162000890565b60be600f81905560146010819055601191909155601281905560d260138190559055601880546001600160a01b031990811673e0f63a424a4439cbe457d80e4f4b51ad25b2c56c90811790925560198054821673812ba41e071c7b7fa4ebcfb62df5f45f6fa853ee908117909155601a80549092167372e4f9f808c49a2a61de9c5896298920dc4eeea9908117909255600954604051630df301ed60e11b815260048101949094526024840191909152604483019190915264010000000090046001600160a01b031690631be603da90606401600060405180830381600087803b1580156200040457600080fd5b505af115801562000419573d6000803e3d6000fd5b505060095460405162241fbd60e51b81526401000000009091046001600160a01b031660048201819052600160248301529250630483f7a09150604401600060405180830381600087803b1580156200047157600080fd5b505af115801562000486573d6000803e3d6000fd5b505060095460405162241fbd60e51b8152306004820152600160248201526401000000009091046001600160a01b03169250630483f7a09150604401600060405180830381600087803b158015620004dd57600080fd5b505af1158015620004f2573d6000803e3d6000fd5b505060095464010000000090046001600160a01b03169150630483f7a09050620005246005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b1580156200056d57600080fd5b505af115801562000582573d6000803e3d6000fd5b505060095460405162241fbd60e51b815261dead6004820152600160248201526401000000009091046001600160a01b03169250630483f7a09150604401600060405180830381600087803b158015620005db57600080fd5b505af1158015620005f0573d6000803e3d6000fd5b505060095460405162241fbd60e51b815260006004820152600160248201526401000000009091046001600160a01b03169250630483f7a09150604401600060405180830381600087803b1580156200064857600080fd5b505af11580156200065d573d6000803e3d6000fd5b505060095460405162241fbd60e51b81526001600160a01b038681166004830152600160248301526401000000009092049091169250630483f7a09150604401600060405180830381600087803b158015620006b857600080fd5b505af1158015620006cd573d6000803e3d6000fd5b50505050620006e481600162000a0760201b60201c565b620006f130600162000a07565b620006fe82600162000a07565b6009546200071f9064010000000090046001600160a01b0316600162000a07565b6200072e61dead600162000a07565b6200073b30600162000a3c565b6009546200075c9064010000000090046001600160a01b0316600162000a3c565b6200076b61dead600162000a3c565b62000796620007826005546001600160a01b031690565b6c054f529ca52576bc689200000062000b2a565b505062000ec7565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620007fe62000bed565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6200082a62000bed565b6200083e81670de0b6b3a764000062000e91565b600b5550565b6200085881670de0b6b3a764000062000e91565b600e5550565b6200087282670de0b6b3a764000062000e91565b600c556200088981670de0b6b3a764000062000e91565b600d555050565b6001600160a01b03821660009081526016602052604090205481151560ff9091161515036200092c5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c7565000000000000000060648201526084015b60405180910390fd5b6001600160a01b0382166000908152601660205260409020805460ff19168215801591909117909155620009cb5760095460405162241fbd60e51b81526001600160a01b0384811660048301526001602483015264010000000090920490911690630483f7a090604401600060405180830381600087803b158015620009b157600080fd5b505af1158015620009c6573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b62000a1162000bed565b6001600160a01b03919091166000908152601760205260409020805460ff1916911515919091179055565b62000a4662000bed565b6001600160a01b03821660009081526015602052604090205481151560ff90911615150362000acb5760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b606482015260840162000923565b6001600160a01b038216600081815260156020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b03821662000b825760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000923565b806002600082825462000b96919062000eb1565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6005546001600160a01b0316331462000c495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000923565b565b505050565b612505806200428e83390190565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000c8957607f821691505b60208210810362000caa57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000c4b57600081815260208120601f850160051c8101602086101562000cd95750805b601f850160051c820191505b8181101562000cfa5782815560010162000ce5565b505050505050565b81516001600160401b0381111562000d1e5762000d1e62000c5e565b62000d368162000d2f845462000c74565b8462000cb0565b602080601f83116001811462000d6e576000841562000d555750858301515b600019600386901b1c1916600185901b17855562000cfa565b600085815260208120601f198616915b8281101562000d9f5788860151825594840194600190910190840162000d7e565b508582101562000dbe5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60408152600062000e0c60408301601481527f4749425f4449564944454e445f547261636b6572000000000000000000000000602082015260400190565b828103602084015262000e4981601481527f4749425f4449564944454e445f547261636b6572000000000000000000000000602082015260400190565b9392505050565b60006020828403121562000e6357600080fd5b81516001600160a01b038116811462000e4957600080fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000eab5762000eab62000e7b565b92915050565b8082018082111562000eab5762000eab62000e7b565b6133b78062000ed76000396000f3fe6080604052600436106103855760003560e01c806388e765ff116101d1578063aa35822c11610102578063e01af92c116100a0578063f0fc6bca1161006f578063f0fc6bca14610aae578063f2fde38b14610ac3578063f887ea4014610ae3578063f8b45b0514610b0357600080fd5b8063e01af92c14610a42578063e2f4560514610a62578063e6fd48bc14610a78578063ec79690814610a8e57600080fd5b8063c0246668116100dc578063c0246668146109c2578063c851cc32146109e2578063d2fcc00114610a02578063dd62ed3e14610a2257600080fd5b8063aa35822c14610952578063afa4f3b214610972578063b62496f51461099257600080fd5b80639a7a23d61161016f578063a5feac2311610149578063a5feac23146108d2578063a8aa1b31146108f2578063a8b9d24014610912578063a9059cbb1461093257600080fd5b80639a7a23d614610872578063a11a168214610892578063a457c2d7146108b257600080fd5b80638da5cb5b116101ab5780638da5cb5b146107ff5780638ea5220f1461081d57806392929a091461083d57806395d89b411461085d57600080fd5b806388e765ff146107b45780638a8c523c146107ca5780638c9684f9146107df57600080fd5b8063313ce567116102b657806366d602ae11610254578063715018a611610223578063715018a6146106f6578063751039fc1461070b5780637b510fe81461072057806388bdd9be1461079457600080fd5b806366d602ae1461066b5780636843cd84146106815780636ddd1713146106a157806370a08231146106c057600080fd5b806346469afb1161029057806346469afb146105e55780634ada218b146105fb5780634fbee1931461061c5780636558954f1461065557600080fd5b8063313ce5671461058757806339509351146105a357806344e43c98146105c357600080fd5b80631bff789811610323578063259ca542116102fd578063259ca542146104d85780632866ed21146104f85780632c1f52161461051857806330bb4cff1461055757600080fd5b80631bff7898146104825780631f53ac021461049857806323b872dd146104b857600080fd5b8063095ea7b31161035f578063095ea7b3146103fe5780630a78097d1461042e57806312b77e8a1461044e57806318160ddd1461046357600080fd5b806304776751146103915780630483f7a0146103b357806306fdde03146103d357600080fd5b3661038c57005b600080fd5b34801561039d57600080fd5b506103b16103ac366004612e20565b610b19565b005b3480156103bf57600080fd5b506103b16103ce366004612e5c565b610bee565b3480156103df57600080fd5b506103e8610c2d565b6040516103f59190612e95565b60405180910390f35b34801561040a57600080fd5b5061041e610419366004612ee3565b610cbf565b60405190151581526020016103f5565b34801561043a57600080fd5b506103b1610449366004612f0f565b610cd9565b34801561045a57600080fd5b506103b1610dfb565b34801561046f57600080fd5b506002545b6040519081526020016103f5565b34801561048e57600080fd5b5061047460145481565b3480156104a457600080fd5b506103b16104b3366004612f0f565b610e89565b3480156104c457600080fd5b5061041e6104d3366004612f33565b610eb3565b3480156104e457600080fd5b506103b16104f3366004612e20565b610ed7565b34801561050457600080fd5b5060095461041e9062010000900460ff1681565b34801561052457600080fd5b5060095461053f90600160201b90046001600160a01b031681565b6040516001600160a01b0390911681526020016103f5565b34801561056357600080fd5b5061056c610fd7565b604080519384526020840192909252908201526060016103f5565b34801561059357600080fd5b50604051601281526020016103f5565b3480156105af57600080fd5b5061041e6105be366004612ee3565b61114c565b3480156105cf57600080fd5b506105d861116e565b6040516103f59190612f8a565b3480156105f157600080fd5b5061047460135481565b34801561060757600080fd5b5060095461041e906301000000900460ff1681565b34801561062857600080fd5b5061041e610637366004612f0f565b6001600160a01b031660009081526015602052604090205460ff1690565b34801561066157600080fd5b5061047461012c81565b34801561067757600080fd5b50610474600d5481565b34801561068d57600080fd5b5061047461069c366004612f0f565b6111da565b3480156106ad57600080fd5b5060095461041e90610100900460ff1681565b3480156106cc57600080fd5b506104746106db366004612f0f565b6001600160a01b031660009081526020819052604090205490565b34801561070257600080fd5b506103b1611250565b34801561071757600080fd5b506103b1611264565b34801561072c57600080fd5b5061074061073b366004612f0f565b611289565b604080516001600160a01b03909b168b5260208b0199909952978901969096526060880194909452608087019290925260a086015260c085015260e0840152610100830152610120820152610140016103f5565b3480156107a057600080fd5b506103b16107af366004612f0f565b611333565b3480156107c057600080fd5b50610474600c5481565b3480156107d657600080fd5b506103b161158f565b3480156107eb57600080fd5b506103b16107fa366004612f0f565b611606565b34801561080b57600080fd5b506005546001600160a01b031661053f565b34801561082957600080fd5b50600a5461053f906001600160a01b031681565b34801561084957600080fd5b506103b1610858366004612fb2565b6116a0565b34801561086957600080fd5b506103e86116c4565b34801561087e57600080fd5b506103b161088d366004612e5c565b6116d3565b34801561089e57600080fd5b506103b16108ad366004612fcf565b6116e5565b3480156108be57600080fd5b5061041e6108cd366004612ee3565b611758565b3480156108de57600080fd5b506103b16108ed366004612e20565b6117d3565b3480156108fe57600080fd5b5060075461053f906001600160a01b031681565b34801561091e57600080fd5b5061056c61092d366004612f0f565b61186c565b34801561093e57600080fd5b5061041e61094d366004612ee3565b6118f6565b34801561095e57600080fd5b506103b161096d366004612fcf565b611904565b34801561097e57600080fd5b506103b161098d366004612e20565b611977565b34801561099e57600080fd5b5061041e6109ad366004612f0f565b60166020526000908152604090205460ff1681565b3480156109ce57600080fd5b506103b16109dd366004612e5c565b611997565b3480156109ee57600080fd5b506103b16109fd366004612f0f565b611a81565b348015610a0e57600080fd5b506103b1610a1d366004612e5c565b611aab565b348015610a2e57600080fd5b50610474610a3d366004612ff1565b611ade565b348015610a4e57600080fd5b506103b1610a5d366004612fb2565b611b09565b348015610a6e57600080fd5b50610474600b5481565b348015610a8457600080fd5b5061047460085481565b348015610a9a57600080fd5b5061053f610aa9366004612e20565b611b2b565b348015610aba57600080fd5b506103b1611b4b565b348015610acf57600080fd5b506103b1610ade366004612f0f565b611c0e565b348015610aef57600080fd5b5060065461053f906001600160a01b031681565b348015610b0f57600080fd5b50610474600e5481565b600a546001600160a01b03163314610b4c5760405162461bcd60e51b8152600401610b439061301f565b60405180910390fd5b6000610b6e33600960049054906101000a90046001600160a01b031684610eb3565b90508015610bea5760095460405163032a6e5f60e01b8152600060048201819052602482015260448101849052600160201b9091046001600160a01b03169063032a6e5f906064015b600060405180830381600087803b158015610bd157600080fd5b505af1158015610be5573d6000803e3d6000fd5b505050505b5050565b610bf6611c84565b60095460405162241fbd60e51b8152600160201b9091046001600160a01b031690630483f7a090610bb79085908590600401613048565b606060038054610c3c90613063565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6890613063565b8015610cb55780601f10610c8a57610100808354040283529160200191610cb5565b820191906000526020600020905b815481529060010190602001808311610c9857829003601f168201915b5050505050905090565b600033610ccd818585611cde565b60019150505b92915050565b600a546001600160a01b03163314610d035760405162461bcd60e51b8152600401610b439061301f565b806001600160a01b031663a9059cbb610d246005546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610d68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8c919061309d565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610dd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bea91906130b6565b600a546001600160a01b03163314610e255760405162461bcd60e51b8152600401610b439061301f565b600a5460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610e76576040519150601f19603f3d011682016040523d82523d6000602084013e610e7b565b606091505b5050905080610bea57600080fd5b610e91611c84565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600033610ec1858285611e02565b610ecc858585611e7c565b506001949350505050565b600a546001600160a01b03163314610f015760405162461bcd60e51b8152600401610b439061301f565b6007546009546040516323b872dd60e01b8152336004820152600160201b9091046001600160a01b0390811660248301526044820184905260009216906323b872dd906064016020604051808303816000875af1158015610f66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8a91906130b6565b90508015610bea5760095460405163032a6e5f60e01b8152600481018490526000602482018190526044820152600160201b9091046001600160a01b03169063032a6e5f90606401610bb7565b6000806000600960049054906101000a90046001600160a01b03166001600160a01b031663db4c93756040518163ffffffff1660e01b8152600401602060405180830381865afa15801561102f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611053919061309d565b600960049054906101000a90046001600160a01b03166001600160a01b03166384db64c46040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ca919061309d565b600960049054906101000a90046001600160a01b03166001600160a01b0316634313893d6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561111d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611141919061309d565b925092509250909192565b600033610ccd81858561115f8383611ade565b61116991906130e9565b611cde565b6000806008544261117f91906130fc565b90506000600361119161012c84613125565b61119b9190613139565b9050806000036111ae5760009250505090565b806001036111bf5760019250505090565b60018111156111d15760029250505090565b60009250505090565b6009546040516370a0823160e01b81526001600160a01b038381166004830152600092600160201b900416906370a0823190602401602060405180830381865afa15801561122c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd3919061309d565b611258611c84565b611262600061246b565b565b61126c611c84565b61127a6461f313f8806124bd565b6112626461f313f880806124d5565b60095460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839283928392839283928392600160201b9004169063fbcbc0f19060240161014060405180830381865afa1580156112ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611312919061314d565b99509950995099509950995099509950995099509193959799509193959799565b600a546001600160a01b0316331461135d5760405162461bcd60e51b8152600401610b439061301f565b60405162241fbd60e51b815281906001600160a01b03821690630483f7a09061138d908490600190600401613048565b600060405180830381600087803b1580156113a757600080fd5b505af11580156113bb573d6000803e3d6000fd5b505060405162241fbd60e51b81526001600160a01b0384169250630483f7a091506113ed903090600190600401613048565b600060405180830381600087803b15801561140757600080fd5b505af115801561141b573d6000803e3d6000fd5b50505050806001600160a01b0316630483f7a06114406005546001600160a01b031690565b60016040518363ffffffff1660e01b815260040161145f929190613048565b600060405180830381600087803b15801561147957600080fd5b505af115801561148d573d6000803e3d6000fd5b505060065460405162241fbd60e51b81526001600160a01b038086169450630483f7a093506114c3921690600190600401613048565b600060405180830381600087803b1580156114dd57600080fd5b505af11580156114f1573d6000803e3d6000fd5b505060095460405162241fbd60e51b8152600160201b9091046001600160a01b03169250630483f7a0915061152e90600090600190600401613048565b600060405180830381600087803b15801561154857600080fd5b505af115801561155c573d6000803e3d6000fd5b5050600980546001600160a01b03909416600160201b02640100000000600160c01b031990941693909317909255505050565b611597611c84565b6009546301000000900460ff16156115f15760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c65640000000000000000006044820152606401610b43565b6009805463ff00000019166301000000179055565b600a546001600160a01b031633146116305760405162461bcd60e51b8152600401610b439061301f565b60095460405163497ec82360e01b81523360048201526001600160a01b038381166024830152600160201b9092049091169063497ec82390604401600060405180830381600087803b15801561168557600080fd5b505af1158015611699573d6000803e3d6000fd5b5050505050565b6116a8611c84565b60098054911515620100000262ff000019909216919091179055565b606060048054610c3c90613063565b6116db611c84565b610bea8282612503565b6116ed611c84565b61015e6116fa82846130e9565b111561173d5760405162461bcd60e51b8152602060048201526012602482015271466565206d757374206265203c3d2033352560701b6044820152606401610b43565b6011829055601281905561175181836130e9565b6014555050565b600033816117668286611ade565b9050838110156117c65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b43565b610ecc8286868403611cde565b600a546001600160a01b031633146117fd5760405162461bcd60e51b8152600401610b439061301f565b600061181f33600960049054906101000a90046001600160a01b031684610eb3565b90508015610bea5760095460405163032a6e5f60e01b8152600060048201819052602482018590526044820152600160201b9091046001600160a01b03169063032a6e5f90606401610bb7565b6009546040516302a2e74960e61b81526001600160a01b03838116600483015260009283928392600160201b9092049091169063a8b9d24090602401606060405180830381865afa1580156118c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e991906131cc565b9250925092509193909250565b600033610ccd818585611e7c565b61190c611c84565b61015e61191982846130e9565b111561195c5760405162461bcd60e51b8152602060048201526012602482015271466565206d757374206265203c3d2033352560701b6044820152606401610b43565b600f829055601081905561197081836130e9565b6013555050565b61197f611c84565b61199181670de0b6b3a76400006131fa565b600b5550565b61199f611c84565b6001600160a01b03821660009081526015602052604090205481151560ff909116151503611a225760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b6064820152608401610b43565b6001600160a01b038216600081815260156020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b611a89611c84565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b611ab3611c84565b6001600160a01b03919091166000908152601760205260409020805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611b11611c84565b600980549115156101000261ff0019909216919091179055565b60188160038110611b3b57600080fd5b01546001600160a01b0316905081565b60095462010000900460ff16611b975760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08195b98589b1959607a1b6044820152606401610b43565b60095460405163807ab4f760e01b8152336004820152600160201b9091046001600160a01b03169063807ab4f7906024016020604051808303816000875af1158015611be7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0b91906130b6565b50565b611c16611c84565b6001600160a01b038116611c7b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b43565b611c0b8161246b565b6005546001600160a01b031633146112625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b43565b6001600160a01b038316611d405760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b43565b6001600160a01b038216611da15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b43565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611e0e8484611ade565b90506000198114611e765781811015611e695760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b43565b611e768484848403611cde565b50505050565b6001600160a01b038316611ea25760405162461bcd60e51b8152600401610b4390613211565b6001600160a01b038216611ec85760405162461bcd60e51b8152600401610b4390613256565b6001600160a01b03831660009081526015602052604090205460ff16158015611f0a57506001600160a01b03821660009081526015602052604090205460ff16155b8015611f19575060095460ff16155b8015611f3357506005546001600160a01b03848116911614155b15612105576009546301000000900460ff16611f865760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610b43565b6001600160a01b03821660009081526016602052604090205460ff1615611ffe57600d54811115611ff95760405162461bcd60e51b815260206004820152601f60248201527f596f752061726520657863656564696e67206d617853656c6c416d6f756e74006044820152606401610b43565b612071565b6001600160a01b03831660009081526016602052604090205460ff161561207157600c548111156120715760405162461bcd60e51b815260206004820152601e60248201527f596f752061726520657863656564696e67206d6178427579416d6f756e7400006044820152606401610b43565b6001600160a01b03821660009081526017602052604090205460ff1661210557600e546001600160a01b0383166000908152602081905260409020546120b790836130e9565b11156121055760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610b43565b8060000361211e576121198383600061266d565b505050565b30600090815260208190526040902054600b5481108015908190612145575060095460ff16155b80156121585750600954610100900460ff165b801561217c57506001600160a01b03841660009081526016602052604090205460ff165b80156121a157506001600160a01b03851660009081526015602052604090205460ff16155b80156121c657506001600160a01b03841660009081526015602052604090205460ff16155b156121f6576009805460ff19166001179055601454156121eb576121eb600b54612797565b6009805460ff191690555b6009546001600160a01b03861660009081526015602052604090205460ff9182161591168061223d57506001600160a01b03851660009081526015602052604090205460ff165b15612246575060005b6001600160a01b03851660009081526016602052604090205460ff1615801561228857506001600160a01b03861660009081526016602052604090205460ff16155b15612291575060005b8015612332576001600160a01b03851660009081526016602052604081205460ff16156122da576103e8601454866122c991906131fa565b6122d39190613125565b9050612319565b6001600160a01b03871660009081526016602052604090205460ff1615612319576103e86013548661230c91906131fa565b6123169190613125565b90505b61232381866130fc565b945061233087308361266d565b505b61233d86868661266d565b6009546001600160a01b03600160201b9091041663e30443bc87612376816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156123bc57600080fd5b505af19250505080156123cd575060015b506009546001600160a01b03600160201b9091041663e30443bc86612407816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561244d57600080fd5b505af192505050801561245e575060015b15610be557505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6124cf81670de0b6b3a76400006131fa565b600e5550565b6124e782670de0b6b3a76400006131fa565b600c556124fc81670de0b6b3a76400006131fa565b600d555050565b6001600160a01b03821660009081526016602052604090205481151560ff9091161515036125995760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610b43565b6001600160a01b0382166000908152601660205260409020805460ff191682158015919091179091556126315760095460405162241fbd60e51b8152600160201b9091046001600160a01b031690630483f7a0906125fe908590600190600401613048565b600060405180830381600087803b15801561261857600080fd5b505af115801561262c573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b0383166126935760405162461bcd60e51b8152600401610b4390613211565b6001600160a01b0382166126b95760405162461bcd60e51b8152600401610b4390613256565b6001600160a01b038316600090815260208190526040902054818110156127315760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b43565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611e76565b30600090815260208190526040902054818115806127b3575080155b156127bd57505050565b6127c881600f6131fa565b8211156127dd576127da600f826131fa565b90505b60145460115447916000916127f290856131fa565b6127fc9190613125565b905061280781612910565b600061281383476130fc565b905080156128c057600a546040516000916001600160a01b03169083908381818185875af1925050503d8060008114612868576040519150601f19603f3d011682016040523d82523d6000602084013e61286d565b606091505b50509050806128be5760405162461bcd60e51b815260206004820181905260248201527f4661696c656420746f2073656e642045544820746f206465762077616c6c65746044820152606401610b43565b505b6000601454601254866128d391906131fa565b6128dd9190613125565b905060006128e961116e565b60028111156128fa576128fa612f74565b90506129068183612a34565b5050505050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061294557612945613299565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561299e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129c291906132af565b816001815181106129d5576129d5613299565b6001600160a01b0392831660209182029290920101526006546129fb9130911684611cde565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790610bb7908590600090869030904290600401613310565b47612a3e82612910565b6000612a4a82476130fc565b9050600060188560ff1660038110612a6457612a64613299565b01546001600160a01b031690508115612a8157612a818282612cd8565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612ac8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612aec919061309d565b9050808015612ccf5760095460405163a9059cbb60e01b81526001600160a01b03600160201b909204821660048201526024810183905260009185169063a9059cbb906044016020604051808303816000875af1158015612b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b7591906130b6565b90508015612906578760ff16600003612c005760095460405163032a6e5f60e01b8152600481018490526000602482018190526044820152600160201b9091046001600160a01b03169063032a6e5f906064015b600060405180830381600087803b158015612be357600080fd5b505af1158015612bf7573d6000803e3d6000fd5b50505050612906565b8760ff16600103612c505760095460405163032a6e5f60e01b8152600060048201819052602482018590526044820152600160201b9091046001600160a01b03169063032a6e5f90606401612bc9565b8760ff166002036129065760095460405163032a6e5f60e01b8152600060048201819052602482015260448101849052600160201b9091046001600160a01b03169063032a6e5f90606401600060405180830381600087803b158015612cb557600080fd5b505af1158015612cc9573d6000803e3d6000fd5b50505050505b50505050505050565b6040805160028082526060820183526000926020830190803683375050600654604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015612d42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d6691906132af565b81600081518110612d7957612d79613299565b60200260200101906001600160a01b031690816001600160a01b0316815250508181600181518110612dad57612dad613299565b6001600160a01b03928316602091820292909201015260065460405163b6f9de9560e01b815291169063b6f9de95908590612df39060009086903090429060040161334c565b6000604051808303818588803b158015612e0c57600080fd5b505af1158015612906573d6000803e3d6000fd5b600060208284031215612e3257600080fd5b5035919050565b6001600160a01b0381168114611c0b57600080fd5b8015158114611c0b57600080fd5b60008060408385031215612e6f57600080fd5b8235612e7a81612e39565b91506020830135612e8a81612e4e565b809150509250929050565b600060208083528351808285015260005b81811015612ec257858101830151858201604001528201612ea6565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215612ef657600080fd5b8235612f0181612e39565b946020939093013593505050565b600060208284031215612f2157600080fd5b8135612f2c81612e39565b9392505050565b600080600060608486031215612f4857600080fd5b8335612f5381612e39565b92506020840135612f6381612e39565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612fac57634e487b7160e01b600052602160045260246000fd5b91905290565b600060208284031215612fc457600080fd5b8135612f2c81612e4e565b60008060408385031215612fe257600080fd5b50508035926020909101359150565b6000806040838503121561300457600080fd5b823561300f81612e39565b91506020830135612e8a81612e39565b6020808252600f908201526e1b9bdd0819195d881858d8dbdd5b9d608a1b604082015260600190565b6001600160a01b039290921682521515602082015260400190565b600181811c9082168061307757607f821691505b60208210810361309757634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156130af57600080fd5b5051919050565b6000602082840312156130c857600080fd5b8151612f2c81612e4e565b634e487b7160e01b600052601160045260246000fd5b80820180821115610cd357610cd36130d3565b81810381811115610cd357610cd36130d3565b634e487b7160e01b600052601260045260246000fd5b6000826131345761313461310f565b500490565b6000826131485761314861310f565b500690565b6000806000806000806000806000806101408b8d03121561316d57600080fd5b8a5161317881612e39565b809a505060208b0151985060408b0151975060608b0151965060808b0151955060a08b0151945060c08b0151935060e08b015192506101008b015191506101208b015190509295989b9194979a5092959850565b6000806000606084860312156131e157600080fd5b8351925060208401519150604084015190509250925092565b8082028115828204841417610cd357610cd36130d3565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156132c157600080fd5b8151612f2c81612e39565b600081518084526020808501945080840160005b838110156133055781516001600160a01b0316875295820195908201906001016132e0565b509495945050505050565b85815284602082015260a06040820152600061332f60a08301866132cc565b6001600160a01b0394909416606083015250608001529392505050565b84815260806020820152600061336560808301866132cc565b6001600160a01b0394909416604083015250606001529291505056fea26469706673582212202567cb2c34c3328428a157911e49918801042592075e0c08b2e1f5025549ccbb64736f6c6343000813003360806040523480156200001157600080fd5b506040516200250538038062002505833981016040819052620000349162000197565b81818181600362000046838262000290565b50600462000055828262000290565b505050620000726200006c6200007c60201b60201c565b62000080565b505050506200035c565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620000fa57600080fd5b81516001600160401b0380821115620001175762000117620000d2565b604051601f8301601f19908116603f01168101908282118183101715620001425762000142620000d2565b816040528381526020925086838588010111156200015f57600080fd5b600091505b8382101562000183578582018301518183018401529082019062000164565b600093810190920192909252949350505050565b60008060408385031215620001ab57600080fd5b82516001600160401b0380821115620001c357600080fd5b620001d186838701620000e8565b93506020850151915080821115620001e857600080fd5b50620001f785828601620000e8565b9150509250929050565b600181811c908216806200021657607f821691505b6020821081036200023757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028b57600081815260208120601f850160051c81016020861015620002665750805b601f850160051c820191505b81811015620002875782815560010162000272565b5050505b505050565b81516001600160401b03811115620002ac57620002ac620000d2565b620002c481620002bd845462000201565b846200023d565b602080601f831160018114620002fc5760008415620002e35750858301515b600019600386901b1c1916600185901b17855562000287565b600085815260208120601f198616915b828110156200032d578886015182559484019460019091019084016200030c565b50858210156200034c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612199806200036c6000396000f3fe608060405234801561001057600080fd5b506004361061023d5760003560e01c806370a082311161013b578063a9059cbb116100b8578063dd62ed3e1161007c578063dd62ed3e14610521578063e30443bc14610534578063f2fde38b14610547578063fb070cd01461055a578063fbcbc0f11461057a57600080fd5b8063a9059cbb146104a9578063aafd847a146104bc578063c39bd90d146104fc578063ce96892114610505578063db4c93751461051857600080fd5b806391b89fba116100ff57806391b89fba1461045f57806395d89b4114610472578063a457c2d71461047a578063a4e7cb161461048d578063a8b9d2401461049657600080fd5b806370a0823114610401578063715018a61461042a578063807ab4f71461043257806384db64c4146104455780638da5cb5b1461044e57600080fd5b80632b52b34a116101c95780634313893d1161018d5780634313893d1461039a578063497ec823146103a35780634e7b827f146103b65780636a474002146103d95780636eb93983146103e157600080fd5b80632b52b34a1461033c5780632cb4f27c1461034f578063313ce5671461035857806339509351146103675780633bdb0fd91461037a57600080fd5b806318160ddd1161021057806318160ddd146102ab5780631be603da146102bd5780631d0c888d146102d057806323b872dd146102fb57806327ce01471461030e57600080fd5b8063032a6e5f146102425780630483f7a01461025757806306fdde031461026a578063095ea7b314610288575b600080fd5b610255610250366004611e62565b6105e1565b005b610255610265366004611eb3565b6107ce565b6102726108b2565b60405161027f9190611eea565b60405180910390f35b61029b610296366004611f38565b610944565b604051901515815260200161027f565b6002545b60405190815260200161027f565b6102556102cb366004611f62565b61095e565b6008546102e3906001600160a01b031681565b6040516001600160a01b03909116815260200161027f565b61029b610309366004611fa5565b6109a5565b61032161031c366004611fe1565b6109c9565b6040805193845260208401929092529082015260600161027f565b6006546102e3906001600160a01b031681565b6102af60155481565b6040516012815260200161027f565b61029b610375366004611f38565b610add565b6102af610388366004611fe1565b60196020526000908152604090205481565b6102af60145481565b6102556103b1366004611ffc565b610aff565b61029b6103c4366004611fe1565b60186020526000908152604090205460ff1681565b610255610be8565b6102af6103ef366004611fe1565b601a6020526000908152604090205481565b6102af61040f366004611fe1565b6001600160a01b031660009081526020819052604090205490565b610255610bf1565b61029b610440366004611fe1565b610c05565b6102af60135481565b6005546001600160a01b03166102e3565b61032161046d366004611fe1565b610d3d565b610272610d58565b61029b610488366004611f38565b610d67565b6102af60175481565b6103216104a4366004611fe1565b610de2565b61029b6104b7366004611f38565b610e78565b6103216104ca366004611fe1565b6001600160a01b03166000908152600f6020908152604080832054601083528184205460119093529220549192909190565b6102af60165481565b6007546102e3906001600160a01b031681565b6102af60125481565b6102af61052f366004611ffc565b610e86565b610255610542366004611f38565b610eb1565b610255610555366004611fe1565b610ee7565b6102af610568366004611fe1565b601b6020526000908152604090205481565b61058d610588366004611fe1565b610f60565b604080516001600160a01b03909b168b5260208b0199909952978901969096526060880194909452608087019290925260a086015260c085015260e08401526101008301526101208201526101400161027f565b6105e96110f5565b60006105f460025490565b116106555760405162461bcd60e51b815260206004820152602660248201527f546f74616c20737570706c79206d7573742062652067726561746572207468616044820152656e207a65726f60d01b60648201526084015b60405180910390fd5b82156106d15761068861066760025490565b61067585600160801b61114f565b61067f9190612045565b600954906111d8565b60095560405183815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a26012546106cd90846111d8565b6012555b811561074d576107046106e360025490565b6106f184600160801b61114f565b6106fb9190612045565b600a54906111d8565b600a5560405182815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a260135461074990836111d8565b6013555b80156107c95761078061075f60025490565b61076d83600160801b61114f565b6107779190612045565b600b54906111d8565b600b5560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a26014546107c590826111d8565b6014555b505050565b6107d66110f5565b6001600160a01b03821660009081526018602052604090205481151560ff90911615150361080357600080fd5b6001600160a01b0382166000908152601860205260409020805460ff19168215159081179091556001036108415761083c826000611237565b610869565b61086982610864846001600160a01b031660009081526020819052604090205490565b611237565b816001600160a01b03167fa3c7c11b2e12c4144b09a7813f3393ba646392788638998c97be8da908cf04be826040516108a6911515815260200190565b60405180910390a25050565b6060600380546108c190612067565b80601f01602080910402602001604051908101604052809291908181526020018280546108ed90612067565b801561093a5780601f1061090f5761010080835404028352916020019161093a565b820191906000526020600020905b81548152906001019060200180831161091d57829003601f168201915b5050505050905090565b600033610952818585611296565b60019150505b92915050565b6109666110f5565b600680546001600160a01b039485166001600160a01b031991821617909155600780549385169382169390931790925560088054919093169116179055565b6000336109b38582856113ba565b6109be85858561142e565b506001949350505050565b6001600160a01b0381166000908152600c602090815260408083205491839052822054829182918291600160801b91610a2191610a1c91610a1690610a11906009549061114f565b611489565b90611499565b6114d7565b610a2b9190612045565b6001600160a01b0386166000908152600d6020908152604080832054918390528220549293509091600160801b91610a7391610a1c9190610a1690610a1190600a549061114f565b610a7d9190612045565b6001600160a01b0387166000908152600e6020908152604080832054918390528220549293509091600160801b91610ac591610a1c9190610a1690610a1190600b549061114f565b610acf9190612045565b929791965091945092505050565b600033610952818585610af08383610e86565b610afa91906120a1565b611296565b610b076110f5565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90849083906370a0823190602401602060405180830381865afa158015610b55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7991906120b4565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610bc4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c991906120cd565b6107c9336114ea565b610bf96110f5565b610c03600061198a565b565b6000610c0f6110f5565b6000806000610c1d856114ea565b919450925090508215610c8a576001600160a01b03851660008181526019602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490610c779086815260200190565b60405180910390a2506001949350505050565b8115610cdd576001600160a01b0385166000818152601a602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490610c779085815260200190565b8015610d30576001600160a01b0385166000818152601b602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490610c779084815260200190565b600193505050505b919050565b6000806000610d4b84610de2565b9250925092509193909250565b6060600480546108c190612067565b60003381610d758286610e86565b905083811015610dd55760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161064c565b6109be8286868403611296565b600080600080600080610df4876109c9565b6001600160a01b038a166000908152600f60205260409020549295509093509150610e209084906119dc565b6001600160a01b038816600090815260106020526040902054610e449084906119dc565b6001600160a01b038916600090815260116020526040902054610e689084906119dc565b9550955095505050509193909250565b60003361095281858561142e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610eb96110f5565b6001600160a01b03821660009081526018602052604090205460ff16610ee357610ee38282611237565b5050565b610eef6110f5565b6001600160a01b038116610f545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161064c565b610f5d8161198a565b50565b600080600080600080600080600080610fce60405180610140016040528060006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6001600160a01b038c168152610fe38c610de2565b606084015260408301526020820152610ffb8c6109c9565b836080018460a0018560c001838152508381525083815250505050601960008d6001600160a01b03166001600160a01b03168152602001908152602001600020548160e0018181525050601a60008d6001600160a01b03166001600160a01b031681526020019081526020016000205481610100018181525050601b60008d6001600160a01b03166001600160a01b03168152602001908152602001600020548161012001818152505080600001518160200151826040015183606001518460e001518561010001518661012001516015546016546017549a509a509a509a509a509a509a509a509a509a50509193959799509193959799565b6005546001600160a01b03163314610c035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064c565b60008260000361116157506000610958565b600061116d83856120ea565b90508261117a8583612045565b146111d15760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b606482015260840161064c565b9392505050565b6000806111e583856120a1565b9050838110156111d15760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161064c565b6001600160a01b0382166000908152602081905260409020548082111561127657600061126483836119dc565b90506112708482611a1e565b50505050565b808210156107c957600061128a82846119dc565b90506112708482611b1c565b6001600160a01b0383166112f85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161064c565b6001600160a01b0382166113595760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161064c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006113c68484610e86565b9050600019811461127057818110156114215760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161064c565b6112708484848403611296565b60405162461bcd60e51b815260206004820152602a60248201527f4749425f4469766964656e645f547261636b65723a204e6f207472616e7366656044820152691c9cc8185b1b1bddd95960b21b606482015260840161064c565b6000818181121561095857600080fd5b6000806114a68385612101565b9050600083121580156114b95750838112155b806114ce57506000831280156114ce57508381125b6111d157600080fd5b6000808212156114e657600080fd5b5090565b60008060008060008060008060006115018a610de2565b919450925090508215611683576001600160a01b038a166000908152600f602052604090205461153190846111d8565b6001600160a01b038b166000908152600f60205260408120919091556015805485929061155f9084906120a1565b90915550506040518381526001600160a01b038b16907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a260065460405163a9059cbb60e01b81526001600160a01b038c8116600483015260248201869052600092169063a9059cbb906044016020604051808303816000875af11580156115f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161a91906120cd565b90508061167d576001600160a01b038b166000908152600f602052604090205461164490856119dc565b6001600160a01b038c166000908152600f602052604081209190915560158054869290611672908490612129565b909155506116819050565b8396505b505b81156117fe576001600160a01b038a166000908152601060205260409020546116ac90836111d8565b6001600160a01b038b16600090815260106020526040812091909155601680548492906116da9084906120a1565b90915550506040518281526001600160a01b038b16907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a260075460405163a9059cbb60e01b81526001600160a01b038c8116600483015260248201859052600092169063a9059cbb906044016020604051808303816000875af1158015611771573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061179591906120cd565b9050806117f8576001600160a01b038b166000908152601060205260409020546117bf90846119dc565b6001600160a01b038c16600090815260106020526040812091909155601680548592906117ed908490612129565b909155506117fc9050565b8295505b505b8015611979576001600160a01b038a1660009081526011602052604090205461182790826111d8565b6001600160a01b038b16600090815260116020526040812091909155601780548392906118559084906120a1565b90915550506040518181526001600160a01b038b16907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a260085460405163a9059cbb60e01b81526001600160a01b038c8116600483015260248201849052600092169063a9059cbb906044016020604051808303816000875af11580156118ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191091906120cd565b905080611973576001600160a01b038b1660009081526011602052604090205461193a90836119dc565b6001600160a01b038c1660009081526011602052604081209190915560178054849290611968908490612129565b909155506119779050565b8194505b505b509398929750909550909350505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006111d183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611bfa565b611a288282611c34565b611a62611a43610a118360095461114f90919063ffffffff16565b6001600160a01b0384166000908152600c602052604090205490611cf3565b6001600160a01b0383166000908152600c6020526040902055600a54611aaf90611a9090610a11908461114f565b6001600160a01b0384166000908152600d602052604090205490611cf3565b6001600160a01b0383166000908152600d6020526040902055600b54611afc90611add90610a11908461114f565b6001600160a01b0384166000908152600e602052604090205490611cf3565b6001600160a01b039092166000908152600e602052604090209190915550565b611b268282611d30565b611b60611b41610a118360095461114f90919063ffffffff16565b6001600160a01b0384166000908152600c602052604090205490611499565b6001600160a01b0383166000908152600c6020526040902055600a54611bad90611b8e90610a11908461114f565b6001600160a01b0384166000908152600d602052604090205490611499565b6001600160a01b0383166000908152600d6020526040902055600b54611afc90611bdb90610a11908461114f565b6001600160a01b0384166000908152600e602052604090205490611499565b60008184841115611c1e5760405162461bcd60e51b815260040161064c9190611eea565b506000611c2b8486612129565b95945050505050565b6001600160a01b038216611c8a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161064c565b8060026000828254611c9c91906120a1565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600080611d00838561213c565b905060008312158015611d135750838113155b806114ce57506000831280156114ce57508381136111d157600080fd5b6001600160a01b038216611d905760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161064c565b6001600160a01b03821660009081526020819052604090205481811015611e045760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161064c565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600080600060608486031215611e7757600080fd5b505081359360208301359350604090920135919050565b80356001600160a01b0381168114610d3857600080fd5b8015158114610f5d57600080fd5b60008060408385031215611ec657600080fd5b611ecf83611e8e565b91506020830135611edf81611ea5565b809150509250929050565b600060208083528351808285015260005b81811015611f1757858101830151858201604001528201611efb565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215611f4b57600080fd5b611f5483611e8e565b946020939093013593505050565b600080600060608486031215611f7757600080fd5b611f8084611e8e565b9250611f8e60208501611e8e565b9150611f9c60408501611e8e565b90509250925092565b600080600060608486031215611fba57600080fd5b611fc384611e8e565b9250611fd160208501611e8e565b9150604084013590509250925092565b600060208284031215611ff357600080fd5b6111d182611e8e565b6000806040838503121561200f57600080fd5b61201883611e8e565b915061202660208401611e8e565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008261206257634e487b7160e01b600052601260045260246000fd5b500490565b600181811c9082168061207b57607f821691505b60208210810361209b57634e487b7160e01b600052602260045260246000fd5b50919050565b808201808211156109585761095861202f565b6000602082840312156120c657600080fd5b5051919050565b6000602082840312156120df57600080fd5b81516111d181611ea5565b80820281158282048414176109585761095861202f565b80820182811260008312801582168215821617156121215761212161202f565b505092915050565b818103818111156109585761095861202f565b818103600083128015838313168383128216171561215c5761215c61202f565b509291505056fea26469706673582212204749c1c41d536746594b12586a68c8503bc5a9d15dcaf1782fbfe2c4b2a40ec864736f6c63430008130033
Deployed Bytecode
0x6080604052600436106103855760003560e01c806388e765ff116101d1578063aa35822c11610102578063e01af92c116100a0578063f0fc6bca1161006f578063f0fc6bca14610aae578063f2fde38b14610ac3578063f887ea4014610ae3578063f8b45b0514610b0357600080fd5b8063e01af92c14610a42578063e2f4560514610a62578063e6fd48bc14610a78578063ec79690814610a8e57600080fd5b8063c0246668116100dc578063c0246668146109c2578063c851cc32146109e2578063d2fcc00114610a02578063dd62ed3e14610a2257600080fd5b8063aa35822c14610952578063afa4f3b214610972578063b62496f51461099257600080fd5b80639a7a23d61161016f578063a5feac2311610149578063a5feac23146108d2578063a8aa1b31146108f2578063a8b9d24014610912578063a9059cbb1461093257600080fd5b80639a7a23d614610872578063a11a168214610892578063a457c2d7146108b257600080fd5b80638da5cb5b116101ab5780638da5cb5b146107ff5780638ea5220f1461081d57806392929a091461083d57806395d89b411461085d57600080fd5b806388e765ff146107b45780638a8c523c146107ca5780638c9684f9146107df57600080fd5b8063313ce567116102b657806366d602ae11610254578063715018a611610223578063715018a6146106f6578063751039fc1461070b5780637b510fe81461072057806388bdd9be1461079457600080fd5b806366d602ae1461066b5780636843cd84146106815780636ddd1713146106a157806370a08231146106c057600080fd5b806346469afb1161029057806346469afb146105e55780634ada218b146105fb5780634fbee1931461061c5780636558954f1461065557600080fd5b8063313ce5671461058757806339509351146105a357806344e43c98146105c357600080fd5b80631bff789811610323578063259ca542116102fd578063259ca542146104d85780632866ed21146104f85780632c1f52161461051857806330bb4cff1461055757600080fd5b80631bff7898146104825780631f53ac021461049857806323b872dd146104b857600080fd5b8063095ea7b31161035f578063095ea7b3146103fe5780630a78097d1461042e57806312b77e8a1461044e57806318160ddd1461046357600080fd5b806304776751146103915780630483f7a0146103b357806306fdde03146103d357600080fd5b3661038c57005b600080fd5b34801561039d57600080fd5b506103b16103ac366004612e20565b610b19565b005b3480156103bf57600080fd5b506103b16103ce366004612e5c565b610bee565b3480156103df57600080fd5b506103e8610c2d565b6040516103f59190612e95565b60405180910390f35b34801561040a57600080fd5b5061041e610419366004612ee3565b610cbf565b60405190151581526020016103f5565b34801561043a57600080fd5b506103b1610449366004612f0f565b610cd9565b34801561045a57600080fd5b506103b1610dfb565b34801561046f57600080fd5b506002545b6040519081526020016103f5565b34801561048e57600080fd5b5061047460145481565b3480156104a457600080fd5b506103b16104b3366004612f0f565b610e89565b3480156104c457600080fd5b5061041e6104d3366004612f33565b610eb3565b3480156104e457600080fd5b506103b16104f3366004612e20565b610ed7565b34801561050457600080fd5b5060095461041e9062010000900460ff1681565b34801561052457600080fd5b5060095461053f90600160201b90046001600160a01b031681565b6040516001600160a01b0390911681526020016103f5565b34801561056357600080fd5b5061056c610fd7565b604080519384526020840192909252908201526060016103f5565b34801561059357600080fd5b50604051601281526020016103f5565b3480156105af57600080fd5b5061041e6105be366004612ee3565b61114c565b3480156105cf57600080fd5b506105d861116e565b6040516103f59190612f8a565b3480156105f157600080fd5b5061047460135481565b34801561060757600080fd5b5060095461041e906301000000900460ff1681565b34801561062857600080fd5b5061041e610637366004612f0f565b6001600160a01b031660009081526015602052604090205460ff1690565b34801561066157600080fd5b5061047461012c81565b34801561067757600080fd5b50610474600d5481565b34801561068d57600080fd5b5061047461069c366004612f0f565b6111da565b3480156106ad57600080fd5b5060095461041e90610100900460ff1681565b3480156106cc57600080fd5b506104746106db366004612f0f565b6001600160a01b031660009081526020819052604090205490565b34801561070257600080fd5b506103b1611250565b34801561071757600080fd5b506103b1611264565b34801561072c57600080fd5b5061074061073b366004612f0f565b611289565b604080516001600160a01b03909b168b5260208b0199909952978901969096526060880194909452608087019290925260a086015260c085015260e0840152610100830152610120820152610140016103f5565b3480156107a057600080fd5b506103b16107af366004612f0f565b611333565b3480156107c057600080fd5b50610474600c5481565b3480156107d657600080fd5b506103b161158f565b3480156107eb57600080fd5b506103b16107fa366004612f0f565b611606565b34801561080b57600080fd5b506005546001600160a01b031661053f565b34801561082957600080fd5b50600a5461053f906001600160a01b031681565b34801561084957600080fd5b506103b1610858366004612fb2565b6116a0565b34801561086957600080fd5b506103e86116c4565b34801561087e57600080fd5b506103b161088d366004612e5c565b6116d3565b34801561089e57600080fd5b506103b16108ad366004612fcf565b6116e5565b3480156108be57600080fd5b5061041e6108cd366004612ee3565b611758565b3480156108de57600080fd5b506103b16108ed366004612e20565b6117d3565b3480156108fe57600080fd5b5060075461053f906001600160a01b031681565b34801561091e57600080fd5b5061056c61092d366004612f0f565b61186c565b34801561093e57600080fd5b5061041e61094d366004612ee3565b6118f6565b34801561095e57600080fd5b506103b161096d366004612fcf565b611904565b34801561097e57600080fd5b506103b161098d366004612e20565b611977565b34801561099e57600080fd5b5061041e6109ad366004612f0f565b60166020526000908152604090205460ff1681565b3480156109ce57600080fd5b506103b16109dd366004612e5c565b611997565b3480156109ee57600080fd5b506103b16109fd366004612f0f565b611a81565b348015610a0e57600080fd5b506103b1610a1d366004612e5c565b611aab565b348015610a2e57600080fd5b50610474610a3d366004612ff1565b611ade565b348015610a4e57600080fd5b506103b1610a5d366004612fb2565b611b09565b348015610a6e57600080fd5b50610474600b5481565b348015610a8457600080fd5b5061047460085481565b348015610a9a57600080fd5b5061053f610aa9366004612e20565b611b2b565b348015610aba57600080fd5b506103b1611b4b565b348015610acf57600080fd5b506103b1610ade366004612f0f565b611c0e565b348015610aef57600080fd5b5060065461053f906001600160a01b031681565b348015610b0f57600080fd5b50610474600e5481565b600a546001600160a01b03163314610b4c5760405162461bcd60e51b8152600401610b439061301f565b60405180910390fd5b6000610b6e33600960049054906101000a90046001600160a01b031684610eb3565b90508015610bea5760095460405163032a6e5f60e01b8152600060048201819052602482015260448101849052600160201b9091046001600160a01b03169063032a6e5f906064015b600060405180830381600087803b158015610bd157600080fd5b505af1158015610be5573d6000803e3d6000fd5b505050505b5050565b610bf6611c84565b60095460405162241fbd60e51b8152600160201b9091046001600160a01b031690630483f7a090610bb79085908590600401613048565b606060038054610c3c90613063565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6890613063565b8015610cb55780601f10610c8a57610100808354040283529160200191610cb5565b820191906000526020600020905b815481529060010190602001808311610c9857829003601f168201915b5050505050905090565b600033610ccd818585611cde565b60019150505b92915050565b600a546001600160a01b03163314610d035760405162461bcd60e51b8152600401610b439061301f565b806001600160a01b031663a9059cbb610d246005546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610d68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8c919061309d565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610dd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bea91906130b6565b600a546001600160a01b03163314610e255760405162461bcd60e51b8152600401610b439061301f565b600a5460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610e76576040519150601f19603f3d011682016040523d82523d6000602084013e610e7b565b606091505b5050905080610bea57600080fd5b610e91611c84565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600033610ec1858285611e02565b610ecc858585611e7c565b506001949350505050565b600a546001600160a01b03163314610f015760405162461bcd60e51b8152600401610b439061301f565b6007546009546040516323b872dd60e01b8152336004820152600160201b9091046001600160a01b0390811660248301526044820184905260009216906323b872dd906064016020604051808303816000875af1158015610f66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8a91906130b6565b90508015610bea5760095460405163032a6e5f60e01b8152600481018490526000602482018190526044820152600160201b9091046001600160a01b03169063032a6e5f90606401610bb7565b6000806000600960049054906101000a90046001600160a01b03166001600160a01b031663db4c93756040518163ffffffff1660e01b8152600401602060405180830381865afa15801561102f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611053919061309d565b600960049054906101000a90046001600160a01b03166001600160a01b03166384db64c46040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ca919061309d565b600960049054906101000a90046001600160a01b03166001600160a01b0316634313893d6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561111d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611141919061309d565b925092509250909192565b600033610ccd81858561115f8383611ade565b61116991906130e9565b611cde565b6000806008544261117f91906130fc565b90506000600361119161012c84613125565b61119b9190613139565b9050806000036111ae5760009250505090565b806001036111bf5760019250505090565b60018111156111d15760029250505090565b60009250505090565b6009546040516370a0823160e01b81526001600160a01b038381166004830152600092600160201b900416906370a0823190602401602060405180830381865afa15801561122c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd3919061309d565b611258611c84565b611262600061246b565b565b61126c611c84565b61127a6461f313f8806124bd565b6112626461f313f880806124d5565b60095460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839283928392839283928392600160201b9004169063fbcbc0f19060240161014060405180830381865afa1580156112ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611312919061314d565b99509950995099509950995099509950995099509193959799509193959799565b600a546001600160a01b0316331461135d5760405162461bcd60e51b8152600401610b439061301f565b60405162241fbd60e51b815281906001600160a01b03821690630483f7a09061138d908490600190600401613048565b600060405180830381600087803b1580156113a757600080fd5b505af11580156113bb573d6000803e3d6000fd5b505060405162241fbd60e51b81526001600160a01b0384169250630483f7a091506113ed903090600190600401613048565b600060405180830381600087803b15801561140757600080fd5b505af115801561141b573d6000803e3d6000fd5b50505050806001600160a01b0316630483f7a06114406005546001600160a01b031690565b60016040518363ffffffff1660e01b815260040161145f929190613048565b600060405180830381600087803b15801561147957600080fd5b505af115801561148d573d6000803e3d6000fd5b505060065460405162241fbd60e51b81526001600160a01b038086169450630483f7a093506114c3921690600190600401613048565b600060405180830381600087803b1580156114dd57600080fd5b505af11580156114f1573d6000803e3d6000fd5b505060095460405162241fbd60e51b8152600160201b9091046001600160a01b03169250630483f7a0915061152e90600090600190600401613048565b600060405180830381600087803b15801561154857600080fd5b505af115801561155c573d6000803e3d6000fd5b5050600980546001600160a01b03909416600160201b02640100000000600160c01b031990941693909317909255505050565b611597611c84565b6009546301000000900460ff16156115f15760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c65640000000000000000006044820152606401610b43565b6009805463ff00000019166301000000179055565b600a546001600160a01b031633146116305760405162461bcd60e51b8152600401610b439061301f565b60095460405163497ec82360e01b81523360048201526001600160a01b038381166024830152600160201b9092049091169063497ec82390604401600060405180830381600087803b15801561168557600080fd5b505af1158015611699573d6000803e3d6000fd5b5050505050565b6116a8611c84565b60098054911515620100000262ff000019909216919091179055565b606060048054610c3c90613063565b6116db611c84565b610bea8282612503565b6116ed611c84565b61015e6116fa82846130e9565b111561173d5760405162461bcd60e51b8152602060048201526012602482015271466565206d757374206265203c3d2033352560701b6044820152606401610b43565b6011829055601281905561175181836130e9565b6014555050565b600033816117668286611ade565b9050838110156117c65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b43565b610ecc8286868403611cde565b600a546001600160a01b031633146117fd5760405162461bcd60e51b8152600401610b439061301f565b600061181f33600960049054906101000a90046001600160a01b031684610eb3565b90508015610bea5760095460405163032a6e5f60e01b8152600060048201819052602482018590526044820152600160201b9091046001600160a01b03169063032a6e5f90606401610bb7565b6009546040516302a2e74960e61b81526001600160a01b03838116600483015260009283928392600160201b9092049091169063a8b9d24090602401606060405180830381865afa1580156118c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e991906131cc565b9250925092509193909250565b600033610ccd818585611e7c565b61190c611c84565b61015e61191982846130e9565b111561195c5760405162461bcd60e51b8152602060048201526012602482015271466565206d757374206265203c3d2033352560701b6044820152606401610b43565b600f829055601081905561197081836130e9565b6013555050565b61197f611c84565b61199181670de0b6b3a76400006131fa565b600b5550565b61199f611c84565b6001600160a01b03821660009081526015602052604090205481151560ff909116151503611a225760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b6064820152608401610b43565b6001600160a01b038216600081815260156020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b611a89611c84565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b611ab3611c84565b6001600160a01b03919091166000908152601760205260409020805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611b11611c84565b600980549115156101000261ff0019909216919091179055565b60188160038110611b3b57600080fd5b01546001600160a01b0316905081565b60095462010000900460ff16611b975760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08195b98589b1959607a1b6044820152606401610b43565b60095460405163807ab4f760e01b8152336004820152600160201b9091046001600160a01b03169063807ab4f7906024016020604051808303816000875af1158015611be7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0b91906130b6565b50565b611c16611c84565b6001600160a01b038116611c7b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b43565b611c0b8161246b565b6005546001600160a01b031633146112625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b43565b6001600160a01b038316611d405760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b43565b6001600160a01b038216611da15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b43565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611e0e8484611ade565b90506000198114611e765781811015611e695760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b43565b611e768484848403611cde565b50505050565b6001600160a01b038316611ea25760405162461bcd60e51b8152600401610b4390613211565b6001600160a01b038216611ec85760405162461bcd60e51b8152600401610b4390613256565b6001600160a01b03831660009081526015602052604090205460ff16158015611f0a57506001600160a01b03821660009081526015602052604090205460ff16155b8015611f19575060095460ff16155b8015611f3357506005546001600160a01b03848116911614155b15612105576009546301000000900460ff16611f865760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610b43565b6001600160a01b03821660009081526016602052604090205460ff1615611ffe57600d54811115611ff95760405162461bcd60e51b815260206004820152601f60248201527f596f752061726520657863656564696e67206d617853656c6c416d6f756e74006044820152606401610b43565b612071565b6001600160a01b03831660009081526016602052604090205460ff161561207157600c548111156120715760405162461bcd60e51b815260206004820152601e60248201527f596f752061726520657863656564696e67206d6178427579416d6f756e7400006044820152606401610b43565b6001600160a01b03821660009081526017602052604090205460ff1661210557600e546001600160a01b0383166000908152602081905260409020546120b790836130e9565b11156121055760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610b43565b8060000361211e576121198383600061266d565b505050565b30600090815260208190526040902054600b5481108015908190612145575060095460ff16155b80156121585750600954610100900460ff165b801561217c57506001600160a01b03841660009081526016602052604090205460ff165b80156121a157506001600160a01b03851660009081526015602052604090205460ff16155b80156121c657506001600160a01b03841660009081526015602052604090205460ff16155b156121f6576009805460ff19166001179055601454156121eb576121eb600b54612797565b6009805460ff191690555b6009546001600160a01b03861660009081526015602052604090205460ff9182161591168061223d57506001600160a01b03851660009081526015602052604090205460ff165b15612246575060005b6001600160a01b03851660009081526016602052604090205460ff1615801561228857506001600160a01b03861660009081526016602052604090205460ff16155b15612291575060005b8015612332576001600160a01b03851660009081526016602052604081205460ff16156122da576103e8601454866122c991906131fa565b6122d39190613125565b9050612319565b6001600160a01b03871660009081526016602052604090205460ff1615612319576103e86013548661230c91906131fa565b6123169190613125565b90505b61232381866130fc565b945061233087308361266d565b505b61233d86868661266d565b6009546001600160a01b03600160201b9091041663e30443bc87612376816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156123bc57600080fd5b505af19250505080156123cd575060015b506009546001600160a01b03600160201b9091041663e30443bc86612407816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561244d57600080fd5b505af192505050801561245e575060015b15610be557505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6124cf81670de0b6b3a76400006131fa565b600e5550565b6124e782670de0b6b3a76400006131fa565b600c556124fc81670de0b6b3a76400006131fa565b600d555050565b6001600160a01b03821660009081526016602052604090205481151560ff9091161515036125995760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610b43565b6001600160a01b0382166000908152601660205260409020805460ff191682158015919091179091556126315760095460405162241fbd60e51b8152600160201b9091046001600160a01b031690630483f7a0906125fe908590600190600401613048565b600060405180830381600087803b15801561261857600080fd5b505af115801561262c573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b0383166126935760405162461bcd60e51b8152600401610b4390613211565b6001600160a01b0382166126b95760405162461bcd60e51b8152600401610b4390613256565b6001600160a01b038316600090815260208190526040902054818110156127315760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b43565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611e76565b30600090815260208190526040902054818115806127b3575080155b156127bd57505050565b6127c881600f6131fa565b8211156127dd576127da600f826131fa565b90505b60145460115447916000916127f290856131fa565b6127fc9190613125565b905061280781612910565b600061281383476130fc565b905080156128c057600a546040516000916001600160a01b03169083908381818185875af1925050503d8060008114612868576040519150601f19603f3d011682016040523d82523d6000602084013e61286d565b606091505b50509050806128be5760405162461bcd60e51b815260206004820181905260248201527f4661696c656420746f2073656e642045544820746f206465762077616c6c65746044820152606401610b43565b505b6000601454601254866128d391906131fa565b6128dd9190613125565b905060006128e961116e565b60028111156128fa576128fa612f74565b90506129068183612a34565b5050505050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061294557612945613299565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561299e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129c291906132af565b816001815181106129d5576129d5613299565b6001600160a01b0392831660209182029290920101526006546129fb9130911684611cde565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790610bb7908590600090869030904290600401613310565b47612a3e82612910565b6000612a4a82476130fc565b9050600060188560ff1660038110612a6457612a64613299565b01546001600160a01b031690508115612a8157612a818282612cd8565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612ac8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612aec919061309d565b9050808015612ccf5760095460405163a9059cbb60e01b81526001600160a01b03600160201b909204821660048201526024810183905260009185169063a9059cbb906044016020604051808303816000875af1158015612b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b7591906130b6565b90508015612906578760ff16600003612c005760095460405163032a6e5f60e01b8152600481018490526000602482018190526044820152600160201b9091046001600160a01b03169063032a6e5f906064015b600060405180830381600087803b158015612be357600080fd5b505af1158015612bf7573d6000803e3d6000fd5b50505050612906565b8760ff16600103612c505760095460405163032a6e5f60e01b8152600060048201819052602482018590526044820152600160201b9091046001600160a01b03169063032a6e5f90606401612bc9565b8760ff166002036129065760095460405163032a6e5f60e01b8152600060048201819052602482015260448101849052600160201b9091046001600160a01b03169063032a6e5f90606401600060405180830381600087803b158015612cb557600080fd5b505af1158015612cc9573d6000803e3d6000fd5b50505050505b50505050505050565b6040805160028082526060820183526000926020830190803683375050600654604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015612d42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d6691906132af565b81600081518110612d7957612d79613299565b60200260200101906001600160a01b031690816001600160a01b0316815250508181600181518110612dad57612dad613299565b6001600160a01b03928316602091820292909201015260065460405163b6f9de9560e01b815291169063b6f9de95908590612df39060009086903090429060040161334c565b6000604051808303818588803b158015612e0c57600080fd5b505af1158015612906573d6000803e3d6000fd5b600060208284031215612e3257600080fd5b5035919050565b6001600160a01b0381168114611c0b57600080fd5b8015158114611c0b57600080fd5b60008060408385031215612e6f57600080fd5b8235612e7a81612e39565b91506020830135612e8a81612e4e565b809150509250929050565b600060208083528351808285015260005b81811015612ec257858101830151858201604001528201612ea6565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215612ef657600080fd5b8235612f0181612e39565b946020939093013593505050565b600060208284031215612f2157600080fd5b8135612f2c81612e39565b9392505050565b600080600060608486031215612f4857600080fd5b8335612f5381612e39565b92506020840135612f6381612e39565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612fac57634e487b7160e01b600052602160045260246000fd5b91905290565b600060208284031215612fc457600080fd5b8135612f2c81612e4e565b60008060408385031215612fe257600080fd5b50508035926020909101359150565b6000806040838503121561300457600080fd5b823561300f81612e39565b91506020830135612e8a81612e39565b6020808252600f908201526e1b9bdd0819195d881858d8dbdd5b9d608a1b604082015260600190565b6001600160a01b039290921682521515602082015260400190565b600181811c9082168061307757607f821691505b60208210810361309757634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156130af57600080fd5b5051919050565b6000602082840312156130c857600080fd5b8151612f2c81612e4e565b634e487b7160e01b600052601160045260246000fd5b80820180821115610cd357610cd36130d3565b81810381811115610cd357610cd36130d3565b634e487b7160e01b600052601260045260246000fd5b6000826131345761313461310f565b500490565b6000826131485761314861310f565b500690565b6000806000806000806000806000806101408b8d03121561316d57600080fd5b8a5161317881612e39565b809a505060208b0151985060408b0151975060608b0151965060808b0151955060a08b0151945060c08b0151935060e08b015192506101008b015191506101208b015190509295989b9194979a5092959850565b6000806000606084860312156131e157600080fd5b8351925060208401519150604084015190509250925092565b8082028115828204841417610cd357610cd36130d3565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156132c157600080fd5b8151612f2c81612e39565b600081518084526020808501945080840160005b838110156133055781516001600160a01b0316875295820195908201906001016132e0565b509495945050505050565b85815284602082015260a06040820152600061332f60a08301866132cc565b6001600160a01b0394909416606083015250608001529392505050565b84815260806020820152600061336560808301866132cc565b6001600160a01b0394909416604083015250606001529291505056fea26469706673582212202567cb2c34c3328428a157911e49918801042592075e0c08b2e1f5025549ccbb64736f6c63430008130033
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.