Compatibility
Requirements to be compatible with Venn
Dapps
The best way for dapps to become compatible with Venn Smart Accounts is through EIP-1271. Here is a nice resource on how to make the proper adaptation.
NFTs
Our VSA rent functionality supports any contract that implements IERC721. Venn Market Place supports contracts that use ERC721URIStorageor implements IERC721Metadata.
Soon we will be compatible with ERC1155 implementations. Be on the lookout!
Market Places
Any NFT market place platform can make itself compatible with Venn Smart Accounts renting functionality by implementing IMarketPlace and following a few requirements.
IMarketPlacecan be found here. Words MUST, REQUIRE, SHOULD in accordance RFC-2119.
interface IMarketPlace {
    function rentNFT (address contract_, uint256 tokenId, uint256 duration) external payable;
    
}Requirements
Implementations MUST:
- Use - rentNFT, as defined in- IMarketPlace, as it's main method (outer most function) to execute rent transactions.
- REQUIRE callers are Venn Smart Accounts. 
- REQUIRE caller's operator count for - contract_to be ZERO.
Prescriptions
Implementations SHOULD:
- REQUIRE - durationbe less then or equal to maximum duration specified by NFT owner.
- REQUIRE - msg.valuebe enough to cover the rent value and any outstanding service fee.
To see how this can be done, checkout our Tutorials.
Last updated
