IERC20Minimal
License: GPL-2.0-or-later
interface IERC20Minimal
Contains a subset of the full ERC20 interface that is used in Uniswap V3
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:
The account from which the tokens were sent, i.e. the balance decreased
The account to which the tokens were sent, i.e. the balance increased
The amount of tokens that were transferred
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:
The account that approved spending of its tokens
The account for which the spending allowance was modified
The new allowance from the owner to the spender
balanceOf (0x70a08231)
Returns the balance of a token
Parameters:
The account for which to look up the number of tokens it has, i.e. its balance
Return values:
The number of tokens held by the account
transfer (0xa9059cbb)
Transfers the amount of token from the msg.sender to the recipient
Parameters:
The account that will receive the amount transferred
The number of tokens to send from the sender to the recipient
Return values:
Returns true for a successful transfer, false for an unsuccessful transfer
allowance (0xdd62ed3e)
Returns the current allowance given to a spender by an owner
Parameters:
The account of the token owner
The account of the token spender
Return values:
The current allowance granted by owner to spender
approve (0x095ea7b3)
Sets the allowance of a spender from the msg.sender to the value amount
Parameters:
The account which will be allowed to spend a given amount of the owners tokens
The amount of tokens allowed to be used by spender
Return values:
Returns true for a successful approval, false for unsuccessful
transferFrom (0x23b872dd)
Transfers amount tokens from sender to recipient up to the allowance given to the msg.sender
Parameters:
The account from which the transfer will be initiated
The recipient of the transfer
The amount of the transfer
Return values:
Returns true for a successful transfer, false for unsuccessful