ILiquid20
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
| Name | Type | Description |
|---|---|---|
to | address | The address to transfer to |
amount | uint256 | The 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
| Name | Type | Description |
|---|---|---|
owner | address | The address of the owner |
spender | address | The 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
| Name | Type | Description |
|---|---|---|
spender | address | The address of the spender |
amount | uint256 | The 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
| Name | Type | Description |
|---|---|---|
from | address | The address to transfer from |
to | address | The address to transfer to |
amount | uint256 |