WMANTLE
Mantle ERC-20 Token0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8
Solidity v0.8.18+commit.87f61d96
Fungible token following the ERC-20 standard.
概览
读取函数
Returns the remaining token allowance that owner has granted to spender.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Returns the token balance for the given account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Returns the number of decimal places used by the token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | The token's decimals as a uint8 (the number of decimal places for token amounts).✨ AI |
Returns the token's name as a human-readable string.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token name as a string (human-readable).✨ AI |
Returns the token's short symbol used by wallets and user interfaces.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token symbol string (ERC-20 shorthand, e.g., "WMANTLE").✨ AI |
Returns the total number of WMANTLE tokens in existence.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Total token supply as a uint256 denominated in the token's smallest unit (base unit).✨ AI |
写入函数
Approve a spender to transfer up to a specified amount of your WMANTLE tokens.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Decrease the caller's token allowance for a spender by a specified amount.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Deposits ETH and mints WMANTLE tokens to your account at the current exchange rate.✨ AI
Increase the caller's ERC-20 allowance for a spender by the given amount.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 tokens from the caller's account to the specified recipient address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Transfers tokens from sender to recipient using the caller's allowance.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Burn the specified amount of WMANTLE and release the corresponding underlying Mantle to the caller.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _amount | uint256 | Amount of WMANTLE to withdraw, denominated in the token's smallest unit.✨ AI |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| dst | address | ✓ | |
| wad | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| src | address | ✓ | |
| wad | uint256 |