Giter VIP home page Giter VIP logo

remitter's Introduction

Byte Masons Salary Manager

Use this contract to simplify paying a big team or many people

Superadmin will ideally be a multisig or governance contract, and manages global state & admin privs. Currency is the address of the currency you're paying people in. MaxSalary is used to mitigate the amount of damage the admin can do. firstPayDay is (in UNIX timestamp) the first day you're paying people. the contract will automatically set the start time to one cycle before. Default cycle is 15 days but it can be whatever. Total Payroll helps the DAO know how much to fund the contract.

All payments are logged in the payments mapping to serve up to employees. workerId is logged with the default wallet for convenience' sake so we can reference the connected wallet from the front end.

The reason for making this contract is reducing the amount of multisig/governance transactions we need to pay people. We just need to fund the payment contract every pay cycle for totalPayroll.

It would be pretty easy to just make the cycles one second and make a streaming contract, but you'd need to divide the salaries by however many seconds

remitter's People

Contributors

0xbebis avatar

Watchers

James Cloos 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.