ILiquid20

Git Source

Author: 0xvv @ Kiln

Contains functions to make the token liquid

Functions

transfer

Transfers token from the caller to another address

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

Parameters

NameTypeDescription
toaddressThe address to transfer to
amountuint256The amount to transfer

allowance

Retrieves the amount of tokens that an owner allowed to a spender

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

Parameters

NameTypeDescription
owneraddressThe address of the owner
spenderaddressThe address of the spender

approve

Approves a spender to transfer tokens on the caller's behalf

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

Parameters

NameTypeDescription
spenderaddressThe address of the spender
amountuint256The amount to approve

transferFrom

Transfers tokens from one address to another, using the allowance mechanism

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

Parameters

NameTypeDescription
fromaddressThe address to transfer from
toaddressThe address to transfer to
amountuint256