ERC-20
Overview
Max Total Supply
10,000,000 AYP
Holders
136
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000000000708582 AYPValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AutoYieldProtocol
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.10; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "./DividendTracker.sol"; import "./AutoYieldFarming.sol"; import "./interfaces/IStaking.sol"; contract AutoYieldProtocol is ERC20, Ownable { IUniswapRouter public router; address public pair; address public projectDevelopmentWallet; DividendTracker public dividendTracker; AutoYieldFarming public autoYieldFarming; bool private swapping; bool public claimEnabled; bool public tradingEnabled; uint256 public swapTokensAtAmount; uint256 public antiBotAmount; uint256 public antiBotEndBlock; struct Taxes { uint256 projectDevelopment; uint256 holder; uint256 farming; } Taxes public buyTaxes = Taxes(1, 1, 0); Taxes public sellTaxes = Taxes(1, 1, 3); uint256 public totalBuyTax = 2; uint256 public totalSellTax = 5; mapping(address => bool) public isExcludedFromFees; mapping(address => bool) public automatedMarketMakerPairs; mapping(address => mapping(uint256 => bool)) public isTransferred; event SendDividends(uint256 tokensSwapped, uint256 amount); event ExcludeFromFees(address indexed account, bool isExcluded); event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); constructor( address _projectDevelopmentWallet, address _routerAddress ) ERC20("Auto Yield Protocol", "AYP") { dividendTracker = new DividendTracker(); setProjectDevelopmentWallet(_projectDevelopmentWallet); IUniswapRouter _router = IUniswapRouter(_routerAddress); _approve(address(this), _routerAddress, type(uint256).max); address _pair = IFactory(_router.factory()).createPair( address(this), _router.WETH() ); router = _router; pair = _pair; setSwapTokensAtAmount(60_000); AutoYieldFarming _autoYieldFarming = new AutoYieldFarming( "AYP-ETH rLP", "AYP-ETH rLP", 150 days, uint128(231481481481481000), _pair, address(this), _projectDevelopmentWallet ); autoYieldFarming = _autoYieldFarming; antiBotAmount = 280_000 * (10 ** 18); IERC20(_pair).approve(address(_autoYieldFarming), type(uint256).max); _setAutomatedMarketMakerPair(_pair, true); dividendTracker.updateLP_Token(_pair); dividendTracker.excludeFromDividends(address(dividendTracker), true); dividendTracker.excludeFromDividends(address(_autoYieldFarming), true); dividendTracker.excludeFromDividends(address(this), true); dividendTracker.excludeFromDividends(owner(), true); dividendTracker.excludeFromDividends(address(0xdead), true); dividendTracker.excludeFromDividends(address(_router), true); excludeFromFees(owner(), true); excludeFromFees(_projectDevelopmentWallet, true); excludeFromFees(address(this), true); excludeFromFees(address(_autoYieldFarming), true); _mint(owner(), 7_000_000 * (10 ** 18)); // 70% _mint(address(_autoYieldFarming), 3_000_000 * (10 ** 18)); // 30% } receive() external payable {} function updateDividendTracker(address newAddress) public onlyOwner { DividendTracker newDividendTracker = DividendTracker( payable(newAddress) ); newDividendTracker.excludeFromDividends( address(newDividendTracker), true ); newDividendTracker.excludeFromDividends(address(this), true); newDividendTracker.excludeFromDividends(owner(), true); newDividendTracker.excludeFromDividends(address(router), true); dividendTracker = newDividendTracker; } /// @notice Manual claim the dividends function claim() external { require(claimEnabled, "Claim not enabled"); dividendTracker.processAccount(payable(msg.sender)); } function setSwapTokensAtAmount(uint256 amount) public onlyOwner { swapTokensAtAmount = amount * 10 ** 18; } /// @notice Withdraw tokens sent by mistake. /// @param tokenAddress The address of the token to withdraw function rescueERC20Tokens(address tokenAddress) external onlyOwner { IERC20(tokenAddress).transfer( owner(), IERC20(tokenAddress).balanceOf(address(this)) ); } function forceSend() external onlyOwner { uint256 ETHbalance = address(this).balance; (bool success, ) = payable(projectDevelopmentWallet).call{ value: ETHbalance }(""); require(success); } function trackerRescueERC20Tokens(address tokenAddress) external { require(msg.sender == projectDevelopmentWallet, "Only Admin"); dividendTracker.trackerRescueERC20Tokens(msg.sender, tokenAddress); } function trackerRescueETH() external { require(msg.sender == projectDevelopmentWallet, "Only Admin"); dividendTracker.trackerRescueETH(msg.sender); } function updateRouter(address newRouter) external onlyOwner { router = IUniswapRouter(newRouter); } function excludeFromFees(address account, bool excluded) public onlyOwner { require( isExcludedFromFees[account] != excluded, "Account is already the value of 'excluded'" ); isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); } function excludeFromDividends( address account, bool value ) public onlyOwner { dividendTracker.excludeFromDividends(account, value); } function setProjectDevelopmentWallet(address newWallet) public onlyOwner { projectDevelopmentWallet = newWallet; } function activateTrading() external onlyOwner { require(!tradingEnabled, "Trading already enabled"); tradingEnabled = true; claimEnabled = true; autoYieldFarming.startEpoch(); antiBotEndBlock = block.number + 2; } function setClaimEnabled(bool state) external onlyOwner { claimEnabled = state; } function setLP_Token(address _lpToken) external onlyOwner { dividendTracker.updateLP_Token(_lpToken); } 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) { return dividendTracker.totalDividendsDistributed(); } function withdrawableDividendOf( address account ) public view returns (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) { 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) { require(tradingEnabled, "Trading not active"); } if (amount == 0) { super._transfer(from, to, 0); return; } if (tx.origin == from || tx.origin == to) { require(!isTransferred[tx.origin][block.number], "Bot!"); isTransferred[tx.origin][block.number] = true; } uint256 contractTokenBalance = balanceOf(address(this)); bool canSwap = contractTokenBalance >= swapTokensAtAmount; if ( canSwap && !swapping && automatedMarketMakerPairs[to] && !isExcludedFromFees[from] && !isExcludedFromFees[to] ) { swapping = true; swapAndLiquify(swapTokensAtAmount); swapping = false; } bool takeFee = !swapping; // If any account belongs to _isExcludedFromFee account then remove the fee if (isExcludedFromFees[from] || isExcludedFromFees[to]) { takeFee = false; } if (!automatedMarketMakerPairs[to] && !automatedMarketMakerPairs[from]) takeFee = false; if (takeFee) { uint256 feeAmt; uint256 farming; bool isSell; if (automatedMarketMakerPairs[to]) { feeAmt = (amount * totalSellTax) / 100; farming = (feeAmt * sellTaxes.farming) / totalSellTax; isSell = true; } else if (automatedMarketMakerPairs[from]) { feeAmt = (amount * totalBuyTax) / 100; } if ( antiBotEndBlock > block.number && amount > antiBotAmount && to != address(this) && automatedMarketMakerPairs[from] ) { feeAmt = (amount * 80) / 100; } amount = amount - feeAmt; super._transfer(from, address(this), feeAmt); if (isSell && !swapping) { swapping = true; swapAndFarm(farming, from); swapping = false; } } 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 toSwapForHolder = (tokens * buyTaxes.holder) / totalBuyTax; uint256 toSwapForProjectDevelopment = tokens - toSwapForHolder; swapTokensForETH(toSwapForHolder / 2); uint256 currentbalance = address(this).balance; if (currentbalance > 0) { addLiquidity(toSwapForHolder / 2, currentbalance); } swapTokensForETH(toSwapForProjectDevelopment); uint256 projectDevelopmentAmt = address(this).balance; if (projectDevelopmentAmt > 0) { payable(projectDevelopmentWallet).transfer(projectDevelopmentAmt); } uint256 lpBalance = IERC20(pair).balanceOf(address(this)); //Send LP to dividends uint256 dividends = lpBalance; if (dividends > 0) { bool success = IERC20(pair).transfer( address(dividendTracker), dividends ); if (success) { dividendTracker.distributeLPDividends(dividends); emit SendDividends(tokens, dividends); } } } function swapAndFarm(uint256 tokens, address swaper) private { swapTokensForETH(tokens / 2); uint256 currentbalance = address(this).balance; if (currentbalance > 0) { addLiquidity(tokens / 2, currentbalance); } uint256 lpBalance = IERC20(pair).balanceOf(address(this)); autoYieldFarming.farm(lpBalance, swaper); } function manualLiquidityDistribution(uint256 amount) public onlyOwner { bool success = IERC20(pair).transferFrom( msg.sender, address(dividendTracker), amount ); if (success) { dividendTracker.distributeLPDividends(amount); } } function swapTokensForETH(uint256 tokenAmount) private { address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); // Make the swap router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // Accept any amount of ETH path, address(this), block.timestamp ); } function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // Add the liquidity router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // Slippage is unavoidable 0, // Slippage is unavoidable address(this), block.timestamp ); } }
// 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 v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// 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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import {DistributionManager} from "./DistributionManager.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; contract AutoYieldFarming is DistributionManager, ERC20 { /* ╔══════════════════════════════╗ ║ VARIABLES ║ ╚══════════════════════════════╝ */ address public owner; IERC20 public rewardToken; IERC20 public farmToken; uint256 constant EPOCH_DURATION = 30 days; uint256 constant WITHDRAW_DURATION = 1 days; uint256 public startTime; uint256 mockTime; uint256 paddingTime; uint128 emissionPerSecond; mapping(address => uint256) public farmerRewardsToClaim; mapping(address => uint256) public userClaimed; /* ╔══════════════════════════════╗ ║ MODIFIER ║ ╚══════════════════════════════╝ */ modifier onlyOwner() { require(msg.sender == owner, "Not owner"); _; } /* ╔══════════════════════════════╗ ║ EVENTS ║ ╚══════════════════════════════╝ */ event Farm(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event RewardsAccrued(address indexed user, uint256 amount); event RewardsClaimed(address indexed user, uint256 amount); /* ╔══════════════════════════════╗ ║ INITIALIZE ║ ╚══════════════════════════════╝ */ constructor( string memory _name, string memory _symbol, uint256 _distributionDuration, uint128 _emissionPerSecond, address _farmToken, address _rewardToken, address _owner ) ERC20(_name, _symbol) { require(address(_farmToken) != address(0), "INVALID ADDRESS"); require(address(_rewardToken) != address(0), "INVALID ADDRESS"); owner = _owner; rewardToken = IERC20(_rewardToken); farmToken = IERC20(_farmToken); distributionEnd = block.timestamp + _distributionDuration; emissionPerSecond = _emissionPerSecond; } /* ╔══════════════════════════════╗ ║ ADMIN FUNCTIONS ║ ╚══════════════════════════════╝ */ function setOwner(address _owner) external onlyOwner { require(_owner != address(0), "INVALID ADDRESS"); owner = _owner; } function setRewardToken(IERC20 _rewardToken) external onlyOwner { require(address(_rewardToken) != address(0), "INVALID ADDRESS"); rewardToken = _rewardToken; } function setFarmToken(IERC20 _farmToken) external onlyOwner { require(address(_farmToken) != address(0), "INVALID ADDRESS"); farmToken = _farmToken; } function increaseDistribution( uint256 distributionDuration ) external onlyOwner { distributionEnd = distributionEnd + distributionDuration; } function configureAsset( uint128 _InputEmissionPerSecond ) external onlyOwner { AssetConfigInput memory assetConfigInput = AssetConfigInput({ emissionPerSecond: _InputEmissionPerSecond, totalStaked: totalSupply() }); _configureAsset(assetConfigInput); } function transferAllRewardToken( address _tokenAddress, address _receiver ) external onlyOwner { rewardToken.transfer( _receiver, IERC20(_tokenAddress).balanceOf(address(this)) ); } function rescueERC20Tokens(address tokenAddress) external onlyOwner { IERC20(tokenAddress).transfer( msg.sender, IERC20(tokenAddress).balanceOf(address(this)) ); } function startEpoch() external { require(msg.sender == address(rewardToken), "Only reward token"); startTime = block.timestamp - WITHDRAW_DURATION; paddingTime = EPOCH_DURATION - (startTime % EPOCH_DURATION); mockTime = (startTime + paddingTime) / EPOCH_DURATION; AssetConfigInput memory assetConfigInput = AssetConfigInput({ emissionPerSecond: emissionPerSecond, totalStaked: totalSupply() }); _configureAsset(assetConfigInput); } /* ╔══════════════════════════════╗ ║ EXTERNAL FUNCTIONS ║ ╚══════════════════════════════╝ */ /** * @dev Withdraws farmed tokens, and stop earning rewards * @param _amount Amount to withdraw **/ function farm(uint256 _amount, address _receiver) external { require(_amount != 0, "INVALID_ZERO_AMOUNT"); uint256 balanceOfUser = balanceOf(_receiver); uint256 accruedRewards = _updateUserAssetInternal( _receiver, balanceOfUser, totalSupply() ); if (accruedRewards != 0) { emit RewardsAccrued(_receiver, accruedRewards); farmerRewardsToClaim[_receiver] = farmerRewardsToClaim[_receiver] + accruedRewards; } _mint(_receiver, _amount); farmToken.transferFrom(msg.sender, address(this), _amount); emit Farm(_receiver, _amount); } /** * @dev Withdraws farmed tokens, and stop earning rewards * @param _amount Amount to withdraw **/ function withdraw(uint256 _amount) external { require(_amount != 0, "INVALID_ZERO_AMOUNT"); require(isWithdrawable(block.timestamp), "NOT TIME YET"); address withdrawer = _msgSender(); uint256 balanceOfWithdrawer = balanceOf(withdrawer); uint256 amountToWithdraw = (_amount > balanceOfWithdrawer) ? balanceOfWithdrawer : _amount; _updateCurrentUnclaimedRewards(withdrawer, balanceOfWithdrawer, true); _burn(withdrawer, amountToWithdraw); farmToken.transfer(withdrawer, amountToWithdraw); emit Withdraw(msg.sender, amountToWithdraw); } /** * @dev Claims an `amount` of `REWARD_TOKEN` to the msg.sender **/ function claimRewards() external { address claimer = _msgSender(); uint256 amountToClaim = _updateCurrentUnclaimedRewards( claimer, balanceOf(claimer), false ); farmerRewardsToClaim[claimer] = 0; rewardToken.transfer(claimer, amountToClaim); userClaimed[msg.sender] += amountToClaim; emit RewardsClaimed(claimer, amountToClaim); } /** * @dev Return the total rewards pending to claim by an farmer * @param _farmer The farmer address * @return The rewards */ function getTotalRewardsBalance( address _farmer ) external view returns (uint256) { UserStakeInput memory userFarmInput = UserStakeInput({ stakedByUser: balanceOf(_farmer), totalStaked: totalSupply() }); return farmerRewardsToClaim[_farmer] + _getUnclaimedRewards(_farmer, userFarmInput); } function isWithdrawable(uint256 _timestamp) public view returns (bool) { if ( ((_timestamp + paddingTime) / WITHDRAW_DURATION - (mockTime * EPOCH_DURATION) / WITHDRAW_DURATION) % (EPOCH_DURATION / WITHDRAW_DURATION) < 1 ) return (true); else return (false); } function timeLeftUntilWithdrawable() external view returns (uint256) { uint256 time = startTime; while (time < block.timestamp) { time = time + EPOCH_DURATION; } return time; } /* ╔══════════════════════════════╗ ║ INTERNAL FUNCTIONS ║ ╚══════════════════════════════╝ */ /** * @dev Updates the user state related with his accrued rewards * @param _user Address of the user * @param _userBalance The current balance of the user * @param _updateStorage Boolean flag used to update or not the farmerRewardsToClaim of the user * @return The unclaimed rewards that were added to the total accrued **/ function _updateCurrentUnclaimedRewards( address _user, uint256 _userBalance, bool _updateStorage ) internal returns (uint256) { uint256 accruedRewards = _updateUserAssetInternal( _user, _userBalance, totalSupply() ); uint256 unclaimedRewards = farmerRewardsToClaim[_user] + accruedRewards; if (accruedRewards != 0) { if (_updateStorage) { farmerRewardsToClaim[_user] = unclaimedRewards; } emit RewardsAccrued(_user, accruedRewards); } return unclaimedRewards; } /** * @dev Internal ERC20 _transfer of the tokenized farmed tokens * @param from Address to transfer from * @param to Address to transfer to * @param amount Amount to transfer **/ function _transfer( address from, address to, uint256 amount ) internal override { uint256 balanceOfFrom = balanceOf(from); // Sender _updateCurrentUnclaimedRewards(from, balanceOfFrom, true); // Recipient if (from != to) { uint256 balanceOfTo = balanceOf(to); _updateCurrentUnclaimedRewards(to, balanceOfTo, true); } super._transfer(from, to, amount); } }
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; contract DistributionManager { struct AssetData { uint128 emissionPerSecond; uint128 lastUpdateTimestamp; uint256 index; mapping(address => uint256) users; } struct AssetConfigInput { uint128 emissionPerSecond; uint256 totalStaked; } struct UserStakeInput { uint256 stakedByUser; uint256 totalStaked; } /* ╔══════════════════════════════╗ ║ VARIABLES ║ ╚══════════════════════════════╝ */ uint256 public distributionEnd; uint8 public constant PRECISION = 18; AssetData public assetData; /* ╔══════════════════════════════╗ ║ EVENTS ║ ╚══════════════════════════════╝ */ event AssetConfigUpdated(uint128 emission); event AssetIndexUpdated(uint256 index); event UserIndexUpdated(address indexed user, uint256 index); /* ╔══════════════════════════════╗ ║ EXTERNAL FUNCTIONS ║ ╚══════════════════════════════╝ */ /** * @param _user Address of the user * @return The user index **/ function getUserAssetData(address _user) external view returns (uint256) { return assetData.users[_user]; } /* ╔══════════════════════════════╗ ║ INTERNAL FUNCTIONS ║ ╚══════════════════════════════╝ */ /** * @dev Configures the distribution of rewards for a asset * @param _assetConfigInput The configurations to apply **/ function _configureAsset( AssetConfigInput memory _assetConfigInput ) internal { _updateAssetStateInternal(assetData, _assetConfigInput.totalStaked); assetData.emissionPerSecond = _assetConfigInput.emissionPerSecond; emit AssetConfigUpdated(_assetConfigInput.emissionPerSecond); } /** * @dev Updates the state of distribution, mainly rewards index and timestamp * @param _assetConfig Storage pointer to the distribution's config * @param _totalStaked Current total of staked asset for a distribution * @return The new distribution index **/ function _updateAssetStateInternal( AssetData storage _assetConfig, uint256 _totalStaked ) internal returns (uint256) { uint256 oldIndex = _assetConfig.index; uint128 lastUpdateTimestamp = _assetConfig.lastUpdateTimestamp; if (block.timestamp == lastUpdateTimestamp) { return oldIndex; } uint256 newIndex = _getAssetIndex( oldIndex, _assetConfig.emissionPerSecond, lastUpdateTimestamp, _totalStaked ); if (newIndex != oldIndex) { _assetConfig.index = newIndex; emit AssetIndexUpdated(newIndex); } _assetConfig.lastUpdateTimestamp = uint128(block.timestamp); return newIndex; } /** * @dev Updates the state of an user in a distribution * @param _user The user's address * @param _stakedByUser Amount of tokens staked by the user in the distribution at the moment * @param _totalStaked Total tokens staked in the distribution * @return The accrued rewards for the user until the moment **/ function _updateUserAssetInternal( address _user, uint256 _stakedByUser, uint256 _totalStaked ) internal returns (uint256) { uint256 userIndex = assetData.users[_user]; uint256 accruedRewards = 0; uint256 newIndex = _updateAssetStateInternal(assetData, _totalStaked); if (userIndex != newIndex) { if (_stakedByUser != 0) { accruedRewards = _getRewards( _stakedByUser, newIndex, userIndex ); } assetData.users[_user] = newIndex; emit UserIndexUpdated(_user, newIndex); } return accruedRewards; } /** * @dev Used by "frontend" stake contracts to update the data of an user when claiming rewards from there * @param _user The address of the user * @param _stakes Struct of the user data * @return The accrued rewards for the user until the moment **/ function _claimRewards( address _user, UserStakeInput memory _stakes ) internal returns (uint256) { uint256 accruedRewards = 0; accruedRewards = accruedRewards + _updateUserAssetInternal( _user, _stakes.stakedByUser, _stakes.totalStaked ); return accruedRewards; } /** * @dev Return the accrued rewards for an user * @param _user The address of the user * @param _stakes Struct of the user data * @return The accrued rewards for the user until the moment **/ function _getUnclaimedRewards( address _user, UserStakeInput memory _stakes ) internal view returns (uint256) { uint256 accruedRewards = 0; AssetData storage assetConfig = assetData; uint256 assetIndex = _getAssetIndex( assetConfig.index, assetConfig.emissionPerSecond, assetConfig.lastUpdateTimestamp, _stakes.totalStaked ); accruedRewards = accruedRewards + _getRewards( _stakes.stakedByUser, assetIndex, assetConfig.users[_user] ); return accruedRewards; } /** * @dev Internal function for the calculation of user's rewards on a distribution * @param _principalUserBalance Amount staked by the user on a distribution * @param _reserveIndex Current index of the distribution * @param _userIndex Index stored for the user, representation his staking moment * @return The rewards **/ function _getRewards( uint256 _principalUserBalance, uint256 _reserveIndex, uint256 _userIndex ) internal pure returns (uint256) { return (_principalUserBalance * (_reserveIndex - _userIndex)) / (10 ** uint256(PRECISION)); } /** * @dev Calculates the next value of an specific distribution index, with validations * @param currentIndex Current index of the distribution * @param emissionPerSecond Representing the total rewards distributed per second per asset unit, on the distribution * @param lastUpdateTimestamp Last moment this distribution was updated * @param totalBalance of tokens considered for the distribution * @return The new index. **/ function _getAssetIndex( uint256 currentIndex, uint256 emissionPerSecond, uint256 lastUpdateTimestamp, uint256 totalBalance ) internal view returns (uint256) { if ( emissionPerSecond == 0 || totalBalance == 0 || lastUpdateTimestamp == block.timestamp || lastUpdateTimestamp >= distributionEnd ) { return currentIndex; } uint256 currentTimestamp = block.timestamp > distributionEnd ? distributionEnd : block.timestamp; uint256 timeDelta = currentTimestamp - lastUpdateTimestamp; return (emissionPerSecond * (timeDelta) * (10 ** uint256(PRECISION))) / (totalBalance) + (currentIndex); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "./SafeMath.sol"; import "./interfaces/IDividendPayingToken.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, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable returns (uint[] memory amounts); function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } contract DividendPayingToken is ERC20, DividendPayingTokenInterface, Ownable { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; address public LP_Token; // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small. // For more discussion about choosing the value of `magnitude`, // see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728 uint256 internal constant magnitude = 2 ** 128; uint256 internal magnifiedDividendPerShare; // 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 magnifiedDividendCorrections; mapping(address => uint256) internal withdrawnDividends; uint256 public totalDividendsDistributed; uint256 public totalDividendsWithdrawn; constructor( string memory _name, string memory _symbol ) ERC20(_name, _symbol) {} function distributeLPDividends(uint256 amount) public onlyOwner { require(totalSupply() > 0); if (amount > 0) { magnifiedDividendPerShare = magnifiedDividendPerShare.add( (amount).mul(magnitude) / totalSupply() ); emit DividendsDistributed(msg.sender, amount); totalDividendsDistributed = totalDividendsDistributed.add(amount); } } /// @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(payable(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 payable user ) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(user); if (_withdrawableDividend > 0) { withdrawnDividends[user] = withdrawnDividends[user].add( _withdrawableDividend ); totalDividendsWithdrawn += _withdrawableDividend; emit DividendWithdrawn(user, _withdrawableDividend); bool success = IERC20(LP_Token).transfer( user, _withdrawableDividend ); if (!success) { withdrawnDividends[user] = withdrawnDividends[user].sub( _withdrawableDividend ); totalDividendsWithdrawn -= _withdrawableDividend; return 0; } return _withdrawableDividend; } return 0; } /// @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) { 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) { return accumulativeDividendOf(_owner).sub(withdrawnDividends[_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) { return withdrawnDividends[_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) { return magnifiedDividendPerShare .mul(balanceOf(_owner)) .toInt256Safe() .add(magnifiedDividendCorrections[_owner]) .toUint256Safe() / magnitude; } /// @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 { int256 _magCorrection = magnifiedDividendPerShare .mul(value) .toInt256Safe(); magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from] .add(_magCorrection); magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub( _magCorrection ); } /// @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); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[ account ].sub((magnifiedDividendPerShare.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); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[ account ].add((magnifiedDividendPerShare.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.10; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "./DividendPayingToken.sol"; contract DividendTracker is Ownable, DividendPayingToken { struct AccountInfo { address account; uint256 withdrawableDividends; uint256 totalDividends; uint256 lastClaimTime; } mapping(address => bool) public excludedFromDividends; mapping(address => uint256) public lastClaimTimes; event ExcludeFromDividends(address indexed account, bool value); event Claim(address indexed account, uint256 amount); constructor() DividendPayingToken("Dividend_Tracker", "Dividend_Tracker") {} function trackerRescueERC20Tokens( address recipient, address tokenAddress ) external onlyOwner { IERC20(tokenAddress).transfer( recipient, IERC20(tokenAddress).balanceOf(address(this)) ); } function trackerRescueETH(address recipient) external onlyOwner { payable(recipient).transfer(address(this).balance); } function updateLP_Token(address _lpToken) external onlyOwner { LP_Token = _lpToken; } function _transfer(address, address, uint256) internal pure override { require(false, "Dividend_Tracker: Transfer not 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) { AccountInfo memory info; info.account = account; info.withdrawableDividends = withdrawableDividendOf(account); info.totalDividends = accumulativeDividendOf(account); info.lastClaimTime = lastClaimTimes[account]; return ( info.account, info.withdrawableDividends, info.totalDividends, info.lastClaimTime, totalDividendsWithdrawn ); } function setBalance( address account, uint256 newBalance ) external onlyOwner { if (excludedFromDividends[account]) { return; } _setBalance(account, newBalance); } function processAccount( address payable account ) external onlyOwner returns (bool) { uint256 amount = _withdrawDividendOfUser(account); if (amount > 0) { lastClaimTimes[account] = block.timestamp; emit Claim(account, amount); return true; } return false; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; 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); /// @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); /// @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); /// @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); /// @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); }
pragma solidity ^0.8.0; interface IStaking { function updateReward(uint256 _amount) external; function init(address _rewardToken, address _stakingToken) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; 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 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_projectDevelopmentWallet","type":"address"},{"internalType":"address","name":"_routerAddress","type":"address"}],"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":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendDividends","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":[],"name":"activateTrading","outputs":[],"stateMutability":"nonpayable","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":[],"name":"antiBotAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"antiBotEndBlock","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":[],"name":"autoYieldFarming","outputs":[{"internalType":"contract AutoYieldFarming","name":"","type":"address"}],"stateMutability":"view","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":"buyTaxes","outputs":[{"internalType":"uint256","name":"projectDevelopment","type":"uint256"},{"internalType":"uint256","name":"holder","type":"uint256"},{"internalType":"uint256","name":"farming","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","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":[{"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":[{"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":[],"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"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividendsDistributed","outputs":[{"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":"","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"isTransferred","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"manualLiquidityDistribution","outputs":[],"stateMutability":"nonpayable","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":"projectDevelopmentWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"rescueERC20Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTaxes","outputs":[{"internalType":"uint256","name":"projectDevelopment","type":"uint256"},{"internalType":"uint256","name":"holder","type":"uint256"},{"internalType":"uint256","name":"farming","type":"uint256"}],"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":"bool","name":"state","type":"bool"}],"name":"setClaimEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lpToken","type":"address"}],"name":"setLP_Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"setProjectDevelopmentWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","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":[],"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":"trackerRescueERC20Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trackerRescueETH","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"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6001608081905260a0819052600060c0819052600e829055600f82905560105561014060405260e081905261010081905260036101208190526011829055601291909155601355600260145560056015553480156200005d57600080fd5b50604051620077b2380380620077b2833981016040819052620000809162000d0e565b6040518060400160405280601381526020017f4175746f205969656c642050726f746f636f6c000000000000000000000000008152506040518060400160405280600381526020016204159560ec1b8152508160039081620000e3919062000dea565b506004620000f2828262000dea565b5050506200010f620001096200077660201b60201c565b6200077a565b6040516200011d9062000cd5565b604051809103906000f0801580156200013a573d6000803e3d6000fd5b50600980546001600160a01b0319166001600160a01b03929092169190911790556200016682620007cc565b80620001763082600019620007f8565b6000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001b7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001dd919062000eb6565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200022b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000251919062000eb6565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200029f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002c5919062000eb6565b600680546001600160a01b038086166001600160a01b031992831617909255600780549284169290911691909117905590506200030461ea6062000924565b600062c5c100670336632e53c8eb28833088604051620003249062000ce3565b6200033495949392919062000edb565b604051809103906000f08015801562000351573d6000803e3d6000fd5b50600a80546001600160a01b0319166001600160a01b03838116918217909255693b4ad496106b7f000000600c5560405163095ea7b360e01b81526004810191909152600019602482015291925083169063095ea7b3906044016020604051808303816000875af1158015620003cb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003f1919062000f6f565b50620003ff82600162000948565b60095460405163225b5ecf60e11b81526001600160a01b038481166004830152909116906344b6bd9e90602401600060405180830381600087803b1580156200044757600080fd5b505af11580156200045c573d6000803e3d6000fd5b505060095460405162241fbd60e51b81526001600160a01b0390911660048201819052600160248301529250630483f7a09150604401600060405180830381600087803b158015620004ad57600080fd5b505af1158015620004c2573d6000803e3d6000fd5b505060095460405162241fbd60e51b81526001600160a01b038581166004830152600160248301529091169250630483f7a09150604401600060405180830381600087803b1580156200051457600080fd5b505af115801562000529573d6000803e3d6000fd5b505060095460405162241fbd60e51b8152306004820152600160248201526001600160a01b039091169250630483f7a09150604401600060405180830381600087803b1580156200057957600080fd5b505af11580156200058e573d6000803e3d6000fd5b50506009546001600160a01b03169150630483f7a09050620005b86005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b1580156200060157600080fd5b505af115801562000616573d6000803e3d6000fd5b505060095460405162241fbd60e51b815261dead6004820152600160248201526001600160a01b039091169250630483f7a09150604401600060405180830381600087803b1580156200066857600080fd5b505af11580156200067d573d6000803e3d6000fd5b505060095460405162241fbd60e51b81526001600160a01b038781166004830152600160248301529091169250630483f7a09150604401600060405180830381600087803b158015620006cf57600080fd5b505af1158015620006e4573d6000803e3d6000fd5b5050505062000704620006fc62000ab260201b60201c565b600162000ac1565b6200071185600162000ac1565b6200071e30600162000ac1565b6200072b81600162000ac1565b62000754620007426005546001600160a01b031690565b6a05ca4ec2a79a7f6700000062000baf565b6200076b816a027b46536c66c8e300000062000baf565b505050505062000fdf565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620007d662000c72565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316620008605760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b038216620008c35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000857565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6200092e62000c72565b6200094281670de0b6b3a764000062000fa9565b600b5550565b6001600160a01b03821660009081526017602052604090205481151560ff909116151503620009e05760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c75650000000000000000606482015260840162000857565b6001600160a01b0382166000908152601760205260409020805460ff1916821580159190911790915562000a765760095460405162241fbd60e51b81526001600160a01b0384811660048301526001602483015290911690630483f7a090604401600060405180830381600087803b15801562000a5c57600080fd5b505af115801562000a71573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6005546001600160a01b031690565b62000acb62000c72565b6001600160a01b03821660009081526016602052604090205481151560ff90911615150362000b505760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b606482015260840162000857565b6001600160a01b038216600081815260166020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b03821662000c075760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000857565b806002600082825462000c1b919062000fc9565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6005546001600160a01b0316331462000cce5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000857565b565b505050565b611a4a8062003a8483390190565b6122e480620054ce83390190565b80516001600160a01b038116811462000d0957600080fd5b919050565b6000806040838503121562000d2257600080fd5b62000d2d8362000cf1565b915062000d3d6020840162000cf1565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000d7157607f821691505b60208210810362000d9257634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000cd057600081815260208120601f850160051c8101602086101562000dc15750805b601f850160051c820191505b8181101562000de25782815560010162000dcd565b505050505050565b81516001600160401b0381111562000e065762000e0662000d46565b62000e1e8162000e17845462000d5c565b8462000d98565b602080601f83116001811462000e56576000841562000e3d5750858301515b600019600386901b1c1916600185901b17855562000de2565b600085815260208120601f198616915b8281101562000e875788860151825594840194600190910190840162000e66565b508582101562000ea65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121562000ec957600080fd5b62000ed48262000cf1565b9392505050565b60e08152600062000f0760e08301600b81526a04159502d45544820724c560ac1b602082015260400190565b828103602084015262000f3281600b81526a04159502d45544820724c560ac1b602082015260400190565b604084019890985250506001600160801b039490941660608501526001600160a01b03928316608085015290821660a08401521660c09091015290565b60006020828403121562000f8257600080fd5b8151801515811462000ed457600080fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000fc35762000fc362000f93565b92915050565b8082018082111562000fc35762000fc362000f93565b612a958062000fef6000396000f3fe6080604052600436106102e85760003560e01c8063862d0a0311610190578063a9059cbb116100dc578063c851cc3211610095578063f1c54eb41161006f578063f1c54eb414610926578063f2fde38b14610946578063f66895a314610966578063f887ea401461098557600080fd5b8063c851cc32146108d0578063dd62ed3e146108f0578063e2f456051461091057600080fd5b8063a9059cbb14610800578063afa4f3b214610820578063b62496f514610840578063bbfa733114610870578063c024666814610890578063c3e0f5cf146108b057600080fd5b806392929a09116101495780639a7a23d6116101235780639a7a23d614610780578063a457c2d7146107a0578063a8aa1b31146107c0578063a8b9d240146107e057600080fd5b806392929a091461072b57806395d89b411461074b5780639a50a9e61461076057600080fd5b8063862d0a0314610668578063864701a51461068857806388bdd9be146106c257806389371745146106e25780638da5cb5b146106f757806391a83fea1461071557600080fd5b806330bb4cff1161024f5780634fbee1931161020857806370a08231116101e257806370a0823114610590578063715018a6146105c65780637b510fe8146105db5780637ffe9a921461062d57600080fd5b80634fbee193146105205780636843cd84146105505780636c3470a71461057057600080fd5b806330bb4cff14610483578063313ce5671461049857806339509351146104b457806346469afb146104d45780634ada218b146104ea5780634e71d92d1461050b57600080fd5b806318160ddd116102a157806318160ddd146103bf5780631bff7898146103d457806323b872dd146103ea5780632866ed211461040a5780632c1f52161461042b5780632e1ab9041461046357600080fd5b80630483f7a0146102f457806306fdde0314610316578063095ea7b3146103415780630bd05b691461037157806312b77e8a1461038657806317574ce01461039b57600080fd5b366102ef57005b600080fd5b34801561030057600080fd5b5061031461030f36600461265b565b6109a5565b005b34801561032257600080fd5b5061032b610a18565b6040516103389190612694565b60405180910390f35b34801561034d57600080fd5b5061036161035c3660046126e2565b610aaa565b6040519015158152602001610338565b34801561037d57600080fd5b50610314610ac4565b34801561039257600080fd5b50610314610baf565b3480156103a757600080fd5b506103b1600c5481565b604051908152602001610338565b3480156103cb57600080fd5b506002546103b1565b3480156103e057600080fd5b506103b160155481565b3480156103f657600080fd5b5061036161040536600461270e565b610c1f565b34801561041657600080fd5b50600a5461036190600160a81b900460ff1681565b34801561043757600080fd5b5060095461044b906001600160a01b031681565b6040516001600160a01b039091168152602001610338565b34801561046f57600080fd5b5061031461047e36600461274f565b610c43565b34801561048f57600080fd5b506103b1610cae565b3480156104a457600080fd5b5060405160128152602001610338565b3480156104c057600080fd5b506103616104cf3660046126e2565b610d21565b3480156104e057600080fd5b506103b160145481565b3480156104f657600080fd5b50600a5461036190600160b01b900460ff1681565b34801561051757600080fd5b50610314610d43565b34801561052c57600080fd5b5061036161053b36600461274f565b60166020526000908152604090205460ff1681565b34801561055c57600080fd5b506103b161056b36600461274f565b610e01565b34801561057c57600080fd5b5061031461058b36600461274f565b610e71565b34801561059c57600080fd5b506103b16105ab36600461274f565b6001600160a01b031660009081526020819052604090205490565b3480156105d257600080fd5b50610314610ef0565b3480156105e757600080fd5b506105fb6105f636600461274f565b610f04565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610338565b34801561063957600080fd5b506103616106483660046126e2565b601860209081526000928352604080842090915290825290205460ff1681565b34801561067457600080fd5b50600a5461044b906001600160a01b031681565b34801561069457600080fd5b50600e54600f546010546106a792919083565b60408051938452602084019290925290820152606001610338565b3480156106ce57600080fd5b506103146106dd36600461274f565b610f8e565b3480156106ee57600080fd5b50610314611160565b34801561070357600080fd5b506005546001600160a01b031661044b565b34801561072157600080fd5b506103b1600d5481565b34801561073757600080fd5b50610314610746366004612773565b611206565b34801561075757600080fd5b5061032b61122c565b34801561076c57600080fd5b5061031461077b366004612790565b61123b565b34801561078c57600080fd5b5061031461079b36600461265b565b611300565b3480156107ac57600080fd5b506103616107bb3660046126e2565b611312565b3480156107cc57600080fd5b5060075461044b906001600160a01b031681565b3480156107ec57600080fd5b506103b16107fb36600461274f565b61138d565b34801561080c57600080fd5b5061036161081b3660046126e2565b6113c0565b34801561082c57600080fd5b5061031461083b366004612790565b6113ce565b34801561084c57600080fd5b5061036161085b36600461274f565b60176020526000908152604090205460ff1681565b34801561087c57600080fd5b5060085461044b906001600160a01b031681565b34801561089c57600080fd5b506103146108ab36600461265b565b6113ee565b3480156108bc57600080fd5b506103146108cb36600461274f565b6114d8565b3480156108dc57600080fd5b506103146108eb36600461274f565b6115d8565b3480156108fc57600080fd5b506103b161090b3660046127a9565b611602565b34801561091c57600080fd5b506103b1600b5481565b34801561093257600080fd5b5061031461094136600461274f565b61162d565b34801561095257600080fd5b5061031461096136600461274f565b611657565b34801561097257600080fd5b506011546012546013546106a792919083565b34801561099157600080fd5b5060065461044b906001600160a01b031681565b6109ad6116cd565b60095460405162241fbd60e51b81526001600160a01b038481166004830152831515602483015290911690630483f7a0906044015b600060405180830381600087803b1580156109fc57600080fd5b505af1158015610a10573d6000803e3d6000fd5b505050505050565b606060038054610a27906127d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610a53906127d7565b8015610aa05780601f10610a7557610100808354040283529160200191610aa0565b820191906000526020600020905b815481529060010190602001808311610a8357829003601f168201915b5050505050905090565b600033610ab8818585611727565b60019150505b92915050565b610acc6116cd565b600a54600160b01b900460ff1615610b2b5760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c656400000000000000000060448201526064015b60405180910390fd5b600a805461010160a81b61ffff60a81b198216179091556040805163a2c8b17760e01b815290516001600160a01b039092169163a2c8b1779160048082019260009290919082900301818387803b158015610b8557600080fd5b505af1158015610b99573d6000803e3d6000fd5b50505050436002610baa9190612827565b600d55565b610bb76116cd565b60085460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610c08576040519150601f19603f3d011682016040523d82523d6000602084013e610c0d565b606091505b5050905080610c1b57600080fd5b5050565b600033610c2d85828561184b565b610c388585856118bf565b506001949350505050565b610c4b6116cd565b60095460405163225b5ecf60e11b81526001600160a01b038381166004830152909116906344b6bd9e906024015b600060405180830381600087803b158015610c9357600080fd5b505af1158015610ca7573d6000803e3d6000fd5b5050505050565b600954604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa158015610cf8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1c919061283a565b905090565b600033610ab8818585610d348383611602565b610d3e9190612827565b611727565b600a54600160a81b900460ff16610d905760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08195b98589b1959607a1b6044820152606401610b22565b60095460405163807ab4f760e01b81523360048201526001600160a01b039091169063807ab4f7906024016020604051808303816000875af1158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe9190612853565b50565b6009546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa158015610e4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abe919061283a565b6008546001600160a01b03163314610eb85760405162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b6044820152606401610b22565b600954604051631c18216760e21b81523360048201526001600160a01b03838116602483015290911690637060859c90604401610c79565b610ef86116cd565b610f026000611e7e565b565b60095460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839291169063fbcbc0f19060240160a060405180830381865afa158015610f58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7c9190612870565b939a9299509097509550909350915050565b610f966116cd565b60405162241fbd60e51b81526001600160a01b03821660048201819052600160248301528291630483f7a090604401600060405180830381600087803b158015610fdf57600080fd5b505af1158015610ff3573d6000803e3d6000fd5b505060405162241fbd60e51b8152306004820152600160248201526001600160a01b0384169250630483f7a09150604401600060405180830381600087803b15801561103e57600080fd5b505af1158015611052573d6000803e3d6000fd5b50505050806001600160a01b0316630483f7a06110776005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b1580156110bf57600080fd5b505af11580156110d3573d6000803e3d6000fd5b505060065460405162241fbd60e51b81526001600160a01b039182166004820152600160248201529084169250630483f7a09150604401600060405180830381600087803b15801561112457600080fd5b505af1158015611138573d6000803e3d6000fd5b5050600980546001600160a01b0319166001600160a01b039490941693909317909255505050565b6008546001600160a01b031633146111a75760405162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b6044820152606401610b22565b60095460405163bfd9a75960e01b81523360048201526001600160a01b039091169063bfd9a75990602401600060405180830381600087803b1580156111ec57600080fd5b505af1158015611200573d6000803e3d6000fd5b50505050565b61120e6116cd565b600a8054911515600160a81b0260ff60a81b19909216919091179055565b606060048054610a27906127d7565b6112436116cd565b6007546009546040516323b872dd60e01b81523360048201526001600160a01b0391821660248201526044810184905260009291909116906323b872dd906064016020604051808303816000875af11580156112a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c79190612853565b90508015610c1b57600954604051633b79ab6760e21b8152600481018490526001600160a01b039091169063ede6ad9c906024016109e2565b6113086116cd565b610c1b8282611ed0565b600033816113208286611602565b9050838110156113805760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b22565b610c388286868403611727565b6009546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401610e30565b600033610ab88185856118bf565b6113d66116cd565b6113e881670de0b6b3a76400006128b9565b600b5550565b6113f66116cd565b6001600160a01b03821660009081526016602052604090205481151560ff9091161515036114795760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b6064820152608401610b22565b6001600160a01b038216600081815260166020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6114e06116cd565b806001600160a01b031663a9059cbb6115016005546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611545573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611569919061283a565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156115b4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1b9190612853565b6115e06116cd565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6116356116cd565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b61165f6116cd565b6001600160a01b0381166116c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b22565b610dfe81611e7e565b6005546001600160a01b03163314610f025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b22565b6001600160a01b0383166117895760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b22565b6001600160a01b0382166117ea5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b22565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006118578484611602565b9050600019811461120057818110156118b25760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b22565b6112008484848403611727565b6001600160a01b0383166118e55760405162461bcd60e51b8152600401610b22906128d0565b6001600160a01b03821661190b5760405162461bcd60e51b8152600401610b2290612915565b6001600160a01b03831660009081526016602052604090205460ff1615801561194d57506001600160a01b03821660009081526016602052604090205460ff16155b80156119635750600a54600160a01b900460ff16155b156119b657600a54600160b01b900460ff166119b65760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610b22565b806000036119cf576119ca83836000612035565b505050565b326001600160a01b03841614806119ee5750326001600160a01b038316145b15611a6d5732600090815260186020908152604080832043845290915290205460ff1615611a475760405162461bcd60e51b8152600401610b2290602080825260049082015263426f742160e01b604082015260600190565b3260009081526018602090815260408083204384529091529020805460ff191660011790555b30600090815260208190526040902054600b5481108015908190611a9b5750600a54600160a01b900460ff16155b8015611abf57506001600160a01b03841660009081526017602052604090205460ff165b8015611ae457506001600160a01b03851660009081526016602052604090205460ff16155b8015611b0957506001600160a01b03841660009081526016602052604090205460ff16155b15611b3b57600a805460ff60a01b1916600160a01b179055600b54611b2d9061215f565b600a805460ff60a01b191690555b600a546001600160a01b03861660009081526016602052604090205460ff600160a01b909204821615911680611b8957506001600160a01b03851660009081526016602052604090205460ff165b15611b92575060005b6001600160a01b03851660009081526017602052604090205460ff16158015611bd457506001600160a01b03861660009081526017602052604090205460ff16155b15611bdd575060005b8015611d55576001600160a01b0385166000908152601760205260408120548190819060ff1615611c4b57606460155488611c1891906128b9565b611c229190612958565b60155460135491945090611c3690856128b9565b611c409190612958565b915060019050611c89565b6001600160a01b03891660009081526017602052604090205460ff1615611c8957606460145488611c7c91906128b9565b611c869190612958565b92505b43600d54118015611c9b5750600c5487115b8015611cb057506001600160a01b0388163014155b8015611cd457506001600160a01b03891660009081526017602052604090205460ff165b15611cf3576064611ce68860506128b9565b611cf09190612958565b92505b611cfd838861297a565b9650611d0a893085612035565b808015611d215750600a54600160a01b900460ff16155b15611d5157600a805460ff60a01b1916600160a01b179055611d43828a6123a7565b600a805460ff60a01b191690555b5050505b611d60868686612035565b6009546001600160a01b031663e30443bc87611d91816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611dd757600080fd5b505af1925050508015611de8575060015b506009546001600160a01b031663e30443bc86611e1a816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611e6057600080fd5b505af1925050508015611e71575060015b15610a1057505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526017602052604090205481151560ff909116151503611f665760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610b22565b6001600160a01b0382166000908152601760205260409020805460ff19168215801591909117909155611ff95760095460405162241fbd60e51b81526001600160a01b0384811660048301526001602483015290911690630483f7a090604401600060405180830381600087803b158015611fe057600080fd5b505af1158015611ff4573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b03831661205b5760405162461bcd60e51b8152600401610b22906128d0565b6001600160a01b0382166120815760405162461bcd60e51b8152600401610b2290612915565b6001600160a01b038316600090815260208190526040902054818110156120f95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b22565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611200565b601454600f546000919061217390846128b9565b61217d9190612958565b9050600061218b828461297a565b90506121a061219b600284612958565b61249b565b4780156121bb576121bb6121b5600285612958565b826125a6565b6121c48261249b565b478015612207576008546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612205573d6000803e3d6000fd5b505b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612250573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612274919061283a565b905080801561239e5760075460095460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052600092919091169063a9059cbb906044016020604051808303816000875af11580156122d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122fb9190612853565b9050801561239c57600954604051633b79ab6760e21b8152600481018490526001600160a01b039091169063ede6ad9c90602401600060405180830381600087803b15801561234957600080fd5b505af115801561235d573d6000803e3d6000fd5b5050604080518b8152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15b505b50505050505050565b6123b561219b600284612958565b4780156123ca576123ca6121b5600285612958565b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612413573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612437919061283a565b600a5460405163a21c0fa360e01b8152600481018390526001600160a01b03868116602483015292935091169063a21c0fa390604401600060405180830381600087803b15801561248757600080fd5b505af115801561239c573d6000803e3d6000fd5b60408051600280825260608201835260009260208301908036833701905050905030816000815181106124d0576124d061298d565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612529573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061254d91906129a3565b816001815181106125605761256061298d565b6001600160a01b03928316602091820292909201015260065460405163791ac94760e01b815291169063791ac947906109e29085906000908690309042906004016129c0565b60065460405163f305d71960e01b8152306004820181905260248201859052600060448301819052606483015260848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af1158015612613573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610ca79190612a31565b6001600160a01b0381168114610dfe57600080fd5b8015158114610dfe57600080fd5b6000806040838503121561266e57600080fd5b823561267981612638565b915060208301356126898161264d565b809150509250929050565b600060208083528351808285015260005b818110156126c1578581018301518582016040015282016126a5565b506000604082860101526040601f19601f8301168501019250505092915050565b600080604083850312156126f557600080fd5b823561270081612638565b946020939093013593505050565b60008060006060848603121561272357600080fd5b833561272e81612638565b9250602084013561273e81612638565b929592945050506040919091013590565b60006020828403121561276157600080fd5b813561276c81612638565b9392505050565b60006020828403121561278557600080fd5b813561276c8161264d565b6000602082840312156127a257600080fd5b5035919050565b600080604083850312156127bc57600080fd5b82356127c781612638565b9150602083013561268981612638565b600181811c908216806127eb57607f821691505b60208210810361280b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610abe57610abe612811565b60006020828403121561284c57600080fd5b5051919050565b60006020828403121561286557600080fd5b815161276c8161264d565b600080600080600060a0868803121561288857600080fd5b855161289381612638565b602087015160408801516060890151608090990151929a91995097965090945092505050565b8082028115828204841417610abe57610abe612811565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60008261297557634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610abe57610abe612811565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156129b557600080fd5b815161276c81612638565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612a105784516001600160a01b0316835293830193918301916001016129eb565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612a4657600080fd5b835192506020840151915060408401519050925092509256fea26469706673582212201e7aaca8e8bd20831dbfe3fcd96300d216babf1c56925e11cfd0c366557e028064736f6c6343000815003360806040523480156200001157600080fd5b5060408051808201825260108082526f2234bb34b232b7322faa3930b1b5b2b960811b602080840182905284518086019095529184529083015290818160036200005c83826200018b565b5060046200006b82826200018b565b50505062000088620000826200009060201b60201c565b62000094565b505062000257565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200011157607f821691505b6020821081036200013257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200018657600081815260208120601f850160051c81016020861015620001615750805b601f850160051c820191505b8181101562000182578281556001016200016d565b5050505b505050565b81516001600160401b03811115620001a757620001a7620000e6565b620001bf81620001b88454620000fc565b8462000138565b602080601f831160018114620001f75760008415620001de5750858301515b600019600386901b1c1916600185901b17855562000182565b600085815260208120601f198616915b82811015620002285788860151825594840194600190910190840162000207565b5085821015620002475787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6117e380620002676000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063807ab4f71161010f578063a9059cbb116100a2578063e30443bc11610071578063e30443bc1461044b578063ede6ad9c1461045e578063f2fde38b14610471578063fbcbc0f11461048457600080fd5b8063a9059cbb146103e9578063aafd847a146103fc578063bfd9a75914610425578063dd62ed3e1461043857600080fd5b806395d89b41116100de57806395d89b41146103b25780639e1e0661146103ba578063a457c2d7146103c3578063a8b9d240146103d657600080fd5b8063807ab4f71461037257806385a6b3ae146103855780638da5cb5b1461038e57806391b89fba1461039f57600080fd5b8063313ce567116101875780636a474002116101565780636a474002146103265780637060859c1461032e57806370a0823114610341578063715018a61461036a57600080fd5b8063313ce567146102ce57806339509351146102dd57806344b6bd9e146102f05780634e7b827f1461030357600080fd5b806318160ddd116101c357806318160ddd14610276578063226cfa3d1461028857806323b872dd146102a857806327ce0147146102bb57600080fd5b80630483f7a0146101f557806306fdde031461020a578063095ea7b3146102285780631162c4b61461024b575b600080fd5b610208610203366004611528565b6104c9565b005b6102126105ad565b60405161021f9190611561565b60405180910390f35b61023b6102363660046115af565b61063f565b604051901515815260200161021f565b60065461025e906001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b6002545b60405190815260200161021f565b61027a6102963660046115db565b600d6020526000908152604090205481565b61023b6102b63660046115f8565b610659565b61027a6102c93660046115db565b61067d565b6040516012815260200161021f565b61023b6102eb3660046115af565b6106d9565b6102086102fe3660046115db565b6106fb565b61023b6103113660046115db565b600c6020526000908152604090205460ff1681565b610208610725565b61020861033c366004611639565b610731565b61027a61034f3660046115db565b6001600160a01b031660009081526020819052604090205490565b61020861081f565b61023b6103803660046115db565b610833565b61027a600a5481565b6005546001600160a01b031661025e565b61027a6103ad3660046115db565b6108b7565b6102126108c2565b61027a600b5481565b61023b6103d13660046115af565b6108d1565b61027a6103e43660046115db565b610951565b61023b6103f73660046115af565b61097d565b61027a61040a3660046115db565b6001600160a01b031660009081526009602052604090205490565b6102086104333660046115db565b61098b565b61027a610446366004611639565b6109cc565b6102086104593660046115af565b6109f7565b61020861046c366004611667565b610a29565b61020861047f3660046115db565b610ac4565b6104976104923660046115db565b610b3a565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a00161021f565b6104d1610be2565b6001600160a01b0382166000908152600c602052604090205481151560ff9091161515036104fe57600080fd5b6001600160a01b0382166000908152600c60205260409020805460ff191682151590811790915560010361053c57610537826000610c3c565b610564565b6105648261055f846001600160a01b031660009081526020819052604090205490565b610c3c565b816001600160a01b03167fa3c7c11b2e12c4144b09a7813f3393ba646392788638998c97be8da908cf04be826040516105a1911515815260200190565b60405180910390a25050565b6060600380546105bc90611680565b80601f01602080910402602001604051908101604052809291908181526020018280546105e890611680565b80156106355780601f1061060a57610100808354040283529160200191610635565b820191906000526020600020905b81548152906001019060200180831161061857829003601f168201915b5050505050905090565b60003361064d818585610c9b565b60019150505b92915050565b600033610667858285610dbf565b610672858585610e33565b506001949350505050565b6001600160a01b03811660009081526008602090815260408083205491839052822054600754600160801b926106cf926106ca926106c4916106bf9190610e8a565b610f13565b90610f23565b610f61565b61065391906116d0565b60003361064d8185856106ec83836109cc565b6106f691906116f2565b610c9b565b610703610be2565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b61072e33610f74565b50565b610739610be2565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90849083906370a0823190602401602060405180830381865afa158015610787573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ab9190611705565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156107f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081a919061171e565b505050565b610827610be2565b6108316000611102565b565b600061083d610be2565b600061084883610f74565b905080156108ae576001600160a01b0383166000818152600d602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49061089d9084815260200190565b60405180910390a250600192915050565b50600092915050565b600061065382610951565b6060600480546105bc90611680565b600033816108df82866109cc565b9050838110156109445760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6106728286868403610c9b565b6001600160a01b038116600090815260096020526040812054610653906109778461067d565b90611154565b60003361064d818585610e33565b610993610be2565b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156109c8573d6000803e3d6000fd5b5050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6109ff610be2565b6001600160a01b0382166000908152600c602052604090205460ff166109c8576109c88282610c3c565b610a31610be2565b6000610a3c60025490565b11610a4657600080fd5b801561072e57610a79610a5860025490565b610a6683600160801b610e8a565b610a7091906116d0565b60075490611196565b60075560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600a54610abe9082611196565b600a5550565b610acc610be2565b6001600160a01b038116610b315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161093b565b61072e81611102565b6000806000806000610b76604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6001600160a01b0387168152610b8b87610951565b6020820152610b998761067d565b60408281019182526001600160a01b03989098166000908152600d60209081529890205460608301819052825198909201519051600b5498999198909750919550909350915050565b6005546001600160a01b031633146108315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093b565b6001600160a01b03821660009081526020819052604090205480821115610c7b576000610c698383611154565b9050610c7584826111f5565b50505050565b8082101561081a576000610c8f8284611154565b9050610c758482611259565b6001600160a01b038316610cfd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161093b565b6001600160a01b038216610d5e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161093b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610dcb84846109cc565b90506000198114610c755781811015610e265760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161093b565b610c758484848403610c9b565b60405162461bcd60e51b815260206004820152602660248201527f4469766964656e645f547261636b65723a205472616e73666572206e6f7420616044820152651b1b1bddd95960d21b606482015260840161093b565b600082600003610e9c57506000610653565b6000610ea8838561173b565b905082610eb585836116d0565b14610f0c5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b606482015260840161093b565b9392505050565b6000818181121561065357600080fd5b600080610f308385611752565b905060008312158015610f435750838112155b80610f585750600083128015610f5857508381125b610f0c57600080fd5b600080821215610f7057600080fd5b5090565b600080610f8083610951565b905080156108ae576001600160a01b038316600090815260096020526040902054610fab9082611196565b6001600160a01b038416600090815260096020526040812091909155600b8054839290610fd99084906116f2565b90915550506040518181526001600160a01b038416907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a260065460405163a9059cbb60e01b81526001600160a01b03858116600483015260248201849052600092169063a9059cbb906044016020604051808303816000875af1158015611070573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611094919061171e565b9050806110fb576001600160a01b0384166000908152600960205260409020546110be9083611154565b6001600160a01b038516600090815260096020526040812091909155600b80548492906110ec90849061177a565b90915550600095945050505050565b5092915050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610f0c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061129d565b6000806111a383856116f2565b905083811015610f0c5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161093b565b6111ff82826112d7565b61123961121a6106bf83600754610e8a90919063ffffffff16565b6001600160a01b03841660009081526008602052604090205490611396565b6001600160a01b0390921660009081526008602052604090209190915550565b61126382826113d3565b61123961127e6106bf83600754610e8a90919063ffffffff16565b6001600160a01b03841660009081526008602052604090205490610f23565b600081848411156112c15760405162461bcd60e51b815260040161093b9190611561565b5060006112ce848661177a565b95945050505050565b6001600160a01b03821661132d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161093b565b806002600082825461133f91906116f2565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000806113a3838561178d565b9050600083121580156113b65750838113155b80610f585750600083128015610f585750838113610f0c57600080fd5b6001600160a01b0382166114335760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161093b565b6001600160a01b038216600090815260208190526040902054818110156114a75760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161093b565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b038116811461072e57600080fd5b801515811461072e57600080fd5b6000806040838503121561153b57600080fd5b823561154681611505565b915060208301356115568161151a565b809150509250929050565b600060208083528351808285015260005b8181101561158e57858101830151858201604001528201611572565b506000604082860101526040601f19601f8301168501019250505092915050565b600080604083850312156115c257600080fd5b82356115cd81611505565b946020939093013593505050565b6000602082840312156115ed57600080fd5b8135610f0c81611505565b60008060006060848603121561160d57600080fd5b833561161881611505565b9250602084013561162881611505565b929592945050506040919091013590565b6000806040838503121561164c57600080fd5b823561165781611505565b9150602083013561155681611505565b60006020828403121561167957600080fd5b5035919050565b600181811c9082168061169457607f821691505b6020821081036116b457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000826116ed57634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610653576106536116ba565b60006020828403121561171757600080fd5b5051919050565b60006020828403121561173057600080fd5b8151610f0c8161151a565b8082028115828204841417610653576106536116ba565b8082018281126000831280158216821582161715611772576117726116ba565b505092915050565b81810381811115610653576106536116ba565b81810360008312801583831316838312821617156110fb576110fb6116ba56fea26469706673582212208bdbede304b4a058f5d673f97ec1636a1952537278ef8ebb0f7567c1d99a5c9364736f6c6343000815003360806040523480156200001157600080fd5b50604051620022e4380380620022e483398101604081905262000034916200024a565b86866007620000448382620003a6565b506008620000538282620003a6565b5050506001600160a01b038316620000a45760405162461bcd60e51b815260206004820152600f60248201526e494e56414c4944204144445245535360881b60448201526064015b60405180910390fd5b6001600160a01b038216620000ee5760405162461bcd60e51b815260206004820152600f60248201526e494e56414c4944204144445245535360881b60448201526064016200009b565b600980546001600160a01b038084166001600160a01b031992831617909255600a8054858416908316179055600b80549286169290911691909117905562000137854262000472565b6000555050600f80546001600160801b0319166001600160801b039390931692909217909155506200049a92505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200019057600080fd5b81516001600160401b0380821115620001ad57620001ad62000168565b604051601f8301601f19908116603f01168101908282118183101715620001d857620001d862000168565b81604052838152602092508683858801011115620001f557600080fd5b600091505b83821015620002195785820183015181830184015290820190620001fa565b600093810190920192909252949350505050565b80516001600160a01b03811681146200024557600080fd5b919050565b600080600080600080600060e0888a0312156200026657600080fd5b87516001600160401b03808211156200027e57600080fd5b6200028c8b838c016200017e565b985060208a0151915080821115620002a357600080fd5b50620002b28a828b016200017e565b60408a015160608b0151919850965090506001600160801b0381168114620002d957600080fd5b9350620002e9608089016200022d565b9250620002f960a089016200022d565b91506200030960c089016200022d565b905092959891949750929550565b600181811c908216806200032c57607f821691505b6020821081036200034d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003a157600081815260208120601f850160051c810160208610156200037c5750805b601f850160051c820191505b818110156200039d5782815560010162000388565b5050505b505050565b81516001600160401b03811115620003c257620003c262000168565b620003da81620003d3845462000317565b8462000353565b602080601f831160018114620004125760008415620003f95750858301515b600019600386901b1c1916600185901b1785556200039d565b600085815260208120601f198616915b82811015620004435788860151825594840194600190910190840162000422565b5085821015620004625787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200049457634e487b7160e01b600052601160045260246000fd5b92915050565b611e3a80620004aa6000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80638374e06c11610125578063a521c461116100ad578063c3e0f5cf1161007c578063c3e0f5cf14610495578063dd62ed3e146104a8578063e89fab89146104bb578063efa90b54146104e4578063f7c618c1146104ed57600080fd5b8063a521c46114610454578063a9059cbb14610467578063aaf5eb681461047a578063c2442f931461048257600080fd5b80638dbefee2116100f45780638dbefee21461040b57806395d89b411461041e578063a21c0fa314610426578063a2c8b17714610439578063a457c2d71461044157600080fd5b80638374e06c146103645780638aee8127146103845780638d449358146103975780638da5cb5b146103e057600080fd5b806336ad946a116101a8578063454322e211610177578063454322e21461031a57806370a082311461032d57806375673bd51461034057806378e97925146103485780637c43d7371461035157600080fd5b806336ad946a146102cc578063372500ab146102df57806339509351146102e75780633b7fcdca146102fa57600080fd5b806318160ddd116101e457806318160ddd1461027f57806323b872dd146102915780632e1a7d4d146102a4578063313ce567146102b757600080fd5b8063052090c91461021657806306fdde031461022b578063095ea7b31461024957806313af40351461026c575b600080fd5b610229610224366004611a4a565b610500565b005b61023361061e565b6040516102409190611a83565b60405180910390f35b61025c610257366004611ad1565b6106b0565b6040519015158152602001610240565b61022961027a366004611afd565b6106ca565b6006545b604051908152602001610240565b61025c61029f366004611b1a565b61073c565b6102296102b2366004611b5b565b610760565b60125b60405160ff9091168152602001610240565b6102296102da366004611afd565b6108d6565b610229610948565b61025c6102f5366004611ad1565b610a54565b610283610308366004611afd565b60116020526000908152604090205481565b610229610328366004611b74565b610a76565b61028361033b366004611afd565b610ad6565b610283610af1565b610283600c5481565b61022961035f366004611b5b565b610b19565b610283610372366004611afd565b60106020526000908152604090205481565b610229610392366004611afd565b610b57565b6001546002546103ba916001600160801b0380821692600160801b909204169083565b604080516001600160801b03948516815293909216602084015290820152606001610240565b6009546103f3906001600160a01b031681565b6040516001600160a01b039091168152602001610240565b610283610419366004611afd565b610bc9565b610233610c26565b610229610434366004611b9d565b610c35565b610229610de7565b61025c61044f366004611ad1565b610ebd565b61025c610462366004611b5b565b610f38565b61025c610475366004611ad1565b610fb1565b6102ba601281565b600b546103f3906001600160a01b031681565b6102296104a3366004611afd565b610fbf565b6102836104b6366004611a4a565b6110ca565b6102836104c9366004611afd565b6001600160a01b031660009081526003602052604090205490565b61028360005481565b600a546103f3906001600160a01b031681565b6009546001600160a01b031633146105335760405162461bcd60e51b815260040161052a90611bc2565b60405180910390fd5b600a546040516370a0823160e01b81523060048201526001600160a01b039182169163a9059cbb9184918616906370a0823190602401602060405180830381865afa158015610586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105aa9190611be5565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156105f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106199190611bfe565b505050565b60606007805461062d90611c20565b80601f016020809104026020016040519081016040528092919081815260200182805461065990611c20565b80156106a65780601f1061067b576101008083540402835291602001916106a6565b820191906000526020600020905b81548152906001019060200180831161068957829003601f168201915b5050505050905090565b6000336106be8185856110f5565b60019150505b92915050565b6009546001600160a01b031633146106f45760405162461bcd60e51b815260040161052a90611bc2565b6001600160a01b03811661071a5760405162461bcd60e51b815260040161052a90611c5a565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60003361074a858285611219565b610755858585611293565b506001949350505050565b806000036107a65760405162461bcd60e51b81526020600482015260136024820152721253959053125117d6915493d7d05353d55395606a1b604482015260640161052a565b6107af42610f38565b6107ea5760405162461bcd60e51b815260206004820152600c60248201526b1393d508151253514816515560a21b604482015260640161052a565b3360006107f682610ad6565b905060008184116108075783610809565b815b9050610817838360016112ed565b50610822838261139d565b600b5460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af1158015610875573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108999190611bfe565b5060405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a250505050565b6009546001600160a01b031633146109005760405162461bcd60e51b815260040161052a90611bc2565b6001600160a01b0381166109265760405162461bcd60e51b815260040161052a90611c5a565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b33600061095f8261095881610ad6565b60006112ed565b6001600160a01b0383811660008181526010602052604080822091909155600a54905163a9059cbb60e01b815260048101929092526024820184905292935091169063a9059cbb906044016020604051808303816000875af11580156109c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ed9190611bfe565b503360009081526011602052604081208054839290610a0d908490611c99565b90915550506040518181526001600160a01b038316907ffc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe9060200160405180910390a25050565b6000336106be818585610a6783836110ca565b610a719190611c99565b6110f5565b6009546001600160a01b03163314610aa05760405162461bcd60e51b815260040161052a90611bc2565b60006040518060400160405280836001600160801b03168152602001610ac560065490565b90529050610ad2816114d1565b5050565b6001600160a01b031660009081526004602052604090205490565b600c546000905b42811015610b1457610b0d62278d0082611c99565b9050610af8565b919050565b6009546001600160a01b03163314610b435760405162461bcd60e51b815260040161052a90611bc2565b80600054610b519190611c99565b60005550565b6009546001600160a01b03163314610b815760405162461bcd60e51b815260040161052a90611bc2565b6001600160a01b038116610ba75760405162461bcd60e51b815260040161052a90611c5a565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000806040518060400160405280610be085610ad6565b8152602001610bee60065490565b90529050610bfc8382611540565b6001600160a01b038416600090815260106020526040902054610c1f9190611c99565b9392505050565b60606008805461062d90611c20565b81600003610c7b5760405162461bcd60e51b81526020600482015260136024820152721253959053125117d6915493d7d05353d55395606a1b604482015260640161052a565b6000610c8682610ad6565b90506000610c9d8383610c9860065490565b6115b3565b90508015610d2657826001600160a01b03167f2468f9268c60ad90e2d49edb0032c8a001e733ae888b3ab8e982edf535be1a7682604051610ce091815260200190565b60405180910390a26001600160a01b038316600090815260106020526040902054610d0c908290611c99565b6001600160a01b0384166000908152601060205260409020555b610d308385611656565b600b546040516323b872dd60e01b8152336004820152306024820152604481018690526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610d87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dab9190611bfe565b50826001600160a01b03167f1b359373bd6268b2ceac132cf22673d4f046a13deb2e7980f81baabf1b4d72f7856040516108c891815260200190565b600a546001600160a01b03163314610e355760405162461bcd60e51b815260206004820152601160248201527027b7363c903932bbb0b932103a37b5b2b760791b604482015260640161052a565b610e426201518042611cac565b600c819055610e559062278d0090611cd5565b610e629062278d00611cac565b600e819055600c5462278d0091610e7891611c99565b610e829190611ce9565b600d5560408051808201909152600f546001600160801b0316815260009060208101610ead60065490565b90529050610eba816114d1565b50565b60003381610ecb82866110ca565b905083811015610f2b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161052a565b61075582868684036110f5565b60006001610f4c6201518062278d00611ce9565b6201518062278d00600d54610f619190611cfd565b610f6b9190611ce9565b62015180600e5486610f7d9190611c99565b610f879190611ce9565b610f919190611cac565b610f9b9190611cd5565b1015610fa957506001919050565b506000919050565b6000336106be818585611293565b6009546001600160a01b03163314610fe95760405162461bcd60e51b815260040161052a90611bc2565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015611037573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105b9190611be5565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156110a6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad29190611bfe565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b6001600160a01b0383166111575760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161052a565b6001600160a01b0382166111b85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161052a565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061122584846110ca565b9050600019811461128d57818110156112805760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161052a565b61128d84848484036110f5565b50505050565b600061129e84610ad6565b90506112ac848260016112ed565b50826001600160a01b0316846001600160a01b0316146112e25760006112d184610ad6565b90506112df848260016112ed565b50505b61128d848484611717565b6000806112fe8585610c9860065490565b6001600160a01b03861660009081526010602052604081205491925090611326908390611c99565b90508115611394578315611350576001600160a01b03861660009081526010602052604090208190555b856001600160a01b03167f2468f9268c60ad90e2d49edb0032c8a001e733ae888b3ab8e982edf535be1a768360405161138b91815260200190565b60405180910390a25b95945050505050565b6001600160a01b0382166113fd5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161052a565b6001600160a01b038216600090815260046020526040902054818110156114715760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161052a565b6001600160a01b03831660008181526004602090815260408083208686039055600680548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6114e0600182602001516118c2565b508051600180546fffffffffffffffffffffffffffffffff19166001600160801b0390921691821790556040519081527f7e850e9780a7f66f306ab6e4c393542a5706d7c36bf59a68fda24ed70dafac209060200160405180910390a150565b600254600180546020840151600093849392849261157492916001600160801b0380821692600160801b9092041690611972565b85516001600160a01b038816600090815260028501602052604090205491925061159f918390611a09565b6115a99084611c99565b9695505050505050565b6001600160a01b03831660009081526003602052604081205481806115d96001866118c2565b905080831461164c5785156115f6576115f3868285611a09565b91505b6001600160a01b03871660008181526003602052604090819020839055517f38a15cae276a4a86690cb8bb2b120738c1a8a0833504b115d723987005dfd0c7906116439084815260200190565b60405180910390a25b5095945050505050565b6001600160a01b0382166116ac5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161052a565b80600660008282546116be9190611c99565b90915550506001600160a01b0382166000818152600460209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b03831661177b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161052a565b6001600160a01b0382166117dd5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161052a565b6001600160a01b038316600090815260046020526040902054818110156118555760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161052a565b6001600160a01b0380851660008181526004602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906118b59086815260200190565b60405180910390a361128d565b6001820154825460009190600160801b90046001600160801b0316428190036118ed575090506106c4565b845460009061190c9084906001600160801b0390811690851688611972565b905082811461195057600186018190556040518181527f20fbad0453a50958226731d9de78991dd72662013d48a0f72647247be91875129060200160405180910390a15b85546001600160801b03428116600160801b0291161786559250505092915050565b600083158061197f575081155b8061198957504283145b8061199657506000548310155b156119a2575083611a01565b6000805442116119b257426119b6565b6000545b905060006119c48583611cac565b905086846119d46012600a611df8565b6119de848a611cfd565b6119e89190611cfd565b6119f29190611ce9565b6119fc9190611c99565b925050505b949350505050565b6000611a176012600a611df8565b611a218385611cac565b611a2b9086611cfd565b611a019190611ce9565b6001600160a01b0381168114610eba57600080fd5b60008060408385031215611a5d57600080fd5b8235611a6881611a35565b91506020830135611a7881611a35565b809150509250929050565b600060208083528351808285015260005b81811015611ab057858101830151858201604001528201611a94565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215611ae457600080fd5b8235611aef81611a35565b946020939093013593505050565b600060208284031215611b0f57600080fd5b8135610c1f81611a35565b600080600060608486031215611b2f57600080fd5b8335611b3a81611a35565b92506020840135611b4a81611a35565b929592945050506040919091013590565b600060208284031215611b6d57600080fd5b5035919050565b600060208284031215611b8657600080fd5b81356001600160801b0381168114610c1f57600080fd5b60008060408385031215611bb057600080fd5b823591506020830135611a7881611a35565b6020808252600990820152682737ba1037bbb732b960b91b604082015260600190565b600060208284031215611bf757600080fd5b5051919050565b600060208284031215611c1057600080fd5b81518015158114610c1f57600080fd5b600181811c90821680611c3457607f821691505b602082108103611c5457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e494e56414c4944204144445245535360881b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156106c4576106c4611c83565b818103818111156106c4576106c4611c83565b634e487b7160e01b600052601260045260246000fd5b600082611ce457611ce4611cbf565b500690565b600082611cf857611cf8611cbf565b500490565b80820281158282048414176106c4576106c4611c83565b600181815b80851115611d4f578160001904821115611d3557611d35611c83565b80851615611d4257918102915b93841c9390800290611d19565b509250929050565b600082611d66575060016106c4565b81611d73575060006106c4565b8160018114611d895760028114611d9357611daf565b60019150506106c4565b60ff841115611da457611da4611c83565b50506001821b6106c4565b5060208310610133831016604e8410600b8410161715611dd2575081810a6106c4565b611ddc8383611d14565b8060001904821115611df057611df0611c83565b029392505050565b6000610c1f8383611d5756fea264697066735822122023defd9ca5b6161b4f69f6a5e321822920d51d00d079ef315f7c505314ef343f64736f6c6343000815003300000000000000000000000092c1670432b9f722a1bdb7dae0b1bca705a8321b0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Deployed Bytecode
0x6080604052600436106102e85760003560e01c8063862d0a0311610190578063a9059cbb116100dc578063c851cc3211610095578063f1c54eb41161006f578063f1c54eb414610926578063f2fde38b14610946578063f66895a314610966578063f887ea401461098557600080fd5b8063c851cc32146108d0578063dd62ed3e146108f0578063e2f456051461091057600080fd5b8063a9059cbb14610800578063afa4f3b214610820578063b62496f514610840578063bbfa733114610870578063c024666814610890578063c3e0f5cf146108b057600080fd5b806392929a09116101495780639a7a23d6116101235780639a7a23d614610780578063a457c2d7146107a0578063a8aa1b31146107c0578063a8b9d240146107e057600080fd5b806392929a091461072b57806395d89b411461074b5780639a50a9e61461076057600080fd5b8063862d0a0314610668578063864701a51461068857806388bdd9be146106c257806389371745146106e25780638da5cb5b146106f757806391a83fea1461071557600080fd5b806330bb4cff1161024f5780634fbee1931161020857806370a08231116101e257806370a0823114610590578063715018a6146105c65780637b510fe8146105db5780637ffe9a921461062d57600080fd5b80634fbee193146105205780636843cd84146105505780636c3470a71461057057600080fd5b806330bb4cff14610483578063313ce5671461049857806339509351146104b457806346469afb146104d45780634ada218b146104ea5780634e71d92d1461050b57600080fd5b806318160ddd116102a157806318160ddd146103bf5780631bff7898146103d457806323b872dd146103ea5780632866ed211461040a5780632c1f52161461042b5780632e1ab9041461046357600080fd5b80630483f7a0146102f457806306fdde0314610316578063095ea7b3146103415780630bd05b691461037157806312b77e8a1461038657806317574ce01461039b57600080fd5b366102ef57005b600080fd5b34801561030057600080fd5b5061031461030f36600461265b565b6109a5565b005b34801561032257600080fd5b5061032b610a18565b6040516103389190612694565b60405180910390f35b34801561034d57600080fd5b5061036161035c3660046126e2565b610aaa565b6040519015158152602001610338565b34801561037d57600080fd5b50610314610ac4565b34801561039257600080fd5b50610314610baf565b3480156103a757600080fd5b506103b1600c5481565b604051908152602001610338565b3480156103cb57600080fd5b506002546103b1565b3480156103e057600080fd5b506103b160155481565b3480156103f657600080fd5b5061036161040536600461270e565b610c1f565b34801561041657600080fd5b50600a5461036190600160a81b900460ff1681565b34801561043757600080fd5b5060095461044b906001600160a01b031681565b6040516001600160a01b039091168152602001610338565b34801561046f57600080fd5b5061031461047e36600461274f565b610c43565b34801561048f57600080fd5b506103b1610cae565b3480156104a457600080fd5b5060405160128152602001610338565b3480156104c057600080fd5b506103616104cf3660046126e2565b610d21565b3480156104e057600080fd5b506103b160145481565b3480156104f657600080fd5b50600a5461036190600160b01b900460ff1681565b34801561051757600080fd5b50610314610d43565b34801561052c57600080fd5b5061036161053b36600461274f565b60166020526000908152604090205460ff1681565b34801561055c57600080fd5b506103b161056b36600461274f565b610e01565b34801561057c57600080fd5b5061031461058b36600461274f565b610e71565b34801561059c57600080fd5b506103b16105ab36600461274f565b6001600160a01b031660009081526020819052604090205490565b3480156105d257600080fd5b50610314610ef0565b3480156105e757600080fd5b506105fb6105f636600461274f565b610f04565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610338565b34801561063957600080fd5b506103616106483660046126e2565b601860209081526000928352604080842090915290825290205460ff1681565b34801561067457600080fd5b50600a5461044b906001600160a01b031681565b34801561069457600080fd5b50600e54600f546010546106a792919083565b60408051938452602084019290925290820152606001610338565b3480156106ce57600080fd5b506103146106dd36600461274f565b610f8e565b3480156106ee57600080fd5b50610314611160565b34801561070357600080fd5b506005546001600160a01b031661044b565b34801561072157600080fd5b506103b1600d5481565b34801561073757600080fd5b50610314610746366004612773565b611206565b34801561075757600080fd5b5061032b61122c565b34801561076c57600080fd5b5061031461077b366004612790565b61123b565b34801561078c57600080fd5b5061031461079b36600461265b565b611300565b3480156107ac57600080fd5b506103616107bb3660046126e2565b611312565b3480156107cc57600080fd5b5060075461044b906001600160a01b031681565b3480156107ec57600080fd5b506103b16107fb36600461274f565b61138d565b34801561080c57600080fd5b5061036161081b3660046126e2565b6113c0565b34801561082c57600080fd5b5061031461083b366004612790565b6113ce565b34801561084c57600080fd5b5061036161085b36600461274f565b60176020526000908152604090205460ff1681565b34801561087c57600080fd5b5060085461044b906001600160a01b031681565b34801561089c57600080fd5b506103146108ab36600461265b565b6113ee565b3480156108bc57600080fd5b506103146108cb36600461274f565b6114d8565b3480156108dc57600080fd5b506103146108eb36600461274f565b6115d8565b3480156108fc57600080fd5b506103b161090b3660046127a9565b611602565b34801561091c57600080fd5b506103b1600b5481565b34801561093257600080fd5b5061031461094136600461274f565b61162d565b34801561095257600080fd5b5061031461096136600461274f565b611657565b34801561097257600080fd5b506011546012546013546106a792919083565b34801561099157600080fd5b5060065461044b906001600160a01b031681565b6109ad6116cd565b60095460405162241fbd60e51b81526001600160a01b038481166004830152831515602483015290911690630483f7a0906044015b600060405180830381600087803b1580156109fc57600080fd5b505af1158015610a10573d6000803e3d6000fd5b505050505050565b606060038054610a27906127d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610a53906127d7565b8015610aa05780601f10610a7557610100808354040283529160200191610aa0565b820191906000526020600020905b815481529060010190602001808311610a8357829003601f168201915b5050505050905090565b600033610ab8818585611727565b60019150505b92915050565b610acc6116cd565b600a54600160b01b900460ff1615610b2b5760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c656400000000000000000060448201526064015b60405180910390fd5b600a805461010160a81b61ffff60a81b198216179091556040805163a2c8b17760e01b815290516001600160a01b039092169163a2c8b1779160048082019260009290919082900301818387803b158015610b8557600080fd5b505af1158015610b99573d6000803e3d6000fd5b50505050436002610baa9190612827565b600d55565b610bb76116cd565b60085460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610c08576040519150601f19603f3d011682016040523d82523d6000602084013e610c0d565b606091505b5050905080610c1b57600080fd5b5050565b600033610c2d85828561184b565b610c388585856118bf565b506001949350505050565b610c4b6116cd565b60095460405163225b5ecf60e11b81526001600160a01b038381166004830152909116906344b6bd9e906024015b600060405180830381600087803b158015610c9357600080fd5b505af1158015610ca7573d6000803e3d6000fd5b5050505050565b600954604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa158015610cf8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1c919061283a565b905090565b600033610ab8818585610d348383611602565b610d3e9190612827565b611727565b600a54600160a81b900460ff16610d905760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08195b98589b1959607a1b6044820152606401610b22565b60095460405163807ab4f760e01b81523360048201526001600160a01b039091169063807ab4f7906024016020604051808303816000875af1158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe9190612853565b50565b6009546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa158015610e4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abe919061283a565b6008546001600160a01b03163314610eb85760405162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b6044820152606401610b22565b600954604051631c18216760e21b81523360048201526001600160a01b03838116602483015290911690637060859c90604401610c79565b610ef86116cd565b610f026000611e7e565b565b60095460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839291169063fbcbc0f19060240160a060405180830381865afa158015610f58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7c9190612870565b939a9299509097509550909350915050565b610f966116cd565b60405162241fbd60e51b81526001600160a01b03821660048201819052600160248301528291630483f7a090604401600060405180830381600087803b158015610fdf57600080fd5b505af1158015610ff3573d6000803e3d6000fd5b505060405162241fbd60e51b8152306004820152600160248201526001600160a01b0384169250630483f7a09150604401600060405180830381600087803b15801561103e57600080fd5b505af1158015611052573d6000803e3d6000fd5b50505050806001600160a01b0316630483f7a06110776005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b1580156110bf57600080fd5b505af11580156110d3573d6000803e3d6000fd5b505060065460405162241fbd60e51b81526001600160a01b039182166004820152600160248201529084169250630483f7a09150604401600060405180830381600087803b15801561112457600080fd5b505af1158015611138573d6000803e3d6000fd5b5050600980546001600160a01b0319166001600160a01b039490941693909317909255505050565b6008546001600160a01b031633146111a75760405162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b6044820152606401610b22565b60095460405163bfd9a75960e01b81523360048201526001600160a01b039091169063bfd9a75990602401600060405180830381600087803b1580156111ec57600080fd5b505af1158015611200573d6000803e3d6000fd5b50505050565b61120e6116cd565b600a8054911515600160a81b0260ff60a81b19909216919091179055565b606060048054610a27906127d7565b6112436116cd565b6007546009546040516323b872dd60e01b81523360048201526001600160a01b0391821660248201526044810184905260009291909116906323b872dd906064016020604051808303816000875af11580156112a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c79190612853565b90508015610c1b57600954604051633b79ab6760e21b8152600481018490526001600160a01b039091169063ede6ad9c906024016109e2565b6113086116cd565b610c1b8282611ed0565b600033816113208286611602565b9050838110156113805760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b22565b610c388286868403611727565b6009546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401610e30565b600033610ab88185856118bf565b6113d66116cd565b6113e881670de0b6b3a76400006128b9565b600b5550565b6113f66116cd565b6001600160a01b03821660009081526016602052604090205481151560ff9091161515036114795760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b6064820152608401610b22565b6001600160a01b038216600081815260166020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6114e06116cd565b806001600160a01b031663a9059cbb6115016005546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611545573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611569919061283a565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156115b4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1b9190612853565b6115e06116cd565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6116356116cd565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b61165f6116cd565b6001600160a01b0381166116c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b22565b610dfe81611e7e565b6005546001600160a01b03163314610f025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b22565b6001600160a01b0383166117895760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b22565b6001600160a01b0382166117ea5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b22565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006118578484611602565b9050600019811461120057818110156118b25760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b22565b6112008484848403611727565b6001600160a01b0383166118e55760405162461bcd60e51b8152600401610b22906128d0565b6001600160a01b03821661190b5760405162461bcd60e51b8152600401610b2290612915565b6001600160a01b03831660009081526016602052604090205460ff1615801561194d57506001600160a01b03821660009081526016602052604090205460ff16155b80156119635750600a54600160a01b900460ff16155b156119b657600a54600160b01b900460ff166119b65760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610b22565b806000036119cf576119ca83836000612035565b505050565b326001600160a01b03841614806119ee5750326001600160a01b038316145b15611a6d5732600090815260186020908152604080832043845290915290205460ff1615611a475760405162461bcd60e51b8152600401610b2290602080825260049082015263426f742160e01b604082015260600190565b3260009081526018602090815260408083204384529091529020805460ff191660011790555b30600090815260208190526040902054600b5481108015908190611a9b5750600a54600160a01b900460ff16155b8015611abf57506001600160a01b03841660009081526017602052604090205460ff165b8015611ae457506001600160a01b03851660009081526016602052604090205460ff16155b8015611b0957506001600160a01b03841660009081526016602052604090205460ff16155b15611b3b57600a805460ff60a01b1916600160a01b179055600b54611b2d9061215f565b600a805460ff60a01b191690555b600a546001600160a01b03861660009081526016602052604090205460ff600160a01b909204821615911680611b8957506001600160a01b03851660009081526016602052604090205460ff165b15611b92575060005b6001600160a01b03851660009081526017602052604090205460ff16158015611bd457506001600160a01b03861660009081526017602052604090205460ff16155b15611bdd575060005b8015611d55576001600160a01b0385166000908152601760205260408120548190819060ff1615611c4b57606460155488611c1891906128b9565b611c229190612958565b60155460135491945090611c3690856128b9565b611c409190612958565b915060019050611c89565b6001600160a01b03891660009081526017602052604090205460ff1615611c8957606460145488611c7c91906128b9565b611c869190612958565b92505b43600d54118015611c9b5750600c5487115b8015611cb057506001600160a01b0388163014155b8015611cd457506001600160a01b03891660009081526017602052604090205460ff165b15611cf3576064611ce68860506128b9565b611cf09190612958565b92505b611cfd838861297a565b9650611d0a893085612035565b808015611d215750600a54600160a01b900460ff16155b15611d5157600a805460ff60a01b1916600160a01b179055611d43828a6123a7565b600a805460ff60a01b191690555b5050505b611d60868686612035565b6009546001600160a01b031663e30443bc87611d91816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611dd757600080fd5b505af1925050508015611de8575060015b506009546001600160a01b031663e30443bc86611e1a816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611e6057600080fd5b505af1925050508015611e71575060015b15610a1057505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526017602052604090205481151560ff909116151503611f665760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610b22565b6001600160a01b0382166000908152601760205260409020805460ff19168215801591909117909155611ff95760095460405162241fbd60e51b81526001600160a01b0384811660048301526001602483015290911690630483f7a090604401600060405180830381600087803b158015611fe057600080fd5b505af1158015611ff4573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b03831661205b5760405162461bcd60e51b8152600401610b22906128d0565b6001600160a01b0382166120815760405162461bcd60e51b8152600401610b2290612915565b6001600160a01b038316600090815260208190526040902054818110156120f95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b22565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611200565b601454600f546000919061217390846128b9565b61217d9190612958565b9050600061218b828461297a565b90506121a061219b600284612958565b61249b565b4780156121bb576121bb6121b5600285612958565b826125a6565b6121c48261249b565b478015612207576008546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612205573d6000803e3d6000fd5b505b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612250573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612274919061283a565b905080801561239e5760075460095460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052600092919091169063a9059cbb906044016020604051808303816000875af11580156122d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122fb9190612853565b9050801561239c57600954604051633b79ab6760e21b8152600481018490526001600160a01b039091169063ede6ad9c90602401600060405180830381600087803b15801561234957600080fd5b505af115801561235d573d6000803e3d6000fd5b5050604080518b8152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15b505b50505050505050565b6123b561219b600284612958565b4780156123ca576123ca6121b5600285612958565b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612413573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612437919061283a565b600a5460405163a21c0fa360e01b8152600481018390526001600160a01b03868116602483015292935091169063a21c0fa390604401600060405180830381600087803b15801561248757600080fd5b505af115801561239c573d6000803e3d6000fd5b60408051600280825260608201835260009260208301908036833701905050905030816000815181106124d0576124d061298d565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612529573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061254d91906129a3565b816001815181106125605761256061298d565b6001600160a01b03928316602091820292909201015260065460405163791ac94760e01b815291169063791ac947906109e29085906000908690309042906004016129c0565b60065460405163f305d71960e01b8152306004820181905260248201859052600060448301819052606483015260848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af1158015612613573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610ca79190612a31565b6001600160a01b0381168114610dfe57600080fd5b8015158114610dfe57600080fd5b6000806040838503121561266e57600080fd5b823561267981612638565b915060208301356126898161264d565b809150509250929050565b600060208083528351808285015260005b818110156126c1578581018301518582016040015282016126a5565b506000604082860101526040601f19601f8301168501019250505092915050565b600080604083850312156126f557600080fd5b823561270081612638565b946020939093013593505050565b60008060006060848603121561272357600080fd5b833561272e81612638565b9250602084013561273e81612638565b929592945050506040919091013590565b60006020828403121561276157600080fd5b813561276c81612638565b9392505050565b60006020828403121561278557600080fd5b813561276c8161264d565b6000602082840312156127a257600080fd5b5035919050565b600080604083850312156127bc57600080fd5b82356127c781612638565b9150602083013561268981612638565b600181811c908216806127eb57607f821691505b60208210810361280b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610abe57610abe612811565b60006020828403121561284c57600080fd5b5051919050565b60006020828403121561286557600080fd5b815161276c8161264d565b600080600080600060a0868803121561288857600080fd5b855161289381612638565b602087015160408801516060890151608090990151929a91995097965090945092505050565b8082028115828204841417610abe57610abe612811565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60008261297557634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610abe57610abe612811565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156129b557600080fd5b815161276c81612638565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612a105784516001600160a01b0316835293830193918301916001016129eb565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612a4657600080fd5b835192506020840151915060408401519050925092509256fea26469706673582212201e7aaca8e8bd20831dbfe3fcd96300d216babf1c56925e11cfd0c366557e028064736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000092c1670432b9f722a1bdb7dae0b1bca705a8321b0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
-----Decoded View---------------
Arg [0] : _projectDevelopmentWallet (address): 0x92c1670432B9F722a1BDb7DAE0b1bca705a8321b
Arg [1] : _routerAddress (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000092c1670432b9f722a1bdb7dae0b1bca705a8321b
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
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.