Giter Site home page Giter Site logo

dividtract's Introduction

Dividtract (Divident Payout Contract)

This is a pet project for getting hands on with SmartContracts development. And may never see the light of day.

UseCase

  • The intent of this contract is to payout dividends to it's investors (A hypothetical set of people).
    • This can be further generalised to all the shareholders in an organisation.
  • The Profit made by an organisation can be transferred to this Contract account & will further be paid out as dividends to all investors.

Functionalities

  • Dividend payout will be triggered as soon as Profits are added to the contract.

  • Once a dividend is paid out, emit an event for the subscribers to make aware of the transaction.

  • addProfits(uint64 profit) public

    • The profits made by an organisation can be depositted in this account by using this method, which will further be paid out as dividends.
  • addMember(uint16 member_id) onlyOwner

    • Only the contract owner can add a member to the table, contingent upon the BoardTable not being full already.
  • registerMember(uint16 member_id, unit64 investment)

    • Once the contract owner has added a member, the member needs to register themeselves by paying in a deposit amount called investment. (no min/max limit on investment)
    • The dividends received by the member will be proportionate to their investment.
    • Dividends can only be paid out to registered members.
  • KickoutMember(uint16 member_id) onlyOwner

    • Only the owner of the contract can kickout a member from the BoardTable.
  • ResignFromBoard(uint16 member_id)

    • Allows a member to resign from the board and make room for new member.

Note:

  • Ir-respective of whether the investor was kicked out or they themselves resigned, their initial investment will be refunded to their address.
  • Currency for this contract is Ethereum.

dividtract's People

Contributors

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