ERC-20
Overview
Max Total Supply
877,716.687384259259258299 $BAMBOO
Holders
105
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BAMBOO
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; interface IPandaNFT { function balanceOf(address _user) external view returns (uint256); function ownerOf(uint256 tokenId) external view returns (address owner); function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); } contract BAMBOO is AccessControl, Ownable, ERC20 { using ECDSA for bytes32; /** CONTRACTS */ IPandaNFT public pandaNFT; /** ROLES */ bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE"); /** CLAIMING */ uint256 public initialIssuance = 0 * 10**18; uint256 public issuanceRate = 10 * 10**18; uint256 public issuancePeriod = 1 days; uint256 public deployedTime = block.timestamp; uint256 public claimEndTime = block.timestamp + 365 days * 10; uint256 public maxClaimLatency = 10 minutes; uint256 public maxClaimPerTx = 10000 * 10**18; /* SECURITY */ address public distributor; bool useDistributor = false; bool useMaxClaimPerTx = false; /** SIGNATURES */ address public signerWallet; mapping(address => uint256) public addressToNonce; /** EVENTS */ event ClaimedReward(address indexed user, uint256 reward, uint256 nonce, uint256 timestamp, bytes signature); event setPandaNFTEvent(address pandaNFT); event setIssuanceRateEvent(uint256 issuanceRate); event setIssuancePeriodEvent(uint256 issuancePeriod); event setMaxClaimLatencyEvent(uint256 maxClaimLatency); event setClaimEndTimeEvent(uint256 claimEndTIme); event setInitialIssuanceEvent(uint256 initialIssuance); event setDistributorEvent(address distributor); event setUseDistributorEvent(bool useDistributor); event setUseMaxClaimPerTxEvent(bool useMaxClaimPerTx); /** MODIFIERS */ modifier canClaim(uint256 amount, uint256 nonce, uint256 timestamp, bytes memory signature) { require(block.timestamp <= claimEndTime, "CLAIM ENDED"); require(pandaNFT.balanceOf(msg.sender) > 0, "BALANCE ZERO"); require(block.timestamp - timestamp <= maxClaimLatency, "TX TOOK TOO LONG"); if (useMaxClaimPerTx) { require(amount <= maxClaimPerTx, "CANNOT CLAIM MORE"); } bytes32 message = keccak256(abi.encodePacked(msg.sender, amount, addressToNonce[msg.sender], timestamp, address(this))).toEthSignedMessageHash(); require(addressToNonce[msg.sender] == nonce, "INCORRECT NONCE"); require(recoverSigner(message, signature) == signerWallet, "SIGNATURE NOT FROM SIGNER WALLET"); _; } constructor( address _panda ) ERC20("BAMBOO", "$BAMBOO") Ownable() { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(MINTER_ROLE, msg.sender); _setupRole(BURNER_ROLE, msg.sender); pandaNFT = IPandaNFT(_panda); } /** SIGNATURE VERIFICATION */ function splitSignature(bytes memory sig) internal pure returns (uint8 v, bytes32 r, bytes32 s) { require(sig.length == 65); assembly { // first 32 bytes, after the length prefix. r := mload(add(sig, 32)) // second 32 bytes. s := mload(add(sig, 64)) // final byte (first byte of the next 32 bytes). v := byte(0, mload(add(sig, 96))) } return (v, r, s); } function recoverSigner(bytes32 message, bytes memory sig) internal pure returns (address) { (uint8 v, bytes32 r, bytes32 s) = splitSignature(sig); return ecrecover(message, v, r, s); } /** CLAIMING */ function claim(uint256 amount, uint256 nonce, uint256 timestamp, bytes memory signature) external canClaim(amount, nonce, timestamp, signature) { addressToNonce[msg.sender] = addressToNonce[msg.sender] + 1; if (useDistributor) { transferFrom(distributor, msg.sender, amount); } else { _mint(msg.sender, amount); } emit ClaimedReward(msg.sender, amount, nonce, timestamp, signature); } /** ROLE BASED */ function mint(address _to, uint256 _amount) external onlyRole(MINTER_ROLE) { _mint(_to, _amount); } function burn(address _from, uint256 _amount) external onlyRole(BURNER_ROLE) { _burn(_from, _amount); } /** OWNER */ function setPandaNFT(address _newPanda) external onlyOwner { pandaNFT = IPandaNFT(_newPanda); emit setPandaNFTEvent(_newPanda); } function setIssuanceRate(uint256 _newIssuanceRate) external onlyOwner { issuanceRate = _newIssuanceRate; emit setIssuanceRateEvent(_newIssuanceRate); } function setIssuancePeriod(uint256 _newIssuancePeriod) external onlyOwner { issuancePeriod = _newIssuancePeriod; emit setIssuancePeriodEvent(_newIssuancePeriod); } function setMaxClaimLatency(uint256 _newMaxClaimLatency) external onlyOwner { maxClaimLatency = _newMaxClaimLatency; emit setMaxClaimLatencyEvent(_newMaxClaimLatency); } function setMaxClaimPerTx(uint256 _newMaxClaimPerTx) external onlyOwner { maxClaimPerTx = _newMaxClaimPerTx; } function setClaimEndTime(uint256 _newClaimEndTime) external onlyOwner { claimEndTime = _newClaimEndTime; emit setClaimEndTimeEvent(_newClaimEndTime); } function setInitialIssuance(uint256 _newInitialIssuance) external onlyOwner { initialIssuance = _newInitialIssuance; emit setInitialIssuanceEvent(_newInitialIssuance); } function setSignerWallet(address _newSignerWallet) external onlyOwner { signerWallet = _newSignerWallet; } function setDistributor(address _newDistributor) external onlyOwner { distributor = _newDistributor; emit setDistributorEvent(_newDistributor); } function setUseDistributor(bool _newUseDistributor) external onlyOwner { useDistributor = _newUseDistributor; emit setUseDistributorEvent(_newUseDistributor); } function setUseMaxClaimPerTx(bool _newUseMaxClaimPerTx) external onlyOwner { useMaxClaimPerTx = _newUseMaxClaimPerTx; emit setUseMaxClaimPerTxEvent(_newUseMaxClaimPerTx); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.zeppelin.solutions/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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, 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}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), 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}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - 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) { _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`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, 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; _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; } _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 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 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_panda","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"signature","type":"bytes"}],"name":"ClaimedReward","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":false,"internalType":"uint256","name":"claimEndTIme","type":"uint256"}],"name":"setClaimEndTimeEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"distributor","type":"address"}],"name":"setDistributorEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"initialIssuance","type":"uint256"}],"name":"setInitialIssuanceEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"issuancePeriod","type":"uint256"}],"name":"setIssuancePeriodEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"issuanceRate","type":"uint256"}],"name":"setIssuanceRateEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxClaimLatency","type":"uint256"}],"name":"setMaxClaimLatencyEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pandaNFT","type":"address"}],"name":"setPandaNFTEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"useDistributor","type":"bool"}],"name":"setUseDistributorEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"useMaxClaimPerTx","type":"bool"}],"name":"setUseMaxClaimPerTxEvent","type":"event"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deployedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialIssuance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"issuancePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"issuanceRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxClaimLatency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxClaimPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pandaNFT","outputs":[{"internalType":"contract IPandaNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newClaimEndTime","type":"uint256"}],"name":"setClaimEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newDistributor","type":"address"}],"name":"setDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newInitialIssuance","type":"uint256"}],"name":"setInitialIssuance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newIssuancePeriod","type":"uint256"}],"name":"setIssuancePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newIssuanceRate","type":"uint256"}],"name":"setIssuanceRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxClaimLatency","type":"uint256"}],"name":"setMaxClaimLatency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxClaimPerTx","type":"uint256"}],"name":"setMaxClaimPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPanda","type":"address"}],"name":"setPandaNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSignerWallet","type":"address"}],"name":"setSignerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_newUseDistributor","type":"bool"}],"name":"setUseDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_newUseMaxClaimPerTx","type":"bool"}],"name":"setUseMaxClaimPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600855678ac7230489e8000060095562015180600a5542600b55426312cc030062000032919062000347565b600c55610258600d5569021e19e0c9bab2400000600e55600f805461ffff60a01b191690553480156200006457600080fd5b50604051620024533803806200245383398101604081905262000087916200036e565b6040518060400160405280600681526020016542414d424f4f60d01b815250604051806040016040528060078152602001662442414d424f4f60c81b815250620000e0620000da6200019b60201b60201c565b6200019f565b8151620000f5906005906020850190620002a1565b5080516200010b906006906020840190620002a1565b506200011d91506000905033620001f1565b620001497f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620001f1565b620001757f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84833620001f1565b600780546001600160a01b0319166001600160a01b0392909216919091179055620003dd565b3390565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001fd828262000201565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620001fd576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200025d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620002af90620003a0565b90600052602060002090601f016020900481019282620002d357600085556200031e565b82601f10620002ee57805160ff19168380011785556200031e565b828001600101855582156200031e579182015b828111156200031e57825182559160200191906001019062000301565b506200032c92915062000330565b5090565b5b808211156200032c576000815560010162000331565b600082198211156200036957634e487b7160e01b600052601160045260246000fd5b500190565b6000602082840312156200038157600080fd5b81516001600160a01b03811681146200039957600080fd5b9392505050565b600181811c90821680620003b557607f821691505b60208210811415620003d757634e487b7160e01b600052602260045260246000fd5b50919050565b61206680620003ed6000396000f3fe608060405234801561001057600080fd5b506004361061022f5760003560e01c80621cf60e1461023457806301ffc9a71461024957806306fdde0314610271578063095ea7b31461028657806318160ddd1461029957806323b872dd146102ab578063248a9ca3146102be578063282c51f3146102d15780632f2ff15d146102e6578063313ce567146102f957806336568abe1461030857806336c6f0ff1461031b578063395093511461033b5780633c9ae2ba1461034e57806340c10f191461035757806340d1d2551461036a578063461ac0191461037357806364f0d35e1461037c5780636548b7ae1461038f57806370a08231146103a257806370bd1df3146103cb578063715018a6146103d457806375619ab5146103dc5780638da5cb5b146103ef57806391d14854146103f757806395d89b411461040a5780639a3aa766146104125780639dc29fac14610425578063a217fddf14610438578063a22c96a514610440578063a457c2d714610453578063a9059cbb14610466578063ad79d15d14610479578063bfe1092814610499578063c1ec3ece146104ac578063c227c46a146104bf578063d2039bf3146104c8578063d43cd80d146104db578063d4a3a2ba146104e4578063d5391393146104f7578063d547741f1461050c578063dd62ed3e1461051f578063e97aa73214610558578063e9f3d4b21461056b578063f2aaf62d1461057e578063f2fde38b14610591578063fc22a9f8146105a4578063fc24ffdf146105ad575b600080fd5b610247610242366004611b5e565b6105c0565b005b61025c610257366004611b80565b610650565b60405190151581526020015b60405180910390f35b610279610687565b6040516102689190611c02565b61025c610294366004611c31565b610719565b6004545b604051908152602001610268565b61025c6102b9366004611c5b565b61072f565b61029d6102cc366004611c97565b6107d9565b61029d600080516020611fd183398151915281565b6102476102f4366004611cb0565b6107ee565b60405160128152602001610268565b610247610316366004611cb0565b610810565b60075461032e906001600160a01b031681565b6040516102689190611cdc565b61025c610349366004611c31565b61088e565b61029d60095481565b610247610365366004611c31565b6108ca565b61029d600c5481565b61029d600b5481565b60105461032e906001600160a01b031681565b61024761039d366004611d06565b6108ed565b61029d6103b0366004611dd3565b6001600160a01b031660009081526002602052604090205490565b61029d600a5481565b610247610c93565b6102476103ea366004611dd3565b610cce565b61032e610d48565b61025c610405366004611cb0565b610d57565b610279610d80565b610247610420366004611c97565b610d8f565b610247610433366004611c31565b610df3565b61029d600081565b61024761044e366004611c97565b610e16565b61025c610461366004611c31565b610e7a565b61025c610474366004611c31565b610f13565b61029d610487366004611dd3565b60116020526000908152604090205481565b600f5461032e906001600160a01b031681565b6102476104ba366004611dd3565b610f20565b61029d600d5481565b6102476104d6366004611dd3565b610f9a565b61029d600e5481565b6102476104f2366004611c97565b610feb565b61029d600080516020611ff183398151915281565b61024761051a366004611cb0565b61101f565b61029d61052d366004611dee565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b610247610566366004611c97565b61103c565b610247610579366004611c97565b6110a0565b61024761058c366004611b5e565b611104565b61024761059f366004611dd3565b611180565b61029d60085481565b6102476105bb366004611c97565b611220565b336105c9610d48565b6001600160a01b0316146105f85760405162461bcd60e51b81526004016105ef90611e18565b60405180910390fd5b600f8054821515600160a01b0260ff60a01b199091161790556040517fa5bbb60d617c48a16816f4d30b9135dc290d249fe5722908802cf78ca092609a9061064590831515815260200190565b60405180910390a150565b60006001600160e01b03198216637965db0b60e01b148061068157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606005805461069690611e4d565b80601f01602080910402602001604051908101604052809291908181526020018280546106c290611e4d565b801561070f5780601f106106e45761010080835404028352916020019161070f565b820191906000526020600020905b8154815290600101906020018083116106f257829003601f168201915b5050505050905090565b6000610726338484611284565b50600192915050565b600061073c8484846113a8565b6001600160a01b0384166000908152600360209081526040808320338452909152902054828110156107c15760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016105ef565b6107ce8533858403611284565b506001949350505050565b60009081526020819052604090206001015490565b6107f7826107d9565b6108018133611566565b61080b83836115ca565b505050565b6001600160a01b03811633146108805760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105ef565b61088a828261164e565b5050565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916107269185906108c5908690611e9e565b611284565b600080516020611ff18339815191526108e38133611566565b61080b83836116b3565b83838383600c544211156109315760405162461bcd60e51b815260206004820152600b60248201526a10d310525348115391115160aa1b60448201526064016105ef565b6007546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610962903390600401611cdc565b602060405180830381865afa15801561097f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a39190611eb6565b116109df5760405162461bcd60e51b815260206004820152600c60248201526b42414c414e4345205a45524f60a01b60448201526064016105ef565b600d546109ec8342611ecf565b1115610a2d5760405162461bcd60e51b815260206004820152601060248201526f545820544f4f4b20544f4f204c4f4e4760801b60448201526064016105ef565b600f54600160a81b900460ff1615610a8557600e54841115610a855760405162461bcd60e51b815260206004820152601160248201527043414e4e4f5420434c41494d204d4f524560781b60448201526064016105ef565b3360008181526011602081815260408084205481516001600160601b0319606088811b821683870152603483018d905260548301849052607483018b905230901b1660948201528251808203608801815260a8820184528051908501207b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b60c883015260e4808301919091528351808303909101815261010490910190925281519183019190912094909352528414610b715760405162461bcd60e51b815260206004820152600f60248201526e494e434f5252454354204e4f4e434560881b60448201526064016105ef565b6010546001600160a01b0316610b878284611780565b6001600160a01b031614610bdd5760405162461bcd60e51b815260206004820181905260248201527f5349474e4154555245204e4f542046524f4d205349474e45522057414c4c455460448201526064016105ef565b33600090815260116020526040902054610bf8906001611e9e565b33600090815260116020526040902055600f54600160a01b900460ff1615610c3757600f54610c31906001600160a01b0316338b61072f565b50610c41565b610c41338a6116b3565b336001600160a01b03167f682a4c0240abb6fbc0d605240c6654a52cae5321dae18c3729306d31716327b18a8a8a8a604051610c809493929190611ee6565b60405180910390a2505050505050505050565b33610c9c610d48565b6001600160a01b031614610cc25760405162461bcd60e51b81526004016105ef90611e18565b610ccc60006117ff565b565b33610cd7610d48565b6001600160a01b031614610cfd5760405162461bcd60e51b81526004016105ef90611e18565b600f80546001600160a01b0319166001600160a01b0383161790556040517fbf5a22abdc97a8dadd69eb4355bc1e146c3017a2717d45019e8ee6365385592c90610645908390611cdc565b6001546001600160a01b031690565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606006805461069690611e4d565b33610d98610d48565b6001600160a01b031614610dbe5760405162461bcd60e51b81526004016105ef90611e18565b600c8190556040518181527f56e8a2efc39ac83619b29d2d0d83029c05d91524149f0b59e44cd2c189b7a1ea90602001610645565b600080516020611fd1833981519152610e0c8133611566565b61080b8383611851565b33610e1f610d48565b6001600160a01b031614610e455760405162461bcd60e51b81526004016105ef90611e18565b600d8190556040518181527f890414635b67f297d990f556c06a65ffa87c1ac281081e3f1c6d9b4e6118246990602001610645565b3360009081526003602090815260408083206001600160a01b038616845290915281205482811015610efc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105ef565b610f093385858403611284565b5060019392505050565b60006107263384846113a8565b33610f29610d48565b6001600160a01b031614610f4f5760405162461bcd60e51b81526004016105ef90611e18565b600780546001600160a01b0319166001600160a01b0383161790556040517ff0db97d5acd0417fb78d39888240b8239dda1dbd3cd655aa9c6cd80ce8ae18a190610645908390611cdc565b33610fa3610d48565b6001600160a01b031614610fc95760405162461bcd60e51b81526004016105ef90611e18565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b33610ff4610d48565b6001600160a01b03161461101a5760405162461bcd60e51b81526004016105ef90611e18565b600e55565b611028826107d9565b6110328133611566565b61080b838361164e565b33611045610d48565b6001600160a01b03161461106b5760405162461bcd60e51b81526004016105ef90611e18565b60088190556040518181527fa06cdfc88eb14c8c6c0c9c91bff239ece82ec27fb223b96ad05fb777d74f168c90602001610645565b336110a9610d48565b6001600160a01b0316146110cf5760405162461bcd60e51b81526004016105ef90611e18565b600a8190556040518181527f309817031991f921ed63dd223a8c0f6ddebdd60e8838e843ec33e155941c285990602001610645565b3361110d610d48565b6001600160a01b0316146111335760405162461bcd60e51b81526004016105ef90611e18565b600f8054821515600160a81b0260ff60a81b199091161790556040517f9f5dc2926944f14bda134e84d6f25603d79c18583ce375cc8d2242c0ee822ff99061064590831515815260200190565b33611189610d48565b6001600160a01b0316146111af5760405162461bcd60e51b81526004016105ef90611e18565b6001600160a01b0381166112145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105ef565b61121d816117ff565b50565b33611229610d48565b6001600160a01b03161461124f5760405162461bcd60e51b81526004016105ef90611e18565b60098190556040518181527f4805e5b39f4497ef1190f3911a6a973517e382b0b52289380d06c666830de95390602001610645565b6001600160a01b0383166112e65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105ef565b6001600160a01b0382166113475760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105ef565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661140c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105ef565b6001600160a01b03821661146e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105ef565b6001600160a01b038316600090815260026020526040902054818110156114e65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105ef565b6001600160a01b0380851660009081526002602052604080822085850390559185168152908120805484929061151d908490611e9e565b92505081905550826001600160a01b0316846001600160a01b03166000805160206120118339815191528460405161155791815260200190565b60405180910390a35b50505050565b6115708282610d57565b61088a57611588816001600160a01b0316601461198d565b61159383602061198d565b6040516020016115a4929190611f15565b60408051601f198184030181529082905262461bcd60e51b82526105ef91600401611c02565b6115d48282610d57565b61088a576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561160a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6116588282610d57565b1561088a576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0382166117095760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105ef565b806004600082825461171b9190611e9e565b90915550506001600160a01b03821660009081526002602052604081208054839290611748908490611e9e565b90915550506040518181526001600160a01b038316906000906000805160206120118339815191529060200160405180910390a35050565b60008060008061178f85611b2f565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa1580156117ea573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166118b15760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105ef565b6001600160a01b038216600090815260026020526040902054818110156119255760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105ef565b6001600160a01b0383166000908152600260205260408120838303905560048054849290611954908490611ecf565b90915550506040518281526000906001600160a01b038516906000805160206120118339815191529060200160405180910390a3505050565b6060600061199c836002611f84565b6119a7906002611e9e565b6001600160401b038111156119be576119be611cf0565b6040519080825280601f01601f1916602001820160405280156119e8576020820181803683370190505b509050600360fc1b81600081518110611a0357611a03611fa3565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611a3257611a32611fa3565b60200101906001600160f81b031916908160001a9053506000611a56846002611f84565b611a61906001611e9e565b90505b6001811115611ad9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611a9557611a95611fa3565b1a60f81b828281518110611aab57611aab611fa3565b60200101906001600160f81b031916908160001a90535060049490941c93611ad281611fb9565b9050611a64565b508315611b285760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105ef565b9392505050565b60008060008351604114611b4257600080fd5b5050506020810151604082015160609092015160001a92909190565b600060208284031215611b7057600080fd5b81358015158114611b2857600080fd5b600060208284031215611b9257600080fd5b81356001600160e01b031981168114611b2857600080fd5b60005b83811015611bc5578181015183820152602001611bad565b838111156115605750506000910152565b60008151808452611bee816020860160208601611baa565b601f01601f19169290920160200192915050565b602081526000611b286020830184611bd6565b80356001600160a01b0381168114611c2c57600080fd5b919050565b60008060408385031215611c4457600080fd5b611c4d83611c15565b946020939093013593505050565b600080600060608486031215611c7057600080fd5b611c7984611c15565b9250611c8760208501611c15565b9150604084013590509250925092565b600060208284031215611ca957600080fd5b5035919050565b60008060408385031215611cc357600080fd5b82359150611cd360208401611c15565b90509250929050565b6001600160a01b0391909116815260200190565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611d1c57600080fd5b84359350602085013592506040850135915060608501356001600160401b0380821115611d4857600080fd5b818701915087601f830112611d5c57600080fd5b813581811115611d6e57611d6e611cf0565b604051601f8201601f19908116603f01168101908382118183101715611d9657611d96611cf0565b816040528281528a6020848701011115611daf57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215611de557600080fd5b611b2882611c15565b60008060408385031215611e0157600080fd5b611e0a83611c15565b9150611cd360208401611c15565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680611e6157607f821691505b60208210811415611e8257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611eb157611eb1611e88565b500190565b600060208284031215611ec857600080fd5b5051919050565b600082821015611ee157611ee1611e88565b500390565b848152836020820152826040820152608060608201526000611f0b6080830184611bd6565b9695505050505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351611f47816017850160208801611baa565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611f78816028840160208801611baa565b01602801949350505050565b6000816000190483118215151615611f9e57611f9e611e88565b500290565b634e487b7160e01b600052603260045260246000fd5b600081611fc857611fc8611e88565b50600019019056fe3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8489f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220ed59a6b5240f4bde7bf0461903af456815fa9f4f8f2241144dfe905e3d37a2e564736f6c634300080b0033000000000000000000000000a440467f6d5fbd62f6eef01192caa52850aa1d5f
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061022f5760003560e01c80621cf60e1461023457806301ffc9a71461024957806306fdde0314610271578063095ea7b31461028657806318160ddd1461029957806323b872dd146102ab578063248a9ca3146102be578063282c51f3146102d15780632f2ff15d146102e6578063313ce567146102f957806336568abe1461030857806336c6f0ff1461031b578063395093511461033b5780633c9ae2ba1461034e57806340c10f191461035757806340d1d2551461036a578063461ac0191461037357806364f0d35e1461037c5780636548b7ae1461038f57806370a08231146103a257806370bd1df3146103cb578063715018a6146103d457806375619ab5146103dc5780638da5cb5b146103ef57806391d14854146103f757806395d89b411461040a5780639a3aa766146104125780639dc29fac14610425578063a217fddf14610438578063a22c96a514610440578063a457c2d714610453578063a9059cbb14610466578063ad79d15d14610479578063bfe1092814610499578063c1ec3ece146104ac578063c227c46a146104bf578063d2039bf3146104c8578063d43cd80d146104db578063d4a3a2ba146104e4578063d5391393146104f7578063d547741f1461050c578063dd62ed3e1461051f578063e97aa73214610558578063e9f3d4b21461056b578063f2aaf62d1461057e578063f2fde38b14610591578063fc22a9f8146105a4578063fc24ffdf146105ad575b600080fd5b610247610242366004611b5e565b6105c0565b005b61025c610257366004611b80565b610650565b60405190151581526020015b60405180910390f35b610279610687565b6040516102689190611c02565b61025c610294366004611c31565b610719565b6004545b604051908152602001610268565b61025c6102b9366004611c5b565b61072f565b61029d6102cc366004611c97565b6107d9565b61029d600080516020611fd183398151915281565b6102476102f4366004611cb0565b6107ee565b60405160128152602001610268565b610247610316366004611cb0565b610810565b60075461032e906001600160a01b031681565b6040516102689190611cdc565b61025c610349366004611c31565b61088e565b61029d60095481565b610247610365366004611c31565b6108ca565b61029d600c5481565b61029d600b5481565b60105461032e906001600160a01b031681565b61024761039d366004611d06565b6108ed565b61029d6103b0366004611dd3565b6001600160a01b031660009081526002602052604090205490565b61029d600a5481565b610247610c93565b6102476103ea366004611dd3565b610cce565b61032e610d48565b61025c610405366004611cb0565b610d57565b610279610d80565b610247610420366004611c97565b610d8f565b610247610433366004611c31565b610df3565b61029d600081565b61024761044e366004611c97565b610e16565b61025c610461366004611c31565b610e7a565b61025c610474366004611c31565b610f13565b61029d610487366004611dd3565b60116020526000908152604090205481565b600f5461032e906001600160a01b031681565b6102476104ba366004611dd3565b610f20565b61029d600d5481565b6102476104d6366004611dd3565b610f9a565b61029d600e5481565b6102476104f2366004611c97565b610feb565b61029d600080516020611ff183398151915281565b61024761051a366004611cb0565b61101f565b61029d61052d366004611dee565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b610247610566366004611c97565b61103c565b610247610579366004611c97565b6110a0565b61024761058c366004611b5e565b611104565b61024761059f366004611dd3565b611180565b61029d60085481565b6102476105bb366004611c97565b611220565b336105c9610d48565b6001600160a01b0316146105f85760405162461bcd60e51b81526004016105ef90611e18565b60405180910390fd5b600f8054821515600160a01b0260ff60a01b199091161790556040517fa5bbb60d617c48a16816f4d30b9135dc290d249fe5722908802cf78ca092609a9061064590831515815260200190565b60405180910390a150565b60006001600160e01b03198216637965db0b60e01b148061068157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606005805461069690611e4d565b80601f01602080910402602001604051908101604052809291908181526020018280546106c290611e4d565b801561070f5780601f106106e45761010080835404028352916020019161070f565b820191906000526020600020905b8154815290600101906020018083116106f257829003601f168201915b5050505050905090565b6000610726338484611284565b50600192915050565b600061073c8484846113a8565b6001600160a01b0384166000908152600360209081526040808320338452909152902054828110156107c15760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016105ef565b6107ce8533858403611284565b506001949350505050565b60009081526020819052604090206001015490565b6107f7826107d9565b6108018133611566565b61080b83836115ca565b505050565b6001600160a01b03811633146108805760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105ef565b61088a828261164e565b5050565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916107269185906108c5908690611e9e565b611284565b600080516020611ff18339815191526108e38133611566565b61080b83836116b3565b83838383600c544211156109315760405162461bcd60e51b815260206004820152600b60248201526a10d310525348115391115160aa1b60448201526064016105ef565b6007546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610962903390600401611cdc565b602060405180830381865afa15801561097f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a39190611eb6565b116109df5760405162461bcd60e51b815260206004820152600c60248201526b42414c414e4345205a45524f60a01b60448201526064016105ef565b600d546109ec8342611ecf565b1115610a2d5760405162461bcd60e51b815260206004820152601060248201526f545820544f4f4b20544f4f204c4f4e4760801b60448201526064016105ef565b600f54600160a81b900460ff1615610a8557600e54841115610a855760405162461bcd60e51b815260206004820152601160248201527043414e4e4f5420434c41494d204d4f524560781b60448201526064016105ef565b3360008181526011602081815260408084205481516001600160601b0319606088811b821683870152603483018d905260548301849052607483018b905230901b1660948201528251808203608801815260a8820184528051908501207b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b60c883015260e4808301919091528351808303909101815261010490910190925281519183019190912094909352528414610b715760405162461bcd60e51b815260206004820152600f60248201526e494e434f5252454354204e4f4e434560881b60448201526064016105ef565b6010546001600160a01b0316610b878284611780565b6001600160a01b031614610bdd5760405162461bcd60e51b815260206004820181905260248201527f5349474e4154555245204e4f542046524f4d205349474e45522057414c4c455460448201526064016105ef565b33600090815260116020526040902054610bf8906001611e9e565b33600090815260116020526040902055600f54600160a01b900460ff1615610c3757600f54610c31906001600160a01b0316338b61072f565b50610c41565b610c41338a6116b3565b336001600160a01b03167f682a4c0240abb6fbc0d605240c6654a52cae5321dae18c3729306d31716327b18a8a8a8a604051610c809493929190611ee6565b60405180910390a2505050505050505050565b33610c9c610d48565b6001600160a01b031614610cc25760405162461bcd60e51b81526004016105ef90611e18565b610ccc60006117ff565b565b33610cd7610d48565b6001600160a01b031614610cfd5760405162461bcd60e51b81526004016105ef90611e18565b600f80546001600160a01b0319166001600160a01b0383161790556040517fbf5a22abdc97a8dadd69eb4355bc1e146c3017a2717d45019e8ee6365385592c90610645908390611cdc565b6001546001600160a01b031690565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606006805461069690611e4d565b33610d98610d48565b6001600160a01b031614610dbe5760405162461bcd60e51b81526004016105ef90611e18565b600c8190556040518181527f56e8a2efc39ac83619b29d2d0d83029c05d91524149f0b59e44cd2c189b7a1ea90602001610645565b600080516020611fd1833981519152610e0c8133611566565b61080b8383611851565b33610e1f610d48565b6001600160a01b031614610e455760405162461bcd60e51b81526004016105ef90611e18565b600d8190556040518181527f890414635b67f297d990f556c06a65ffa87c1ac281081e3f1c6d9b4e6118246990602001610645565b3360009081526003602090815260408083206001600160a01b038616845290915281205482811015610efc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105ef565b610f093385858403611284565b5060019392505050565b60006107263384846113a8565b33610f29610d48565b6001600160a01b031614610f4f5760405162461bcd60e51b81526004016105ef90611e18565b600780546001600160a01b0319166001600160a01b0383161790556040517ff0db97d5acd0417fb78d39888240b8239dda1dbd3cd655aa9c6cd80ce8ae18a190610645908390611cdc565b33610fa3610d48565b6001600160a01b031614610fc95760405162461bcd60e51b81526004016105ef90611e18565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b33610ff4610d48565b6001600160a01b03161461101a5760405162461bcd60e51b81526004016105ef90611e18565b600e55565b611028826107d9565b6110328133611566565b61080b838361164e565b33611045610d48565b6001600160a01b03161461106b5760405162461bcd60e51b81526004016105ef90611e18565b60088190556040518181527fa06cdfc88eb14c8c6c0c9c91bff239ece82ec27fb223b96ad05fb777d74f168c90602001610645565b336110a9610d48565b6001600160a01b0316146110cf5760405162461bcd60e51b81526004016105ef90611e18565b600a8190556040518181527f309817031991f921ed63dd223a8c0f6ddebdd60e8838e843ec33e155941c285990602001610645565b3361110d610d48565b6001600160a01b0316146111335760405162461bcd60e51b81526004016105ef90611e18565b600f8054821515600160a81b0260ff60a81b199091161790556040517f9f5dc2926944f14bda134e84d6f25603d79c18583ce375cc8d2242c0ee822ff99061064590831515815260200190565b33611189610d48565b6001600160a01b0316146111af5760405162461bcd60e51b81526004016105ef90611e18565b6001600160a01b0381166112145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105ef565b61121d816117ff565b50565b33611229610d48565b6001600160a01b03161461124f5760405162461bcd60e51b81526004016105ef90611e18565b60098190556040518181527f4805e5b39f4497ef1190f3911a6a973517e382b0b52289380d06c666830de95390602001610645565b6001600160a01b0383166112e65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105ef565b6001600160a01b0382166113475760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105ef565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661140c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105ef565b6001600160a01b03821661146e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105ef565b6001600160a01b038316600090815260026020526040902054818110156114e65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105ef565b6001600160a01b0380851660009081526002602052604080822085850390559185168152908120805484929061151d908490611e9e565b92505081905550826001600160a01b0316846001600160a01b03166000805160206120118339815191528460405161155791815260200190565b60405180910390a35b50505050565b6115708282610d57565b61088a57611588816001600160a01b0316601461198d565b61159383602061198d565b6040516020016115a4929190611f15565b60408051601f198184030181529082905262461bcd60e51b82526105ef91600401611c02565b6115d48282610d57565b61088a576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561160a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6116588282610d57565b1561088a576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0382166117095760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105ef565b806004600082825461171b9190611e9e565b90915550506001600160a01b03821660009081526002602052604081208054839290611748908490611e9e565b90915550506040518181526001600160a01b038316906000906000805160206120118339815191529060200160405180910390a35050565b60008060008061178f85611b2f565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa1580156117ea573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166118b15760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105ef565b6001600160a01b038216600090815260026020526040902054818110156119255760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105ef565b6001600160a01b0383166000908152600260205260408120838303905560048054849290611954908490611ecf565b90915550506040518281526000906001600160a01b038516906000805160206120118339815191529060200160405180910390a3505050565b6060600061199c836002611f84565b6119a7906002611e9e565b6001600160401b038111156119be576119be611cf0565b6040519080825280601f01601f1916602001820160405280156119e8576020820181803683370190505b509050600360fc1b81600081518110611a0357611a03611fa3565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611a3257611a32611fa3565b60200101906001600160f81b031916908160001a9053506000611a56846002611f84565b611a61906001611e9e565b90505b6001811115611ad9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611a9557611a95611fa3565b1a60f81b828281518110611aab57611aab611fa3565b60200101906001600160f81b031916908160001a90535060049490941c93611ad281611fb9565b9050611a64565b508315611b285760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105ef565b9392505050565b60008060008351604114611b4257600080fd5b5050506020810151604082015160609092015160001a92909190565b600060208284031215611b7057600080fd5b81358015158114611b2857600080fd5b600060208284031215611b9257600080fd5b81356001600160e01b031981168114611b2857600080fd5b60005b83811015611bc5578181015183820152602001611bad565b838111156115605750506000910152565b60008151808452611bee816020860160208601611baa565b601f01601f19169290920160200192915050565b602081526000611b286020830184611bd6565b80356001600160a01b0381168114611c2c57600080fd5b919050565b60008060408385031215611c4457600080fd5b611c4d83611c15565b946020939093013593505050565b600080600060608486031215611c7057600080fd5b611c7984611c15565b9250611c8760208501611c15565b9150604084013590509250925092565b600060208284031215611ca957600080fd5b5035919050565b60008060408385031215611cc357600080fd5b82359150611cd360208401611c15565b90509250929050565b6001600160a01b0391909116815260200190565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611d1c57600080fd5b84359350602085013592506040850135915060608501356001600160401b0380821115611d4857600080fd5b818701915087601f830112611d5c57600080fd5b813581811115611d6e57611d6e611cf0565b604051601f8201601f19908116603f01168101908382118183101715611d9657611d96611cf0565b816040528281528a6020848701011115611daf57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215611de557600080fd5b611b2882611c15565b60008060408385031215611e0157600080fd5b611e0a83611c15565b9150611cd360208401611c15565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680611e6157607f821691505b60208210811415611e8257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611eb157611eb1611e88565b500190565b600060208284031215611ec857600080fd5b5051919050565b600082821015611ee157611ee1611e88565b500390565b848152836020820152826040820152608060608201526000611f0b6080830184611bd6565b9695505050505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351611f47816017850160208801611baa565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611f78816028840160208801611baa565b01602801949350505050565b6000816000190483118215151615611f9e57611f9e611e88565b500290565b634e487b7160e01b600052603260045260246000fd5b600081611fc857611fc8611e88565b50600019019056fe3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8489f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220ed59a6b5240f4bde7bf0461903af456815fa9f4f8f2241144dfe905e3d37a2e564736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a440467f6d5fbd62f6eef01192caa52850aa1d5f
-----Decoded View---------------
Arg [0] : _panda (address): 0xa440467f6d5fBd62F6eEf01192caA52850Aa1D5F
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a440467f6d5fbd62f6eef01192caa52850aa1d5f
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.