ETH Price: $2,072.22 (+0.97%)
Gas: 0.05 Gwei

Token

XOE Ecosystem (XOE)
 

Overview

Max Total Supply

1,000,000,000 XOE

Holders

26

Transfers

-
0

Market

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
XOEToken

Compiler Version
v0.8.30+commit.73712a01

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.30;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IReserveVault {
    function registerFeeTransfer(address from, uint256 amount) external;
}

/// @title XOE Core Token with Fee Exemptions
/// @notice ERC20 token with 4% buy/sell tax, exempting specific addresses (e.g., bridges).
contract XOEToken is ERC20, Ownable, ReentrancyGuard {
    // ─────────────────────────────────────────────
    // Supply & Fee Configuration
    // ─────────────────────────────────────────────
    uint256 private constant INITIAL_SUPPLY = 1_000_000_000 * 1e18;
    uint256 public constant TAX_RATE = 400; // 4% tax (400 = 4.00%)

    address public immutable RESERVE_VAULT;
    mapping(address => bool) public isFeeExempt;
    bool private _inSwap; // Flag to prevent tax during internal operations

    // ─────────────────────────────────────────────
    // Events
    // ─────────────────────────────────────────────
    event MisplacedAssetRescued(address indexed token, uint256 amount, address recipient);
    event TaxDeducted(address indexed from, address indexed to, uint256 taxAmount);
    event FeeExemptionSet(address indexed account, bool isExempt);

    // ─────────────────────────────────────────────
    // Constructor
    // ─────────────────────────────────────────────
    constructor(address _reserveVault) ERC20("XOE Ecosystem", "XOE") Ownable(msg.sender) {
        require(_reserveVault != address(0), "Invalid reserve vault");
        RESERVE_VAULT = _reserveVault;

        // Mint entire supply to deployer
        _mint(msg.sender, INITIAL_SUPPLY);

        // Transfer exactly 50% to vault (tax-free due to vault exemption)
        uint256 vaultAllocation = INITIAL_SUPPLY / 2;
        super._update(msg.sender, _reserveVault, vaultAllocation);
    }

    // ─────────────────────────────────────────────
    // Modifiers
    // ─────────────────────────────────────────────
    /// @dev Modifier to prevent tax during internal swaps
    modifier lockTheSwap {
        _inSwap = true;
        _;
        _inSwap = false;
    }

    // ─────────────────────────────────────────────
    // Fee Exemption Management (Owner-only)
    // ─────────────────────────────────────────────
    /// @notice Add/remove an address from fee exemptions.
    /// @dev Can be used for contracts (bridges, DEXs) or EOAs (deployer wallet, team wallets).
    /// @param account Address to toggle exemption for.
    /// @param isExempt True to exempt, false to remove exemption.
    function setFeeExempt(address account, bool isExempt) external onlyOwner {
        require(account != address(0), "Invalid account");
        require(account != RESERVE_VAULT, "Vault is always exempt");
        isFeeExempt[account] = isExempt;
        emit FeeExemptionSet(account, isExempt);
    }

    // ─────────────────────────────────────────────
    // Tax Calculation View Functions
    // ─────────────────────────────────────────────
    /// @notice Calculate the amount recipient would receive after tax for a given transfer.
    /// @dev Helps scanners and users verify tax logic transparency.
    /// @param from The sender address.
    /// @param to The recipient address.
    /// @param amount The transfer amount before tax.
    /// @return transferAmount The amount recipient would receive after tax.
    /// @return taxAmount The tax amount that would be deducted.
    function calculateTransferAmount(
        address from,
        address to,
        uint256 amount
    ) external view returns (uint256 transferAmount, uint256 taxAmount) {
        // If either sender or recipient is exempt, no tax applies
        bool isFromExempt = isFeeExempt[from] || from == RESERVE_VAULT;
        bool isToExempt = isFeeExempt[to] || to == RESERVE_VAULT;
        
        if (isFromExempt || isToExempt) {
            return (amount, 0);
        }

        // Calculate tax
        taxAmount = _computeTax(amount);
        transferAmount = amount - taxAmount;
        
        return (transferAmount, taxAmount);
    }

    // ─────────────────────────────────────────────
    // Core Transfer Logic with Tax
    // ─────────────────────────────────────────────
    /// @dev Override _update to implement tax logic at the lowest level
    /// @dev This is called by transfer, transferFrom, mint, and burn
    function _update(
        address from,
        address to,
        uint256 value
    ) internal virtual override {
        // Skip tax for mints, burns, zero amounts, or when already in swap
        if (from == address(0) || to == address(0) || value == 0 || _inSwap) {
            super._update(from, to, value);
            return;
        }

        // Check if tax should be applied
        bool isFromExempt = isFeeExempt[from] || from == RESERVE_VAULT;
        bool isToExempt = isFeeExempt[to] || to == RESERVE_VAULT;
        
        // No tax if either party is exempt
        if (isFromExempt || isToExempt) {
            super._update(from, to, value);
            return;
        }

        // Apply tax
        uint256 taxAmount = _computeTax(value);
        require(value >= taxAmount, "Tax calculation error");
        uint256 transferAmount = value - taxAmount;

        // Execute transfers using lockTheSwap to prevent recursion
        _inSwap = true;
        
        // Transfer tax to vault
        if (taxAmount > 0) {
            super._update(from, RESERVE_VAULT, taxAmount);
            
            // Notify vault of fee transfer
            try IReserveVault(RESERVE_VAULT).registerFeeTransfer(from, taxAmount) {
                // Success
            } catch {
                // If vault notification fails, continue anyway (vault might not implement interface yet)
            }
            
            emit TaxDeducted(from, to, taxAmount);
        }
        
        // Transfer remaining amount to recipient
        super._update(from, to, transferAmount);
        
        _inSwap = false;
    }

    /// @dev Compute 4% tax with safeguards to prevent underflow.
    function _computeTax(uint256 amount) internal pure returns (uint256) {
        if (amount == 0) return 0;
        uint256 tax = (amount * TAX_RATE) / 10_000;
        // Ensure tax never exceeds amount (safety check)
        return tax > amount ? amount : tax;
    }

    // ─────────────────────────────────────────────
    // Standard ERC20 Overrides
    // ─────────────────────────────────────────────
    /// @notice Transfer tokens (standard ERC20 transfer)
    /// @dev Explicitly overridden to ensure honeypot scanners recognize it
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /// @notice Transfer tokens from one address to another (standard ERC20 transferFrom)
    /// @dev Explicitly overridden to ensure honeypot scanners recognize it
    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;
    }

    // ─────────────────────────────────────────────
    // Admin Functions
    // ─────────────────────────────────────────────
    /// @notice Rescue accidentally sent ERC20 tokens (non-XOE).
    function rescueMisplacedAsset(
        address token,
        uint256 amount,
        address to
    ) external onlyOwner nonReentrant {
        require(token != address(this), "Cannot rescue XOE tokens");
        require(to != address(0), "Invalid recipient");
        require(IERC20(token).transfer(to, amount), "Transfer failed");
        emit MisplacedAssetRescued(token, amount, to);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC-20
 * applications.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * Both values are immutable: they can only be set once during construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

    /// @inheritdoc IERC20
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /// @inheritdoc IERC20
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

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

    /// @inheritdoc IERC20
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

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

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

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner`'s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     *
     * ```solidity
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance < type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

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

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

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

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

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

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

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity >=0.6.2;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC6093.sol)
pragma solidity >=0.8.4;

