Wrapped EGAZcontract VerifiedERC-20
0x232fb2B87CAce92B2438054A7eB79B4081E3E11a
EGAZ balance
143257.438144 EGAZ
ETX balance
0 ETX
ETI balance
0 ETI
EGAZ balance (wrapped ERC-20)
0 EGAZ
Type
Contract
Code size
2492 bytes
Verified
WEGAZ
Compiled with solc 0.8.26+commit.8a97fa7a · optimizer on (1,000,000 runs) · evm paris
bytecode match
exact
Source code · 1 file
src/swap/WEGAZ.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.26;
/// @title Wrapped EGAZ
/// @notice ERC20 wrapper over the native EGAZ gas token — equivalent to WETH9.
/// Deposit EGAZ to mint WEGAZ 1:1; burn WEGAZ to withdraw EGAZ.
contract WEGAZ {
string public constant name = "Wrapped EGAZ";
string public constant symbol = "WEGAZ";
uint8 public constant decimals = 18;
event Approval(address indexed src, address indexed guy, uint256 wad);
event Transfer(address indexed src, address indexed dst, uint256 wad);
event Deposit(address indexed dst, uint256 wad);
event Withdrawal(address indexed src, uint256 wad);
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
receive() external payable {
deposit();
}
function deposit() public payable {
balanceOf[msg.sender] += msg.value;
emit Deposit(msg.sender, msg.value);
}
function withdraw(uint256 wad) external {
require(balanceOf[msg.sender] >= wad, "WEGAZ: INSUFFICIENT_BALANCE");
balanceOf[msg.sender] -= wad;
(bool ok,) = msg.sender.call{value: wad}("");
require(ok, "WEGAZ: EGAZ_TRANSFER_FAILED");
emit Withdrawal(msg.sender, wad);
}
function totalSupply() external view returns (uint256) {
return address(this).balance;
}
function approve(address guy, uint256 wad) external returns (bool) {
allowance[msg.sender][guy] = wad;
emit Approval(msg.sender, guy, wad);
return true;
}
function transfer(address dst, uint256 wad) external returns (bool) {
return transferFrom(msg.sender, dst, wad);
}
function transferFrom(address src, address dst, uint256 wad) public returns (bool) {
require(balanceOf[src] >= wad, "WEGAZ: INSUFFICIENT_BALANCE");
if (src != msg.sender && allowance[src][msg.sender] != type(uint256).max) {
require(allowance[src][msg.sender] >= wad, "WEGAZ: INSUFFICIENT_ALLOWANCE");
allowance[src][msg.sender] -= wad;
}
balanceOf[src] -= wad;
balanceOf[dst] += wad;
emit Transfer(src, dst, wad);
return true;
}
}
Contract ABI · 16 entries
[
{
"type": "receive",
"stateMutability": "payable"
},
{
"type": "function",
"name": "allowance",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "approve",
"inputs": [
{
"name": "guy",
"type": "address",
"internalType": "address"
},
{
"name": "wad",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "balanceOf",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "decimals",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint8",
"internalType": "uint8"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "deposit",
"inputs": [],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "name",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "symbol",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "totalSupply",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "transfer",
"inputs": [
{
"name": "dst",
"type": "address",
"internalType": "address"
},
{
"name": "wad",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferFrom",
"inputs": [
{
"name": "src",
"type": "address",
"internalType": "address"
},
{
"name": "dst",
"type": "address",
"internalType": "address"
},
{
"name": "wad",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "withdraw",
"inputs": [
{
"name": "wad",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Approval",
"inputs": [
{
"name": "src",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "guy",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "wad",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Deposit",
"inputs": [
{
"name": "dst",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "wad",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Transfer",
"inputs": [
{
"name": "src",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "dst",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "wad",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Withdrawal",
"inputs": [
{
"name": "src",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "wad",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
}
]Verified 2026-04-22 against on-chain runtime bytecode. Cross-verify manifest on GitHub ↗
Contract
allowance(address, address)
→ uint256balanceOf(address)
→ uint256decimals()
No arguments.
→ uint8name()
No arguments.
→ stringsymbol()
No arguments.
→ stringtotalSupply()
No arguments.
→ uint256
Calls go directly to the configured RPC (Etica Mainnet). Writes require a connected wallet on Etica Mainnet (chain ID 61803).
Recent transactions
last 200 blocksNo transactions involving this address in the last 200 blocks. Older activity lives in the public tx-log indexer and can be pulled from the on-chain archive.
Token transfers
recentNo ERC-20 Transfer events involving this address in the indexed window.