WingRiders DEX lacks support for more complex request flows such as routed swaps, zap-ins, and linked transitions. Use cases can involve advanced exchange strategies as well as multi-asset checkouts
This is the total amount allocated to WingRiders: Chained TurboRequests for Swaps and More.
We will introduce a new intermediary smart contract and modify our batching agent to bring support for seamlessly routed swaps, zap-in, and easier advanced interoperability with other dApps.
No dependencies.
The actual intermediary request output script will be open-sourced under MIT license. However, the other components such as the batching agent and the WingRiders app that will be modified as part of this proposal won’t be open source.
N/A
WingRiders will develop a new Plutarch script that will serve as an intermediary script for request outputs with datum hash forwarding capabilities. This allows extending the core protocol with functionalities such as routed swaps or zap-in.
This will enable several use cases such as routed swaps, zap-in functionality, and improved interoperability with other DApps and DEX aggregators in the Cardano ecosystem. Use cases can involve advanced exchange strategies as well as multi-asset checkouts.DeFi projects can leverage the intermediary script for advanced integrations, while the open-source datum hash forwarding script benefits developers and projects within the ecosystem. Users experience a streamlined process, and Stake Pool Operators witness improved blockchain utility, potentially attracting more users and transactions. Investors benefit from a more robust DeFi ecosystem, contributing to increased adoption and ADA value. The solution aligns with the goals of developers and researchers, fostering collaboration and contributing to the growth of the Cardano ecosystem.
Let’s demonstrate a potential usage on routed swaps.
Imagine a user who wants to swap WRTs for SHEN. The best route to do this is first to swap WRT for ADA and then wait for the first swap to process and then manually do a second swap of ADA for SHEN. This is not the best UX possible, it requires the user to submit 2 transactions and wait in between them.
With the intermediary script, it would be possible for the user to submit one swap request (WRT -> ADA), when it gets processed it creates an output on the intermediary script. This output then gets immediately spent by the batching agent, at no extra cost to the user, creating a new swap request (ADA -> SHEN). That then gets processed and the user receives the SHEN they want. In this case, the user still needs to pay the agent fee twice, but the overall experience is much more seamless, as the user only submits one request and everything else is handled by the batching agent.
Also with sufficient modifications to the WingRiders batching agent, it should be even possible to achieve routed swaps or zap-in, under ideal blockchain conditions, in the same block, making it similar in speed to a normal simple interaction with the core protocol. The agent would simply submit the first batch TX, the spending of the intermediary script, and the second batch TX at the same time, making a TX chain, that has a high probability of getting accepted into one block.
Currently, the design limitations of the WingRiders protocol only allow script outputs with a predefined datum hash. To enable datum hash forwarding, the intermediary script would be parametrized with the script address and datum hash beforehand. They would get stored in the transaction metadata.
That enables the script to retain the necessary data while conforming to the requirements of a predefined datum hash on a request output. Spending this intermediary request output would require creating an output on the script address with the datum hash defined in the parametrization process.
Why Plutarch and not Aiken?
With the advent of Aiken bringing easier and faster development cycles bundled together with smaller script sizes and undeniable performance benefits, it seems like an obvious choice compared to using PlutusTx. However, the decision isn't as clear-cut when it comes to comparing Aiken and Plutarch. Yes, the former offers significantly better tooling support and can be a great choice for developers just starting with the Cardano ecosystem, but ultimately Plutarch allows far greater control over the generated code because of how close it is to the underlying Plutus Core language. Plutarch is the most efficient way of writing smart contracts on Cardano available today if you prioritize performance and want to offer the smallest fees possible.
Accepting the proposal will positively impact the following groups:
The impact will be measured by how many requests will use the new trading capabilities, and how well we can push further advanced interoperability with other dApps - such as an aggregator creating cross-DEX routed swaps using our intermediary request output script.
The script itself will be open-sourced on GitHub and will be documented and all the progress will be shared using our community portal.
As WingRiders, we have a track-proven record of developing within the Cardano ecosystem. Over the years we’ve shown to be at the forefront of technological advancements when it comes to DEXes and Cardano in general. We were the first ones to bring support for stableswaps, have a fully on-chain DAO governance, and recently launched the first trustless non-custodial launchpad. Extending the initial protocol with innovative features this proposal brings is a natural next step for WingRiders’s technical progress and innovation.
Regarding fund management, we adhere to rigorous protocols ensuring robust financial stewardship and accountability. Our practices encompass the maintenance of transparent financial records, periodic internal audits, and strict compliance with financial reporting standards. We understand the imperative nature of prudent fund management and commit to upholding the highest standards of fiscal responsibility throughout the project's lifecycle.
Research and Solution Architecture
Smart-contract Development
Batching Agent Development
Example Use-Cases Integration into the App
Testing, Fine-Tuning and Integration Documentation
Deployment of Final Solution
WingRiders engineering team is composed of experienced professionals in blockchain technology and software development. Our team members stand behind projects like Adalite, Yoroi wallet, firmware for hardware wallets Trezor and Ledger (bringing them to Cardano), blockchain explorer for Emurgo, and a whole plethora of FinTech products.
The proposal budget will be used to cover the cost of engineering and associated Project management
Milestone 1: Research and Solution Architecture
Milestone 2: Smart Contracts Development
Milestone 3: Batching Agent Development
Milestone 4: Example Use-Cases Integration into the App
Milestone 5: Testing, Fine-Tuning and Integration Documentation
Milestone 6: Deploying the Solution
The proposed solution not only enhances the user experience but also extends its positive impact across diverse Cardano community segments. DeFi projects, including aggregators seeking advanced integrations, can leverage the intermediary script for routed swaps across multiple DEXes. The open-source nature of the datum hash forwarding script offers a valuable resource for developers and projects within the Cardano ecosystem, promoting collaboration and innovation. Users benefit from a more streamlined process, requiring fewer manual interactions and resulting in reduced transaction fees. Additionally, Stake Pool Operators (SPOs) witness an improvement in the utility of the Cardano blockchain, potentially attracting more users and transactions, thereby positively impacting stake pool performance. Investors find value in a more robust and user-friendly DeFi ecosystem, contributing to increased adoption and potential appreciation of ADA value. The solution, by fostering collaboration and accelerating development, further aligns with the goals of developers and researchers, ultimately contributing to the growth and dynamism of the Cardano ecosystem.