Skip to content

v1.2.1

Latest

Choose a tag to compare

@merklefruit merklefruit released this 23 Nov 12:44
3165f5a

A follow-up to the Spot Liquidity V2 upgrade (v1.2.0): it lets a venture's V2 spot pool use a different fee tier from its V1 pool, and records the Spot Liquidity V2 deployment addresses.

  • SpotMigrator takes an immutable targetFee at construction (a multiple of 100, from 100 to 10000) and uses it for the new V2 pool, vault and ActiveLiquidityManager. Tick spacing and the seam price bound still come from the V1 pool. The Base migrator uses 3000 (0.3%), so UMIA moves from its 1% V1 pool to a 0.3% V2 pool.
  • The ALM's 30-minute TWAP band is one fee width, so it follows the target fee: 30 ticks on a 0.3% pool. The 12-hour band (500 ticks) is unchanged.
  • DeploySpotLiquidityV2 reads the fee from SPOT_MIGRATOR_TARGET_FEE, and a standalone deploy script deploys a migrator on its own.