Under the hood
Last updated
Last updated
On the lower end of the implementation, the protocol consists of multiple smart contracts with various responsibilities that enable various protocol features.
Besides Renfter smart contract as the core of the protocol, the rest of the smart contracts are implemented to create an extendable, loosely-coupled, and modular protocol, which would allow new feature additions in the future, as well as during development.
Contains base governance functionalities for Renfter’s smart contracts and enables emergency actions in case of emergency situations of any kind (hack, malfunction etc.)
Responsible for distributing fees appropriately according to the initial fee and payment token setup. It also provides fee calculation on-chain.
Responsible for creating new Holder Wallets uniquely associated with a particular user. The description of Holder Wallets can be found in "".
Responsible for creating the wrapper smart contracts of any NFT collection. As NFTs can be represented by using either the ERC-721 or the ERC-1155 standards, separate wrappers are created depending on the ERC compliance of the original NFT collection.
Contains the base logic inherited by both types of wrapper NFT contracts.
Contains the logic for whitelisting method calls towards the original NFT collection on behalf of the wrapper NFT contract token owner.
Represents the standard implementation of the ERC-721 standard while also adding the required functionality to integrate the standard with Renfter’s core smart contract.
Represents the standard implementation of the ERC-1155 standard while also adding token ownership, which is not originally part of the standard. It also contains the required functionality to integrate the standard with Renfter’s core smart contract.