/**
 * @dev Standard ERC-20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC-721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC-1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_reserveVault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExempt","type":"bool"}],"name":"FeeExemptionSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"MisplacedAssetRescued","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"taxAmount","type":"uint256"}],"name":"TaxDeducted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"RESERVE_VAULT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TAX_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateTransferAmount","outputs":[{"internalType":"uint256","name":"transferAmount","type":"uint256"},{"internalType":"uint256","name":"taxAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isFeeExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"rescueMisplacedAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isExempt","type":"bool"}],"name":"setFeeExempt","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"}]

60a060405234801561001057600080fd5b5060405161191c38038061191c83398101604081905261002f916105af565b336040518060400160405280600d81526020016c584f452045636f73797374656d60981b81525060405180604001604052806003815260200162584f4560e81b8152508160039081610081919061066f565b50600461008e828261066f565b5050506001600160a01b0381166100c057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6100c981610175565b5060016006556001600160a01b0381166101255760405162461bcd60e51b815260206004820152601560248201527f496e76616c69642072657365727665207661756c74000000000000000000000060448201526064016100b7565b6001600160a01b038116608052610148336b033b2e3c9fd0803ce80000006101c7565b600061016160026b033b2e3c9fd0803ce8000000610743565b905061016e338383610201565b50506107a8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166101f15760405163ec442f0560e01b8152600060048201526024016100b7565b6101fd6000838361032b565b5050565b6001600160a01b03831661022c5780600260008282546102219190610765565b9091555061029e9050565b6001600160a01b0383166000908152602081905260409020548181101561027f5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100b7565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166102ba576002805482900390556102d9565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161031e91815260200190565b60405180910390a3505050565b6001600160a01b038316158061034857506001600160a01b038216155b80610351575080155b8061035e575060085460ff165b156103735761036e838383610201565b505050565b6001600160a01b03831660009081526007602052604081205460ff16806103ad57506080516001600160a01b0316846001600160a01b0316145b6001600160a01b0384166000908152600760205260408120549192509060ff16806103eb57506080516001600160a01b0316846001600160a01b0316145b905081806103f65750805b1561040d57610406858585610201565b5050505050565b60006104188461056a565b90508084101561046a5760405162461bcd60e51b815260206004820152601560248201527f5461782063616c63756c6174696f6e206572726f72000000000000000000000060448201526064016100b7565b6000610476828661077e565b6008805460ff191660011790559050811561054c5761049e876080518461020160201b60201c565b608051604051633d5cf10360e21b81526001600160a01b038981166004830152602482018590529091169063f573c40c90604401600060405180830381600087803b1580156104ec57600080fd5b505af19250505080156104fd575060015b50856001600160a01b0316876001600160a01b03167f58994cb98a7201e47640d0df56a21442fed8e3f670169ac652749019b24dce728460405161054391815260200190565b60405180910390a35b610557878783610201565b50506008805460ff191690555050505050565b60008160000361057c57506000919050565b600061271061058d61019085610791565b6105979190610743565b90508281116105a657806105a8565b825b9392505050565b6000602082840312156105c157600080fd5b81516001600160a01b03811681146105a857600080fd5b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061060257607f821691505b60208210810361062257634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561036e57806000526020600020601f840160051c8101602085101561064f5750805b601f840160051c820191505b81811015610406576000815560010161065b565b81516001600160401b03811115610688576106886105d8565b61069c8161069684546105ee565b84610628565b6020601f8211600181146106d057600083156106b85750848201515b600019600385901b1c1916600184901b178455610406565b600084815260208120601f198516915b8281101561070057878501518255602094850194600190920191016106e0565b508482101561071e5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b60008261076057634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156107785761077861072d565b92915050565b818103818111156107785761077861072d565b80820281158282048414176107785761077861072d565b6080516111286107f460003960008181610241015281816103e8015281816104440152818161052301528181610b2101528181610b7d01528181610c4f0152610c9a01526111286000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806383f170be116100a257806395d89b411161007157806395d89b4114610276578063a9059cbb1461027e578063dd62ed3e14610291578063f2fde38b146102ca578063fcb318a6146102dd57600080fd5b806383f170be1461020e5780638da5cb5b146102175780638e857ed41461023c5780638ebfc7961461026357600080fd5b8063313ce567116100e9578063313ce56714610181578063355ddc3c146101905780633f4218e0146101b857806370a08231146101db578063715018a61461020457600080fd5b806306fdde031461011b578063095ea7b31461013957806318160ddd1461015c57806323b872dd1461016e575b600080fd5b6101236102f0565b6040516101309190610e86565b60405180910390f35b61014c610147366004610ef0565b610382565b6040519015158152602001610130565b6002545b604051908152602001610130565b61014c61017c366004610f1a565b61039c565b60405160128152602001610130565b6101a361019e366004610f1a565b6103c0565b60408051928352602083019190915201610130565b61014c6101c6366004610f57565b60076020526000908152604090205460ff1681565b6101606101e9366004610f57565b6001600160a01b031660009081526020819052604090205490565b61020c6104b8565b005b61016061019081565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610130565b6102247f000000000000000000000000000000000000000000000000000000000000000081565b61020c610271366004610f80565b6104cc565b6101236105fa565b61014c61028c366004610ef0565b610609565b61016061029f366004610fb7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61020c6102d8366004610f57565b610617565b61020c6102eb366004610fea565b610655565b6060600380546102ff90611026565b80601f016020809104026020016040519081016040528092919081815260200182805461032b90611026565b80156103785780601f1061034d57610100808354040283529160200191610378565b820191906000526020600020905b81548152906001019060200180831161035b57829003601f168201915b5050505050905090565b60003361039081858561080c565b60019150505b92915050565b6000336103aa858285610819565b6103b5858585610898565b506001949350505050565b6001600160a01b0383166000908152600760205260408120548190819060ff168061041c57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b0316145b6001600160a01b0386166000908152600760205260408120549192509060ff168061047857507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b0316145b905081806104835750805b15610496578460009350935050506104b0565b61049f856108f7565b92506104ab8386611076565b935050505b935093915050565b6104c061093c565b6104ca6000610969565b565b6104d461093c565b6001600160a01b0382166105215760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081858d8dbdd5b9d608a1b60448201526064015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03160361059b5760405162461bcd60e51b815260206004820152601660248201527515985d5b1d081a5cc8185b1dd85e5cc8195e195b5c1d60521b6044820152606401610518565b6001600160a01b038216600081815260076020908152604091829020805460ff191685151590811790915591519182527f210f2a4a589e25d95b24cbdb060d26ae79bbe123a564d0f973503d48badd00ca910160405180910390a25050565b6060600480546102ff90611026565b600033610390818585610898565b61061f61093c565b6001600160a01b03811661064957604051631e4fbdf760e01b815260006004820152602401610518565b61065281610969565b50565b61065d61093c565b6106656109bb565b306001600160a01b038416036106bd5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f742072657363756520584f4520746f6b656e7300000000000000006044820152606401610518565b6001600160a01b0381166107075760405162461bcd60e51b8152602060048201526011602482015270125b9d985b1a59081c9958da5c1a595b9d607a1b6044820152606401610518565b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb906044016020604051808303816000875af1158015610756573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077a9190611089565b6107b85760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610518565b604080518381526001600160a01b0383811660208301528516917fa2153d8943b879a39ae9aedbcd84fa72e91cc689d8b948913e687df68f379f26910160405180910390a26108076001600655565b505050565b61080783838360016109e5565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811015610892578181101561088357604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610518565b610892848484840360006109e5565b50505050565b6001600160a01b0383166108c257604051634b637e8f60e11b815260006004820152602401610518565b6001600160a01b0382166108ec5760405163ec442f0560e01b815260006004820152602401610518565b610807838383610aba565b60008160000361090957506000919050565b600061271061091a610190856110a6565b61092491906110bd565b90508281116109335780610935565b825b9392505050565b6005546001600160a01b031633146104ca5760405163118cdaa760e01b8152336004820152602401610518565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600654036109de57604051633ee5aeb560e01b815260040160405180910390fd5b6002600655565b6001600160a01b038416610a0f5760405163e602df0560e01b815260006004820152602401610518565b6001600160a01b038316610a3957604051634a1406b160e11b815260006004820152602401610518565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561089257826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610aac91815260200190565b60405180910390a350505050565b6001600160a01b0383161580610ad757506001600160a01b038216155b80610ae0575080155b80610aed575060085460ff165b15610afd57610807838383610d5c565b6001600160a01b03831660009081526007602052604081205460ff1680610b5557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b0316145b6001600160a01b0384166000908152600760205260408120549192509060ff1680610bb157507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b0316145b90508180610bbc5750805b15610bd357610bcc858585610d5c565b5050505050565b6000610bde846108f7565b905080841015610c285760405162461bcd60e51b81526020600482015260156024820152742a30bc1031b0b631bab630ba34b7b71032b93937b960591b6044820152606401610518565b6000610c348286611076565b6008805460ff1916600117905590508115610d3e57610c74877f000000000000000000000000000000000000000000000000000000000000000084610d5c565b604051633d5cf10360e21b81526001600160a01b038881166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063f573c40c90604401600060405180830381600087803b158015610cde57600080fd5b505af1925050508015610cef575060015b50856001600160a01b0316876001600160a01b03167f58994cb98a7201e47640d0df56a21442fed8e3f670169ac652749019b24dce7284604051610d3591815260200190565b60405180910390a35b610d49878783610d5c565b50506008805460ff191690555050505050565b6001600160a01b038316610d87578060026000828254610d7c91906110df565b90915550610df99050565b6001600160a01b03831660009081526020819052604090205481811015610dda5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610518565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610e1557600280548290039055610e34565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610e7991815260200190565b60405180910390a3505050565b602081526000825180602084015260005b81811015610eb45760208186018101516040868401015201610e97565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610eeb57600080fd5b919050565b60008060408385031215610f0357600080fd5b610f0c83610ed4565b946020939093013593505050565b600080600060608486031215610f2f57600080fd5b610f3884610ed4565b9250610f4660208501610ed4565b929592945050506040919091013590565b600060208284031215610f6957600080fd5b61093582610ed4565b801515811461065257600080fd5b60008060408385031215610f9357600080fd5b610f9c83610ed4565b91506020830135610fac81610f72565b809150509250929050565b60008060408385031215610fca57600080fd5b610fd383610ed4565b9150610fe160208401610ed4565b90509250929050565b600080600060608486031215610fff57600080fd5b61100884610ed4565b92506020840135915061101d60408501610ed4565b90509250925092565b600181811c9082168061103a57607f821691505b60208210810361105a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561039657610396611060565b60006020828403121561109b57600080fd5b815161093581610f72565b808202811582820484141761039657610396611060565b6000826110da57634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156103965761039661106056fea2646970667358221220c755e884e4ce4e9a0aa749fe313a6701e1affda2834c63210cbcd9106a96d9cb64736f6c634300081e00330000000000000000000000002036e668309d7433bde36c878ecef1a21570bfab

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c806383f170be116100a257806395d89b411161007157806395d89b4114610276578063a9059cbb1461027e578063dd62ed3e14610291578063f2fde38b146102ca578063fcb318a6146102dd57600080fd5b806383f170be1461020e5780638da5cb5b146102175780638e857ed41461023c5780638ebfc7961461026357600080fd5b8063313ce567116100e9578063313ce56714610181578063355ddc3c146101905780633f4218e0146101b857806370a08231146101db578063715018a61461020457600080fd5b806306fdde031461011b578063095ea7b31461013957806318160ddd1461015c57806323b872dd1461016e575b600080fd5b6101236102f0565b6040516101309190610e86565b60405180910390f35b61014c610147366004610ef0565b610382565b6040519015158152602001610130565b6002545b604051908152602001610130565b61014c61017c366004610f1a565b61039c565b60405160128152602001610130565b6101a361019e366004610f1a565b6103c0565b60408051928352602083019190915201610130565b61014c6101c6366004610f57565b60076020526000908152604090205460ff1681565b6101606101e9366004610f57565b6001600160a01b031660009081526020819052604090205490565b61020c6104b8565b005b61016061019081565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610130565b6102247f0000000000000000000000002036e668309d7433bde36c878ecef1a21570bfab81565b61020c610271366004610f80565b6104cc565b6101236105fa565b61014c61028c366004610ef0565b610609565b61016061029f366004610fb7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61020c6102d8366004610f57565b610617565b61020c6102eb366004610fea565b610655565b6060600380546102ff90611026565b80601f016020809104026020016040519081016040528092919081815260200182805461032b90611026565b80156103785780601f1061034d57610100808354040283529160200191610378565b820191906000526020600020905b81548152906001019060200180831161035b57829003601f168201915b5050505050905090565b60003361039081858561080c565b60019150505b92915050565b6000336103aa858285610819565b6103b5858585610898565b506001949350505050565b6001600160a01b0383166000908152600760205260408120548190819060ff168061041c57507f0000000000000000000000002036e668309d7433bde36c878ecef1a21570bfab6001600160a01b0316866001600160a01b0316145b6001600160a01b0386166000908152600760205260408120549192509060ff168061047857507f0000000000000000000000002036e668309d7433bde36c878ecef1a21570bfab6001600160a01b0316866001600160a01b0316145b905081806104835750805b15610496578460009350935050506104b0565b61049f856108f7565b92506104ab8386611076565b935050505b935093915050565b6104c061093c565b6104ca6000610969565b565b6104d461093c565b6001600160a01b0382166105215760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081858d8dbdd5b9d608a1b60448201526064015b60405180910390fd5b7f0000000000000000000000002036e668309d7433bde36c878ecef1a21570bfab6001600160a01b0316826001600160a01b03160361059b5760405162461bcd60e51b815260206004820152601660248201527515985d5b1d081a5cc8185b1dd85e5cc8195e195b5c1d60521b6044820152606401610518565b6001600160a01b038216600081815260076020908152604091829020805460ff191685151590811790915591519182527f210f2a4a589e25d95b24cbdb060d26ae79bbe123a564d0f973503d48badd00ca910160405180910390a25050565b6060600480546102ff90611026565b600033610390818585610898565b61061f61093c565b6001600160a01b03811661064957604051631e4fbdf760e01b815260006004820152602401610518565b61065281610969565b50565b61065d61093c565b6106656109bb565b306001600160a01b038416036106bd5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f742072657363756520584f4520746f6b656e7300000000000000006044820152606401610518565b6001600160a01b0381166107075760405162461bcd60e51b8152602060048201526011602482015270125b9d985b1a59081c9958da5c1a595b9d607a1b6044820152606401610518565b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb906044016020604051808303816000875af1158015610756573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077a9190611089565b6107b85760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610518565b604080518381526001600160a01b0383811660208301528516917fa2153d8943b879a39ae9aedbcd84fa72e91cc689d8b948913e687df68f379f26910160405180910390a26108076001600655565b505050565b61080783838360016109e5565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811015610892578181101561088357604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610518565b610892848484840360006109e5565b50505050565b6001600160a01b0383166108c257604051634b637e8f60e11b815260006004820152602401610518565b6001600160a01b0382166108ec5760405163ec442f0560e01b815260006004820152602401610518565b610807838383610aba565b60008160000361090957506000919050565b600061271061091a610190856110a6565b61092491906110bd565b90508281116109335780610935565b825b9392505050565b6005546001600160a01b031633146104ca5760405163118cdaa760e01b8152336004820152602401610518565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600654036109de57604051633ee5aeb560e01b815260040160405180910390fd5b6002600655565b6001600160a01b038416610a0f5760405163e602df0560e01b815260006004820152602401610518565b6001600160a01b038316610a3957604051634a1406b160e11b815260006004820152602401610518565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561089257826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610aac91815260200190565b60405180910390a350505050565b6001600160a01b0383161580610ad757506001600160a01b038216155b80610ae0575080155b80610aed575060085460ff165b15610afd57610807838383610d5c565b6001600160a01b03831660009081526007602052604081205460ff1680610b5557507f0000000000000000000000002036e668309d7433bde36c878ecef1a21570bfab6001600160a01b0316846001600160a01b0316145b6001600160a01b0384166000908152600760205260408120549192509060ff1680610bb157507f0000000000000000000000002036e668309d7433bde36c878ecef1a21570bfab6001600160a01b0316846001600160a01b0316145b90508180610bbc5750805b15610bd357610bcc858585610d5c565b5050505050565b6000610bde846108f7565b905080841015610c285760405162461bcd60e51b81526020600482015260156024820152742a30bc1031b0b631bab630ba34b7b71032b93937b960591b6044820152606401610518565b6000610c348286611076565b6008805460ff1916600117905590508115610d3e57610c74877f0000000000000000000000002036e668309d7433bde36c878ecef1a21570bfab84610d5c565b604051633d5cf10360e21b81526001600160a01b038881166004830152602482018490527f0000000000000000000000002036e668309d7433bde36c878ecef1a21570bfab169063f573c40c90604401600060405180830381600087803b158015610cde57600080fd5b505af1925050508015610cef575060015b50856001600160a01b0316876001600160a01b03167f58994cb98a7201e47640d0df56a21442fed8e3f670169ac652749019b24dce7284604051610d3591815260200190565b60405180910390a35b610d49878783610d5c565b50506008805460ff191690555050505050565b6001600160a01b038316610d87578060026000828254610d7c91906110df565b90915550610df99050565b6001600160a01b03831660009081526020819052604090205481811015610dda5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610518565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610e1557600280548290039055610e34565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610e7991815260200190565b60405180910390a3505050565b602081526000825180602084015260005b81811015610eb45760208186018101516040868401015201610e97565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610eeb57600080fd5b919050565b60008060408385031215610f0357600080fd5b610f0c83610ed4565b946020939093013593505050565b600080600060608486031215610f2f57600080fd5b610f3884610ed4565b9250610f4660208501610ed4565b929592945050506040919091013590565b600060208284031215610f6957600080fd5b61093582610ed4565b801515811461065257600080fd5b60008060408385031215610f9357600080fd5b610f9c83610ed4565b91506020830135610fac81610f72565b809150509250929050565b60008060408385031215610fca57600080fd5b610fd383610ed4565b9150610fe160208401610ed4565b90509250929050565b600080600060608486031215610fff57600080fd5b61100884610ed4565b92506020840135915061101d60408501610ed4565b90509250925092565b600181811c9082168061103a57607f821691505b60208210810361105a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561039657610396611060565b60006020828403121561109b57600080fd5b815161093581610f72565b808202811582820484141761039657610396611060565b6000826110da57634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156103965761039661106056fea2646970667358221220c755e884e4ce4e9a0aa749fe313a6701e1affda2834c63210cbcd9106a96d9cb64736f6c634300081e0033

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

0000000000000000000000002036e668309d7433bde36c878ecef1a21570bfab

-----Decoded View---------------
Arg [0] : _reserveVault (address): 0x2036E668309d7433BDe36C878EcEf1a21570BfAb

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002036e668309d7433bde36c878ecef1a21570bfab


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.