FREEDOM

BNB Smart Chain ERC-20 Token 浏览链

0x9c118268a9bf6328b62ebf7d2be035fbc01d4444

Solidity v0.8.20+commit.a1b79de6

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: 0x9c118268a9bf6328b62ebf7d2be035fbc01d4444
示例提示词: "Tell me the current state of bnb/0x9c118268a9bf6328b62ebf7d2be035fbc01d4444"
还没有接入 AI?→ mcp.smarts.md · 浏览链

管理与风险

谁能修改规则?

Block #108,655,041

Detected ownable controls from the verified ABI.

Ownable

当前控制

Owner
0x0000000000000000000000000000000000000000 (无)

概览

读取函数
11
写入函数
9
事件
3

读取函数

Block #108,655,041 · just now
MODE_NORMAL() view → 0

Returns the numeric code representing the token's normal operation mode.✨ AI

返回值

名称 类型 描述
uint256 uint256 code identifying the contract's normal operation mode.✨ AI
MODE_TRANSFER_CONTROLLED() view → 2

Get the numeric identifier for the MODE_TRANSFER_CONTROLLED transfer mode.✨ AI

返回值

名称 类型 描述
uint256 uint256 numeric identifier for the MODE_TRANSFER_CONTROLLED mode.✨ AI
MODE_TRANSFER_RESTRICTED() view → 1

Returns the numeric code representing the transfer-restricted mode.✨ AI

返回值

名称 类型 描述
uint256 A uint256 constant identifying the transfer-restricted mode (mode flag value).✨ AI
_mode() view → 0

Return the token's current operational mode as an unsigned integer.✨ AI

返回值

名称 类型 描述
uint256 uint256 representing the contract's current mode or state identifier.✨ AI
allowance(owner: address, spender: address) view

Return the remaining number of tokens that spender is allowed to transfer from owner.✨ AI

开发者: See {IERC20-allowance}.

参数

名称 类型 描述
owner address Token holder address.✨ AI
spender address Address approved to spend tokens on owner's behalf.✨ AI

返回值

名称 类型 描述
uint256 The remaining allowance as a uint256 (number of token units).✨ AI
balanceOf(account: address) view

Returns the token balance of the specified account.✨ AI

开发者: See {IERC20-balanceOf}.

参数

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

返回值

名称 类型 描述
uint256 The account's token balance as an unsigned 256-bit integer.✨ AI
decimals() view → 18

Return the number of decimal places the token uses for user balances.✨ 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 default value returned by this function, unless it's 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 number of decimal places (uint8) the token uses to format balances; commonly 18 for ERC-20 tokens.✨ AI
name() view → FREEDOM

Returns the token's user-facing name.✨ AI

开发者: Returns the name of the token.

返回值

名称 类型 描述
string The token name as a human-readable string, for example MyToken.✨ AI
owner() view → 0x0000000000000000000000000000000000000000

Returns the address of the token contract owner.✨ AI

开发者: Returns the address of the current owner.

返回值

名称 类型 描述
address The Ethereum address that holds ownership privileges for this contract.✨ AI
symbol() view → FREEDOM

Returns the token's symbol.✨ AI

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

返回值

名称 类型 描述
string The token symbol as a string (for example: ETH).✨ AI
totalSupply() view → 1,000,000,000 FREEDOM

Returns the total number of tokens in existence.✨ AI

开发者: See {IERC20-totalSupply}.

返回值

名称 类型 描述
uint256 Total token supply as a uint256 measured in the token's smallest unit (includes all minted tokens).✨ AI

写入函数

approve(spender: address, amount: uint256) nonpayable

Allows spender to transfer up to amount tokens from the caller's account.✨ AI

开发者: See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address.

参数

名称 类型 描述
spender address Address authorized to spend tokens on behalf of the caller.✨ AI
amount uint256 Maximum number of tokens the spender is allowed to transfer.✨ AI

返回值

名称 类型 描述
bool True if the approval was successful, otherwise false.✨ AI
decreaseAllowance(spender: address, subtractedValue: uint256) nonpayable

Decrease the caller's 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 authorized to spend the caller's tokens.✨ AI
subtractedValue uint256 Amount to subtract from the current allowance.✨ AI

返回值

名称 类型 描述
bool True if the allowance was decreased successfully, false otherwise.✨ AI
increaseAllowance(spender: address, addedValue: uint256) nonpayable

Increases the caller's ERC-20 allowance for spender by addedValue and emits an Approval event.✨ 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 approved to spend tokens on behalf of the caller.✨ AI
addedValue uint256 Amount of tokens to add to the current allowance (in token smallest units).✨ AI

返回值

名称 类型 描述
bool True if the allowance was successfully increased.✨ AI
init(name: string, symbol: string, totalSupply: uint256) nonpayable

Initializes the token by setting its name, symbol, and total supply.✨ AI

开发者: Mints totalSupply to the caller and should be called only once during contract initialization.✨ AI

参数

名称 类型 描述
name string Human-readable token name.✨ AI
symbol string Token ticker symbol (short).✨ AI
totalSupply uint256 Initial total supply in smallest indivisible units (uint256).✨ AI
renounceOwnership() nonpayable

Permanently renounce ownership, leaving the contract without an owner.✨ AI

开发者: Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.
setMode(v: uint256) nonpayable

Set the token's operating mode to the given numeric value.✨ AI

参数

名称 类型 描述
v uint256 Numeric identifier for the new operating mode; contract defines mode behavior.✨ AI
transfer(to: address, amount: uint256) nonpayable

Transfers a specified amount of tokens from the caller to the recipient address.✨ AI

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

参数

名称 类型 描述
to address Recipient address.✨ AI
amount uint256 Amount of tokens to transfer (in the token's smallest unit).✨ AI

返回值

名称 类型 描述
bool True if the transfer succeeds.✨ AI
transferFrom(from: address, to: address, amount: uint256) nonpayable

Transfer tokens from one account to another using an approved 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}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`.

参数

名称 类型 描述
from address Account to debit tokens from.✨ AI
to address Account to credit tokens to.✨ AI
amount uint256 Number of tokens to transfer, in the token's smallest unit.✨ AI

返回值

名称 类型 描述
bool True if the transfer succeeded.✨ AI
transferOwnership(newOwner: address) nonpayable

Transfer contract ownership to a new owner address.✨ AI

开发者: Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.

参数

名称 类型 描述
newOwner address Address that will be set as the new contract owner.✨ AI

事件

Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address
spender address
value uint256
OwnershipTransferred(previousOwner: address, newOwner: address)
名称 类型 已索引 描述
previousOwner address
newOwner address
Transfer(from: address, to: address, value: uint256)
名称 类型 已索引 描述
from address
to address
value uint256