Intent-Based Active Liquidity Management

Formation of Intents

The formation of intents is a critical precursor to their validation and eventual execution by the decentralized node infrastructure. This architecture facilitates complex decision-making processes off-chain while maintaining the transparency and security inherent to blockchain transactions.

Intent Creation and Signalization

  1. Forming Intents with Structured Requests

    • User Actions: In Clip Finance user's primary actions are: depositing, collecting rewards, or withdrawing assets. The user's intent in either action is clear and straightforward, intending either to increase their position in a particular liquidity pool, collect the accumulated rewards, or retrieve their assets.

    • User Experience: From the user's perspective, the process remains straightforward: Users use the front end to deposit, harvest, or withdraw. The complexity of intent architecture, strategy formation, and optimization for market conditions is abstracted away, and handled by the platform's off-chain and on-chain components.

    • RPC: Though forming structured RPC requests users specify the intent's nature. This means that even without a Clip Finance custom-built front-end, users can directly communicate with the smart contracts, as long as the node network is operational.

    • The request structure adheres to a predefined schema that ensures all necessary information is included for the intent's formation, validation, and execution.

  2. Communicating Intents to the Validation Network:

    • Once an intent is formed, it is communicated to the Clip Finance validation network via an RPC call. This network consists of nodes validating the intents against the current state of the blockchain and the Clip Finance protocol rules.

  3. Validation and Transaction Preparation:

    • Upon receiving an intent, the validation network processes it through a series of checks to ensure its legitimacy and compliance with protocol constraints. This includes verifying the sufficiency of funds for deposits or withdrawals, correct fund distribution across pools, the latest price per share, possible swaps, and the validity of the target liquidity pool.

  4. Executing Intents on the Blockchain:

    • The broadcasting process is conducted either by the user or execution layer of Clip Finance maintaining a decentralized and secure communication channel between the proposer, validator, and execution layer. The prepared transaction is then broadcast to the blockchain network for execution.

  5. Integration with Clip Finance Smart Contracts:

    • The entire process, from intent formation to blockchain execution, integrates seamlessly with the Clip Finance smart contracts. These contracts act as databases recording and securing on-chain user data. Additionally provide protocol-specific interfaces to perform operations, ensuring that intents are executed according to the defined rules and parameters.

Last updated