Liquidity Positions

Liquidity Positions: Unlocking Conditional Market Making

Dextr introduces the concept of Liquidity Positions, which are smart contracts empowering LPs with customized market-making strategies using Hooks.

Hook: A customizable module that plugs into the Dextr AVMM framework, enabling specific functionalities or strategies for liquidity pools and trading.

Key Features:

  • Customization with Hooks: LPs can utilize hooks to customize their Liquidity Positions with conditional logic, enabling strategies aligned with individual risk tolerance and market expectations.

  • Multiple Positions per Pair: LPs can create multiple Liquidity Positions for the same token pair within the protocol. The LPs can leverage this to define various price ranges for the same token pair.

  • Active Positions Require Reserve Balance: To ensure operational integrity, a Liquidity Position becomes active only when the LP adds assets to the liquidity reserve.

  • Loss Prevention Safeguards: Built-in logic helps protect LPs from losses by stopping token sales below their average purchase price within set price ranges. LPs can also set a 'Take Profit Percentage,' ensuring that their tokens are only available for sale when the price is high enough to make a profit (determined by "Take Profit Percentage) above the average buying price..

  • Automated Profit Capture: Offers an automated profit capture system using REP points balance. If, for a trade, multiple eligible LPs are offering the same fee discount, the LP with the highest REP score gets priority, allowing them to buy or sell before lower-ranked LPs, potentially capturing better profits. For example, suppose multiple LPs have matching discount percentages and sufficient liquidity balance, the LP with the highest REP points will execute the trade first, ensuring they capture profits ahead of lower-ranked LPs.

Introducing the First Hook: Dollar Cost Averaging (DCA)

Dextr introduces its first strategy hook: Dollar Cost Averaging (DCA) . This innovative Liquidity Position enables LPs to apply DCA principles for strategic management of liquidity depth. LPs input specific parameters to configure their DCA strategy. Here's how it works:

Functionality
Parameters Involved
Default Property

Concentrated Liquidity

Upper Bound Lower Bound

Common Range for Buying & Selling

Take Profit

Profit Percentage

Minimum: 0%

Liquidity Allocation

Token Type

Threshold Type

Inbound Token Max USD token swap value

Dynamic Fees

Fee Discount Percentage

Minimum: 0% Maximum: 100%

Order flow Identification

Discount Applicability

Applicable to All

Price Discovery

Single Source Multiple Sources

Global Average (Oracle feed)

Discounted Fee

Max LP Fee

Fee Discount %

LP Fee Entitlement

Static LP Input | Dynamic, Smart Contract Calculation

Based on the inputs to the Liquidity Position parameters, the protocol calculates the following:

Take Profit Price: Every time an LP settles a trade, the weighted average buying price for the incoming asset is updated. The LP will only be considered for settling the trade if:

This will ensure that the LP never settles the trade in loss i.e. below the price at which the buy trade for the same asset was settled

Discounted Fee: This fee discount applied to a trader is calculated by subtracting the offered discount percentage from the maximum possible discount on the LP fee (100%). ➡️

Last updated