Code Monkey home page Code Monkey logo

pawnft's Introduction

PawNFT

NFT-collateralized lending, inspired by conversations with Mark Beylin.

Credits

See @wilsoncusack's similar implementation, predating this one.

Thank you to @mrthankyou for volunteering to independently audit, and @wilsoncusack and @vasa-develop for their feedback.

Context

Non-fungible assets are difficult to price effectively, limiting their ability to be used as a form of collateral. Thus far, NFT-lending (see: nftfi) has been largely p2p with NFT owners proposing fixed loan requirements and terms, upfront.

PawNFT uses an active auction mechanism to achieve three results:

  1. Better price discovery for non-fungible assets through locked top bids
  2. Ability to draw capital against NFT collateral, through active bids
  3. Fixed-term, fixed-interest rewards for lenders

For NFT owners, PawNFT offers either: (1) a way to draw capital against their non-fungible collateral, or (2) a short-dated put on the price of their NFT (with the premium paid being the fixed interest to top bidder).

This implementation closely follows Mark's spec, save for adding cascading interest payments aross subsequent lenders (Mark's spec forces worst rates for future lenders).

Run locally

Contract code is found in /contracts and is a Hardhat project.

Front-end code is found in /frontend and is a NextJS application.

READMEs in resepective subfolders cover details.

License

GPL-3.0-or-later

pawnft's People

Contributors

anish-agnihotri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.