ERC-20
Overview
Max Total Supply
1,000,000,000 LLAMA
Holders
111
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
4,705,314.82111264104123131 LLAMAValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
SpaceLlama
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.24; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "v2-periphery/interfaces/IUniswapV2Router02.sol"; import "v2-core/interfaces/IUniswapV2Factory.sol"; import "./SpaceLlamaFund.sol"; /** * @dev Error to be thrown when the token sender is invalid. * @param sender Address of the sender. */ error ERC20InvalidSender(address sender); /** * @dev Error to be thrown when the token receiver is invalid. * @param receiver Address of the receiver. */ error ERC20InvalidReceiver(address receiver); /// @title Space Llama /// @notice This contract is for the Space Llama token, a reflective ERC20 token that pays in ETH. contract SpaceLlama is IERC20, Ownable { // State variables // Basic ERC20 variables string private _name; string private _symbol; uint256 private _totalSupply = 1_000_000_000 * 10 ** decimals(); uint256 private _initialTradeBlockNumber; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; // External contracts SpaceLlamaFund public spaceLlamaFund; IUniswapV2Router02 public uniswapV2Router; address public uniswapV2Pair; // Space llama fund variables uint256 public spaceLlamaFundFee = 200; // 2% in BPS uint256 public swapTokensAtAmount = 100_000 * (10 ** 18); uint256 public lastSwapTime; bool private _isSwapping; // Event to be emitted when tokens are sent to the Space Llama Fund event SendToSpaceLlamaFund(uint256 tokensSwapped, uint256 amount); // Variables for limiting wallet balance and punishing bots bool private _isLimitOn = true; // false on renounce bool private _isSetup = true; // false on trade enable uint256 maxWalletBps = 100; // 1% max wallet, no limits after renounce uint256 blocksToPunishBots = 10; // high initial tax value to punish bots mapping(address => bool) public isAmmPair; mapping(address => bool) private _isExemptMaxWallet; mapping(address => bool) private _isExemptFromFee; mapping(address => bool) private _isAllowedDuringSetup; // Events to be emitted when exemptions are updated event UpdateExemptMaxWallet(address indexed account, bool value); event UpdateExemptFromFee(address indexed account, bool value); event UpdateAllowDuringSetup(address indexed account, bool value); event UpdateAmmPair(address indexed pair, bool value); // Errors to be thrown in specific situations error NotAllowedDuringSetup(); error MaxWalletExceeded(); // Constructor /** * @dev Constructor for the SpaceLlama contract. Transfers ownership to _contractOwner at the end. * @param __name The name of the token. * @param __symbol The symbol of the token. * @param _uniswapV2Router02 The address of the Uniswap V2 Router. * @param _contractOwner The address of the contract owner and initial token recipient. */ constructor(string memory __name, string memory __symbol, address _uniswapV2Router02, address _contractOwner) Ownable(_msgSender()) { _name = __name; _symbol = __symbol; uniswapV2Router = IUniswapV2Router02(_uniswapV2Router02); spaceLlamaFund = new SpaceLlamaFund(address(this), _uniswapV2Router02); uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH()); _setAutomatedMarketMakerPair(uniswapV2Pair, true); // Excluding certain addresses from the Space Llama Fund spaceLlamaFund.excludeFromSLF(_contractOwner, true); spaceLlamaFund.excludeFromSLF(address(this), true); spaceLlamaFund.excludeFromSLF(address(spaceLlamaFund), true); spaceLlamaFund.excludeFromSLF(address(uniswapV2Router), true); // Exempting certain addresses from fees exemptFromFee(_contractOwner, true); exemptFromFee(address(this), true); exemptFromFee(address(spaceLlamaFund), true); // Exempting certain addresses from max wallet restrictions exemptFromMaxWallet(_contractOwner, true); exemptFromMaxWallet(address(this), true); exemptFromMaxWallet(address(spaceLlamaFund), true); // Allowing certain addresses to perform operations during setup phase allowDuringSetupPhase(_contractOwner, true); // Initial token distribution _balances[_contractOwner] += _totalSupply; emit Transfer(address(0), _contractOwner, _totalSupply); if (_msgSender() != _contractOwner) { transferOwnership(_contractOwner); } } /** * @dev Function to receive Ether. This is a fallback function and it doesn't have a name. * It is executed when the contract receives Ether without any data. */ receive() external payable {} // External functions for interacting with the contract /** * @dev Approves `spender` to spend `amount` tokens on behalf of the caller. * @param spender The address to be granted spending rights. * @param amount The number of tokens to be approved for spending. * @return A boolean value indicating whether the operation succeeded. */ function approve(address spender, uint256 amount) public returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev Transfers `amount` tokens from the caller to `recipient`. * @param recipient The address to receive the transferred tokens. * @param amount The number of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded. */ function transfer(address recipient, uint256 amount) public returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev Transfers `amount` tokens from `sender` to `recipient` using the allowance mechanism. * `amount` is then deducted from the caller's allowance. * @param sender The address whose tokens are to be transferred. * @param recipient The address to receive the transferred tokens. * @param amount The number of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded. */ function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()] - 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. * @param spender The address to be granted increased spending rights. * @param addedValue The increase in allowance to be granted. * @return A boolean value indicating whether the operation succeeded. */ function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][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`. * @param spender The address to have its spending rights decreased. * @param subtractedValue The decrease in allowance to be applied. * @return A boolean value indicating whether the operation succeeded. */ function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Exempts `account` from fees, if `value` is true. * @param account The address to be exempted from fees. * @param value A boolean indicating whether the account should be exempted from fees. */ function exemptFromFee(address account, bool value) public onlyOwner { require(_isExemptFromFee[account] != value, "Account exemption status is already set to this value"); _isExemptFromFee[account] = value; emit UpdateExemptFromFee(account, value); } /** * @dev Exempts `account` from max wallet restrictions, if `value` is true. * @param account The address to be exempted from max wallet restrictions. * @param value A boolean indicating whether the account should be exempted from max wallet restrictions. */ function exemptFromMaxWallet(address account, bool value) public onlyOwner { require( _isExemptMaxWallet[account] != value, "Account exemption status from max balance is already set to this value" ); _isExemptMaxWallet[account] = value; emit UpdateExemptMaxWallet(account, value); } /** * @dev Allows `account` to perform operations during setup phase, if `value` is true. * @param account The address to be allowed operations during setup phase. * @param value A boolean indicating whether the account should be allowed operations during setup phase. */ function allowDuringSetupPhase(address account, bool value) public onlyOwner { require( _isAllowedDuringSetup[account] != value, "Account exemption status from transfer limit is already set to this value" ); _isAllowedDuringSetup[account] = value; emit UpdateAllowDuringSetup(account, value); } /** * @dev Sets `pair` as an automated market maker pair, if `value` is true. * @param pair The address to be set as an automated market maker pair. * @param value A boolean indicating whether the address should be set as an automated market maker pair. */ function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner { require(pair != uniswapV2Pair, "DEX pair can not be removed"); _setAutomatedMarketMakerPair(pair, value); } /** * @dev Excludes or includes `account` from the Space Llama Fund (SLF) based on the `excluded` flag. * Can only be called by the contract owner. * @param account The address to be excluded or included in the SLF. * @param excluded A boolean indicating whether the account should be excluded from the SLF. */ function excludeFromSLF(address account, bool excluded) public onlyOwner { spaceLlamaFund.excludeFromSLF(account, excluded); } /** * @dev Finishes the setup phase. */ function finishSetup() public onlyOwner { _isSetup = false; _initialTradeBlockNumber = block.number; } /** * @dev Removes all limits and renounces ownership of the contract. * Can only be called by the current owner. */ function removeLimitsAndRenounce() public onlyOwner { _isLimitOn = false; renounceOwnership(); } /** * @dev Allows the caller to claim their tokens. */ function claim() public { spaceLlamaFund.processAccount(payable(_msgSender())); } //////////////////////////////////// external read /** * @dev Returns the name of the token. * @return The name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token. * @return The symbol of the token. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals the token uses. * @return The number of decimals the token uses. */ function decimals() public pure returns (uint8) { return 18; } /** * @dev Returns the total supply of the token. * @return The total supply of the token. */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev Returns the balance of `account`. * @param account The address whose balance is to be returned. * @return The balance of `account`. */ function balanceOf(address account) public view returns (uint256) { return _balances[account]; } /** * @dev Returns the allowance of `spender` from `owner`. * @param owner The address whose allowance is to be returned. * @param spender The address whose allowance is to be returned. * @return The allowance of `spender` from `owner`. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; } /** * @dev Returns the last claim time of `account`. * @param account The address whose last claim time is to be returned. * @return The last claim time of `account`. */ function getLastClaimTime(address account) public view returns (uint256) { return spaceLlamaFund.getLastClaimTime(account); } /** * @dev Returns whether `account` is excluded from SLF. * @param account The address to be checked for exclusion from SLF. * @return A boolean indicating whether `account` is excluded from SLF. */ function isExcludedFromSLF(address account) public view returns (bool) { return spaceLlamaFund.isExcludedFromSLF(account); } /** * @dev Returns the withdrawable Ether of `account`. * @param account The address whose withdrawable Ether is to be returned. * @return The withdrawable Ether of `account`. */ function withdrawableEtherOf(address account) public view returns (uint256) { return spaceLlamaFund.withdrawableEtherOf(account); } /** * @dev Returns the withdrawn Ether of `account`. * @param account The address whose withdrawn Ether is to be returned. * @return The withdrawn Ether of `account`. */ function withdrawnEtherOf(address account) public view returns (uint256) { return spaceLlamaFund.withdrawnEtherOf(account); } /** * @dev Returns the accumulative SLF of `account`. * @param account The address whose accumulative SLF is to be returned. * @return The accumulative SLF of `account`. */ function accumulativeSLFOf(address account) public view returns (uint256) { return spaceLlamaFund.accumulativeSLFOf(account); } /** * @dev Returns the account info of `account`. * @param account The address whose account info is to be returned. * @return The account info of `account`. */ function getAccountInfo(address account) public view returns (address, uint256, uint256, uint256, uint256) { return spaceLlamaFund.getAccountInfo(account); } /** * @dev This function calculates and returns the fee for the Space Llama Fund. The fee calculation is based on the current block number. * The purpose of this dynamic fee structure is to discourage bots and to ensure fair trading. * During the setup phase or when the current block number * is greater than or equal to the steady state block, the fee is set to the default Space Llama Fund fee. * This is to ensure a stable fee during normal operations. * However, if the current block number is less than the steady state block (indicating a high trading activity period), the fee is increased. * It is set to the default fee plus an additional amount which is 50 times the difference between the steady state block and the current block number. * This additional fee acts as a deterrent for bots and high frequency trading during periods of high trading activity in the first few blocks. * @return The calculated fee for the Space Llama Fund. */ function getFee() public view returns (uint256) { // add early branching for renounced state if (!_isLimitOn) { return spaceLlamaFundFee; } // The initialTradeBlockNumber is only defined if _isSetup is true, hence it's safe to use here. uint256 steadyStateBlock = _initialTradeBlockNumber + blocksToPunishBots; if (_isSetup || block.number >= steadyStateBlock) { return spaceLlamaFundFee; } else { // tax is 4900 (49%) on first block -> reduced to 2% on 10th block onwards return spaceLlamaFundFee + 470 * (steadyStateBlock - block.number); } } //////////////////////////////////// internal write /** * @dev Transfers `amount` tokens from `sender` to `recipient`. * @param sender The address whose tokens are to be transferred. * @param recipient The address to receive the transferred tokens. * @param amount The number of tokens to be transferred. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { if (_isSetup) { if ( sender != owner() && recipient != owner() && !_isAllowedDuringSetup[sender] && !_isAllowedDuringSetup[recipient] ) { revert NotAllowedDuringSetup(); } } // if (_isLimitOn && _isSetup) { // if (_isAllowedDuringSetup[sender] || _isAllowedDuringSetup[recipient]) { // // go ahead // } else { // revert NotAllowedDuringSetup(); // } // } require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); if (_isLimitOn && sender != owner() && recipient != address(this) && recipient != uniswapV2Pair) { uint256 maxWallet = (totalSupply() * maxWalletBps) / 10000; uint256 currentBalance = balanceOf(recipient); if (_isExemptMaxWallet[recipient] || (currentBalance + amount <= maxWallet)) { // go ahead } else { revert MaxWalletExceeded(); } } uint256 contractTokenBalance = balanceOf(address(this)); uint256 contractNativeBalance = address(this).balance; bool shouldSwap = contractTokenBalance >= swapTokensAtAmount; if ( shouldSwap && !_isSwapping && !isAmmPair[sender] // no swap on remove liquidity step 1 or DEX buy && sender != address(uniswapV2Router) // no swap on remove liquidity step 2 && sender != owner() && recipient != owner() ) { _isSwapping = true; _rawSwap(contractTokenBalance, contractNativeBalance); lastSwapTime = block.timestamp; _isSwapping = false; } bool takeFee; if (sender == address(uniswapV2Pair) || recipient == address(uniswapV2Pair)) { takeFee = true; } if (_isExemptFromFee[sender] || _isExemptFromFee[recipient]) { takeFee = false; } if (_isSwapping) { takeFee = false; } if (takeFee) { uint256 fees = (amount * getFee()) / 10000; amount -= fees; _rawTransfer(sender, address(this), fees); } _rawTransfer(sender, recipient, amount); spaceLlamaFund.setBalance(payable(sender), balanceOf(sender)); spaceLlamaFund.setBalance(payable(recipient), balanceOf(recipient)); } /** * @dev Transfers `amount` tokens from `sender` to `recipient` without any checks or events. * @param sender The address whose tokens are to be transferred. * @param recipient The address to receive the transferred tokens. * @param amount The number of tokens to be transferred. */ function _rawTransfer(address sender, address recipient, uint256 amount) private { if (sender == address(0)) { revert ERC20InvalidSender(address(0)); } if (recipient == address(0)) { revert ERC20InvalidReceiver(address(0)); } _balances[sender] -= amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } /** * @dev Swaps `tokens` for native currency and adds `native` to the swap. * @param tokens The number of tokens to be swapped. * @param native The amount of native currency to be added to the swap. */ function _rawSwap(uint256 tokens, uint256 native) private { if (tokens <= 0) { return; } uint256 tokensToSwap; if (spaceLlamaFund.totalSupply() > 0) { tokensToSwap = (tokens); } uint256 initNativeBal = address(this).balance; _swapTokensForNative(tokensToSwap); uint256 nativeSwapped = (address(this).balance - initNativeBal) + native; if (nativeSwapped > 0) { (bool success,) = address(spaceLlamaFund).call{value: nativeSwapped}(""); if (success) { emit SendToSpaceLlamaFund(tokensToSwap, nativeSwapped); } } } /** * @dev Swaps the specified amount of tokens for native currency. * @param tokens The amount of tokens to be swapped. */ function _swapTokensForNative(uint256 tokens) private { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokens); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokens, 0, // accept any amount of native path, address(this), block.timestamp ); } /** * @dev Approves `spender` to spend `amount` tokens on behalf of `owner`. * @param owner The address whose tokens are to be approved for spending. * @param spender The address to be approved for spending. * @param amount The number of tokens to be approved for spending. */ 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 Configures the status of `pair` as an automated market maker pair based on the `value` provided. * If `value` is true, the `pair` is set as an automated market maker pair and is excluded from Space Llama Fund (SLF). * An event is emitted to log the update. * @param pair The address that is to be configured as an automated market maker pair. * @param value The boolean value indicating whether the address should be set as an automated market maker pair. * */ function _setAutomatedMarketMakerPair(address pair, bool value) private { require(isAmmPair[pair] != value, "Automated market maker pair is already set to that value"); isAmmPair[pair] = value; if (value) { spaceLlamaFund.excludeFromSLF(pair, true); } emit UpdateAmmPair(pair, value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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); } }
pragma solidity >=0.6.2; import "./IUniswapV2Router01.sol"; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint256); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint256) external view returns (address pair); function allPairsLength() external view returns (uint256); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.24; // Importing required interfaces and contracts import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "v2-periphery/interfaces/IUniswapV2Router02.sol"; /** * @title SpaceLlamaFund * @dev This contract manages the Space Llama Fund, a fund for the Space Llama project. */ contract SpaceLlamaFund is Ownable, IERC20 { // Uniswap router for token swaps IUniswapV2Router02 uniswapV2Router; // Name and symbol for the fund token string private _name = "Space Llama Fund"; string private _symbol = "LLAMAF"; // Index to keep track of the last processed account uint256 public lastProcessedIndex; // Total supply of the fund token uint256 private _totalSupply; // Mapping to store the balance of each account mapping(address => uint256) private _balances; // Constant to magnify the Ether per share to avoid rounding errors uint256 private constant magnitude = 2 ** 128; // Minimum token balance required to be eligible for SLF uint256 public immutable minTokenBalanceForSLF; // Magnified Ether per share uint256 private magnifiedEtherPerShare; // Total Ether distributed and withdrawn uint256 public totalEtherDistributed; uint256 public totalEtherWithdrawn; // Address of the token address public tokenAddress; // Mappings to store the state of each account mapping(address => bool) public excludedFromSLF; mapping(address => int256) private magnifiedEtherCorrections; mapping(address => uint256) private withdrawnEther; mapping(address => uint256) private lastClaimTimes; // Events to log various actions event EtherDistributed(address indexed from, uint256 weiAmount); event EtherWithdrawn(address indexed to, uint256 weiAmount); event ExcludeFromSLF(address indexed account, bool excluded); event Claim(address indexed account, uint256 amount); /** * @dev Struct to store account information. */ struct AccountInfo { address account; uint256 withdrawableEther; uint256 totalSLF; uint256 lastClaimTime; } /** * @dev Constructor for the SpaceLlamaFund contract. * @param _tokenAddress The address of the token. * @param _uniswapRouter The address of the Uniswap router. */ constructor(address _tokenAddress, address _uniswapRouter) Ownable(_tokenAddress) { // Set the minimum token balance for SLF minTokenBalanceForSLF = 1 * (10 ** 18); // Set the token and Uniswap router addresses tokenAddress = _tokenAddress; uniswapV2Router = IUniswapV2Router02(_uniswapRouter); } /** * @dev Fallback function to distribute SLF when Ether is sent to the contract. */ receive() external payable { distributeSLF(); } /** * @dev Function to distribute SLF. */ function distributeSLF() public payable { // Ensure that the total supply is greater than 0 require(_totalSupply > 0, "Total supply should be greater than 0"); // If Ether is sent, distribute it among the token holders if (msg.value > 0) { magnifiedEtherPerShare = magnifiedEtherPerShare + ((msg.value * magnitude) / _totalSupply); emit EtherDistributed(msg.sender, msg.value); totalEtherDistributed += msg.value; } } /** * @dev Function to set the balance of an account. * @param account The address of the account. * @param newBalance The new balance of the account. */ function setBalance(address payable account, uint256 newBalance) external onlyOwner { // If the account is excluded from SLF, do nothing if (excludedFromSLF[account]) { return; } // If the new balance is greater than or equal to the minimum token balance for SLF, set the balance if (newBalance >= minTokenBalanceForSLF) { _setBalance(account, newBalance); } else { // Otherwise, set the balance to 0 _setBalance(account, 0); } } /** * @dev Function to exclude an account from SLF. * @param account The address of the account. * @param excluded The boolean value indicating whether the account should be excluded. */ function excludeFromSLF(address account, bool excluded) external onlyOwner { // Ensure that the account is not already in the requested state require(excludedFromSLF[account] != excluded, "SLF: account already set to requested state"); // Set the state of the account excludedFromSLF[account] = excluded; // If the account is excluded, set its balance to 0 if (excluded) { _setBalance(account, 0); } else { // Otherwise, set its balance to its token balance if it is greater than or equal to the minimum token balance for SLF uint256 newBalance = IERC20(tokenAddress).balanceOf(account); if (newBalance >= minTokenBalanceForSLF) { _setBalance(account, newBalance); } else { _setBalance(account, 0); } } // Emit an event to log the exclusion emit ExcludeFromSLF(account, excluded); } /** * @dev Function to check if an account is excluded from SLF. * @param account The address of the account. * @return A boolean value indicating whether the account is excluded. */ function isExcludedFromSLF(address account) public view returns (bool) { // Return the state of the account return excludedFromSLF[account]; } /** * @dev Internal function to set the balance of an account. * @param account The address of the account. * @param newBalance The new balance of the account. */ function _setBalance(address account, uint256 newBalance) internal { // Get the current balance of the account uint256 currentBalance = _balances[account]; // If the new balance is greater than the current balance, mint tokens if (newBalance > currentBalance) { uint256 addAmount = newBalance - currentBalance; _mint(account, addAmount); } else if (newBalance < currentBalance) { // If the new balance is less than the current balance, burn tokens uint256 subAmount = currentBalance - newBalance; _burn(account, subAmount); } } /** * @dev Internal function to mint tokens. * @param account The address of the account. * @param amount The amount of tokens to mint. */ function _mint(address account, uint256 amount) private { // Ensure that the account is not the zero address require(account != address(0), "SLF: mint to the zero address"); // Increase the total supply and the balance of the account _totalSupply += amount; _balances[account] += amount; // Emit a transfer event from the zero address to the account emit Transfer(address(0), account, amount); // Adjust the magnified Ether correction for the account magnifiedEtherCorrections[account] = magnifiedEtherCorrections[account] - int256(magnifiedEtherPerShare * amount); } /** * @dev Internal function to burn tokens. * @param account The address of the account. * @param amount The amount of tokens to burn. */ function _burn(address account, uint256 amount) private { // Ensure that the account is not the zero address require(account != address(0), "SLF: burn from the zero address"); // Ensure that the account has enough balance to burn uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "SLF: burn amount exceeds balance"); // Decrease the balance of the account and the total supply _balances[account] = accountBalance - amount; _totalSupply -= amount; // Emit a transfer event from the account to the zero address emit Transfer(account, address(0), amount); // Adjust the magnified Ether correction for the account magnifiedEtherCorrections[account] = magnifiedEtherCorrections[account] + int256(magnifiedEtherPerShare * amount); } /** * @dev Function to process an account. * @param account The address of the account. * @return A boolean value indicating whether the process was successful. */ function processAccount(address payable account) public onlyOwner returns (bool) { // Withdraw the SLF of the user uint256 amount = _withdrawSLFOfUser(account); // If the amount is greater than 0, update the last claim time and emit a claim event if (amount > 0) { lastClaimTimes[account] = block.timestamp; emit Claim(account, amount); return true; } // If the amount is 0, return false return false; } /** * @dev Internal function to withdraw SLF of a user. * @param account The address of the account. * @return The amount of SLF withdrawn. */ function _withdrawSLFOfUser(address payable account) private returns (uint256) { // Get the withdrawable Ether of the account uint256 _withdrawableEther = withdrawableEtherOf(account); // If the withdrawable Ether is greater than 0, withdraw it if (_withdrawableEther > 0) { withdrawnEther[account] += _withdrawableEther; totalEtherWithdrawn += _withdrawableEther; emit EtherWithdrawn(account, _withdrawableEther); // Try to transfer the Ether to the account (bool success,) = account.call{value: _withdrawableEther, gas: 3000}(""); // If the transfer fails, revert the withdrawal if (!success) { withdrawnEther[account] -= _withdrawableEther; totalEtherWithdrawn -= _withdrawableEther; return 0; } return _withdrawableEther; } // If the withdrawable Ether is 0, return 0 return 0; } /** * @dev Function to get the withdrawable Ether of an account. * @param account The address of the account. * @return The amount of withdrawable Ether. */ function withdrawableEtherOf(address account) public view returns (uint256) { // Return the difference between the accumulative SLF and the withdrawn Ether of the account return accumulativeSLFOf(account) - withdrawnEther[account]; } /** * @dev Function to get the withdrawn Ether of an account. * @param account The address of the account. * @return The amount of withdrawn Ether. */ function withdrawnEtherOf(address account) public view returns (uint256) { // Return the withdrawn Ether of the account return withdrawnEther[account]; } /** * @dev Function to get the accumulative SLF of an account. * @param account The address of the account. * @return The amount of accumulative SLF. */ function accumulativeSLFOf(address account) public view returns (uint256) { // Calculate the accumulative SLF of the account int256 a = int256(magnifiedEtherPerShare * balanceOf(account)); int256 b = magnifiedEtherCorrections[account]; return uint256(a + b) / magnitude; } /** * @dev Function to get the account information of an account. * @param account The address of the account. * @return The account information. */ function getAccountInfo(address account) public view returns (address, uint256, uint256, uint256, uint256) { // Create a memory struct to store the account information AccountInfo memory info; info.account = account; info.withdrawableEther = withdrawableEtherOf(account); info.totalSLF = accumulativeSLFOf(account); info.lastClaimTime = lastClaimTimes[account]; // Return the account information return (info.account, info.withdrawableEther, info.totalSLF, info.lastClaimTime, totalEtherWithdrawn); } /** * @dev Function to get the last claim time of an account. * @param account The address of the account. * @return The last claim time. */ function getLastClaimTime(address account) public view returns (uint256) { // Return the last claim time of the account return lastClaimTimes[account]; } /** * @dev Function to get the name of the token. * @return The name of the token. */ function name() public view returns (string memory) { // Return the name of the token return _name; } /** * @dev Function to get the symbol of the token. * @return The symbol of the token. */ function symbol() public view returns (string memory) { // Return the symbol of the token return _symbol; } /** * @dev Function to get the decimals of the token. * @return The decimals of the token. */ function decimals() public pure returns (uint8) { // Return the decimals of the token return 18; } /** * @dev Function to get the total supply of the token. * @return The total supply of the token. */ function totalSupply() public view override returns (uint256) { // Return the total supply of the token return _totalSupply; } /** * @dev Function to get the balance of an account. * @param account The address of the account. * @return The balance of the account. */ function balanceOf(address account) public view override returns (uint256) { // Return the balance of the account return _balances[account]; } /** * @dev Function to transfer tokens. This function is not allowed and will always revert. */ function transfer(address, uint256) public pure override returns (bool) { // Revert the transaction as this function is not allowed revert("Not Allowed"); } /** * @dev Function to get the allowance of an account. This function is not allowed and will always revert. */ function allowance(address, address) public pure override returns (uint256) { // Revert the transaction as this function is not allowed revert("Not Allowed"); } /** * @dev Function to approve an account. This function is not allowed and will always revert. */ function approve(address, uint256) public pure override returns (bool) { // Revert the transaction as this function is not allowed revert("Not Allowed"); } /** * @dev Function to transfer tokens from one account to another. This function is not allowed and will always revert. */ function transferFrom(address, address, uint256) public pure override returns (bool) { // Revert the transaction as this function is not allowed revert("Not Allowed"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ 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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens(uint256 amountOutMin, address[] calldata path, address to, uint256 deadline) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens(uint256 amountOut, address[] calldata path, address to, uint256 deadline) external payable returns (uint256[] memory amounts); function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) external pure returns (uint256 amountB); function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) external pure returns (uint256 amountOut); function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) external pure returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); }
{ "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "v2-periphery/=lib/v2-periphery/contracts/", "v2-core/=lib/v2-core/contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"},{"internalType":"address","name":"_uniswapV2Router02","type":"address"},{"internalType":"address","name":"_contractOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[],"name":"MaxWalletExceeded","type":"error"},{"inputs":[],"name":"NotAllowedDuringSetup","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendToSpaceLlamaFund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"UpdateAllowDuringSetup","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"UpdateAmmPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"UpdateExemptFromFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"UpdateExemptMaxWallet","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"accumulativeSLFOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"allowDuringSetupPhase","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":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromSLF","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"exemptFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"exemptFromMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finishSetup","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":"getFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getLastClaimTime","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":"isAmmPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromSLF","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastSwapTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimitsAndRenounce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spaceLlamaFund","outputs":[{"internalType":"contract SpaceLlamaFund","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"spaceLlamaFundFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableEtherOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawnEtherOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052620000126012600a62000c0c565b6200002290633b9aca0062000c24565b60035560c8600a90815569152d02c7e14af6800000600b55600d805462ffff001916620101001790556064600e55600f553480156200006057600080fd5b50604051620045bf380380620045bf833981016040819052620000839162000d23565b3380620000ab57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000b68162000599565b506001620000c5858262000e43565b506002620000d4848262000e43565b50600880546001600160a01b0319166001600160a01b03841617905560405130908390620001029062000ae9565b6001600160a01b03928316815291166020820152604001604051809103906000f08015801562000136573d6000803e3d6000fd5b50600780546001600160a01b0319166001600160a01b039283161790556008546040805163c45a015560e01b81529051919092169163c45a01559160048083019260209291908290030181865afa15801562000196573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001bc919062000f0f565b6001600160a01b031663c9c6539630600860009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200021f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000245919062000f0f565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000293573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b9919062000f0f565b600980546001600160a01b0319166001600160a01b03929092169182179055620002e5906001620005e9565b6007546040516312ac38a160e21b81526001600160a01b0383811660048301526001602483015290911690634ab0e28490604401600060405180830381600087803b1580156200033457600080fd5b505af115801562000349573d6000803e3d6000fd5b50506007546040516312ac38a160e21b8152306004820152600160248201526001600160a01b039091169250634ab0e2849150604401600060405180830381600087803b1580156200039a57600080fd5b505af1158015620003af573d6000803e3d6000fd5b50506007546040516312ac38a160e21b81526001600160a01b0390911660048201819052600160248301529250634ab0e2849150604401600060405180830381600087803b1580156200040157600080fd5b505af115801562000416573d6000803e3d6000fd5b50506007546008546040516312ac38a160e21b81526001600160a01b0391821660048201526001602482015291169250634ab0e2849150604401600060405180830381600087803b1580156200046b57600080fd5b505af115801562000480573d6000803e3d6000fd5b50505050620004978160016200076260201b60201c565b620004a430600162000762565b600754620004bd906001600160a01b0316600162000762565b620004ca8160016200085d565b620004d73060016200085d565b600754620004f0906001600160a01b031660016200085d565b620004fd81600162000967565b6003546001600160a01b038216600090815260056020526040812080549091906200052a90849062000f2d565b90915550506003546040519081526001600160a01b038216906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3336001600160a01b038216146200058f576200058f8162000a74565b5050505062000f43565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821660009081526010602052604090205481151560ff909116151503620006815760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401620000a2565b6001600160a01b0382166000908152601060205260409020805460ff1916821580159190911790915562000718576007546040516312ac38a160e21b81526001600160a01b0384811660048301526001602483015290911690634ab0e28490604401600060405180830381600087803b158015620006fe57600080fd5b505af115801562000713573d6000803e3d6000fd5b505050505b816001600160a01b03167fbd45f3ff99150abe135261fb083099c02494f1fef9aab02d35a0de98ea65f27d8260405162000756911515815260200190565b60405180910390a25050565b6200076c62000ab8565b6001600160a01b03821660009081526012602052604090205481151560ff909116151503620008045760405162461bcd60e51b815260206004820152603560248201527f4163636f756e74206578656d7074696f6e2073746174757320697320616c726560448201527f6164792073657420746f20746869732076616c756500000000000000000000006064820152608401620000a2565b6001600160a01b038216600081815260126020908152604091829020805460ff191685151590811790915591519182527fa35648c59c0d294efd491e4dd37c5c989af10767bb4cada9ddae9a689006232a910162000756565b6200086762000ab8565b6001600160a01b03821660009081526011602052604090205481151560ff9091161515036200090e5760405162461bcd60e51b815260206004820152604660248201527f4163636f756e74206578656d7074696f6e207374617475732066726f6d206d6160448201527f782062616c616e636520697320616c72656164792073657420746f20746869736064820152652076616c756560d01b608482015260a401620000a2565b6001600160a01b038216600081815260116020908152604091829020805460ff191685151590811790915591519182527f5a20f2e5e07246fe0688e7e68208748c6819d7e31dabb6ca9941bf882aa73c0d910162000756565b6200097162000ab8565b6001600160a01b03821660009081526013602052604090205481151560ff90911615150362000a1b5760405162461bcd60e51b815260206004820152604960248201527f4163636f756e74206578656d7074696f6e207374617475732066726f6d20747260448201527f616e73666572206c696d697420697320616c72656164792073657420746f20746064820152686869732076616c756560b81b608482015260a401620000a2565b6001600160a01b038216600081815260136020908152604091829020805460ff191685151590811790915591519182527f58ce1d257ba816b7970bc095ef496dbede42e4f64e6e7474823b15730eba0501910162000756565b62000a7e62000ab8565b6001600160a01b03811662000aaa57604051631e4fbdf760e01b815260006004820152602401620000a2565b62000ab58162000599565b50565b6000546001600160a01b0316331462000ae75760405163118cdaa760e01b8152336004820152602401620000a2565b565b61168e8062002f3183390190565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000b4e57816000190482111562000b325762000b3262000af7565b8085161562000b4057918102915b93841c939080029062000b12565b509250929050565b60008262000b675750600162000c06565b8162000b765750600062000c06565b816001811462000b8f576002811462000b9a5762000bba565b600191505062000c06565b60ff84111562000bae5762000bae62000af7565b50506001821b62000c06565b5060208310610133831016604e8410600b841016171562000bdf575081810a62000c06565b62000beb838362000b0d565b806000190482111562000c025762000c0262000af7565b0290505b92915050565b600062000c1d60ff84168362000b56565b9392505050565b808202811582820484141762000c065762000c0662000af7565b634e487b7160e01b600052604160045260246000fd5b600082601f83011262000c6657600080fd5b81516001600160401b038082111562000c835762000c8362000c3e565b604051601f8301601f19908116603f0116810190828211818310171562000cae5762000cae62000c3e565b816040528381526020925086602085880101111562000ccc57600080fd5b600091505b8382101562000cf0578582018301518183018401529082019062000cd1565b6000602085830101528094505050505092915050565b80516001600160a01b038116811462000d1e57600080fd5b919050565b6000806000806080858703121562000d3a57600080fd5b84516001600160401b038082111562000d5257600080fd5b62000d608883890162000c54565b9550602087015191508082111562000d7757600080fd5b5062000d868782880162000c54565b93505062000d976040860162000d06565b915062000da76060860162000d06565b905092959194509250565b600181811c9082168062000dc757607f821691505b60208210810362000de857634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000e3e576000816000526020600020601f850160051c8101602086101562000e195750805b601f850160051c820191505b8181101562000e3a5782815560010162000e25565b5050505b505050565b81516001600160401b0381111562000e5f5762000e5f62000c3e565b62000e778162000e70845462000db2565b8462000dee565b602080601f83116001811462000eaf576000841562000e965750858301515b600019600386901b1c1916600185901b17855562000e3a565b600085815260208120601f198616915b8281101562000ee05788860151825594840194600190910190840162000ebf565b508582101562000eff5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121562000f2257600080fd5b62000c1d8262000d06565b8082018082111562000c065762000c0662000af7565b611fde8062000f536000396000f3fe6080604052600436106102135760003560e01c806386f25e4d11610118578063a680e0bc116100a0578063c594a2e41161006f578063c594a2e41461063e578063ced72f871461065e578063dd62ed3e14610673578063e2f45605146106b9578063f2fde38b146106cf57600080fd5b8063a680e0bc146105c8578063a7cfb198146105e8578063a9059cbb14610608578063c077980d1461062857600080fd5b80639191a9c7116100e75780639191a9c71461052357806395d89b41146105535780639a7a23d614610568578063a457c2d714610588578063a4eba0ce146105a857600080fd5b806386f25e4d146104b05780638a28a1d7146104c55780638da5cb5b146104e55780638e0903331461050357600080fd5b8063313ce5671161019b5780634ab0e2841161016a5780634ab0e284146103de5780634e71d92d146103fe57806370a0823114610413578063715018a6146104495780637b510fe81461045e57600080fd5b8063313ce56714610362578063395093511461037e578063461c339b1461039e57806349bd5a5e146103be57600080fd5b80631694505e116101e25780631694505e146102be57806318160ddd146102f65780631e5bbf621461030b57806323b872dd1461032d5780632915a4081461034d57600080fd5b806306fdde031461021f578063095ea7b31461024a5780630dd871571461027a5780630eff28031461029e57600080fd5b3661021a57005b600080fd5b34801561022b57600080fd5b506102346106ef565b6040516102419190611c6a565b60405180910390f35b34801561025657600080fd5b5061026a610265366004611cce565b610781565b6040519015158152602001610241565b34801561028657600080fd5b50610290600c5481565b604051908152602001610241565b3480156102aa57600080fd5b506102906102b9366004611cfa565b610798565b3480156102ca57600080fd5b506008546102de906001600160a01b031681565b6040516001600160a01b039091168152602001610241565b34801561030257600080fd5b50600354610290565b34801561031757600080fd5b5061032b610326366004611d2c565b610808565b005b34801561033957600080fd5b5061026a610348366004611d65565b61091a565b34801561035957600080fd5b5061032b6109f0565b34801561036e57600080fd5b5060405160128152602001610241565b34801561038a57600080fd5b5061026a610399366004611cce565b610a0d565b3480156103aa57600080fd5b5061026a6103b9366004611cfa565b610a44565b3480156103ca57600080fd5b506009546102de906001600160a01b031681565b3480156103ea57600080fd5b5061032b6103f9366004611d2c565b610ab3565b34801561040a57600080fd5b5061032b610b27565b34801561041f57600080fd5b5061029061042e366004611cfa565b6001600160a01b031660009081526005602052604090205490565b34801561045557600080fd5b5061032b610ba6565b34801561046a57600080fd5b5061047e610479366004611cfa565b610bb8565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610241565b3480156104bc57600080fd5b5061032b610c42565b3480156104d157600080fd5b506102906104e0366004611cfa565b610c5c565b3480156104f157600080fd5b506000546001600160a01b03166102de565b34801561050f57600080fd5b5061032b61051e366004611d2c565b610c8f565b34801561052f57600080fd5b5061026a61053e366004611cfa565b60106020526000908152604090205460ff1681565b34801561055f57600080fd5b50610234610d7d565b34801561057457600080fd5b5061032b610583366004611d2c565b610d8c565b34801561059457600080fd5b5061026a6105a3366004611cce565b610e00565b3480156105b457600080fd5b506102906105c3366004611cfa565b610e99565b3480156105d457600080fd5b506102906105e3366004611cfa565b610ecc565b3480156105f457600080fd5b506007546102de906001600160a01b031681565b34801561061457600080fd5b5061026a610623366004611cce565b610eff565b34801561063457600080fd5b50610290600a5481565b34801561064a57600080fd5b5061032b610659366004611d2c565b610f0c565b34801561066a57600080fd5b50610290611014565b34801561067f57600080fd5b5061029061068e366004611da6565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b3480156106c557600080fd5b50610290600b5481565b3480156106db57600080fd5b5061032b6106ea366004611cfa565b61108f565b6060600180546106fe90611dd4565b80601f016020809104026020016040519081016040528092919081815260200182805461072a90611dd4565b80156107775780601f1061074c57610100808354040283529160200191610777565b820191906000526020600020905b81548152906001019060200180831161075a57829003601f168201915b5050505050905090565b600061078e3384846110ca565b5060015b92915050565b600754604051630eff280360e01b81526001600160a01b0383811660048301526000921690630eff2803906024015b602060405180830381865afa1580156107e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107929190611e0e565b6108106111ef565b6001600160a01b03821660009081526011602052604090205481151560ff9091161515036108ba5760405162461bcd60e51b815260206004820152604660248201527f4163636f756e74206578656d7074696f6e207374617475732066726f6d206d6160448201527f782062616c616e636520697320616c72656164792073657420746f20746869736064820152652076616c756560d01b608482015260a4015b60405180910390fd5b6001600160a01b038216600081815260116020908152604091829020805460ff191685151590811790915591519182527f5a20f2e5e07246fe0688e7e68208748c6819d7e31dabb6ca9941bf882aa73c0d91015b60405180910390a25050565b6001600160a01b03831660009081526006602090815260408083203384529091528120548281101561099f5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016108b1565b6109aa85858561121c565b6001600160a01b0385166000908152600660209081526040808320338085529252909120546109e59187916109e0908790611e3d565b6110ca565b506001949350505050565b6109f86111ef565b600d805461ff0019169055610a0b610ba6565b565b3360008181526006602090815260408083206001600160a01b0387168452909152812054909161078e9185906109e0908690611e50565b60075460405163461c339b60e01b81526001600160a01b038381166004830152600092169063461c339b90602401602060405180830381865afa158015610a8f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107929190611e63565b610abb6111ef565b6007546040516312ac38a160e21b81526001600160a01b038481166004830152831515602483015290911690634ab0e284906044015b600060405180830381600087803b158015610b0b57600080fd5b505af1158015610b1f573d6000803e3d6000fd5b505050505050565b6007546001600160a01b031663807ab4f7336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024016020604051808303816000875af1158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba39190611e63565b50565b610bae6111ef565b610a0b6000611744565b600754604051630f6a21fd60e31b81526001600160a01b0383811660048301526000928392839283928392911690637b510fe89060240160a060405180830381865afa158015610c0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c309190611e80565b939a9299509097509550909350915050565b610c4a6111ef565b600d805462ff00001916905543600455565b600754604051638a28a1d760e01b81526001600160a01b0383811660048301526000921690638a28a1d7906024016107c7565b610c976111ef565b6001600160a01b03821660009081526012602052604090205481151560ff909116151503610d255760405162461bcd60e51b815260206004820152603560248201527f4163636f756e74206578656d7074696f6e2073746174757320697320616c72656044820152746164792073657420746f20746869732076616c756560581b60648201526084016108b1565b6001600160a01b038216600081815260126020908152604091829020805460ff191685151590811790915591519182527fa35648c59c0d294efd491e4dd37c5c989af10767bb4cada9ddae9a689006232a910161090e565b6060600280546106fe90611dd4565b610d946111ef565b6009546001600160a01b0390811690831603610df25760405162461bcd60e51b815260206004820152601b60248201527f44455820706169722063616e206e6f742062652072656d6f766564000000000060448201526064016108b1565b610dfc8282611794565b5050565b3360009081526006602090815260408083206001600160a01b038616845290915281205482811015610e825760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108b1565b610e8f33858584036110ca565b5060019392505050565b600754604051635275d06760e11b81526001600160a01b038381166004830152600092169063a4eba0ce906024016107c7565b6007546040516329a0382f60e21b81526001600160a01b038381166004830152600092169063a680e0bc906024016107c7565b600061078e33848461121c565b610f146111ef565b6001600160a01b03821660009081526013602052604090205481151560ff909116151503610fbc5760405162461bcd60e51b815260206004820152604960248201527f4163636f756e74206578656d7074696f6e207374617475732066726f6d20747260448201527f616e73666572206c696d697420697320616c72656164792073657420746f20746064820152686869732076616c756560b81b608482015260a4016108b1565b6001600160a01b038216600081815260136020908152604091829020805460ff191685151590811790915591519182527f58ce1d257ba816b7970bc095ef496dbede42e4f64e6e7474823b15730eba0501910161090e565b600d54600090610100900460ff1661102d5750600a5490565b6000600f5460045461103f9190611e50565b600d5490915062010000900460ff16806110595750804310155b15611066575050600a5490565b6110704382611e3d565b61107c906101d6611ec9565b600a546110899190611e50565b91505090565b6110976111ef565b6001600160a01b0381166110c157604051631e4fbdf760e01b8152600060048201526024016108b1565b610ba381611744565b6001600160a01b03831661112c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108b1565b6001600160a01b03821661118d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108b1565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000546001600160a01b03163314610a0b5760405163118cdaa760e01b81523360048201526024016108b1565b600d5462010000900460ff16156112c1576000546001600160a01b0384811691161480159061125957506000546001600160a01b03838116911614155b801561127e57506001600160a01b03831660009081526013602052604090205460ff16155b80156112a357506001600160a01b03821660009081526013602052604090205460ff16155b156112c15760405163265721e560e01b815260040160405180910390fd5b6001600160a01b0383166113255760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108b1565b6001600160a01b0382166113875760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108b1565b600d54610100900460ff1680156113ac57506000546001600160a01b03848116911614155b80156113c157506001600160a01b0382163014155b80156113db57506009546001600160a01b03838116911614155b1561147b576000612710600e546113f160035490565b6113fb9190611ec9565b6114059190611ee0565b90506000611428846001600160a01b031660009081526005602052604090205490565b6001600160a01b03851660009081526011602052604090205490915060ff168061145b5750816114588483611e50565b11155b61147857604051632ce93b5960e01b815260040160405180910390fd5b50505b30600090815260056020526040902054600b544790821080159081906114a45750600d5460ff16155b80156114c957506001600160a01b03861660009081526010602052604090205460ff16155b80156114e357506008546001600160a01b03878116911614155b80156114fd57506000546001600160a01b03878116911614155b801561151757506000546001600160a01b03868116911614155b1561154257600d805460ff1916600117905561153383836118fb565b42600c55600d805460ff191690555b6009546000906001600160a01b038881169116148061156e57506009546001600160a01b038781169116145b15611577575060015b6001600160a01b03871660009081526012602052604090205460ff16806115b657506001600160a01b03861660009081526012602052604090205460ff165b156115bf575060005b600d5460ff16156115ce575060005b80156116105760006127106115e1611014565b6115eb9088611ec9565b6115f59190611ee0565b90506116018187611e3d565b955061160e883083611a51565b505b61161b878787611a51565b6007546001600160a01b031663e30443bc8861164c816001600160a01b031660009081526005602052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561169257600080fd5b505af11580156116a6573d6000803e3d6000fd5b50506007546001600160a01b0316915063e30443bc9050876116dd816001600160a01b031660009081526005602052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561172357600080fd5b505af1158015611737573d6000803e3d6000fd5b5050505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821660009081526010602052604090205481151560ff90911615150361182a5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c7565000000000000000060648201526084016108b1565b6001600160a01b0382166000908152601060205260409020805460ff191682158015919091179091556118be576007546040516312ac38a160e21b81526001600160a01b0384811660048301526001602483015290911690634ab0e28490604401600060405180830381600087803b1580156118a557600080fd5b505af11580156118b9573d6000803e3d6000fd5b505050505b816001600160a01b03167fbd45f3ff99150abe135261fb083099c02494f1fef9aab02d35a0de98ea65f27d8260405161090e911515815260200190565b60008211611907575050565b600080600760009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561195d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119819190611e0e565b111561198a5750815b4761199482611b46565b6000836119a18347611e3d565b6119ab9190611e50565b90508015611a4a576007546040516000916001600160a01b03169083908381818185875af1925050503d8060008114611a00576040519150601f19603f3d011682016040523d82523d6000602084013e611a05565b606091505b505090508015610b1f5760408051858152602081018490527f87d0c19faf3c36e435b9a7e393cbba60f861050d34139f75a482b827635a2162910160405180910390a1505b5050505050565b6001600160a01b038316611a7b57604051634b637e8f60e11b8152600060048201526024016108b1565b6001600160a01b038216611aa55760405163ec442f0560e01b8152600060048201526024016108b1565b6001600160a01b03831660009081526005602052604081208054839290611acd908490611e3d565b90915550506001600160a01b03821660009081526005602052604081208054839290611afa908490611e50565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516111e291815260200190565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611b7b57611b7b611f02565b6001600160a01b03928316602091820292909201810191909152600854604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611bd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf89190611f18565b81600181518110611c0b57611c0b611f02565b6001600160a01b039283166020918202929092010152600854611c3191309116846110ca565b60085460405163791ac94760e01b81526001600160a01b039091169063791ac94790610af1908590600090869030904290600401611f35565b60006020808352835180602085015260005b81811015611c9857858101830151858201604001528201611c7c565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610ba357600080fd5b60008060408385031215611ce157600080fd5b8235611cec81611cb9565b946020939093013593505050565b600060208284031215611d0c57600080fd5b8135611d1781611cb9565b9392505050565b8015158114610ba357600080fd5b60008060408385031215611d3f57600080fd5b8235611d4a81611cb9565b91506020830135611d5a81611d1e565b809150509250929050565b600080600060608486031215611d7a57600080fd5b8335611d8581611cb9565b92506020840135611d9581611cb9565b929592945050506040919091013590565b60008060408385031215611db957600080fd5b8235611dc481611cb9565b91506020830135611d5a81611cb9565b600181811c90821680611de857607f821691505b602082108103611e0857634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611e2057600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561079257610792611e27565b8082018082111561079257610792611e27565b600060208284031215611e7557600080fd5b8151611d1781611d1e565b600080600080600060a08688031215611e9857600080fd5b8551611ea381611cb9565b602087015160408801516060890151608090990151929a91995097965090945092505050565b808202811582820484141761079257610792611e27565b600082611efd57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611f2a57600080fd5b8151611d1781611cb9565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015611f875784516001600160a01b031683529383019391830191600101611f62565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122051a45bb5868974e643c66957ac60e8394dfae8e04bf2ad13b01994050dcc35e164736f6c6343000818003360e0604052601060a09081526f14dc1858d948131b185b5848119d5b9960821b60c05260029062000031908262000200565b50604080518082019091526006815265262620a6a0a360d11b60208201526003906200005e908262000200565b503480156200006c57600080fd5b506040516200168e3803806200168e8339810160408190526200008f91620002e9565b816001600160a01b038116620000bf57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620000ca8162000109565b50670de0b6b3a7640000608052600a80546001600160a01b039384166001600160a01b0319918216179091556001805492909316911617905562000321565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018457607f821691505b602082108103620001a557634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001fb576000816000526020600020601f850160051c81016020861015620001d65750805b601f850160051c820191505b81811015620001f757828155600101620001e2565b5050505b505050565b81516001600160401b038111156200021c576200021c62000159565b62000234816200022d84546200016f565b84620001ab565b602080601f8311600181146200026c5760008415620002535750858301515b600019600386901b1c1916600185901b178555620001f7565b600085815260208120601f198616915b828110156200029d578886015182559484019460019091019084016200027c565b5085821015620002bc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80516001600160a01b0381168114620002e457600080fd5b919050565b60008060408385031215620002fd57600080fd5b6200030883620002cc565b91506200031860208401620002cc565b90509250929050565b6080516113436200034b600039600081816101e1015281816109020152610b3501526113436000f3fe6080604052600436106101bb5760003560e01c80637b510fe8116100ec578063a5f169cd1161008a578063cbba6a3211610064578063cbba6a3214610527578063dd62ed3e14610557578063e30443bc14610572578063f2fde38b1461059257600080fd5b8063a5f169cd146104e9578063a680e0bc146104f1578063a9059cbb1461023857600080fd5b80638da5cb5b116100c65780638da5cb5b1461044c57806395d89b411461047e5780639d76ea5814610493578063a4eba0ce146104b357600080fd5b80637b510fe8146103ba578063807ab4f71461040c5780638a28a1d71461042c57600080fd5b80632e3702d511610159578063461c339b11610133578063461c339b146103165780634ab0e2841461034f57806370a082311461036f578063715018a6146103a557600080fd5b80632e3702d5146102ce5780633009a609146102e4578063313ce567146102fa57600080fd5b80630eff2803116101955780630eff28031461026857806318160ddd14610288578063225c3c3b1461029d57806323b872dd146102b357600080fd5b8063061fe88a146101cf57806306fdde0314610216578063095ea7b31461023857600080fd5b366101ca576101c86105b2565b005b600080fd5b3480156101db57600080fd5b506102037f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561022257600080fd5b5061022b610697565b60405161020d919061109c565b34801561024457600080fd5b50610258610253366004611100565b610729565b604051901515815260200161020d565b34801561027457600080fd5b5061020361028336600461112c565b610762565b34801561029457600080fd5b50600554610203565b3480156102a957600080fd5b5061020360095481565b3480156102bf57600080fd5b50610258610253366004611150565b3480156102da57600080fd5b5061020360085481565b3480156102f057600080fd5b5061020360045481565b34801561030657600080fd5b506040516012815260200161020d565b34801561032257600080fd5b5061025861033136600461112c565b6001600160a01b03166000908152600b602052604090205460ff1690565b34801561035b57600080fd5b506101c861036a366004611191565b6107c6565b34801561037b57600080fd5b5061020361038a36600461112c565b6001600160a01b031660009081526006602052604090205490565b3480156103b157600080fd5b506101c861098c565b3480156103c657600080fd5b506103da6103d536600461112c565b61099e565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a00161020d565b34801561041857600080fd5b5061025861042736600461112c565b610a46565b34801561043857600080fd5b5061020361044736600461112c565b610aca565b34801561045857600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200161020d565b34801561048a57600080fd5b5061022b610afc565b34801561049f57600080fd5b50600a54610466906001600160a01b031681565b3480156104bf57600080fd5b506102036104ce36600461112c565b6001600160a01b03166000908152600d602052604090205490565b6101c86105b2565b3480156104fd57600080fd5b5061020361050c36600461112c565b6001600160a01b03166000908152600e602052604090205490565b34801561053357600080fd5b5061025861054236600461112c565b600b6020526000908152604090205460ff1681565b34801561056357600080fd5b506102036102533660046111cf565b34801561057e57600080fd5b506101c861058d366004611100565b610b0b565b34801561059e57600080fd5b506101c86105ad36600461112c565b610b73565b6000600554116106175760405162461bcd60e51b815260206004820152602560248201527f546f74616c20737570706c792073686f756c6420626520677265617465722074604482015264068616e20360dc1b60648201526084015b60405180910390fd5b34156106955760055461062e600160801b34611213565b610638919061122a565b600754610645919061124c565b60075560405134815233907f2aaa7923c74576791f293c17c5b1617a0c94ad8beb3c351bef807fd8784268439060200160405180910390a2346008600082825461068f919061124c565b90915550505b565b6060600280546106a69061125f565b80601f01602080910402602001604051908101604052809291908181526020018280546106d29061125f565b801561071f5780601f106106f45761010080835404028352916020019161071f565b820191906000526020600020905b81548152906001019060200180831161070257829003601f168201915b5050505050905090565b60405162461bcd60e51b815260206004820152600b60248201526a139bdd08105b1b1bddd95960aa1b604482015260009060640161060e565b6001600160a01b038116600090815260066020526040812054600754829161078991611213565b6001600160a01b0384166000908152600c6020526040902054909150600160801b6107b48284611299565b6107be919061122a565b949350505050565b6107ce610bb1565b6001600160a01b0382166000908152600b602052604090205481151560ff9091161515036108525760405162461bcd60e51b815260206004820152602b60248201527f534c463a206163636f756e7420616c72656164792073657420746f207265717560448201526a657374656420737461746560a81b606482015260840161060e565b6001600160a01b0382166000908152600b60205260409020805460ff1916821580159190911790915561088f5761088a826000610bde565b610943565b600a546040516370a0823160e01b81526001600160a01b03848116600483015260009216906370a0823190602401602060405180830381865afa1580156108da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fe91906112c1565b90507f00000000000000000000000000000000000000000000000000000000000000008110610936576109318382610bde565b610941565b610941836000610bde565b505b816001600160a01b03167f33218abbde111755fb3b31a63cbc24ff52313fd28dd8b84b2fafd2233d697d8a82604051610980911515815260200190565b60405180910390a25050565b610994610bb1565b6106956000610c42565b60008060008060006109da604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6001600160a01b03871681526109ef87610aca565b60208201526109fd87610762565b60408281019182526001600160a01b03989098166000908152600e6020908152989020546060830181905282519890920151905160095498999198909750919550909350915050565b6000610a50610bb1565b6000610a5b83610c92565b90508015610ac1576001600160a01b0383166000818152600e602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490610ab09084815260200190565b60405180910390a250600192915050565b50600092915050565b6001600160a01b0381166000908152600d6020526040812054610aec83610762565b610af691906112da565b92915050565b6060600380546106a69061125f565b610b13610bb1565b6001600160a01b0382166000908152600b602052604090205460ff16610b64577f00000000000000000000000000000000000000000000000000000000000000008110610b6857610b648282610bde565b5050565b610b64826000610bde565b610b7b610bb1565b6001600160a01b038116610ba557604051631e4fbdf760e01b81526000600482015260240161060e565b610bae81610c42565b50565b6000546001600160a01b031633146106955760405163118cdaa760e01b815233600482015260240161060e565b6001600160a01b03821660009081526006602052604090205480821115610c1d576000610c0b82846112da565b9050610c178482610de1565b50505050565b80821015610c3d576000610c3183836112da565b9050610c178482610f0d565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080610c9e83610aca565b90508015610ac1576001600160a01b0383166000908152600d602052604081208054839290610cce90849061124c565b925050819055508060096000828254610ce7919061124c565b90915550506040518181526001600160a01b038416907f06097061aeda806b5e9cb4133d9899f332ff0913956567fc0f7ea15e3d19947c9060200160405180910390a26000836001600160a01b031682610bb890604051600060405180830381858888f193505050503d8060008114610d7c576040519150601f19603f3d011682016040523d82523d6000602084013e610d81565b606091505b5050905080610dda576001600160a01b0384166000908152600d602052604081208054849290610db29084906112da565b925050819055508160096000828254610dcb91906112da565b90915550600095945050505050565b5092915050565b6001600160a01b038216610e375760405162461bcd60e51b815260206004820152601d60248201527f534c463a206d696e7420746f20746865207a65726f2061646472657373000000604482015260640161060e565b8060056000828254610e49919061124c565b90915550506001600160a01b03821660009081526006602052604081208054839290610e7690849061124c565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a380600754610eca9190611213565b6001600160a01b0383166000908152600c6020526040902054610eed91906112ed565b6001600160a01b039092166000908152600c602052604090209190915550565b6001600160a01b038216610f635760405162461bcd60e51b815260206004820152601f60248201527f534c463a206275726e2066726f6d20746865207a65726f206164647265737300604482015260640161060e565b6001600160a01b03821660009081526006602052604090205481811015610fcc5760405162461bcd60e51b815260206004820181905260248201527f534c463a206275726e20616d6f756e7420657863656564732062616c616e6365604482015260640161060e565b610fd682826112da565b6001600160a01b038416600090815260066020526040812091909155600580548492906110049084906112da565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3816007546110589190611213565b6001600160a01b0384166000908152600c602052604090205461107b9190611299565b6001600160a01b039093166000908152600c60205260409020929092555050565b60006020808352835180602085015260005b818110156110ca578581018301518582016040015282016110ae565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610bae57600080fd5b6000806040838503121561111357600080fd5b823561111e816110eb565b946020939093013593505050565b60006020828403121561113e57600080fd5b8135611149816110eb565b9392505050565b60008060006060848603121561116557600080fd5b8335611170816110eb565b92506020840135611180816110eb565b929592945050506040919091013590565b600080604083850312156111a457600080fd5b82356111af816110eb565b9150602083013580151581146111c457600080fd5b809150509250929050565b600080604083850312156111e257600080fd5b82356111ed816110eb565b915060208301356111c4816110eb565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610af657610af66111fd565b60008261124757634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610af657610af66111fd565b600181811c9082168061127357607f821691505b60208210810361129357634e487b7160e01b600052602260045260246000fd5b50919050565b80820182811260008312801582168215821617156112b9576112b96111fd565b505092915050565b6000602082840312156112d357600080fd5b5051919050565b81810381811115610af657610af66111fd565b8181036000831280158383131683831282161715610dda57610dda6111fd56fea2646970667358221220bc32da2748ae8f1a2dea0e0b58d40c356c731fd16fc9632c52222b5fe8c7cbb664736f6c63430008180033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000008155228c7ef072996bed86a2df14b21d7c718d4000000000000000000000000000000000000000000000000000000000000000b5370616365204c6c616d6100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054c4c414d41000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102135760003560e01c806386f25e4d11610118578063a680e0bc116100a0578063c594a2e41161006f578063c594a2e41461063e578063ced72f871461065e578063dd62ed3e14610673578063e2f45605146106b9578063f2fde38b146106cf57600080fd5b8063a680e0bc146105c8578063a7cfb198146105e8578063a9059cbb14610608578063c077980d1461062857600080fd5b80639191a9c7116100e75780639191a9c71461052357806395d89b41146105535780639a7a23d614610568578063a457c2d714610588578063a4eba0ce146105a857600080fd5b806386f25e4d146104b05780638a28a1d7146104c55780638da5cb5b146104e55780638e0903331461050357600080fd5b8063313ce5671161019b5780634ab0e2841161016a5780634ab0e284146103de5780634e71d92d146103fe57806370a0823114610413578063715018a6146104495780637b510fe81461045e57600080fd5b8063313ce56714610362578063395093511461037e578063461c339b1461039e57806349bd5a5e146103be57600080fd5b80631694505e116101e25780631694505e146102be57806318160ddd146102f65780631e5bbf621461030b57806323b872dd1461032d5780632915a4081461034d57600080fd5b806306fdde031461021f578063095ea7b31461024a5780630dd871571461027a5780630eff28031461029e57600080fd5b3661021a57005b600080fd5b34801561022b57600080fd5b506102346106ef565b6040516102419190611c6a565b60405180910390f35b34801561025657600080fd5b5061026a610265366004611cce565b610781565b6040519015158152602001610241565b34801561028657600080fd5b50610290600c5481565b604051908152602001610241565b3480156102aa57600080fd5b506102906102b9366004611cfa565b610798565b3480156102ca57600080fd5b506008546102de906001600160a01b031681565b6040516001600160a01b039091168152602001610241565b34801561030257600080fd5b50600354610290565b34801561031757600080fd5b5061032b610326366004611d2c565b610808565b005b34801561033957600080fd5b5061026a610348366004611d65565b61091a565b34801561035957600080fd5b5061032b6109f0565b34801561036e57600080fd5b5060405160128152602001610241565b34801561038a57600080fd5b5061026a610399366004611cce565b610a0d565b3480156103aa57600080fd5b5061026a6103b9366004611cfa565b610a44565b3480156103ca57600080fd5b506009546102de906001600160a01b031681565b3480156103ea57600080fd5b5061032b6103f9366004611d2c565b610ab3565b34801561040a57600080fd5b5061032b610b27565b34801561041f57600080fd5b5061029061042e366004611cfa565b6001600160a01b031660009081526005602052604090205490565b34801561045557600080fd5b5061032b610ba6565b34801561046a57600080fd5b5061047e610479366004611cfa565b610bb8565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610241565b3480156104bc57600080fd5b5061032b610c42565b3480156104d157600080fd5b506102906104e0366004611cfa565b610c5c565b3480156104f157600080fd5b506000546001600160a01b03166102de565b34801561050f57600080fd5b5061032b61051e366004611d2c565b610c8f565b34801561052f57600080fd5b5061026a61053e366004611cfa565b60106020526000908152604090205460ff1681565b34801561055f57600080fd5b50610234610d7d565b34801561057457600080fd5b5061032b610583366004611d2c565b610d8c565b34801561059457600080fd5b5061026a6105a3366004611cce565b610e00565b3480156105b457600080fd5b506102906105c3366004611cfa565b610e99565b3480156105d457600080fd5b506102906105e3366004611cfa565b610ecc565b3480156105f457600080fd5b506007546102de906001600160a01b031681565b34801561061457600080fd5b5061026a610623366004611cce565b610eff565b34801561063457600080fd5b50610290600a5481565b34801561064a57600080fd5b5061032b610659366004611d2c565b610f0c565b34801561066a57600080fd5b50610290611014565b34801561067f57600080fd5b5061029061068e366004611da6565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b3480156106c557600080fd5b50610290600b5481565b3480156106db57600080fd5b5061032b6106ea366004611cfa565b61108f565b6060600180546106fe90611dd4565b80601f016020809104026020016040519081016040528092919081815260200182805461072a90611dd4565b80156107775780601f1061074c57610100808354040283529160200191610777565b820191906000526020600020905b81548152906001019060200180831161075a57829003601f168201915b5050505050905090565b600061078e3384846110ca565b5060015b92915050565b600754604051630eff280360e01b81526001600160a01b0383811660048301526000921690630eff2803906024015b602060405180830381865afa1580156107e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107929190611e0e565b6108106111ef565b6001600160a01b03821660009081526011602052604090205481151560ff9091161515036108ba5760405162461bcd60e51b815260206004820152604660248201527f4163636f756e74206578656d7074696f6e207374617475732066726f6d206d6160448201527f782062616c616e636520697320616c72656164792073657420746f20746869736064820152652076616c756560d01b608482015260a4015b60405180910390fd5b6001600160a01b038216600081815260116020908152604091829020805460ff191685151590811790915591519182527f5a20f2e5e07246fe0688e7e68208748c6819d7e31dabb6ca9941bf882aa73c0d91015b60405180910390a25050565b6001600160a01b03831660009081526006602090815260408083203384529091528120548281101561099f5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016108b1565b6109aa85858561121c565b6001600160a01b0385166000908152600660209081526040808320338085529252909120546109e59187916109e0908790611e3d565b6110ca565b506001949350505050565b6109f86111ef565b600d805461ff0019169055610a0b610ba6565b565b3360008181526006602090815260408083206001600160a01b0387168452909152812054909161078e9185906109e0908690611e50565b60075460405163461c339b60e01b81526001600160a01b038381166004830152600092169063461c339b90602401602060405180830381865afa158015610a8f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107929190611e63565b610abb6111ef565b6007546040516312ac38a160e21b81526001600160a01b038481166004830152831515602483015290911690634ab0e284906044015b600060405180830381600087803b158015610b0b57600080fd5b505af1158015610b1f573d6000803e3d6000fd5b505050505050565b6007546001600160a01b031663807ab4f7336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024016020604051808303816000875af1158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba39190611e63565b50565b610bae6111ef565b610a0b6000611744565b600754604051630f6a21fd60e31b81526001600160a01b0383811660048301526000928392839283928392911690637b510fe89060240160a060405180830381865afa158015610c0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c309190611e80565b939a9299509097509550909350915050565b610c4a6111ef565b600d805462ff00001916905543600455565b600754604051638a28a1d760e01b81526001600160a01b0383811660048301526000921690638a28a1d7906024016107c7565b610c976111ef565b6001600160a01b03821660009081526012602052604090205481151560ff909116151503610d255760405162461bcd60e51b815260206004820152603560248201527f4163636f756e74206578656d7074696f6e2073746174757320697320616c72656044820152746164792073657420746f20746869732076616c756560581b60648201526084016108b1565b6001600160a01b038216600081815260126020908152604091829020805460ff191685151590811790915591519182527fa35648c59c0d294efd491e4dd37c5c989af10767bb4cada9ddae9a689006232a910161090e565b6060600280546106fe90611dd4565b610d946111ef565b6009546001600160a01b0390811690831603610df25760405162461bcd60e51b815260206004820152601b60248201527f44455820706169722063616e206e6f742062652072656d6f766564000000000060448201526064016108b1565b610dfc8282611794565b5050565b3360009081526006602090815260408083206001600160a01b038616845290915281205482811015610e825760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108b1565b610e8f33858584036110ca565b5060019392505050565b600754604051635275d06760e11b81526001600160a01b038381166004830152600092169063a4eba0ce906024016107c7565b6007546040516329a0382f60e21b81526001600160a01b038381166004830152600092169063a680e0bc906024016107c7565b600061078e33848461121c565b610f146111ef565b6001600160a01b03821660009081526013602052604090205481151560ff909116151503610fbc5760405162461bcd60e51b815260206004820152604960248201527f4163636f756e74206578656d7074696f6e207374617475732066726f6d20747260448201527f616e73666572206c696d697420697320616c72656164792073657420746f20746064820152686869732076616c756560b81b608482015260a4016108b1565b6001600160a01b038216600081815260136020908152604091829020805460ff191685151590811790915591519182527f58ce1d257ba816b7970bc095ef496dbede42e4f64e6e7474823b15730eba0501910161090e565b600d54600090610100900460ff1661102d5750600a5490565b6000600f5460045461103f9190611e50565b600d5490915062010000900460ff16806110595750804310155b15611066575050600a5490565b6110704382611e3d565b61107c906101d6611ec9565b600a546110899190611e50565b91505090565b6110976111ef565b6001600160a01b0381166110c157604051631e4fbdf760e01b8152600060048201526024016108b1565b610ba381611744565b6001600160a01b03831661112c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108b1565b6001600160a01b03821661118d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108b1565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000546001600160a01b03163314610a0b5760405163118cdaa760e01b81523360048201526024016108b1565b600d5462010000900460ff16156112c1576000546001600160a01b0384811691161480159061125957506000546001600160a01b03838116911614155b801561127e57506001600160a01b03831660009081526013602052604090205460ff16155b80156112a357506001600160a01b03821660009081526013602052604090205460ff16155b156112c15760405163265721e560e01b815260040160405180910390fd5b6001600160a01b0383166113255760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108b1565b6001600160a01b0382166113875760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108b1565b600d54610100900460ff1680156113ac57506000546001600160a01b03848116911614155b80156113c157506001600160a01b0382163014155b80156113db57506009546001600160a01b03838116911614155b1561147b576000612710600e546113f160035490565b6113fb9190611ec9565b6114059190611ee0565b90506000611428846001600160a01b031660009081526005602052604090205490565b6001600160a01b03851660009081526011602052604090205490915060ff168061145b5750816114588483611e50565b11155b61147857604051632ce93b5960e01b815260040160405180910390fd5b50505b30600090815260056020526040902054600b544790821080159081906114a45750600d5460ff16155b80156114c957506001600160a01b03861660009081526010602052604090205460ff16155b80156114e357506008546001600160a01b03878116911614155b80156114fd57506000546001600160a01b03878116911614155b801561151757506000546001600160a01b03868116911614155b1561154257600d805460ff1916600117905561153383836118fb565b42600c55600d805460ff191690555b6009546000906001600160a01b038881169116148061156e57506009546001600160a01b038781169116145b15611577575060015b6001600160a01b03871660009081526012602052604090205460ff16806115b657506001600160a01b03861660009081526012602052604090205460ff165b156115bf575060005b600d5460ff16156115ce575060005b80156116105760006127106115e1611014565b6115eb9088611ec9565b6115f59190611ee0565b90506116018187611e3d565b955061160e883083611a51565b505b61161b878787611a51565b6007546001600160a01b031663e30443bc8861164c816001600160a01b031660009081526005602052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561169257600080fd5b505af11580156116a6573d6000803e3d6000fd5b50506007546001600160a01b0316915063e30443bc9050876116dd816001600160a01b031660009081526005602052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561172357600080fd5b505af1158015611737573d6000803e3d6000fd5b5050505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821660009081526010602052604090205481151560ff90911615150361182a5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c7565000000000000000060648201526084016108b1565b6001600160a01b0382166000908152601060205260409020805460ff191682158015919091179091556118be576007546040516312ac38a160e21b81526001600160a01b0384811660048301526001602483015290911690634ab0e28490604401600060405180830381600087803b1580156118a557600080fd5b505af11580156118b9573d6000803e3d6000fd5b505050505b816001600160a01b03167fbd45f3ff99150abe135261fb083099c02494f1fef9aab02d35a0de98ea65f27d8260405161090e911515815260200190565b60008211611907575050565b600080600760009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561195d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119819190611e0e565b111561198a5750815b4761199482611b46565b6000836119a18347611e3d565b6119ab9190611e50565b90508015611a4a576007546040516000916001600160a01b03169083908381818185875af1925050503d8060008114611a00576040519150601f19603f3d011682016040523d82523d6000602084013e611a05565b606091505b505090508015610b1f5760408051858152602081018490527f87d0c19faf3c36e435b9a7e393cbba60f861050d34139f75a482b827635a2162910160405180910390a1505b5050505050565b6001600160a01b038316611a7b57604051634b637e8f60e11b8152600060048201526024016108b1565b6001600160a01b038216611aa55760405163ec442f0560e01b8152600060048201526024016108b1565b6001600160a01b03831660009081526005602052604081208054839290611acd908490611e3d565b90915550506001600160a01b03821660009081526005602052604081208054839290611afa908490611e50565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516111e291815260200190565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611b7b57611b7b611f02565b6001600160a01b03928316602091820292909201810191909152600854604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611bd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf89190611f18565b81600181518110611c0b57611c0b611f02565b6001600160a01b039283166020918202929092010152600854611c3191309116846110ca565b60085460405163791ac94760e01b81526001600160a01b039091169063791ac94790610af1908590600090869030904290600401611f35565b60006020808352835180602085015260005b81811015611c9857858101830151858201604001528201611c7c565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610ba357600080fd5b60008060408385031215611ce157600080fd5b8235611cec81611cb9565b946020939093013593505050565b600060208284031215611d0c57600080fd5b8135611d1781611cb9565b9392505050565b8015158114610ba357600080fd5b60008060408385031215611d3f57600080fd5b8235611d4a81611cb9565b91506020830135611d5a81611d1e565b809150509250929050565b600080600060608486031215611d7a57600080fd5b8335611d8581611cb9565b92506020840135611d9581611cb9565b929592945050506040919091013590565b60008060408385031215611db957600080fd5b8235611dc481611cb9565b91506020830135611d5a81611cb9565b600181811c90821680611de857607f821691505b602082108103611e0857634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611e2057600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561079257610792611e27565b8082018082111561079257610792611e27565b600060208284031215611e7557600080fd5b8151611d1781611d1e565b600080600080600060a08688031215611e9857600080fd5b8551611ea381611cb9565b602087015160408801516060890151608090990151929a91995097965090945092505050565b808202811582820484141761079257610792611e27565b600082611efd57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611f2a57600080fd5b8151611d1781611cb9565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015611f875784516001600160a01b031683529383019391830191600101611f62565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122051a45bb5868974e643c66957ac60e8394dfae8e04bf2ad13b01994050dcc35e164736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000008155228c7ef072996bed86a2df14b21d7c718d4000000000000000000000000000000000000000000000000000000000000000b5370616365204c6c616d6100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054c4c414d41000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : __name (string): Space Llama
Arg [1] : __symbol (string): LLAMA
Arg [2] : _uniswapV2Router02 (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [3] : _contractOwner (address): 0x08155228c7eF072996bed86A2Df14B21D7C718d4
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [3] : 00000000000000000000000008155228c7ef072996bed86a2df14b21d7c718d4
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [5] : 5370616365204c6c616d61000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 4c4c414d41000000000000000000000000000000000000000000000000000000
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.