Fee Discounts

VinuSwap includes a dynamic fee system that can provide discounts based on token holdings.

Overview

The TieredDiscount fee manager reduces swap fees for users holding the protocol's token:

Balance Threshold
Fee Discount

≥ 1,000,000 tokens

4% off

≥ 100,000 tokens

3% off

≥ 10,000 tokens

2% off

≥ 1,000 tokens

1% off

< 1,000 tokens

No discount

How It Works

  1. User initiates a swap

  2. Pool calls feeManager.computeFee(baseFee)

  3. TieredDiscount checks tx.origin's token balance

  4. Returns discounted fee based on tier

  5. Swap executes with reduced fee

Base Fee: 0.30%
User Balance: 150,000 tokens (Tier 3)
Discount: 3%

Effective Fee = 0.30% × (1 - 0.03) = 0.291%

Checking Your Discount

Get Current Discount Tier

Calculate Effective Fee

Estimating Savings

Per-Swap Savings

Annual Savings Projection

Acquiring Discount Tokens

Buy on VinuSwap

Calculate Breakeven

Pool-Specific Discounts

Some pools may have different discount configurations using OverridableFeeManager:

Discount Tiers Visualization

Best Practices

1. Check Before Trading

Always check your discount tier before large trades:

2. Consider Token Purchase

For frequent traders, buying discount tokens may be worthwhile:

3. Maintain Balance

Remember that discounts are checked at swap time:

Last updated