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.
| Tier | Fee Rate | Intended Use Case |
|---|---|---|
| Stablecoin | 0.01% | Same-peg pairs (USDC/USDT) |
| Correlated | 0.05% | Loosely correlated assets (WETH/stETH) |
| Standard | 0.30% | General volatile pairs (default) |
| Exotic | 1.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.
| Parameter | Value |
|---|---|
| Keeper reward rate | 0.1% of output amount |
| Constant | KEEPER_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.
| Parameter | Value |
|---|---|
| Creation fee | 0.01 ETH |
| Reward fee | 2% of deposited rewards |
| Maximum reward fee | 10% (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:
| Parameter | Value |
|---|---|
| Launch creation fee | 0.05 ETH |
| Raised ETH fee | 2% 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 Type | Rate / Amount | Recipient |
|---|---|---|
| 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 share | 1/6 of trading fee | QSN stakers via vault |
| Limit order keeper | 0.1% of output | Keeper address |
| Staking pool creation | 0.01 ETH + 2% rewards | Protocol treasury |
| Launchpad creation | 0.05 ETH | Protocol treasury |
| Launchpad raised funds | 2% of raised ETH | Protocol treasury |