Last updated a year ago
Current DeFi protocols lack composability and rely on a variety of centralized actors (i.e. oracles, batchers). Such resilience/availability risks are unsuitable for an alternative financial system.
We propose a family of radically permissionless and composable p2p-DeFi protocols that forgo reliance on permissioned off-chain software, in favor of p2p-driven liquidity and price discovery.
This is the total amount allocated to P2P-DeFi Protocols.
fallen-icarus (Github)
Note: we are a small, two-person team that prefers to maintain public pseudonymity. Our pseudonyms are consistent across all platforms, and we are more than happy to verify our identities with the Catalyst administrators on a need-to-know basis.
Aiken - The core of this project is a collection of on-chain validator & minting policies written in Aiken. Although all four protocols are currently working MVPs, we will not consider them ready for mainnet deployment until Aiken reaches a stable level of development. Nonetheless, the current state of Aiken is plenty enough for us to continue development.
Project will be fully open source.
Decentralized Finance (DeFi) has long sought to provide an alternative financial platform for the disenfranchised or underbanked peoples of the world. Although DeFi has come a long way, it still suffers from issues that mostly stem from the same critical tradeoff: permissioned actors.
Availability/Resilience
An alternative financial system will likely be perceived as a threat by those in positions of high (legacy) power, who may employ a variety of regulatory or cyber-offensive tactics to disrupt it. To resist such disruptions, DeFi protocols must strive to maintain rigorous security and availability guarantees, ideally as much as the underlying blockchain. Although many DeFi protocols offer reasonable security guarantees, the same cannot be said for availability:
This project solves the availability concern by forgoing reliance on off-chain information in favor of endogenous price discovery and NFT-mediated indexing.
Custody and Composability
Efficient use of (limited) transaction space is critical to scaling decentralized protocols. A key idea here is that simple pieces of logic can be composed with one another, resulting in complex and expressive protocols. The trick is in designing these simple pieces holistically, such that they do in fact compose well with each other. Unfortunately, this is not so easy in practice, and is largely a consequence of - you guessed it - permissioned actors.
Since most DeFi applications are designed by separate teams and usually rely on separate aggregators/batchers/LPs, the resulting protocols are not easily composable. There may be some instances where composition is achievable through hacky/low-level transaction building, but this is far from an optimal solution. Additionally, permissioned actors must be incentivized, and are mostly done so through extra fees. These "protocol" fees are usually about an order of magnitude higher than the underlying transaction fee, which is less than ideal.
This project achieves composability by taking a holistic approach to eUTxO-based DeFi. The requirements of an entire financial stack are considered, and are balanced with the constraints of a fully p2p architecture. A key feature is that delegation control is never sacrificed.
The P2P-DeFi Protocols project seeks to establish the basic building blocks of p2p finance on Cardano. it is a family of synergistically composable DeFi protocols with high security and availability guarantees. Currently, it is composed of four core protocols:
All four of these are already working prototypes. For more details on each protocol, please visit the respective Github repos linked above.
Here are some high-impact features shared by all four protocols:
For a full list of features shared by all p2p-DeFi protocols, please refer to the broad overview document here. The scope of this proposal is to continue the development, documentation and peripheral support of the four protocols.
Fee and Execution Benchmarking: The protocols' efficiency is measured by benchmarking transaction fees and CPU/memory usage. These metrics will be concisely tabulated for individual protocols, as well as for more complex compositions. Since transactions on Cardano have CPU/memory limits, lower resource utilization results in higher throughput and composability. Adding features while keeping resource usage at a minimum is a prime indicator of success.
Github Activity: Collectively, the four protocols already have 52 stars (and counting) on Github, and many accounts are following the development of the protocols. Some have even begun contributing to the project (i.e. Cardano-Loans Aiken reimplementation). An increasing number of engagements or collaborations on Github is an indicator of adoption and success.
Developer Adoption: This project has already inspired some developers to adopt/modify its design patterns for their own protocols (i.e. Val-U-Swap). As more outside projects make use of the protocols' design patterns, more developers will cooperate and coverage on best-practices or optimal design patterns. This too, is an indicator of adoption and success.
Community Feedback: Quantitative interest and qualitative feedback of the community is measurable on social channels like Twitter. Community feedback and support is key to the success of the project's vision.
Technical Documentation - As development proceeds, thorough technical documentation and changelogs for each of the four protocols will be continuously updated on Github. This will include:
Demos & Tutorials - User-friendly written and video tutorials will be created for each of the four protocols. They will start simple, where each protocol is used in isolation, and progress to more advanced demos where the protocols are composed with one another.
Design Standardization - Certain design patterns shared by all four protocols (i.e. Beacon Tokens) may be of independent interest to the broader community of eUTxO developers. Through further R&D, we may extract a generalizable pattern for such novel techniques and standardize them through the CIP process. These can also be published on existing developer repositories, such as the Cardano Developer Portal.
Social Media Outreach - Social media platforms like Twitter will be leveraged to announce progress updates, receive feedback, and engage with the community of users and developers.
In-Person Presentations - Presenting at Cardano-specific conferences or meetups is an excellent opportunity for real-time Q/A and feedback from a technical audience.
The team behind this project has already produced working prototypes for each of the four proposed protocols, and in doing so has attracted wide community support to continue their efforts. Up until now, development has been entirely self-funded.
Due to the fully open source nature of this project (and no "dApp"-specific tokens), there is no way for the team to profit directly, even upon widespread adoption. That being said, and considering the support for the team's accomplishments thus far, requesting community funds seems appropriate at this point in time.
We believe our track record is an adequate testament to our commitment and ability to execute on the project.
Research & Development
Each of the four protocols are already working MVPs. They will continue to be refined/optimized, the specifics of which are discussed in the milestone section, below. The chief focus of our R&D and refactoring efforts is:
Feasibility is validated through rigorous benchmarking of deposit and transaction fees, CPU/memory utilization, and number of Beacon queries. New features will never sacrifice the core properties of p2p-DeFi.
Unified CLI Program
A terminal-based interface will be developed to interact with the four protocols, and will serve as the minimum viable UI for early adopters. It will support using each protocol individually, composing transactions with multiple protocols, and querying beacon tokens via a pluggable API.
Feasibility is validated by ensuring all the protocols' functionalities are accessible through the CLI. User-friendliness based on community feedback.
Documentation & Support
Architectural decision-making and protocols' logic will be thoroughly documented to foster collaboration with a wider community of developers. Written and video tutorials will be created to help establish a user base. The feasibility of our approach will be validated by feedback from users and developers.
Milestone 0: Preliminary Refinement (~8 weeks)
This is the time between proposal submission and voting results. It will be spent finalizing the next iteration of Cardano-Loans (here), creating an Architectural Decision Record (ADR) for each protocol, and updating the overview document to reflect the newly discovered commonalities. If this gets done in less than 8 weeks, the team will proceed with the following milestones ahead of schedule:
Milestone 1: Cardano-Swaps (~6 weeks)
Milestone 2: Cardano-Loans (~8 weeks)
Milestone 3: Cardano-Options (~7 weeks)
Milestone 4: Cardano-Secondary-Market (~7 weeks)
Milestone 5: Unified CLI Program (~6 weeks)
Note: the team may accomplish their milestones sooner than anticipated. This timeline was estimated liberally to ensure the team has the flexibility to explore novel eUTxO design patterns.
Future Directions (beyond the scope of this proposal):
Deliverables/Outputs
Completion of each milestone will be marked by the presence of:
The final milestone will culminate with a unified CLI program capable of simple and complex (composed) transactions, and pluggable support for querying Beacon Tokens (via Blockfrost, Koios, or any API of the user's choice). Tutorials/demos will be provided.
Intended Outcomes
Milestones 1-4 will deliver refined versions of each protocol, along with thorough documentation detailing protocol logic, architectural decision-making, benchmarks, contract blueprints and tutorials/demos. The idea is to make every piece of this project as accessible as possible to users and developers alike, and to accelerate the exploration of novel eUTxO architectures.
Since the four core protocols are already working prototypes, the team is well positioned to focus its efforts on holistic deliverables: enhancing efficiency/composability, refining technical & support documents, and developing a unified CLI.
Total Budget: $145,080 / 483,600 ADA (@ $0.30 per ADA) / 9 months
Note: 9 months includes 2 months between proposal submission and voting results, plus 7 months after voting results. The team will treat the two month interim as if they are funded, and will share their work accordingly.
Breakdown:
Full-time Protocol Architect & Developer: $65/hr x 1560 hours = $101,400
Full-time Technical Writer & Admin - $28/hr x 1560 hours = $43,680
The team is based in the US, and has priced their time accordingly.
This proposal offers an excellent value for money to the Cardano ecosystem. For the price of one and a half developers, we can build a set of protocols that empowers users to form an endogenous economy on Cardano. One that is decoupled from the whims of the legacy financial system, and is secure, available, and 100% permissionless.
Moreover, this project heavily leans into previously unexplored eUTxO design principles (i.e. Beacon Tokens, Stake Key Overloading, e.t.c.) that may help advance the state of the field. The team has a reasonable expectation that their R&D efforts will be of interest to the eUTxO developer community at large, particularly with respect to composability.
We are a two-man team based in the US:
@fallen-icarus: Protocol Architect and Lead Developer
After over two years' experience with PlutusTx and Aiken, fallen-icarus has developed a deep understanding of Cardano's eUTxO model. As a pioneer of the Beacon Token design pattern, he has a proven ability to think outside the box and develop novel asset-oriented programming techniques.
@zhekson: Technical Writer and Community Advisor
A longtime member of the community, zhekson has demonstrated his commitment and technical expertise in Cardano. He is passionate about distilling high-impact technical concepts for the masses, and doing so in an easily digestible manner. He actively engages with the community on Twitter, is a top contributor to the Cardano Stack Exchange, and operates a productive stake pool.