• News
    • Bitcoin
    • Altcoins
    • Blockchain
    • DeFi
    • Regulation
    • Scams
  • NFT
  • Metaverse
  • Analysis
  • Learn
  • Market Cap
  • Shop
What's Hot

Creator of over 100 memecoins says rug pulls are the ‘easiest way to make money’

2025-05-18

Jan 2024 SEC’s X account hacker got 14 months in prison for cyber fraud

2025-05-17

A Beginner’s Guide to Blockchain Consensus

2025-05-16
Facebook Twitter Instagram
  • Contact
  • Terms & Conditions
  • Privacy Policy
  • DMCA
  • Financial Disclosure
Twitter Instagram YouTube
Crypto Semantic
  • News
    • Bitcoin
    • Altcoins
    • Blockchain
    • DeFi
    • Regulation
    • Scams
  • NFT

    All Eyes on Art: Upcoming Collections to Watch the Week of January 28

    2025-02-03

    Op-Ed: The Artist and the Artificial Sublime

    2025-01-20

    Zora launches onchain NFT secondary markets with Uniswap

    2024-08-12

    NFT sales surge led by DMarket on Ethereum

    2024-08-12

    Top NFT Collections by Sales This Week: DMarket Surges Ahead

    2024-08-11
  • Metaverse

    Shib: The Metaverse – Part of the Expanding Shiba Inu Ecosystem

    2025-01-03

    Experience to Earn: Everdome’s Metaverse Frontier

    2024-12-30

    Beyond Bots: Meta Motivo and the Dawn of Humanlike Digital Life

    2024-12-13

    Exploring NetVRk: What Is Behind This AI-Driven Virtual Universe?

    2024-10-28

    Council of Europe Highlights Metaverse’s Impact on Privacy and Democracy

    2024-09-05
  • Analysis

    Analyst Says Momentum Is Going To Switch to Ethereum, Predicts Capital Rotation to Altcoins

    2024-02-20

    Bitcoin Price Rally In Jeopardy? Decoding Key Hurdles To More Upsides

    2024-02-19

    Arweave’s AR token hits 18-month high amid rapid growth and innovation

    2024-02-19

    Largest Bitcoin Whales Gobble Up Nearly $13,000,000,000 Worth of BTC in 2024 Alone: Santiment

    2024-02-19

    NEAR Skyrockets 30% – Investors Intrigued By These Metrics

    2024-02-19
  • Learn

    A Beginner’s Guide to Blockchain Consensus

    2025-05-16

    Blockchain Layers Explained for Beginners: L1, L2, L3 Solutions

    2025-05-16

    A Beginner’s Guide to Crypto

    2025-05-16

    10 Years of Steadfast Support and Compliance

    2025-05-15

    What Is Proof-of-Work (PoW) in Blockchain? A Beginner-Friendly Guide

    2025-05-12
  • Market Cap
  • Shop
Crypto Semantic
Home»DeFi»Differences With V1 and V2
DeFi

Differences With V1 and V2

2023-10-14Updated:2023-10-15No Comments6 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email

  • 1 Uniswap V3 permits to work in bounded ranges lesser than (0,∞)
  • 2 It gives UNI governance along with design completely different price buildings
  • 3 In Uniswap V3, it’s doable to create a number of swimming pools for every pair of token that too with completely different swap charges

A sophisticated model to Uniswap V1 and Uniswap V2, Uniswap V3 is Automated Market Maker (AMM) which supplies liquidity suppliers increased management over worth ranges through which the capital deposited by them is used with out considerably affecting liquidity fragmentation and fuel effectivity.

Uniswap V3 additionally works on the same fixed product [x*y=k] with added options. These are:

Concentrated Liquidity: The flexibility to pay attention liquidity by bounding it inside an arbitrary worth vary is given to liquidity suppliers. In earlier variations, liquidity was distributed alongside the reserve curve [x*y=k] the place, x and y are reserves of the belongings X and Y respectively whereas okay is a continuing. With the sooner model, liquidity was supplied throughout your complete worth vary (0, ∞) whereas with V3 liquidity is supplied throughout the smaller (finite) vary than (0, ∞). Liquidity concentrated in a finite vary generally known as Place. A place solely wants to take care of liquidity reserve to facilitate commerce between this vary and subsequently acts like fixed product swimming pools inside bigger reserves referred to as digital reserves throughout the vary.

