๐คAI Powered Intents
An introduction to where Aperture is headed (our future roadmap for AI Powered Intents)
Check out our landing page and Litepaper for the latest on Aperture's AI Powered Intents Vision: https://www.aperture.finance/ https://medium.com/@aperturefinance/apertures-litepaper-5c988ead5b78
Check out "the end to end journey of an AI Powered Intent" video https://x.com/ApertureFinance/status/1790042679503470791
Roadmap Introduction
Aperture is building a novel chatbot UX powered by an underlying Intents infrastructure that will enable users to โdeclare their goalsโ in natural language and tap a network of solvers to receive better execution and better pricing than what is possible under the current transactional paradigm.
The UX: Aperture LLM powered by an Intents DSL
To begin weโll start with the cornerstone of any mass adoption movement: the user experience (UX). The current DeFi UX is centered around a transactional approach that requires users of varying technical acumen to sign off on a delta or state change hoping the change yields the โend stateโ they had in mind. With Intents we put that โend stateโ front and center as the focal point of the user experience.
By using the power of modern LLMs and a proprietary Intents oriented programming language we seek to enhance the expressibility of user Intents. This will allow users to articulate their transactional goals and preferences more intuitively and efficiently, thereby tapping into blockchainโs potential with greater ease and precision (which is hopefully a boon for greater adoption).
The best approach to allow a user to declare their desired end state is to remove the constraints of โknobs and buttonsโ and allow the user to express in natural language what they want. Of course this begets a need to then translate natural language into blockchain code โ this is where the DSL or Domain-Specific Language comes in.
A Domain-Specific Language (DSL) is a specialized computer language tailored to a particular application domain, distinguishing it from General-Purpose Languages (GPLs) that are applicable across a broad spectrum of domains. The design and utilization of DSLs are integral to domain engineering, often involving the creation of new DSLs or the adaptation of existing ones to express problems and solutions more effectively within a specific domain.
In Aperture, the DSL is crafted with a focus on human readability, crucial for supporting clear and intuitive intent expression. This approach differs from other DSLs that may prioritize aspects like programmatic efficiency or machine-level optimization.
On Aperture the LLM bridges the gap between technical functionality and user-friendly interfaces by allowing the user to express in natural language their intent and having that same intent mirrored back to them in a highly readable DSL that can then be served up to solvers as the โdeclaration of truthโ from this user.
Letโs use a real world analogy: The LLM to DSL translation UX is similar to a customer placing an order at a pizza restaurant over the phone. The customer might order in very colloquial language โ โGive me your pizza with all the meats in whatever your largest size isโ. The operator on the other end might mirror back to them โDo you want our Meat Loverโs pizza in an Extra Large?โ. The user easily understands this conversion and agrees โ โYes, I didnโt know the name for it but thatโs the one I want.โ
On-chain this interaction would play out in a similar manner. The user might start by declaring their end goal โ
โCan you rebalance my ETH-GMX LPs across all my EVM chains to be 80% concentrated on the highest performing setup and the remaining 20% of my LP capital to be evenly split across the remaining pools?โ
The DSL translation might mirror back to the user โ
Eligible assets: ETH-GMX pairs on Mainnet, Arbitrum, and Avalanche
Actions Permitted: Bridge, Remove liquidity, Swap ETH or GMX, Add Liquidity
End Goal 1: Rebalance liquidity positions to concentrate 80% of eligible asset capital on the position with highest spot APR based on data from APY Vision.
End Goal 2: Rebalance liquidity positions to concentrate 20% of eligible asset capital across the existing pools not used in End Goal 1.
Sign Intent declaration if correct
The LLM conversion will codify colloquial language into the standardized terminology of the DSL which can be leveraged by solvers in a predicable and replicable manner.
The Underlying Infrastructure
The Intents-Infra can be broken down into several components:
Intents Clearing House (Mempool): this serves as a preliminary staging area for user intents. It is designed to efficiently organize and queue these intents for processing, using algorithms that prioritize based on various criteria such as urgency and resource requirements. The Clearing House ensures the secure and orderly management of intents before they are committed to the blockchain.
ZK-Simulate for Data Validity: this is a required resource to validate certain intents and corresponding solutions that will rely on off-chain data. A zero knowledge proof can be used to verify the validity of this data. Utilizing advanced cryptographic tools such as Brevis or Axiom, Aperture can generate ZKPs for historical on-chain data that form part of the solverโs proposed solution. This method allows for the rigorous verification of the solverโs outputs, ensuring that they are accurate, complete, and comply with the specified constraints and intents, without compromising the confidentiality of the transaction data.
Verification Smart Contracts: each type of intent use case will require a smart contract to simulate, verify, and police the proposed solution.
Ranking and Execution Engine: each group of verified intents will need to be ranked based on outcomes and the solver score and then subsequently executed. A crucial aspect of this execution engine is its ability to enforce accountability. Should any nefarious activities occur, such as reverted transactions or other malicious events, the execution engine is designed to penalize the responsible solvers through slashing or other means. This not only safeguards the integrity of transactions but also deters potential malicious behavior by solvers.
The Application Layer: Solver DAOs
The Solver DAO Network is a unique application layer built on top of the Intents-Infra. The Aperture Intents-Infra enables Solver DAOs to focus on enabling and solving unique Intents based use cases without having to worry about the underlying executional needs.
The relationship between Solver DAOs and Aperture
Solver DAOโs gain access to the user Intents found within Apertureโs Clearing House by staking a requisite amount of $APTR and $ETH. A Solver DAO can correlate to one large professional solver with a proprietary solution or a network of smaller Solvers.
New Intent solutions can come from Aperture or a third party Solver DAO. Solver DAOs add value by enabling the new Intent use case. This would require submitting the necessary business logic to fit into Apertureโs modular design. Once this has been built the use case is now โdeclarableโ from the Aperture Intents Interface or a 3rd party interface spun up by the Solver DAO.
The Aperture DAO will provide $APTR grant assistance to Solver DAOโs looking to enable new Intent use cases.
How will Solvers compete and what types of Solverโs might exist?
On-Chain vs Off-Chain
In the competitive Aperture Intents ecosystem, Solvers differentiate themselves by the methods they employ to post solutions. While not mandatory, smart contracts are preferred for their scalability and speed. However, off-chain scripts are equally adept at quickly posting solutions, offering an alternative route. Certain declared Intents might even have characteristics that would enable solvers to manually submit solutions (e.g. a seller looking to arrange a large OTC transaction with a 3 day bidding window).
Maintaining Alpha
For Solvers with true โalphaโ or proprietary solution-generating methods, they can avoid utilizing a SC to generate their solutions and can instead rely on Apertureโs ZK Verification process to build trust around their off-chain script enabled solution. This will bolster the flywheel effect for onboarding solvers (sustainable business solutions, attracts more revenue, attracts more solvers).
Solver Vaults
Although not explicitly required a Solver in a given ecosystem could also choose to crowd fund their staking requirement via a vault mechanism in exchange for a rev-share on their solver proceeds. Each Solver DAO can open source a rev-share vault contract for their solvers to implement (should they desire bootstrapped funding).
An Example: Airdrop Claim Intent
To make things more digestible letโs take the example of the โairdrop claim intentโ proposed in our first blog post. How would a user a declare a claiming intent? How could a Solver DAO specializing in claiming tap Apertureโs Solver DAO Marketplace?
The user would start by declaring in natural language:
โClaim all eligible airdrops on my behalf, including gas cost associated with claiming, in exchange for a 1% or less finderโs fee.โ
The chatbot might ask clarifying questions to further tease out the userโs declaration.
Once this clarification is done the intent would be translated from natural language to the codified Intents DSL and sent back to the user in a readable format for them to verify. From here the Intent expression will be posted into the Intents Clearing House where any eligible Solvers could view the userโs declaration.
Any Solver could now view the userโs address and cross-reference it with any claimable airdrops or rewards that are eligible for said address. A permit function powered by an account abstraction wallet would allow for Solvers to claim any airdrops on the userโs behalf. Solvers would compete amongst themselves on the โfinders feeโ and their overall knowledge of airdrops. Now โ the beauty of Intents, there could be multiple solutions that win out and are executed if Solver A covers a Dymension airdrop and Solver B covers a Celestia airdrop then both Solvers could win a finderโs fee from our user.
The proposed solutions would all be simulated by Apertureโs smart contract to verify the proposed outcome and then subsequently all verified solutions would be ranked. Aperture would then execute on the userโs behalf returning all airdrops!
Last updated