Skip to main content
V5 is the current protocol version for LFG.RICH. V3 still exists for legacy tokens, but new integrations should use V5 by default.

What changed

Dynamic token context

Legacy tokens may report old factory or hook addresses through FACTORY() and hook(). New integrations should read those values from the token and use them when present.

Do not hardcode PoolKey

Hardcoding PoolKey values can make swaps fail because PoolManager expects the exact initialized pool. Always call factory.getPoolKey(tokenAddress) using the correct Factory.

V5 price scaling

V5 prices are scaled by 1e22. If your integration divides V5 price values by 1e18, token prices, market caps, borrow estimates, and PnL can appear 10,000x too high.