Skip to main content

Fee Structure

QsnDEX employs a multi-tiered fee system that rewards liquidity providers, funds protocol development, and compensates keepers who maintain order book functionality.

Trading Fee Tiers

Each pool is assigned a fee tier at creation time. The fee is applied to the input amount of every swap.

TierFee RateIntended Use Case
Stablecoin0.01%Same-peg pairs (USDC/USDT)
Correlated0.05%Loosely correlated assets (WETH/stETH)
Standard0.30%General volatile pairs (default)
Exotic1.00%Long-tail or high-volatility assets

Protocol Fee Split

A portion of every trading fee is directed to the protocol. The protocol fee is set to 1/6 of the LP trading fee.

For the standard 0.30% tier, this means:

  • 0.25% goes to liquidity providers
  • ~0.05% goes to the protocol via the FeeCollector contract

Fee Flow

The complete lifecycle of protocol fees follows this path:

Swap Transaction
|
v
Trading Fee Deducted (e.g., 0.30%)
|
+---> 5/6 to Liquidity Providers (retained in pool reserves)
|
+---> 1/6 to FeeCollector Contract
|
v
Wrap to WETH (if native ETH)
|
v
Distribute to QSN StakeVault
|
v
Stream to QSN Stakers over 7 days

Protocol fees accumulate in the FeeCollector contract as various tokens. The FeeCollector wraps any native ETH to WETH and distributes collected fees to the QSN StakeVault, where they are streamed to stakers over a 7-day reward period.

Limit Order Keeper Reward

When a keeper executes a filled limit order on behalf of a user, the keeper receives a reward taken from the swap output.

ParameterValue
Keeper reward rate0.1% of output amount
ConstantKEEPER_REWARD_BPS = 10

This incentivizes bots and operators to monitor and execute limit orders promptly.

Staking Pool Creation Fee

Creating a new staking pool requires a fee paid in native ETH, plus a percentage of the deposited rewards.

ParameterValue
Creation fee0.01 ETH
Reward fee2% of deposited rewards
Maximum reward fee10% (configurable by owner)

The creation fee discourages spam pool creation, while the reward fee funds ongoing protocol operations.

Launchpad Fees

Token launches through the Launchpad contract incur the following fees:

ParameterValue
Launch creation fee0.05 ETH
Raised ETH fee2% of total ETH raised

The creation fee is paid by the project launching the token. The 2% fee on raised ETH is deducted at the conclusion of the sale before the remaining funds are transferred to the project.

Fee Summary

Fee TypeRate / AmountRecipient
Trading (stablecoin)0.01%5/6 LPs, 1/6 protocol
Trading (correlated)0.05%5/6 LPs, 1/6 protocol
Trading (standard)0.30%5/6 LPs, 1/6 protocol
Trading (exotic)1.00%5/6 LPs, 1/6 protocol
Protocol share1/6 of trading feeQSN stakers via vault
Limit order keeper0.1% of outputKeeper address
Staking pool creation0.01 ETH + 2% rewardsProtocol treasury
Launchpad creation0.05 ETHProtocol treasury
Launchpad raised funds2% of raised ETHProtocol treasury