Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 3,249 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer | 40032116 | 48 days ago | IN | 0 ETH | 0.00000007 | ||||
| Approve | 39757281 | 55 days ago | IN | 0 ETH | 0.00000002 | ||||
| Approve | 39383555 | 63 days ago | IN | 0 ETH | 0.00000014 | ||||
| Approve | 39383551 | 63 days ago | IN | 0 ETH | 0.00000015 | ||||
| Approve | 38435209 | 85 days ago | IN | 0 ETH | 0.0000061 | ||||
| Approve | 38391378 | 86 days ago | IN | 0 ETH | 0.00000022 | ||||
| Approve | 38170418 | 92 days ago | IN | 0 ETH | 0.00000057 | ||||
| Approve | 37979910 | 96 days ago | IN | 0 ETH | 0.0000001 | ||||
| Approve | 37977871 | 96 days ago | IN | 0 ETH | 0.00000054 | ||||
| Approve | 37972720 | 96 days ago | IN | 0 ETH | 0.00000014 | ||||
| Approve | 37972632 | 96 days ago | IN | 0 ETH | 0.00000015 | ||||
| Transfer | 37972088 | 96 days ago | IN | 0 ETH | 0.00000015 | ||||
| Transfer | 37972046 | 96 days ago | IN | 0 ETH | 0.00000022 | ||||
| Approve | 37971804 | 96 days ago | IN | 0 ETH | 0.00000009 | ||||
| Approve | 37971798 | 96 days ago | IN | 0 ETH | 0.00000009 | ||||
| Transfer | 37971772 | 96 days ago | IN | 0 ETH | 0.00000017 | ||||
| Approve | 37971765 | 96 days ago | IN | 0 ETH | 0.00000003 | ||||
| Approve | 37971709 | 96 days ago | IN | 0 ETH | 0.00000007 | ||||
| Approve | 37971669 | 96 days ago | IN | 0 ETH | 0.00000007 | ||||
| Approve | 37971650 | 96 days ago | IN | 0 ETH | 0.00000011 | ||||
| Transfer | 37971647 | 96 days ago | IN | 0 ETH | 0.00000008 | ||||
| Approve | 37971646 | 96 days ago | IN | 0 ETH | 0.00000007 | ||||
| Transfer | 37971638 | 96 days ago | IN | 0 ETH | 0.00000014 | ||||
| Approve | 37971617 | 96 days ago | IN | 0 ETH | 0.00000002 | ||||
| Approve | 37971604 | 96 days ago | IN | 0 ETH | 0.00000003 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BlueMoon
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @title BlueMoon
* @notice ERC20 token with on-chain color generation for generative art
* @dev Each mint generates a unique blue shade using blockchain randomness
*
* Total Supply: 88,888,888 BLUE (fixed, pre-minted)
* - 100% (88,888,888) for public minting via USDC payment
* - 0% for treasury
*
* Mint Price: 0.88 USDC per mint
* Tokens per Mint: 4,444 BLUE
* Max Mints: 20,002 (completes the artwork)
*/
contract BlueMoon is ERC20, ReentrancyGuard, Pausable, Ownable {
// ============================================
// CONSTANTS
// ============================================
uint256 public constant TOTAL_SUPPLY = 88_888_888e18;
uint256 public constant PUBLIC_ALLOCATION = 88_888_888e18; // 100% for public minting
uint256 public constant TREASURY_ALLOCATION = 0; // No treasury - all for the people!
uint256 public constant MAX_MINTS = 20_002;
uint256 public constant MAX_MINTS_PER_ADDRESS = 1_760; // 8.8% of total mints (anti-whale)
// Mint configuration
uint256 public constant TOKENS_PER_MINT = 4_444e18; // 4,444 BLUE per mint
uint256 public constant MINT_PRICE = 880_000; // 0.88 USDC (6 decimals)
// Color generation constants (HSL ranges)
// Refined to match NFT contract - true blues only
uint256 private constant HUE_MIN = 209;
uint256 private constant HUE_MAX = 230;
uint256 private constant SAT_MIN = 37;
uint256 private constant SAT_MAX = 100;
uint256 private constant LIGHT_MIN = 20;
uint256 private constant LIGHT_MAX = 63;
// ============================================
// STATE VARIABLES
// ============================================
IERC20 public immutable usdc;
address public immutable treasury;
uint256 public totalMints;
mapping(address => uint256) public lastMintBlock;
mapping(address => uint256) public mintsByAddress; // Track mints per address for 8% cap
// ============================================
// EVENTS
// ============================================
/**
* @notice Emitted when a user mints BLUE tokens and generates a color
* @param minter Address that minted the tokens
* @param mintId Sequential mint ID (0 to 10,000)
* @param hue HSL hue value (209-230)
* @param saturation HSL saturation value (37-100)
* @param lightness HSL lightness value (20-63)
* @param color Full HSL color string for display
*/
event ColorMinted(
address indexed minter,
uint256 indexed mintId,
uint256 hue,
uint256 saturation,
uint256 lightness,
string color
);
// ============================================
// CONSTRUCTOR
// ============================================
/**
* @notice Deploy BlueMoon token with pre-minted supply
* @param _usdc Address of USDC token contract
* @param _treasury Address to receive treasury allocation and owner permissions
*/
constructor(
address _usdc,
address _treasury
) ERC20("Blue Moon", "BMOON") Ownable(_treasury) {
require(_usdc != address(0), "Invalid USDC address");
require(_treasury != address(0), "Invalid treasury address");
usdc = IERC20(_usdc);
treasury = _treasury;
// Pre-mint entire fixed supply to this contract
_mint(address(this), TOTAL_SUPPLY);
// Start in paused state - owner must unpause to enable minting
_pause();
// No treasury allocation - 100% stays in contract for public minting!
// All 88,888,888 BLUE tokens available to the people via minting
}
// ============================================
// PUBLIC FUNCTIONS
// ============================================
/**
* @notice Mint BLUE tokens by paying USDC
* @dev One mint transaction per block per address to prevent bot abuse
* Supports single mint (1) or batch mint (8) for gas efficiency
*
* Process:
* 1. Verify amount is 1 or 8
* 2. Verify supply available and block rate limit
* 3. Transfer USDC from user to contract (amount × price)
* 4. Transfer BLUE tokens from contract to user (amount × tokens)
* 5. Generate unique colors and emit events (8 unique colors for batch)
*
* @param amount Number of mints (must be 1 or 8)
*/
function mint(uint256 amount) external nonReentrant whenNotPaused {
require(amount == 1 || amount == 8, "Must mint 1 or 8");
require(totalMints + amount <= MAX_MINTS, "Sold out");
require(
mintsByAddress[msg.sender] + amount <= MAX_MINTS_PER_ADDRESS,
"Address mint limit reached"
);
require(
block.number > lastMintBlock[msg.sender],
"One mint per block"
);
// Transfer USDC from user to contract
require(
usdc.transferFrom(msg.sender, address(this), MINT_PRICE * amount),
"USDC transfer failed"
);
// Transfer pre-minted BLUE tokens to user
_transfer(address(this), msg.sender, TOKENS_PER_MINT * amount);
// Generate colors and emit events
if (amount == 1) {
// Single mint - no loop overhead
(uint256 h, uint256 s, uint256 l, string memory colorString) =
_generateColor(0);
emit ColorMinted(msg.sender, totalMints, h, s, l, colorString);
totalMints++;
} else {
// Batch mint - generate 8 unique colors
for (uint256 i = 0; i < 8; i++) {
(uint256 h, uint256 s, uint256 l, string memory colorString) =
_generateColor(i); // batchIndex ensures uniqueness
emit ColorMinted(msg.sender, totalMints, h, s, l, colorString);
totalMints++;
}
}
// Update state
lastMintBlock[msg.sender] = block.number;
mintsByAddress[msg.sender] += amount;
}
/**
* @notice Get remaining BLUE tokens available for minting
* @return Amount of BLUE tokens left in contract
*/
function remainingSupply() external view returns (uint256) {
return balanceOf(address(this));
}
/**
* @notice Get number of mints remaining
* @return Number of mints left (out of 10,001)
*/
function remainingMints() external view returns (uint256) {
return MAX_MINTS - totalMints;
}
// ============================================
// INTERNAL FUNCTIONS
// ============================================
/**
* @notice Generate a unique blue color using on-chain randomness
* @dev Uses keccak256 hash of transaction data for pseudo-randomness
*
* Seed Components:
* - msg.sender: Ensures different users get different colors
* - block.timestamp: Time-based variation
* - block.prevrandao: Block-level entropy (replaces difficulty post-merge)
* - totalMints: Sequential uniqueness
* - batchIndex: Ensures uniqueness within batch mints
*
* @param batchIndex Index within batch (0 for single mint, 0-7 for batch)
* @return hue HSL hue value (209-230 degrees)
* @return sat HSL saturation value (37-100%)
* @return light HSL lightness value (20-63%)
* @return colorString Full HSL color string "hsl(215, 78%, 45%)"
*/
function _generateColor(uint256 batchIndex)
internal
view
returns (
uint256 hue,
uint256 sat,
uint256 light,
string memory colorString
)
{
// Generate pseudo-random seed from transaction data
uint256 seed = uint256(
keccak256(
abi.encodePacked(
msg.sender,
block.timestamp,
block.prevrandao, // Post-merge randomness source
totalMints,
batchIndex // Ensures unique colors in batch mints
)
)
);
// Calculate HSL values from seed
// Use unchecked arithmetic since overflow is safe with modulo
hue = HUE_MIN + (seed % (HUE_MAX - HUE_MIN + 1));
unchecked {
sat = SAT_MIN + ((seed * 7) % (SAT_MAX - SAT_MIN + 1));
light = LIGHT_MIN + ((seed * 13) % (LIGHT_MAX - LIGHT_MIN + 1));
}
// Adjust pale tones to avoid purple (when lightness > 60)
if (light > 60) {
uint256 paleFactor = ((light - 60) * 100) / 20;
uint256 hueReduction = (paleFactor * 15) / 100;
hue = hue > hueReduction ? hue - hueReduction : HUE_MIN;
}
// Format as HSL string
colorString = string(
abi.encodePacked(
"hsl(",
_toString(hue),
", ",
_toString(sat),
"%, ",
_toString(light),
"%)"
)
);
}
/**
* @notice Convert uint256 to string
* @dev Helper function for color string generation
* @param value Number to convert
* @return String representation of the number
*/
function _toString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
// ============================================
// TREASURY FUNCTIONS
// ============================================
/**
* @notice Withdraw accumulated USDC from mints
* @dev Only callable by treasury address
*/
function withdrawUSDC() external {
require(msg.sender == treasury, "Only treasury");
uint256 balance = usdc.balanceOf(address(this));
require(balance > 0, "No USDC to withdraw");
require(usdc.transfer(treasury, balance), "USDC transfer failed");
}
// ============================================
// ADMIN FUNCTIONS
// ============================================
/**
* @notice Pause minting
* @dev Only callable by owner (treasury address)
*/
function pause() external onlyOwner {
_pause();
}
/**
* @notice Unpause minting
* @dev Only callable by owner (treasury address)
*/
function unpause() external onlyOwner {
_unpause();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC6093.sol)
pragma solidity >=0.8.4;
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC-721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC-1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC-20
* applications.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* Both 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 returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/// @inheritdoc IERC20
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/// @inheritdoc IERC20
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/// @inheritdoc IERC20
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Skips emitting an {Approval} event indicating an allowance update. This is not
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` 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.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
*
* ```solidity
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner`'s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance < type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity >=0.6.2;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC-20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (utils/Pausable.sol)
pragma solidity ^0.8.20;
import {Context} from "../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 {
bool private _paused;
/**
* @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);
/**
* @dev The operation failed because the contract is paused.
*/
error EnforcedPause();
/**
* @dev The operation failed because the contract is not paused.
*/
error ExpectedPause();
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
if (paused()) {
revert EnforcedPause();
}
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
if (!paused()) {
revert ExpectedPause();
}
}
/**
* @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
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @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 EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* 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;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_status = NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_usdc","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"uint256","name":"mintId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"hue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"saturation","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lightness","type":"uint256"},{"indexed":false,"internalType":"string","name":"color","type":"string"}],"name":"ColorMinted","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":"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"},{"inputs":[],"name":"MAX_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKENS_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastMintBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintsByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdc","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60c06040523480156200001157600080fd5b5060405162001c8638038062001c86833981016040819052620000349162000431565b806040518060400160405280600981526020016821363ab29026b7b7b760b91b815250604051806040016040528060058152602001642126a7a7a760d91b81525081600390816200008691906200050e565b5060046200009582826200050e565b50506001600555506001600160a01b038116620000cd57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000d881620001c5565b506001600160a01b038216620001315760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964205553444320616464726573730000000000000000000000006044820152606401620000c4565b6001600160a01b038116620001895760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207472656173757279206164647265737300000000000000006044820152606401620000c4565b6001600160a01b03808316608052811660a052620001b3306a4986f44622f73835e000006200021f565b620001bd6200025d565b505062000602565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200024b5760405163ec442f0560e01b815260006004820152602401620000c4565b6200025960008383620002ba565b5050565b62000267620003ed565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200029d3390565b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038316620002e9578060026000828254620002dd9190620005da565b909155506200035d9050565b6001600160a01b038316600090815260208190526040902054818110156200033e5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401620000c4565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166200037b576002805482900390556200039a565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620003e091815260200190565b60405180910390a3505050565b60065460ff1615620004125760405163d93c066560e01b815260040160405180910390fd5b565b80516001600160a01b03811681146200042c57600080fd5b919050565b600080604083850312156200044557600080fd5b620004508362000414565b9150620004606020840162000414565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200049457607f821691505b602082108103620004b557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200050957600081815260208120601f850160051c81016020861015620004e45750805b601f850160051c820191505b818110156200050557828155600101620004f0565b5050505b505050565b81516001600160401b038111156200052a576200052a62000469565b62000542816200053b84546200047f565b84620004bb565b602080601f8311600181146200057a5760008415620005615750858301515b600019600386901b1c1916600185901b17855562000505565b600085815260208120601f198616915b82811015620005ab578886015182559484019460019091019084016200058a565b5085821015620005ca5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620005fc57634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05161163b6200064b600039600081816102c10152818161097c0152610ac301526000818161026d015281816106e1015281816109f10152610af2015261163b6000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063902d55a51161010f578063d36744c4116100a2578063dd62ed3e11610071578063dd62ed3e146103fb578063e3177e6b14610352578063ed016a4614610434578063f2fde38b1461044457600080fd5b8063d36744c4146103b6578063d87854cb146103d6578063d8fc063d146103de578063da0239a6146103e657600080fd5b8063b874ff43116100de578063b874ff4314610392578063bf1ad7e01461039b578063c002d23d146103a3578063cce132d1146103ad57600080fd5b8063902d55a51461035257806395d89b4114610364578063a0712d681461036c578063a9059cbb1461037f57600080fd5b80633f4ba83a11610187578063715018a611610156578063715018a61461030c5780638456cb59146103145780638b185b351461031c5780638da5cb5b1461033c57600080fd5b80633f4ba83a146102a75780635c975abb146102b157806361d027b3146102bc57806370a08231146102e357600080fd5b80631f21bfbf116101c35780631f21bfbf1461023d57806323b872dd14610246578063313ce567146102595780633e413bee1461026857600080fd5b806306fdde03146101ea578063095ea7b31461020857806318160ddd1461022b575b600080fd5b6101f2610457565b6040516101ff9190611307565b60405180910390f35b61021b61021636600461133d565b6104e9565b60405190151581526020016101ff565b6002545b6040519081526020016101ff565b61022f60075481565b61021b610254366004611367565b610503565b604051601281526020016101ff565b61028f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101ff565b6102af610527565b005b60065460ff1661021b565b61028f7f000000000000000000000000000000000000000000000000000000000000000081565b61022f6102f13660046113a3565b6001600160a01b031660009081526020819052604090205490565b6102af610539565b6102af61054b565b61022f61032a3660046113a3565b60086020526000908152604090205481565b60065461010090046001600160a01b031661028f565b61022f6a4986f44622f73835e0000081565b6101f261055b565b6102af61037a3660046113be565b61056a565b61021b61038d36600461133d565b61094c565b61022f6106e081565b61022f600081565b61022f620d6d8081565b61022f614e2281565b61022f6103c43660046113a3565b60096020526000908152604090205481565b61022f61095a565b6102af610971565b3060009081526020819052604090205461022f565b61022f6104093660046113d7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61022f68f0e8e396adcbf0000081565b6102af6104523660046113a3565b610ba2565b6060600380546104669061140a565b80601f01602080910402602001604051908101604052809291908181526020018280546104929061140a565b80156104df5780601f106104b4576101008083540402835291602001916104df565b820191906000526020600020905b8154815290600101906020018083116104c257829003601f168201915b5050505050905090565b6000336104f7818585610bdd565b60019150505b92915050565b600033610511858285610bef565b61051c858585610c6e565b506001949350505050565b61052f610ccd565b610537610d00565b565b610541610ccd565b6105376000610d52565b610553610ccd565b610537610dac565b6060600480546104669061140a565b610572610de9565b61057a610e13565b80600114806105895750806008145b6105cd5760405162461bcd60e51b815260206004820152601060248201526f09aeae6e840dad2dce8406240dee440760831b60448201526064015b60405180910390fd5b614e22816007546105de919061145a565b11156106175760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b60448201526064016105c4565b336000908152600960205260409020546106e09061063690839061145a565b11156106845760405162461bcd60e51b815260206004820152601a60248201527f41646472657373206d696e74206c696d6974207265616368656400000000000060448201526064016105c4565b3360009081526008602052604090205443116106d75760405162461bcd60e51b81526020600482015260126024820152714f6e65206d696e742070657220626c6f636b60701b60448201526064016105c4565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166323b872dd333061071585620d6d8061146d565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015610769573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078d9190611484565b6107d05760405162461bcd60e51b81526020600482015260146024820152731554d110c81d1c985b9cd9995c8819985a5b195960621b60448201526064016105c4565b6107ed30336107e88468f0e8e396adcbf0000061146d565b610c6e565b80600103610875576000806000806108056000610e37565b9350935093509350600754336001600160a01b03167f687bb44742b274899681964afa6b956cf41d0121f0d5170f96b774a7e686daaa8686868660405161084f94939291906114a6565b60405180910390a360078054906000610867836114d5565b919050555050505050610910565b60005b600881101561090e5760008060008061089085610e37565b9350935093509350600754336001600160a01b03167f687bb44742b274899681964afa6b956cf41d0121f0d5170f96b774a7e686daaa868686866040516108da94939291906114a6565b60405180910390a3600780549060006108f2836114d5565b9190505550505050508080610906906114d5565b915050610878565b505b33600090815260086020908152604080832043905560099091528120805483929061093c90849061145a565b9091555050600160055550565b50565b6000336104f7818585610c6e565b6000600754614e2261096c91906114ee565b905090565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109d95760405162461bcd60e51b815260206004820152600d60248201526c4f6e6c7920747265617375727960981b60448201526064016105c4565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610a40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a649190611501565b905060008111610aac5760405162461bcd60e51b81526020600482015260136024820152724e6f205553444320746f20776974686472617760681b60448201526064016105c4565b60405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af1158015610b3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5f9190611484565b6109495760405162461bcd60e51b81526020600482015260146024820152731554d110c81d1c985b9cd9995c8819985a5b195960621b60448201526064016105c4565b610baa610ccd565b6001600160a01b038116610bd457604051631e4fbdf760e01b8152600060048201526024016105c4565b61094981610d52565b610bea8383836001610f8c565b505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811015610c685781811015610c5957604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016105c4565b610c6884848484036000610f8c565b50505050565b6001600160a01b038316610c9857604051634b637e8f60e11b8152600060048201526024016105c4565b6001600160a01b038216610cc25760405163ec442f0560e01b8152600060048201526024016105c4565b610bea838383611061565b6006546001600160a01b036101009091041633146105375760405163118cdaa760e01b81523360048201526024016105c4565b610d0861118b565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610db4610e13565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610d353390565b600260055403610e0c57604051633ee5aeb560e01b815260040160405180910390fd5b6002600555565b60065460ff16156105375760405163d93c066560e01b815260040160405180910390fd5b60075460405133606090811b6bffffffffffffffffffffffff191660208301524260348301524460548301526074820192909252609481018390526000918291829190829060b40160408051601f1981840301815291905280516020909101209050610ea560d160e66114ee565b610eb090600161145a565b610eba9082611530565b610ec59060d161145a565b9450604060078202066025019350602c600d8202066014019250603c831115610f465760006014610ef7603c866114ee565b610f0290606461146d565b610f0c9190611544565b905060006064610f1d83600f61146d565b610f279190611544565b9050808711610f375760d1610f41565b610f4181886114ee565b965050505b610f4f856111ae565b610f58856111ae565b610f61856111ae565b604051602001610f7393929190611558565b6040516020818303038152906040529150509193509193565b6001600160a01b038416610fb65760405163e602df0560e01b8152600060048201526024016105c4565b6001600160a01b038316610fe057604051634a1406b160e11b8152600060048201526024016105c4565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610c6857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161105391815260200190565b60405180910390a350505050565b6001600160a01b03831661108c578060026000828254611081919061145a565b909155506110fe9050565b6001600160a01b038316600090815260208190526040902054818110156110df5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016105c4565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661111a57600280548290039055611139565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161117e91815260200190565b60405180910390a3505050565b60065460ff1661053757604051638dfc202b60e01b815260040160405180910390fd5b6060816000036111d55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156111ff57806111e9816114d5565b91506111f89050600a83611544565b91506111d9565b60008167ffffffffffffffff81111561121a5761121a6115d9565b6040519080825280601f01601f191660200182016040528015611244576020820181803683370190505b5090505b84156112af576112596001836114ee565b9150611266600a86611530565b61127190603061145a565b60f81b818381518110611286576112866115ef565b60200101906001600160f81b031916908160001a9053506112a8600a86611544565b9450611248565b949350505050565b60005b838110156112d25781810151838201526020016112ba565b50506000910152565b600081518084526112f38160208601602086016112b7565b601f01601f19169290920160200192915050565b60208152600061131a60208301846112db565b9392505050565b80356001600160a01b038116811461133857600080fd5b919050565b6000806040838503121561135057600080fd5b61135983611321565b946020939093013593505050565b60008060006060848603121561137c57600080fd5b61138584611321565b925061139360208501611321565b9150604084013590509250925092565b6000602082840312156113b557600080fd5b61131a82611321565b6000602082840312156113d057600080fd5b5035919050565b600080604083850312156113ea57600080fd5b6113f383611321565b915061140160208401611321565b90509250929050565b600181811c9082168061141e57607f821691505b60208210810361143e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104fd576104fd611444565b80820281158282048414176104fd576104fd611444565b60006020828403121561149657600080fd5b8151801515811461131a57600080fd5b8481528360208201528260408201526080606082015260006114cb60808301846112db565b9695505050505050565b6000600182016114e7576114e7611444565b5060010190565b818103818111156104fd576104fd611444565b60006020828403121561151357600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b60008261153f5761153f61151a565b500690565b6000826115535761155361151a565b500490565b630d0e6d8560e31b8152600084516115778160048501602089016112b7565b61016160f51b60049184019182015284516115998160068401602089016112b7565b6201296160ed1b6006929091019182015283516115bd8160098401602088016112b7565b61252960f01b60099290910191820152600b0195945050505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212202023adebdb85d9709f6ae67fa5488910cc3913a20d04da603e70ed5473255bf664736f6c63430008140033000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000a73db69ea64315c44c970245c1f30a7bc765a7d0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063902d55a51161010f578063d36744c4116100a2578063dd62ed3e11610071578063dd62ed3e146103fb578063e3177e6b14610352578063ed016a4614610434578063f2fde38b1461044457600080fd5b8063d36744c4146103b6578063d87854cb146103d6578063d8fc063d146103de578063da0239a6146103e657600080fd5b8063b874ff43116100de578063b874ff4314610392578063bf1ad7e01461039b578063c002d23d146103a3578063cce132d1146103ad57600080fd5b8063902d55a51461035257806395d89b4114610364578063a0712d681461036c578063a9059cbb1461037f57600080fd5b80633f4ba83a11610187578063715018a611610156578063715018a61461030c5780638456cb59146103145780638b185b351461031c5780638da5cb5b1461033c57600080fd5b80633f4ba83a146102a75780635c975abb146102b157806361d027b3146102bc57806370a08231146102e357600080fd5b80631f21bfbf116101c35780631f21bfbf1461023d57806323b872dd14610246578063313ce567146102595780633e413bee1461026857600080fd5b806306fdde03146101ea578063095ea7b31461020857806318160ddd1461022b575b600080fd5b6101f2610457565b6040516101ff9190611307565b60405180910390f35b61021b61021636600461133d565b6104e9565b60405190151581526020016101ff565b6002545b6040519081526020016101ff565b61022f60075481565b61021b610254366004611367565b610503565b604051601281526020016101ff565b61028f7f000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda0291381565b6040516001600160a01b0390911681526020016101ff565b6102af610527565b005b60065460ff1661021b565b61028f7f000000000000000000000000a73db69ea64315c44c970245c1f30a7bc765a7d081565b61022f6102f13660046113a3565b6001600160a01b031660009081526020819052604090205490565b6102af610539565b6102af61054b565b61022f61032a3660046113a3565b60086020526000908152604090205481565b60065461010090046001600160a01b031661028f565b61022f6a4986f44622f73835e0000081565b6101f261055b565b6102af61037a3660046113be565b61056a565b61021b61038d36600461133d565b61094c565b61022f6106e081565b61022f600081565b61022f620d6d8081565b61022f614e2281565b61022f6103c43660046113a3565b60096020526000908152604090205481565b61022f61095a565b6102af610971565b3060009081526020819052604090205461022f565b61022f6104093660046113d7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61022f68f0e8e396adcbf0000081565b6102af6104523660046113a3565b610ba2565b6060600380546104669061140a565b80601f01602080910402602001604051908101604052809291908181526020018280546104929061140a565b80156104df5780601f106104b4576101008083540402835291602001916104df565b820191906000526020600020905b8154815290600101906020018083116104c257829003601f168201915b5050505050905090565b6000336104f7818585610bdd565b60019150505b92915050565b600033610511858285610bef565b61051c858585610c6e565b506001949350505050565b61052f610ccd565b610537610d00565b565b610541610ccd565b6105376000610d52565b610553610ccd565b610537610dac565b6060600480546104669061140a565b610572610de9565b61057a610e13565b80600114806105895750806008145b6105cd5760405162461bcd60e51b815260206004820152601060248201526f09aeae6e840dad2dce8406240dee440760831b60448201526064015b60405180910390fd5b614e22816007546105de919061145a565b11156106175760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b60448201526064016105c4565b336000908152600960205260409020546106e09061063690839061145a565b11156106845760405162461bcd60e51b815260206004820152601a60248201527f41646472657373206d696e74206c696d6974207265616368656400000000000060448201526064016105c4565b3360009081526008602052604090205443116106d75760405162461bcd60e51b81526020600482015260126024820152714f6e65206d696e742070657220626c6f636b60701b60448201526064016105c4565b6001600160a01b037f000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913166323b872dd333061071585620d6d8061146d565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015610769573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078d9190611484565b6107d05760405162461bcd60e51b81526020600482015260146024820152731554d110c81d1c985b9cd9995c8819985a5b195960621b60448201526064016105c4565b6107ed30336107e88468f0e8e396adcbf0000061146d565b610c6e565b80600103610875576000806000806108056000610e37565b9350935093509350600754336001600160a01b03167f687bb44742b274899681964afa6b956cf41d0121f0d5170f96b774a7e686daaa8686868660405161084f94939291906114a6565b60405180910390a360078054906000610867836114d5565b919050555050505050610910565b60005b600881101561090e5760008060008061089085610e37565b9350935093509350600754336001600160a01b03167f687bb44742b274899681964afa6b956cf41d0121f0d5170f96b774a7e686daaa868686866040516108da94939291906114a6565b60405180910390a3600780549060006108f2836114d5565b9190505550505050508080610906906114d5565b915050610878565b505b33600090815260086020908152604080832043905560099091528120805483929061093c90849061145a565b9091555050600160055550565b50565b6000336104f7818585610c6e565b6000600754614e2261096c91906114ee565b905090565b336001600160a01b037f000000000000000000000000a73db69ea64315c44c970245c1f30a7bc765a7d016146109d95760405162461bcd60e51b815260206004820152600d60248201526c4f6e6c7920747265617375727960981b60448201526064016105c4565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda029136001600160a01b0316906370a0823190602401602060405180830381865afa158015610a40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a649190611501565b905060008111610aac5760405162461bcd60e51b81526020600482015260136024820152724e6f205553444320746f20776974686472617760681b60448201526064016105c4565b60405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000a73db69ea64315c44c970245c1f30a7bc765a7d081166004830152602482018390527f000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913169063a9059cbb906044016020604051808303816000875af1158015610b3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5f9190611484565b6109495760405162461bcd60e51b81526020600482015260146024820152731554d110c81d1c985b9cd9995c8819985a5b195960621b60448201526064016105c4565b610baa610ccd565b6001600160a01b038116610bd457604051631e4fbdf760e01b8152600060048201526024016105c4565b61094981610d52565b610bea8383836001610f8c565b505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811015610c685781811015610c5957604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016105c4565b610c6884848484036000610f8c565b50505050565b6001600160a01b038316610c9857604051634b637e8f60e11b8152600060048201526024016105c4565b6001600160a01b038216610cc25760405163ec442f0560e01b8152600060048201526024016105c4565b610bea838383611061565b6006546001600160a01b036101009091041633146105375760405163118cdaa760e01b81523360048201526024016105c4565b610d0861118b565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610db4610e13565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610d353390565b600260055403610e0c57604051633ee5aeb560e01b815260040160405180910390fd5b6002600555565b60065460ff16156105375760405163d93c066560e01b815260040160405180910390fd5b60075460405133606090811b6bffffffffffffffffffffffff191660208301524260348301524460548301526074820192909252609481018390526000918291829190829060b40160408051601f1981840301815291905280516020909101209050610ea560d160e66114ee565b610eb090600161145a565b610eba9082611530565b610ec59060d161145a565b9450604060078202066025019350602c600d8202066014019250603c831115610f465760006014610ef7603c866114ee565b610f0290606461146d565b610f0c9190611544565b905060006064610f1d83600f61146d565b610f279190611544565b9050808711610f375760d1610f41565b610f4181886114ee565b965050505b610f4f856111ae565b610f58856111ae565b610f61856111ae565b604051602001610f7393929190611558565b6040516020818303038152906040529150509193509193565b6001600160a01b038416610fb65760405163e602df0560e01b8152600060048201526024016105c4565b6001600160a01b038316610fe057604051634a1406b160e11b8152600060048201526024016105c4565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610c6857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161105391815260200190565b60405180910390a350505050565b6001600160a01b03831661108c578060026000828254611081919061145a565b909155506110fe9050565b6001600160a01b038316600090815260208190526040902054818110156110df5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016105c4565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661111a57600280548290039055611139565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161117e91815260200190565b60405180910390a3505050565b60065460ff1661053757604051638dfc202b60e01b815260040160405180910390fd5b6060816000036111d55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156111ff57806111e9816114d5565b91506111f89050600a83611544565b91506111d9565b60008167ffffffffffffffff81111561121a5761121a6115d9565b6040519080825280601f01601f191660200182016040528015611244576020820181803683370190505b5090505b84156112af576112596001836114ee565b9150611266600a86611530565b61127190603061145a565b60f81b818381518110611286576112866115ef565b60200101906001600160f81b031916908160001a9053506112a8600a86611544565b9450611248565b949350505050565b60005b838110156112d25781810151838201526020016112ba565b50506000910152565b600081518084526112f38160208601602086016112b7565b601f01601f19169290920160200192915050565b60208152600061131a60208301846112db565b9392505050565b80356001600160a01b038116811461133857600080fd5b919050565b6000806040838503121561135057600080fd5b61135983611321565b946020939093013593505050565b60008060006060848603121561137c57600080fd5b61138584611321565b925061139360208501611321565b9150604084013590509250925092565b6000602082840312156113b557600080fd5b61131a82611321565b6000602082840312156113d057600080fd5b5035919050565b600080604083850312156113ea57600080fd5b6113f383611321565b915061140160208401611321565b90509250929050565b600181811c9082168061141e57607f821691505b60208210810361143e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104fd576104fd611444565b80820281158282048414176104fd576104fd611444565b60006020828403121561149657600080fd5b8151801515811461131a57600080fd5b8481528360208201528260408201526080606082015260006114cb60808301846112db565b9695505050505050565b6000600182016114e7576114e7611444565b5060010190565b818103818111156104fd576104fd611444565b60006020828403121561151357600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b60008261153f5761153f61151a565b500690565b6000826115535761155361151a565b500490565b630d0e6d8560e31b8152600084516115778160048501602089016112b7565b61016160f51b60049184019182015284516115998160068401602089016112b7565b6201296160ed1b6006929091019182015283516115bd8160098401602088016112b7565b61252960f01b60099290910191820152600b0195945050505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212202023adebdb85d9709f6ae67fa5488910cc3913a20d04da603e70ed5473255bf664736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000a73db69ea64315c44c970245c1f30a7bc765a7d0
-----Decoded View---------------
Arg [0] : _usdc (address): 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Arg [1] : _treasury (address): 0xA73dB69EA64315c44C970245C1f30A7bc765A7D0
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913
Arg [1] : 000000000000000000000000a73db69ea64315c44c970245c1f30a7bc765a7d0
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.