Terms

Slippage Model

Understanding how slippage is calculated, protected, and minimised in every Velox swap.

Core Concept

What is Slippage?

Slippage is the difference between the price you see when you initiate a swap and the price at which your order actually executes. In decentralised markets, prices move continuously — even during the few seconds between quote and settlement. Velox's slippage model ensures that this difference stays within bounds you control, and that you're never surprised by what lands in your wallet.

On Velox, slippage can arise from three sources:

Market movement: The spot rate between USDT and TRX shifts while your transaction is being confirmed on TRON's network (~3 seconds).

Liquidity depth: Large orders consume multiple price levels in the liquidity pool. The weighted average execution price may differ from the top-of-book rate.

Network congestion: Under extreme TRON network load, block inclusion delays can extend beyond the typical 3-second window, causing stale-rate execution.

The Formula

Core Slippage Equation

Every swap on Velox is governed by the following calculation. It determines whether your order proceeds, or whether the execution price has drifted beyond your acceptable tolerance.

Slippage (%) = | (Execution Price - Quoted Price) / Quoted Price | x 100

Where:
  Quoted Price     = the rate displayed & locked when you confirm the swap
  Execution Price  = the actual on-chain settlement rate

Decision Rule:
  IF Slippage <= User Tolerance  ->  Order executes
  IF Slippage >  User Tolerance  ->  Order reverts (no gas cost to you)

Velox applies a dynamic tolerance algorithm that adjusts the permissible slippage band based on real-time market conditions. During elevated volatility, the band widens fractionally to prevent unnecessary reverts. In calm markets, it tightens to give you maximum price certainty.

Worked Examples

Slippage in Practice

Three real-world scenarios showing how the slippage model behaves under different market conditions.

Example 1 Standard Market — Normal Execution

You swap 1,000 USDT for TRX. The quoted rate is 1 USDT = 3.03 TRX. Your tolerance is set to 0.5%.

Quoted Price:     1 USDT = 3.0300 TRX
Expected Output:  1,000 x 3.0300 = 3,030.00 TRX

Execution Price:  1 USDT = 3.0266 TRX
Actual Output:    1,000 x 3.0266 = 3,026.60 TRX

Slippage:  | (3.0266 - 3.0300) / 3.0300 | x 100 = 0.112%

Result:  0.112% < 0.5%  →  EXECUTED
You receive 3,026.60 TRX — a 3.40 TRX difference from the quoted amount.
Example 2 Volatile Market — Tight Tolerance

You swap 5,000 USDT during elevated TRX volatility. The quoted rate is 1 USDT = 2.98 TRX but the market is moving fast. Your tolerance is 0.3%.

Quoted Price:     1 USDT = 2.9800 TRX
Expected Output:  5,000 x 2.9800 = 14,900.00 TRX

Execution Price:  1 USDT = 2.9622 TRX
Actual Output:    5,000 x 2.9622 = 14,811.00 TRX

Slippage:  | (2.9622 - 2.9800) / 2.9800 | x 100 = 0.597%

Result:  0.597% > 0.3%  →  REVERTED
Your USDT stays in your wallet. No gas is charged. Try again with a wider tolerance.
Example 3 Large Order — Depth-Based Slippage

You swap 50,000 USDT — a size that consumes multiple liquidity levels. The top-of-book rate is 3.03 TRX, but the weighted average across all filled tiers comes in slightly lower. Tolerance is 1.0%.

Quoted Price (Top of Book):  1 USDT = 3.0300 TRX
Expected Output:              50,000 x 3.0300 = 151,500.00 TRX

Weighted Avg Execution:       1 USDT = 3.0058 TRX
Actual Output:                50,000 x 3.0058 = 150,290.00 TRX

Slippage:  | (3.0058 - 3.0300) / 3.0300 | x 100 = 0.799%

Result:  0.799% < 1.0%  →  EXECUTED
The depth-adjusted rate produced 150,290 TRX. The 1,210 TRX difference reflects
the cost of walking the order book across multiple liquidity tiers.
Protection Mechanisms

Slippage Protection Layers

Velox deploys multiple overlapping safeguards to ensure your trade executes at a price you've agreed to — or not at all.

Protection Mechanism Scope Default
User-Defined Tolerance You set the maximum acceptable slippage percentage. Orders revert if the execution price exceeds this threshold. Per-swap 0.5%
Dynamic Band Adjustment Algorithmically widens or tightens the effective tolerance band based on 30-second trailing volatility of the USDT/TRX pair. Protocol-wide Adaptive
Rate Lock Window The quoted rate is frozen for 15 seconds from the moment it's displayed. No-one can change the price while you're reviewing it. Per-quote 15 seconds
Atomic Revert If slippage exceeds tolerance, the entire transaction reverts atomically on-chain. No partial fills. No trapped funds. Per-transaction Always on
Gas Sponsorship on Revert Even if your swap reverts due to slippage, the gas cost is still covered by Velox. You pay nothing for a failed attempt. Per-transaction Always on
Maximum Slippage Cap Regardless of user setting, a hard cap of 5% prevents catastrophic execution in extreme market events. Protocol-wide 5% hard cap
Dynamic vs Fixed

Dynamic Slippage Tolerance

Most swap protocols ask you to choose a fixed slippage tolerance — 0.1%, 0.5%, or 1.0% — and stick with it regardless of market conditions. Pick too tight and your trade reverts in volatile moments. Pick too loose and you leak value.

Velox's dynamic model takes the guesswork out. It continuously measures the 30-second realised volatility of the USDT/TRX pair and adjusts the effective tolerance band accordingly:

Volatility Regime          Effective Tolerance   Typical Conditions
─────────────────────────────────────────────────────────────────
Low (sigma < 0.05%)        0.30%                 Quiet, ranging market
Normal (0.05% <= sigma < 0.15%)  0.50%          Standard trading hours
Elevated (0.15% <= sigma < 0.40%)  0.75%        News-driven moves
High (sigma >= 0.40%)      1.00%                 Flash volatility events

You can override the dynamic band at any time by setting a manual tolerance on the swap widget. The protocol always honours the tighter of your manual setting and the dynamic band — you're never forced into looser execution than you're comfortable with.