AERO

Base ERC-20 Token

0x940181a94a35a4569e4529a3cdfb74e38fd98631

Solidity v0.8.19+commit.7dd6d404

Fungible token following the ERC-20 standard.

🤖
透過你的 AI 查詢此合約
參考: aero-base 0x940181a94a35a4569e4529a3cdfb74e38fd98631
範例提示詞: "Tell me the current state of aero-base"
還沒有接入 AI?→ mcp.smarts.md

管理與風險

誰能修改規則?

Detected mintable controls from the verified ABI.

Mintable

概覽

讀取函式
10
寫入函式
8
事件
3

讀取函式

Block #46,493,016 · just now
DOMAIN_SEPARATOR() view → 0x853ee41882d37496b330318f7075c95307704538c45e32745f9e8135cb142283

Returns the EIP-712 domain separator used to sign and verify typed structured data for this token.✨ AI

回傳值

名稱 類型 描述
bytes32 The 32-byte EIP-712 domain separator used for typed data hashing and signature verification.✨ AI
allowance(owner: address, spender: address) view

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

開發者: Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called.

參數

名稱 類型 描述
owner address Token holder address whose allowance is being queried.✨ AI
spender address Address approved to spend tokens on behalf of the owner.✨ AI

回傳值

名稱 類型 描述
uint256 Remaining allowance (uint256) in token smallest units that spender may transfer from owner.✨ AI
balanceOf(account: address) view

Return the token balance of the given account.✨ AI

開發者: Returns the amount of tokens owned by `account`.

參數

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

回傳值

名稱 類型 描述
uint256 Token balance of the account as a uint256.✨ AI
decimals() view → 18

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

開發者: Returns the decimals places of the token.

回傳值

名稱 類型 描述
uint8 The token's decimal precision as a uint8 (number of decimal places).✨ AI
eip712Domain() view → 0x0f, Aerodrome, 1, 8,453, 0x940181a94a35a4569e4529a3cdfb74e38fd98631, 0x0000000000000000000000000000000000000000000000000000000000000000, []

Return the EIP-712 domain parameters used for signing typed data.✨ AI

開發者: returns the fields and values that describe the domain separator used by this contract for EIP-712 signature.

回傳值

名稱 類型 描述
fields bytes1 Domain fields bitmap (bytes1) indicating which optional EIP-712 domain fields are present.✨ AI
name string Domain name (string) used for EIP-712 signing, typically the token's name.✨ AI
version string Domain version string used for EIP-712 signing to indicate schema version.✨ AI
chainId uint256 Chain identifier (uint256) used to prevent cross-chain signature replay.✨ AI
verifyingContract address Address of the contract that verifies EIP-712 signatures (verifyingContract).✨ AI
salt bytes32 Cryptographic salt (bytes32) for domain separation or extra entropy.✨ AI
extensions uint256[] Array of uint256 extension values for optional domain extensions or metadata.✨ AI
minter() view → 0xeb018363f0a9af8f91f06fee6613a751b2a33fe5

Address of Minter.sol

回傳值

名稱 類型 描述
address
name() view → Aerodrome

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

開發者: Returns the name of the token.

回傳值

名稱 類型 描述
string The token name as a string.✨ AI
nonces(owner: address) view

Returns the current nonce for an owner used to authorize off-chain signatures.✨ AI

開發者: Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times.

參數

名稱 類型 描述
owner address Address whose nonce is being queried.✨ AI

回傳值

名稱 類型 描述
uint256 The current uint256 nonce associated with the owner, incremented each time a signature-based approval is used.✨ AI
symbol() view → AERO

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

開發者: Returns the symbol of the token.

回傳值

名稱 類型 描述
string The token symbol as a string, e.g., "AERO".✨ AI
totalSupply() view → 1,903,187,204.53 AERO

Return the total number of Aero tokens in existence.✨ AI

開發者: Returns the amount of tokens in existence.

回傳值

名稱 類型 描述
uint256 Total token supply as a uint256 expressed in the token's smallest unit (no decimals applied).✨ AI

寫入函式

approve(spender: address, amount: uint256) nonpayable

Set the allowance for spender to spend up to amount of your Aero tokens.✨ AI

開發者: Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event.

參數

名稱 類型 描述
spender address Address authorized to spend tokens on your behalf.✨ AI
amount uint256 Maximum number of Aero 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 allowance for a spender by a given 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 current allowance (in token smallest units).✨ AI

回傳值

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

Increase the allowance granted to spender by addedValue for the caller's tokens.✨ 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 of tokens to add to the existing allowance.✨ AI

回傳值

名稱 類型 描述
bool True if the allowance was successfully increased.✨ AI
mint(account: address, amount: uint256) nonpayable

Mint an amount of tokens to an account Only callable by Minter.sol

參數

名稱 類型 描述
account address
amount uint256

回傳值

名稱 類型 描述
bool True if success
permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Sets spender's allowance over owner's tokens using an off-chain EIP-2612 signature.✨ AI

開發者: Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section].

參數

名稱 類型 描述
owner address Token holder whose signature authorizes the allowance.✨ AI
spender address Address approved to spend the owner's tokens.✨ AI
value uint256 Amount of tokens to approve as allowance.✨ AI
deadline uint256 Unix timestamp after which the provided signature is invalid.✨ AI
v uint8 Recovery byte (27/28) of the owner's signature.✨ AI
r bytes32 First 32 bytes of the owner's ECDSA signature.✨ AI
s bytes32 Second 32 bytes of the owner's ECDSA signature.✨ AI
setMinter(_minter: address) nonpayable

Assigns the minter role to the given address.✨ AI

開發者: No checks as its meant to be once off to set minting rights to BaseV1 Minter

參數

名稱 類型 描述
_minter address Address to receive the minter role.✨ AI
transfer(to: address, amount: uint256) nonpayable

Transfer tokens from the caller to a specified address.✨ AI

開發者: Moves `amount` tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.

參數

名稱 類型 描述
to address Recipient address to receive the tokens.✨ AI
amount uint256 Amount of tokens to transfer, denominated in the token's smallest unit.✨ AI

回傳值

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

Transfers amount tokens from the owner (from) to the recipient (to) using the caller's allowance and updates balances and allowance.✨ AI

開發者: Moves `amount` tokens from `from` to `to` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.

參數

名稱 類型 描述
from address Address to debit tokens from (owner).✨ AI
to address Address to credit tokens to (recipient).✨ AI
amount uint256 Number of tokens to transfer.✨ AI

回傳值

名稱 類型 描述
bool True if the transfer succeeded; otherwise false.✨ AI

事件

Approval(owner: address, spender: address, value: uint256)
名稱 類型 已索引 描述
owner address
spender address
value uint256
EIP712DomainChanged()
Transfer(from: address, to: address, value: uint256)
名稱 類型 已索引 描述
from address
to address
value uint256