LP Ranking & Trade Settlement
Last updated
Last updated
In Dextr, liquidity prioritization follows a structured framework based on specific criteria:
Eligibility Criteria:
Active Range: Only LPs with active price ranges relevant to the current Oracle Price are eligible.
Available Liquidity: LPs with liquidity balances exceeding 10% of the order size are considered eligible.
LP Priority:
Fee Quoted Priority: LPs offering the lowest LP fees receive priority in trade settlement, ensuring competitive prices for traders.
REP Points Priority: When multiple eligible LPs quote the same fee, priority is given to those with higher REP Points balances.
Fee Distribution:
Fees are distributed solely to LPs who settle the trade.
If a single LP settles the trade alone, they retain 100% of the quoted fee
When multiple LPs settle the trade, fees are split based on the settled trade value.
If no eligible LPs match the user's intent, the AVS checks for "Coincidence of Wants" (CoW), where another trader has a complementary intent (e.g., selling the token the first user wants to buy at the same price).
If Coincidence of Wants Exists:
The intents are matched directly without LP intervention.
Token balances for both users are updated in their modular smart accounts.
Only the protocol fee is applied; no LP fee will be charged from the trader since LPs are not involved in executing this trade.
If No Coincidence of Wants Exists:
In the absence of a CoW, the AVS searches external liquidity sources via aggregator services for a matching or better price.