Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

LeaseToOwnNFT

A modern, decentralized NFT leasing protocol with a lease-to-own model. Empower users to acquire NFTs through affordable installments, with full ownership transferred after all payments are completed. Built for security, transparency, and flexibility on Ethereum.


πŸš€ Project Overview

LeaseToOwnNFT is a smart contract system that enables NFT owners to offer their assets for lease with an option to own. Lessees can pay in installments, and after completing all payments, they claim full ownership of the NFT. If payments are missed for over 30 days, the lease is revoked and the NFT returns to the vault.


✨ Key Features

  • Lease-to-Own: Users lease NFTs and become owners after all installments are paid.
  • Installment Payments: Flexible payment structure, with each installment sent directly to the vault.
  • Automatic Revocation: If a lessee misses a payment for 30+ days, the NFT is reclaimed.
  • Secure & Non-Custodial: No ETH is held in the contract; all funds go directly to the vault address.
  • Open & Transparent: All lease terms and statuses are viewable on-chain.

βš™οΈ How It Works

  1. Owner Registers Lease Terms:
    • Sets price per installment, total installments, and vault address for each NFT.
  2. User Starts Lease:
    • Any user can start leasing an available NFT.
  3. Pay Installments:
    • Lessee pays installments in ETH. Each payment is sent to the vault.
  4. Claim Ownership:
    • After all installments are paid, the lessee claims the NFT and becomes the owner.
  5. Revocation:
    • If a payment is overdue by more than 30 days, anyone can trigger revocation, returning the NFT to the vault.

πŸ› οΈ Getting Started

Prerequisites

  • Foundry (for Solidity development, testing, and deployment)
  • Node.js & npm (for scripting, if needed)

Build

forge build

Test

forge test

Deploy Example

forge script script/LeaseToOwnNFT.s.sol --rpc-url <your_rpc_url> --private-key <your_private_key>

πŸ“š Documentation


🀝 Contributing

Pull requests and issues are welcome! Help us improve the protocol and expand its features.


πŸ“ License

MIT

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /