S Price: $0.06807 (+0.90%)
Gas: 55 Gwei

Contract

0x8748d221CA477cd3b4AF3229991b3c4faD0cE312

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Approve548994932025-11-11 17:23:2176 days ago1762881801IN
0x8748d221...faD0cE312
0 S0.0014197155
Approve548994742025-11-11 17:23:1276 days ago1762881792IN
0x8748d221...faD0cE312
0 S0.0014231855
Approve548994572025-11-11 17:23:0276 days ago1762881782IN
0x8748d221...faD0cE312
0 S0.0014231855
Approve548994442025-11-11 17:22:5176 days ago1762881771IN
0x8748d221...faD0cE312
0 S0.0014231855
Approve548994332025-11-11 17:22:4176 days ago1762881761IN
0x8748d221...faD0cE312
0 S0.0014231855
Approve548994192025-11-11 17:22:3076 days ago1762881750IN
0x8748d221...faD0cE312
0 S0.0014231855
Approve483885262025-09-27 2:22:03121 days ago1758939723IN
0x8748d221...faD0cE312
0 S0.0028732351.5
Approve437730882025-08-20 6:45:19159 days ago1755672319IN
0x8748d221...faD0cE312
0 S0.002785450.0001
Approve427778302025-08-13 8:54:26166 days ago1755075266IN
0x8748d221...faD0cE312
0 S0.0014236955.02
Approve427778212025-08-13 8:54:20166 days ago1755075260IN
0x8748d221...faD0cE312
0 S0.0015525660
Approve425473382025-08-11 18:06:27168 days ago1754935587IN
0x8748d221...faD0cE312
0 S0.0026974155.01
Approve398834512025-07-23 16:37:39187 days ago1753288659IN
0x8748d221...faD0cE312
0 S0.0026969255
Approve398833332025-07-23 16:36:43187 days ago1753288603IN
0x8748d221...faD0cE312
0 S0.001547755
Approve398832862025-07-23 16:36:24187 days ago1753288584IN
0x8748d221...faD0cE312
0 S0.0026969255
Approve398041912025-07-23 5:29:44187 days ago1753248584IN
0x8748d221...faD0cE312
0 S0.001220850.0001
Approve398041862025-07-23 5:29:42187 days ago1753248582IN
0x8748d221...faD0cE312
0 S0.001220850.0001
Approve398041792025-07-23 5:29:38187 days ago1753248578IN
0x8748d221...faD0cE312
0 S0.001220850.0001
Approve398041762025-07-23 5:29:35187 days ago1753248575IN
0x8748d221...faD0cE312
0 S0.001220850.0001
Approve390943232025-07-18 13:52:59192 days ago1752846779IN
0x8748d221...faD0cE312
0 S0.0029490760.5
Approve390937732025-07-18 13:48:04192 days ago1752846484IN
0x8748d221...faD0cE312
0 S0.0032363166
Approve390681472025-07-18 9:51:04192 days ago1752832264IN
0x8748d221...faD0cE312
0 S0.0026969255
Approve379785252025-07-11 4:12:51199 days ago1752207171IN
0x8748d221...faD0cE312
0 S0.00280250
Approve375205632025-07-07 19:56:38203 days ago1751918198IN
0x8748d221...faD0cE312
0 S0.0016886860.01
Approve375205472025-07-07 19:56:29203 days ago1751918189IN
0x8748d221...faD0cE312
0 S0.002942160
Approve339231272025-06-14 2:21:55226 days ago1749867715IN
0x8748d221...faD0cE312
0 S0.0032363166
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TaxToken

Compiler Version
v0.8.27+commit.40a35a09

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at SonicScan.org on 2025-04-24
*/

// SPDX-License-Identifier: MIT


pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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



pragma solidity ^0.8.20;


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



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;
    }
}


pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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



pragma solidity ^0.8.20;





