PayRoot
π Overview
PayRoot is a decentralized system designed to automate employee compensation and customer investment using Taproot Assets on the Bitcoin blockchain. It leverages advanced blockchain infrastructure, automation bots, and decentralized storage to deliver a seamless, transparent, and efficient ecosystem for organizations, employees, and customers.
π¨ Problem Statement
Traditional systems for managing payroll and customer investments are slow, error-prone, and lack transparency. Manual processes delay employee payments and complicate customer engagement, making profit-sharing inefficient. In a decentralized economy, these challenges hinder innovation and scalability.
β Solution
PayRoot solves these issues with an integrated approach powered by Lightning Bot and Taproot Assets:
- Automated Payroll: Real-time compensation based on sprint completions using tokenized rewards via the Lightning Network.
- Decentralized Investment: Customers invest in Taproot Assets and redeem dividends through a transparent, automated model.
- Enhanced Efficiency: Seamless integration with Discord, JIRA, and Lightning Network to streamline operations and improve scalability.
π Use Cases
1οΈβ£ Employee Compensation Workflow
- Flow: Admin creates a JIRA sprint β New users join β Lightning Bot sets up wallets β Sprint completes β Webhook triggers automated payment.
- Impact: Ensures timely, automated payments with minimal overhead.
2οΈβ£ Customer Investment & Dividends
- Flow: Organization issues Taproot Asset β Customers purchase β Profits announced β Users redeem dividends via Discord β Lightning Bot updates wallet.
- Impact: Enables a decentralized, trustless investment model with profit-sharing.
π€ Discord Bot Commands
| Command | Description |
|---|---|
/announce-dividend |
Admin announces dividends |
/auto-sprint-paymnet |
Triggers auto-payment after sprint completion |
/buy-normal-asset |
Purchase Taproot Assets |
/check-normal-asset-balance |
View all Taproot Assets owned |
/check-sats-balance |
Check wallet balance |
/create-normal-asset |
Admin creates new Taproot Asset |
/create-sats-invoice |
Create invoice for wallet |
/withdraw-sats |
Withdraw sats to external wallet |
/check-my-asset-balance |
View personal asset balance |
/redeem-dividend |
Redeem dividend (API in progress) |
π Tech Stack
- Blockchain: Bitcoin (Taproot Assets)
- Payments: Lightning Network + LNBits
- Bot Automation: Lightning Bot (custom built)
- Cloud Infrastructure: Voltage Cloud
- Communication & UI: Discord
- Sprint Management: JIRA
β οΈ Challenges Faced
- Taproot API integration was complex and unstable.
- Designing a scalable architecture posed significant hurdles.
- Bitcoinβs latency affects asset confirmation speeds.
- Dividend redemption API is incomplete due to time constraints.
π Getting Started
π§ Installation Steps
Clone the repository
git clone https://github.com/mktetts/PayRoot.gitNavigate to the bot directory
Install uv package manager
Sync dependencies
uv syncCreate
.envfile using.env.exampleand fill in all variablesStart the bot
python main.py
Log in or sign up for Devpost to join the conversation.