AaveTokenV3
Ethereum ERC-20 Token0x5d4aa78b08bc7c530e21bf7447988b1be7991322
Solidity v0.8.20+commit.a1b79de6
Fungible token following the ERC-20 standard.
Admin & Risk
Who can change the rules?
No admin risk controls detected from the verified ABI.
Overview
Read Functions
Block #25,170,035 · just nowReturns the EIP-712 typehash used for off-chain delegation-by-type signatures.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | EIP-712 typehash (bytes32) for the delegateByType struct used to construct and verify signed delegation messages.✨ AI |
Returns the EIP-712 typehash used for creating delegation signatures.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | EIP-712 typehash (bytes32) used when hashing and verifying delegation signed messages.✨ AI |
Return the EIP-712 domain separator used to sign the token's typed data.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The domain separator (bytes32) per EIP-712 to build or verify signed typed data for this token.✨ AI |
Returns the EIP-712 type hash used for permit (ERC-2612) signature verification.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The bytes32 EIP-712 PERMIT_TYPEHASH used to construct and verify permit signatures.✨ AI |
Return the token's power scale factor used in internal fixed-point arithmetic.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The power scale factor as a uint256 used to scale internal fixed-point calculations.✨ AI |
Returns the token contract revision number.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The revision number as a uint256 identifying the deployed contract implementation.✨ AI |
Return the current permit nonce for the given address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Current uint256 nonce used to prevent replay of permit signatures for the address.✨ AI |
Returns the remaining number of tokens that spender is allowed to transfer from owner.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | Address that owns the tokens.✨ AI |
| spender | address | Address approved to spend the owner's tokens.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Remaining token allowance (uint256) that spender can transfer from owner.✨ AI |
Returns the token balance of the given account.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | The address whose token balance will be returned.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The current token balance of the account, expressed in the token's smallest unit (uint256).✨ AI |
Returns the number of decimal places used by the token.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 | The token's decimal precision as an unsigned 8-bit integer (uint8).✨ AI |
Returns the EIP-712 domain components used for signing and permit operations.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| fields | bytes1 | bytes1: Single-byte domain type indicator used in the EIP-712 domain structure.✨ AI |
| name | string | name: Token name string included in the EIP-712 domain.✨ AI |
| version | string | version: Version string included in the EIP-712 domain.✨ AI |
| chainId | uint256 | chainId: Chain identifier (chainId) included in the EIP-712 domain.✨ AI |
| verifyingContract | address | verifyingContract: Contract address used as the EIP-712 domain's verifying contract.✨ AI |
| salt | bytes32 | salt: Optional 32-byte salt value used for additional domain separation.✨ AI |
| extensions | uint256[] | extensions: Array of uint256 extension fields for extra domain parameters.✨ AI |
Return the address authorized to act on behalf of a delegator for the specified delegation type.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| delegator | address | the address of the delegator |
| delegationType | uint8 | the type of delegation (VOTING, PROPOSITION) |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | address of the specified delegatee |
Return the two delegate addresses assigned to the given delegator.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| delegator | address | the address of the delegator |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | a tuple of addresses the VOTING and PROPOSITION delegatee |
| — | address | Second delegate address associated with the delegator (returned as the second tuple element).✨ AI |
Get the user's current delegated power for the specified delegation type.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| user | address | the user |
| delegationType | uint8 | the type of delegation (VOTING, PROPOSITION) |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | the current voting or proposition power of a user |
Get the current proposition and voting power for a user.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| user | address | the user |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | the current voting and proposition power of a user |
| — | uint256 | Current voting power of the user as a uint256, used for voting rights.✨ AI |
Returns the token's name as a human-readable string.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token name string, for example "Aave Token V3".✨ AI |
Returns the token's short symbol used by wallets and interfaces.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token symbol string used in UIs and wallets (e.g. AAVE)✨ AI |
Returns the total supply of AaveTokenV3 tokens.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Total number of tokens in existence as a uint256 (includes all minted tokens minus burned tokens).✨ AI |
Write Functions
Approve a spender to transfer up to a specified token amount on your behalf.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | Address permitted to spend tokens from the caller's balance.✨ AI |
| amount | uint256 | Maximum number of tokens the spender is allowed to transfer.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the approval was successful.✨ AI |
Decrease the caller's ERC-20 allowance for a spender by a given amount.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | Address allowed to spend tokens whose allowance will be decreased.✨ AI |
| subtractedValue | uint256 | Amount of tokens to subtract from the current allowance.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the allowance was successfully decreased (and an Approval event was emitted).✨ AI |
Delegate the caller's governance voting power to the specified address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| delegatee | address | the user to which the powers will be delegated |
Delegate a specific type of governance power to a given address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| delegatee | address | the user which delegated power will change |
| delegationType | uint8 | the type of delegation (VOTING, PROPOSITION) |
Increases the ERC-20 allowance granted to spender by the caller.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | Address allowed to spend tokens.✨ AI |
| addedValue | uint256 | Amount to add to the current allowance.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the allowance was successfully increased.✨ AI |
Initializes the token and configures its ERC-20 metadata and internal state.✨ AI
Delegate voting power from a delegator to a delegatee using an off-chain signature.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| delegator | address | the owner of the funds |
| delegatee | address | the user to who delegator delegates his voting and proposition governance power |
| deadline | uint256 | the deadline timestamp, type(uint256).max for no deadline |
| v | uint8 | signature param |
| r | bytes32 | signature param |
| s | bytes32 | signature param |
Set a delegatee for a specific delegation type using the delegator's off-chain ECDSA signature before the deadline.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| delegator | address | the owner of the funds |
| delegatee | address | the user to who owner delegates his governance power |
| delegationType | uint8 | the type of governance power delegation (VOTING, PROPOSITION) |
| deadline | uint256 | the deadline timestamp, type(uint256).max for no deadline |
| v | uint8 | signature param |
| r | bytes32 | signature param |
| s | bytes32 | signature param |
Allow an owner to approve a spender via an off-chain signature (EIP-2612) before a deadline.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | the owner of the funds |
| spender | address | the spender |
| value | uint256 | the amount |
| deadline | uint256 | the deadline timestamp, type(uint256).max for no deadline |
| v | uint8 | signature param |
| r | bytes32 | signature param |
| s | bytes32 | signature param |
Transfer tokens from the caller's account to the specified address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | Recipient address to receive the tokens.✨ AI |
| amount | uint256 | Number of tokens to transfer, expressed in the token's smallest unit.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the transfer succeeded, otherwise false.✨ AI |
Transfer tokens from one account to another using the caller's allowance.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | Address to send tokens from.✨ AI |
| to | address | Recipient address.✨ AI |
| amount | uint256 | Number of tokens to transfer (in the token's smallest unit).✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| delegator | address | ✓ | the user which delegated governance power |
| delegatee | address | ✓ | the delegatee |
| delegationType | uint8 | the type of delegation (VOTING, PROPOSITION) |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |