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 called

  • The 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 owner

    • Listing 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