TokenERC20
0xfc0dda7df2d57321db308ba7c751e9606d4fc71c
Verification
Verified
v0.8.26+commit.8a97fa7a
Type
Contract
1,887 bytes
ABI entries
13
6 read · 4 write
License
none
Contract information
- Address
- 0xfc0dda7df2d57321db308ba7c751e9606d4fc71c
- Chain
- Robinhood Chain (4663)
- Compiler
- v0.8.26+commit.8a97fa7a
- Optimization
- Enabled
- Creator
- 0x361B39e234…cA925b0579
- Creation tx
- 0xc63a10c938…bf4e4589aa
Token
- Name
- Pickle
- Symbol
- PICKLE
- Decimals
- 18
- Holders
- 41,537
- Market
- View token page →
Read contract (6)
allowance(address, address) → uint256
balanceOf(address) → uint256
decimals() → uint8
name() → string
symbol() → string
totalSupply() → uint256
Events (2)
ApprovalTransfer
ABI
[
{
"inputs": [
{
"internalType": "string",
"name": "name_",
"type": "string"
},
{
"internalType": "string",
"name": "symbol_",
"type": "string"
},
{
"internalType": "uint8",
"name": "decimals_",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "supply_",
"type": "uint256"
}
],
"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": "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": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"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": "",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"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": "value",
"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": "value",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]Source code
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;
/// @title Standard ERC-20 token with a fixed supply.
/// @notice No owner. No minting. No pausing. No hidden fees.
/// The entire supply goes to the deployer at creation.
/// Any holder can burn their own tokens.
/// @dev Part of the OMNIA toolkit (deploy + airdrop).
contract TokenERC20 {
// ------------------------------------------------------------------
// Metadata
// ------------------------------------------------------------------
string public name;
string public symbol;
uint8 public immutable decimals;
// ------------------------------------------------------------------
// Supply
// ------------------------------------------------------------------
uint256 public totalSupply;
// ------------------------------------------------------------------
// Balances & allowances
// ------------------------------------------------------------------
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
// ------------------------------------------------------------------
// Events
// ------------------------------------------------------------------
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
/// @param name_ Token name, e.g. "My Token"
/// @param symbol_ Ticker, e.g. "MTK"
/// @param decimals_ Display decimals, 0-18 (normally 18)
/// @param supply_ Total supply in base units, already scaled by decimals
constructor(
string memory name_,
string memory symbol_,
uint8 decimals_,
uint256 supply_
) {
require(supply_ != 0, "zero supply");
require(decimals_ <= 18, "decimals > 18");
name = name_;
symbol = symbol_;
decimals = decimals_;
totalSupply = supply_;
balanceOf[msg.sender] = supply_;
emit Transfer(address(0), msg.sender, supply_);
}
// ------------------------------------------------------------------
// ERC-20 core
// ------------------------------------------------------------------
function transfer(address to, uint256 value) external returns (bool) {
_move(msg.sender, to, value);
return true;
}
function approve(address spender, uint256 value) external returns (bool) {
require(spender != address(0), "approve to zero address");
allowance[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool) {
uint256 current = allowance[from][msg.sender];
require(current >= value, "allowance too low");
if (current != type(uint256).max) {
unchecked {
allowance[from][msg.sender] = current - value;
}
}
_move(from, to, value);
return true;
}
// ------------------------------------------------------------------
// Burn (any holder can reduce total supply)
// ------------------------------------------------------------------
function burn(uint256 value) external {
uint256 held = balanceOf[msg.sender];
require(held >= value, "burn exceeds balance");
unchecked {
balanceOf[msg.sender] = held - value;
totalSupply -= value;
}
emit Transfer(msg.sender, address(0), value);
}
// ------------------------------------------------------------------
// Internal
// ------------------------------------------------------------------
function _move(address from, address to, uint256 value) internal {
require(to != address(0), "transfer to zero address");
uint256 held = balanceOf[from];
require(held >= value, "balance too low");
unchecked {
balanceOf[from] = held - value;
balanceOf[to] += value;
}
emit Transfer(from, to, value);
}
}
Chain explorer5500msChain node82ms