Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
3,695,684.168 BAMBOO
Holders
654
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
33.608 BAMBOOValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BambooFactory
Compiler Version
v0.8.9+commit.e5eed63a
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.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import '@openzeppelin/contracts/security/Pausable.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; contract BambooFactory is ERC20Burnable, Ownable, IERC721Receiver, Pausable, ReentrancyGuard { using EnumerableSet for EnumerableSet.UintSet; IERC721Enumerable public immutable pandaContract; uint256 rewardsEnd = 33043333; bool finalizedRewardsEnd; uint256 constant REWARDS_PER_BLOCK = 4000000000000000; event Staked(address indexed account, uint256[] tokenIds); event Unstaked(address indexed account, uint256[] tokenIds); event RewardsClaimed(address indexed account, uint256 amount); mapping(uint256 => uint256) public lastClaimedBlockForToken; mapping(address => EnumerableSet.UintSet) private stakedTokens; mapping(uint256 => bool) claimedHolderRewards; constructor( string memory name, string memory symbol, address _pandaContract ) ERC20(name, symbol) { pandaContract = IERC721Enumerable(_pandaContract); _mint(0x5b92a53E91495052B7849EA585Bec7E99c75293B, 300000000000000000000000); _pause(); } function stakePandas(uint256[] calldata tokenIds) external whenNotPaused nonReentrant { require(tokenIds.length <= 40 && tokenIds.length > 0, "Stake: amount prohibited"); for (uint256 i; i < tokenIds.length; i++) { require(pandaContract.ownerOf(tokenIds[i]) == msg.sender, "Stake: sender not owner"); pandaContract.safeTransferFrom(msg.sender, address(this), tokenIds[i]); lastClaimedBlockForToken[tokenIds[i]] = uint128(block.number); stakedTokens[msg.sender].add(tokenIds[i]); } emit Staked(msg.sender, tokenIds); } function unstakePandas(uint256[] calldata tokens) external whenNotPaused nonReentrant { require(tokens.length <= 40 && tokens.length > 0, "Unstake: amount prohibited"); uint256 rewards; for (uint256 i; i < tokens.length; i++) { require( stakedTokens[msg.sender].contains(tokens[i]), "Unstake: token not staked" ); rewards += calculateStakingRewards(tokens[i]); stakedTokens[msg.sender].remove(tokens[i]); delete lastClaimedBlockForToken[tokens[i]]; pandaContract.safeTransferFrom(address(this), msg.sender, tokens[i]); } _mint(msg.sender, rewards); emit Unstaked(msg.sender, tokens); emit RewardsClaimed(msg.sender, rewards); } function claimStakingRewards(uint256[] calldata tokens) external whenNotPaused { require(tokens.length > 0, "no panda id given"); uint256 rewards; for (uint256 i; i < tokens.length; i++) { require( stakedTokens[msg.sender].contains(tokens[i]), "token not staked" ); rewards += calculateStakingRewards(tokens[i]); lastClaimedBlockForToken[tokens[i]] = block.number; } _mint(msg.sender, rewards); emit RewardsClaimed(msg.sender, rewards); } function claimHolderRewards() external whenNotPaused { uint256 rewards; for(uint256 i; i < pandaContract.balanceOf(msg.sender); i++) { uint256 tokenId = pandaContract.tokenOfOwnerByIndex(msg.sender, i); if(!claimedHolderRewards[tokenId]) { claimedHolderRewards[tokenId] = true; rewards += calculateHolderRewards(tokenId); } } require(rewards > 0, "no rewards to claim"); _mint(msg.sender, rewards); } function calculateHolderRewards(uint256 tokenId) public pure returns (uint256) { if(tokenId <= 300) { return 1000000000000000000000; } else if (tokenId <= 500) { return 750000000000000000000; } else if(tokenId <= 1000) { return 500000000000000000000; } else if(tokenId <= 1500) { return 250000000000000000000; } else if(tokenId <= 2500) { return 200000000000000000000; } else if(tokenId <= 3000) { return 150000000000000000000; } else { return 100000000000000000000; } } function finalizeRewardsEnd() external onlyOwner { require(!finalizedRewardsEnd, "already finalized"); finalizedRewardsEnd = true; } function setEndingBlock(uint256 _rewardsEnd) external onlyOwner { require(!finalizedRewardsEnd, "already finalized"); rewardsEnd = _rewardsEnd; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function calculateStakingRewardsByAccount(address account) external view returns (uint256) { uint256 rewards; for (uint256 i; i < stakedTokens[account].length(); i++) { rewards += calculateStakingRewards(stakedTokens[account].at(i)); } return rewards; } function calculateStakingRewards(uint256 tokenID) public view returns (uint256) { require(lastClaimedBlockForToken[tokenID] != 0, "token not staked"); uint256 toBlock = rewardsEnd < block.number ? rewardsEnd : block.number; return REWARDS_PER_BLOCK * (toBlock - lastClaimedBlockForToken[tokenID]); } function stakedPandasOf(address account) external view returns (uint256[] memory) { uint256[] memory tokenIds = new uint256[](stakedTokens[account].length()); for (uint256 i; i < tokenIds.length; i++) { tokenIds[i] = stakedTokens[account].at(i); } return tokenIds; } function onERC721Received(address operator, address, uint256, bytes memory) public view override returns (bytes4) { require(operator == address(this), "Operator not staking contract"); return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT 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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // 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.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT 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); }
// SPDX-License-Identifier: MIT 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 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 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_pandaContract","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"Staked","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"Unstaked","type":"event"},{"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":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"calculateHolderRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"calculateStakingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"calculateStakingRewardsByAccount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimHolderRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"claimStakingRewards","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":[],"name":"finalizeRewardsEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastClaimedBlockForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pandaContract","outputs":[{"internalType":"contract IERC721Enumerable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsEnd","type":"uint256"}],"name":"setEndingBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakePandas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"stakedPandasOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"unstakePandas","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526301f833856007553480156200001957600080fd5b5060405162002982380380620029828339810160408190526200003c9162000445565b82518390839062000055906003906020850190620002d2565b5080516200006b906004906020840190620002d2565b5050506200008862000082620000e460201b60201c565b620000e8565b6005805460ff60a01b1916905560016006556001600160a01b038116608052620000d1735b92a53e91495052b7849ea585bec7e99c75293b693f870857a3e0e38000006200013a565b620000db62000223565b50505062000536565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001965760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b8060026000828254620001aa9190620004d2565b90915550506001600160a01b03821660009081526020819052604081208054839290620001d9908490620004d2565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b62000237600554600160a01b900460ff1690565b15620002795760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016200018d565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002b53390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620002e090620004f9565b90600052602060002090601f0160209004810192826200030457600085556200034f565b82601f106200031f57805160ff19168380011785556200034f565b828001600101855582156200034f579182015b828111156200034f57825182559160200191906001019062000332565b506200035d92915062000361565b5090565b5b808211156200035d576000815560010162000362565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620003a057600080fd5b81516001600160401b0380821115620003bd57620003bd62000378565b604051601f8301601f19908116603f01168101908282118183101715620003e857620003e862000378565b816040528381526020925086838588010111156200040557600080fd5b600091505b838210156200042957858201830151818301840152908201906200040a565b838211156200043b5760008385830101525b9695505050505050565b6000806000606084860312156200045b57600080fd5b83516001600160401b03808211156200047357600080fd5b62000481878388016200038e565b945060208601519150808211156200049857600080fd5b50620004a7868287016200038e565b604086015190935090506001600160a01b0381168114620004c757600080fd5b809150509250925092565b60008219821115620004f457634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200050e57607f821691505b602082108114156200053057634e487b7160e01b600052602260045260246000fd5b50919050565b60805161240d62000575600039600081816103270152818161075e0152818161080601528181610bbd01528181610cc901526114ab015261240d6000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80635c975abb1161010f57806395d89b41116100a2578063dd62ed3e11610071578063dd62ed3e14610451578063deb37cd01461048a578063f2fde38b1461049d578063ff9da9eb146104b057600080fd5b806395d89b4114610403578063a457c2d71461040b578063a9059cbb1461041e578063ac89abc31461043157600080fd5b806378451f29116100de57806378451f29146103b757806379cc6790146103d75780638456cb59146103ea5780638da5cb5b146103f257600080fd5b80635c975abb14610361578063619b0fd81461037357806370a0823114610386578063715018a6146103af57600080fd5b8063313ce5671161018757806346755c681161015657806346755c68146102f457806346804a321461030757806357f421f61461031a5780635891f74f1461032257600080fd5b8063313ce567146102b757806339509351146102c65780633f4ba83a146102d957806342966c68146102e157600080fd5b8063150b7a02116101c3578063150b7a021461026657806318160ddd146102925780631979f81e1461029a57806323b872dd146102a457600080fd5b8063015defc9146101f557806306fdde031461021b578063095ea7b3146102305780630ee2bb3114610253575b600080fd5b610208610203366004611f2b565b6104c3565b6040519081526020015b60405180910390f35b61022361056b565b6040516102129190611f44565b61024361023e366004611fae565b6105fd565b6040519015158152602001610212565b610208610261366004611f2b565b610614565b610279610274366004611ff0565b6106b0565b6040516001600160e01b03199091168152602001610212565b600254610208565b6102a261071b565b005b6102436102b23660046120d0565b610937565b60405160128152602001610212565b6102436102d4366004611fae565b6109e1565b6102a2610a1d565b6102a26102ef366004611f2b565b610a51565b6102a2610302366004611f2b565b610a5b565b6102a2610315366004612111565b610ad1565b6102a2610e4e565b6103497f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610212565b600554600160a01b900460ff16610243565b6102a2610381366004612111565b610ece565b610208610394366004612186565b6001600160a01b031660009081526020819052604090205490565b6102a261106c565b6102086103c5366004611f2b565b60096020526000908152604090205481565b6102a26103e5366004611fae565b6110a0565b6102a2611126565b6005546001600160a01b0316610349565b610223611158565b610243610419366004611fae565b611167565b61024361042c366004611fae565b611200565b61044461043f366004612186565b61120d565b60405161021291906121a3565b61020861045f3660046121e7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102a2610498366004612111565b6112da565b6102a26104ab366004612186565b6115fb565b6102086104be366004612186565b611693565b600061012c82116104de5750683635c9adc5dea00000919050565b6101f482116104f757506828a857425466f80000919050565b6103e882116105105750681b1ae4d6e2ef500000919050565b6105dc82116105295750680d8d726b7177a80000919050565b6109c482116105425750680ad78ebc5ac6200000919050565b610bb8821161055b5750680821ab0d4414980000919050565b5068056bc75e2d63100000919050565b60606003805461057a90612220565b80601f01602080910402602001604051908101604052809291908181526020018280546105a690612220565b80156105f35780601f106105c8576101008083540402835291602001916105f3565b820191906000526020600020905b8154815290600101906020018083116105d657829003601f168201915b5050505050905090565b600061060a338484611705565b5060015b92915050565b6000818152600960205260408120546106675760405162461bcd60e51b815260206004820152601060248201526f1d1bdad95b881b9bdd081cdd185ad95960821b60448201526064015b60405180910390fd5b60004360075410610678574361067c565b6007545b6000848152600960205260409020549091506106989082612271565b6106a990660e35fa931a0000612288565b9392505050565b60006001600160a01b038516301461070a5760405162461bcd60e51b815260206004820152601d60248201527f4f70657261746f72206e6f74207374616b696e6720636f6e7472616374000000604482015260640161065e565b50630a85bd0160e11b949350505050565b600554600160a01b900460ff16156107455760405162461bcd60e51b815260040161065e906122a7565b6000805b6040516370a0823160e01b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156107a857600080fd5b505afa1580156107bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e091906122d1565b8110156108e357604051632f745c5960e01b8152336004820152602481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632f745c599060440160206040518083038186803b15801561085057600080fd5b505afa158015610864573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088891906122d1565b6000818152600b602052604090205490915060ff166108d0576000818152600b60205260409020805460ff191660011790556108c3816104c3565b6108cd90846122ea565b92505b50806108db81612302565b915050610749565b506000811161092a5760405162461bcd60e51b81526020600482015260136024820152726e6f207265776172647320746f20636c61696d60681b604482015260640161065e565b6109343382611829565b50565b6000610944848484611908565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156109c95760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b606482015260840161065e565b6109d68533858403611705565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161060a918590610a189086906122ea565b611705565b6005546001600160a01b03163314610a475760405162461bcd60e51b815260040161065e9061231d565b610a4f611ad7565b565b6109343382611b74565b6005546001600160a01b03163314610a855760405162461bcd60e51b815260040161065e9061231d565b60085460ff1615610acc5760405162461bcd60e51b8152602060048201526011602482015270185b1c9958591e48199a5b985b1a5e9959607a1b604482015260640161065e565b600755565b600554600160a01b900460ff1615610afb5760405162461bcd60e51b815260040161065e906122a7565b60026006541415610b4e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161065e565b600260065560288111801590610b6357508015155b610baf5760405162461bcd60e51b815260206004820152601860248201527f5374616b653a20616d6f756e742070726f686962697465640000000000000000604482015260640161065e565b60005b81811015610e0157337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e858585818110610bfc57610bfc612352565b905060200201356040518263ffffffff1660e01b8152600401610c2191815260200190565b60206040518083038186803b158015610c3957600080fd5b505afa158015610c4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c719190612368565b6001600160a01b031614610cc75760405162461bcd60e51b815260206004820152601760248201527f5374616b653a2073656e646572206e6f74206f776e6572000000000000000000604482015260640161065e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166342842e0e3330868686818110610d0a57610d0a612352565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015610d6157600080fd5b505af1158015610d75573d6000803e3d6000fd5b50505050436fffffffffffffffffffffffffffffffff1660096000858585818110610da257610da2612352565b90506020020135815260200190815260200160002081905550610dee838383818110610dd057610dd0612352565b336000908152600a6020908152604090912093910201359050611cc2565b5080610df981612302565b915050610bb2565b50336001600160a01b03167f134b166c6094cc1ccbf1e3353ce5c3cd9fd29869051bdb999895854d77cc5ef68383604051610e3d929190612385565b60405180910390a250506001600655565b6005546001600160a01b03163314610e785760405162461bcd60e51b815260040161065e9061231d565b60085460ff1615610ebf5760405162461bcd60e51b8152602060048201526011602482015270185b1c9958591e48199a5b985b1a5e9959607a1b604482015260640161065e565b6008805460ff19166001179055565b600554600160a01b900460ff1615610ef85760405162461bcd60e51b815260040161065e906122a7565b80610f395760405162461bcd60e51b81526020600482015260116024820152703737903830b732309034b21033b4bb32b760791b604482015260640161065e565b6000805b8281101561102757610f78848483818110610f5a57610f5a612352565b336000908152600a6020908152604090912093910201359050611cce565b610fb75760405162461bcd60e51b815260206004820152601060248201526f1d1bdad95b881b9bdd081cdd185ad95960821b604482015260640161065e565b610fd8848483818110610fcc57610fcc612352565b90506020020135610614565b610fe290836122ea565b91504360096000868685818110610ffb57610ffb612352565b90506020020135815260200190815260200160002081905550808061101f90612302565b915050610f3d565b506110323382611829565b60405181815233907ffc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe9060200160405180910390a2505050565b6005546001600160a01b031633146110965760405162461bcd60e51b815260040161065e9061231d565b610a4f6000611ce6565b60006110ac833361045f565b90508181101561110a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b606482015260840161065e565b6111178333848403611705565b6111218383611b74565b505050565b6005546001600160a01b031633146111505760405162461bcd60e51b815260040161065e9061231d565b610a4f611d38565b60606004805461057a90612220565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156111e95760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161065e565b6111f63385858403611705565b5060019392505050565b600061060a338484611908565b6001600160a01b0381166000908152600a602052604081206060919061123290611d9d565b67ffffffffffffffff81111561124a5761124a611fda565b604051908082528060200260200182016040528015611273578160200160208202803683370190505b50905060005b81518110156112d3576001600160a01b0384166000908152600a602052604090206112a49082611da7565b8282815181106112b6576112b6612352565b6020908102919091010152806112cb81612302565b915050611279565b5092915050565b600554600160a01b900460ff16156113045760405162461bcd60e51b815260040161065e906122a7565b600260065414156113575760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161065e565b60026006556028811180159061136c57508015155b6113b85760405162461bcd60e51b815260206004820152601a60248201527f556e7374616b653a20616d6f756e742070726f68696269746564000000000000604482015260640161065e565b6000805b8281101561156e576113d9848483818110610f5a57610f5a612352565b6114255760405162461bcd60e51b815260206004820152601960248201527f556e7374616b653a20746f6b656e206e6f74207374616b656400000000000000604482015260640161065e565b61143a848483818110610fcc57610fcc612352565b61144490836122ea565b915061147984848381811061145b5761145b612352565b336000908152600a6020908152604090912093910201359050611db3565b506009600085858481811061149057611490612352565b905060200201358152602001908152602001600020600090557f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166342842e0e30338787868181106114ec576114ec612352565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561154357600080fd5b505af1158015611557573d6000803e3d6000fd5b50505050808061156690612302565b9150506113bc565b506115793382611829565b336001600160a01b03167f20748b935fd9f21155c2e98cb2bd5df6fe86f21b193cebaae8d9ad7db0ba541684846040516115b4929190612385565b60405180910390a260405181815233907ffc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe9060200160405180910390a25050600160065550565b6005546001600160a01b031633146116255760405162461bcd60e51b815260040161065e9061231d565b6001600160a01b03811661168a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161065e565b61093481611ce6565b60008060005b6001600160a01b0384166000908152600a602052604090206116ba90611d9d565b8110156112d3576001600160a01b0384166000908152600a602052604090206116e7906102619083611da7565b6116f190836122ea565b9150806116fd81612302565b915050611699565b6001600160a01b0383166117675760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161065e565b6001600160a01b0382166117c85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161065e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03821661187f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161065e565b806002600082825461189191906122ea565b90915550506001600160a01b038216600090815260208190526040812080548392906118be9084906122ea565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03831661196c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161065e565b6001600160a01b0382166119ce5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161065e565b6001600160a01b03831660009081526020819052604090205481811015611a465760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161065e565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611a7d9084906122ea565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611ac991815260200190565b60405180910390a350505050565b600554600160a01b900460ff16611b275760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161065e565b6005805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038216611bd45760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161065e565b6001600160a01b03821660009081526020819052604090205481811015611c485760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161065e565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611c77908490612271565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60006106a98383611dbf565b600081815260018301602052604081205415156106a9565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600554600160a01b900460ff1615611d625760405162461bcd60e51b815260040161065e906122a7565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b573390565b600061060e825490565b60006106a98383611e0e565b60006106a98383611e38565b6000818152600183016020526040812054611e065750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561060e565b50600061060e565b6000826000018281548110611e2557611e25612352565b9060005260206000200154905092915050565b60008181526001830160205260408120548015611f21576000611e5c600183612271565b8554909150600090611e7090600190612271565b9050818114611ed5576000866000018281548110611e9057611e90612352565b9060005260206000200154905080876000018481548110611eb357611eb3612352565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611ee657611ee66123c1565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061060e565b600091505061060e565b600060208284031215611f3d57600080fd5b5035919050565b600060208083528351808285015260005b81811015611f7157858101830151858201604001528201611f55565b81811115611f83576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461093457600080fd5b60008060408385031215611fc157600080fd5b8235611fcc81611f99565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561200657600080fd5b843561201181611f99565b9350602085013561202181611f99565b925060408501359150606085013567ffffffffffffffff8082111561204557600080fd5b818701915087601f83011261205957600080fd5b81358181111561206b5761206b611fda565b604051601f8201601f19908116603f0116810190838211818310171561209357612093611fda565b816040528281528a60208487010111156120ac57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000606084860312156120e557600080fd5b83356120f081611f99565b9250602084013561210081611f99565b929592945050506040919091013590565b6000806020838503121561212457600080fd5b823567ffffffffffffffff8082111561213c57600080fd5b818501915085601f83011261215057600080fd5b81358181111561215f57600080fd5b8660208260051b850101111561217457600080fd5b60209290920196919550909350505050565b60006020828403121561219857600080fd5b81356106a981611f99565b6020808252825182820181905260009190848201906040850190845b818110156121db578351835292840192918401916001016121bf565b50909695505050505050565b600080604083850312156121fa57600080fd5b823561220581611f99565b9150602083013561221581611f99565b809150509250929050565b600181811c9082168061223457607f821691505b6020821081141561225557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156122835761228361225b565b500390565b60008160001904831182151516156122a2576122a261225b565b500290565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6000602082840312156122e357600080fd5b5051919050565b600082198211156122fd576122fd61225b565b500190565b60006000198214156123165761231661225b565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561237a57600080fd5b81516106a981611f99565b6020808252810182905260006001600160fb1b038311156123a557600080fd5b8260051b80856040850137600092016040019182525092915050565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220cda6edb7e092b24e635e302abaf97d4287466d70998e30840f29a342a8d3093864736f6c63430008090033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000d00e79629e2053d837285c74a0ec09f51b33c141000000000000000000000000000000000000000000000000000000000000000642616d626f6f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000642414d424f4f0000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80635c975abb1161010f57806395d89b41116100a2578063dd62ed3e11610071578063dd62ed3e14610451578063deb37cd01461048a578063f2fde38b1461049d578063ff9da9eb146104b057600080fd5b806395d89b4114610403578063a457c2d71461040b578063a9059cbb1461041e578063ac89abc31461043157600080fd5b806378451f29116100de57806378451f29146103b757806379cc6790146103d75780638456cb59146103ea5780638da5cb5b146103f257600080fd5b80635c975abb14610361578063619b0fd81461037357806370a0823114610386578063715018a6146103af57600080fd5b8063313ce5671161018757806346755c681161015657806346755c68146102f457806346804a321461030757806357f421f61461031a5780635891f74f1461032257600080fd5b8063313ce567146102b757806339509351146102c65780633f4ba83a146102d957806342966c68146102e157600080fd5b8063150b7a02116101c3578063150b7a021461026657806318160ddd146102925780631979f81e1461029a57806323b872dd146102a457600080fd5b8063015defc9146101f557806306fdde031461021b578063095ea7b3146102305780630ee2bb3114610253575b600080fd5b610208610203366004611f2b565b6104c3565b6040519081526020015b60405180910390f35b61022361056b565b6040516102129190611f44565b61024361023e366004611fae565b6105fd565b6040519015158152602001610212565b610208610261366004611f2b565b610614565b610279610274366004611ff0565b6106b0565b6040516001600160e01b03199091168152602001610212565b600254610208565b6102a261071b565b005b6102436102b23660046120d0565b610937565b60405160128152602001610212565b6102436102d4366004611fae565b6109e1565b6102a2610a1d565b6102a26102ef366004611f2b565b610a51565b6102a2610302366004611f2b565b610a5b565b6102a2610315366004612111565b610ad1565b6102a2610e4e565b6103497f000000000000000000000000d00e79629e2053d837285c74a0ec09f51b33c14181565b6040516001600160a01b039091168152602001610212565b600554600160a01b900460ff16610243565b6102a2610381366004612111565b610ece565b610208610394366004612186565b6001600160a01b031660009081526020819052604090205490565b6102a261106c565b6102086103c5366004611f2b565b60096020526000908152604090205481565b6102a26103e5366004611fae565b6110a0565b6102a2611126565b6005546001600160a01b0316610349565b610223611158565b610243610419366004611fae565b611167565b61024361042c366004611fae565b611200565b61044461043f366004612186565b61120d565b60405161021291906121a3565b61020861045f3660046121e7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102a2610498366004612111565b6112da565b6102a26104ab366004612186565b6115fb565b6102086104be366004612186565b611693565b600061012c82116104de5750683635c9adc5dea00000919050565b6101f482116104f757506828a857425466f80000919050565b6103e882116105105750681b1ae4d6e2ef500000919050565b6105dc82116105295750680d8d726b7177a80000919050565b6109c482116105425750680ad78ebc5ac6200000919050565b610bb8821161055b5750680821ab0d4414980000919050565b5068056bc75e2d63100000919050565b60606003805461057a90612220565b80601f01602080910402602001604051908101604052809291908181526020018280546105a690612220565b80156105f35780601f106105c8576101008083540402835291602001916105f3565b820191906000526020600020905b8154815290600101906020018083116105d657829003601f168201915b5050505050905090565b600061060a338484611705565b5060015b92915050565b6000818152600960205260408120546106675760405162461bcd60e51b815260206004820152601060248201526f1d1bdad95b881b9bdd081cdd185ad95960821b60448201526064015b60405180910390fd5b60004360075410610678574361067c565b6007545b6000848152600960205260409020549091506106989082612271565b6106a990660e35fa931a0000612288565b9392505050565b60006001600160a01b038516301461070a5760405162461bcd60e51b815260206004820152601d60248201527f4f70657261746f72206e6f74207374616b696e6720636f6e7472616374000000604482015260640161065e565b50630a85bd0160e11b949350505050565b600554600160a01b900460ff16156107455760405162461bcd60e51b815260040161065e906122a7565b6000805b6040516370a0823160e01b81523360048201527f000000000000000000000000d00e79629e2053d837285c74a0ec09f51b33c1416001600160a01b0316906370a082319060240160206040518083038186803b1580156107a857600080fd5b505afa1580156107bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e091906122d1565b8110156108e357604051632f745c5960e01b8152336004820152602481018290526000907f000000000000000000000000d00e79629e2053d837285c74a0ec09f51b33c1416001600160a01b031690632f745c599060440160206040518083038186803b15801561085057600080fd5b505afa158015610864573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088891906122d1565b6000818152600b602052604090205490915060ff166108d0576000818152600b60205260409020805460ff191660011790556108c3816104c3565b6108cd90846122ea565b92505b50806108db81612302565b915050610749565b506000811161092a5760405162461bcd60e51b81526020600482015260136024820152726e6f207265776172647320746f20636c61696d60681b604482015260640161065e565b6109343382611829565b50565b6000610944848484611908565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156109c95760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b606482015260840161065e565b6109d68533858403611705565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161060a918590610a189086906122ea565b611705565b6005546001600160a01b03163314610a475760405162461bcd60e51b815260040161065e9061231d565b610a4f611ad7565b565b6109343382611b74565b6005546001600160a01b03163314610a855760405162461bcd60e51b815260040161065e9061231d565b60085460ff1615610acc5760405162461bcd60e51b8152602060048201526011602482015270185b1c9958591e48199a5b985b1a5e9959607a1b604482015260640161065e565b600755565b600554600160a01b900460ff1615610afb5760405162461bcd60e51b815260040161065e906122a7565b60026006541415610b4e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161065e565b600260065560288111801590610b6357508015155b610baf5760405162461bcd60e51b815260206004820152601860248201527f5374616b653a20616d6f756e742070726f686962697465640000000000000000604482015260640161065e565b60005b81811015610e0157337f000000000000000000000000d00e79629e2053d837285c74a0ec09f51b33c1416001600160a01b0316636352211e858585818110610bfc57610bfc612352565b905060200201356040518263ffffffff1660e01b8152600401610c2191815260200190565b60206040518083038186803b158015610c3957600080fd5b505afa158015610c4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c719190612368565b6001600160a01b031614610cc75760405162461bcd60e51b815260206004820152601760248201527f5374616b653a2073656e646572206e6f74206f776e6572000000000000000000604482015260640161065e565b7f000000000000000000000000d00e79629e2053d837285c74a0ec09f51b33c1416001600160a01b03166342842e0e3330868686818110610d0a57610d0a612352565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015610d6157600080fd5b505af1158015610d75573d6000803e3d6000fd5b50505050436fffffffffffffffffffffffffffffffff1660096000858585818110610da257610da2612352565b90506020020135815260200190815260200160002081905550610dee838383818110610dd057610dd0612352565b336000908152600a6020908152604090912093910201359050611cc2565b5080610df981612302565b915050610bb2565b50336001600160a01b03167f134b166c6094cc1ccbf1e3353ce5c3cd9fd29869051bdb999895854d77cc5ef68383604051610e3d929190612385565b60405180910390a250506001600655565b6005546001600160a01b03163314610e785760405162461bcd60e51b815260040161065e9061231d565b60085460ff1615610ebf5760405162461bcd60e51b8152602060048201526011602482015270185b1c9958591e48199a5b985b1a5e9959607a1b604482015260640161065e565b6008805460ff19166001179055565b600554600160a01b900460ff1615610ef85760405162461bcd60e51b815260040161065e906122a7565b80610f395760405162461bcd60e51b81526020600482015260116024820152703737903830b732309034b21033b4bb32b760791b604482015260640161065e565b6000805b8281101561102757610f78848483818110610f5a57610f5a612352565b336000908152600a6020908152604090912093910201359050611cce565b610fb75760405162461bcd60e51b815260206004820152601060248201526f1d1bdad95b881b9bdd081cdd185ad95960821b604482015260640161065e565b610fd8848483818110610fcc57610fcc612352565b90506020020135610614565b610fe290836122ea565b91504360096000868685818110610ffb57610ffb612352565b90506020020135815260200190815260200160002081905550808061101f90612302565b915050610f3d565b506110323382611829565b60405181815233907ffc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe9060200160405180910390a2505050565b6005546001600160a01b031633146110965760405162461bcd60e51b815260040161065e9061231d565b610a4f6000611ce6565b60006110ac833361045f565b90508181101561110a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b606482015260840161065e565b6111178333848403611705565b6111218383611b74565b505050565b6005546001600160a01b031633146111505760405162461bcd60e51b815260040161065e9061231d565b610a4f611d38565b60606004805461057a90612220565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156111e95760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161065e565b6111f63385858403611705565b5060019392505050565b600061060a338484611908565b6001600160a01b0381166000908152600a602052604081206060919061123290611d9d565b67ffffffffffffffff81111561124a5761124a611fda565b604051908082528060200260200182016040528015611273578160200160208202803683370190505b50905060005b81518110156112d3576001600160a01b0384166000908152600a602052604090206112a49082611da7565b8282815181106112b6576112b6612352565b6020908102919091010152806112cb81612302565b915050611279565b5092915050565b600554600160a01b900460ff16156113045760405162461bcd60e51b815260040161065e906122a7565b600260065414156113575760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161065e565b60026006556028811180159061136c57508015155b6113b85760405162461bcd60e51b815260206004820152601a60248201527f556e7374616b653a20616d6f756e742070726f68696269746564000000000000604482015260640161065e565b6000805b8281101561156e576113d9848483818110610f5a57610f5a612352565b6114255760405162461bcd60e51b815260206004820152601960248201527f556e7374616b653a20746f6b656e206e6f74207374616b656400000000000000604482015260640161065e565b61143a848483818110610fcc57610fcc612352565b61144490836122ea565b915061147984848381811061145b5761145b612352565b336000908152600a6020908152604090912093910201359050611db3565b506009600085858481811061149057611490612352565b905060200201358152602001908152602001600020600090557f000000000000000000000000d00e79629e2053d837285c74a0ec09f51b33c1416001600160a01b03166342842e0e30338787868181106114ec576114ec612352565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561154357600080fd5b505af1158015611557573d6000803e3d6000fd5b50505050808061156690612302565b9150506113bc565b506115793382611829565b336001600160a01b03167f20748b935fd9f21155c2e98cb2bd5df6fe86f21b193cebaae8d9ad7db0ba541684846040516115b4929190612385565b60405180910390a260405181815233907ffc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe9060200160405180910390a25050600160065550565b6005546001600160a01b031633146116255760405162461bcd60e51b815260040161065e9061231d565b6001600160a01b03811661168a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161065e565b61093481611ce6565b60008060005b6001600160a01b0384166000908152600a602052604090206116ba90611d9d565b8110156112d3576001600160a01b0384166000908152600a602052604090206116e7906102619083611da7565b6116f190836122ea565b9150806116fd81612302565b915050611699565b6001600160a01b0383166117675760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161065e565b6001600160a01b0382166117c85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161065e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03821661187f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161065e565b806002600082825461189191906122ea565b90915550506001600160a01b038216600090815260208190526040812080548392906118be9084906122ea565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03831661196c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161065e565b6001600160a01b0382166119ce5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161065e565b6001600160a01b03831660009081526020819052604090205481811015611a465760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161065e565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611a7d9084906122ea565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611ac991815260200190565b60405180910390a350505050565b600554600160a01b900460ff16611b275760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161065e565b6005805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038216611bd45760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161065e565b6001600160a01b03821660009081526020819052604090205481811015611c485760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161065e565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611c77908490612271565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60006106a98383611dbf565b600081815260018301602052604081205415156106a9565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600554600160a01b900460ff1615611d625760405162461bcd60e51b815260040161065e906122a7565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b573390565b600061060e825490565b60006106a98383611e0e565b60006106a98383611e38565b6000818152600183016020526040812054611e065750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561060e565b50600061060e565b6000826000018281548110611e2557611e25612352565b9060005260206000200154905092915050565b60008181526001830160205260408120548015611f21576000611e5c600183612271565b8554909150600090611e7090600190612271565b9050818114611ed5576000866000018281548110611e9057611e90612352565b9060005260206000200154905080876000018481548110611eb357611eb3612352565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611ee657611ee66123c1565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061060e565b600091505061060e565b600060208284031215611f3d57600080fd5b5035919050565b600060208083528351808285015260005b81811015611f7157858101830151858201604001528201611f55565b81811115611f83576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461093457600080fd5b60008060408385031215611fc157600080fd5b8235611fcc81611f99565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561200657600080fd5b843561201181611f99565b9350602085013561202181611f99565b925060408501359150606085013567ffffffffffffffff8082111561204557600080fd5b818701915087601f83011261205957600080fd5b81358181111561206b5761206b611fda565b604051601f8201601f19908116603f0116810190838211818310171561209357612093611fda565b816040528281528a60208487010111156120ac57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000606084860312156120e557600080fd5b83356120f081611f99565b9250602084013561210081611f99565b929592945050506040919091013590565b6000806020838503121561212457600080fd5b823567ffffffffffffffff8082111561213c57600080fd5b818501915085601f83011261215057600080fd5b81358181111561215f57600080fd5b8660208260051b850101111561217457600080fd5b60209290920196919550909350505050565b60006020828403121561219857600080fd5b81356106a981611f99565b6020808252825182820181905260009190848201906040850190845b818110156121db578351835292840192918401916001016121bf565b50909695505050505050565b600080604083850312156121fa57600080fd5b823561220581611f99565b9150602083013561221581611f99565b809150509250929050565b600181811c9082168061223457607f821691505b6020821081141561225557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156122835761228361225b565b500390565b60008160001904831182151516156122a2576122a261225b565b500290565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6000602082840312156122e357600080fd5b5051919050565b600082198211156122fd576122fd61225b565b500190565b60006000198214156123165761231661225b565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561237a57600080fd5b81516106a981611f99565b6020808252810182905260006001600160fb1b038311156123a557600080fd5b8260051b80856040850137600092016040019182525092915050565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220cda6edb7e092b24e635e302abaf97d4287466d70998e30840f29a342a8d3093864736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000d00e79629e2053d837285c74a0ec09f51b33c141000000000000000000000000000000000000000000000000000000000000000642616d626f6f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000642414d424f4f0000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Bamboo
Arg [1] : symbol (string): BAMBOO
Arg [2] : _pandaContract (address): 0xD00e79629E2053D837285c74a0Ec09f51b33c141
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000d00e79629e2053d837285c74a0ec09f51b33c141
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [4] : 42616d626f6f0000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 42414d424f4f0000000000000000000000000000000000000000000000000000
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.