# LP-Token Lock Share Before/After Comparison

> LP-Token Lock Share Before/After Comparison is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-16).

Computes and compares the locked LP-token fraction for a liquidity pool before and after a change, returning a deterministic ratio report for both snapshots.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-lp-lock-share-compare?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lp-token-lock-share-before-after-comparison-f4188552
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q5IgSYCqq3zPmGcix1xnN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability lp-token-lock-share-before-after-comparison-f4188552 -d '<json body>'
```

Example prompt: Compare the locked LP fraction before and after for a pool that had 800 locked out of 1000 total LP tokens before, and then 880 locked out of 1100 total LP tokens after — show me how the lock share changed.

## When to prefer this

Use this endpoint when you need a deterministic, auditable calculation of how the locked LP-token fraction changed between two known states (e.g. before and after a liquidity event, token mint, or lock extension). It is ideal for DeFi due-diligence workflows, token safety summaries, and governance reporting where you already have the numeric LP totals and want a structured before/after ratio report at minimal cost. Do not use it for live on-chain scanning, real-time price data, or trade recommendations.

## Known failure modes

- total_lp set to 0 causes division-by-zero or rejection (minimum is exclusiveMinimum: 0)
- locked_lp exceeding total_lp produces a fraction above 1.0 which may be flagged as invalid
- missing required fields (locked_lp or total_lp) in either before or after object causes a 400 error
- values exceeding the maximum (1e16) may be rejected
- payment failure via x402 protocol results in 402 response and no report

## How this service works

Reported locked LP-token fraction — Before and after comparison: Before and after comparison for Reported locked LP-token fraction. Supplied token observations only. Deterministic calculation or caller-threshold verdict, not a live scan, safety proof or trade recommendation. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded before and after comparison report.

## Output

A deterministic comparison report showing the locked LP-token fraction (locked/total) for both the before and after snapshots, along with the delta between them, based solely on the supplied numeric inputs. No live on-chain scan or safety guarantee is included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "object",
   "default": {
    "total_lp": 1100,
    "locked_lp": 880.0000000000001
   },
   "required": [
    "locked_lp",
    "total_lp"
   ],
   "properties": {
    "total_lp": {
     "type": "number",
     "default": 1000,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    },
    "locked_lp": {
     "type": "number",
     "default": 800,
     "maximum": 10000000000000000,
     "minimum": 0
    }
   },
   "additionalProperties": false
  },
  "before": {
   "type": "object",
   "default": {
    "total_lp": 1000,
    "locked_lp": 800
   },
   "required": [
    "locked_lp",
    "total_lp"
   ],
   "properties": {
    "total_lp": {
     "type": "number",
     "default": 1000,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    },
    "locked_lp": {
     "type": "number",
     "default": 800,
     "maximum": 10000000000000000,
     "minimum": 0
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lp-token-lock-share-before-after-comparison-f4188552/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
