Last updated 4 months ago
Utilization of liquidity on Cardano will stay low as long as there is liquidity fragmentation, no interop between different types of liquidity and exploitation of liquidity by MEV seekers
This is the total amount allocated to Universal Liquidity Composition and MEV resistance framework for DeFi. 0 out of 5 milestones are completed.
1/5
Abstract Temporal Liquidity Book Implementation
Cost: ₳ 75,000
Delivery: Month 1 - Apr 2024
2/5
Support of Common Liquidity Types, Documentation, and Examples
Cost: ₳ 75,000
Delivery: Month 2 - May 2024
3/5
Order Steering Support in Rust Library and Data Accessibility Service
Cost: ₳ 70,000
Delivery: Month 3 - Jun 2024
4/5
Decentralized Execution Assessment SDK
Cost: ₳ 35,000
Delivery: Month 4 - Jul 2024
5/5
Final
Cost: ₳ 45,000
Delivery: Month 5 - Aug 2024
NB: Monthly reporting was deprecated from January 2024 and replaced fully by the Milestones Program framework. Learn more here
Open off-chain framework based on years of DeFi research that allows to match any type of order or pool with one another to optimize execution price and fee while minimizing room for MEV.
No dependencies.
Fully open-sourced. MIT Licence.
The UTxO model holds promising prospects for on-chain trading but falls short of the ideal. The challenge lies in fragmented liquidity trapped within various contracts and governed by closed execution systems, often referred to as 'batchers.' Additionally, due to the closed nature of these systems, end users are deprived of information regarding the execution of their orders, creating a significant potential for abuse through mechanisms such as MEV, frontrunning, and other types of attacks. To address these issues, we present a framework for universal liquidity aggregation and transparent execution, which can be adopted and utilized by any dApp team.
Universal Liquidity Composition: Temporal Liquidity Book
We propose a solution for universal off-chain liquidity aggregation based on a simple idea: all liquidity available on the market (AMM, market\limit orders, programmable orders etc.) can be projected into a 3-dimensional space: Price, Volume, and Time. Thus matchmaking logic for all types of liquidity can be described with a universal set of rules.
The implementation will be done in Rust programming language and will be optimized for efficient memory utilization to support the facilitation of large sets of liquidity chunks.
MEV resistance: Order Steering and Decentralized Execution Assessment
Universal composition of liquidity won’t be possible without MEV resistance, because MEV can siphon all the gains of liquidity aggregation. Our anti-MEV solution is based on two pillars:
Off-chain part of order steering will be implemented in Rust as well. Execution Assessment will be implemented as a combination of off-chain service to aggregate relevant on-chain data and provide an easy interface to query it and a client SDK in Typescript to perform assessment itself on the client side.
Explore more in the Spectrum Bloom: A self-developing, sustainable, eUTxO-native framework for decentralized finance white paper.
To measure the impact we will use the following metrics:
The outputs will be released on GitHub and will be open to anyone — the broad documentation of how to use and integrate the solution. Everything will be broadcast through Spectrum Labs Community Channels (such as Twitter, Discord, and Telegram).
We will share those outputs via Spectrum Labs community channels (such as Twitter, Telegram and Discord).
Title: Abstract Temporal Liquidity Book Implementation in Rust
Description: Implementation of the matching engine plus all abstractions to facilitate processing of real orders and pools from the concrete network (including abstractions for parsing of orders/pools from the network), an interpreter that evaluates strategies generated by the engine into transactions, hot storage for UTxOs, a tracker of on-chain entities such as pools and long-lasting orders)
Outputs:
Acceptance criteria:
Title: Support of Common Liquidity Types, Documentation, and Examples
Description: To work properly with different liquidity types, support for different types of orders and liquidity pools is required, because the execution engine is universal this task boils down to the implementation of main type classes describing how to parse orders and pools from chain and how to interpret them into transactions again. This way the actual aggregation of different liquidity sources will be possible. Also, documentation and wiring of a working off-chain bot will be provided as an example of library usage.
Outputs:
Acceptance Criteria:
Title: Order Steering support in Rust library and data accessibility service
Description: Order Steering support will be added to the tracker and the interpreter supplied with the library. To efficiently assess execution a configurable off-chain indexer service is needed to query data from the client. It will be included in the library or published in a separate repository along with documentation that will describe how to tweak, configure, and deploy the service.
Outputs:
Acceptance Criteria:
Title: Decentralized Execution Assessment SDK
Description: Typescript SDK for DEA will be supplied as a part of the library. Along with documentation specifying methodologies of assessment implemented in the SDK.
Outputs:
Acceptance Criteria:
Outputs:
Acceptance Criteria:
Leaders
Ilya Oskin
Tech Lead
Engineering Leader with 6 years of experience in the blockchain industry. Keen on functional programming. Took part in the development of the reference node of the eUTxO-based blockchain Ergo and its explorer. Designed and developed the first version of the ErgoDEX protocol from scratch. The main architect of the Spectrum Finance Cardano AMM. Lead researcher and developer of the Spectrum Network
In the scope of the proposal, Ilya is responsible for leading the development of the whole project's outputs
Yasha Black
Product Lead
Product manager, product analyst, UX/UI, and JavaScript developer with 7 years of experience in the IT industry. Built a strong product team, and designed the first version of the Spectrum Finance user interface.
In the scope of the proposal, Yasha is responsible for funds management, as well as for the control and acceptance of final works
Core team
Timofey Gusev
Lead Software Developer
Developed smart contracts and execution bots for Ergo and Cardano sides of Spectrum Finance protocol (Scala, Haskell, Plutus). Designed and developed an internal Cardano explorer.
Timofey is responsible for implementing the proposed solution in the proposal's scope.
Alexander Romanovsky
Lead Core/SC Developer
Developed smart contracts and off-chain services for Ergo and Cardano sides of the Spectrum Finance AMM protocols (Scala, Haskell, Plutus, Plutarch).
Alexander is responsible for implementing the proposed solution in the proposal's scope.
Ruslan Salakhov
Lead TypeScript Developer
Build the architect of the current Spectrum Finance interface. Has 7+ years of experience as a JavaScript developer and 5 years in building interfaces and tools in fintech.
Ruslan is responsible for implementing the proposed solution in the proposal's scope.
Alex Oranov
Senior Blockchain Researcher
Has 5 years of experience in research and development, including scientific work, industrial solutions related to artificial intelligence, and data analysis. Participated in the smart contracts design and development of the Yield Farming protocol (Ergo side). Researcher and one of the Whitepaper authors of the Spectrum Network protocol.
Alex is responsible for implementing the proposed solution in the proposal's scope.
Milestone 1
Duration: 1 month.
Monthly costs:
Total milestone costs: $29,000
Milestone 2
Duration: 1 month.
Monthly costs:
Total milestone costs: $29,000
Milestone 3
Duration: 1 month
Monthly costs:
Total milestone costs: $29,000
Milestone 4
Duration: 1 month
Monthly costs:
Total milestone costs: $29,000
Final Milestone
Duration: 1 week
Monthly costs: $0
Total milestone costs: $0
All the works for the final milestone will be volunteered by Spectrum Labs founders.
Total Budget: $116,000
For now, the ADA price is close to $0.4 per ADA. We set the budget of this proposal to 300,000 ADA to mitigate price fluctuation risks.
We estimated the cost of the project based on average dev salaries which is $7,000-10,000k for 5+ years of experience (senior software developer grade). Our team is blockchain and Cardano-focused and obtained most of the experience in the crypto industry so the domain-specific knowledge is sufficient to tackle the most challenging industry problems.
The value of the project can be considered from different angles. First of all the implementation of the project if onboarded by different currently existing dApps will bring more transparency to the space and hence make those dApps more valuable for people by eliminating the need to trust the close and permit systems. The composability feature will allow us to save millions of value by matching orders with the best possible price within the ecosystem in the long run.
The MEV and other attacks will be reduced to a minimum which also will save a lot of value for all the Cardano DeFi users.
Lastly, the decentralized nature of the framework can become a huge selling point both for any specific dApp and for the ecosystem as a whole to onboard new users to Cardano DeFi.