NFTVaultRegistry

NFTVaultRegistry smart contract provides a common NFT ERC721 inteface for accessing opened BOB CDP Vaults. Each opened vault is assigned with unique vault id with corresponding NFT being issued to the vault owner.

Single deployed NFTVaultRegistry can accomodate multiple NFTVault contract underneath it.

Key concepts

Vault ownership

Despite what happened or happens inside the created vault, the effective owner of the vault is always the corresponsing NFT owner.

Vault owner holds the rights to vault collateral, as well as a debt liability associated with a given vault.

Vault transferability

ERC721 defines few transfer functions used for changing NFT ownership. Transferring Vault NFT to a different address will effectively change the Vault owner accordingly.

After Vault NFT transfer, only a new owner will have rights to withdraw collateral or generate more debt.

Vault allowance

ERC721 defines few approval functions. Such approvals allow to control NFTs from multiple addresses at the same time, without altering the NFT ownership.

In BOB CDP, approved addresses have the same rights as the NFT owner, meaning that they are able to withdraw collateral and mint new debt in the same way as the NFT owner. They are also able to transfer vault ownership to a different address, using the vault transferability concept described above.

The only difference in rights between vault owner and approved addresses is the fact only the current NFT owner is able to contol the list approved addresses for his NFTs.

Methods

TBD

Last updated