Core
Other
Utils
IERC20

IERC20

IERC20

Interface smart contract of the ERC20 smart contract implementation.

Methods

allowance

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

Used to grant permission to an account to spend the tokens of another

Parameters

NameTypeDescription
owneraddressAddress that owns the tokens
spenderaddressAddress that is being granted the permission to spend the tokens of the owner

Returns

NameTypeDescription
_0uint256Amount of tokens that the spender can manage

transfer

function transfer(address to, uint256 amount) external nonpayable returns (bool success)

Used to transfer tokens from the caller's account to another.

Parameters

NameTypeDescription
toaddressAddress of the account to which the tokens are being transferred
amountuint256Amount of tokens that are being transferred

Returns

NameTypeDescription
successboolA boolean value signifying whether the transfer was succesful (true) or not (false)

transferFrom

function transferFrom(address from, address to, uint256 amount) external nonpayable returns (bool success)

Used to transfer tokens from one address to another.

Parameters

NameTypeDescription
fromaddressAddress of the account from which the the tokens are being transferred
toaddressAddress of the account to which the tokens are being transferred
amountuint256Amount of tokens that are being transferred

Returns

NameTypeDescription
successboolA boolean value signifying whether the transfer was succesful (true) or not (false)