Sepolia Testnet

Token

WORM (WORM)
ERC-20

Overview

Max Total Supply

125,297.934279515886390077 WORM

Holders

4,169

Market

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
27.909837360635109089 WORM
0x0f6a7806dc7de09248c4aa40eaea73d43a281c5d
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
WORM

Compiler Version
v0.8.30+commit.73712a01

Optimization Enabled:
No with 200 runs

Other Settings:
cancun EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import "openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";

contract WORM is ERC20 {
    uint256 constant BLOCK_PER_EPOCH = 10;
    uint256 constant REWARD_PER_EPOCH = 50 ether;

    IERC20 public bethContract;
    uint256 public startingTimestamp;

    mapping(uint256 => uint256) public epochTotal;
    mapping(uint256 => mapping(address => uint256)) public epochUser;

    constructor(IERC20 _bethContract) ERC20("WORM", "WORM") {
        bethContract = _bethContract;
        startingTimestamp = block.timestamp;
    }

    /**
     * @notice Returns the current epoch number based on the starting block and blocks per epoch.
     *
     * @dev The epoch number is calculated by dividing the number of blocks since the starting block by the number of blocks per epoch.
     *
     * @return The current epoch number.
     */
    function currentEpoch() public view returns (uint256) {
        return (block.timestamp - startingTimestamp) / 1800 seconds;
    }

    /**
     * @notice Estimates the amount of tokens that can be minted for a given participation over multiple epochs.
     *
     * @dev This function calculates the approximate mint amount based on the user's participation and the total participation in each epoch.
     *
     * @param _amountPerEpoch The amount the user plans to participate per epoch.
     * @param _numEpochs The number of epochs the user plans to participate in.
     * @return The approximate amount of tokens that can be minted.
     */
    function approximate(
        uint256 _amountPerEpoch,
        uint256 _numEpochs
    ) public view returns (uint256) {
        uint256 mint_amount = 0;
        uint256 currEpoch = currentEpoch();
        for (uint256 i = 0; i < _numEpochs; i++) {
            uint256 epochIndex = currEpoch + i;
            uint256 user = epochUser[epochIndex][msg.sender] +
                _amountPerEpoch;
            uint256 total = epochTotal[epochIndex] + _amountPerEpoch;
            mint_amount += (REWARD_PER_EPOCH * user) / total;
        }
        return mint_amount;
    }

    /**
     * @notice Allows a user to participate in the reward program by locking tokens for multiple epochs.
     *
     * @dev This function updates the user's participation in the specified number of epochs and transfers the required amount of beth tokens to the contract.
     *
     * @param _amountPerEpoch The amount of tokens to lock per epoch.
     * @param _numEpochs The number of epochs to participate in.
     */
    function participate(
        uint256 _amountPerEpoch,
        uint256 _numEpochs
    ) external {
        require(_numEpochs != 0, "Invalid epoch number.");
        uint256 currEpoch = currentEpoch();
        for (uint256 i = 0; i < _numEpochs; i++) {
            epochTotal[currEpoch + i] += _amountPerEpoch;
            epochUser[currEpoch + i][msg.sender] += _amountPerEpoch;
        }
        require(
            bethContract.transferFrom(
                msg.sender,
                address(this),
                _numEpochs * _amountPerEpoch
            ),
            "TF"
        );
    }

    /**
     * @notice Allows a user to get the claim amount of their rewards for participation in past epochs.
     *
     * @dev This function calculates and mints the reward based on the user's participation and the total participation in each epoch.
     *
     * @param _startingEpoch The starting epoch number from which to claim rewards.
     * @param _numEpochs The number of epochs to claim rewards for.
     * @param _user The user address.
     */
    function calculateMintAmount(
        uint256 _startingEpoch,
        uint256 _numEpochs,
        address _user
    ) public view returns (uint256) {
        require(
            _startingEpoch + _numEpochs <= currentEpoch(),
            "Cannot claim an ongoing epoch!"
        );
        uint256 mintAmount = 0;
        for (uint256 i = 0; i < _numEpochs; i++) {
            uint256 total = epochTotal[_startingEpoch + i];
            if (total > 0) {
                uint256 user = epochUser[_startingEpoch + i][_user];
                mintAmount += (REWARD_PER_EPOCH * user) / total;
            }
        }
        return mintAmount;
    }

    /**
     * @notice Allows a user to claim their rewards for participation in past epochs.
     *
     * @dev This function calculates and mints the reward based on the user's participation and the total participation in each epoch.
     *
     * @param _startingEpoch The starting epoch number from which to claim rewards.
     * @param _numEpochs The number of epochs to claim rewards for.
     */
    function claim(
        uint256 _startingEpoch,
        uint256 _numEpochs
    ) external returns (uint256) {
        uint256 mintAmount = calculateMintAmount(
            _startingEpoch,
            _numEpochs,
            msg.sender
        );
        _mint(msg.sender, mintAmount);
        for (uint256 i = 0; i < _numEpochs; i++) {
            epochUser[_startingEpoch + i][msg.sender] = 0;
        }
        return mintAmount;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.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;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    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;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    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.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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.1.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

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.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.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @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);
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": false
}

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_bethContract","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"},{"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":[{"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":"uint256","name":"_amountPerEpoch","type":"uint256"},{"internalType":"uint256","name":"_numEpochs","type":"uint256"}],"name":"approximate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bethContract","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startingEpoch","type":"uint256"},{"internalType":"uint256","name":"_numEpochs","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"calculateMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startingEpoch","type":"uint256"},{"internalType":"uint256","name":"_numEpochs","type":"uint256"}],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentEpoch","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":"uint256","name":"","type":"uint256"}],"name":"epochTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"epochUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountPerEpoch","type":"uint256"},{"internalType":"uint256","name":"_numEpochs","type":"uint256"}],"name":"participate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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"}]

