IERC20Minimal

Minimal ERC20 interface for Algebra Contains a subset of the full ERC20 interface that is used in Algebra

Events

Transfer

Transfer(address,address,uint256)

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

Approval

Approval(address,address,uint256)

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

Functions

balanceOf

balanceOf(address) view external

Returns the balance of a token

Returns:

transfer

transfer(address,uint256) external

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

Returns:

allowance

allowance(address,address) view external

Returns the current allowance given to a spender by an owner

Returns:

approve

approve(address,uint256) external

Sets the allowance of a spender from the `msg.sender` to the value `amount`

Returns:

transferFrom

transferFrom(address,address,uint256) external

Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`

Returns: