Goal
Enable any front-end, analytics dashboard, or smart-contract to obtain the total locked value (TVL) and factory origin of a token or LP pair in a single call, then drill down into individual locks only when needed.Quick Reads
1. Total Locked Value for a Token / LP
2. is it an LP Pair?
factory != address(0) → LP token
factory == address(0) → normal ERC-20
3. Paginated Lock Details for a Token
totalLockCountForToken(token) to build paginated UI tables.
Events to Watch
| Event | Use |
|---|---|
LockAdded | New lock created → refresh cumulative. |
LockUpdated | Amount changed → refresh cumulative. |
LockRemoved / LockVested | Tokens released → refresh cumulative. |

