The core functionality of Velocimeter is to allow users to trade digital assets in a secure way, with very low fees and low slippage.
Slippage is the difference between the current market price of an asset and the price at which the actual trade/transaction is executed. This difference could result in a smaller amount (higher price paid) or a higher amount (smaller price paid) of desired tokens returned from a trade.
To provide access to the best rates on the market, we identified two types of assets:
- correlated - for example stable coins (
- uncorrelated - for example
Velocimeter offers two different liquidity pool types based on token pair needs, Stable Pools and Variable Pools.
The protocol router evaluates both pool types to determine the most efficient price quotation and trade execution route available. To protect against flash-loan attacks, the router will use 30-minute TWAPs (time-weighted average prices). The router doesn't require upkeep (external maintenance).
The deeper the liquidity of a given pool (higher value locked), the smaller the slippage it will offer.
On Velocimeter the trading fees are kept in the originally traded tokens
(if you trade
FLOW the fees will be kept in the same tokens).
The trading fees for stable liquidity pool types and for volatile pools are both independent. The current fees can be seen by going here (opens in a new tab), locating the 7.getFee function and inputting
true for stable and
false for volatile. The outputted number then needs to be divided by 100 to get the swap fee percentage. ie. an output of 25 = 0.25%
Both these setting can be adjusted up to 0.5%.
Stable pools are designed for assets which have little to no volatility. This means that the formula used for pricing the assets allows for low slippage even on large traded volumes.
x³y + y³x ≥ k
Variable pools are designed for assets with high price volatility. These pools use a generic AMM formula.
x × y ≥ k
The mathematical formulas are used to keep the total pool liquidity the same at all times.
Below, you can find a visual comparison between the stable (red) and volatile (green) AMM pricing equations, where:
xis the amount of first asset in the pool
yis the amount of second asset in the same pool
kis a fixed constant