Collateral-Free Integration Guide
This is a guide on how to use reNFT's SDK to interact with the collateral free contract directly. This tutorial was written for sdk version 5.0.4.

The following discussion applies to
v5.0.4of the SDK.
Lend/Rent NFTs In-App
To interact with our smart contract, we'd recommend using our SDK.
The ReNFT object takes in an ethers Signer and an optional contract address if not using the default collateral-free contract.
We name our contracts after famous cats. You can find the name mappings here. Sylvester is the code-name for the collateral free contract.
Batching
Any of the following functions support batching as shown below for the Lend instruction where the user lends an AstroCat and a CatPlsr in the same function call:
Lend
Rent
Stop Rent
Even though no real posession of the NFT is given, the renter must signal that they have concluded "using" the NFT with this call. If the renter fails to do so, then the lender can invoke "Claim Rent" explained below, to redeem the full amount of rent. Note that "Stop Lend" will be blocked until the user calls "Claim Rent" first.
Claim Rent
Stop Lend
Query Loan/Rental Status
To learn about how to learn about the status of a particular lending / rental, read here.
Unpacking Data
Prices are returned in a custom format (rationale for this format was to fit the lending into a single storage slot). To unpack them, use our SDK's unpackPrice function:
Last updated