0x7eb324c2b505fc778fa3480a587ebda70aa5f948
Solidity v0.8.26+commit.8a97fa7a
Fungible token following the ERC-20 standard.
管理與風險
誰能修改規則?
Detected upgradeable, mintable, and ownable controls from the verified ABI.
當前控制
- Owner
- 0x0000000000000000000000000000000000000000 (無)
- Upgradeability inferred from ABI/events; proxy storage resolution may be incomplete.
概覽
讀取函式
Block #25,199,575 · just now///////////////////////////////////////////////////////////
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 |
Returns the remaining number of tokens that owner allowed spender to transfer on their behalf.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | |
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Remaining number of tokens spender is allowed to transfer from owner.✨ AI |
Returns the address designated as the contract authority.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address designated as the contract authority (holds administrative privileges).✨ AI |
Return the token balance for a given address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The token balance of the given address in the token's smallest units (uint256).✨ AI |
Return the number of decimal places used by the token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | The number of decimal places (uint8) the token uses for display and arithmetic.✨ AI |
Return the remaining mint allowance for a minter address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Remaining number of tokens the specified minter is allowed to mint.✨ AI |
Returns the token's name as a human-readable string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token name string (e.g., "YieldCoin").✨ AI |
Returns the current permit nonce for the given address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Current uint256 nonce that must be included in off-chain permit signatures to prevent replay.✨ AI |
Get the contract owner's address.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the contract owner with permission to perform privileged actions.✨ AI |
Returns the address nominated to become the contract owner.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address currently nominated to become owner, or the zero address if no pending owner is set.✨ AI |
Return the proxiable UUID that identifies the implementation storage slot.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | A bytes32 UUID that identifies the proxiable implementation storage slot (EIP-1822).✨ AI |
Returns the token's short ticker symbol used by wallets and exchanges.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token's short ticker symbol (e.g., "YLD") as a string.✨ AI |
Return the total supply of YieldCoin tokens.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total number of YieldCoin tokens in existence, expressed in the token's smallest unit.✨ AI |
寫入函式
Finalize the ownership transfer and make the caller the new contract owner.✨ AI
///////////////////////////////////////////////////////////
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | |
| amount | uint256 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool |
burns for sender
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _amount | uint256 | The amount to burn |
burns for sender
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _from | address | |
| _amount | uint256 | The amount to burn |
burns tokens for a user
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _from | address | The address to burn tokens for |
| _amount | uint256 | The amount of tokens to burn |
Decrements the amount of tokens a minter is allowed to mint
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _minter | address | is the address of the new minter |
| _amount | uint256 | is the amount of tokens to decrease the allowance by |
Increments the amount of token a minter is allowed to mint
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _minter | address | is the address of the new minter |
| _amount | uint256 | is the amount of tokens to increase the allowance by |
///////////////////////////////////////////////////////////
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _name | string | |
| _symbol | string | |
| _dec | uint8 | |
| _owner | address | |
| _minter | address |
Mints new tokens and assigns them to the specified address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _to | address | Recipient address that will receive the newly minted tokens.✨ AI |
| _amount | uint256 | Amount of tokens to create, specified in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if minting succeeded and the tokens were created and assigned; otherwise false.✨ AI |
///////////////////////////////////////////////////////////
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | |
| spender | address | |
| value | uint256 | |
| deadline | uint256 | |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Renounce ownership of the contract, removing the owner and disabling owner-only functions.✨ AI
Sets the minter role and the amount of tokens the minter is allowed to mint
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _minter | address | is the address of the new minter |
| _amount | uint256 | is the amount of tokens the minter is allowed to mint |
Sends token to be converted to fiat
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _token | address | address of token |
| _amount | uint256 | is the amount |
| _recipient | address | the destination |
///////////////////////////////////////////////////////////
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _to | address | |
| _amount | uint256 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool |
Transfer tokens from _from to _to using the caller's allowance and update balances and allowance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _from | address | Address to debit tokens from.✨ AI |
| _to | address | Address to credit tokens to.✨ AI |
| _amount | uint256 | Number of tokens to transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded; otherwise false.✨ AI |
Transfers ownership of the contract to a new owner address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newOwner | address | Address that will become the contract owner (must not be the zero address).✨ AI |
Upgrade the contract implementation to the provided new implementation address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newImplementation | address | Address of the new implementation contract to which to upgrade.✨ AI |
Upgrade the token implementation and immediately call the new implementation with the provided data.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newImplementation | address | Address of the new implementation contract to set.✨ AI |
| data | bytes | Calldata to execute on the new implementation immediately after upgrade; may be empty.✨ AI |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousAdmin | address | ||
| newAdmin | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| beacon | address | ✓ |
///////////////////////////////////////////////////////////
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| recipient | address | ✓ | |
| fee | uint256 |
***DEPRECATED***
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| recipient | address | ||
| newRecipient | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint8 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| managementFee | uint256 | ||
| newManagementFee | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| minter | address | ||
| amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| oracle | address | ||
| newOracle | address |
///////////////////////////////////////////////////////////
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| recipient | address | ✓ | |
| token | address | ||
| amount | uint256 |
///////////////////////////////////////////////////////////
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| teller | address | ||
| newTeller | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| recipient | address | ✓ | |
| token | address | ||
| amount | uint256 |
///////////////////////////////////////////////////////////
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| token | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| implementation | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| to | address | ✓ | |
| amount | uint256 |