/**
 * @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}.
     *
     * 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 returns (string memory) {
        return _name;
    }

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

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

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

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

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

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

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

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

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

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

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

        emit Transfer(from, to, value);
    }

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

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

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

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

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


pragma solidity ^0.8.20;


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



pragma solidity ^0.8.0;



contract TaxToken is ERC20, Ownable {
    uint256 public constant TAX_PERCENTAGE = 1000; // 10% tax (in basis points)
    address public taxCollector; // Address where tax is sent
    mapping(address => bool) public excludedFromTax; // Addresses excluded from tax

    event TaxCollectorUpdated(address newTaxCollector);
    event TokensBurned(uint256 amount);
    event AddressExcludedFromTax(address excludedAddress);

    constructor(
        string memory name,
        string memory symbol,
        uint256 initialSupply,
        address _taxCollector
    ) ERC20(name, symbol) Ownable(msg.sender) {
        require(_taxCollector != address(0), "Tax collector cannot be zero address");
        
        taxCollector = _taxCollector;
        
        // Exclude owner and tax collector from tax
        excludedFromTax[msg.sender] = true;
        excludedFromTax[_taxCollector] = true;
        
        // Mint initial supply to the owner
        _mint(msg.sender, initialSupply);
    }
 
    function setTaxCollector(address _taxCollector) external onlyOwner {
        require(_taxCollector != address(0), "Tax collector cannot be zero address");
        if (taxCollector == msg.sender) {
            excludedFromTax[msg.sender] = false;
            }
        taxCollector = _taxCollector;
        excludedFromTax[_taxCollector] = true;
       
        emit TaxCollectorUpdated(_taxCollector);
    }

    function excludeFromTax(address account) external onlyOwner {
        excludedFromTax[account] = true;
        emit AddressExcludedFromTax(account);
    }

    function includeInTax(address account) external onlyOwner {
       
        excludedFromTax[account] = false;
    }

    // Override the transfer and transferFrom functions instead of _transfer
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transferWithTax(owner, to, amount);
        return true;
    }

    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transferWithTax(from, to, amount);
        return true;
    }

// _transferWithTax function with 8% to collector, 2% burn
    function _transferWithTax(address from, address to, uint256 amount) internal {
        require(from != address(0), "Transfer from the zero address");
        require(to != address(0), "Transfer to the zero address");

        // If either sender or receiver is excluded from tax, process normal transfer
        if (excludedFromTax[from] || excludedFromTax[to]) {
            _transfer(from, to, amount);
            return;
        }

        // Calculate tax amounts - 10% total (8% to collector, 2% burn)
        uint256 collectorTaxAmount = (amount * 800) / 10000;  // 8% to collector
        uint256 burnTaxAmount = (amount * 200) / 10000;      // 2% burn
        uint256 transferAmount = amount - collectorTaxAmount - burnTaxAmount;

        // Transfer collector tax
        _transfer(from, taxCollector, collectorTaxAmount);
        
        // Burn portion of the tax
        _burn(from, burnTaxAmount);

        // Transfer remaining amount to recipient
        _transfer(from, to, transferAmount);
}

        function burn (uint256 amount) external {
            address user = msg.sender;
            _burn(user, amount);

            emit TokensBurned(amount);
         }

}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"address","name":"_taxCollector","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"excludedAddress","type":"address"}],"name":"AddressExcludedFromTax","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":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":"newTaxCollector","type":"address"}],"name":"TaxCollectorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensBurned","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":"TAX_PERCENTAGE","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":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromTax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInTax","outputs":[],"stateMutability":"nonpayable","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":"_taxCollector","type":"address"}],"name":"setTaxCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"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"}]

608060405234801561000f575f5ffd5b5060405161125e38038061125e83398101604081905261002e91610391565b338484600361003d83826104a2565b50600461004a82826104a2565b5050506001600160a01b03811661007b57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61008481610145565b506001600160a01b0381166100e75760405162461bcd60e51b8152602060048201526024808201527f54617820636f6c6c6563746f722063616e6e6f74206265207a65726f206164646044820152637265737360e01b6064820152608401610072565b600680546001600160a01b0319166001600160a01b038316908117909155335f81815260076020526040808220805460ff199081166001908117909255948352912080549093161790915561013c9083610196565b50505050610581565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166101bf5760405163ec442f0560e01b81525f6004820152602401610072565b6101ca5f83836101ce565b5050565b6001600160a01b0383166101f8578060025f8282546101ed919061055c565b909155506102689050565b6001600160a01b0383165f908152602081905260409020548181101561024a5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610072565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610284576002805482900390556102a2565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516102e791815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610317575f5ffd5b81516001600160401b03811115610330576103306102f4565b604051601f8201601f19908116603f011681016001600160401b038111828210171561035e5761035e6102f4565b604052818152838201602001851015610375575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b5f5f5f5f608085870312156103a4575f5ffd5b84516001600160401b038111156103b9575f5ffd5b6103c587828801610308565b602087015190955090506001600160401b038111156103e2575f5ffd5b6103ee87828801610308565b60408701516060880151919550935090506001600160a01b0381168114610413575f5ffd5b939692955090935050565b600181811c9082168061043257607f821691505b60208210810361045057634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561049d57805f5260205f20601f840160051c8101602085101561047b5750805b601f840160051c820191505b8181101561049a575f8155600101610487565b50505b505050565b81516001600160401b038111156104bb576104bb6102f4565b6104cf816104c9845461041e565b84610456565b6020601f821160018114610501575f83156104ea5750848201515b5f19600385901b1c1916600184901b17845561049a565b5f84815260208120601f198516915b828110156105305787850151825560209485019460019092019101610510565b508482101561054d57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b8082018082111561057b57634e487b7160e01b5f52601160045260245ffd5b92915050565b610cd08061058e5f395ff3fe608060405234801561000f575f5ffd5b506004361061010d575f3560e01c8063715018a6116100a9578063a9059cbb1161006e578063a9059cbb1461023e578063bea1dcf814610251578063dd62ed3e14610264578063e17c4c7414610277578063f2fde38b1461028a575f5ffd5b8063715018a6146101e95780637876ab0c146101f15780638da5cb5b146101fa57806395d89b4114610214578063989763ef1461021c575f5ffd5b806306fdde031461011157806308695b411461012f578063095ea7b31461014457806318160ddd1461016757806323b872dd14610179578063313ce5671461018c57806342966c681461019b57806360d1259e146101ae57806370a08231146101c1575b5f5ffd5b61011961029d565b6040516101269190610aa3565b60405180910390f35b61014261013d366004610af3565b61032d565b005b610157610152366004610b13565b610438565b6040519015158152602001610126565b6002545b604051908152602001610126565b610157610187366004610b3b565b610451565b60405160128152602001610126565b6101426101a9366004610b75565b610474565b6101426101bc366004610af3565b6104b6565b61016b6101cf366004610af3565b6001600160a01b03165f9081526020819052604090205490565b610142610510565b61016b6103e881565b6005546001600160a01b03165b6040516101269190610b8c565b610119610523565b61015761022a366004610af3565b60076020525f908152604090205460ff1681565b61015761024c366004610b13565b610532565b600654610207906001600160a01b031681565b61016b610272366004610ba0565b61053f565b610142610285366004610af3565b610569565b610142610298366004610af3565b610591565b6060600380546102ac90610bd1565b80601f01602080910402602001604051908101604052809291908181526020018280546102d890610bd1565b80156103235780601f106102fa57610100808354040283529160200191610323565b820191905f5260205f20905b81548152906001019060200180831161030657829003601f168201915b5050505050905090565b6103356105ce565b6001600160a01b03811661039c5760405162461bcd60e51b8152602060048201526024808201527f54617820636f6c6c6563746f722063616e6e6f74206265207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b600654336001600160a01b03909116036103c757335f908152600760205260409020805460ff191690555b600680546001600160a01b0319166001600160a01b0383169081179091555f9081526007602052604090819020805460ff19166001179055517f025b41283e45f82d7d21e35cc3c2b3095756c1023388782cf6dffbba94fcd01a9061042d908390610b8c565b60405180910390a150565b5f336104458185856105fb565b60019150505b92915050565b5f3361045e85828561060d565b61046985858561065e565b506001949350505050565b3361047f81836107dc565b6040518281527f6ef4855b666dcc7884561072e4358b28dfe01feb1b7f4dcebc00e62d50394ac79060200160405180910390a15050565b6104be6105ce565b6001600160a01b0381165f9081526007602052604090819020805460ff19166001179055517fd5a202470ebb4b485ca6357b5e5c3c8ec646f96c8b825a96cb95569c363ceb9e9061042d908390610b8c565b6105186105ce565b6105215f610814565b565b6060600480546102ac90610bd1565b5f3361044581858561065e565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6105716105ce565b6001600160a01b03165f908152600760205260409020805460ff19169055565b6105996105ce565b6001600160a01b0381166105c2575f604051631e4fbdf760e01b81526004016103939190610b8c565b6105cb81610814565b50565b6005546001600160a01b03163314610521573360405163118cdaa760e01b81526004016103939190610b8c565b6106088383836001610865565b505050565b5f610618848461053f565b90505f19811015610658578181101561064a57828183604051637dc7a0d960e11b815260040161039393929190610c09565b61065884848484035f610865565b50505050565b6001600160a01b0383166106b45760405162461bcd60e51b815260206004820152601e60248201527f5472616e736665722066726f6d20746865207a65726f206164647265737300006044820152606401610393565b6001600160a01b03821661070a5760405162461bcd60e51b815260206004820152601c60248201527f5472616e7366657220746f20746865207a65726f2061646472657373000000006044820152606401610393565b6001600160a01b0383165f9081526007602052604090205460ff168061074757506001600160a01b0382165f9081526007602052604090205460ff165b1561075757610608838383610937565b5f61271061076783610320610c3e565b6107719190610c55565b90505f6127106107828460c8610c3e565b61078c9190610c55565b90505f8161079a8486610c74565b6107a49190610c74565b6006549091506107bf9087906001600160a01b031685610937565b6107c986836107dc565b6107d4868683610937565b505050505050565b6001600160a01b038216610805575f604051634b637e8f60e11b81526004016103939190610b8c565b610810825f83610990565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b03841661088e575f60405163e602df0560e01b81526004016103939190610b8c565b6001600160a01b0383166108b7575f604051634a1406b160e11b81526004016103939190610b8c565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561065857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161092991815260200190565b60405180910390a350505050565b6001600160a01b038316610960575f604051634b637e8f60e11b81526004016103939190610b8c565b6001600160a01b038216610989575f60405163ec442f0560e01b81526004016103939190610b8c565b6106088383835b6001600160a01b0383166109ba578060025f8282546109af9190610c87565b90915550610a179050565b6001600160a01b0383165f90815260208190526040902054818110156109f95783818360405163391434e360e21b815260040161039393929190610c09565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610a3357600280548290039055610a51565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610a9691815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610aee575f5ffd5b919050565b5f60208284031215610b03575f5ffd5b610b0c82610ad8565b9392505050565b5f5f60408385031215610b24575f5ffd5b610b2d83610ad8565b946020939093013593505050565b5f5f5f60608486031215610b4d575f5ffd5b610b5684610ad8565b9250610b6460208501610ad8565b929592945050506040919091013590565b5f60208284031215610b85575f5ffd5b5035919050565b6001600160a01b0391909116815260200190565b5f5f60408385031215610bb1575f5ffd5b610bba83610ad8565b9150610bc860208401610ad8565b90509250929050565b600181811c90821680610be557607f821691505b602082108103610c0357634e487b7160e01b5f52602260045260245ffd5b50919050565b6001600160a01b039390931683526020830191909152604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761044b5761044b610c2a565b5f82610c6f57634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561044b5761044b610c2a565b8082018082111561044b5761044b610c2a56fea2646970667358221220f46c60b864880caeb6e69531f4447da45604f78de36ede716cc638772693e60e64736f6c634300081b0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000a968163f0a57b4000000000000000000000000000005e4d8755c0cbd26e8670b27bc0bd21ef84cd881d0000000000000000000000000000000000000000000000000000000000000008416d6574687973740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004414d544800000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561000f575f5ffd5b506004361061010d575f3560e01c8063715018a6116100a9578063a9059cbb1161006e578063a9059cbb1461023e578063bea1dcf814610251578063dd62ed3e14610264578063e17c4c7414610277578063f2fde38b1461028a575f5ffd5b8063715018a6146101e95780637876ab0c146101f15780638da5cb5b146101fa57806395d89b4114610214578063989763ef1461021c575f5ffd5b806306fdde031461011157806308695b411461012f578063095ea7b31461014457806318160ddd1461016757806323b872dd14610179578063313ce5671461018c57806342966c681461019b57806360d1259e146101ae57806370a08231146101c1575b5f5ffd5b61011961029d565b6040516101269190610aa3565b60405180910390f35b61014261013d366004610af3565b61032d565b005b610157610152366004610b13565b610438565b6040519015158152602001610126565b6002545b604051908152602001610126565b610157610187366004610b3b565b610451565b60405160128152602001610126565b6101426101a9366004610b75565b610474565b6101426101bc366004610af3565b6104b6565b61016b6101cf366004610af3565b6001600160a01b03165f9081526020819052604090205490565b610142610510565b61016b6103e881565b6005546001600160a01b03165b6040516101269190610b8c565b610119610523565b61015761022a366004610af3565b60076020525f908152604090205460ff1681565b61015761024c366004610b13565b610532565b600654610207906001600160a01b031681565b61016b610272366004610ba0565b61053f565b610142610285366004610af3565b610569565b610142610298366004610af3565b610591565b6060600380546102ac90610bd1565b80601f01602080910402602001604051908101604052809291908181526020018280546102d890610bd1565b80156103235780601f106102fa57610100808354040283529160200191610323565b820191905f5260205f20905b81548152906001019060200180831161030657829003601f168201915b5050505050905090565b6103356105ce565b6001600160a01b03811661039c5760405162461bcd60e51b8152602060048201526024808201527f54617820636f6c6c6563746f722063616e6e6f74206265207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b600654336001600160a01b03909116036103c757335f908152600760205260409020805460ff191690555b600680546001600160a01b0319166001600160a01b0383169081179091555f9081526007602052604090819020805460ff19166001179055517f025b41283e45f82d7d21e35cc3c2b3095756c1023388782cf6dffbba94fcd01a9061042d908390610b8c565b60405180910390a150565b5f336104458185856105fb565b60019150505b92915050565b5f3361045e85828561060d565b61046985858561065e565b506001949350505050565b3361047f81836107dc565b6040518281527f6ef4855b666dcc7884561072e4358b28dfe01feb1b7f4dcebc00e62d50394ac79060200160405180910390a15050565b6104be6105ce565b6001600160a01b0381165f9081526007602052604090819020805460ff19166001179055517fd5a202470ebb4b485ca6357b5e5c3c8ec646f96c8b825a96cb95569c363ceb9e9061042d908390610b8c565b6105186105ce565b6105215f610814565b565b6060600480546102ac90610bd1565b5f3361044581858561065e565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6105716105ce565b6001600160a01b03165f908152600760205260409020805460ff19169055565b6105996105ce565b6001600160a01b0381166105c2575f604051631e4fbdf760e01b81526004016103939190610b8c565b6105cb81610814565b50565b6005546001600160a01b03163314610521573360405163118cdaa760e01b81526004016103939190610b8c565b6106088383836001610865565b505050565b5f610618848461053f565b90505f19811015610658578181101561064a57828183604051637dc7a0d960e11b815260040161039393929190610c09565b61065884848484035f610865565b50505050565b6001600160a01b0383166106b45760405162461bcd60e51b815260206004820152601e60248201527f5472616e736665722066726f6d20746865207a65726f206164647265737300006044820152606401610393565b6001600160a01b03821661070a5760405162461bcd60e51b815260206004820152601c60248201527f5472616e7366657220746f20746865207a65726f2061646472657373000000006044820152606401610393565b6001600160a01b0383165f9081526007602052604090205460ff168061074757506001600160a01b0382165f9081526007602052604090205460ff165b1561075757610608838383610937565b5f61271061076783610320610c3e565b6107719190610c55565b90505f6127106107828460c8610c3e565b61078c9190610c55565b90505f8161079a8486610c74565b6107a49190610c74565b6006549091506107bf9087906001600160a01b031685610937565b6107c986836107dc565b6107d4868683610937565b505050505050565b6001600160a01b038216610805575f604051634b637e8f60e11b81526004016103939190610b8c565b610810825f83610990565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b03841661088e575f60405163e602df0560e01b81526004016103939190610b8c565b6001600160a01b0383166108b7575f604051634a1406b160e11b81526004016103939190610b8c565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561065857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161092991815260200190565b60405180910390a350505050565b6001600160a01b038316610960575f604051634b637e8f60e11b81526004016103939190610b8c565b6001600160a01b038216610989575f60405163ec442f0560e01b81526004016103939190610b8c565b6106088383835b6001600160a01b0383166109ba578060025f8282546109af9190610c87565b90915550610a179050565b6001600160a01b0383165f90815260208190526040902054818110156109f95783818360405163391434e360e21b815260040161039393929190610c09565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610a3357600280548290039055610a51565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610a9691815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610aee575f5ffd5b919050565b5f60208284031215610b03575f5ffd5b610b0c82610ad8565b9392505050565b5f5f60408385031215610b24575f5ffd5b610b2d83610ad8565b946020939093013593505050565b5f5f5f60608486031215610b4d575f5ffd5b610b5684610ad8565b9250610b6460208501610ad8565b929592945050506040919091013590565b5f60208284031215610b85575f5ffd5b5035919050565b6001600160a01b0391909116815260200190565b5f5f60408385031215610bb1575f5ffd5b610bba83610ad8565b9150610bc860208401610ad8565b90509250929050565b600181811c90821680610be557607f821691505b602082108103610c0357634e487b7160e01b5f52602260045260245ffd5b50919050565b6001600160a01b039390931683526020830191909152604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761044b5761044b610c2a565b5f82610c6f57634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561044b5761044b610c2a565b8082018082111561044b5761044b610c2a56fea2646970667358221220f46c60b864880caeb6e69531f4447da45604f78de36ede716cc638772693e60e64736f6c634300081b0033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000a968163f0a57b4000000000000000000000000000005e4d8755c0cbd26e8670b27bc0bd21ef84cd881d0000000000000000000000000000000000000000000000000000000000000008416d6574687973740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004414d544800000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Amethyst
Arg [1] : symbol (string): AMTH
Arg [2] : initialSupply (uint256): 50000000000000000000000
Arg [3] : _taxCollector (address): 0x5e4D8755c0cBD26E8670b27Bc0bD21EF84cD881d

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000000000000000000000000a968163f0a57b400000
Arg [3] : 0000000000000000000000005e4d8755c0cbd26e8670b27bc0bd21ef84cd881d
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 416d657468797374000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 414d544800000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

24799:3580:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12333:91;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;25823:416;;;;;;:::i;:::-;;:::i;:::-;;14626:190;;;;;;:::i;:::-;;:::i;:::-;;;1276:14:1;;1269:22;1251:41;;1239:2;1224:18;14626:190:0;1111:187:1;13435:99:0;13514:12;;13435:99;;;1449:25:1;;;1437:2;1422:18;13435:99:0;1303:177:1;26824:268:0;;;;;;:::i;:::-;;:::i;13286:84::-;;;13360:2;2006:36:1;;1994:2;1979:18;13286:84:0;1864:184:1;28205:169:0;;;;;;:::i;:::-;;:::i;26247:157::-;;;;;;:::i;:::-;;:::i;13597:118::-;;;;;;:::i;:::-;-1:-1:-1;;;;;13689:18:0;13662:7;13689:18;;;;;;;;;;;;13597:118;23928:103;;;:::i;24842:45::-;;24883:4;24842:45;;23253:87;23326:6;;-1:-1:-1;;;;;23326:6:0;23253:87;;;;;;;:::i;12543:95::-;;;:::i;24986:47::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;26616:200;;;;;;:::i;:::-;;:::i;24923:27::-;;;;;-1:-1:-1;;;;;24923:27:0;;;14165:142;;;;;;:::i;:::-;;:::i;26412:118::-;;;;;;:::i;:::-;;:::i;24186:220::-;;;;;;:::i;:::-;;:::i;12333:91::-;12378:13;12411:5;12404:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12333:91;:::o;25823:416::-;23139:13;:11;:13::i;:::-;-1:-1:-1;;;;;25909:27:0;::::1;25901:76;;;::::0;-1:-1:-1;;;25901:76:0;;3344:2:1;25901:76:0::1;::::0;::::1;3326:21:1::0;3383:2;3363:18;;;3356:30;3422:34;3402:18;;;3395:62;-1:-1:-1;;;3473:18:1;;;3466:34;3517:19;;25901:76:0::1;;;;;;;;;25992:12;::::0;26008:10:::1;-1:-1:-1::0;;;;;25992:12:0;;::::1;:26:::0;25988:98:::1;;26051:10;26065:5;26035:27:::0;;;:15:::1;:27;::::0;;;;:35;;-1:-1:-1;;26035:35:0::1;::::0;;25988:98:::1;26096:12;:28:::0;;-1:-1:-1;;;;;;26096:28:0::1;-1:-1:-1::0;;;;;26096:28:0;::::1;::::0;;::::1;::::0;;;-1:-1:-1;26135:30:0;;;:15:::1;:30;::::0;;;;;;:37;;-1:-1:-1;;26135:37:0::1;-1:-1:-1::0;26135:37:0::1;::::0;;26197:34;::::1;::::0;::::1;::::0;26096:28;;26197:34:::1;:::i;:::-;;;;;;;;25823:416:::0;:::o;14626:190::-;14699:4;3990:10;14755:31;3990:10;14771:7;14780:5;14755:8;:31::i;:::-;14804:4;14797:11;;;14626:190;;;;;:::o;26824:268::-;26921:4;3990:10;26979:38;26995:4;3990:10;27010:6;26979:15;:38::i;:::-;27028:34;27045:4;27051:2;27055:6;27028:16;:34::i;:::-;-1:-1:-1;27080:4:0;;26824:268;-1:-1:-1;;;;26824:268:0:o;28205:169::-;28275:10;28300:19;28275:10;28312:6;28300:5;:19::i;:::-;28341:20;;1449:25:1;;;28341:20:0;;1437:2:1;1422:18;28341:20:0;;;;;;;28245:129;28205:169;:::o;26247:157::-;23139:13;:11;:13::i;:::-;-1:-1:-1;;;;;26318:24:0;::::1;;::::0;;;:15:::1;:24;::::0;;;;;;:31;;-1:-1:-1;;26318:31:0::1;26345:4;26318:31;::::0;;26365;::::1;::::0;::::1;::::0;26334:7;;26365:31:::1;:::i;23928:103::-:0;23139:13;:11;:13::i;:::-;23993:30:::1;24020:1;23993:18;:30::i;:::-;23928:103::o:0;12543:95::-;12590:13;12623:7;12616:14;;;;;:::i;26616:200::-;26695:4;3990:10;26751:35;3990:10;26775:2;26779:6;26751:16;:35::i;14165:142::-;-1:-1:-1;;;;;14272:18:0;;;14245:7;14272:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;14165:142::o;26412:118::-;23139:13;:11;:13::i;:::-;-1:-1:-1;;;;;26490:24:0::1;26517:5;26490:24:::0;;;:15:::1;:24;::::0;;;;:32;;-1:-1:-1;;26490:32:0::1;::::0;;26412:118::o;24186:220::-;23139:13;:11;:13::i;:::-;-1:-1:-1;;;;;24271:22:0;::::1;24267:93;;24345:1;24317:31;;-1:-1:-1::0;;;24317:31:0::1;;;;;;;;:::i;24267:93::-;24370:28;24389:8;24370:18;:28::i;:::-;24186:220:::0;:::o;23418:166::-;23326:6;;-1:-1:-1;;;;;23326:6:0;3990:10;23478:23;23474:103;;3990:10;23525:40;;-1:-1:-1;;;23525:40:0;;;;;;;;:::i;19485:130::-;19570:37;19579:5;19586:7;19595:5;19602:4;19570:8;:37::i;:::-;19485:130;;;:::o;21217:486::-;21317:24;21344:25;21354:5;21361:7;21344:9;:25::i;:::-;21317:52;;-1:-1:-1;;21384:16:0;:36;21380:316;;;21460:5;21441:16;:24;21437:132;;;21520:7;21529:16;21547:5;21493:60;;-1:-1:-1;;;21493:60:0;;;;;;;;;;:::i;21437:132::-;21612:57;21621:5;21628:7;21656:5;21637:16;:24;21663:5;21612:8;:57::i;:::-;21306:397;21217:486;;;:::o;27160:1033::-;-1:-1:-1;;;;;27256:18:0;;27248:61;;;;-1:-1:-1;;;27248:61:0;;4099:2:1;27248:61:0;;;4081:21:1;4138:2;4118:18;;;4111:30;4177:32;4157:18;;;4150:60;4227:18;;27248:61:0;3897:354:1;27248:61:0;-1:-1:-1;;;;;27328:16:0;;27320:57;;;;-1:-1:-1;;;27320:57:0;;4458:2:1;27320:57:0;;;4440:21:1;4497:2;4477:18;;;4470:30;4536;4516:18;;;4509:58;4584:18;;27320:57:0;4256:352:1;27320:57:0;-1:-1:-1;;;;;27481:21:0;;;;;;:15;:21;;;;;;;;;:44;;-1:-1:-1;;;;;;27506:19:0;;;;;;:15;:19;;;;;;;;27481:44;27477:125;;;27542:27;27552:4;27558:2;27562:6;27542:9;:27::i;27477:125::-;27687:26;27733:5;27717:12;:6;27726:3;27717:12;:::i;:::-;27716:22;;;;:::i;:::-;27687:51;-1:-1:-1;27769:21:0;27810:5;27794:12;:6;27803:3;27794:12;:::i;:::-;27793:22;;;;:::i;:::-;27769:46;-1:-1:-1;27842:22:0;27769:46;27867:27;27876:18;27867:6;:27;:::i;:::-;:43;;;;:::i;:::-;27974:12;;27842:68;;-1:-1:-1;27958:49:0;;27968:4;;-1:-1:-1;;;;;27974:12:0;27988:18;27958:9;:49::i;:::-;28064:26;28070:4;28076:13;28064:5;:26::i;:::-;28154:35;28164:4;28170:2;28174:14;28154:9;:35::i;:::-;27237:956;;;27160:1033;;;:::o;18721:211::-;-1:-1:-1;;;;;18792:21:0;;18788:91;;18864:1;18837:30;;-1:-1:-1;;;18837:30:0;;;;;;;;:::i;18788:91::-;18889:35;18897:7;18914:1;18918:5;18889:7;:35::i;:::-;18721:211;;:::o;24566:191::-;24659:6;;;-1:-1:-1;;;;;24676:17:0;;;-1:-1:-1;;;;;;24676:17:0;;;;;;;24709:40;;24659:6;;;24676:17;24659:6;;24709:40;;24640:16;;24709:40;24629:128;24566:191;:::o;20482:443::-;-1:-1:-1;;;;;20595:19:0;;20591:91;;20667:1;20638:32;;-1:-1:-1;;;20638:32:0;;;;;;;;:::i;20591:91::-;-1:-1:-1;;;;;20696:21:0;;20692:92;;20769:1;20741:31;;-1:-1:-1;;;20741:31:0;;;;;;;;:::i;20692:92::-;-1:-1:-1;;;;;20794:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;20840:78;;;;20891:7;-1:-1:-1;;;;;20875:31:0;20884:5;-1:-1:-1;;;;;20875:31:0;;20900:5;20875:31;;;;1449:25:1;;1437:2;1422:18;;1303:177;20875:31:0;;;;;;;;20482:443;;;;:::o;16060:308::-;-1:-1:-1;;;;;16144:18:0;;16140:88;;16213:1;16186:30;;-1:-1:-1;;;16186:30:0;;;;;;;;:::i;16140:88::-;-1:-1:-1;;;;;16242:16:0;;16238:88;;16311:1;16282:32;;-1:-1:-1;;;16282:32:0;;;;;;;;:::i;16238:88::-;16336:24;16344:4;16350:2;16354:5;16692:1135;-1:-1:-1;;;;;16782:18:0;;16778:552;;16936:5;16920:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;16778:552:0;;-1:-1:-1;16778:552:0;;-1:-1:-1;;;;;16996:15:0;;16974:19;16996:15;;;;;;;;;;;17030:19;;;17026:117;;;17102:4;17108:11;17121:5;17077:50;;-1:-1:-1;;;17077:50:0;;;;;;;;;;:::i;17026:117::-;-1:-1:-1;;;;;17266:15:0;;:9;:15;;;;;;;;;;17284:19;;;;17266:37;;16778:552;-1:-1:-1;;;;;17346:16:0;;17342:435;;17512:12;:21;;;;;;;17342:435;;;-1:-1:-1;;;;;17728:13:0;;:9;:13;;;;;;;;;;:22;;;;;;17342:435;17809:2;-1:-1:-1;;;;;17794:25:0;17803:4;-1:-1:-1;;;;;17794:25:0;;17813:5;17794:25;;;;1449::1;;1437:2;1422:18;;1303:177;17794:25:0;;;;;;;;16692:1135;;;:::o;14:418:1:-;163:2;152:9;145:21;126:4;195:6;189:13;238:6;233:2;222:9;218:18;211:34;297:6;292:2;284:6;280:15;275:2;264:9;260:18;254:50;353:1;348:2;339:6;328:9;324:22;320:31;313:42;423:2;416;412:7;407:2;399:6;395:15;391:29;380:9;376:45;372:54;364:62;;;14:418;;;;:::o;437:173::-;505:20;;-1:-1:-1;;;;;554:31:1;;544:42;;534:70;;600:1;597;590:12;534:70;437:173;;;:::o;615:186::-;674:6;727:2;715:9;706:7;702:23;698:32;695:52;;;743:1;740;733:12;695:52;766:29;785:9;766:29;:::i;:::-;756:39;615:186;-1:-1:-1;;;615:186:1:o;806:300::-;874:6;882;935:2;923:9;914:7;910:23;906:32;903:52;;;951:1;948;941:12;903:52;974:29;993:9;974:29;:::i;:::-;964:39;1072:2;1057:18;;;;1044:32;;-1:-1:-1;;;806:300:1:o;1485:374::-;1562:6;1570;1578;1631:2;1619:9;1610:7;1606:23;1602:32;1599:52;;;1647:1;1644;1637:12;1599:52;1670:29;1689:9;1670:29;:::i;:::-;1660:39;;1718:38;1752:2;1741:9;1737:18;1718:38;:::i;:::-;1485:374;;1708:48;;-1:-1:-1;;;1825:2:1;1810:18;;;;1797:32;;1485:374::o;2053:226::-;2112:6;2165:2;2153:9;2144:7;2140:23;2136:32;2133:52;;;2181:1;2178;2171:12;2133:52;-1:-1:-1;2226:23:1;;2053:226;-1:-1:-1;2053:226:1:o;2284:203::-;-1:-1:-1;;;;;2448:32:1;;;;2430:51;;2418:2;2403:18;;2284:203::o;2492:260::-;2560:6;2568;2621:2;2609:9;2600:7;2596:23;2592:32;2589:52;;;2637:1;2634;2627:12;2589:52;2660:29;2679:9;2660:29;:::i;:::-;2650:39;;2708:38;2742:2;2731:9;2727:18;2708:38;:::i;:::-;2698:48;;2492:260;;;;;:::o;2757:380::-;2836:1;2832:12;;;;2879;;;2900:61;;2954:4;2946:6;2942:17;2932:27;;2900:61;3007:2;2999:6;2996:14;2976:18;2973:38;2970:161;;3053:10;3048:3;3044:20;3041:1;3034:31;3088:4;3085:1;3078:15;3116:4;3113:1;3106:15;2970:161;;2757:380;;;:::o;3547:345::-;-1:-1:-1;;;;;3767:32:1;;;;3749:51;;3831:2;3816:18;;3809:34;;;;3874:2;3859:18;;3852:34;3737:2;3722:18;;3547:345::o;4613:127::-;4674:10;4669:3;4665:20;4662:1;4655:31;4705:4;4702:1;4695:15;4729:4;4726:1;4719:15;4745:168;4818:9;;;4849;;4866:15;;;4860:22;;4846:37;4836:71;;4887:18;;:::i;4918:217::-;4958:1;4984;4974:132;;5028:10;5023:3;5019:20;5016:1;5009:31;5063:4;5060:1;5053:15;5091:4;5088:1;5081:15;4974:132;-1:-1:-1;5120:9:1;;4918:217::o;5140:128::-;5207:9;;;5228:11;;;5225:37;;;5242:18;;:::i;5273:125::-;5338:9;;;5359:10;;;5356:36;;;5372:18;;:::i

Swarm Source

ipfs://f46c60b864880caeb6e69531f4447da45604f78de36ede716cc638772693e60e

Block Transaction Gas Used Reward
view all blocks ##produced##

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.