IERC20Minimal

Overview

License: GPL-2.0-or-later

interface IERC20Minimal

Contains a subset of the full ERC20 interface that is used in Uniswap V3

Events info

Transfer

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

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

Parameters:

Approval

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

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

Parameters:

Functions info

balanceOf (0x70a08231)

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

Returns the balance of a token

Parameters:

Return values:

transfer (0xa9059cbb)

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

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

Parameters:

Return values:

allowance (0xdd62ed3e)

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

Returns the current allowance given to a spender by an owner

Parameters:

Return values:

approve (0x095ea7b3)

function approve(address spender, uint256 amount) external returns (bool)

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

Parameters:

Return values:

transferFrom (0x23b872dd)

function transferFrom(
    address sender,
    address recipient,
    uint256 amount
) external returns (bool)

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

Parameters:

Return values:

Last updated