Borrowing
Last updated
Last updated
Smart Contract:[ThemisBorrowCompound.sol](Solidity-Open-Source/ThemisBorrowCompound.sol at main · Themis-protocol/Solidity-Open-Source · GitHub)
Get the max borrow amount of a user when the user trying to collateral the NFT
Parameters:
Name | Type | Description |
---|---|---|
Returns:
Parameters:
Repayment the loan
Parameters:
Get the pid of a user
Parameters:
Get the borrow id of the owner form pid when user get a loan
Parameters:
Get the borrow id info
Parameters:
Returns
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
pid
uint256
the ID of borrowing pool
tokenId
uint256
NFT ID to collateral
borrowAmount
uint256
input of borrow amount
_user
address
Wallet address of a user
_maxBorrowAmount
uint256
Max borrow amount
_flag
bool
Over loan amount
pid
uint256
Pool ID
tokenId
uint256
NFT ID to collateral
borrowAmount
uint256
borrow amount
bid
uint256
Borrow ID
repayAmount
uint256
repay amount
owner
address
wallet address of a user
owner
address
Wallet address of owner
pid
uint256
Owner's pid
bid
uint256
borrow id
user
address
wallet address of user
pid
uint256
pool id of a loan
tokenId
uint256
Collateralized NFT token ID