-
-
Login with mnemonic
-
View list of organizations
-
Create organization
-
Overview of organization
-
MultiSig Contract Under the Hood
-
Multisig Contract Creation
-
Pending Confirmations on MultiSig Contract
-
Employee List
-
Payroll Contract Under the Hood
-
Payroll Contract Under the Hood
-
License Contract Creation
-
License Contract Under the Hood
-
License Contract Under the Hood
-
License Contract Under the Hood
-
License Contract Under the Hood
About the Project
Inspiration
The growing reliance of companies on cryptocurrencies as a primary asset highlighted a significant gap in the market: a robust financial accounting tool specifically designed for managing these digital assets. Realizing that no such product existed, I was inspired to create a mini-version of financial accounting software tailored for companies that use cryptocurrency as their main asset. This tool would not only help in managing digital currencies but also bring the rigor and clarity of traditional financial management systems to the dynamic world of crypto assets.
What I Learned
This project deepened my understanding of blockchain technologies and smart contract development. I explored new tools and platforms, including Polygon chain, and learned how to integrate external data feeds like Chainlink into our application to enhance its functionality.
Core Functionality
Our application is designed to cater to companies utilizing cryptocurrencies, providing essential tools tailored for their unique financial operations. Here are the three main functionalities currently available:
Payroll
Our payroll system allows for the disbursement of salaries in ETH, calculated against fixed USD amounts set through a multisig contract. This feature leverages the Chainlink AggregatorV3 to ensure accurate and real-time conversion of cryptocurrency values, providing a reliable and transparent way to manage employee salaries in the volatile crypto market.
Agreement
The agreement functionality employs a custom data feed that returns a boolean value (true or false), enabling the execution of contracts based on verified responses. This setup ensures that agreements are automatically enforced only when the predefined conditions are met, thereby enhancing compliance and trust between parties.
Streaming License
This feature is designed for managing royalties or revenue sharing. It accepts 'shares' and 'owners' information, utilizes Chainlink data feeds to fetch real-time USD payment data, and distributes these payments proportionally among the owners through the payroll contract based on their shares. This functionality is particularly useful for companies that need to manage ongoing payouts linked to revenue or usage metrics.
Multisig Transaction Verification
A critical aspect of our application is the use of multisig (multi-signature) for all transactions, ensuring enhanced security and control. This means that all designated owners must verify any transaction before it can be executed, thus preventing unauthorized access and ensuring that all financial movements are collectively authorized.
How I Built It
The application was meticulously built with a combination of technologies tailored to optimize performance and security:
- Blockchain: We used the Polygon chain for deploying smart contracts, benefiting from its scalability and lower gas costs compared to Ethereum mainnet.
- Smart Contracts: Developed using Solidity with Hardhat as the development environment to facilitate testing and deployment.
- Frontend: Built with React to provide a dynamic and responsive user interface.
- Backend: Implemented in Golang, known for its efficiency in handling concurrent tasks, which is crucial for processing transactions and data securely.
- Data Feeds: Integrated Chainlink Data Feeds and Chainlink Aggregators to convert ETH to USD reliably, ensuring accurate financial reporting and analysis.
Challenges Faced
We encountered several hurdles during the development:
- Chain Instability: The Amoy chain's instability posed significant challenges, affecting transaction processing and data integrity.
- Scale of the Project: The ambitious scope of the project meant that not all planned features could be implemented within the initial timeline. However, this has only strengthened our commitment to continue developing and enhancing the application.
The Outcome
Despite the challenges, the application now allows companies to manage their cryptocurrency holdings more efficiently and securely. With the integration of smart contracts on the Polygon chain and real-time data conversion using Chainlink, our app ensures that all transactions are not only transparent and immutable but also accurately valued in real-time against traditional currencies.
Future Plans
We are dedicated to ongoing development and improvement of the app. The next phases of the project will focus on stabilizing integration with the Amoy chain and expanding the app’s features to provide even more value to our users.
Built With
- chainlink
- ethers
- golang
- hardhat
- nestjs
- node.js
- postgresql
- react
- solidity
Log in or sign up for Devpost to join the conversation.