0xc00e94cb662c3520282e6f5717214004a7f26888
Solidity v0.5.16+commit.9c3226ce
Fungible token following the ERC-20 standard.
管理與風險
誰能修改規則?
No admin risk controls detected from the verified ABI.
近期治理
3518 privileged events loaded. 最新: DelegateVotesChanged at block #25,493,357.
概覽
讀取函式
Block #25,493,679 · just nowReturns the EIP-712 typehash used for delegation signatures.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 DELEGATION_TYPEHASH used to hash and verify delegation typed data.✨ AI |
Provides the EIP-712 domain type hash used to construct the contract's domain separator for signatures.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 EIP-712 DOMAIN_TYPEHASH used to derive the domain separator for off-chain signatures.✨ AI |
Get the number of tokens `spender` is approved to spend on behalf of `account`
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | The address of the account holding the funds |
| spender | address | The address of the account spending the funds |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The number of tokens approved |
Get the number of tokens held by the `account`
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | The address of the account to get the balance of |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The number of tokens held |
Returns the checkpoint data for an account at a given index.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | |
| — | uint32 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| fromBlock | uint32 | fromBlock: Block number when this checkpoint became effective (uint32).✨ AI |
| votes | uint96 | votes: Number of votes recorded at that checkpoint (uint96).✨ AI |
Returns the number of decimal places used by the token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | The token's decimals (number of decimal places) as a uint8.✨ AI |
Returns the current delegatee address for a given token holder.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The delegatee address that receives voting power for the given holder; zero address if none set.✨ AI |
Gets the current votes balance for `account`
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | The address to get votes balance |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint96 | The number of current votes for `account` |
Determine the prior number of votes for an account as of a block number
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | The address of the account to check |
| blockNumber | uint256 | The block number to get the vote balance at |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint96 | The number of votes the account had as of the given block |
Returns the token's name as a human-readable string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token's name as a human-readable string (e.g. Compound).✨ AI |
Return the current nonce for an address, used to validate off-chain permit signatures.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Current uint256 nonce for the address; used to prevent replay of permits.✨ AI |
Return the number of vote checkpoints recorded for an account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint32 | The uint32 count of checkpoints stored for the account.✨ AI |
Returns the token symbol users see for this COMP token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The ERC-20 token symbol (e.g., "COMP") as a string.✨ AI |
Return the current total supply of COMP tokens.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The total COMP token supply as a uint256, expressed in the token's smallest unit (wei-like).✨ AI |
寫入函式
Approve `spender` to transfer up to `amount` from `src`
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | The address of the account which may transfer tokens |
| rawAmount | uint256 | The number of tokens that are approved (2^256-1 means infinite) |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | Whether or not the approval succeeded |
Delegate votes from `msg.sender` to `delegatee`
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| delegatee | address | The address to delegate votes to |
Delegates votes from signatory to `delegatee`
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| delegatee | address | The address to delegate votes to |
| nonce | uint256 | The contract state required to match the signature |
| expiry | uint256 | The time at which to expire the signature |
| v | uint8 | The recovery byte of the signature |
| r | bytes32 | Half of the ECDSA signature pair |
| s | bytes32 | Half of the ECDSA signature pair |
Transfer `amount` tokens from `msg.sender` to `dst`
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| dst | address | The address of the destination account |
| rawAmount | uint256 | The number of tokens to transfer |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | Whether or not the transfer succeeded |
Transfer `amount` tokens from `src` to `dst`
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| src | address | The address of the source account |
| dst | address | The address of the destination account |
| rawAmount | uint256 | The number of tokens to transfer |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | Whether or not the transfer succeeded |
事件
The standard EIP-20 approval event
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| amount | uint256 |
An event thats emitted when an account changes its delegate
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| delegator | address | ✓ | |
| fromDelegate | address | ✓ | |
| toDelegate | address | ✓ |
An event thats emitted when a delegate account's vote balance changes
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| delegate | address | ✓ | |
| previousBalance | uint256 | ||
| newBalance | uint256 |
The standard EIP-20 transfer event
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| amount | uint256 |