登录后可观看高清视频

Sqrt Price X 96 | Uniswap V3 核心合约解析 - 第4部分

SC programmer SC programmer
28次播放
2025-01-22

Square root price x96 is defined as the square root of the price (p) of a token ratio multiplied by q96, where q96 equals 2 raised to the 96th power. To calculate the price p from square root price x96, one divides square root price x96 by q96 and squares the result. An example illustrates this process using the arbitram eif USDC pool, resulting in a calculated price of eif in terms of USDC as 1888 after adjusting for the respective decimal places of the tokens involved.

DeFi  Uniswap  DEX  智能合约  blockchain  区块链