Skip to main content
This guide explains the fundamental concepts of Vita Finance. If you’re already familiar with DeFi, jump to our technical docs.

Core Concepts Overview

1. Two Independent Trading Systems

AMM vs CLOB

Vita Finance offers two separate and independent trading systems:
Type: Automated Market Maker
Execution: Instant
Pricing: Algorithmic (x*y=k curve)
Liquidity: Provided by LPs in pools
Best for:
  • Quick swaps
  • Small to medium trades
  • Passive liquidity provision
AMM and CLOB are completely separate systems with no shared liquidity. They operate independently with their own pricing mechanisms.

Trading Flow Diagram

2. Automated Market Maker (AMM)

How Swaps Work

Swap Process Flow
  1. User → Sends Token A
  2. Vita Pool → Calculates Rate
  3. Vita Pool → Sends Token B
  4. LPs + Protocol → Collects Fee
Each swap incurs a default 0.3% fee. The distribution is configurable through protocol_fee_rate and community_fee_rate parameters.

3. Central Limit Order Book (CLOB)

Order Types

Set your exact buy or sell price:
  • Order executes only at your price or better
  • No slippage
  • May not execute immediately
Execute immediately at best available price:
  • Instant execution
  • Takes liquidity from order book
  • Subject to slippage on large orders
All CLOB pairs are quoted in USDC:NEAR/USDC VITA/USDC BTC/USDC ETH/USDCThis provides stable pricing and easy comparison across markets.

CLOB vs AMM Comparison

FeatureAMMCLOB
ExecutionInstantWhen orders match
PricingAlgorithmicOrder-driven
SlippageAlways presentNone on limit orders
LiquidityPooledIndividual orders
Best forQuick tradesPrecise execution

4. Liquidity Provision

Understanding Ticks

Vita uses a tick-based system where each tick represents a 0.01% price change:
price = 1.0001^tick

Price Ranges Explained

When current price is within your range:
  • ✓ Earning trading fees
  • ✓ Holding both tokens
  • ✓ Exposed to impermanent loss
When price moves outside your range:
  • ✗ Not earning fees
  • ✗ Holding only one token
  • ✗ No additional IL until back in range

Capital Efficiency Calculation

Example: NEAR/USDC pool at $5.00

  • Wide range (11-25): ~4x efficiency
  • Medium range (44-6): ~25x efficiency
  • Narrow range (4.904.90-5.10): ~100x efficiency
  • Ultra narrow (4.994.99-5.01): Very high efficiency
Narrower ranges offer higher efficiency but require more active management and carry higher impermanent loss risk.

5. VITA & xVITA Tokens

VITA Token

The native governance and utility token of Vita Finance:
1

Utility

  • Pay for protocol services
  • Governance voting
  • Liquidity mining rewards
  • Fee discounts
2

Technical Details

Decimals: 18 (not 24 like NEAR)
Total Supply: 100,000,000 VITA
Contract: [TBD]

xVITA Token

xVITA represents staked VITA with additional benefits:
// xVITA characteristics
{
  revenueShare: "Protocol and community vault distributions",
  governanceWeight: "1 xVITA = 1 vote",
  farmingBoost: "Up to 2.5x maximum boost",
  redemptionOptions: "15-180 days",
  decimals: 18 // Same as VITA
}

Redemption Mechanics

The redemption rate follows a linear curve:
PeriodReturn
15 days50% (emergency exit)
180 days100% (maximum value)
Formula: 50% + (days - 15) / 165 × 50%

6. Fee Structure

Trading Fees

All AMM pools use a default 0.3% trading fee (3000 in basis points):

Fee Distribution

Fees are distributed through configurable parameters:
  • protocol_fee_rate: Protocol treasury portion
  • community_fee_rate: Community vault portion
  • Remaining: Liquidity providers
FEE_RATE_DENOMINATOR_VALUE = 1,000,000 (for precise calculations)

7. Session-Based Rewards

How Sessions Work

Vita uses a 7-day session system for fair reward distribution
// Session timeline
const session = {
  duration: 7 * 24 * 60 * 60, // 7 days in seconds
  startTime: "Monday 00:00 UTC",
  endTime: "Sunday 23:59 UTC",
  claimPeriod: "Anytime after session ends"
};

Reward Calculation

Your rewards depend on:

1

Time-weighted balance
How long you held positions

2

Session performance
Total fees generated

3

Your share
Your proportion of total liquidity
// Simplified reward formula
userReward = (userLiquidity * timeInSession * sessionFees) / totalLiquidity

8. NFT Position System

Why NFTs?

Each liquidity position is an NFT because:

Uniqueness

Every position has unique parameters (range, liquidity, fees)

Transferability

Positions can be sold or transferred without closing

Composability

Use positions as collateral in other DeFi protocols

Management

Easy tracking and management of multiple positions

Position Metadata

{
  "tokenId": 12345,
  "pool": "NEAR-USDC",
  "owner": "alice.near",
  "tickLower": -665454,  // MIN_TICK
  "tickUpper": 831818,   // MAX_TICK
  "liquidity": "1000000000000000000",
  "feeGrowthInside0": "500000",
  "feeGrowthInside1": "300000",
  "tokensOwed0": "50",
  "tokensOwed1": "10"
}

9. Boost Mechanics

Advanced Boosting System

xVITA Boost System

xVITA Boost
Sigmoid curve function based on your xVITA holdings
Maximum boost: Up to 2.5xThe boost depends on your share of total xVITA in the protocolBoost calculation uses a complex sigmoid function that considers:
  • Your xVITA balance
  • Total xVITA supply
  • Your proportional share
  • Time-weighted average balance
The maximum achievable boost is 2.5x. This applies to farming rewards and is calculated per session.

10. Impermanent Loss

Understanding IL in Concentrated Positions

Concentrated liquidity can amplify impermanent loss. The narrower your range, the higher the potential IL.

IL Scenarios

  • Normal IL applies (same as traditional AMM)
  • Offset by higher fee earnings
  • Generally profitable if volume is high

Interactive Tools

Explore Our Tools

Next Steps

Now that you understand the core concepts:
Questions? Join our Discord where our community and team are happy to help!