Inspiration
Plutus3 puts you in control of your assets. You hold your keys, meaning you have full autonomy over your investments. No need to trust third-party custodians or worry about centralized control.
What it does
Plutus3 provides a variety of financial products and services, including:
Dollar-cost averaging (DCA): A simple yet effective investment strategy that involves investing a fixed amount of money at regular intervals, regardless of the market price. Grid trading: A more sophisticated trading strategy that involves placing buy and sell orders at predetermined price levels. Strategy trading: Allows users to create their own custom trading strategies using Plutus3's powerful API.
How we built it
The DCA module on Plutus3 uses the following decentralized features:
Smart contracts: Smart contracts are self-executing contracts that are stored on the blockchain. They are used to automate transactions and ensure that they are carried out as agreed.
ChainLink Automation: ChainLink Automation is a service that allows users to automate tasks on the blockchain. It is used to automatically trigger the DCA strategy according to the user's configuration.
ChainLink VRF: ChainLink VRF is a service that provides random numbers on the blockchain. It is used to distribute the actual DCA time within the specified time period. This helps to avoid the problem of multiple users DCAing at the same time, and it also makes the DCA price more random and smooth. ChainLink Data: ChainLink Data is a service that provides price data on the blockchain. It is used to get the price from the oracle and set a certain slippage to trade with Uniswap. This helps to avoid attacks and improve security.
TheGraph: TheGraph is a service that indexes data on the blockchain. It is used to record user investment information and DCA history records.
Challenges we ran into
Decentralized smart contract security: Designing and deploying secure smart contracts is crucial in DeFi, where funds are managed autonomously. We tackled this by using best practices in smart contract development, including thorough testing and audits by independent security firms.
Integrating decentralized oracles: Obtaining reliable and tamper-proof price data for DCA execution is vital. We utilized Chainlink oracles, which provide secure and decentralized access to market data.
Optimizing gas costs: High gas fees on Ethereum can significantly impact user experience and profitability. We implemented gas optimization techniques like batching transactions and using efficient algorithms to minimize gas consumption.
Balancing automation and flexibility: Offering a pre-defined DCA strategy while allowing for user customization required careful design choices. We implemented a modular architecture that balances automation functionality with user-controlled parameters.
User interface and experience: Simplifying the DCA process for users with varying levels of technical expertise was crucial. We designed a user-friendly interface that provides clear instructions and visual representations of investment data.
Maintaining transparency and auditability: Ensuring transparency in the DCA module's execution and maintaining a verifiable record of transactions was essential. We utilized TheGraph to index blockchain data and provide users with readily accessible investment history.
Accomplishments that we're proud of
Completed a transparent decentralized financial management project.
What we learned
Learned to use ChainLink Automation, ChainLink VRF, ChainLink Data to build a safe and reliable decentralized project.
What's next for Plutus3
Develop more decentralized financial strategies.
Log in or sign up for Devpost to join the conversation.