ETH Price: $2,863.16 (-2.57%)
 

Overview

Max Total Supply

399,782.814 OATH

Holders

657 (0.00%)

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
cransworth123.base.eth
Balance
211.414555646410448866 OATH

Value
$0.00
0x8b1713a8baab39fb9ced205fce57dffdcc3c783b
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A Majestic Native DEX Reigning over the Base Ecosystem. Fortified by the Community, Empowered by V3 Protocol.

Contract Source Code Verified (Exact Match)

Contract Name:
OATH

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 999 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

import "contracts/interfaces/IOATH.sol";

/*
 * OATH is Throne's native ERC20 token.
 * It has an hard cap and manages its own emissions and allocations.
 */
contract OATH is Ownable, ERC20("Throne", "OATH"), IOATH {
    using SafeMath for uint256;

    uint256 public constant MAX_EMISSION_RATE = 1 ether;
    uint256 public constant MAX_SUPPLY_LIMIT = 20_000_000 ether;
    uint256 public elasticMaxSupply; // Once deployed, controlled through governance only
    uint256 public emissionRate; // Token emission per second

    uint256 public override lastEmissionTime;
    uint256 public masterV2Reserve; // Pending rewards for the master V2
    uint256 public masterV3Reserve; // Pending rewards for the master V3

    uint256 public constant ALLOCATION_PRECISION = 100;
    // Allocations emitted over time. When < 100%, the rest is minted into the treasury (default 15%)
    uint256 public masterV2Allocation = 0; // = 48%
    uint256 public masterV3Allocation = 96;

    address public masterV2Address;
    address public masterV3Address;
    address public treasuryAddress;

    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    mapping(address => bool) public isExcludedFromMaxWallet;
    uint256 public maxWallet;
    bool public isMaxWalletEnabled = true;
    uint256 public constant MAX_WALLET_PRECISION = 10000;

    constructor(
        uint256 maxSupply_,
        uint256 initialSupply,
        uint256 initialEmissionRate,
        uint256 maxWallet_,
        address treasuryAddress_
    ) {
        require(initialEmissionRate <= MAX_EMISSION_RATE, "OATH: invalid emission rate");
        require(maxSupply_ <= MAX_SUPPLY_LIMIT, "OATH: invalid initial maxSupply");
        require(maxWallet_ <= MAX_WALLET_PRECISION, "OATH: invalid maxWallet");
        require(initialSupply < maxSupply_, "OATH: invalid initial supply");
        require(treasuryAddress_ != address(0), "OATH: invalid treasury address");

        elasticMaxSupply = maxSupply_;
        emissionRate = initialEmissionRate;
        treasuryAddress = treasuryAddress_;

        maxWallet = maxWallet_;
        isExcludedFromMaxWallet[address(this)] = true;
        isExcludedFromMaxWallet[msg.sender] = true;
        isExcludedFromMaxWallet[treasuryAddress] = true;
        isExcludedFromMaxWallet[BURN_ADDRESS] = true;

        _mint(msg.sender, initialSupply);
    }

    /********************************************/
    /****************** EVENTS ******************/
    /********************************************/

    event ClaimMasterV2Rewards(uint256 amount);
    event ClaimMasterV3Rewards(uint256 amount);
    event AllocationsDistributed(uint256 masterV2Share, uint256 masterV3Share, uint256 treasuryShare);
    event InitializeMasterAddress(address masterV2Address, address masterV3Address);
    event InitializeEmissionStart(uint256 startTime);
    event UpdateAllocations(uint256 v2FarmingAllocation, uint256 v3FarmingAllocation, uint256 treasuryAllocation);
    event UpdateEmissionRate(uint256 previousEmissionRate, uint256 newEmissionRate);
    event UpdateMaxSupply(uint256 previousMaxSupply, uint256 newMaxSupply);
    event UpdateMaxWallet(uint256 previousMaxWallet, uint256 newMaxWallet);
    event UpdateTreasuryAddress(address previousTreasuryAddress, address newTreasuryAddress);
    event SetExcludeMaxWallet(address account, bool excluded);
    event MaxWalletDisabled();

    /***********************************************/
    /****************** MODIFIERS ******************/
    /***********************************************/

    /*
     * @dev Throws error if called by any account other than the master
     */
    modifier onlyMasterV2() {
        require(msg.sender == masterV2Address, "OATH: caller is not the master");
        _;
    }

    /*
     * @dev Throws error if called by any account other than the master
     */
    modifier onlyMasterV3() {
        require(msg.sender == masterV3Address, "OATH: caller is not the master");
        _;
    }

    /**************************************************/
    /****************** OVERRIDES *********************/
    /**************************************************/

    /**
     * @dev ensures max wallet
     */
    function _transfer(address sender, address recipient, uint256 amount) internal override {
        if (isMaxWalletEnabled && !isExcludedFromMaxWallet[recipient]) {
            uint256 maxWalletTokens = maxWallet.mul(totalSupply()).div(MAX_WALLET_PRECISION);
            require(balanceOf(recipient).add(amount) <= maxWalletTokens, "OATH: wallet balance limit exceeded");
        }
        super._transfer(sender, recipient, amount);
    }

    /**************************************************/
    /****************** PUBLIC VIEWS ******************/
    /**************************************************/

    /**
     * @dev Returns master v2 emission rate
     */
    function masterV2EmissionRate() public view override returns (uint256) {
        return emissionRate.mul(masterV2Allocation).div(ALLOCATION_PRECISION);
    }

    /**
     * @dev Returns master v3 emission rate
     */
    function masterV3EmissionRate() public view override returns (uint256) {
        return emissionRate.mul(masterV3Allocation).div(ALLOCATION_PRECISION);
    }

    /**
     * @dev Returns treasury allocation
     */
    function treasuryAllocation() public view returns (uint256) {
        return uint256(ALLOCATION_PRECISION).sub(masterV2Allocation).sub(masterV3Allocation);
    }

    /*****************************************************************/
    /******************  EXTERNAL PUBLIC FUNCTIONS  ******************/
    /*****************************************************************/

    /**
     * @dev Mint rewards and distribute it between master and treasury
     *
     * Treasury share is directly minted to the treasury address
     * Master incentives are minted into this contract and claimed later by the master contract
     */
    function emitAllocations() public {
        uint256 circulatingSupply = totalSupply();
        uint256 currentBlockTimestamp = _currentBlockTimestamp();

        uint256 _lastEmissionTime = lastEmissionTime; // gas saving
        uint256 _maxSupply = elasticMaxSupply; // gas saving

        // if already up to date or not started
        if (currentBlockTimestamp <= _lastEmissionTime || _lastEmissionTime == 0) {
            return;
        }

        // if max supply is already reached or emissions deactivated
        if (_maxSupply <= circulatingSupply || emissionRate == 0) {
            lastEmissionTime = currentBlockTimestamp;
            return;
        }

        uint256 newEmissions = currentBlockTimestamp.sub(_lastEmissionTime).mul(emissionRate);

        // cap new emissions if exceeding max supply
        if (_maxSupply < circulatingSupply.add(newEmissions)) {
            newEmissions = _maxSupply.sub(circulatingSupply);
        }

        // calculate master and treasury shares from new emissions
        uint256 masterV2Share = newEmissions.mul(masterV2Allocation).div(ALLOCATION_PRECISION);

        uint256 masterV3Share = newEmissions.mul(masterV3Allocation).div(ALLOCATION_PRECISION);

        // sub to avoid rounding errors
        uint256 treasuryShare = newEmissions.sub(masterV2Share).sub(masterV3Share);

        lastEmissionTime = currentBlockTimestamp;

        // add master shares to its claimable reserve
        masterV2Reserve = masterV2Reserve.add(masterV2Share);
        masterV3Reserve = masterV3Reserve.add(masterV3Share);
        // mint shares
        _mint(address(this), masterV2Share);
        _mint(address(this), masterV3Share);
        _mint(treasuryAddress, treasuryShare);

        emit AllocationsDistributed(masterV2Share, masterV3Share, treasuryShare);
    }

    /**
     * @dev Sends to Master contract the asked "amount" from masterReserve
     *
     * Can only be called by the MasterContract
     */
    function claimMasterV2Rewards(uint256 amount) external override onlyMasterV2 returns (uint256 effectiveAmount) {
        // update emissions
        emitAllocations();

        // cap asked amount with available reserve
        effectiveAmount = Math.min(masterV2Reserve, amount);

        // if no rewards to transfer
        if (effectiveAmount == 0) {
            return effectiveAmount;
        }

        // remove claimed rewards from reserve and transfer to master
        masterV2Reserve = masterV2Reserve.sub(effectiveAmount);
        _transfer(address(this), masterV2Address, effectiveAmount);
        emit ClaimMasterV2Rewards(effectiveAmount);
    }

    /**
     * @dev Sends to Master contract the asked "amount" from masterReserve
     *
     * Can only be called by the MasterContract
     */
    function claimMasterV3Rewards(uint256 amount) external override onlyMasterV3 returns (uint256 effectiveAmount) {
        // update emissions
        emitAllocations();

        // cap asked amount with available reserve
        effectiveAmount = Math.min(masterV3Reserve, amount);

        // if no rewards to transfer
        if (effectiveAmount == 0) {
            return effectiveAmount;
        }

        // remove claimed rewards from reserve and transfer to master
        masterV3Reserve = masterV3Reserve.sub(effectiveAmount);
        _transfer(address(this), masterV3Address, effectiveAmount);
        emit ClaimMasterV2Rewards(effectiveAmount);
    }

    /**
     * @dev Burns "amount" of OATH by sending it to BURN_ADDRESS
     */
    function burn(uint256 amount) external override {
        _transfer(msg.sender, BURN_ADDRESS, amount);
    }

    /*****************************************************************/
    /****************** EXTERNAL OWNABLE FUNCTIONS  ******************/
    /*****************************************************************/

    /**
     * @dev Setup Master v3 contract address
     *
     * Must only be called by the owner
     */
    function updateMasterV3Addresses(address masterV3Address_) external onlyOwner {
        require(masterV3Address_ != address(0), "OATH:initializeMasterAddresses: master initialized to zero addresses");

        isExcludedFromMaxWallet[masterV3Address_] = true;

        masterV3Address = masterV3Address_;
        emit InitializeMasterAddress(address(0), masterV3Address_);
    }

    /**
     * @dev Setup Master v2 contract address
     *
     * Must only be called by the owner
     */
    function updateMasterV2Addresses(address masterV2Address_) external onlyOwner {
        require(masterV2Address_ != address(0), "OATH:initializeMasterAddresses: master initialized to zero addresses");

        isExcludedFromMaxWallet[masterV2Address_] = true;

        masterV2Address = masterV2Address_;
        emit InitializeMasterAddress(masterV2Address_, address(0));
    }

    /**
     * @dev Set emission start time
     *
     * Can only be initialized once
     * Must only be called by the owner
     */
    function initializeEmissionStart(uint256 startTime) external onlyOwner {
        require(lastEmissionTime == 0, "OATH:initializeEmissionStart: emission start already initialized");
        require(_currentBlockTimestamp() < startTime, "OATH:initializeEmissionStart: invalid");

        lastEmissionTime = startTime;
        emit InitializeEmissionStart(startTime);
    }

    /**
     * @dev Updates emission allocations between farming incentives, legacy holders and treasury (remaining share)
     *
     * Must only be called by the owner
     */
    function updateAllocations(uint256 masterV2Allocation_, uint256 masterV3Allocation_) external onlyOwner {
        // apply emissions before changes
        emitAllocations();

        // total sum of allocations can't be > 100%
        uint256 totalAllocationsSet = masterV2Allocation_.add(masterV3Allocation_);
        require(totalAllocationsSet <= 100, "OATH:updateAllocations: total allocation is too high");

        // set new allocations
        masterV2Allocation = masterV2Allocation_;
        masterV3Allocation = masterV3Allocation_;

        emit UpdateAllocations(masterV2Allocation_, masterV3Allocation_, treasuryAllocation());
    }

    /**
     * @dev Updates OATH emission rate per second
     *
     * Must only be called by the owner
     */
    function updateEmissionRate(uint256 emissionRate_) external onlyOwner {
        require(emissionRate_ <= MAX_EMISSION_RATE, "OATH:updateEmissionRate: can't exceed maximum");

        // apply emissions before changes
        emitAllocations();

        emit UpdateEmissionRate(emissionRate, emissionRate_);
        emissionRate = emissionRate_;
    }

    /**
     * @dev Updates OATH max supply
     *
     * Must only be called by the owner
     */
    function updateMaxSupply(uint256 maxSupply_) external onlyOwner {
        require(maxSupply_ >= totalSupply(), "OATH:updateMaxSupply: can't be lower than current circulating supply");
        require(maxSupply_ <= MAX_SUPPLY_LIMIT, "OATH:updateMaxSupply: invalid maxSupply");

        emit UpdateMaxSupply(elasticMaxSupply, maxSupply_);
        elasticMaxSupply = maxSupply_;
    }

    /**
     * @dev Updates OATH max wallet
     *
     * Must only be called by the owner
     */
    function updateMaxWallet(uint256 maxWallet_) external onlyOwner {
        require(maxWallet_ >= maxWallet, "OATH:updateMaxWallet: can't be lower than current max wallet");
        require(maxWallet_ <= MAX_WALLET_PRECISION, "OATH:updateMaxWallet: invalid maxWallet");

        emit UpdateMaxWallet(maxWallet, maxWallet_);
        maxWallet = maxWallet_;
    }

    /**
     * @dev Updates treasury address
     *
     * Must only be called by owner
     */
    function updateTreasuryAddress(address treasuryAddress_) external onlyOwner {
        require(treasuryAddress_ != address(0), "OATH:updateTreasuryAddress: invalid address");

        emit UpdateTreasuryAddress(treasuryAddress, treasuryAddress_);
        treasuryAddress = treasuryAddress_;
    }

    /**
     * @dev disable max wallet
     *
     * Must only be called by owner
     */
    function disableMaxWallet() external onlyOwner {
        require(isMaxWalletEnabled, "OATH:disableMaxWallet: already disabled");

        emit MaxWalletDisabled();
        isMaxWalletEnabled = false;
    }

    /**
     * @dev excludes from max wallet
     *
     * Must only be called by owner
     */
    function setExcludeMaxWallet(address for_, bool exclude_) external onlyOwner {
        isExcludedFromMaxWallet[for_] = exclude_;
        emit SetExcludeMaxWallet(for_, exclude_);
    }

    /********************************************************/
    /****************** INTERNAL FUNCTIONS ******************/
    /********************************************************/

    /**
     * @dev Utility function to get the current block timestamp
     */
    function _currentBlockTimestamp() internal view virtual returns (uint256) {
        /* solhint-disable not-rely-on-time */
        return block.timestamp;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (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 {}
}

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (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);
}

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

pragma solidity ^0.8.0;

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IOATH is IERC20 {
    function lastEmissionTime() external view returns (uint256);

    function claimMasterV2Rewards(uint256 amount) external returns (uint256 effectiveAmount);

    function claimMasterV3Rewards(uint256 amount) external returns (uint256 effectiveAmount);

    function masterV3EmissionRate() external view returns (uint256);

    function masterV2EmissionRate() external view returns (uint256);

    function burn(uint256 amount) external;
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"uint256","name":"initialEmissionRate","type":"uint256"},{"internalType":"uint256","name":"maxWallet_","type":"uint256"},{"internalType":"address","name":"treasuryAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"masterV2Share","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"masterV3Share","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"treasuryShare","type":"uint256"}],"name":"AllocationsDistributed","type":"event"},{"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":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimMasterV2Rewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimMasterV3Rewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"InitializeEmissionStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"masterV2Address","type":"address"},{"indexed":false,"internalType":"address","name":"masterV3Address","type":"address"}],"name":"InitializeMasterAddress","type":"event"},{"anonymous":false,"inputs":[],"name":"MaxWalletDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"excluded","type":"bool"}],"name":"SetExcludeMaxWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"v2FarmingAllocation","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"v3FarmingAllocation","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"treasuryAllocation","type":"uint256"}],"name":"UpdateAllocations","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousEmissionRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newEmissionRate","type":"uint256"}],"name":"UpdateEmissionRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousMaxSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"UpdateMaxSupply","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousMaxWallet","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMaxWallet","type":"uint256"}],"name":"UpdateMaxWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousTreasuryAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newTreasuryAddress","type":"address"}],"name":"UpdateTreasuryAddress","type":"event"},{"inputs":[],"name":"ALLOCATION_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_EMISSION_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WALLET_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimMasterV2Rewards","outputs":[{"internalType":"uint256","name":"effectiveAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimMasterV3Rewards","outputs":[{"internalType":"uint256","name":"effectiveAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"elasticMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emitAllocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"initializeEmissionStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromMaxWallet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMaxWalletEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastEmissionTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterV2Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterV2Allocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterV2EmissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterV2Reserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterV3Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterV3Allocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterV3EmissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterV3Reserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"for_","type":"address"},{"internalType":"bool","name":"exclude_","type":"bool"}],"name":"setExcludeMaxWallet","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"masterV2Allocation_","type":"uint256"},{"internalType":"uint256","name":"masterV3Allocation_","type":"uint256"}],"name":"updateAllocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"emissionRate_","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"masterV2Address_","type":"address"}],"name":"updateMasterV2Addresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"masterV3Address_","type":"address"}],"name":"updateMasterV3Addresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"name":"updateMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxWallet_","type":"uint256"}],"name":"updateMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"treasuryAddress_","type":"address"}],"name":"updateTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600b556060600c556012805460ff191660011790553480156200002857600080fd5b5060405162002520380380620025208339810160408190526200004b91620004fb565b604051806040016040528060068152602001655468726f6e6560d01b8152506040518060400160405280600481526020016309e82a8960e31b815250620000a16200009b6200033c60201b60201c565b62000340565b8151620000b690600490602085019062000455565b508051620000cc90600590602084019062000455565b505050670de0b6b3a76400008311156200012d5760405162461bcd60e51b815260206004820152601b60248201527f4f4154483a20696e76616c696420656d697373696f6e2072617465000000000060448201526064015b60405180910390fd5b6a108b2a2c280290940000008511156200018a5760405162461bcd60e51b815260206004820152601f60248201527f4f4154483a20696e76616c696420696e697469616c206d6178537570706c7900604482015260640162000124565b612710821115620001de5760405162461bcd60e51b815260206004820152601760248201527f4f4154483a20696e76616c6964206d617857616c6c6574000000000000000000604482015260640162000124565b8484106200022f5760405162461bcd60e51b815260206004820152601c60248201527f4f4154483a20696e76616c696420696e697469616c20737570706c7900000000604482015260640162000124565b6001600160a01b038116620002875760405162461bcd60e51b815260206004820152601e60248201527f4f4154483a20696e76616c696420747265617375727920616464726573730000604482015260640162000124565b60068590556007839055600f80546001600160a01b0319166001600160a01b03838116919091178255601184905530600090815260106020526040808220805460ff19908116600190811790925533808552838520805483168417905595549094168352908220805484168217905561dead9091527f9e93e1db4a1f807cc22b2aecf4deeb0bf5745f1ecb319e87c68c5624c0fa6b69805490921617905562000331908562000390565b5050505050620005bc565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620003e85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000124565b8060036000828254620003fc919062000558565b90915550506001600160a01b0382166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b82805462000463906200057f565b90600052602060002090601f016020900481019282620004875760008555620004d2565b82601f10620004a257805160ff1916838001178555620004d2565b82800160010185558215620004d2579182015b82811115620004d2578251825591602001919060010190620004b5565b50620004e0929150620004e4565b5090565b5b80821115620004e05760008155600101620004e5565b600080600080600060a086880312156200051457600080fd5b855160208701516040880151606089015160808a0151939850919650945092506001600160a01b03811681146200054a57600080fd5b809150509295509295909350565b600082198211156200057a57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200059457607f821691505b60208210811415620005b657634e487b7160e01b600052602260045260246000fd5b50919050565b611f5480620005cc6000396000f3fe608060405234801561001057600080fd5b506004361061032a5760003560e01c80637581e306116101b2578063d6969c6c116100f9578063ed424fd0116100a2578063f2fde38b1161007c578063f2fde38b1461064d578063f8b45b0514610660578063fc1852fb14610669578063fccc28131461067c57600080fd5b8063ed424fd014610628578063ef27777f14610631578063f103b4331461063a57600080fd5b8063ddb92232116100d3578063ddb92232146105fa578063e4ef9dce1461060d578063ec1e7c831461061557600080fd5b8063d6969c6c146105a5578063d81aad1c146105ae578063dd62ed3e146105c157600080fd5b8063a457c2d71161015b578063af08a09311610135578063af08a09314610576578063b71144a41461057f578063c5f956af1461059257600080fd5b8063a457c2d714610548578063a9059cbb1461055b578063a98a934a1461056e57600080fd5b80638da5cb5b1161018c5780638da5cb5b1461052657806395d89b411461053757806396afc4501461053f57600080fd5b80637581e306146105025780637efd78401461050a578063841e45611461051357600080fd5b806339509351116102765780635c44e0851161021f5780636dd3d39f116101f95780636dd3d39f146104ae57806370a08231146104d1578063715018a6146104fa57600080fd5b80635c44e08514610481578063617d112614610489578063675b711d1461049b57600080fd5b8063439af45e11610250578063439af45e146104675780634f3147ba146104705780635a24e8341461047857600080fd5b8063395093511461043257806342966c6814610445578063436cc3d61461045857600080fd5b806316862c95116102d857806323b872dd116102b257806323b872dd146103e557806325f6f526146103f8578063313ce5671461042357600080fd5b806316862c95146103b757806318160ddd146103ca5780631c499ab0146103d257600080fd5b80630731b693116103095780630731b6931461037c578063095ea7b31461038f5780630ba84cd2146103a257600080fd5b80624fbf6b1461032f578063046a2a801461034a57806306fdde0314610367575b600080fd5b610337606481565b6040519081526020015b60405180910390f35b6012546103579060ff1681565b6040519015158152602001610341565b61036f610685565b6040516103419190611cc6565b61033761038a366004611d1b565b610717565b61035761039d366004611d4b565b6107fa565b6103b56103b0366004611d1b565b610812565b005b6103b56103c5366004611d75565b6108e1565b600354610337565b6103b56103e0366004611d1b565b61094c565b6103576103f3366004611db1565b610a85565b600e5461040b906001600160a01b031681565b6040516001600160a01b039091168152602001610341565b60405160128152602001610341565b610357610440366004611d4b565b610aa9565b6103b5610453366004611d1b565b610ae8565b610337670de0b6b3a764000081565b61033760085481565b610337610af8565b61033761271081565b610337610b21565b6103376a108b2a2c2802909400000081565b600d5461040b906001600160a01b031681565b6103576104bc366004611ded565b60106020526000908152604090205460ff1681565b6103376104df366004611ded565b6001600160a01b031660009081526001602052604090205490565b6103b5610b45565b610337610b59565b61033760095481565b6103b5610521366004611ded565b610b77565b6000546001600160a01b031661040b565b61036f610c71565b61033760075481565b610357610556366004611d4b565b610c80565b610357610569366004611d4b565b610d2a565b6103b5610d38565b610337600b5481565b6103b561058d366004611e08565b610ded565b600f5461040b906001600160a01b031681565b610337600a5481565b6103b56105bc366004611ded565b610eda565b6103376105cf366004611e2a565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b610337610608366004611d1b565b610fec565b6103b5611091565b6103b5610623366004611ded565b6111fe565b61033760065481565b610337600c5481565b6103b5610648366004611d1b565b611309565b6103b561065b366004611ded565b611472565b61033760115481565b6103b5610677366004611d1b565b6114ff565b61040b61dead81565b60606004805461069490611e5d565b80601f01602080910402602001604051908101604052809291908181526020018280546106c090611e5d565b801561070d5780601f106106e25761010080835404028352916020019161070d565b820191906000526020600020905b8154815290600101906020018083116106f057829003601f168201915b5050505050905090565b600e546000906001600160a01b031633146107795760405162461bcd60e51b815260206004820152601e60248201527f4f4154483a2063616c6c6572206973206e6f7420746865206d6173746572000060448201526064015b60405180910390fd5b610781611091565b61078d600a5483611629565b90508061079957919050565b600a546107a69082611641565b600a55600e546107c19030906001600160a01b03168361164d565b6040518181527ffed9337462088a94bef1884bc64e3737242391b7eebf6ec1a59051b44d5cdeb19060200160405180910390a15b919050565b60003361080881858561174c565b5060019392505050565b61081a6118a4565b670de0b6b3a76400008111156108985760405162461bcd60e51b815260206004820152602d60248201527f4f4154483a757064617465456d697373696f6e526174653a2063616e2774206560448201527f7863656564206d6178696d756d000000000000000000000000000000000000006064820152608401610770565b6108a0611091565b60075460408051918252602082018390527f16b9091836a63537907593ebc3a80f3528891f3575b10f58ad7dd9c29fd0d44f910160405180910390a1600755565b6108e96118a4565b6001600160a01b038216600081815260106020908152604091829020805460ff19168515159081179091558251938452908301527f2a99a4bc38d7557c830b95fb39250f8fb3070e9e8375832b0a68cfa1337a85d5910160405180910390a15050565b6109546118a4565b6011548110156109cc5760405162461bcd60e51b815260206004820152603c60248201527f4f4154483a7570646174654d617857616c6c65743a2063616e2774206265206c60448201527f6f776572207468616e2063757272656e74206d61782077616c6c6574000000006064820152608401610770565b612710811115610a445760405162461bcd60e51b815260206004820152602760248201527f4f4154483a7570646174654d617857616c6c65743a20696e76616c6964206d6160448201527f7857616c6c6574000000000000000000000000000000000000000000000000006064820152608401610770565b60115460408051918252602082018390527fff64d41f60feb77d52f64ae64a9fc3929d57a89d0cc55728762468bae5e0fe52910160405180910390a1601155565b600033610a938582856118fe565b610a9e85858561164d565b506001949350505050565b3360008181526002602090815260408083206001600160a01b03871684529091528120549091906108089082908690610ae3908790611eae565b61174c565b610af53361dead8361164d565b50565b6000610b1c600c54610b16600b54606461164190919063ffffffff16565b90611641565b905090565b6000610b1c6064610b3f600c5460075461199090919063ffffffff16565b9061199c565b610b4d6118a4565b610b5760006119a8565b565b6000610b1c6064610b3f600b5460075461199090919063ffffffff16565b610b7f6118a4565b6001600160a01b038116610bfb5760405162461bcd60e51b815260206004820152602b60248201527f4f4154483a7570646174655472656173757279416464726573733a20696e766160448201527f6c696420616464726573730000000000000000000000000000000000000000006064820152608401610770565b600f54604080516001600160a01b03928316815291831660208301527f5634a90413b79beba6c5f37aa8f19d1aee84a5320ff20ac7bd1ac63280867d5c910160405180910390a1600f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60606005805461069490611e5d565b3360008181526002602090815260408083206001600160a01b038716845290915281205490919083811015610d1d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610770565b610a9e828686840361174c565b60003361080881858561164d565b610d406118a4565b60125460ff16610db85760405162461bcd60e51b815260206004820152602760248201527f4f4154483a64697361626c654d617857616c6c65743a20616c7265616479206460448201527f697361626c6564000000000000000000000000000000000000000000000000006064820152608401610770565b6040517ff92227b768be08ec052dd7200e1e5c74a9ea60ef239a5cc79db53ea495485c2a90600090a16012805460ff19169055565b610df56118a4565b610dfd611091565b6000610e098383611a05565b90506064811115610e825760405162461bcd60e51b815260206004820152603460248201527f4f4154483a757064617465416c6c6f636174696f6e733a20746f74616c20616c60448201527f6c6f636174696f6e20697320746f6f20686967680000000000000000000000006064820152608401610770565b600b839055600c8290557fa4a1bde80c0d4ba37d1bd0feec135fb515a9def4e8baee90221348069946b86c8383610eb7610af8565b6040805193845260208401929092529082015260600160405180910390a1505050565b610ee26118a4565b6001600160a01b038116610f6c5760405162461bcd60e51b8152602060048201526044602482018190527f4f4154483a696e697469616c697a654d61737465724164647265737365733a20908201527f6d617374657220696e697469616c697a656420746f207a65726f2061646472656064820152637373657360e01b608482015260a401610770565b6001600160a01b0381166000818152601060209081526040808320805460ff19166001179055600d805473ffffffffffffffffffffffffffffffffffffffff1916851790558051938452908301919091527f955893ff1e30d0252f706bdb11670138c0702aa816a1908cc70e7ac2be7623c091015b60405180910390a150565b600d546000906001600160a01b031633146110495760405162461bcd60e51b815260206004820152601e60248201527f4f4154483a2063616c6c6572206973206e6f7420746865206d617374657200006044820152606401610770565b611051611091565b61105d60095483611629565b90508061106957919050565b6009546110769082611641565b600955600d546107c19030906001600160a01b03168361164d565b600061109c60035490565b600854600654919250429181831115806110b4575081155b156110bf5750505050565b83811115806110ce5750600754155b156110db57505060085550565b6007546000906110f5906110ef8686611641565b90611990565b90506111018582611a05565b821015611115576111128286611641565b90505b60006111316064610b3f600b548561199090919063ffffffff16565b9050600061114f6064610b3f600c548661199090919063ffffffff16565b9050600061116182610b168686611641565b60088890556009549091506111769084611a05565b600955600a546111869083611a05565b600a556111933084611a11565b61119d3083611a11565b600f546111b3906001600160a01b031682611a11565b60408051848152602081018490529081018290527f0b4536a2c3b039107eeaebc720b82f33d44be576bd59fb6b8a053874693b33169060600160405180910390a15050505050505050565b6112066118a4565b6001600160a01b0381166112905760405162461bcd60e51b8152602060048201526044602482018190527f4f4154483a696e697469616c697a654d61737465724164647265737365733a20908201527f6d617374657220696e697469616c697a656420746f207a65726f2061646472656064820152637373657360e01b608482015260a401610770565b6001600160a01b0381166000818152601060209081526040808320805460ff19166001179055600e805473ffffffffffffffffffffffffffffffffffffffff1916851790558051928352908201929092527f955893ff1e30d0252f706bdb11670138c0702aa816a1908cc70e7ac2be7623c09101610fe1565b6113116118a4565b6003548110156113b05760405162461bcd60e51b8152602060048201526044602482018190527f4f4154483a7570646174654d6178537570706c793a2063616e2774206265206c908201527f6f776572207468616e2063757272656e742063697263756c6174696e6720737560648201527f70706c7900000000000000000000000000000000000000000000000000000000608482015260a401610770565b6a108b2a2c280290940000008111156114315760405162461bcd60e51b815260206004820152602760248201527f4f4154483a7570646174654d6178537570706c793a20696e76616c6964206d6160448201527f78537570706c79000000000000000000000000000000000000000000000000006064820152608401610770565b60065460408051918252602082018390527f6a84334bf6663b783f2bbfcaf459b2cbc73570cf346a46d9e6a0f290fcf3ebfc910160405180910390a1600655565b61147a6118a4565b6001600160a01b0381166114f65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610770565b610af5816119a8565b6115076118a4565b6008541561157f576040805162461bcd60e51b81526020600482015260248101919091527f4f4154483a696e697469616c697a65456d697373696f6e53746172743a20656d60448201527f697373696f6e20737461727420616c726561647920696e697469616c697a65646064820152608401610770565b8042106115f45760405162461bcd60e51b815260206004820152602560248201527f4f4154483a696e697469616c697a65456d697373696f6e53746172743a20696e60448201527f76616c69640000000000000000000000000000000000000000000000000000006064820152608401610770565b60088190556040518181527f10e116be9bb4f621259f592ccd7e00d783e796535f2a5f3bc91a79da0fc3456d90602001610fe1565b6000818310611638578161163a565b825b9392505050565b600061163a8284611ec6565b60125460ff16801561167857506001600160a01b03821660009081526010602052604090205460ff16155b1561173c57600061169a612710610b3f61169160035490565b60115490611990565b9050806116c6836116c0866001600160a01b031660009081526001602052604090205490565b90611a05565b111561173a5760405162461bcd60e51b815260206004820152602360248201527f4f4154483a2077616c6c65742062616c616e6365206c696d697420657863656560448201527f64656400000000000000000000000000000000000000000000000000000000006064820152608401610770565b505b611747838383611ad2565b505050565b6001600160a01b0383166117c75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610770565b6001600160a01b0382166118435760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610770565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000546001600160a01b03163314610b575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610770565b6001600160a01b03838116600090815260026020908152604080832093861683529290522054600019811461198a578181101561197d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610770565b61198a848484840361174c565b50505050565b600061163a8284611edd565b600061163a8284611efc565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061163a8284611eae565b6001600160a01b038216611a675760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610770565b8060036000828254611a799190611eae565b90915550506001600160a01b0382166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038316611b4e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610770565b6001600160a01b038216611bca5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610770565b6001600160a01b03831660009081526001602052604090205481811015611c595760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610770565b6001600160a01b0380851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611cb99086815260200190565b60405180910390a361198a565b600060208083528351808285015260005b81811015611cf357858101830151858201604001528201611cd7565b81811115611d05576000604083870101525b50601f01601f1916929092016040019392505050565b600060208284031215611d2d57600080fd5b5035919050565b80356001600160a01b03811681146107f557600080fd5b60008060408385031215611d5e57600080fd5b611d6783611d34565b946020939093013593505050565b60008060408385031215611d8857600080fd5b611d9183611d34565b915060208301358015158114611da657600080fd5b809150509250929050565b600080600060608486031215611dc657600080fd5b611dcf84611d34565b9250611ddd60208501611d34565b9150604084013590509250925092565b600060208284031215611dff57600080fd5b61163a82611d34565b60008060408385031215611e1b57600080fd5b50508035926020909101359150565b60008060408385031215611e3d57600080fd5b611e4683611d34565b9150611e5460208401611d34565b90509250929050565b600181811c90821680611e7157607f821691505b60208210811415611e9257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611ec157611ec1611e98565b500190565b600082821015611ed857611ed8611e98565b500390565b6000816000190483118215151615611ef757611ef7611e98565b500290565b600082611f1957634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220096a7f2cfd24e2e32124ae17224759430a117719bf5271f316595e8a8032a21b64736f6c634300080a00330000000000000000000000000000000000000000000c685fa11e01ec6f000000000000000000000000000000000000000000000000003f870857a3e0e3800000000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000c6eb4c01bcfd37221fcbcf16eae288fa6bc8219b

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061032a5760003560e01c80637581e306116101b2578063d6969c6c116100f9578063ed424fd0116100a2578063f2fde38b1161007c578063f2fde38b1461064d578063f8b45b0514610660578063fc1852fb14610669578063fccc28131461067c57600080fd5b8063ed424fd014610628578063ef27777f14610631578063f103b4331461063a57600080fd5b8063ddb92232116100d3578063ddb92232146105fa578063e4ef9dce1461060d578063ec1e7c831461061557600080fd5b8063d6969c6c146105a5578063d81aad1c146105ae578063dd62ed3e146105c157600080fd5b8063a457c2d71161015b578063af08a09311610135578063af08a09314610576578063b71144a41461057f578063c5f956af1461059257600080fd5b8063a457c2d714610548578063a9059cbb1461055b578063a98a934a1461056e57600080fd5b80638da5cb5b1161018c5780638da5cb5b1461052657806395d89b411461053757806396afc4501461053f57600080fd5b80637581e306146105025780637efd78401461050a578063841e45611461051357600080fd5b806339509351116102765780635c44e0851161021f5780636dd3d39f116101f95780636dd3d39f146104ae57806370a08231146104d1578063715018a6146104fa57600080fd5b80635c44e08514610481578063617d112614610489578063675b711d1461049b57600080fd5b8063439af45e11610250578063439af45e146104675780634f3147ba146104705780635a24e8341461047857600080fd5b8063395093511461043257806342966c6814610445578063436cc3d61461045857600080fd5b806316862c95116102d857806323b872dd116102b257806323b872dd146103e557806325f6f526146103f8578063313ce5671461042357600080fd5b806316862c95146103b757806318160ddd146103ca5780631c499ab0146103d257600080fd5b80630731b693116103095780630731b6931461037c578063095ea7b31461038f5780630ba84cd2146103a257600080fd5b80624fbf6b1461032f578063046a2a801461034a57806306fdde0314610367575b600080fd5b610337606481565b6040519081526020015b60405180910390f35b6012546103579060ff1681565b6040519015158152602001610341565b61036f610685565b6040516103419190611cc6565b61033761038a366004611d1b565b610717565b61035761039d366004611d4b565b6107fa565b6103b56103b0366004611d1b565b610812565b005b6103b56103c5366004611d75565b6108e1565b600354610337565b6103b56103e0366004611d1b565b61094c565b6103576103f3366004611db1565b610a85565b600e5461040b906001600160a01b031681565b6040516001600160a01b039091168152602001610341565b60405160128152602001610341565b610357610440366004611d4b565b610aa9565b6103b5610453366004611d1b565b610ae8565b610337670de0b6b3a764000081565b61033760085481565b610337610af8565b61033761271081565b610337610b21565b6103376a108b2a2c2802909400000081565b600d5461040b906001600160a01b031681565b6103576104bc366004611ded565b60106020526000908152604090205460ff1681565b6103376104df366004611ded565b6001600160a01b031660009081526001602052604090205490565b6103b5610b45565b610337610b59565b61033760095481565b6103b5610521366004611ded565b610b77565b6000546001600160a01b031661040b565b61036f610c71565b61033760075481565b610357610556366004611d4b565b610c80565b610357610569366004611d4b565b610d2a565b6103b5610d38565b610337600b5481565b6103b561058d366004611e08565b610ded565b600f5461040b906001600160a01b031681565b610337600a5481565b6103b56105bc366004611ded565b610eda565b6103376105cf366004611e2a565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b610337610608366004611d1b565b610fec565b6103b5611091565b6103b5610623366004611ded565b6111fe565b61033760065481565b610337600c5481565b6103b5610648366004611d1b565b611309565b6103b561065b366004611ded565b611472565b61033760115481565b6103b5610677366004611d1b565b6114ff565b61040b61dead81565b60606004805461069490611e5d565b80601f01602080910402602001604051908101604052809291908181526020018280546106c090611e5d565b801561070d5780601f106106e25761010080835404028352916020019161070d565b820191906000526020600020905b8154815290600101906020018083116106f057829003601f168201915b5050505050905090565b600e546000906001600160a01b031633146107795760405162461bcd60e51b815260206004820152601e60248201527f4f4154483a2063616c6c6572206973206e6f7420746865206d6173746572000060448201526064015b60405180910390fd5b610781611091565b61078d600a5483611629565b90508061079957919050565b600a546107a69082611641565b600a55600e546107c19030906001600160a01b03168361164d565b6040518181527ffed9337462088a94bef1884bc64e3737242391b7eebf6ec1a59051b44d5cdeb19060200160405180910390a15b919050565b60003361080881858561174c565b5060019392505050565b61081a6118a4565b670de0b6b3a76400008111156108985760405162461bcd60e51b815260206004820152602d60248201527f4f4154483a757064617465456d697373696f6e526174653a2063616e2774206560448201527f7863656564206d6178696d756d000000000000000000000000000000000000006064820152608401610770565b6108a0611091565b60075460408051918252602082018390527f16b9091836a63537907593ebc3a80f3528891f3575b10f58ad7dd9c29fd0d44f910160405180910390a1600755565b6108e96118a4565b6001600160a01b038216600081815260106020908152604091829020805460ff19168515159081179091558251938452908301527f2a99a4bc38d7557c830b95fb39250f8fb3070e9e8375832b0a68cfa1337a85d5910160405180910390a15050565b6109546118a4565b6011548110156109cc5760405162461bcd60e51b815260206004820152603c60248201527f4f4154483a7570646174654d617857616c6c65743a2063616e2774206265206c60448201527f6f776572207468616e2063757272656e74206d61782077616c6c6574000000006064820152608401610770565b612710811115610a445760405162461bcd60e51b815260206004820152602760248201527f4f4154483a7570646174654d617857616c6c65743a20696e76616c6964206d6160448201527f7857616c6c6574000000000000000000000000000000000000000000000000006064820152608401610770565b60115460408051918252602082018390527fff64d41f60feb77d52f64ae64a9fc3929d57a89d0cc55728762468bae5e0fe52910160405180910390a1601155565b600033610a938582856118fe565b610a9e85858561164d565b506001949350505050565b3360008181526002602090815260408083206001600160a01b03871684529091528120549091906108089082908690610ae3908790611eae565b61174c565b610af53361dead8361164d565b50565b6000610b1c600c54610b16600b54606461164190919063ffffffff16565b90611641565b905090565b6000610b1c6064610b3f600c5460075461199090919063ffffffff16565b9061199c565b610b4d6118a4565b610b5760006119a8565b565b6000610b1c6064610b3f600b5460075461199090919063ffffffff16565b610b7f6118a4565b6001600160a01b038116610bfb5760405162461bcd60e51b815260206004820152602b60248201527f4f4154483a7570646174655472656173757279416464726573733a20696e766160448201527f6c696420616464726573730000000000000000000000000000000000000000006064820152608401610770565b600f54604080516001600160a01b03928316815291831660208301527f5634a90413b79beba6c5f37aa8f19d1aee84a5320ff20ac7bd1ac63280867d5c910160405180910390a1600f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60606005805461069490611e5d565b3360008181526002602090815260408083206001600160a01b038716845290915281205490919083811015610d1d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610770565b610a9e828686840361174c565b60003361080881858561164d565b610d406118a4565b60125460ff16610db85760405162461bcd60e51b815260206004820152602760248201527f4f4154483a64697361626c654d617857616c6c65743a20616c7265616479206460448201527f697361626c6564000000000000000000000000000000000000000000000000006064820152608401610770565b6040517ff92227b768be08ec052dd7200e1e5c74a9ea60ef239a5cc79db53ea495485c2a90600090a16012805460ff19169055565b610df56118a4565b610dfd611091565b6000610e098383611a05565b90506064811115610e825760405162461bcd60e51b815260206004820152603460248201527f4f4154483a757064617465416c6c6f636174696f6e733a20746f74616c20616c60448201527f6c6f636174696f6e20697320746f6f20686967680000000000000000000000006064820152608401610770565b600b839055600c8290557fa4a1bde80c0d4ba37d1bd0feec135fb515a9def4e8baee90221348069946b86c8383610eb7610af8565b6040805193845260208401929092529082015260600160405180910390a1505050565b610ee26118a4565b6001600160a01b038116610f6c5760405162461bcd60e51b8152602060048201526044602482018190527f4f4154483a696e697469616c697a654d61737465724164647265737365733a20908201527f6d617374657220696e697469616c697a656420746f207a65726f2061646472656064820152637373657360e01b608482015260a401610770565b6001600160a01b0381166000818152601060209081526040808320805460ff19166001179055600d805473ffffffffffffffffffffffffffffffffffffffff1916851790558051938452908301919091527f955893ff1e30d0252f706bdb11670138c0702aa816a1908cc70e7ac2be7623c091015b60405180910390a150565b600d546000906001600160a01b031633146110495760405162461bcd60e51b815260206004820152601e60248201527f4f4154483a2063616c6c6572206973206e6f7420746865206d617374657200006044820152606401610770565b611051611091565b61105d60095483611629565b90508061106957919050565b6009546110769082611641565b600955600d546107c19030906001600160a01b03168361164d565b600061109c60035490565b600854600654919250429181831115806110b4575081155b156110bf5750505050565b83811115806110ce5750600754155b156110db57505060085550565b6007546000906110f5906110ef8686611641565b90611990565b90506111018582611a05565b821015611115576111128286611641565b90505b60006111316064610b3f600b548561199090919063ffffffff16565b9050600061114f6064610b3f600c548661199090919063ffffffff16565b9050600061116182610b168686611641565b60088890556009549091506111769084611a05565b600955600a546111869083611a05565b600a556111933084611a11565b61119d3083611a11565b600f546111b3906001600160a01b031682611a11565b60408051848152602081018490529081018290527f0b4536a2c3b039107eeaebc720b82f33d44be576bd59fb6b8a053874693b33169060600160405180910390a15050505050505050565b6112066118a4565b6001600160a01b0381166112905760405162461bcd60e51b8152602060048201526044602482018190527f4f4154483a696e697469616c697a654d61737465724164647265737365733a20908201527f6d617374657220696e697469616c697a656420746f207a65726f2061646472656064820152637373657360e01b608482015260a401610770565b6001600160a01b0381166000818152601060209081526040808320805460ff19166001179055600e805473ffffffffffffffffffffffffffffffffffffffff1916851790558051928352908201929092527f955893ff1e30d0252f706bdb11670138c0702aa816a1908cc70e7ac2be7623c09101610fe1565b6113116118a4565b6003548110156113b05760405162461bcd60e51b8152602060048201526044602482018190527f4f4154483a7570646174654d6178537570706c793a2063616e2774206265206c908201527f6f776572207468616e2063757272656e742063697263756c6174696e6720737560648201527f70706c7900000000000000000000000000000000000000000000000000000000608482015260a401610770565b6a108b2a2c280290940000008111156114315760405162461bcd60e51b815260206004820152602760248201527f4f4154483a7570646174654d6178537570706c793a20696e76616c6964206d6160448201527f78537570706c79000000000000000000000000000000000000000000000000006064820152608401610770565b60065460408051918252602082018390527f6a84334bf6663b783f2bbfcaf459b2cbc73570cf346a46d9e6a0f290fcf3ebfc910160405180910390a1600655565b61147a6118a4565b6001600160a01b0381166114f65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610770565b610af5816119a8565b6115076118a4565b6008541561157f576040805162461bcd60e51b81526020600482015260248101919091527f4f4154483a696e697469616c697a65456d697373696f6e53746172743a20656d60448201527f697373696f6e20737461727420616c726561647920696e697469616c697a65646064820152608401610770565b8042106115f45760405162461bcd60e51b815260206004820152602560248201527f4f4154483a696e697469616c697a65456d697373696f6e53746172743a20696e60448201527f76616c69640000000000000000000000000000000000000000000000000000006064820152608401610770565b60088190556040518181527f10e116be9bb4f621259f592ccd7e00d783e796535f2a5f3bc91a79da0fc3456d90602001610fe1565b6000818310611638578161163a565b825b9392505050565b600061163a8284611ec6565b60125460ff16801561167857506001600160a01b03821660009081526010602052604090205460ff16155b1561173c57600061169a612710610b3f61169160035490565b60115490611990565b9050806116c6836116c0866001600160a01b031660009081526001602052604090205490565b90611a05565b111561173a5760405162461bcd60e51b815260206004820152602360248201527f4f4154483a2077616c6c65742062616c616e6365206c696d697420657863656560448201527f64656400000000000000000000000000000000000000000000000000000000006064820152608401610770565b505b611747838383611ad2565b505050565b6001600160a01b0383166117c75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610770565b6001600160a01b0382166118435760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610770565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000546001600160a01b03163314610b575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610770565b6001600160a01b03838116600090815260026020908152604080832093861683529290522054600019811461198a578181101561197d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610770565b61198a848484840361174c565b50505050565b600061163a8284611edd565b600061163a8284611efc565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061163a8284611eae565b6001600160a01b038216611a675760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610770565b8060036000828254611a799190611eae565b90915550506001600160a01b0382166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038316611b4e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610770565b6001600160a01b038216611bca5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610770565b6001600160a01b03831660009081526001602052604090205481811015611c595760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610770565b6001600160a01b0380851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611cb99086815260200190565b60405180910390a361198a565b600060208083528351808285015260005b81811015611cf357858101830151858201604001528201611cd7565b81811115611d05576000604083870101525b50601f01601f1916929092016040019392505050565b600060208284031215611d2d57600080fd5b5035919050565b80356001600160a01b03811681146107f557600080fd5b60008060408385031215611d5e57600080fd5b611d6783611d34565b946020939093013593505050565b60008060408385031215611d8857600080fd5b611d9183611d34565b915060208301358015158114611da657600080fd5b809150509250929050565b600080600060608486031215611dc657600080fd5b611dcf84611d34565b9250611ddd60208501611d34565b9150604084013590509250925092565b600060208284031215611dff57600080fd5b61163a82611d34565b60008060408385031215611e1b57600080fd5b50508035926020909101359150565b60008060408385031215611e3d57600080fd5b611e4683611d34565b9150611e5460208401611d34565b90509250929050565b600181811c90821680611e7157607f821691505b60208210811415611e9257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611ec157611ec1611e98565b500190565b600082821015611ed857611ed8611e98565b500390565b6000816000190483118215151615611ef757611ef7611e98565b500290565b600082611f1957634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220096a7f2cfd24e2e32124ae17224759430a117719bf5271f316595e8a8032a21b64736f6c634300080a0033

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

0000000000000000000000000000000000000000000c685fa11e01ec6f000000000000000000000000000000000000000000000000003f870857a3e0e3800000000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000c6eb4c01bcfd37221fcbcf16eae288fa6bc8219b

-----Decoded View---------------
Arg [0] : maxSupply_ (uint256): 15000000000000000000000000
Arg [1] : initialSupply (uint256): 300000000000000000000000
Arg [2] : initialEmissionRate (uint256): 100000000000000000
Arg [3] : maxWallet_ (uint256): 200
Arg [4] : treasuryAddress_ (address): 0xC6eB4c01BcFD37221FCBCf16EAE288fA6BC8219b

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000c685fa11e01ec6f000000
Arg [1] : 000000000000000000000000000000000000000000003f870857a3e0e3800000
Arg [2] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [4] : 000000000000000000000000c6eb4c01bcfd37221fcbcf16eae288fa6bc8219b


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.