Lending

Functions

tokenOfPid

mapping(address => uint256) public tokenOfPid;

Get token address and its pool id

Parameters:

lendPoolInfo

CompoundLendPool[] public lendPoolInfo;

Get info of the lending pool

Parameters:

Returns:

userLend

function userLend(
    uint256 _pid, 
    uint256 _amount) public nonReentrant whenNotPaused

Borrowing Token from the Lendingpool contract

Parameters:

userRedeem

function userRedeem(
    uint256 _pid, 
    uint256 _amount) public nonReentrant whenNotPaused 
returns(uint256)

Repay the loan

Parameters:

pendingRedeemInterests

function pendingRedeemInterests(
    uint256 _pid, 
    address _user) 
public view returns(
            uint256 _lendInterests,
            uint256 _platFormInterests)

Query the pending redeemed Interests of a user address

Parameters:

getPoolLength

function getPoolLength() 
    external view returns(uint256 poolLength)

Get the pool length of pool

getLendPoolIdsOfOwner

function getLendPoolIdsOfOwner(
    address owner) external view returns (uint256[] memory) 

Get the lend pool ids of owner

Parameters:

Events

Last updated