Aperture finance: A Ratio-Triggered LP Exit Example
Aperture finance supports closing a liquidity position when its token composition reaches a selected ratio. The closure also depends on the chosen gas fee ceiling and any duration setting. This connects an exit condition to an existing position without requiring constant manual monitoring. A matching ratio alone does not establish completion: the withdrawal transaction must succeed and return the proceeds. The owner can wait for the conditional exit or withdraw manually at the composition available when the transaction executes.
A ratio condition determines when an exit qualifies, while execution costs and transaction confirmation determine whether the withdrawal completes.
A selected position through to a confirmed exit
Would a ratio-triggered closure or a manual withdrawal better match the intended exit? Consider an illustrative position whose owner wants to withdraw when its composition reaches a chosen ratio.
Position readiness and the exit condition
The owner first checks that Aperture supports the position's network and pool, then identifies the position, token pair and existing liquidity. Ownership and the required position authorization must match the intended action before automation can operate. Selecting a closure matters: rebalancing would put liquidity into another range.
For this position, the owner selects a ratio condition and gas fee ceiling. An optional duration changes how the service evaluates the condition. Before scheduling the closure, the owner checks which token the ratio refers to and reviews the slippage setting that determines minimum withdrawal amounts. The owner then schedules the close trigger for that position.
| Exit option | Condition for action | Position or timing scope |
|---|---|---|
| Ratio closure without duration | Selected ratio evaluated using the current pool price | The selected liquidity position |
| Ratio closure with duration | Ratio evaluation with a duration setting | Subject to available oracle history |
| Time-triggered closure | Selected scheduling condition | An exit tied to time rather than composition |
| Manual withdrawal | The owner submits the withdrawal | The position state when the transaction executes |
A changed gas estimate and two different outcomes
Hold the ratio condition and position constant, then change only the estimated gas deduction. An estimate within the ceiling allows execution to proceed if the other requirements also pass. An estimate above the ceiling blocks that attempt. Raising the ceiling accepts a larger permitted cost; retaining it preserves the cost constraint.
After successful execution, the owner checks the transaction outcome and returned tokens before using the proceeds. If no successful withdrawal exists, the position remains unresolved. The next action is to inspect the unmet condition or consider manual closure, rather than treating a matching ratio as money already received.
Why can the gas ceiling delay a matching ratio trigger?
A gas ceiling can delay closure because the automation must keep its estimated execution deduction within the user's selected limit, even after the ratio condition qualifies.
The ceiling's calculation basis
The closure setup accepts a percentage of position value or a dollar amount that it converts into a percentage. That conversion matters: a dollar entry should not be interpreted as a permanently fixed dollar allowance.
A proportion compares execution cost with position value. Holding the estimated cost constant while reducing position value increases that proportion. A changing position valuation can therefore affect whether an otherwise identical withdrawal fits the ceiling.
Cost permission and transaction success
Passing the cost check does not settle the withdrawal. Execution still depends on valid authorization, transaction simulation and the network accepting the transaction.
Aperture checks the estimated gas deduction against the user-selected ceiling before constructing an automated action. Its execution code also calculates minimum token amounts for the withdrawal. A permissive gas ceiling does not override those separate output constraints.
Ratio movement within the selected range
A concentrated liquidity position changes composition as the pool price moves through its range, so the selected ratio describes exposure within that position rather than a target return.
Swaps progressively replace one token with the other. At a range boundary, the liquidity can consist entirely of one asset. Which asset accumulates depends on the direction of price movement and the position's range. The trigger therefore needs the intended token orientation, not merely a percentage that looks familiar.
A concentrated liquidity position stops earning swap fees while the pool price remains outside its range. Liquidity becomes active again if price reenters the range before withdrawal. This explains why reaching an endpoint and closing the position are separate events: leaving liquidity in place preserves the possibility of further changes.
What does a duration setting change about the ratio exit?
A duration setting makes ratio evaluation use an oracle observation window and introduces a minimum wait before triggering, rather than relying only on the instantaneous pool price.
The ratio condition without duration uses the on-chain pool price. With duration, Aperture describes an arithmetic time-weighted average price, or TWAP. A brief price movement and a sustained movement can consequently produce different trigger outcomes.
The requested window also depends on stored oracle history. When the oracle lacks enough observations, the calculation uses the available history. The setting therefore does not establish that the pool supplies a complete observation record for the entire requested period.
Returned tokens and remaining market exposure
A completed closure removes liquidity, collects amounts owed and returns the withdrawal proceeds after applicable deductions. The returned tokens still carry their own market exposure. Closing a position does not by itself promise conversion into a different asset or preservation of its earlier value. Token transfers and the completed withdrawal identify what the owner actually received; the ratio displayed before execution describes an earlier position state.
Unresolved exits and manual closure
An unresolved exit needs a diagnosis that distinguishes an unmet trigger from a rejected withdrawal, because changing the wrong parameter can increase permitted cost without addressing the actual obstacle.
A scheduled record shows that an instruction exists. A submitted transaction shows an attempt. Neither provides the same evidence as a successful transaction that removes the intended liquidity and transfers the proceeds. A failed attempt does not establish that the assets reached the wallet.
The automation service periodically evaluates scheduled conditions and submits on-chain actions. Execution therefore depends on the service as well as the underlying contracts. An observed threshold crossing does not establish an exact withdrawal time.
Manual closure changes who initiates the transaction. It replaces the wait for automated condition handling with an explicit withdrawal decision, while retaining network costs, authorization requirements and transaction checks. Waiting preserves the selected conditional exit; withdrawing manually accepts the composition available when that transaction executes.
Still wondering about Aperture finance?
Does editing a buffered close trigger restart its waiting period?
Updating a trigger with a TWAP duration resets its waiting period. The elapsed time before the update does not carry forward toward that wait. Repeated edits can therefore postpone eligibility even when the displayed ratio remains near the selected condition.
Why might the position NFT disappear after a complete closure?
Aperture's full withdrawal implementation burns the position NFT after removing all its liquidity and collecting the amounts owed. That disappearance can accompany a successful exit. The completed transaction and token transfers distinguish this outcome from a position that a wallet interface simply fails to display.
Can an exit ratio establish whether the position made a profit?
An exit ratio describes token composition, not profit. Assessing the financial result also requires the starting asset amounts and values, collected fees, withdrawal proceeds and execution deductions. A position can reach its intended composition even when the value of its proceeds falls below the value originally supplied.
Will closing the position reinvest its unclaimed fees?
A closure collects amounts owed as part of the withdrawal rather than reinvesting them into a new liquidity range. Applicable deductions reduce the returned proceeds. Reinvestment is a separate action, so selecting an exit should not create an expectation that the collected fees will continue earning liquidity fees.