Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.inkyswap.com/llms.txt

Use this file to discover all available pages before exploring further.

Slippage is the maximum difference between the expected output you saw in the preview and the actual output you accept. If the chain state changes between your preview and your transaction landing, the contract checks the floor you set and reverts if the actual output drops below it.

What you set

On every trade, the InkyPump UI passes a minimum output to the contract:
TradeMin fieldContract param
BuyMin tokens outminTokensOut on buy and buyWithReferral
SellMin ETH outminEthOut on sell and sellWithReferral
If less than this would come out, the transaction reverts with a slippage error. You pay gas but you do not lose the trade amount.

What the UI does by default

The UI applies a default slippage percentage to the preview value and uses the result as the minimum. The default is a moderate setting suitable for normal trading on the curve. You can adjust slippage in the trade settings before confirming. Lower values are tighter (more likely to revert if the price moves). Higher values are looser (more likely to fill but you accept a worse rate).

When to tighten slippage

  • The curve is quiet and you do not expect concurrent trades
  • You are doing a small trade where price impact is low
  • You want to protect against a sudden mempool spike

When to loosen slippage

  • The token has high trading activity and concurrent buys are likely
  • You are doing a large trade with high price impact
  • The token just bonded and the pool is finding its level

Slippage on the post-bond V4 pool

After bonding, slippage works the same way but the call goes through the Uniswap Universal Router. The router takes a minimumAmountOut (or minimumAmountIn for exact-out swaps). The UI converts your slippage percentage into that value before signing. V4 pools can have tighter spreads than the curve, so the same percentage slippage tolerates less drift. If you keep your default value, the experience should feel similar.

Why slippage matters on the curve

Every buy moves the curve price up. Every sell moves it down. If someone else’s transaction lands between your preview and your trade, the price you see is no longer the price you get. Slippage is the buffer that decides whether your trade still makes sense at the new price. The bigger your trade relative to remaining curve supply, the more your own trade moves the price. The preview already accounts for this through previewBuy and previewSell. Slippage only protects you against other people’s trades and reordering.