Pool Contracts

The core SKNK pool system is centered around three
contracts: SLPFactory, SLPPair, and SLPERC20. Together they handle pair
creation, AMM + game-aware accounting, and LP token behavior.
SLP Factory
The SLPFactory is a singleton contract which deploys new pools for the SKNK protocol and
stores shared configuration used by every pair. This includes the target addresses for the SLPHub and SLPRouter for deployed pairs plus future protocol variables.
swapFeeCalculator: External contract to allow for dynamic fees based on selected token balance.feeTo: Switch to enable protocol fees.
Admin functionality for setting of core variables is also present.
SLP Pair
SLPPair is the AMM pair with game-aware accounting; its LP token is SLPERC20.
Core AMM operations include mint, swap and a two-stage burn flow - startBurn and finaliseBurn.
In addition, ticket-specific hooks are exposed to the SLPHub contract to manage safe accounting of internal funds.
Each pair also contains logic to calculate the correct liabilities for LPs across a tickets lifecycle.
SLP ERC20
SLPERC20 is a minimal ERC20 with permit support (EIP-2612) used for LP tokens. Deployed as part of the SKNK pair.