WMANTLE

Mantle ERC-20 Token

0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8

Solidity v0.8.18+commit.87f61d96

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: 0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8
示例提示词: "Tell me the current state of mantle/0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8"
还没有接入 AI?→ mcp.smarts.md
Mantle 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
6
写入函数
7
事件
4

读取函数

allowance(owner: address, spender: address) view

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

开发者: See {IERC20-allowance}.

参数

名称 类型 描述
owner address Address that granted the allowance.✨ AI
spender address Address allowed to transfer tokens on behalf of the owner.✨ AI

返回值

名称 类型 描述
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

开发者: See {IERC20-balanceOf}.

参数

名称 类型 描述
account address Address whose token balance will be returned.✨ AI

返回值

名称 类型 描述
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

开发者: 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}.

返回值

名称 类型 描述
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

开发者: Returns the name of the token.

返回值

名称 类型 描述
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

开发者: Returns the symbol of the token, usually a shorter version of the name.

返回值

名称 类型 描述
string The token symbol string (ERC-20 shorthand, e.g., "WMANTLE").✨ AI
totalSupply() view

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

开发者: See {IERC20-totalSupply}.

返回值

名称 类型 描述
uint256 Total token supply as a uint256 denominated in the token's smallest unit (base unit).✨ AI

写入函数

approve(spender: address, amount: uint256) nonpayable

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

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

参数

名称 类型 描述
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

返回值

名称 类型 描述
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

开发者: 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`.

参数

名称 类型 描述
spender address Address whose allowance will be decreased.✨ AI
subtractedValue uint256 Amount to subtract from the caller's allowance for the spender.✨ AI

返回值

名称 类型 描述
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

开发者: 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

开发者: 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.

参数

名称 类型 描述
spender address Address allowed to spend the caller's tokens.✨ AI
addedValue uint256 Amount to add to the existing allowance.✨ AI

返回值

名称 类型 描述
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

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

参数

名称 类型 描述
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

返回值

名称 类型 描述
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

开发者: 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`.

参数

名称 类型 描述
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

返回值

名称 类型 描述
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

开发者: withdraw mantle based on requested amount and user balance.

参数

名称 类型 描述
_amount uint256 Amount of WMANTLE to withdraw, denominated in the token's smallest unit.✨ AI

事件

Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address
spender address
value uint256
Deposit(dst: address, wad: uint256)
名称 类型 已索引 描述
dst address
wad uint256
Transfer(from: address, to: address, value: uint256)
名称 类型 已索引 描述
from address
to address
value uint256
Withdrawal(src: address, wad: uint256)
名称 类型 已索引 描述
src address
wad uint256