Take-profit / Stop-loss
Automatically close your position to a single token when price hits your target.
Take-profit (TP) and stop-loss (SL) let you set price targets at which Super9MM will automatically close your position to a single token — locking in gains or capping losses without you watching the chart.
How it works
You set TP and/or SL as a percentage move from the current price. Super9MM converts that to a price target and stores it on-chain. When the keeper sees that the (guarded) price has reached your target, it closes the position and converts it into your chosen output token, held as idle balance until you withdraw.
- Take-profit triggers when price rises to your target → close and realize gains.
- Stop-loss triggers when price falls to your target → close and cap the downside.
It can only fire at your target
This is enforced on-chain, not just in the keeper:
- The close can only happen when your TP/SL price condition is actually met (checked against the manipulation-resistant TWAP price).
- The position can only be closed into a token from your pair — not some arbitrary token.
So the keeper cannot liquidate your position early or into the wrong asset. See Security model.
Setting TP/SL
From the Manage page, open the Take-profit / Stop-loss panel:
- Toggle TP and/or SL on.
- Enter each as a % move (e.g. TP +30%, SL −15%).
- Choose the output token to close into.
- Save.
Stop-loss values are capped below a −100% move (a −100% drop would imply a price of zero). Enter a sensible percentage.
Things to know
- TP/SL is price-based, not a guaranteed fill price — on thin liquidity the realized close price can differ from the trigger due to slippage.
- A stop-loss fires on the guarded (TWAP) price, so it won't be tripped by a one-block wick — by design, this avoids manipulation but means it reacts to a sustained move, not an instantaneous spike.
- After a TP/SL close, your funds sit as idle tokens — withdraw them anytime.
Use TP/SL to put a floor and a ceiling on a position you don't want to watch.