608060405234801561000f575f5ffd5b50604051611e39380380611e398339818101604052810190610031919061017b565b6040518060400160405280600481526020017f574f524d000000000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f574f524d0000000000000000000000000000000000000000000000000000000081525081600390816100ac91906103e3565b5080600490816100bc91906103e3565b5050508060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555042600681905550506104b2565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61013982610110565b9050919050565b5f61014a8261012f565b9050919050565b61015a81610140565b8114610164575f5ffd5b50565b5f8151905061017581610151565b92915050565b5f602082840312156101905761018f61010c565b5b5f61019d84828501610167565b91505092915050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061022157607f821691505b602082108103610234576102336101dd565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026102967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261025b565b6102a0868361025b565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6102e46102df6102da846102b8565b6102c1565b6102b8565b9050919050565b5f819050919050565b6102fd836102ca565b610311610309826102eb565b848454610267565b825550505050565b5f5f905090565b610328610319565b6103338184846102f4565b505050565b5b818110156103565761034b5f82610320565b600181019050610339565b5050565b601f82111561039b5761036c8161023a565b6103758461024c565b81016020851015610384578190505b6103986103908561024c565b830182610338565b50505b505050565b5f82821c905092915050565b5f6103bb5f19846008026103a0565b1980831691505092915050565b5f6103d383836103ac565b9150826002028217905092915050565b6103ec826101a6565b67ffffffffffffffff811115610405576104046101b0565b5b61040f825461020a565b61041a82828561035a565b5f60209050601f83116001811461044b575f8415610439578287015190505b61044385826103c8565b8655506104aa565b601f1984166104598661023a565b5f5b828110156104805784890151825560018201915060208501945060208101905061045b565b8683101561049d5784890151610499601f8916826103ac565b8355505b6001600288020188555050505b505050505050565b61197a806104bf5f395ff3fe608060405234801561000f575f5ffd5b5060043610610114575f3560e01c806370a08231116100a0578063a9059cbb1161006f578063a9059cbb146102f6578063c349026314610326578063dd62ed3e14610356578063e0afdf1b14610386578063f22f708d146103b657610114565b806370a082311461026c578063766718081461029c57806388786272146102ba57806395d89b41146102d857610114565b8063194b822b116100e7578063194b822b146101a05780631e0e8489146101be57806323b872dd146101ee5780632bbbcaaa1461021e578063313ce5671461024e57610114565b806306fdde0314610118578063095ea7b314610136578063129874aa1461016657806318160ddd14610182575b5f5ffd5b6101206103e6565b60405161012d91906111f5565b60405180910390f35b610150600480360381019061014b91906112a6565b610476565b60405161015d91906112fe565b60405180910390f35b610180600480360381019061017b9190611317565b610498565b005b61018a61068c565b6040516101979190611364565b60405180910390f35b6101a8610695565b6040516101b591906113d8565b60405180910390f35b6101d860048036038101906101d391906113f1565b6106ba565b6040516101e59190611364565b60405180910390f35b6102086004803603810190610203919061141c565b6106cf565b60405161021591906112fe565b60405180910390f35b6102386004803603810190610233919061146c565b6106fd565b6040516102459190611364565b60405180910390f35b610256610830565b60405161026391906114d7565b60405180910390f35b610286600480360381019061028191906114f0565b610838565b6040516102939190611364565b60405180910390f35b6102a461087d565b6040516102b19190611364565b60405180910390f35b6102c261089e565b6040516102cf9190611364565b60405180910390f35b6102e06108a4565b6040516102ed91906111f5565b60405180910390f35b610310600480360381019061030b91906112a6565b610934565b60405161031d91906112fe565b60405180910390f35b610340600480360381019061033b9190611317565b610956565b60405161034d9190611364565b60405180910390f35b610370600480360381019061036b919061151b565b6109f0565b60405161037d9190611364565b60405180910390f35b6103a0600480360381019061039b9190611317565b610a72565b6040516103ad9190611364565b60405180910390f35b6103d060048036038101906103cb9190611559565b610b62565b6040516103dd9190611364565b60405180910390f35b6060600380546103f5906115c4565b80601f0160208091040260200160405190810160405280929190818152602001828054610421906115c4565b801561046c5780601f106104435761010080835404028352916020019161046c565b820191905f5260205f20905b81548152906001019060200180831161044f57829003601f168201915b5050505050905090565b5f5f610480610b82565b905061048d818585610b89565b600191505092915050565b5f81036104da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d19061163e565b60405180910390fd5b5f6104e361087d565b90505f5f90505b8281101561059e578360075f83856105029190611689565b81526020019081526020015f205f82825461051d9190611689565b925050819055508360085f83856105349190611689565b81526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461058a9190611689565b9250508190555080806001019150506104ea565b5060055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333086866105ea91906116bc565b6040518463ffffffff1660e01b81526004016106089392919061170c565b6020604051808303815f875af1158015610624573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610648919061176b565b610687576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067e906117e0565b60405180910390fd5b505050565b5f600254905090565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6007602052805f5260405f205f915090505481565b5f5f6106d9610b82565b90506106e6858285610b9b565b6106f1858585610c2e565b60019150509392505050565b5f61070661087d565b83856107129190611689565b1115610753576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161074a90611848565b60405180910390fd5b5f5f90505f5f90505b84811015610824575f60075f83896107749190611689565b81526020019081526020015f205490505f811115610816575f60085f848a61079c9190611689565b81526020019081526020015f205f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081816802b5e3af16b18800006107fd91906116bc565b6108079190611893565b846108129190611689565b9350505b50808060010191505061075c565b50809150509392505050565b5f6012905090565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b5f6107086006544261088f91906118c3565b6108999190611893565b905090565b60065481565b6060600480546108b3906115c4565b80601f01602080910402602001604051908101604052809291908181526020018280546108df906115c4565b801561092a5780601f106109015761010080835404028352916020019161092a565b820191905f5260205f20905b81548152906001019060200180831161090d57829003601f168201915b5050505050905090565b5f5f61093e610b82565b905061094b818585610c2e565b600191505092915050565b5f5f6109638484336106fd565b905061096f3382610d1e565b5f5f90505b838110156109e5575f60085f838861098c9190611689565b81526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508080600101915050610974565b508091505092915050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f5f5f90505f610a8061087d565b90505f5f90505b84811015610b56575f8183610a9c9190611689565b90505f8760085f8481526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610af79190611689565b90505f8860075f8581526020019081526020015f2054610b179190611689565b905080826802b5e3af16b1880000610b2f91906116bc565b610b399190611893565b86610b449190611689565b95505050508080600101915050610a87565b50819250505092915050565b6008602052815f5260405f20602052805f5260405f205f91509150505481565b5f33905090565b610b968383836001610d9d565b505050565b5f610ba684846109f0565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610c285781811015610c19578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610c10939291906118f6565b60405180910390fd5b610c2784848484035f610d9d565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c9e575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610c95919061192b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d0e575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610d05919061192b565b60405180910390fd5b610d19838383610f6c565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d8e575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610d85919061192b565b60405180910390fd5b610d995f8383610f6c565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610e0d575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610e04919061192b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610e7d575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610e74919061192b565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015610f66578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610f5d9190611364565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fbc578060025f828254610fb09190611689565b9250508190555061108a565b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611045578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161103c939291906118f6565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110d1578060025f828254039250508190555061111b565b805f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516111789190611364565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6111c782611185565b6111d1818561118f565b93506111e181856020860161119f565b6111ea816111ad565b840191505092915050565b5f6020820190508181035f83015261120d81846111bd565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61124282611219565b9050919050565b61125281611238565b811461125c575f5ffd5b50565b5f8135905061126d81611249565b92915050565b5f819050919050565b61128581611273565b811461128f575f5ffd5b50565b5f813590506112a08161127c565b92915050565b5f5f604083850312156112bc576112bb611215565b5b5f6112c98582860161125f565b92505060206112da85828601611292565b9150509250929050565b5f8115159050919050565b6112f8816112e4565b82525050565b5f6020820190506113115f8301846112ef565b92915050565b5f5f6040838503121561132d5761132c611215565b5b5f61133a85828601611292565b925050602061134b85828601611292565b9150509250929050565b61135e81611273565b82525050565b5f6020820190506113775f830184611355565b92915050565b5f819050919050565b5f6113a061139b61139684611219565b61137d565b611219565b9050919050565b5f6113b182611386565b9050919050565b5f6113c2826113a7565b9050919050565b6113d2816113b8565b82525050565b5f6020820190506113eb5f8301846113c9565b92915050565b5f6020828403121561140657611405611215565b5b5f61141384828501611292565b91505092915050565b5f5f5f6060848603121561143357611432611215565b5b5f6114408682870161125f565b93505060206114518682870161125f565b925050604061146286828701611292565b9150509250925092565b5f5f5f6060848603121561148357611482611215565b5b5f61149086828701611292565b93505060206114a186828701611292565b92505060406114b28682870161125f565b9150509250925092565b5f60ff82169050919050565b6114d1816114bc565b82525050565b5f6020820190506114ea5f8301846114c8565b92915050565b5f6020828403121561150557611504611215565b5b5f6115128482850161125f565b91505092915050565b5f5f6040838503121561153157611530611215565b5b5f61153e8582860161125f565b925050602061154f8582860161125f565b9150509250929050565b5f5f6040838503121561156f5761156e611215565b5b5f61157c85828601611292565b925050602061158d8582860161125f565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806115db57607f821691505b6020821081036115ee576115ed611597565b5b50919050565b7f496e76616c69642065706f6368206e756d6265722e00000000000000000000005f82015250565b5f61162860158361118f565b9150611633826115f4565b602082019050919050565b5f6020820190508181035f8301526116558161161c565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61169382611273565b915061169e83611273565b92508282019050808211156116b6576116b561165c565b5b92915050565b5f6116c682611273565b91506116d183611273565b92508282026116df81611273565b915082820484148315176116f6576116f561165c565b5b5092915050565b61170681611238565b82525050565b5f60608201905061171f5f8301866116fd565b61172c60208301856116fd565b6117396040830184611355565b949350505050565b61174a816112e4565b8114611754575f5ffd5b50565b5f8151905061176581611741565b92915050565b5f602082840312156117805761177f611215565b5b5f61178d84828501611757565b91505092915050565b7f54460000000000000000000000000000000000000000000000000000000000005f82015250565b5f6117ca60028361118f565b91506117d582611796565b602082019050919050565b5f6020820190508181035f8301526117f7816117be565b9050919050565b7f43616e6e6f7420636c61696d20616e206f6e676f696e672065706f63682100005f82015250565b5f611832601e8361118f565b915061183d826117fe565b602082019050919050565b5f6020820190508181035f83015261185f81611826565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61189d82611273565b91506118a883611273565b9250826118b8576118b7611866565b5b828204905092915050565b5f6118cd82611273565b91506118d883611273565b92508282039050818111156118f0576118ef61165c565b5b92915050565b5f6060820190506119095f8301866116fd565b6119166020830185611355565b6119236040830184611355565b949350505050565b5f60208201905061193e5f8301846116fd565b9291505056fea26469706673582212206d1453e39f7656edeb06451a23a37255e98cbd873eecd72cf3a3de95eb7ad78464736f6c634300081e00330000000000000000000000001b218670ecada5b15e2ce1879074e5d903b55334

