Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.lfg.rich/llms.txt

Use this file to discover all available pages before exploring further.

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

AreaV3 / old docsV5 / current docs
Token creationCreator-selected trading feeFixed V5 fee model and optional initial buy
TradingOlder factory/router/hook deploymentActive V5 Factory, Hook, and SwapRouter
ReferralsNot fully documentedOTOInvite referral system
PricesOlder assumptions around precisionV5 price values are scaled by 1e22
BorrowingOlder fee/floor docsV5 3% borrow fee and direct-parent borrow reward
CompatibilityHardcoded contract assumptionsResolve token’s Factory/Hook and PoolKey dynamically

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.