Giter Club home page Giter Club logo

splitter-contract's Introduction

Payment Splitter with NFT(ERC721) integration.

Important!!!

This smart contract system is outdated. Please message me before integration!

How does the Payment Splitter work?

Screenshot The contract takes in all types of ERC20 and ERC721 Tokens. It distributes them according to predefined amount of shares to predefined amount of wallets.

Example: In this example NFT/NFTs refers to an ERC721 token.

Let's imagine we have Person 1, Person 2 and Person 3. They made an NFT collection together, and decided to pay themself in ETH and NFTs. Now they want to split the team allocation according to their shares. Person 1 has 50 shares Person 2 and 3 have both 25 shares. They set up a payment splitter contract with these shares. Now every time an NFT is sent to the contract via SafeTransfer The contract tracks the NFT. In our example the contract received 20 NFTs and 1 ETH. Now Person 1 can call the "withdrawal" function on the frontend, or call the "releaseERC721" to received 10 NFTs. He can also call the "release" function, so he can claim 0.5 ETH from the contract. Person 2 and 3 can both withdrawal 5 NFTs and 0.25 ETH.

Usage

Screenshot

Security

This project is maintained by Iris, and developed following our high standards for code quality and security. Iris Payment Splitter is meant to provide tested and community-audited code, but please use common sense when doing anything that deals with real money! We take no responsibility for your implementation decisions and any security problems you might experience.

The core development principles and strategies that Iris Contracts is based on include: security in depth, simple and modular code, clarity-driven naming conventions, comprehensive unit testing, pre-and-post-condition sanity checks, code consistency, and regular audits. First audit at 21.10.2022

Contact

Join our Discord (will be moved onto Iris when group chat is ready) or send me a message on Iris.

splitter-contract's People

Contributors

leplinus 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.