Pro and above for the token risk and locks reads · Compare plans and subscribe
Calculate locked liquidity across Solana pools
Read verified LP locks for the primary Solana pool, separate burned liquidity and calculate a value-weighted share when other pools have compatible evidence.
By MadeOnSol · Updated
Integration choice
Read primary-pool custody evidence from the token risk response. A token-wide locked percentage also requires an inventory of pools, a verified lock share for each and comparable liquidity valuations at one observation time. The primary-pool result alone cannot supply those inputs.
Before you start
- Have a project mint and a way to identify the pools in your reporting universe.
- For aggregation, obtain compatible pool valuations and lock evidence independently for each included pool.
Implementation steps
- Query the risk endpoint with the project mint. Inspect inputs.lp_shares for pool, observed_at, locked_pct, burned_pct and unproven_pct. Preserve a missing observation as unknown.
- For a conventional fungible LP token, identify the LP mint and its pool. Token vesting on the project mint is a separate metric. Verify the asset and the remaining non-withdrawable share before counting a locker.
- To combine pools, obtain each pool’s valuation in the same currency and its verified lock fraction at comparable times. Keep pool addresses unique and record coverage. Position-based pools require position-level value evidence.
- Calculate sum(pool value × locked fraction) divided by total pool value. If a material pool lacks evidence, report measured coverage and a bound where the total value is known. If inventory or total value is unknown, keep the result scoped to measured pools.
Which percentage belongs on a risk panel?
locked_pct describes verified locked LP for the identified primary pool. burned_pct describes a separate custody outcome. A token supply burn or a vesting schedule for team tokens cannot establish either figure. Preserve the observation timestamp and recheck temporary locks at expiry before reusing the measurement.
Two pools with different liquidity
Suppose pool A has $800,000 of liquidity and 20% verified locked. Pool B has $200,000 and 80% verified locked. Locked value is $160,000 + $160,000. Across the $1 million inventory that is 32%. An arithmetic mean of the two percentages would give 50% and overweight the smaller pool.
What to publish when one pool is unknown
If B still has a known valuation but unknown custody, A alone proves $160,000 of locked liquidity. The lower bound across the two-pool inventory is 16%, and custody coverage by liquidity value is 80%. If other pools may be missing, identify this as a result for the tracked inventory. For concentrated liquidity, a count of locked positions cannot establish a value-weighted lock percentage.

Code examples
Read primary-pool risk evidence
curl -H "Authorization: Bearer $MADEONSOL_API_KEY" "https://madeonsol.com/api/v1/tokens/$SOLANA_MINT/risk"Inspect locks on the specified mint
curl -H "Authorization: Bearer $MADEONSOL_API_KEY" "https://madeonsol.com/api/v1/tokens/$SOLANA_MINT/locks"Common mistakes and fixes
| Mistake | Recommended fix |
|---|---|
| The scanner labels every pool locked after detecting a lock contract. | Match the locked asset to its pool and check the measured remaining lock share. |
| Burned and locked percentages are both added to a locked-only headline. | Show each component separately. Label a combined secured measure explicitly. |
Verify your integration
Use the two-pool example below. Change the second pool’s lock percentage to unknown. The exact combined result should disappear while the verified minimum remains 16% of the known inventory. Remove its valuation too and suppress that bound.
Production checklist
- Pool identifier and observation time travel with the reading.
- A 1% lock displays as 1%.
- An unknown pool cannot silently become a measured zero.
Frequently asked questions
Does the locks endpoint on the project mint give the LP lock percentage?
It describes locks and vesting of that mint. For primary-pool LP custody start with the risk response and its pool-scoped evidence.
Can I add raw LP units from different pools?
Each LP mint represents a different pool. Weight compatible verified shares by pool value at a common observation time.
