Cometh Rental
  • Cometh Rental Protocol
  • Features
  • Smart-Contracts
    • Structures
    • Functions
    • Admin Functions
Powered by GitBook
On this page
  • Whitelist NFT for the rental protocol
  • Protocol Fees collector
  • Protocol Fees percentage
  1. Smart-Contracts

Admin Functions

Whitelist NFT for the rental protocol

function associateOriginalToLentAndBorrowedNFT(
  address originalNFT,
  address lentNFT,
  address borrowedNFT,
  address subLentNFT
) external onlyRole(TOKENS_MANAGER_ROLE);

The rental protocol works by having an original NFT associated with LentNFT, SubLentNFT and BorrowedNFT ones.

In order to avoid spam, only a Cometh admin can whitelist such associations at the moment.

Protocol Fees collector

function setFeesCollector(address _feesCollector) public override onlyRole(FEES_MANAGER_ROLE)

Sets the address of the wallets collecting the rental protocol fees.

Protocol Fees percentage

function setFeesBasisPoints(uint16 basisPoints) public override onlyRole(FEES_MANAGER_ROLE)

Sets the percentage (in basis points) the rental protocol collects.

Such protocol fee is a percentage of the rental offer entry fee.

PreviousFunctions

Last updated 2 years ago