Taker
Search
K

TERC721

TERC721 are promissory-note tokens that are minted and burned upon deposite nft and withdraw nft, representing the NFT used as collateral owed by the token holder, with the same token ID.
The TERC721 token is pegged to the token of the corresponding NFT collateral at a 1:1. All tokens owned by the TERC721 holders can be simply integrated into the NFT wallet and social media.
For all minting and burning actions, see depositNFTs() and withdrawNFTs() methods in the LendingPool contract.

ERC721 Methods

TERC721 implements all the standard interfaces of ERC721. Transferring TERC721 to others is only allowed when the lending situation of TERC721 holders remains healthy.

Methods

mint

function mint(address to, uint256 tokenId)
Mints TERC721 token to the user address. The caller must have the original NFT of the underlying asset.

call params

Name
Type
Discription
to
address
The owner address receive the boundNFT token.
tokenId
uint256
The token id of the underlying asset of NFT.

burn

function burn(address from, address to, uint256 tokenId)
Burns user TERC721 token. The caller must be the minter when it is minted.

call params

Name
Type
Discription
from
address
the address of user who burn the TNFT.
to
address
the address of user who receive the NFT.
tokenId
uint256
The token id of the underlying asset of NFT.

View Methods

totalSupply

function totalSupply() external view returns (uint256)
Returns the supply of the TERC721.

tokenURI

function tokenURI(uint256 tokenId) public view override returns (string memory)
Return URI of the underlying nft assert.