Minimal ERC20 interface for Algebra
Contains a subset of the full ERC20 interface that is used in Algebra
Developer note: Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces
event Transfer(address from, address to, uint256 value)
Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.
Name | Type | Description |
---|---|---|
event Approval(address owner, address spender, uint256 value)
Event emitted when the approval amount for the spender of a given owner's tokens changes.
Name | Type | Description |
---|---|---|
function balanceOf(address account) external view returns (uint256)
view external
Returns the balance of a token
Returns:
function transfer(address recipient, uint256 amount) external returns (bool)
external
Transfers the amount of token from the `msg.sender` to the recipient
Returns:
function allowance(address owner, address spender) external view returns (uint256)
view external
Returns the current allowance given to a spender by an owner
Returns:
function approve(address spender, uint256 amount) external returns (bool)
external
Sets the allowance of a spender from the `msg.sender` to the value `amount`
Returns:
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool)
external
Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`
Returns:
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|