IERC20Minimal

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

Events

Transfer

event Transfer(address from, address to, uint256 value)

Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.

Approval

event Approval(address owner, address spender, uint256 value)

Event emitted when the approval amount for the spender of a given owner's tokens changes.

Functions

balanceOf

function balanceOf(address account) external view returns (uint256) view external

Returns the balance of a token

Returns:

transfer

function transfer(address recipient, uint256 amount) external returns (bool) external

Transfers the amount of token from the `msg.sender` to the recipient

Returns:

allowance

function allowance(address owner, address spender) external view returns (uint256) view external

Returns the current allowance given to a spender by an owner

Returns:

approve

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:

transferFrom

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: