AAVE
Ethereum ERC-20 Token0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9
Proxy implementation: 0x5d4aa78b08bc7c530e21bf7447988b1be7991322
Solidity v0.8.20+commit.a1b79de6
Fungible token following the ERC-20 standard.
Admin & Risk
Who can change the rules?
Detected upgradeable controls from the verified ABI.
Current controls
- Implementation
- 0x5d4aa78b08bc7c530e21bf7447988b1be7991322 ↗ Etherscan → smarts proxy
Recent governance
117 privileged events loaded. Latest: DelegateChanged at block #25,138,175.
Overview
Read Functions
Block #25,169,803 · just nowReturns the EIP-712 type hash used for delegateByType signature construction.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The bytes32 EIP-712 typehash constant for the delegateByType function signatures.✨ AI |
Returns the EIP-712 typehash used when creating signed delegation messages.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The bytes32 EIP-712 typehash for the Delegation struct used in signed delegation messages.✨ AI |
Return the EIP-712 domain separator used for signing typed data like permits.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The domain separator (bytes32) used to build EIP-712 typed-data hashes for signature verification.✨ AI |
Returns the EIP-2612 permit typehash used for permit signatures.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | keccak256 hash (bytes32) of the permit struct type used in EIP-2612 permit signatures.✨ AI |
Returns the constant scaling factor used by the contract for power-related fixed-point math.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The uint256 constant scaling factor used to scale values for power and fixed-point math operations.✨ AI |
Get the contract revision number used to identify this implementation.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The numeric revision identifier of the contract implementation.✨ AI |
Returns the current permit nonce for the given address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Current nonce (uint256) for the address, used to prevent replay of signed messages.✨ AI |
Return the remaining number of tokens that spender is allowed to transfer from owner.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | Address of the token holder who granted the allowance.✨ AI |
| spender | address | Address permitted to spend tokens on behalf of the owner.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Remaining allowance as a uint256 value (token smallest units) that spender can transfer from owner.✨ AI |
Returns the token balance of the specified account.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | Address to query the token balance for.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The token balance of the account as a uint256, expressed in the token's smallest unit.✨ AI |
Returns the number of decimals used by the token for user representation and calculations.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 | The token's decimals as an unsigned 8-bit integer indicating number of decimal places.✨ AI |
Return the EIP-712 domain components used to sign typed data for this token.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| fields | bytes1 | EIP-712 domain fields marker or bitmap represented as a single byte.✨ AI |
| name | string | Human-readable name included in the EIP-712 domain (token name).✨ AI |
| version | string | Version string included in the EIP-712 domain (protocol/contract version).✨ AI |
| chainId | uint256 | Chain ID where the contract is deployed, used in the domain separator.✨ AI |
| verifyingContract | address | Address of the verifying contract included in the domain separator.✨ AI |
| salt | bytes32 | Optional domain salt value as a 32-byte bytes32 for uniqueness.✨ AI |
| extensions | uint256[] | Array of uint256 extension values included in the domain, if any.✨ AI |
Get the delegatee address that a delegator set for a specific 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 current delegate addresses for 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 | Address of the proposition delegate the delegator has set.✨ AI |
Return the current delegated power balance for a user 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 |
Return the current power values associated with a user address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| user | address | the user |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | the current voting and proposition power of a user |
| — | uint256 | The user's current delegated power as a uint256.✨ AI |
Get the token's name.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token's name as a string.✨ AI |
Returns the token's symbol used to identify this AaveTokenV3.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token symbol as a string, e.g. "AAVE".✨ AI |
Returns the total supply of tokens.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Total number of tokens in existence as a uint256.✨ AI |
Write Functions
Approve spender to transfer up to amount tokens on your behalf.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | Address allowed to spend tokens.✨ AI |
| amount | uint256 | Maximum number of tokens the spender is allowed to use.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the approval succeeded.✨ AI |
Decrease the caller's allowance for a spender by a specified amount.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | The address allowed to spend the tokens.✨ AI |
| subtractedValue | uint256 | The amount to subtract from the current allowance.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | true if the allowance was decreased successfully.✨ AI |
Delegate the caller's voting power to the given 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 delegatee 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 token allowance for a spender by a specified amount.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | Address allowed to spend tokens on the caller's behalf.✨ AI |
| addedValue | uint256 | Amount to add to the spender's current allowance.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the allowance was increased successfully.✨ AI |
Initializes the AaveTokenV3 token contract and configures its initial state for operation.✨ AI
Allow a delegator to set 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 |
Delegate a specific type of voting power from a delegator to a delegatee using an off-chain signature before 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 |
Approve spender using owner's EIP-2612 signature (permit) before the 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 your account to the specified recipient.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | Recipient address that will receive the tokens.✨ AI |
| amount | uint256 | Amount of tokens to transfer, denominated in the token's smallest unit.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
Transfer tokens from one address to another using the caller's approved allowance.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | Address to debit tokens from.✨ AI |
| to | address | Address to credit tokens to.✨ AI |
| amount | uint256 | Number of tokens to transfer.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the transfer succeeded and balances and allowance were updated.✨ 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 |