Uniswap V3 White Paper Summary: Differences With V1 and V2

Determine: Simulation of digital liquidity

A place wants to carry sufficient belongings in reserve X to cowl the worth actions to its higher restrict as a result of price-rise would result in depletion of X reserves. And in case of Y, it must holds sufficient Belongings within the reserve Y to cowl the downward worth motion to its decrease restrict. Within the above graph, the connection is proven for a place on a variety [pa,pb] and a present worth pcЄ [pa,pb] and xreal and yreal represents the place’s actual reserves.

See also  What are the differences between parallel EVMs and Arbitrum Stylus?

What occurs when the worth exits the place vary? The place’s liquidity is not energetic and doesn’t earn charges. At this level, the reserve consists of a single Asset because the reserves of the opposite asset should have been fully depleted. If the worth once more re-enters within the place, liquidity turns into energetic once more. The actual reserve of the place are calculated utilizing

the place, L is the quantity of liquidity supplied and is calculated as √okay. The graphical illustration of above equation is

Uniswap V3 White Paper Summary: Differences With V1 and V2

Determine: Actual Reserves

This lets the market determine the place to allocate liquidity they usually can create as many as positions as could be match into the worth vary. Rational Liquidity Suppliers can scale back price of their capital by concentrating their liquidity in a slender band across the present costs after which carry on including/ eradicating tokens as the worth strikes.

Architectural Adjustments: Among the adjustments that occurred from V1 and V2 to V3 have been essential to help concentrated liquidity positions whereas some are enhancements typically. The enhancements embrace (i) A number of Swimming pools Per Pair: Uniswap V3 permits a number of pool for every pair of token, with completely different swap charges whereas all of the swimming pools are created by the identical manufacturing unit contract and permits contract creation with three completely different price classes 0.05%, 0.30% and 1% whereas it was 0.30% solely in V1 and V2. In V3, extra price buildings could be applied. (ii) Non-Fungible Liquidity: In V3, compounding of charges isn’t doable as charges are saved individually and are held as tokens through which charges are paid.

See also  Stani Kulechov's Vision for DeFi in 2024: Key Trends and Predictions

Governance: In Uniswap V3, UNI governance has extra flexibility to vary the fraction of the swap charges that’s relevant on the protocols and in addition, it is ready to implement extra layer of price buildings. It additionally has energy to switch possession to a different addresses.

Oracle: V3 doesn’t require customers of the oracle to trace earlier values of accumulator externally. In V3, it’s doable to calculate arithmetic imply TWAP (Time-weighted Common Worth) and geometric imply TWAP (V3 tracks the sum of log costs). It provides a liquidity accumulator which is tracked alongside the worth accumulator that accumulates 1/L for every second.

Geometric imply TWAP could be calculated as between time interval t1 and t2,

Implementing Concentrated Liquidity

  • Ticks and Ranges: Ranges are specified as a variety of signed integer tick indices: a decrease tick (il) and a higher tick (iu). Ticks signify the costs at which the digital liquidity of the contract can change. There’s a tick at each worth p, an integer energy of 1.0001. Representing ticks by an integer index i, costs are given by,

p(i) = 1.0001i

When liquidity is added to a variety, if one or each of the ticks should not already used because the higher or decrease limits, in any of the present positions, then the tick is initialized. Not all of the ticks could be initialized. The pool is initialized with a parameter generally known as tick spacing so all of the ticks that may very well be initialized ought to be divisible by tick spacing. If tick spacing is smaller than it permits for tighter and extra exact ranges.

  • World State: The World State of the contract contains seven storage variables related to swaps and liquidity positions.
See also  Thala partnership empowers Movement with DeFi features

Out of Liquidity and Worth, just one adjustments at a time. Worth adjustments when swapping inside a tick and liquidity adjustments when crossing a tick or when minting or burning liquidity. L is calculated as x.y and P is calculated as y/x.

Present tick could be calculated on the idea of P . At any given level of time, the equation ought to be true is ic=[log1.0001P]