Deployed Bytecode

0x608060405234801561000f575f5ffd5b5060043610610114575f3560e01c806370a08231116100a0578063a9059cbb1161006f578063a9059cbb146102f6578063c349026314610326578063dd62ed3e14610356578063e0afdf1b14610386578063f22f708d146103b657610114565b806370a082311461026c578063766718081461029c57806388786272146102ba57806395d89b41146102d857610114565b8063194b822b116100e7578063194b822b146101a05780631e0e8489146101be57806323b872dd146101ee5780632bbbcaaa1461021e578063313ce5671461024e57610114565b806306fdde0314610118578063095ea7b314610136578063129874aa1461016657806318160ddd14610182575b5f5ffd5b6101206103e6565b60405161012d91906111f5565b60405180910390f35b610150600480360381019061014b91906112a6565b610476565b60405161015d91906112fe565b60405180910390f35b610180600480360381019061017b9190611317565b610498565b005b61018a61068c565b6040516101979190611364565b60405180910390f35b6101a8610695565b6040516101b591906113d8565b60405180910390f35b6101d860048036038101906101d391906113f1565b6106ba565b6040516101e59190611364565b60405180910390f35b6102086004803603810190610203919061141c565b6106cf565b60405161021591906112fe565b60405180910390f35b6102386004803603810190610233919061146c565b6106fd565b6040516102459190611364565b60405180910390f35b610256610830565b60405161026391906114d7565b60405180910390f35b610286600480360381019061028191906114f0565b610838565b6040516102939190611364565b60405180910390f35b6102a461087d565b6040516102b19190611364565b60405180910390f35b6102c261089e565b6040516102cf9190611364565b60405180910390f35b6102e06108a4565b6040516102ed91906111f5565b60405180910390f35b610310600480360381019061030b91906112a6565b610934565b60405161031d91906112fe565b60405180910390f35b610340600480360381019061033b9190611317565b610956565b60405161034d9190611364565b60405180910390f35b610370600480360381019061036b919061151b565b6109f0565b60405161037d9190611364565b60405180910390f35b6103a0600480360381019061039b9190611317565b610a72565b6040516103ad9190611364565b60405180910390f35b6103d060048036038101906103cb9190611559565b610b62565b6040516103dd9190611364565b60405180910390f35b6060600380546103f5906115c4565b80601f0160208091040260200160405190810160405280929190818152602001828054610421906115c4565b801561046c5780601f106104435761010080835404028352916020019161046c565b820191905f5260205f20905b81548152906001019060200180831161044f57829003601f168201915b5050505050905090565b5f5f610480610b82565b905061048d818585610b89565b600191505092915050565b5f81036104da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d19061163e565b60405180910390fd5b5f6104e361087d565b90505f5f90505b8281101561059e578360075f83856105029190611689565b81526020019081526020015f205f82825461051d9190611689565b925050819055508360085f83856105349190611689565b81526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461058a9190611689565b9250508190555080806001019150506104ea565b5060055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333086866105ea91906116bc565b6040518463ffffffff1660e01b81526004016106089392919061170c565b6020604051808303815f875af1158015610624573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610648919061176b565b610687576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067e906117e0565b60405180910390fd5b505050565b5f600254905090565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6007602052805f5260405f205f915090505481565b5f5f6106d9610b82565b90506106e6858285610b9b565b6106f1858585610c2e565b60019150509392505050565b5f61070661087d565b83856107129190611689565b1115610753576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161074a90611848565b60405180910390fd5b5f5f90505f5f90505b84811015610824575f60075f83896107749190611689565b81526020019081526020015f205490505f811115610816575f60085f848a61079c9190611689565b81526020019081526020015f205f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081816802b5e3af16b18800006107fd91906116bc565b6108079190611893565b846108129190611689565b9350505b50808060010191505061075c565b50809150509392505050565b5f6012905090565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b5f6107086006544261088f91906118c3565b6108999190611893565b905090565b60065481565b6060600480546108b3906115c4565b80601f01602080910402602001604051908101604052809291908181526020018280546108df906115c4565b801561092a5780601f106109015761010080835404028352916020019161092a565b820191905f5260205f20905b81548152906001019060200180831161090d57829003601f168201915b5050505050905090565b5f5f61093e610b82565b905061094b818585610c2e565b600191505092915050565b5f5f6109638484336106fd565b905061096f3382610d1e565b5f5f90505b838110156109e5575f60085f838861098c9190611689565b81526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508080600101915050610974565b508091505092915050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f5f5f90505f610a8061087d565b90505f5f90505b84811015610b56575f8183610a9c9190611689565b90505f8760085f8481526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610af79190611689565b90505f8860075f8581526020019081526020015f2054610b179190611689565b905080826802b5e3af16b1880000610b2f91906116bc565b610b399190611893565b86610b449190611689565b95505050508080600101915050610a87565b50819250505092915050565b6008602052815f5260405f20602052805f5260405f205f91509150505481565b5f33905090565b610b968383836001610d9d565b505050565b5f610ba684846109f0565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610c285781811015610c19578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610c10939291906118f6565b60405180910390fd5b610c2784848484035f610d9d565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c9e575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610c95919061192b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d0e575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610d05919061192b565b60405180910390fd5b610d19838383610f6c565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d8e575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610d85919061192b565b60405180910390fd5b610d995f8383610f6c565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610e0d575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610e04919061192b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610e7d575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610e74919061192b565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015610f66578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610f5d9190611364565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fbc578060025f828254610fb09190611689565b9250508190555061108a565b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611045578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161103c939291906118f6565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110d1578060025f828254039250508190555061111b565b805f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516111789190611364565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6111c782611185565b6111d1818561118f565b93506111e181856020860161119f565b6111ea816111ad565b840191505092915050565b5f6020820190508181035f83015261120d81846111bd565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61124282611219565b9050919050565b61125281611238565b811461125c575f5ffd5b50565b5f8135905061126d81611249565b92915050565b5f819050919050565b61128581611273565b811461128f575f5ffd5b50565b5f813590506112a08161127c565b92915050565b5f5f604083850312156112bc576112bb611215565b5b5f6112c98582860161125f565b92505060206112da85828601611292565b9150509250929050565b5f8115159050919050565b6112f8816112e4565b82525050565b5f6020820190506113115f8301846112ef565b92915050565b5f5f6040838503121561132d5761132c611215565b5b5f61133a85828601611292565b925050602061134b85828601611292565b9150509250929050565b61135e81611273565b82525050565b5f6020820190506113775f830184611355565b92915050565b5f819050919050565b5f6113a061139b61139684611219565b61137d565b611219565b9050919050565b5f6113b182611386565b9050919050565b5f6113c2826113a7565b9050919050565b6113d2816113b8565b82525050565b5f6020820190506113eb5f8301846113c9565b92915050565b5f6020828403121561140657611405611215565b5b5f61141384828501611292565b91505092915050565b5f5f5f6060848603121561143357611432611215565b5b5f6114408682870161125f565b93505060206114518682870161125f565b925050604061146286828701611292565b9150509250925092565b5f5f5f6060848603121561148357611482611215565b5b5f61149086828701611292565b93505060206114a186828701611292565b92505060406114b28682870161125f565b9150509250925092565b5f60ff82169050919050565b6114d1816114bc565b82525050565b5f6020820190506114ea5f8301846114c8565b92915050565b5f6020828403121561150557611504611215565b5b5f6115128482850161125f565b91505092915050565b5f5f6040838503121561153157611530611215565b5b5f61153e8582860161125f565b925050602061154f8582860161125f565b9150509250929050565b5f5f6040838503121561156f5761156e611215565b5b5f61157c85828601611292565b925050602061158d8582860161125f565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806115db57607f821691505b6020821081036115ee576115ed611597565b5b50919050565b7f496e76616c69642065706f6368206e756d6265722e00000000000000000000005f82015250565b5f61162860158361118f565b9150611633826115f4565b602082019050919050565b5f6020820190508181035f8301526116558161161c565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61169382611273565b915061169e83611273565b92508282019050808211156116b6576116b561165c565b5b92915050565b5f6116c682611273565b91506116d183611273565b92508282026116df81611273565b915082820484148315176116f6576116f561165c565b5b5092915050565b61170681611238565b82525050565b5f60608201905061171f5f8301866116fd565b61172c60208301856116fd565b6117396040830184611355565b949350505050565b61174a816112e4565b8114611754575f5ffd5b50565b5f8151905061176581611741565b92915050565b5f602082840312156117805761177f611215565b5b5f61178d84828501611757565b91505092915050565b7f54460000000000000000000000000000000000000000000000000000000000005f82015250565b5f6117ca60028361118f565b91506117d582611796565b602082019050919050565b5f6020820190508181035f8301526117f7816117be565b9050919050565b7f43616e6e6f7420636c61696d20616e206f6e676f696e672065706f63682100005f82015250565b5f611832601e8361118f565b915061183d826117fe565b602082019050919050565b5f6020820190508181035f83015261185f81611826565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61189d82611273565b91506118a883611273565b9250826118b8576118b7611866565b5b828204905092915050565b5f6118cd82611273565b91506118d883611273565b92508282039050818111156118f0576118ef61165c565b5b92915050565b5f6060820190506119095f8301866116fd565b6119166020830185611355565b6119236040830184611355565b949350505050565b5f60208201905061193e5f8301846116fd565b9291505056fea26469706673582212206d1453e39f7656edeb06451a23a37255e98cbd873eecd72cf3a3de95eb7ad78464736f6c634300081e0033

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

0000000000000000000000001b218670ecada5b15e2ce1879074e5d903b55334

-----Decoded View---------------
Arg [0] : _bethContract (address): 0x1b218670EcaDA5B15e2cE1879074e5D903b55334

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001b218670ecada5b15e2ce1879074e5d903b55334


[ 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.