Code Monkey home page Code Monkey logo

paystream's Introduction

Implementing a payment stream with NFT

smart contracts set up for hardhat are in hh UI in my-app

Overview

Opportunity: distribute tokens amongst many participants, based on their participation level

The tokens will represent a payment stream

Each instance of the contract will mint NFTs wheree attributes will contain a participation level.

When a payment is received by the contract it will be distributed to all the holders' address according to participation level. The payments will be allocated in a data structure and the holder must 'pull' their payment from contract. There will also exist a function to push all payments to participants.

The smart contracts will be created by a contract factory using cloning so each contract will have its own data while sharing the common code.

What if a NFT buyer is hacked and 'bad actor' gets control of ETH address and NFT? Cancel and remint NFT.

If someone sells the NFT do we partial payment at time of transfer? Or just make the payments on the specified day, leaving customers to sort out the value of NFT?

paystream's People

Contributors

craig-iam-smith avatar

Watchers

 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.