Slipstream Fee Mechanics

Explain Slipstream swap fee splits between staked and unstaked liquidity.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/cyotee/aerodrome-V2-slipstream-skill --skill slipstream-fee-mechanics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Slipstream Fee Mechanics
Source: https://github.com/cyotee/aerodrome-V2-slipstream-skill/tree/main/.opencode/skills/slipstream-fees
Command: npx skills add https://github.com/cyotee/aerodrome-V2-slipstream-skill --skill slipstream-fee-mechanics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill clarifies how Slipstream calculates and distributes swap fees between staked and unstaked liquidity, including gauge fees and fee-growth accounting.

Core Features & Use Cases

  • Fee Split Logic: Demonstrates how total swap fees are divided into staked and unstaked components via splitFees.
  • Gauge Distribution: Explains allocation to gaugeFees for rewards to staked LPs.
  • Fee Growth Accounting: Describes updating feeGrowthGlobal and per-position fees owed through fee growth calculations.

Quick Start

Compute the split for a $1,000 swap with a 0.30% fee and 60% staked liquidity, and display the resulting staked and unstaked fee distributions.

Frequently Asked Questions about Slipstream Fee Mechanics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does Slipstream split swap fees between staked and unstaked liquidity?

Slipstream splits total swap fees into staked and unstaked components using the splitFees function, directing the staked portion to gaugeFees for LP rewards while leaving the unstaked portion for standard position fee growth accounting.

How is feeGrowthGlobal updated when calculating Slipstream position fees owed?

Slipstream updates feeGrowthGlobal during swap events to track accumulated fees per unit of liquidity, which subsequently determines individual position fees owed through fee growth calculations for both staked and unstaked LP positions.

How do I calculate Slipstream fee distributions for a swap with a specific percentage of staked liquidity?

You calculate Slipstream fee distributions by multiplying the total swap fee by the staked liquidity percentage to find the gaugeFees amount, then allocating the remainder to unstaked liquidity fee growth.

Does Slipstream gauge distribution apply to both staked and unstaked LP positions?

Slipstream gauge distribution applies primarily to staked LP positions by allocating gaugeFees as rewards, while unstaked LP positions receive their share through standard feeGrowthGlobal updates and position fees owed calculations.

What Solidity functions are required to implement Slipstream fee logic for CLMMs?

Implementing Slipstream fee logic requires Solidity functions including splitFees for dividing total swap fees, gaugeFees for reward allocation, and position fee growth calculations to track fees owed accurately.