Domain Rental Vault

π Domain Rental Flow
The DomainRentalVault enables domain owners to generate income by renting out tokenized domains while ensuring secure agreements for renters. The process is divided into four phases:
π 1. Listing Phase
Owner deposits a domain NFT into the vault via
deposit(nft, tokenId)The NFT is transferred to the vault and locked as listing collateral
A listing is created with default parameters
Owner sets rental terms such as:
Price per day
Security deposit
Minimum and maximum rental duration
Accepted payment token
π This phase prepares the domain for rental and defines the contract rules.
β³ 2. Rental Phase
Renter initiates a rental with
rent(listingId, days)Contract validates rental parameters (duration, availability, payment token)
The total rental cost and protocol fee are calculated
Renter transfers payment (minus protocol fee) and a security deposit
Payment is distributed:
Protocol fee β Treasury
Remaining rental fee β Owner
Rental record is created with an expiry date
π The renter gains the right to use the domain for the agreed period, while the owner earns income.
βΉοΈ 3. Rental End
After the rental duration ends,
endRent(listingId)can be calledThe rental record is cleared from the system
The renter or owner can claim the security deposit back via
claimDeposit(listingId, recipient)The security deposit is returned to the rightful party
π This ensures safe settlement after the rental expires.
π οΈ 4. Owner Management
If no active rental exists, the owner can unlist the domain:
unlist(listingId)returns the NFT back to the ownerListing is deleted from the vault
Owners can also pause/unpause listings with
pause(listingId, true/false)
π This gives owners full control to manage, remove, or temporarily suspend rentals as needed.
π Key Takeaways
Domain Owners earn recurring income by listing domains with customizable terms
Renters get secure, time-bound access to domains by paying upfront with a refundable security deposit
Treasury collects protocol fees to sustain the ecosystem
The system ensures trust through escrow, deposit locking, and automated expiry management
β¨ In short: The DomainRentalVault transforms domains into income-generating assets, bridging ownership and utility with secure, transparent on-chain agreements.
Last updated