This ERC introduces NFT liens, a form of security interest over an item of property to secure the recovery of liability or performance of some other obligation. It introduces an interface to place and removes a lien, plus an event.
Liens are widely used for finance use cases, such as car and property liens. An example use case for an NFT lien is for a deed. This ERC provides an interface to implement an interface that performs the lien holding relationships.
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119.
Any compliant contract MUST implement ERC-721, and ERC-165.
Any compliant contract MUST implement the following interface:
We only support ERC-721 NFTs for simplicity and gas efficiency. We have not considered other ERCs, which can be left for future extensions. For example, ERC-20 and ERC-1155 were not considered.
We choose separate "addLienHolder" and "removeLienHolder" instead of use a single changeLienholder with amount because we believe
the add or remove action are significantly different and usually require different Access Control,
for example, the token holder shall be able to add someone else as a lien holder but the lien holder of that token.
We have not specified the "amount of debt" in this interface. We believe this is complex enough and worthy of an individual ERC by itself.
We have not specified how endorsement can be applied to allow holder to signal their approval for transfer or swapping. We believe this is complex enough and worthy of an individual ERC by itself.
The ERC is designed as an extension of ERC-721 and therefore compliant contracts need to fully comply with ERC-721.
Needs discussion.
Copyright and related rights waived via CC0.