uNFTs
UNFT.sol
Last updated
UNFT.sol
Last updated
The uNFTs are the collateral receipt and the proof of borrow. The NFTs will be stored in this contract.
function tokenURI(uint256 tokenId) public view virtual returns (string)
Will return the tokenURI, for a specific tokenId. This is a copy of the real NFT.
Name | Type | Description |
---|---|---|
Type | Description |
---|---|
function minterOf(uint256 tokenId) external view returns (address)
Returns the owner of the tokenId token.
Name | Type | Description |
---|---|---|
Type | Description |
---|---|
function mint(address to, uint256 tokenId) external
Mints the uNFT token to the user that added his allowed NFT as collateral.
the minted NFT will be a copy, a wrapped version of the real NFT.
function burn(uint256 tokenId) external
Will burn the uNFT held by the user. This will happen when the user repays or is liquidated.
This method is not supported. It will revert the transaction
This method is not supported. It will revert the transaction
This method is not supported. It will revert the transaction
This method is not supported. It will revert the transaction
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
tokenId
uint256
Nft Id
string
Uri of the NFT
tokenId
uint256
the tokenId that we want to know hows the ower of.
address
the address of the owner
to
address
The owner address receive the uNFT token;
tokenId
uint256
token id of the underlying asset of NFT
tokenId
uint256
token id of the underlying asset of NFT