WBERA

Berachain ERC-20 Token Browse chains

0x6969696969696969696969696969696969696969

Solidity v0.8.26+commit.8a97fa7a

Fungible token following the ERC-20 standard.

🤖
Query this contract from your AI
Reference: 0x6969696969696969696969696969696969696969
Sample prompt: "Tell me the current state of berachain/0x6969696969696969696969696969696969696969"
No AI wired up yet? → mcp.smarts.md · Browse chains
Berachain is a docs-only chain on Smarts: source code and ABI are indexed, but live on-chain data (state, recent events, admin profile) is not currently available. AI agents can still query get_contract_info and get_contract_source via MCP.

Overview

Read Functions
8
Write Functions
6
Events
2

Read Functions

DOMAIN_SEPARATOR() view

Return the EIP-712 domain separator used to build and verify typed-data signatures.✨ AI

dev: Returns the EIP-712 domain separator for the EIP-2612 permit.

Returns

Name Type Description
result bytes32 result: bytes32 EIP-712 domain separator used for signing and verifying typed-data (encodes name, version, chainId, verifying contract).✨ AI
allowance(owner: address, spender: address) view

Returns the remaining number of tokens that spender is allowed to spend on behalf of owner.✨ AI

dev: Returns the amount of tokens that `spender` can spend on behalf of `owner`.

Parameters

Name Type Description
owner address Address that owns the tokens.✨ AI
spender address Address allowed to spend the owner's tokens.✨ AI

Returns

Name Type Description
result uint256 Remaining allowance (uint256) that spender may transfer from owner, denominated in the token's smallest units.✨ AI
balanceOf(owner: address) view

Return the WBERA token balance for the specified account.✨ AI

dev: Returns the amount of tokens owned by `owner`.

Parameters

Name Type Description
owner address Address whose WBERA token balance will be returned.✨ AI

Returns

Name Type Description
result uint256 The owner's WBERA token balance as a uint256.✨ AI
decimals() view

Returns the token's number of decimal places used for display and calculations.✨ AI

dev: Returns the decimals places of the token.

Returns

Name Type Description
uint8 The token's decimals as a uint8 indicating how many decimal places balances use.✨ AI
name() pure

Returns the ERC-20 token's name.✨ AI

dev: Returns the name of the token.

Returns

Name Type Description
string The token name as a human-readable string.✨ AI
nonces(owner: address) view

Returns the current permit nonce for an address, used to prevent replay of signed approvals.✨ AI

dev: Returns the current nonce for `owner`. This value is used to compute the signature for EIP-2612 permit.

Parameters

Name Type Description
owner address Owner address whose permit nonce is returned.✨ AI

Returns

Name Type Description
result uint256 The current nonce value for the owner, incremented after each successful permit to prevent replay.✨ AI
symbol() pure

Returns the token's symbol.✨ AI

dev: Returns the symbol of the token.

Returns

Name Type Description
string ERC-20 token symbol, e.g. 'WBERA'.✨ AI
totalSupply() view

Returns the total supply of WBERA tokens.✨ AI

dev: Returns the amount of tokens in existence.

Returns

Name Type Description
result uint256 Total number of WBERA tokens in existence as a uint256.✨ AI

Write Functions

approve(spender: address, amount: uint256) nonpayable

Set the allowance for a spender to transfer up to a specified amount of your tokens.✨ AI

dev: Sets `amount` as the allowance of `spender` over the caller's tokens. Emits a {Approval} event.

Parameters

Name Type Description
spender address Address allowed to spend tokens on the caller's behalf.✨ AI
amount uint256 Maximum number of tokens the spender is allowed to transfer.✨ AI

Returns

Name Type Description
bool True if the approval was successful.✨ AI
deposit() payable

Wraps sent native currency into WBERA tokens and credits them to the caller.✨ AI

dev: Deposits `amount` ETH of the caller and mints `amount` WETH to the caller.
permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Allows an owner to approve a spender using an off-chain signature (EIP-2612 style) before the deadline.✨ AI

dev: Sets `value` as the allowance of `spender` over the tokens of `owner`, authorized by a signed approval by `owner`. Emits a {Approval} event.

Parameters

Name Type Description
owner address Owner address granting the allowance.✨ AI
spender address Spender address receiving the allowance.✨ AI
value uint256 Amount of tokens to approve (smallest token units).✨ AI
deadline uint256 Unix timestamp after which the signature is invalid.✨ AI
v uint8 Recovery id component of the ECDSA signature.✨ AI
r bytes32 First 32 bytes of the ECDSA signature.✨ AI
s bytes32 Second 32 bytes of the ECDSA signature.✨ AI
transfer(to: address, amount: uint256) nonpayable

Transfer a specified amount of tokens from the caller to the given recipient.✨ AI

dev: Transfer `amount` tokens from the caller to `to`. Requirements: - `from` must at least have `amount`. Emits a {Transfer} event.

Parameters

Name Type Description
to address Recipient address that will receive the tokens.✨ AI
amount uint256 Number of tokens to transfer, expressed in the token's smallest unit.✨ AI

Returns

Name Type Description
bool True if the transfer succeeded and balances were updated; false otherwise.✨ AI
transferFrom(from: address, to: address, amount: uint256) nonpayable

Transfer tokens from a specified account to another using the caller's approved allowance.✨ AI

dev: Transfers `amount` tokens from `from` to `to`. Note: Does not update the allowance if it is the maximum uint256 value. Requirements: - `from` must at least have `amount`. - The caller must have at least `amount` of allowance to transfer the tokens of `from`. Emits a {Transfer} event.

Parameters

Name Type Description
from address Source address to debit tokens from.✨ AI
to address Destination address to credit tokens to.✨ AI
amount uint256 Amount of tokens to transfer, expressed in the token's smallest units.✨ AI

Returns

Name Type Description
bool True if the transfer succeeded.✨ AI
withdraw(amount: uint256) nonpayable

Withdraws the specified amount of WBERA tokens and returns the underlying asset to the caller.✨ AI

dev: Burns `amount` WETH of the caller and sends `amount` ETH to the caller.

Parameters

Name Type Description
amount uint256 Amount of WBERA tokens to burn and redeem for the underlying asset, expressed in token units.✨ AI

Events

Approval(owner: address, spender: address, amount: uint256)
Name Type Indexed Description
owner address
spender address
amount uint256
Transfer(from: address, to: address, amount: uint256)
Name Type Indexed Description
from address
to address
amount uint256