Uniswap V3 是 DEX 领域的里程碑式升级。
核心创新
1. 集中流动性 (Concentrated Liquidity)
V2 的流动性分布在 0 → ∞,V3 允许 LP 选择价格区间。
solidity
// 仓位 NFT
struct Position {
uint96 nonce;
address operator;
address token0;
address token1;
uint24 fee;
int24 tickLower;
int24 tickUpper;
uint128 liquidity;
uint256 feeGrowthInside0LastX128;
uint256 feeGrowthInside1LastX128;
uint128 tokensOwed0;
uint128 tokensOwed1;
}2. 多费用层级
支持 0.01% / 0.05% / 0.3% / 1% 四档费率。
3. NFT 仓位管理
每个仓位是独立的 NFT(ERC-721)。
资本效率提升
相同 APY 下,V3 所需资金是 V2 的 1/10。
评论
0评论加载中…