Smart Contract:[ThemisLendCompound.sol](Solidity-Open-Source/ThemisLendCompound.sol at main · Themis-protocol/Solidity-Open-Source · GitHub)
Get token address
and its pool id
Parameters:
address
address
token address
Get info of the lending pool
Parameters:
pid
uint256
Pool Id of the token
Returns:
token
address
Token Address
spToken
address
SP Token Address
curSupply
uint256
current supply in pool
curBorrow
uint256
current borrowing of pool
totalRecvInterests
uint256
User receives interest
Borrowing Token
from the Lendingpool contract
Parameters:
_pid
uint256
Pool Id of the token
_amount
uint256
the amount to lend
Repay the loan
Parameters:
_pid
uint256
Pool Id of the token
_amount
uint256
the repayent amount
Query the pending redeemed Interests of a user address
Parameters:
_pid
uint256
Pool Id of the token
_user
address
Wallet address of a user
Get the pool length of pool
Get the lend
pool ids
of owner
Parameters:
owner
address
Wallet address of a user