Liquid20C

Git Source

Inherits: Native20, ILiquid20

Author: 0xvv @ Kiln

This contract allows users to stake any amount of ETH in the vPool(s). Users are given an ERC-20 cToken to track their stake.

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