ETH Price: $3,458.77 (+6.52%)
Gas: 8 Gwei

Token

The PulseDogecoin Staking Carnival Token (CARN)
 

Overview

Max Total Supply

1,287,639.12006525418 CARN

Holders

368 (0.00%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 12 Decimals)

Balance
386.787956717198 CARN

Value
$0.00
0x76fe3456e212749fa39bb81205473c53ff35f201
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A suite of immutable, audited, and trustless smart contracts designed to pump the prices of your favorite tokens, reward PulseDogecoin Stakers and PulseBitcoin Lockers, and much much more.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CarnTokenBooth

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 2 of 10 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 3 of 10 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 4 of 10 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

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 {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

File 5 of 10 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 6 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 7 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 8 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 9 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 10 of 10 : Carnival.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract CarnTokenBooth is ERC20, ERC20Burnable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    uint256 public constant MAX_SUPPLY = 2 * 3141592 * 1e12;
    uint256 public currentRate; // How many token units a buyer gets per USDCBits
    uint256 public nextHike; // timestamp for the next hike
    uint256 week = 1;

    address public immutable pulseBitcoinLockNFTRewardPoolAddress;
    address public immutable carnivalBenevolentAddress;
    address public immutable waatcaAddress;
    address public immutable USDC;

    constructor(
        address _pulseBitcoinLockNFTRewardPoolAddress,
        address _carnivalBenevolentAddress,
        address _waatcaAddress,
        address _USDC
    ) ERC20("The PulseDogecoin Staking Carnival Token", "CARN") {
        pulseBitcoinLockNFTRewardPoolAddress = _pulseBitcoinLockNFTRewardPoolAddress;
        carnivalBenevolentAddress = _carnivalBenevolentAddress;
        waatcaAddress = _waatcaAddress;
        USDC = _USDC;
        _mint(pulseBitcoinLockNFTRewardPoolAddress, 1000000 * 1e12);
        _mint(carnivalBenevolentAddress, 2 * 141592 * 1e12);
        currentRate = 1e12 / 1e6; // Initially 1 USDC =  1 CARN
        nextHike = block.timestamp + 2 weeks;
    }

    function buyCARN(uint256 _usdcValue) public nonReentrant {
        require(block.chainid == 1, "This function can only be called on Ethereum mainnet");
        if (block.timestamp >= nextHike) {
            currentRate = 1e12 / (1e6 + 50000 * week);
            nextHike = block.timestamp + 1 weeks;
            week++;
        }

        IERC20(USDC).safeTransferFrom(msg.sender, carnivalBenevolentAddress, _usdcValue / 2);
        IERC20(USDC).safeTransferFrom(msg.sender, waatcaAddress, _usdcValue / 2);

        uint256 amount = _usdcValue * currentRate;
        require(totalSupply() + amount <= MAX_SUPPLY, "CARN supply exhausted");
        _mint(msg.sender, amount);
    }

    function decimals() public view virtual override returns (uint8) {
        return 12;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_pulseBitcoinLockNFTRewardPoolAddress","type":"address"},{"internalType":"address","name":"_carnivalBenevolentAddress","type":"address"},{"internalType":"address","name":"_waatcaAddress","type":"address"},{"internalType":"address","name":"_USDC","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"_usdcValue","type":"uint256"}],"name":"buyCARN","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"carnivalBenevolentAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextHike","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pulseBitcoinLockNFTRewardPoolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"waatcaAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

