Skip to main content

Periphery (Router)


slp-periphery overview

The periphery router SLPRouter is the main user and integrator entrypoint for liquidity and swap flows. It wraps pair-level operations into safer, higher-level methods that handle quoting, token transfers, and protocol-specific checks in one place.

Liquidity

Liquidity methods mirror the familiar Uniswap V2 router surface but are aware of SKNK's game accounting. addLiquidity and addLiquidityETH quote against active reserves and then mint via pair mint.

LP exits are intentionally two-step: startRemoveLiquidity calls startBurn, and finaliseRemoveLiquidity settles the remaining liability via finaliseBurn.

Swaps

The router supports standard exact-in and exact-out swap paths, along with fee-on-transfer variants where needed. The current deployment maintains a 0.3% swap fee.

Quoting utilities

Quoting helpers include quote, getAmountOut, getAmountIn, getAmountsOut, and getAmountsIn. These utilities are useful for interfaces and integrations that need deterministic previews before submitting a transaction.