In Uniswap V3, charges are collected within the tokens themselves relatively than liquidity. The worldwide state of charges represents the full quantity of charges which were earned per unit of Digital Liquidity L. The worldwide state tracks the full gathered uncollected protocol charges in every token and this may be collected by UNI governance.

Swapping in a Single Tick: When swapping one token for the opposite, the pool contract first compute the brand new P utilizing method P= y/L and to compute the quantity of token0 or token1 to be ship out utilizing both of the 2 formulation: y=P .L or x=(1/P). L

Tick- Listed State: Contract must retailer details about every tick so as to observe the quantity of web liquidity that ought to be added or eliminated when the tick is crossed, in addition to to trace the charges earned above or under that tick.

Place- Listed State: Every Place construction tracks three values together with liquidity, decrease tick and higher tick to know the liquidity and uncollected charges place.

Source link

Differences
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

Related Posts

The Main Differences Between Crypto Exchanges

2025-03-03

Bitcoin vs. Altcoins: What Are The Differences?

2025-02-26

SolvBTC Now Live on Avalanche, Introducing Yield Solutions for Bitcoin

2024-09-26

Hinkal Protocol Achieves $3M hETH Volume in Curve Pool as Anonymity Staking Gains Momentum

2024-09-26
Add A Comment

Leave A Reply Cancel Reply

Top Posts
DeFi

Why Cross-Chain Bridges Fell Short and How ZK Rollups Could Redefine DeFi Interoperability

2024-07-15

Decentralized Finance (DeFi) within the early days operated inside siloed blockchain ecosystems; it was inconceivable…

Altcoins

Bitcoin price rises to $43K: Does BTC’s prediction hold now?

2023-12-21

Bitcoin rose above $44,000, however merchants ought to be cautious. A cluster of liquidity round…

Regulation

Hong Kong SFC expands violations list adding MEXC for unlicensed operations

2024-03-15

Hong Kong monetary regulator, the Securities and Futures Fee (SFC), issued a public warning about…

Subscribe to Updates

Get the latest news and Update from Crypto Semantic about Crypto, Metaverse and NFT.

About
About

Our mission is to develop a community of people who try to make financially sound decisions. The website strives to educate individuals in making wise choices about Cryptocurrencies, NFT, Metaverse and more.

We're social. Connect with us:

Twitter Instagram
Popular Post

MakerDAO Supercharges RWA Assets, Skyrockets to $2.537 Billion

2023-08-24

Fantom (FTM) Shows Resilience, Gains 15% In A Single Day

2023-06-21

Starbucks NFT ‘Green Apron’ Collection Launching Aug 1st

2023-07-29

Get the latest news and Update from Crypto Semantic about Crypto, Metaverse and NFT.

  • Contact
  • Terms & Conditions
  • Privacy Policy
  • DMCA
  • Financial Disclosure
© 2025 cryptosemantic.com. Designed by ProdigitalX.

Type above and press Enter to search. Press Esc to cancel.

  • Kinza Babylon Staked BTCKinza Babylon Staked BTC(KBTC)$83,270.000.00%
  • Vested XORVested XOR(VXOR)$3,404.231,000.00%
  • ICPanda DAOICPanda DAO(PANDA)$0.003106-39.39%
  • bitcoinBitcoin(BTC)$105,585.00-0.02%
  • ethereumEthereum(ETH)$2,503.962.79%
  • tetherTether(USDT)$1.00-0.02%
  • rippleXRP(XRP)$2.38-0.87%
  • binancecoinBNB(BNB)$650.860.88%
  • solanaSolana(SOL)$165.89-1.96%
  • usd-coinUSDC(USDC)$1.000.00%
bitcoin
Bitcoin (BTC) $ 105,527.27
ethereum
Ethereum (ETH) $ 2,515.84
tether
Tether (USDT) $ 1.00
xrp
XRP (XRP) $ 2.38
bnb
BNB (BNB) $ 649.78
solana
Solana (SOL) $ 166.45
usd-coin
USDC (USDC) $ 1.00
dogecoin
Dogecoin (DOGE) $ 0.223909
cardano
Cardano (ADA) $ 0.74154
tron
TRON (TRX) $ 0.26585