61010060405260016008553480156200001757600080fd5b5060405162002d7938038062002d7983398181016040528101906200003d9190620003cf565b60405180606001604052806028815260200162002d51602891396040518060400160405280600481526020017f4341524e0000000000000000000000000000000000000000000000000000000081525081600390816200009e9190620006bb565b508060049081620000b09190620006bb565b50505060016005819055508373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff1681525050620001a7608051670de0b6b3a7640000620001ee60201b60201c565b620001c360a0516703ee1258fe130000620001ee60201b60201c565b620f42406006819055506212750042620001de9190620007d1565b60078190555050505050620008bd565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000260576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000257906200086d565b60405180910390fd5b62000274600083836200035b60201b60201c565b8060026000828254620002889190620007d1565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200033b9190620008a0565b60405180910390a362000357600083836200036060201b60201c565b5050565b505050565b505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000397826200036a565b9050919050565b620003a9816200038a565b8114620003b557600080fd5b50565b600081519050620003c9816200039e565b92915050565b60008060008060808587031215620003ec57620003eb62000365565b5b6000620003fc87828801620003b8565b94505060206200040f87828801620003b8565b93505060406200042287828801620003b8565b92505060606200043587828801620003b8565b91505092959194509250565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004c357607f821691505b602082108103620004d957620004d86200047b565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005437fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000504565b6200054f868362000504565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200059c62000596620005908462000567565b62000571565b62000567565b9050919050565b6000819050919050565b620005b8836200057b565b620005d0620005c782620005a3565b84845462000511565b825550505050565b600090565b620005e7620005d8565b620005f4818484620005ad565b505050565b5b818110156200061c5762000610600082620005dd565b600181019050620005fa565b5050565b601f8211156200066b576200063581620004df565b6200064084620004f4565b8101602085101562000650578190505b620006686200065f85620004f4565b830182620005f9565b50505b505050565b600082821c905092915050565b6000620006906000198460080262000670565b1980831691505092915050565b6000620006ab83836200067d565b9150826002028217905092915050565b620006c68262000441565b67ffffffffffffffff811115620006e257620006e16200044c565b5b620006ee8254620004aa565b620006fb82828562000620565b600060209050601f8311600181146200073357600084156200071e578287015190505b6200072a85826200069d565b8655506200079a565b601f1984166200074386620004df565b60005b828110156200076d5784890151825560018201915060208501945060208101905062000746565b868310156200078d578489015162000789601f8916826200067d565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620007de8262000567565b9150620007eb8362000567565b9250828201905080821115620008065762000805620007a2565b5b92915050565b600082825260208201905092915050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600062000855601f836200080c565b915062000862826200081d565b602082019050919050565b60006020820190508181036000830152620008888162000846565b9050919050565b6200089a8162000567565b82525050565b6000602082019050620008b760008301846200088f565b92915050565b60805160a05160c05160e05161243e62000913600039600081816106020152818161067b015261083901526000818161064d0152610a340152600081816105d40152610a10015260006107ad015261243e6000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806356138b94116100b8578063a457c2d71161007c578063a457c2d714610340578063a9059cbb14610370578063dd62ed3e146103a0578063e4f89df7146103d0578063eea293a7146103ee578063f9f8bdb71461040c57610137565b806356138b941461029a57806370a08231146102b857806379cc6790146102e857806389a302711461030457806395d89b411461032257610137565b8063313ce567116100ff578063313ce567146101f457806332cb6b0c1461021257806339509351146102305780633a9145f01461026057806342966c681461027e57610137565b806306fdde031461013c578063095ea7b31461015a57806318160ddd1461018a57806323b872dd146101a857806329dfddbc146101d8575b600080fd5b61014461042a565b6040516101519190611662565b60405180910390f35b610174600480360381019061016f919061171d565b6104bc565b6040516101819190611778565b60405180910390f35b6101926104df565b60405161019f91906117a2565b60405180910390f35b6101c260048036038101906101bd91906117bd565b6104e9565b6040516101cf9190611778565b60405180910390f35b6101f260048036038101906101ed9190611810565b610518565b005b6101fc610745565b6040516102099190611859565b60405180910390f35b61021a61074e565b60405161022791906117a2565b60405180910390f35b61024a6004803603810190610245919061171d565b61075a565b6040516102579190611778565b60405180910390f35b610268610791565b60405161027591906117a2565b60405180910390f35b61029860048036038101906102939190611810565b610797565b005b6102a26107ab565b6040516102af9190611883565b60405180910390f35b6102d260048036038101906102cd919061189e565b6107cf565b6040516102df91906117a2565b60405180910390f35b61030260048036038101906102fd919061171d565b610817565b005b61030c610837565b6040516103199190611883565b60405180910390f35b61032a61085b565b6040516103379190611662565b60405180910390f35b61035a6004803603810190610355919061171d565b6108ed565b6040516103679190611778565b60405180910390f35b61038a6004803603810190610385919061171d565b610964565b6040516103979190611778565b60405180910390f35b6103ba60048036038101906103b591906118cb565b610987565b6040516103c791906117a2565b60405180910390f35b6103d8610a0e565b6040516103e59190611883565b60405180910390f35b6103f6610a32565b6040516104039190611883565b60405180910390f35b610414610a56565b60405161042191906117a2565b60405180910390f35b6060600380546104399061193a565b80601f01602080910402602001604051908101604052809291908181526020018280546104659061193a565b80156104b25780601f10610487576101008083540402835291602001916104b2565b820191906000526020600020905b81548152906001019060200180831161049557829003601f168201915b5050505050905090565b6000806104c7610a5c565b90506104d4818585610a64565b600191505092915050565b6000600254905090565b6000806104f4610a5c565b9050610501858285610c2d565b61050c858585610cb9565b60019150509392505050565b610520610f2f565b60014614610563576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055a906119dd565b60405180910390fd5b60075442106105ce5760085461c35061057c9190611a2c565b620f424061058a9190611a6e565b64e8d4a5100061059a9190611ad1565b60068190555062093a80426105af9190611a6e565b600781905550600860008154809291906105c890611b02565b91905055505b610647337f00000000000000000000000000000000000000000000000000000000000000006002846106009190611ad1565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610f7e909392919063ffffffff16565b6106c0337f00000000000000000000000000000000000000000000000000000000000000006002846106799190611ad1565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610f7e909392919063ffffffff16565b6000600654826106d09190611a2c565b90506757325a8eea6b0000816106e46104df565b6106ee9190611a6e565b111561072f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072690611b96565b60405180910390fd5b6107393382611007565b5061074261115d565b50565b6000600c905090565b6757325a8eea6b000081565b600080610765610a5c565b90506107868185856107778589610987565b6107819190611a6e565b610a64565b600191505092915050565b60075481565b6107a86107a2610a5c565b82611167565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61082982610823610a5c565b83610c2d565b6108338282611167565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606004805461086a9061193a565b80601f01602080910402602001604051908101604052809291908181526020018280546108969061193a565b80156108e35780601f106108b8576101008083540402835291602001916108e3565b820191906000526020600020905b8154815290600101906020018083116108c657829003601f168201915b5050505050905090565b6000806108f8610a5c565b905060006109068286610987565b90508381101561094b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094290611c28565b60405180910390fd5b6109588286868403610a64565b60019250505092915050565b60008061096f610a5c565b905061097c818585610cb9565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60065481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aca90611cba565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3990611d4c565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610c2091906117a2565b60405180910390a3505050565b6000610c398484610987565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610cb35781811015610ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9c90611db8565b60405180910390fd5b610cb28484848403610a64565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1f90611e4a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8e90611edc565b60405180910390fd5b610da2838383611334565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610e28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1f90611f6e565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610f1691906117a2565b60405180910390a3610f29848484611339565b50505050565b600260055403610f74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6b90611fda565b60405180910390fd5b6002600581905550565b611001846323b872dd60e01b858585604051602401610f9f93929190611ffa565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061133e565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611076576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106d9061207d565b60405180910390fd5b61108260008383611334565b80600260008282546110949190611a6e565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161114591906117a2565b60405180910390a361115960008383611339565b5050565b6001600581905550565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cd9061210f565b60405180910390fd5b6111e282600083611334565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611268576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125f906121a1565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161131b91906117a2565b60405180910390a361132f83600084611339565b505050565b505050565b505050565b60006113a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114059092919063ffffffff16565b905060008151111561140057808060200190518101906113c091906121ed565b6113ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f69061228c565b60405180910390fd5b5b505050565b6060611414848460008561141d565b90509392505050565b606082471015611462576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114599061231e565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161148b9190612385565b60006040518083038185875af1925050503d80600081146114c8576040519150601f19603f3d011682016040523d82523d6000602084013e6114cd565b606091505b50915091506114de878383876114ea565b92505050949350505050565b6060831561154c576000835103611544576115048561155f565b611543576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153a906123e8565b60405180910390fd5b5b829050611557565b6115568383611582565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156115955781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c99190611662565b60405180910390fd5b600081519050919050565b600082825260208201905092915050565b60005b8381101561160c5780820151818401526020810190506115f1565b60008484015250505050565b6000601f19601f8301169050919050565b6000611634826115d2565b61163e81856115dd565b935061164e8185602086016115ee565b61165781611618565b840191505092915050565b6000602082019050818103600083015261167c8184611629565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006116b482611689565b9050919050565b6116c4816116a9565b81146116cf57600080fd5b50565b6000813590506116e1816116bb565b92915050565b6000819050919050565b6116fa816116e7565b811461170557600080fd5b50565b600081359050611717816116f1565b92915050565b6000806040838503121561173457611733611684565b5b6000611742858286016116d2565b925050602061175385828601611708565b9150509250929050565b60008115159050919050565b6117728161175d565b82525050565b600060208201905061178d6000830184611769565b92915050565b61179c816116e7565b82525050565b60006020820190506117b76000830184611793565b92915050565b6000806000606084860312156117d6576117d5611684565b5b60006117e4868287016116d2565b93505060206117f5868287016116d2565b925050604061180686828701611708565b9150509250925092565b60006020828403121561182657611825611684565b5b600061183484828501611708565b91505092915050565b600060ff82169050919050565b6118538161183d565b82525050565b600060208201905061186e600083018461184a565b92915050565b61187d816116a9565b82525050565b60006020820190506118986000830184611874565b92915050565b6000602082840312156118b4576118b3611684565b5b60006118c2848285016116d2565b91505092915050565b600080604083850312156118e2576118e1611684565b5b60006118f0858286016116d2565b9250506020611901858286016116d2565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061195257607f821691505b6020821081036119655761196461190b565b5b50919050565b7f546869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656460008201527f206f6e20457468657265756d206d61696e6e6574000000000000000000000000602082015250565b60006119c76034836115dd565b91506119d28261196b565b604082019050919050565b600060208201905081810360008301526119f6816119ba565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611a37826116e7565b9150611a42836116e7565b9250828202611a50816116e7565b91508282048414831517611a6757611a666119fd565b5b5092915050565b6000611a79826116e7565b9150611a84836116e7565b9250828201905080821115611a9c57611a9b6119fd565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611adc826116e7565b9150611ae7836116e7565b925082611af757611af6611aa2565b5b828204905092915050565b6000611b0d826116e7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611b3f57611b3e6119fd565b5b600182019050919050565b7f4341524e20737570706c79206578686175737465640000000000000000000000600082015250565b6000611b806015836115dd565b9150611b8b82611b4a565b602082019050919050565b60006020820190508181036000830152611baf81611b73565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000611c126025836115dd565b9150611c1d82611bb6565b604082019050919050565b60006020820190508181036000830152611c4181611c05565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000611ca46024836115dd565b9150611caf82611c48565b604082019050919050565b60006020820190508181036000830152611cd381611c97565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000611d366022836115dd565b9150611d4182611cda565b604082019050919050565b60006020820190508181036000830152611d6581611d29565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000611da2601d836115dd565b9150611dad82611d6c565b602082019050919050565b60006020820190508181036000830152611dd181611d95565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000611e346025836115dd565b9150611e3f82611dd8565b604082019050919050565b60006020820190508181036000830152611e6381611e27565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000611ec66023836115dd565b9150611ed182611e6a565b604082019050919050565b60006020820190508181036000830152611ef581611eb9565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000611f586026836115dd565b9150611f6382611efc565b604082019050919050565b60006020820190508181036000830152611f8781611f4b565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611fc4601f836115dd565b9150611fcf82611f8e565b602082019050919050565b60006020820190508181036000830152611ff381611fb7565b9050919050565b600060608201905061200f6000830186611874565b61201c6020830185611874565b6120296040830184611793565b949350505050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000612067601f836115dd565b915061207282612031565b602082019050919050565b600060208201905081810360008301526120968161205a565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006120f96021836115dd565b91506121048261209d565b604082019050919050565b60006020820190508181036000830152612128816120ec565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b600061218b6022836115dd565b91506121968261212f565b604082019050919050565b600060208201905081810360008301526121ba8161217e565b9050919050565b6121ca8161175d565b81146121d557600080fd5b50565b6000815190506121e7816121c1565b92915050565b60006020828403121561220357612202611684565b5b6000612211848285016121d8565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612276602a836115dd565b91506122818261221a565b604082019050919050565b600060208201905081810360008301526122a581612269565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006123086026836115dd565b9150612313826122ac565b604082019050919050565b60006020820190508181036000830152612337816122fb565b9050919050565b600081519050919050565b600081905092915050565b600061235f8261233e565b6123698185612349565b93506123798185602086016115ee565b80840191505092915050565b60006123918284612354565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006123d2601d836115dd565b91506123dd8261239c565b602082019050919050565b60006020820190508181036000830152612401816123c5565b905091905056fea264697066735822122037765b9fe2bf3359f33969b402ed1d652b074dc15490e7e3facb8db3bc2eae4264736f6c634300081100335468652050756c7365446f6765636f696e205374616b696e67204361726e6976616c20546f6b656e000000000000000000000000ffb45a15c59260e57250442e6db8bed1dca84b70000000000000000000000000e33ab1a5f0f7d56da1d8ebc1702da8c8e3f18504000000000000000000000000d55fe0a9b00bb8c2691fc5b30a99496b7a7c3665000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101375760003560e01c806356138b94116100b8578063a457c2d71161007c578063a457c2d714610340578063a9059cbb14610370578063dd62ed3e146103a0578063e4f89df7146103d0578063eea293a7146103ee578063f9f8bdb71461040c57610137565b806356138b941461029a57806370a08231146102b857806379cc6790146102e857806389a302711461030457806395d89b411461032257610137565b8063313ce567116100ff578063313ce567146101f457806332cb6b0c1461021257806339509351146102305780633a9145f01461026057806342966c681461027e57610137565b806306fdde031461013c578063095ea7b31461015a57806318160ddd1461018a57806323b872dd146101a857806329dfddbc146101d8575b600080fd5b61014461042a565b6040516101519190611662565b60405180910390f35b610174600480360381019061016f919061171d565b6104bc565b6040516101819190611778565b60405180910390f35b6101926104df565b60405161019f91906117a2565b60405180910390f35b6101c260048036038101906101bd91906117bd565b6104e9565b6040516101cf9190611778565b60405180910390f35b6101f260048036038101906101ed9190611810565b610518565b005b6101fc610745565b6040516102099190611859565b60405180910390f35b61021a61074e565b60405161022791906117a2565b60405180910390f35b61024a6004803603810190610245919061171d565b61075a565b6040516102579190611778565b60405180910390f35b610268610791565b60405161027591906117a2565b60405180910390f35b61029860048036038101906102939190611810565b610797565b005b6102a26107ab565b6040516102af9190611883565b60405180910390f35b6102d260048036038101906102cd919061189e565b6107cf565b6040516102df91906117a2565b60405180910390f35b61030260048036038101906102fd919061171d565b610817565b005b61030c610837565b6040516103199190611883565b60405180910390f35b61032a61085b565b6040516103379190611662565b60405180910390f35b61035a6004803603810190610355919061171d565b6108ed565b6040516103679190611778565b60405180910390f35b61038a6004803603810190610385919061171d565b610964565b6040516103979190611778565b60405180910390f35b6103ba60048036038101906103b591906118cb565b610987565b6040516103c791906117a2565b60405180910390f35b6103d8610a0e565b6040516103e59190611883565b60405180910390f35b6103f6610a32565b6040516104039190611883565b60405180910390f35b610414610a56565b60405161042191906117a2565b60405180910390f35b6060600380546104399061193a565b80601f01602080910402602001604051908101604052809291908181526020018280546104659061193a565b80156104b25780601f10610487576101008083540402835291602001916104b2565b820191906000526020600020905b81548152906001019060200180831161049557829003601f168201915b5050505050905090565b6000806104c7610a5c565b90506104d4818585610a64565b600191505092915050565b6000600254905090565b6000806104f4610a5c565b9050610501858285610c2d565b61050c858585610cb9565b60019150509392505050565b610520610f2f565b60014614610563576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055a906119dd565b60405180910390fd5b60075442106105ce5760085461c35061057c9190611a2c565b620f424061058a9190611a6e565b64e8d4a5100061059a9190611ad1565b60068190555062093a80426105af9190611a6e565b600781905550600860008154809291906105c890611b02565b91905055505b610647337f000000000000000000000000e33ab1a5f0f7d56da1d8ebc1702da8c8e3f185046002846106009190611ad1565b7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4873ffffffffffffffffffffffffffffffffffffffff16610f7e909392919063ffffffff16565b6106c0337f000000000000000000000000d55fe0a9b00bb8c2691fc5b30a99496b7a7c36656002846106799190611ad1565b7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4873ffffffffffffffffffffffffffffffffffffffff16610f7e909392919063ffffffff16565b6000600654826106d09190611a2c565b90506757325a8eea6b0000816106e46104df565b6106ee9190611a6e565b111561072f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072690611b96565b60405180910390fd5b6107393382611007565b5061074261115d565b50565b6000600c905090565b6757325a8eea6b000081565b600080610765610a5c565b90506107868185856107778589610987565b6107819190611a6e565b610a64565b600191505092915050565b60075481565b6107a86107a2610a5c565b82611167565b50565b7f000000000000000000000000ffb45a15c59260e57250442e6db8bed1dca84b7081565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61082982610823610a5c565b83610c2d565b6108338282611167565b5050565b7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b60606004805461086a9061193a565b80601f01602080910402602001604051908101604052809291908181526020018280546108969061193a565b80156108e35780601f106108b8576101008083540402835291602001916108e3565b820191906000526020600020905b8154815290600101906020018083116108c657829003601f168201915b5050505050905090565b6000806108f8610a5c565b905060006109068286610987565b90508381101561094b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094290611c28565b60405180910390fd5b6109588286868403610a64565b60019250505092915050565b60008061096f610a5c565b905061097c818585610cb9565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b7f000000000000000000000000e33ab1a5f0f7d56da1d8ebc1702da8c8e3f1850481565b7f000000000000000000000000d55fe0a9b00bb8c2691fc5b30a99496b7a7c366581565b60065481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aca90611cba565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3990611d4c565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610c2091906117a2565b60405180910390a3505050565b6000610c398484610987565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610cb35781811015610ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9c90611db8565b60405180910390fd5b610cb28484848403610a64565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1f90611e4a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8e90611edc565b60405180910390fd5b610da2838383611334565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610e28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1f90611f6e565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610f1691906117a2565b60405180910390a3610f29848484611339565b50505050565b600260055403610f74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6b90611fda565b60405180910390fd5b6002600581905550565b611001846323b872dd60e01b858585604051602401610f9f93929190611ffa565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061133e565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611076576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106d9061207d565b60405180910390fd5b61108260008383611334565b80600260008282546110949190611a6e565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161114591906117a2565b60405180910390a361115960008383611339565b5050565b6001600581905550565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cd9061210f565b60405180910390fd5b6111e282600083611334565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611268576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125f906121a1565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161131b91906117a2565b60405180910390a361132f83600084611339565b505050565b505050565b505050565b60006113a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114059092919063ffffffff16565b905060008151111561140057808060200190518101906113c091906121ed565b6113ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f69061228c565b60405180910390fd5b5b505050565b6060611414848460008561141d565b90509392505050565b606082471015611462576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114599061231e565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161148b9190612385565b60006040518083038185875af1925050503d80600081146114c8576040519150601f19603f3d011682016040523d82523d6000602084013e6114cd565b606091505b50915091506114de878383876114ea565b92505050949350505050565b6060831561154c576000835103611544576115048561155f565b611543576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153a906123e8565b60405180910390fd5b5b829050611557565b6115568383611582565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156115955781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c99190611662565b60405180910390fd5b600081519050919050565b600082825260208201905092915050565b60005b8381101561160c5780820151818401526020810190506115f1565b60008484015250505050565b6000601f19601f8301169050919050565b6000611634826115d2565b61163e81856115dd565b935061164e8185602086016115ee565b61165781611618565b840191505092915050565b6000602082019050818103600083015261167c8184611629565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006116b482611689565b9050919050565b6116c4816116a9565b81146116cf57600080fd5b50565b6000813590506116e1816116bb565b92915050565b6000819050919050565b6116fa816116e7565b811461170557600080fd5b50565b600081359050611717816116f1565b92915050565b6000806040838503121561173457611733611684565b5b6000611742858286016116d2565b925050602061175385828601611708565b9150509250929050565b60008115159050919050565b6117728161175d565b82525050565b600060208201905061178d6000830184611769565b92915050565b61179c816116e7565b82525050565b60006020820190506117b76000830184611793565b92915050565b6000806000606084860312156117d6576117d5611684565b5b60006117e4868287016116d2565b93505060206117f5868287016116d2565b925050604061180686828701611708565b9150509250925092565b60006020828403121561182657611825611684565b5b600061183484828501611708565b91505092915050565b600060ff82169050919050565b6118538161183d565b82525050565b600060208201905061186e600083018461184a565b92915050565b61187d816116a9565b82525050565b60006020820190506118986000830184611874565b92915050565b6000602082840312156118b4576118b3611684565b5b60006118c2848285016116d2565b91505092915050565b600080604083850312156118e2576118e1611684565b5b60006118f0858286016116d2565b9250506020611901858286016116d2565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061195257607f821691505b6020821081036119655761196461190b565b5b50919050565b7f546869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656460008201527f206f6e20457468657265756d206d61696e6e6574000000000000000000000000602082015250565b60006119c76034836115dd565b91506119d28261196b565b604082019050919050565b600060208201905081810360008301526119f6816119ba565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611a37826116e7565b9150611a42836116e7565b9250828202611a50816116e7565b91508282048414831517611a6757611a666119fd565b5b5092915050565b6000611a79826116e7565b9150611a84836116e7565b9250828201905080821115611a9c57611a9b6119fd565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611adc826116e7565b9150611ae7836116e7565b925082611af757611af6611aa2565b5b828204905092915050565b6000611b0d826116e7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611b3f57611b3e6119fd565b5b600182019050919050565b7f4341524e20737570706c79206578686175737465640000000000000000000000600082015250565b6000611b806015836115dd565b9150611b8b82611b4a565b602082019050919050565b60006020820190508181036000830152611baf81611b73565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000611c126025836115dd565b9150611c1d82611bb6565b604082019050919050565b60006020820190508181036000830152611c4181611c05565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000611ca46024836115dd565b9150611caf82611c48565b604082019050919050565b60006020820190508181036000830152611cd381611c97565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000611d366022836115dd565b9150611d4182611cda565b604082019050919050565b60006020820190508181036000830152611d6581611d29565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000611da2601d836115dd565b9150611dad82611d6c565b602082019050919050565b60006020820190508181036000830152611dd181611d95565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000611e346025836115dd565b9150611e3f82611dd8565b604082019050919050565b60006020820190508181036000830152611e6381611e27565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000611ec66023836115dd565b9150611ed182611e6a565b604082019050919050565b60006020820190508181036000830152611ef581611eb9565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000611f586026836115dd565b9150611f6382611efc565b604082019050919050565b60006020820190508181036000830152611f8781611f4b565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611fc4601f836115dd565b9150611fcf82611f8e565b602082019050919050565b60006020820190508181036000830152611ff381611fb7565b9050919050565b600060608201905061200f6000830186611874565b61201c6020830185611874565b6120296040830184611793565b949350505050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000612067601f836115dd565b915061207282612031565b602082019050919050565b600060208201905081810360008301526120968161205a565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006120f96021836115dd565b91506121048261209d565b604082019050919050565b60006020820190508181036000830152612128816120ec565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b600061218b6022836115dd565b91506121968261212f565b604082019050919050565b600060208201905081810360008301526121ba8161217e565b9050919050565b6121ca8161175d565b81146121d557600080fd5b50565b6000815190506121e7816121c1565b92915050565b60006020828403121561220357612202611684565b5b6000612211848285016121d8565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612276602a836115dd565b91506122818261221a565b604082019050919050565b600060208201905081810360008301526122a581612269565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006123086026836115dd565b9150612313826122ac565b604082019050919050565b60006020820190508181036000830152612337816122fb565b9050919050565b600081519050919050565b600081905092915050565b600061235f8261233e565b6123698185612349565b93506123798185602086016115ee565b80840191505092915050565b60006123918284612354565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006123d2601d836115dd565b91506123dd8261239c565b602082019050919050565b60006020820190508181036000830152612401816123c5565b905091905056fea264697066735822122037765b9fe2bf3359f33969b402ed1d652b074dc15490e7e3facb8db3bc2eae4264736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000ffb45a15c59260e57250442e6db8bed1dca84b70000000000000000000000000e33ab1a5f0f7d56da1d8ebc1702da8c8e3f18504000000000000000000000000d55fe0a9b00bb8c2691fc5b30a99496b7a7c3665000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

-----Decoded View---------------
Arg [0] : _pulseBitcoinLockNFTRewardPoolAddress (address): 0xfFB45A15C59260e57250442E6Db8BED1dca84B70
Arg [1] : _carnivalBenevolentAddress (address): 0xe33Ab1A5F0f7d56Da1D8ebc1702dA8c8E3F18504
Arg [2] : _waatcaAddress (address): 0xd55fe0a9b00Bb8C2691FC5B30a99496B7A7c3665
Arg [3] : _USDC (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000ffb45a15c59260e57250442e6db8bed1dca84b70
Arg [1] : 000000000000000000000000e33ab1a5f0f7d56da1d8ebc1702da8c8e3f18504
Arg [2] : 000000000000000000000000d55fe0a9b00bb8c2691fc5b30a99496b7a7c3665
Arg [3] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48


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.