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:
Get info of the lending pool
Parameters:
Returns:
Borrowing Token
from the Lendingpool contract
Parameters:
Repay the loan
Parameters:
Query the pending redeemed Interests of a user address
Parameters:
Get the pool length of pool
Get the lend
pool ids
of owner
Parameters:
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
address
address
token address
pid
uint256
Pool Id of the token
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
_pid
uint256
Pool Id of the token
_amount
uint256
the amount to lend
_pid
uint256
Pool Id of the token
_amount
uint256
the repayent amount
_pid
uint256
Pool Id of the token
_user
address
Wallet address of a user
owner
address
Wallet address of a user