ERC-20
Gaming
Overview
Max Total Supply
12,753,104.431773643655067076 BOOP
Holders
12,813 (0.00%)
Market
Price
$0.03 @ 0.000011 ETH (-7.47%)
Onchain Market Cap
$377,748.61
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
213 BOOPValue
$6.31 ( ~0.00234159725291209 Eth) [0.0017%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|---|---|---|---|---|
1 | Uniswap V3 (Ethereum) | 0X8013266CB5C9DD48BE3AD7D1CE832874D64B3CE1-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | $0.0296 0.0000110 Eth | $2,298.35 76,445.290 0X8013266CB5C9DD48BE3AD7D1CE832874D64B3CE1 | 100.0000% |
Contract Name:
Boop
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.16; import "@oz/access/Ownable.sol"; import "@oz/token/ERC20/IERC20.sol"; import "@oz/token/ERC20/ERC20.sol"; import "@oz/security/ReentrancyGuard.sol"; import {IBattleZone} from "./interfaces/IBattleZone.sol"; contract Boop is ERC20, ReentrancyGuard, Ownable { IBattleZone public battleZone; uint256 public MAX_SUPPLY; uint256 public constant MAX_TAX_VALUE = 100; uint256 public spendTaxAmount; uint256 public withdrawTaxAmount; uint256 public reserveTaxAmount; address public reserveTaxAddress; uint256 public bribesDistributed; uint256 public activeTaxCollectedAmount; bool public tokenCapSet; bool public withdrawTaxCollectionStopped; bool public spendTaxCollectionStopped; bool public isPaused; bool public isDepositPaused; bool public isWithdrawPaused; bool public isTransferPaused; mapping(address => bool) private _isAuthorised; address[] public authorisedLog; mapping(address => uint256) public depositedAmount; mapping(address => uint256) public spentAmount; modifier onlyAuthorised() { require(_isAuthorised[msg.sender], "Not Authorised"); _; } modifier whenNotPaused() { require(!isPaused, "Transfers paused!"); _; } event Withdraw(address indexed userAddress, uint256 amount, uint256 tax); event Deposit(address indexed userAddress, uint256 amount); event DepositFor( address indexed caller, address indexed userAddress, uint256 amount ); event Spend( address indexed caller, address indexed userAddress, uint256 amount, uint256 tax ); event ClaimTax( address indexed caller, address indexed userAddress, uint256 amount ); event ClaimReservedTax( address indexed caller, address indexed userAddress, uint256 amount ); event InternalTransfer( address indexed from, address indexed to, uint256 amount ); constructor(address battleZone_) ERC20("Boop", "BOOP") { _isAuthorised[msg.sender] = true; isPaused = true; isTransferPaused = true; withdrawTaxAmount = 30; spendTaxAmount = 0; reserveTaxAmount = 50; reserveTaxAddress = address(0); battleZone = IBattleZone(battleZone_); } /** * @dev Returnes current spendable balance of a specific user. This balance can be spent by user for other collections without * withdrawal to ERC-20 token OR can be withdrawn to ERC-20 token. */ function getUserBalance(address user) public view returns (uint256) { return (battleZone.getAccumulatedAmount(user) + depositedAmount[user] - spentAmount[user]); } /** * @dev Function to deposit ERC-20 to the game balance. */ function depositBeepBoop(uint256 amount) public nonReentrant whenNotPaused { require(!isDepositPaused, "Deposit Paused"); require(balanceOf(msg.sender) >= amount, "Insufficient balance"); _burn(msg.sender, amount); depositedAmount[msg.sender] += amount; emit Deposit(msg.sender, amount); } /** * @dev Function to withdraw game to ERC-20. */ function withdrawBeepBoop(uint256 amount) public nonReentrant whenNotPaused { require(!isWithdrawPaused, "Withdraw Paused"); require(getUserBalance(msg.sender) >= amount, "Insufficient balance"); uint256 tax = withdrawTaxCollectionStopped ? 0 : (amount * withdrawTaxAmount) / 100; spentAmount[msg.sender] += amount; if (reserveTaxAmount != 0 && reserveTaxAddress != address(0)) { activeTaxCollectedAmount += (tax * (100 - reserveTaxAmount)) / 100; _mint(reserveTaxAddress, (tax * reserveTaxAmount) / 100); } else { activeTaxCollectedAmount += tax; } _mint(msg.sender, (amount - tax)); emit Withdraw(msg.sender, amount, tax); } /** * @dev Function to transfer game from one account to another. */ function transferBeepBoop(address to, uint256 amount) public nonReentrant whenNotPaused { require(!isTransferPaused, "Transfer Paused"); require(getUserBalance(msg.sender) >= amount, "Insufficient balance"); spentAmount[msg.sender] += amount; depositedAmount[to] += amount; emit InternalTransfer(msg.sender, to, amount); } /** * @dev Function to spend user balance. Can be called by other authorised contracts. To be used for internal purchases of other NFTs, etc. */ function spendBeepBoop(address user, uint256 amount) external onlyAuthorised nonReentrant { require(getUserBalance(user) >= amount, "Insufficient balance"); uint256 tax = spendTaxCollectionStopped ? 0 : (amount * spendTaxAmount) / 100; spentAmount[user] += amount; activeTaxCollectedAmount += tax; emit Spend(msg.sender, user, amount, tax); } /** * @dev Function to deposit tokens to a user balance. Can be only called by an authorised contracts. */ function depositBeepBoopFor(address user, uint256 amount) public onlyAuthorised nonReentrant { _depositBeepBoopFor(user, amount); } /** * @dev Function to tokens to the user balances. Can be only called by an authorised users. */ function distributeBeepBoop(address[] memory user, uint256[] memory amount) public onlyAuthorised nonReentrant { require(user.length == amount.length, "Wrong arrays passed"); for (uint256 i; i < user.length; i++) { _depositBeepBoopFor(user[i], amount[i]); } } function _depositBeepBoopFor(address user, uint256 amount) internal { require(user != address(0), "Deposit to 0 address"); depositedAmount[user] += amount; emit DepositFor(msg.sender, user, amount); } /** * @dev Function to mint tokens to a user balance. Can be only called by an authorised contracts. */ function mintFor(address user, uint256 amount) external onlyAuthorised nonReentrant { if (tokenCapSet) { require( totalSupply() + amount <= MAX_SUPPLY, "You try to mint more than max supply" ); } _mint(user, amount); } /** * @dev Function to claim tokens from the tax accumulated pot. Can be only called by an authorised contracts. */ function claimBeepBoopTax(address user, uint256 amount) public onlyAuthorised nonReentrant { require(activeTaxCollectedAmount >= amount, "Insufficient balance"); activeTaxCollectedAmount -= amount; depositedAmount[user] += amount; bribesDistributed += amount; emit ClaimTax(msg.sender, user, amount); } /** * @dev Function returns maxSupply set by admin. By default returns error (Max supply is not set). */ function getMaxSupply() public view returns (uint256) { require(tokenCapSet, "Max supply is not set"); return MAX_SUPPLY; } /* ADMIN FUNCTIONS */ /** * @dev Function allows admin to set total supply of token. */ function setTokenCap(uint256 tokenCup) public onlyOwner { require( totalSupply() < tokenCup, "Value is smaller than the number of existing tokens" ); require(!tokenCapSet, "Token cap has been already set"); MAX_SUPPLY = tokenCup; } /** * @dev Function allows admin add authorised address. The function also logs what addresses were authorised for transparancy. */ function authorise(address addressToAuth) public onlyOwner { _isAuthorised[addressToAuth] = true; authorisedLog.push(addressToAuth); } /** * @dev Function allows admin add unauthorised address. */ function unauthorise(address addressToUnAuth) public onlyOwner { _isAuthorised[addressToUnAuth] = false; } /** * @dev Function allows admin update the address of staking address. */ function changeBattleZoneContract(address battleZone_) public onlyOwner { battleZone = IBattleZone(battleZone_); authorise(battleZone_); } /** * @dev Function allows admin to update limmit of tax on withdraw. */ function updateWithdrawTaxAmount(uint256 _taxAmount) public onlyOwner { require(_taxAmount < MAX_TAX_VALUE, "Wrong value passed"); withdrawTaxAmount = _taxAmount; } /** * @dev Function allows admin to update limmit of tax on reserve. */ function updateReserveTaxAmount(uint256 _taxAmount) public onlyOwner { require(_taxAmount < MAX_TAX_VALUE, "Wrong value passed"); reserveTaxAmount = _taxAmount; } /** * @dev Function allows admin to update limmit of tax on reserve. */ function updateReserveTaxRecipient(address address_) public onlyOwner { reserveTaxAddress = address_; } /** * @dev Function allows admin to update tax amount on spend. */ function updateSpendTaxAmount(uint256 _taxAmount) public onlyOwner { require(_taxAmount < MAX_TAX_VALUE, "Wrong value passed"); spendTaxAmount = _taxAmount; } /** * @dev Function allows admin to stop tax collection on withdraw. */ function stopTaxCollectionOnWithdraw(bool _stop) public onlyOwner { withdrawTaxCollectionStopped = _stop; } /** * @dev Function allows admin to stop tax collection on spend. */ function stopTaxCollectionOnSpend(bool _stop) public onlyOwner { spendTaxCollectionStopped = _stop; } /** * @dev Function allows admin to pause all in game transfactions. */ function pauseGameBeepBoop(bool _pause) public onlyOwner { isPaused = _pause; } /** * @dev Function allows admin to pause in game transfers. */ function pauseTransfers(bool _pause) public onlyOwner { isTransferPaused = _pause; } /** * @dev Function allows admin to pause in game withdraw. */ function pauseWithdraw(bool _pause) public onlyOwner { isWithdrawPaused = _pause; } /** * @dev Function allows admin to pause in game deposit. */ function pauseDeposits(bool _pause) public onlyOwner { isDepositPaused = _pause; } /** * @dev Function allows admin to withdraw ETH accidentally dropped to the contract. */ function rescue() external onlyOwner { payable(owner()).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.16; interface IBattleZone { event Deposit( address indexed staker, address contractAddress, uint256 tokensAmount ); event Withdraw( address indexed staker, address contractAddress, uint256 tokensAmount ); event AutoDeposit( address indexed contractAddress, uint256 tokenId, address indexed owner ); event WithdrawStuckERC721( address indexed receiver, address indexed tokenAddress, uint256 indexed tokenId ); function deposit( address contractAddress, uint256[] memory tokenIds, uint256[] memory tokenRarities, bytes calldata signature ) external; function withdraw(address contractAddress, uint256[] memory tokenIds) external; function depositToolboxes( uint256 beepBoopTokenId, uint256[] memory toolboxTokenIds ) external; function withdrawToolboxes(uint256[] memory toolboxTokenIds) external; function getAccumulatedAmount(address staker) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "remappings": [ "@erc721a/=lib/erc721a/contracts/", "@oz-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "@oz/=lib/openzeppelin-contracts/contracts/", "@prb/test/=lib/prb-test/src/", "@solady/=lib/solady/src/", "@std/=lib/forge-std/src/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc721a/=lib/erc721a/contracts/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/", "prb-test/=lib/prb-test/src/", "solady/=lib/solady/src/", "solmate/=lib/solady/lib/solmate/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"battleZone_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimReservedTax","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimTax","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositFor","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":"amount","type":"uint256"}],"name":"InternalTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tax","type":"uint256"}],"name":"Spend","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":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tax","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TAX_VALUE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activeTaxCollectedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addressToAuth","type":"address"}],"name":"authorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"authorisedLog","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"battleZone","outputs":[{"internalType":"contract IBattleZone","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bribesDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"battleZone_","type":"address"}],"name":"changeBattleZoneContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimBeepBoopTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositBeepBoop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositBeepBoopFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"user","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"distributeBeepBoop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserBalance","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":[],"name":"isDepositPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTransferPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWithdrawPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseGameBeepBoop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveTaxAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserveTaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenCup","type":"uint256"}],"name":"setTokenCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"spendBeepBoop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spendTaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"spendTaxCollectionStopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"spentAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_stop","type":"bool"}],"name":"stopTaxCollectionOnSpend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_stop","type":"bool"}],"name":"stopTaxCollectionOnWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCapSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferBeepBoop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addressToUnAuth","type":"address"}],"name":"unauthorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxAmount","type":"uint256"}],"name":"updateReserveTaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"updateReserveTaxRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxAmount","type":"uint256"}],"name":"updateSpendTaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxAmount","type":"uint256"}],"name":"updateWithdrawTaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawBeepBoop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawTaxCollectionStopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620025f6380380620025f6833981016040819052620000349162000167565b604051806040016040528060048152602001630426f6f760e41b815250604051806040016040528060048152602001630424f4f560e41b81525081600390816200007f91906200023e565b5060046200008e82826200023e565b5050600160055550620000a13362000115565b3360009081526010602052604081208054600160ff19909116179055600f805466ff0000ff00000019166601000001000000179055601e600a556009556032600b55600c80546001600160a01b0319908116909155600780549091166001600160a01b03929092169190911790556200030a565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156200017a57600080fd5b81516001600160a01b03811681146200019257600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001c457607f821691505b602082108103620001e557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200023957600081815260208120601f850160051c81016020861015620002145750805b601f850160051c820191505b81811015620002355782815560010162000220565b5050505b505050565b81516001600160401b038111156200025a576200025a62000199565b62000272816200026b8454620001af565b84620001eb565b602080601f831160018114620002aa5760008415620002915750858301515b600019600386901b1c1916600185901b17855562000235565b600085815260208120601f198616915b82811015620002db57888601518255948401946001909101908401620002ba565b5085821015620002fa5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6122dc806200031a6000396000f3fe608060405234801561001057600080fd5b506004361061038e5760003560e01c8063796090b2116101de578063c2f7df3d1161010f578063e8390a72116100ad578063f3b603551161007c578063f3b6035514610788578063f560d0b21461079b578063fd87c511146107b0578063fec06153146107c357600080fd5b8063e8390a721461073c578063ebd462cb1461074f578063f11aafe114610762578063f2fde38b1461077557600080fd5b8063da1919b3116100e9578063da1919b3146106f0578063dd62ed3e14610703578063e6bcc16e14610716578063e7f8ed9d1461072957600080fd5b8063c2f7df3d146106b7578063c82bc61d146106ca578063c92f84e0146106dd57600080fd5b8063a1a1ef431161017c578063aa3a8f6711610156578063aa3a8f6714610674578063b187bd261461067d578063c0bfdd6214610691578063c2eae392146106a457600080fd5b8063a1a1ef431461063a578063a457c2d71461064e578063a9059cbb1461066157600080fd5b80638da5cb5b116101b85780638da5cb5b146106055780639055f5581461061657806395d89b41146106295780639a25ad7c1461063157600080fd5b8063796090b2146105b45780637e22e39d146105df57806380833d78146105f257600080fd5b806344b8e777116102c357806366e6c8af1161026157806370a082311161023057806370a082311461055e578063710cf8e614610587578063715018a614610599578063738b62e5146105a157600080fd5b806366e6c8af1461050257806367800b5f146105155780636d031d0a1461052b5780636f92a74a1461054b57600080fd5b80634a4643f71161029d5780634a4643f7146104b45780634c0f38c2146104d457806351a25566146104dc57806359d7d9de146104ef57600080fd5b806344b8e77714610485578063477348921461048e5780634815f73a146104a157600080fd5b80632041baf111610330578063313ce5671161030a578063313ce5671461044757806332cb6b0c146104565780633597fb501461045f578063395093511461047257600080fd5b80632041baf11461041857806323b872dd146104215780632854bc7e1461043457600080fd5b806318160ddd1161036c57806318160ddd146103e95780631fbe1979146103fb57806320076ee614610403578063200847dd1461040b57600080fd5b806306fdde03146103935780630814e353146103b1578063095ea7b3146103c6575b600080fd5b61039b6107cc565b6040516103a89190611e04565b60405180910390f35b6103c46103bf366004611e52565b61085e565b005b6103d96103d4366004611e87565b610984565b60405190151581526020016103a8565b6002545b6040519081526020016103a8565b6103c461099e565b6103ed606481565b600f546103d99060ff1681565b6103ed600e5481565b6103d961042f366004611eb1565b6109df565b6103c4610442366004611e52565b610a03565b604051601281526020016103a8565b6103ed60085481565b6103c461046d366004611e52565b610ad6565b6103d9610480366004611e87565b610b03565b6103ed600b5481565b6103ed61049c366004611eed565b610b25565b6103c46104af366004611fe5565b610bc7565b6103ed6104c2366004611eed565b60126020526000908152604090205481565b6103ed610cae565b6103c46104ea3660046120a5565b610d02565b6103c46104fd3660046120a5565b610d24565b6103c4610510366004611eed565b610d48565b600f546103d99065010000000000900460ff1681565b6103ed610539366004611eed565b60136020526000908152604090205481565b6103c4610559366004611e52565b610db6565b6103ed61056c366004611eed565b6001600160a01b031660009081526020819052604090205490565b600f546103d990610100900460ff1681565b6103c4610de3565b6103c46105af3660046120a5565b610df7565b600c546105c7906001600160a01b031681565b6040516001600160a01b0390911681526020016103a8565b600f546103d99062010000900460ff1681565b6103c4610600366004611eed565b610e1f565b6006546001600160a01b03166105c7565b6103c4610624366004611e52565b610e48565b61039b611049565b6103ed600a5481565b600f546103d990600160301b900460ff1681565b6103d961065c366004611e87565b611058565b6103d961066f366004611e87565b6110d3565b6103ed600d5481565b600f546103d9906301000000900460ff1681565b6103c461069f366004611e87565b6110e1565b6103c46106b2366004611eed565b61112c565b6103c46106c5366004611e87565b611158565b6105c76106d8366004611e52565b611288565b6103c46106eb366004611eed565b6112b2565b6103c46106fe366004611e87565b6112dc565b6103ed6107113660046120c7565b611399565b6103c4610724366004611e52565b6113c4565b6103c4610737366004611e87565b6113f1565b6103c461074a3660046120a5565b611533565b6103c461075d3660046120a5565b611559565b6103c46107703660046120a5565b611583565b6103c4610783366004611eed565b6115ac565b6103c4610796366004611e87565b611622565b600f546103d990640100000000900460ff1681565b6007546105c7906001600160a01b031681565b6103ed60095481565b6060600380546107db906120fa565b80601f0160208091040260200160405190810160405280929190818152602001828054610807906120fa565b80156108545780601f1061082957610100808354040283529160200191610854565b820191906000526020600020905b81548152906001019060200180831161083757829003601f168201915b5050505050905090565b610866611715565b600f546301000000900460ff16156108995760405162461bcd60e51b815260040161089090612134565b60405180910390fd5b600f54640100000000900460ff16156108e55760405162461bcd60e51b815260206004820152600e60248201526d11195c1bdcda5d0814185d5cd95960921b6044820152606401610890565b336000908152602081905260409020548111156109145760405162461bcd60e51b81526004016108909061215f565b61091e338261176e565b336000908152601260205260408120805483929061093d9084906121a3565b909155505060405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a26109816001600555565b50565b6000336109928185856118a1565b60019150505b92915050565b6109a66119bd565b6006546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610981573d6000803e3d6000fd5b6000336109ed858285611a17565b6109f8858585611a91565b506001949350505050565b610a0b6119bd565b80610a1560025490565b10610a7e5760405162461bcd60e51b815260206004820152603360248201527f56616c756520697320736d616c6c6572207468616e20746865206e756d626572604482015272206f66206578697374696e6720746f6b656e7360681b6064820152608401610890565b600f5460ff1615610ad15760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e2063617020686173206265656e20616c72656164792073657400006044820152606401610890565b600855565b610ade6119bd565b60648110610afe5760405162461bcd60e51b8152600401610890906121b6565b600b55565b600033610992818585610b168383611399565b610b2091906121a3565b6118a1565b6001600160a01b038181166000818152601360209081526040808320546012909252808320546007549151630412966760e01b8152600481019590955292949193911690630412966790602401602060405180830381865afa158015610b8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb391906121e2565b610bbd91906121a3565b61099891906121fb565b3360009081526010602052604090205460ff16610bf65760405162461bcd60e51b81526004016108909061220e565b610bfe611715565b8051825114610c455760405162461bcd60e51b815260206004820152601360248201527215dc9bdb99c8185c9c985e5cc81c185cdcd959606a1b6044820152606401610890565b60005b8251811015610c9f57610c8d838281518110610c6657610c66612236565b6020026020010151838381518110610c8057610c80612236565b6020026020010151611c35565b80610c978161224c565b915050610c48565b50610caa6001600555565b5050565b600f5460009060ff16610cfb5760405162461bcd60e51b815260206004820152601560248201527413585e081cdd5c1c1b1e481a5cc81b9bdd081cd95d605a1b6044820152606401610890565b5060085490565b610d0a6119bd565b600f80549115156101000261ff0019909216919091179055565b610d2c6119bd565b600f8054911515620100000262ff000019909216919091179055565b610d506119bd565b6001600160a01b03166000818152601060205260408120805460ff191660019081179091556011805491820181559091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680180546001600160a01b0319169091179055565b610dbe6119bd565b60648110610dde5760405162461bcd60e51b8152600401610890906121b6565b600955565b610deb6119bd565b610df56000611cf3565b565b610dff6119bd565b600f80549115156401000000000264ff0000000019909216919091179055565b610e276119bd565b6001600160a01b03166000908152601060205260409020805460ff19169055565b610e50611715565b600f546301000000900460ff1615610e7a5760405162461bcd60e51b815260040161089090612134565b600f5465010000000000900460ff1615610ec85760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc814185d5cd959608a1b6044820152606401610890565b80610ed233610b25565b1015610ef05760405162461bcd60e51b81526004016108909061215f565b600f54600090610100900460ff16610f21576064600a5483610f129190612265565b610f1c9190612284565b610f24565b60005b33600090815260136020526040812080549293508492909190610f489084906121a3565b9091555050600b5415801590610f685750600c546001600160a01b031615155b15610fdd576064600b546064610f7e91906121fb565b610f889083612265565b610f929190612284565b600e6000828254610fa391906121a3565b9091555050600c54600b54610fd8916001600160a01b031690606490610fc99085612265565b610fd39190612284565b611d45565b610ff5565b80600e6000828254610fef91906121a3565b90915550505b61100333610fd383856121fb565b604080518381526020810183905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a2506109816001600555565b6060600480546107db906120fa565b600033816110668286611399565b9050838110156110c65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610890565b6109f882868684036118a1565b600033610992818585611a91565b3360009081526010602052604090205460ff166111105760405162461bcd60e51b81526004016108909061220e565b611118611715565b6111228282611c35565b610caa6001600555565b6111346119bd565b600780546001600160a01b0319166001600160a01b03831617905561098181610d48565b3360009081526010602052604090205460ff166111875760405162461bcd60e51b81526004016108909061220e565b61118f611715565b8061119983610b25565b10156111b75760405162461bcd60e51b81526004016108909061215f565b600f5460009062010000900460ff166111e9576064600954836111da9190612265565b6111e49190612284565b6111ec565b60005b6001600160a01b0384166000908152601360205260408120805492935084929091906112199084906121a3565b9250508190555080600e600082825461123291906121a3565b909155505060408051838152602081018390526001600160a01b0385169133917fed8cfe3600cacf009dc67354491d44da19a77f26a4aed42181ba6824ccb35d72910160405180910390a350610caa6001600555565b6011818154811061129857600080fd5b6000918252602090912001546001600160a01b0316905081565b6112ba6119bd565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526010602052604090205460ff1661130b5760405162461bcd60e51b81526004016108909061220e565b611313611715565b600f5460ff161561138f576008548161132b60025490565b61133591906121a3565b111561138f5760405162461bcd60e51b8152602060048201526024808201527f596f752074727920746f206d696e74206d6f7265207468616e206d617820737560448201526370706c7960e01b6064820152608401610890565b6111228282611d45565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6113cc6119bd565b606481106113ec5760405162461bcd60e51b8152600401610890906121b6565b600a55565b6113f9611715565b600f546301000000900460ff16156114235760405162461bcd60e51b815260040161089090612134565b600f54600160301b900460ff161561146f5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8814185d5cd959608a1b6044820152606401610890565b8061147933610b25565b10156114975760405162461bcd60e51b81526004016108909061215f565b33600090815260136020526040812080548392906114b69084906121a3565b90915550506001600160a01b038216600090815260126020526040812080548392906114e39084906121a3565b90915550506040518181526001600160a01b0383169033907fe2080c8fc8d86c864d8dc081fadaebf2be7191086615e786f954420f13ed122a906020015b60405180910390a3610caa6001600555565b61153b6119bd565b600f805491151563010000000263ff00000019909216919091179055565b6115616119bd565b600f8054911515650100000000000265ff000000000019909216919091179055565b61158b6119bd565b600f8054911515600160301b0266ff00000000000019909216919091179055565b6115b46119bd565b6001600160a01b0381166116195760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610890565b61098181611cf3565b3360009081526010602052604090205460ff166116515760405162461bcd60e51b81526004016108909061220e565b611659611715565b80600e54101561167b5760405162461bcd60e51b81526004016108909061215f565b80600e600082825461168d91906121fb565b90915550506001600160a01b038216600090815260126020526040812080548392906116ba9084906121a3565b9250508190555080600d60008282546116d391906121a3565b90915550506040518181526001600160a01b0383169033907f1ad2283cc65e3e122c0a874bda25abbd844e8ae88fa9512b4849ee1b58b6570d90602001611521565b6002600554036117675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610890565b6002600555565b6001600160a01b0382166117ce5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610890565b6001600160a01b038216600090815260208190526040902054818110156118425760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610890565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a3505050565b6001600160a01b0383166119035760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610890565b6001600160a01b0382166119645760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610890565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101611894565b6006546001600160a01b03163314610df55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610890565b6000611a238484611399565b90506000198114611a8b5781811015611a7e5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610890565b611a8b84848484036118a1565b50505050565b6001600160a01b038316611af55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610890565b6001600160a01b038216611b575760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610890565b6001600160a01b03831660009081526020819052604090205481811015611bcf5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610890565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611a8b565b6001600160a01b038216611c825760405162461bcd60e51b81526020600482015260146024820152734465706f73697420746f2030206164647265737360601b6044820152606401610890565b6001600160a01b03821660009081526012602052604081208054839290611caa9084906121a3565b90915550506040518181526001600160a01b0383169033907f6b64443f4cc3aac2df66fff76675a29dc321ce9efebffb006f528db1690179a09060200160405180910390a35050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611d9b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610890565b8060026000828254611dad91906121a3565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b81811015611e3157858101830151858201604001528201611e15565b506000604082860101526040601f19601f8301168501019250505092915050565b600060208284031215611e6457600080fd5b5035919050565b80356001600160a01b0381168114611e8257600080fd5b919050565b60008060408385031215611e9a57600080fd5b611ea383611e6b565b946020939093013593505050565b600080600060608486031215611ec657600080fd5b611ecf84611e6b565b9250611edd60208501611e6b565b9150604084013590509250925092565b600060208284031215611eff57600080fd5b611f0882611e6b565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611f4e57611f4e611f0f565b604052919050565b600067ffffffffffffffff821115611f7057611f70611f0f565b5060051b60200190565b600082601f830112611f8b57600080fd5b81356020611fa0611f9b83611f56565b611f25565b82815260059290921b84018101918181019086841115611fbf57600080fd5b8286015b84811015611fda5780358352918301918301611fc3565b509695505050505050565b60008060408385031215611ff857600080fd5b823567ffffffffffffffff8082111561201057600080fd5b818501915085601f83011261202457600080fd5b81356020612034611f9b83611f56565b82815260059290921b8401810191818101908984111561205357600080fd5b948201945b838610156120785761206986611e6b565b82529482019490820190612058565b9650508601359250508082111561208e57600080fd5b5061209b85828601611f7a565b9150509250929050565b6000602082840312156120b757600080fd5b81358015158114611f0857600080fd5b600080604083850312156120da57600080fd5b6120e383611e6b565b91506120f160208401611e6b565b90509250929050565b600181811c9082168061210e57607f821691505b60208210810361212e57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601190820152705472616e7366657273207061757365642160781b604082015260600190565b602080825260149082015273496e73756666696369656e742062616c616e636560601b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156109985761099861218d565b60208082526012908201527115dc9bdb99c81d985b1d59481c185cdcd95960721b604082015260600190565b6000602082840312156121f457600080fd5b5051919050565b818103818111156109985761099861218d565b6020808252600e908201526d139bdd08105d5d1a1bdc9a5cd95960921b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006001820161225e5761225e61218d565b5060010190565b600081600019048311821515161561227f5761227f61218d565b500290565b6000826122a157634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220da8a60194a117b0d5cb0842992df256e448e613e6fb4d79ef34f09f403e2e49064736f6c63430008100033000000000000000000000000ff35d339ee07acde54c135fbee39765010620d33
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061038e5760003560e01c8063796090b2116101de578063c2f7df3d1161010f578063e8390a72116100ad578063f3b603551161007c578063f3b6035514610788578063f560d0b21461079b578063fd87c511146107b0578063fec06153146107c357600080fd5b8063e8390a721461073c578063ebd462cb1461074f578063f11aafe114610762578063f2fde38b1461077557600080fd5b8063da1919b3116100e9578063da1919b3146106f0578063dd62ed3e14610703578063e6bcc16e14610716578063e7f8ed9d1461072957600080fd5b8063c2f7df3d146106b7578063c82bc61d146106ca578063c92f84e0146106dd57600080fd5b8063a1a1ef431161017c578063aa3a8f6711610156578063aa3a8f6714610674578063b187bd261461067d578063c0bfdd6214610691578063c2eae392146106a457600080fd5b8063a1a1ef431461063a578063a457c2d71461064e578063a9059cbb1461066157600080fd5b80638da5cb5b116101b85780638da5cb5b146106055780639055f5581461061657806395d89b41146106295780639a25ad7c1461063157600080fd5b8063796090b2146105b45780637e22e39d146105df57806380833d78146105f257600080fd5b806344b8e777116102c357806366e6c8af1161026157806370a082311161023057806370a082311461055e578063710cf8e614610587578063715018a614610599578063738b62e5146105a157600080fd5b806366e6c8af1461050257806367800b5f146105155780636d031d0a1461052b5780636f92a74a1461054b57600080fd5b80634a4643f71161029d5780634a4643f7146104b45780634c0f38c2146104d457806351a25566146104dc57806359d7d9de146104ef57600080fd5b806344b8e77714610485578063477348921461048e5780634815f73a146104a157600080fd5b80632041baf111610330578063313ce5671161030a578063313ce5671461044757806332cb6b0c146104565780633597fb501461045f578063395093511461047257600080fd5b80632041baf11461041857806323b872dd146104215780632854bc7e1461043457600080fd5b806318160ddd1161036c57806318160ddd146103e95780631fbe1979146103fb57806320076ee614610403578063200847dd1461040b57600080fd5b806306fdde03146103935780630814e353146103b1578063095ea7b3146103c6575b600080fd5b61039b6107cc565b6040516103a89190611e04565b60405180910390f35b6103c46103bf366004611e52565b61085e565b005b6103d96103d4366004611e87565b610984565b60405190151581526020016103a8565b6002545b6040519081526020016103a8565b6103c461099e565b6103ed606481565b600f546103d99060ff1681565b6103ed600e5481565b6103d961042f366004611eb1565b6109df565b6103c4610442366004611e52565b610a03565b604051601281526020016103a8565b6103ed60085481565b6103c461046d366004611e52565b610ad6565b6103d9610480366004611e87565b610b03565b6103ed600b5481565b6103ed61049c366004611eed565b610b25565b6103c46104af366004611fe5565b610bc7565b6103ed6104c2366004611eed565b60126020526000908152604090205481565b6103ed610cae565b6103c46104ea3660046120a5565b610d02565b6103c46104fd3660046120a5565b610d24565b6103c4610510366004611eed565b610d48565b600f546103d99065010000000000900460ff1681565b6103ed610539366004611eed565b60136020526000908152604090205481565b6103c4610559366004611e52565b610db6565b6103ed61056c366004611eed565b6001600160a01b031660009081526020819052604090205490565b600f546103d990610100900460ff1681565b6103c4610de3565b6103c46105af3660046120a5565b610df7565b600c546105c7906001600160a01b031681565b6040516001600160a01b0390911681526020016103a8565b600f546103d99062010000900460ff1681565b6103c4610600366004611eed565b610e1f565b6006546001600160a01b03166105c7565b6103c4610624366004611e52565b610e48565b61039b611049565b6103ed600a5481565b600f546103d990600160301b900460ff1681565b6103d961065c366004611e87565b611058565b6103d961066f366004611e87565b6110d3565b6103ed600d5481565b600f546103d9906301000000900460ff1681565b6103c461069f366004611e87565b6110e1565b6103c46106b2366004611eed565b61112c565b6103c46106c5366004611e87565b611158565b6105c76106d8366004611e52565b611288565b6103c46106eb366004611eed565b6112b2565b6103c46106fe366004611e87565b6112dc565b6103ed6107113660046120c7565b611399565b6103c4610724366004611e52565b6113c4565b6103c4610737366004611e87565b6113f1565b6103c461074a3660046120a5565b611533565b6103c461075d3660046120a5565b611559565b6103c46107703660046120a5565b611583565b6103c4610783366004611eed565b6115ac565b6103c4610796366004611e87565b611622565b600f546103d990640100000000900460ff1681565b6007546105c7906001600160a01b031681565b6103ed60095481565b6060600380546107db906120fa565b80601f0160208091040260200160405190810160405280929190818152602001828054610807906120fa565b80156108545780601f1061082957610100808354040283529160200191610854565b820191906000526020600020905b81548152906001019060200180831161083757829003601f168201915b5050505050905090565b610866611715565b600f546301000000900460ff16156108995760405162461bcd60e51b815260040161089090612134565b60405180910390fd5b600f54640100000000900460ff16156108e55760405162461bcd60e51b815260206004820152600e60248201526d11195c1bdcda5d0814185d5cd95960921b6044820152606401610890565b336000908152602081905260409020548111156109145760405162461bcd60e51b81526004016108909061215f565b61091e338261176e565b336000908152601260205260408120805483929061093d9084906121a3565b909155505060405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a26109816001600555565b50565b6000336109928185856118a1565b60019150505b92915050565b6109a66119bd565b6006546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610981573d6000803e3d6000fd5b6000336109ed858285611a17565b6109f8858585611a91565b506001949350505050565b610a0b6119bd565b80610a1560025490565b10610a7e5760405162461bcd60e51b815260206004820152603360248201527f56616c756520697320736d616c6c6572207468616e20746865206e756d626572604482015272206f66206578697374696e6720746f6b656e7360681b6064820152608401610890565b600f5460ff1615610ad15760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e2063617020686173206265656e20616c72656164792073657400006044820152606401610890565b600855565b610ade6119bd565b60648110610afe5760405162461bcd60e51b8152600401610890906121b6565b600b55565b600033610992818585610b168383611399565b610b2091906121a3565b6118a1565b6001600160a01b038181166000818152601360209081526040808320546012909252808320546007549151630412966760e01b8152600481019590955292949193911690630412966790602401602060405180830381865afa158015610b8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb391906121e2565b610bbd91906121a3565b61099891906121fb565b3360009081526010602052604090205460ff16610bf65760405162461bcd60e51b81526004016108909061220e565b610bfe611715565b8051825114610c455760405162461bcd60e51b815260206004820152601360248201527215dc9bdb99c8185c9c985e5cc81c185cdcd959606a1b6044820152606401610890565b60005b8251811015610c9f57610c8d838281518110610c6657610c66612236565b6020026020010151838381518110610c8057610c80612236565b6020026020010151611c35565b80610c978161224c565b915050610c48565b50610caa6001600555565b5050565b600f5460009060ff16610cfb5760405162461bcd60e51b815260206004820152601560248201527413585e081cdd5c1c1b1e481a5cc81b9bdd081cd95d605a1b6044820152606401610890565b5060085490565b610d0a6119bd565b600f80549115156101000261ff0019909216919091179055565b610d2c6119bd565b600f8054911515620100000262ff000019909216919091179055565b610d506119bd565b6001600160a01b03166000818152601060205260408120805460ff191660019081179091556011805491820181559091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680180546001600160a01b0319169091179055565b610dbe6119bd565b60648110610dde5760405162461bcd60e51b8152600401610890906121b6565b600955565b610deb6119bd565b610df56000611cf3565b565b610dff6119bd565b600f80549115156401000000000264ff0000000019909216919091179055565b610e276119bd565b6001600160a01b03166000908152601060205260409020805460ff19169055565b610e50611715565b600f546301000000900460ff1615610e7a5760405162461bcd60e51b815260040161089090612134565b600f5465010000000000900460ff1615610ec85760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc814185d5cd959608a1b6044820152606401610890565b80610ed233610b25565b1015610ef05760405162461bcd60e51b81526004016108909061215f565b600f54600090610100900460ff16610f21576064600a5483610f129190612265565b610f1c9190612284565b610f24565b60005b33600090815260136020526040812080549293508492909190610f489084906121a3565b9091555050600b5415801590610f685750600c546001600160a01b031615155b15610fdd576064600b546064610f7e91906121fb565b610f889083612265565b610f929190612284565b600e6000828254610fa391906121a3565b9091555050600c54600b54610fd8916001600160a01b031690606490610fc99085612265565b610fd39190612284565b611d45565b610ff5565b80600e6000828254610fef91906121a3565b90915550505b61100333610fd383856121fb565b604080518381526020810183905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a2506109816001600555565b6060600480546107db906120fa565b600033816110668286611399565b9050838110156110c65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610890565b6109f882868684036118a1565b600033610992818585611a91565b3360009081526010602052604090205460ff166111105760405162461bcd60e51b81526004016108909061220e565b611118611715565b6111228282611c35565b610caa6001600555565b6111346119bd565b600780546001600160a01b0319166001600160a01b03831617905561098181610d48565b3360009081526010602052604090205460ff166111875760405162461bcd60e51b81526004016108909061220e565b61118f611715565b8061119983610b25565b10156111b75760405162461bcd60e51b81526004016108909061215f565b600f5460009062010000900460ff166111e9576064600954836111da9190612265565b6111e49190612284565b6111ec565b60005b6001600160a01b0384166000908152601360205260408120805492935084929091906112199084906121a3565b9250508190555080600e600082825461123291906121a3565b909155505060408051838152602081018390526001600160a01b0385169133917fed8cfe3600cacf009dc67354491d44da19a77f26a4aed42181ba6824ccb35d72910160405180910390a350610caa6001600555565b6011818154811061129857600080fd5b6000918252602090912001546001600160a01b0316905081565b6112ba6119bd565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526010602052604090205460ff1661130b5760405162461bcd60e51b81526004016108909061220e565b611313611715565b600f5460ff161561138f576008548161132b60025490565b61133591906121a3565b111561138f5760405162461bcd60e51b8152602060048201526024808201527f596f752074727920746f206d696e74206d6f7265207468616e206d617820737560448201526370706c7960e01b6064820152608401610890565b6111228282611d45565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6113cc6119bd565b606481106113ec5760405162461bcd60e51b8152600401610890906121b6565b600a55565b6113f9611715565b600f546301000000900460ff16156114235760405162461bcd60e51b815260040161089090612134565b600f54600160301b900460ff161561146f5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8814185d5cd959608a1b6044820152606401610890565b8061147933610b25565b10156114975760405162461bcd60e51b81526004016108909061215f565b33600090815260136020526040812080548392906114b69084906121a3565b90915550506001600160a01b038216600090815260126020526040812080548392906114e39084906121a3565b90915550506040518181526001600160a01b0383169033907fe2080c8fc8d86c864d8dc081fadaebf2be7191086615e786f954420f13ed122a906020015b60405180910390a3610caa6001600555565b61153b6119bd565b600f805491151563010000000263ff00000019909216919091179055565b6115616119bd565b600f8054911515650100000000000265ff000000000019909216919091179055565b61158b6119bd565b600f8054911515600160301b0266ff00000000000019909216919091179055565b6115b46119bd565b6001600160a01b0381166116195760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610890565b61098181611cf3565b3360009081526010602052604090205460ff166116515760405162461bcd60e51b81526004016108909061220e565b611659611715565b80600e54101561167b5760405162461bcd60e51b81526004016108909061215f565b80600e600082825461168d91906121fb565b90915550506001600160a01b038216600090815260126020526040812080548392906116ba9084906121a3565b9250508190555080600d60008282546116d391906121a3565b90915550506040518181526001600160a01b0383169033907f1ad2283cc65e3e122c0a874bda25abbd844e8ae88fa9512b4849ee1b58b6570d90602001611521565b6002600554036117675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610890565b6002600555565b6001600160a01b0382166117ce5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610890565b6001600160a01b038216600090815260208190526040902054818110156118425760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610890565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a3505050565b6001600160a01b0383166119035760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610890565b6001600160a01b0382166119645760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610890565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101611894565b6006546001600160a01b03163314610df55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610890565b6000611a238484611399565b90506000198114611a8b5781811015611a7e5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610890565b611a8b84848484036118a1565b50505050565b6001600160a01b038316611af55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610890565b6001600160a01b038216611b575760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610890565b6001600160a01b03831660009081526020819052604090205481811015611bcf5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610890565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611a8b565b6001600160a01b038216611c825760405162461bcd60e51b81526020600482015260146024820152734465706f73697420746f2030206164647265737360601b6044820152606401610890565b6001600160a01b03821660009081526012602052604081208054839290611caa9084906121a3565b90915550506040518181526001600160a01b0383169033907f6b64443f4cc3aac2df66fff76675a29dc321ce9efebffb006f528db1690179a09060200160405180910390a35050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611d9b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610890565b8060026000828254611dad91906121a3565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b81811015611e3157858101830151858201604001528201611e15565b506000604082860101526040601f19601f8301168501019250505092915050565b600060208284031215611e6457600080fd5b5035919050565b80356001600160a01b0381168114611e8257600080fd5b919050565b60008060408385031215611e9a57600080fd5b611ea383611e6b565b946020939093013593505050565b600080600060608486031215611ec657600080fd5b611ecf84611e6b565b9250611edd60208501611e6b565b9150604084013590509250925092565b600060208284031215611eff57600080fd5b611f0882611e6b565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611f4e57611f4e611f0f565b604052919050565b600067ffffffffffffffff821115611f7057611f70611f0f565b5060051b60200190565b600082601f830112611f8b57600080fd5b81356020611fa0611f9b83611f56565b611f25565b82815260059290921b84018101918181019086841115611fbf57600080fd5b8286015b84811015611fda5780358352918301918301611fc3565b509695505050505050565b60008060408385031215611ff857600080fd5b823567ffffffffffffffff8082111561201057600080fd5b818501915085601f83011261202457600080fd5b81356020612034611f9b83611f56565b82815260059290921b8401810191818101908984111561205357600080fd5b948201945b838610156120785761206986611e6b565b82529482019490820190612058565b9650508601359250508082111561208e57600080fd5b5061209b85828601611f7a565b9150509250929050565b6000602082840312156120b757600080fd5b81358015158114611f0857600080fd5b600080604083850312156120da57600080fd5b6120e383611e6b565b91506120f160208401611e6b565b90509250929050565b600181811c9082168061210e57607f821691505b60208210810361212e57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601190820152705472616e7366657273207061757365642160781b604082015260600190565b602080825260149082015273496e73756666696369656e742062616c616e636560601b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156109985761099861218d565b60208082526012908201527115dc9bdb99c81d985b1d59481c185cdcd95960721b604082015260600190565b6000602082840312156121f457600080fd5b5051919050565b818103818111156109985761099861218d565b6020808252600e908201526d139bdd08105d5d1a1bdc9a5cd95960921b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006001820161225e5761225e61218d565b5060010190565b600081600019048311821515161561227f5761227f61218d565b500290565b6000826122a157634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220da8a60194a117b0d5cb0842992df256e448e613e6fb4d79ef34f09f403e2e49064736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ff35d339ee07acde54c135fbee39765010620d33
-----Decoded View---------------
Arg [0] : battleZone_ (address): 0xFf35D339EE07AcdE54c135Fbee39765010620d33
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ff35d339ee07acde54c135fbee39765010620d33
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.