WMANTLE

Mantle ERC-20 Token Browse chains

0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8

Solidity v0.8.18+commit.87f61d96

Fungible token following the ERC-20 standard.

🤖
Query this contract from your AI
Reference: 0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8
Sample prompt: "Tell me the current state of mantle/0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8"
No AI wired up yet? → mcp.smarts.md · Browse chains
Mantle 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
6
Write Functions
7
Events
4

Read Functions

allowance(owner: address, spender: address) view

Returns the remaining token allowance that owner has granted to spender.✨ AI

dev: See {IERC20-allowance}.

Parameters

Name Type Description
owner address Address that granted the allowance.✨ AI
spender address Address allowed to transfer tokens on behalf of the owner.✨ AI

Returns

Name Type Description
uint256 Remaining allowance as a uint256: the number of tokens spender may still transfer from owner.✨ AI
balanceOf(account: address) view

Returns the token balance for the given account.✨ AI

dev: See {IERC20-balanceOf}.

Parameters

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

Returns

Name Type Description
uint256 The account's token balance as a uint256 in the token's smallest unit.✨ AI
decimals() view

Returns the number of decimal places used by the token.✨ AI

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}.

Returns

Name Type Description
uint8 The token's decimals as a uint8 (the number of decimal places for token amounts).✨ AI
name() view

Returns the token's name as a human-readable string.✨ AI

dev: Returns the name of the token.

Returns

Name Type Description
string The token name as a string (human-readable).✨ AI
symbol() view

Returns the token's short symbol used by wallets and user interfaces.✨ AI

dev: Returns the symbol of the token, usually a shorter version of the name.

Returns

Name Type Description
string The token symbol string (ERC-20 shorthand, e.g., "WMANTLE").✨ AI
totalSupply() view

Returns the total number of WMANTLE tokens in existence.✨ AI

dev: See {IERC20-totalSupply}.

Returns

Name Type Description
uint256 Total token supply as a uint256 denominated in the token's smallest unit (base unit).✨ AI

Write Functions

approve(spender: address, amount: uint256) nonpayable

Approve a spender to transfer up to a specified amount of your WMANTLE tokens.✨ AI

dev: See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.

Parameters

Name Type Description
spender address Address approved 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 succeeded and the allowance was updated.✨ AI
decreaseAllowance(spender: address, subtractedValue: uint256) nonpayable

Decrease the caller's token allowance for a spender by a specified amount.✨ AI

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`.

Parameters

Name Type Description
spender address Address whose allowance will be decreased.✨ AI
subtractedValue uint256 Amount to subtract from the caller's allowance for the spender.✨ AI

Returns

Name Type Description
bool True if the allowance was successfully decreased.✨ AI
deposit() payable

Deposits ETH and mints WMANTLE tokens to your account at the current exchange rate.✨ AI

dev: mint tokens for sender based on amount of mantle sent.
increaseAllowance(spender: address, addedValue: uint256) nonpayable

Increase the caller's ERC-20 allowance for a spender by the given amount.✨ AI

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.

Parameters

Name Type Description
spender address Address allowed to spend the caller's tokens.✨ AI
addedValue uint256 Amount to add to the existing allowance.✨ AI

Returns

Name Type Description
bool True if the allowance was successfully increased.✨ AI
transfer(recipient: address, amount: uint256) nonpayable

Transfer tokens from the caller's account to the specified recipient address.✨ AI

dev: See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.

Parameters

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

Returns

Name Type Description
bool True if the transfer completed successfully.✨ AI
transferFrom(sender: address, recipient: address, amount: uint256) nonpayable

Transfers tokens from sender to recipient using the caller's allowance.✨ AI

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}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`.

Parameters

Name Type Description
sender address Address whose balance will be decreased.✨ AI
recipient address Address whose balance will be increased.✨ AI
amount uint256 Amount of tokens to transfer, expressed in the token's smallest unit.✨ AI

Returns

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

Burn the specified amount of WMANTLE and release the corresponding underlying Mantle to the caller.✨ AI

dev: withdraw mantle based on requested amount and user balance.

Parameters

Name Type Description
_amount uint256 Amount of WMANTLE to withdraw, denominated in the token's smallest unit.✨ AI

Events

Approval(owner: address, spender: address, value: uint256)
Name Type Indexed Description
owner address
spender address
value uint256
Deposit(dst: address, wad: uint256)
Name Type Indexed Description
dst address
wad uint256
Transfer(from: address, to: address, value: uint256)
Name Type Indexed Description
from address
to address
value uint256
Withdrawal(src: address, wad: uint256)
Name Type Indexed Description
src address
wad uint256