liqproof 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +536 -2
- package/bugs/README.md +144 -0
- package/bugs/coin-gecko-liquidity-report.md +283 -0
- package/bugs/collect-ds-aggregate.mjs +213 -0
- package/bugs/collect-evidence.mjs +458 -0
- package/bugs/collect-gt-aggregate.mjs +215 -0
- package/bugs/collect-raw-rpc.mjs +165 -0
- package/bugs/collect-sweep-context.mjs +162 -0
- package/bugs/dexscreener-fake-liquidity-report.md +310 -0
- package/bugs/evidence/aggregator-liquidity-claims.json +648 -0
- package/bugs/evidence/aggregator-liquidity-claims.md +103 -0
- package/bugs/evidence/bat-native-pool-drained.json +136 -0
- package/bugs/evidence/bat-native-pool-drained.md +51 -0
- package/bugs/evidence/chz-impersonator-pool-drained.json +136 -0
- package/bugs/evidence/chz-impersonator-pool-drained.md +51 -0
- package/bugs/evidence/gt-stale-reserve-after-drain.json +141 -0
- package/bugs/evidence/gt-stale-reserve-after-drain.md +31 -0
- package/bugs/evidence/raw-rpc-transcript.json +683 -0
- package/bugs/evidence/raw-rpc-transcript.md +308 -0
- package/bugs/evidence/sweep-context.json +325 -0
- package/bugs/evidence/sweep-context.md +55 -0
- package/bugs/evidence/verified-aggregate.json +526 -0
- package/bugs/evidence/verified-aggregate.md +24 -0
- package/bugs/evidence/verified-ds-liquidity-usd.json +1197 -0
- package/bugs/evidence/verified-ds-liquidity-usd.md +250 -0
- package/bugs/evidence/verified-gt-reserve-in-usd.json +1002 -0
- package/bugs/evidence/verified-gt-reserve-in-usd.md +218 -0
- package/bugs/fix-bundle-titles.mjs +72 -0
- package/bugs/geckoterminal-stale-reserve-after-drain.md +137 -0
- package/data/dataset-summary.md +103 -0
- package/data/impersonators.json +12888 -0
- package/data/verified-impersonators.json +725 -0
- package/data/wallets.json +23 -0
- package/dist/base58.js +70 -0
- package/dist/base58.js.map +1 -0
- package/dist/canonical.js +372 -0
- package/dist/canonical.js.map +1 -0
- package/dist/cli.js +830 -0
- package/dist/cli.js.map +1 -0
- package/dist/curve.js +255 -0
- package/dist/curve.js.map +1 -0
- package/dist/dashboard.js +485 -0
- package/dist/dashboard.js.map +1 -0
- package/dist/keccak.js +197 -0
- package/dist/keccak.js.map +1 -0
- package/dist/mcp.js +604 -0
- package/dist/mcp.js.map +1 -0
- package/dist/operator.js +180 -0
- package/dist/operator.js.map +1 -0
- package/dist/pda.js +86 -0
- package/dist/pda.js.map +1 -0
- package/dist/receipt.js +897 -0
- package/dist/receipt.js.map +1 -0
- package/dist/render.js +335 -0
- package/dist/render.js.map +1 -0
- package/dist/rpc.js +377 -0
- package/dist/rpc.js.map +1 -0
- package/dist/sources.js +599 -0
- package/dist/sources.js.map +1 -0
- package/dist/store.js +330 -0
- package/dist/store.js.map +1 -0
- package/dist/tokenmeta.js +424 -0
- package/dist/tokenmeta.js.map +1 -0
- package/dist/util.js +273 -0
- package/dist/util.js.map +1 -0
- package/dist/vaults.js +510 -0
- package/dist/vaults.js.map +1 -0
- package/dist/wallet.js +404 -0
- package/dist/wallet.js.map +1 -0
- package/dist/warnings.js +41 -0
- package/dist/warnings.js.map +1 -0
- package/dist/worker.js +857 -0
- package/dist/worker.js.map +1 -0
- package/dist/x402.js +549 -0
- package/dist/x402.js.map +1 -0
- package/docs/HACKATHON-SUBMISSION.md +264 -0
- package/docs/liqproof-plan.md +221 -0
- package/docs/llms.txt +32 -0
- package/docs/mcp-registry.md +165 -0
- package/docs/screenshots/01-dashboard.png +0 -0
- package/docs/screenshots/02-receipt-drained.png +0 -0
- package/docs/screenshots/03-receipt-impersonator.png +0 -0
- package/docs/screenshots/04-receipt-canonical.png +0 -0
- package/docs/x402-pricing.md +171 -0
- package/docs/zero-xyz.md +250 -0
- package/out/6eftxVbSAunVEoxUWdGhPdxg5UdsJ8Wkwy5w5YFuxouw.json +1171 -0
- package/out/6eftxVbSAunVEoxUWdGhPdxg5UdsJ8Wkwy5w5YFuxouw.md +52 -0
- package/out/6eftxVbSAunVEoxUWdGhPdxg5UdsJ8Wkwy5w5YFuxouw.svg +25 -0
- package/out/BTNiaZb6HaEFWeEtND4SXtZ7T6mgtDwSryHTAj6PuPyp.json +3975 -0
- package/out/BTNiaZb6HaEFWeEtND4SXtZ7T6mgtDwSryHTAj6PuPyp.md +90 -0
- package/out/BTNiaZb6HaEFWeEtND4SXtZ7T6mgtDwSryHTAj6PuPyp.svg +25 -0
- package/out/ENGkoidj2jNs73A7GZuseVmnkRg6EVF9tDtViwPz8o85.json +1446 -0
- package/out/ENGkoidj2jNs73A7GZuseVmnkRg6EVF9tDtViwPz8o85.md +66 -0
- package/out/ENGkoidj2jNs73A7GZuseVmnkRg6EVF9tDtViwPz8o85.svg +25 -0
- package/out/dataset.csv +67 -0
- package/out/impersonation-table.md +156 -0
- package/out/index.html +1179 -0
- package/package.json +78 -4
- package/scripts/assert-no-canonical-accusations.mjs +193 -0
- package/scripts/backfill.mjs +1063 -0
- package/scripts/bundle-evidence.mjs +237 -0
- package/scripts/bundle-stale-claim.mjs +417 -0
- package/scripts/capture-bch-evidence.mjs +58 -0
- package/scripts/check-orientation-fix.mjs +40 -0
- package/scripts/check-wallet.mjs +54 -0
- package/scripts/daily-refresh.mjs +451 -0
- package/scripts/decode-clmm-vaults.mjs +180 -0
- package/scripts/falsifiability.mjs +263 -0
- package/scripts/impersonator-mining.mjs +156 -0
- package/scripts/inspect-matches.mjs +73 -0
- package/scripts/operator-sweep.mjs +252 -0
- package/scripts/publish-release.mjs +248 -0
- package/scripts/refresh-store.mjs +78 -0
- package/scripts/survival-miner.mjs +951 -0
- package/scripts/test-keccak.mjs +103 -0
- package/scripts/verify-bch-1p95b.mjs +124 -0
- package/scripts/verify-clmm-1p95b.mjs +127 -0
- package/scripts/verify-clmm-control.mjs +84 -0
- package/scripts/verify-impersonators.mjs +138 -0
- package/scripts/verify-raw.mjs +110 -0
- package/scripts/verify-raw2.mjs +99 -0
- package/server.json +34 -0
- package/src/base58.ts +68 -0
- package/src/canonical.ts +447 -0
- package/src/cli.ts +941 -0
- package/src/curve.ts +349 -0
- package/src/dashboard.ts +504 -0
- package/src/keccak.ts +228 -0
- package/src/mcp.ts +735 -0
- package/src/operator.ts +219 -0
- package/src/receipt.ts +1219 -0
- package/src/render.ts +396 -0
- package/src/rpc.ts +435 -0
- package/src/sources.ts +714 -0
- package/src/store.ts +428 -0
- package/src/tokenmeta.ts +460 -0
- package/src/util.ts +276 -0
- package/src/vaults.ts +574 -0
- package/src/wallet.ts +459 -0
- package/src/warnings.ts +40 -0
- package/src/worker.ts +1086 -0
- package/src/x402.ts +717 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ahmed Ibrahim Hassan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,537 @@
|
|
|
1
|
-
#
|
|
1
|
+
# LIQPROOF
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/aihbusiness77-pixel/liqproof/actions/workflows/ci.yml)
|
|
4
|
+
[](https://aihbusiness77-pixel.github.io/liqproof/)
|
|
5
|
+
[](https://www.npmjs.com/package/liqproof)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
[](#architecture)
|
|
8
|
+
|
|
9
|
+
**On-chain liquidity receipts.** Every token claim gets a receipt: what the market *claimed*, what is *actually deposited* in the pool vault, when the money left, and whether you can really trade it.
|
|
10
|
+
|
|
11
|
+
> **The chain doesn't lie. We keep receipts.**
|
|
12
|
+
|
|
13
|
+
A pool can claim **$1.91 billion** of liquidity. Its vault holds **$0.000001**. The money was pulled out in one transaction, **27 minutes** after the pool was created — and the aggregator still shows the number.
|
|
14
|
+
|
|
15
|
+
A pool can claim **$136,104,320**. LIQPROOF reads the vault on Solana mainnet and finds **$27.64** of real USDC. The receipt says so, links to the transaction, and cannot be edited.
|
|
16
|
+
|
|
17
|
+
And a token named **Chiliz** can claim **$49,597,316**. Its vault holds **$9.62**.
|
|
18
|
+
|
|
19
|
+
And a token named **Tether** can claim **$5,713,819,515** — its pool holds **$14.62**, and one of them holds **$0.00**.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Built during the Long Tail hackathon (4-6 December 2026)
|
|
24
|
+
|
|
25
|
+
**Everything in this repository was built inside the hackathon window** (1-15
|
|
26
|
+
December 2026). The first commit is 4 December; there is no pre-existing
|
|
27
|
+
version of LIQPROOF.
|
|
28
|
+
|
|
29
|
+
| Date | What was built |
|
|
30
|
+
|---|---|
|
|
31
|
+
| **4 Dec** | The receipt engine: Solana RPC pool with batching, rotation and a rate governor; the vault reader that reads a pool's quote-side token balances; the aggregator clients; the liquidity-curve reconstruction from transaction history; the receipt builder, the store and the CLI. |
|
|
32
|
+
| **4 Dec** | The first finding: a pool advertised at **$1.91 billion** whose vault held **$0.000001**, drained in one transaction 27 minutes after creation. The falsifiability harness and the first bug-bounty reports. |
|
|
33
|
+
| **5 Dec** | The canonical resolver and the impersonation sweep: 9,053 mints -> 4,950 with readable metadata -> 212 creator clusters -> **191 name collisions, 119 confirmed**, 72 ticker-only observations never called fraud. The zero-dependency receiving-wallet checker. |
|
|
34
|
+
| **6 Dec** | The **canonical-protection fix**: the accusation gate now covers every accusatory verdict, the store guards every writer, and CI re-derives the canonical answer for every published row. The daily dataset refresh, the self-contained dashboard, the demo video pipeline and this README. |
|
|
35
|
+
|
|
36
|
+
**What is new in this project, as a single feature:** LIQPROOF turns an
|
|
37
|
+
aggregator's liquidity claim into a **falsifiable on-chain receipt** - the
|
|
38
|
+
claimed number, the deposited number, the deposit coverage, the reconstructed
|
|
39
|
+
timeline with the drain transaction, and links to every piece of evidence - and
|
|
40
|
+
it refuses to accuse a canonical token, with that refusal enforced in code and
|
|
41
|
+
asserted in CI.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## The headline finding — $1.91 BILLION
|
|
46
|
+
|
|
47
|
+
**Pool** `CEvMnd2b79GFzsxSvJntvBZyjwJvrEaXbEfUURkyHg4f` (Raydium CLMM) · **created** 2026-12-04 08:58:05 UTC
|
|
48
|
+
|
|
49
|
+
| | |
|
|
50
|
+
|---|---|
|
|
51
|
+
| GeckoTerminal says | **~$1.91 billion** |
|
|
52
|
+
| DexScreener says (same pool) | **$0.19** |
|
|
53
|
+
| **The chain says** | **$0.000001 USDT** + **0.001018 tokens** |
|
|
54
|
+
| Drain transaction | `4b2SgzpTcPaTNguxWMFH6aUAD14NJq78muypWbf46Rk3Rre6aHAAs37cqUgZQHpLhC7E45iTuLyvCU49LfMEhUMj` |
|
|
55
|
+
| Drained at | 2026-12-04 09:25:29 UTC — **27.4 minutes** after creation |
|
|
56
|
+
|
|
57
|
+
The dashboard number is not merely stale, it is **wrong in a way that compounds**: it is a *stale token amount* multiplied by a *live price*. GeckoTerminal's own payload implies the pool holds **9,824,300 tokens**. The chain says it holds **0.001018**. So the advertised liquidity keeps **moving** with the token price even though the tokens are gone.
|
|
58
|
+
|
|
59
|
+
> **Re-run it and the number will be different.** That is not drift in our measurement — it is the bug. We have seen this pool advertised at $1,950,302,900, $1,924,538,558 and $1,913,975,762 within the same hour, while the chain has read `0.000001 USDT` the whole time. The on-chain side is stable; the headline is not. **A liquidity badge that moves while the money is gone is a number, not a fact.**
|
|
60
|
+
|
|
61
|
+
We can reproduce this across 16 pools at once — **$35.76 billion advertised, $20,168 actually deposited** — but this single pool is the cleanest reproduction there is, because the whole life of the pool fits in 27 minutes and a reviewer can verify it by hand.
|
|
62
|
+
|
|
63
|
+
> The full bug report, with raw RPC transcripts and reproduction commands, is in [`bugs/geckoterminal-stale-reserve-after-drain.md`](bugs/geckoterminal-stale-reserve-after-drain.md). It is generated by `node scripts/bundle-stale-claim.mjs` — the numbers in the report are measured, never typed.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## The one number that matters
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
DEPOSIT COVERAGE = deposited USD / claimed USD
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
- A legitimate pool: **25–75%** (the quote leg is normally half the TVL).
|
|
74
|
+
- A legitimate but price-imbalanced pool: **1–25%** — a constant-product AMM naturally goes one-sided as the price moves. Not an accusation.
|
|
75
|
+
- A rug: **0.00002%**.
|
|
76
|
+
|
|
77
|
+
Coverage is falsifiable, timestampable, and impossible to fake without actually depositing the money. It needs no account, no API key, and no paid indexer.
|
|
78
|
+
|
|
79
|
+
### The self-denominated finding
|
|
80
|
+
|
|
81
|
+
Aggregators compute a pool's liquidity as:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
reserve_in_usd = base_tokens × price + quote_usd
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
A pool stuffed with **its own token** inflates its own liquidity number — it is valuing its inventory at the price it is trying to establish. LIQPROOF separates the two and reports the **self-denominated %**: the share of the claim that is circular.
|
|
88
|
+
|
|
89
|
+
The real trap we found:
|
|
90
|
+
|
|
91
|
+
> **100.00%** of a **"$136M"** pool value was the token itself (997,769,021 BAT priced at BAT's own price). Only **$27.64** was real USDC — a deposit coverage of **0.000020%**. The pool **peaked at $28,410** of real money and was drained; the aggregator never updated the badge.
|
|
92
|
+
|
|
93
|
+
That is not a pool that is slightly illiquid. That is a number printed on a billboard with $27.64 behind it.
|
|
94
|
+
|
|
95
|
+
> **Note on the numbers:** the vault balance and the market price move while you read this. The values above were measured on **2026-12-04**; the verdict, the order of magnitude and the coverage do not move with them. The self-denominated % is computed from a single on-chain snapshot, so it is internally consistent by construction — it can never exceed 100% no matter how stale an aggregator's cached claim is.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Watch the demo (2:56)
|
|
100
|
+
|
|
101
|
+
The video is **rendered from real captured CLI output** - every frame is the
|
|
102
|
+
actual terminal output of the actual command, not a mock-up. The capture
|
|
103
|
+
scripts, the storyboard and the raw output are in [`demo/`](./demo/), and the
|
|
104
|
+
renderer is [`demo/render.py`](./demo/render.py).
|
|
105
|
+
|
|
106
|
+
| | |
|
|
107
|
+
|---|---|
|
|
108
|
+
| Video | **[Download the demo (2:56)](https://github.com/aihbusiness77-pixel/liqproof/releases/download/v0.1.0/liqproof-demo.mp4)** - 1920x1080, 30fps, with narration |
|
|
109
|
+
| Release | https://github.com/aihbusiness77-pixel/liqproof/releases/tag/v0.1.0 |
|
|
110
|
+
| Storyboard | [`demo/storyboard.json`](./demo/storyboard.json) |
|
|
111
|
+
| Captured output | [`demo/raw/`](./demo/raw/) - the exact terminal output every frame is rendered from |
|
|
112
|
+
| Renderer | [`demo/render.py`](./demo/render.py) and [`demo/capture.mjs`](./demo/capture.mjs) |
|
|
113
|
+
|
|
114
|
+
<p align="center">
|
|
115
|
+
<img src="docs/screenshots/01-dashboard.png" alt="LIQPROOF dashboard - the published dataset" width="900">
|
|
116
|
+
</p>
|
|
117
|
+
|
|
118
|
+
<p align="center">
|
|
119
|
+
<img src="docs/screenshots/02-receipt-drained.png" alt="A drained pool receipt" width="49%">
|
|
120
|
+
<img src="docs/screenshots/03-receipt-impersonator.png" alt="An impersonator receipt" width="49%">
|
|
121
|
+
</p>
|
|
122
|
+
|
|
123
|
+
<p align="center">
|
|
124
|
+
<img src="docs/screenshots/04-receipt-canonical.png" alt="A canonical token receipt - a finding about the pool, never an accusation" width="900">
|
|
125
|
+
</p>
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 3-minute demo script
|
|
130
|
+
|
|
131
|
+
Copy-paste each command and say the line under it.
|
|
132
|
+
|
|
133
|
+
### 1. The trap (35 seconds)
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
npm install
|
|
137
|
+
npm run build
|
|
138
|
+
node dist/cli.js receipt ENGkoidj2jNs73A7GZuseVmnkRg6EVF9tDtViwPz8o85
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
> Installed from npm? The same receipt, no clone:
|
|
142
|
+
> ```bash
|
|
143
|
+
> npx -y liqproof receipt ENGkoidj2jNs73A7GZuseVmnkRg6EVF9tDtViwPz8o85
|
|
144
|
+
> ```
|
|
145
|
+
|
|
146
|
+
> "This pool advertises **$1.91 billion**. LIQPROOF read the vault directly on chain: **one millionth of a dollar**. Coverage: **0.00000000000005%**. The verdict is DRAINED — and the receipt names the transaction that emptied it, 27 minutes after the pool was born. GeckoTerminal still shows the $1.91 billion. DexScreener shows $0.19. Same pool. The chain settles it."
|
|
147
|
+
|
|
148
|
+
### 2. Show the drain (45 seconds)
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
node dist/cli.js timeline BTNiaZb6HaEFWeEtND4SXtZ7T6mgtDwSryHTAj6PuPyp --txs=60
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
> "Now the part nobody else publishes: the **timeline**. Every deposit and withdrawal, reconstructed from transaction metadata. The pool **peaked at $28,410** of real money. Then the money left, in a single transaction — here is the signature. Open it on Solscan and check the vault balance yourself. DexScreener still shows this pool as **$136.1 million**."
|
|
155
|
+
|
|
156
|
+
### 3. Prove it is not a blunt instrument (45 seconds)
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
node dist/cli.js receipt JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN --no-curve
|
|
160
|
+
node dist/cli.js receipt DrZ26cKJDksVRWib3DVVsjo9eeXccc7hKhDJviiYEEZY --no-curve
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
> "Same tool, same code path. JUP — a bluechip — comes back **CONSISTENT**. YZY — a pool that is **96% self-denominated** and still perfectly tradable — comes back **THIN**, not an accusation. And the **official** Chiliz mint, a real top-30 project, comes back `UNBACKED_LIQUIDITY` — a finding about its *pool*, never an accusation against the project. The tool does not flag everything. It has **zero false positives** on a labelled set of clean tokens, it catches **four** traps, and it **protects real projects** it refuses to accuse. Precision 100%, recall 100%."
|
|
164
|
+
|
|
165
|
+
### 4. Ship the artefact (30 seconds)
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
node dist/cli.js scan --feed=universe --limit=12
|
|
169
|
+
node dist/cli.js export
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
> "One command mines the top of the whole Solana market — no curated list, no paywall — and audits the most suspicious pools it finds. One command writes a **dataset.csv** and a **self-contained HTML dashboard** — no server, no CDN, works offline. Open `out/index.html`."
|
|
173
|
+
|
|
174
|
+
### 5. Put it in an agent (30 seconds)
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
node dist/cli.js mcp
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
> "And it speaks the **Model Context Protocol** over stdio — four read-only tools. Any MCP client can now ask for a liquidity receipt and get the same evidence I just showed you."
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Falsifiability
|
|
185
|
+
|
|
186
|
+
A tool that flags everything is worthless. This one has **zero false positives** on a labelled set.
|
|
187
|
+
|
|
188
|
+
> The dollar figures below are from the **2026-12-04** run of `scripts/falsifiability.mjs`. The token prices move, so the claim columns move with them — re-run the harness and you will get the same **verdicts**, the same **coverage magnitudes** and the same **PASS/FAIL**, with slightly different digits in the money columns. That is the point of measuring against a live chain: the verdict is stable, the badge is not.
|
|
189
|
+
|
|
190
|
+
| case | verdict | claimed | deposited | coverage | self | impact | result |
|
|
191
|
+
|---|---|---|---|---|---|---|---|
|
|
192
|
+
| TRAP BAT impostor #1 (claim $136M) | FAKE_LIQUIDITY | $136,104,320 | $27.64 | 0.000020% | 100.00% | 100% | **PASS** |
|
|
193
|
+
| TRAP BAT impostor #2 (claim $1.09B) | FAKE_LIQUIDITY | $1,099,765,363 | $26.20 | 0.0000024% | 100.00% | 100% | **PASS** |
|
|
194
|
+
| TRAP Chiliz impostor (claim $48.9M) | FAKE_LIQUIDITY | $49,597,316 | $9.62 | 0.000019% | 100.00% | 100% | **PASS** |
|
|
195
|
+
| TRAP fake "BCH " (claim $1.91B, drained) | DRAINED | $1,913,975,762 | $0.000001 | 5.2e-14% | 100.00% | 100% | **PASS** |
|
|
196
|
+
| **SAFE** CHILIZ — *official*, must never be accused | UNBACKED_LIQUIDITY | $38,909 | $128.65 | 0.3% | 99.67% | 0% | **PASS** |
|
|
197
|
+
| CLEAN USDT — must never be accused, must be measured base-side | UNKNOWN | $3,072,888 | $0.00 | — | — | — | **PASS** |
|
|
198
|
+
| CLEAN JUP | CONSISTENT | $1,511,451 | $819,235.72 | 54.2% | 45.73% | 0% | **PASS** |
|
|
199
|
+
| CLEAN BONK | CONSISTENT | $193,367 | $57,303.98 | 29.6% | 70.34% | 0% | **PASS** |
|
|
200
|
+
| CLEAN PYTH | CONSISTENT | $250,285 | $118,763.91 | 47.5% | 52.51% | 0% | **PASS** |
|
|
201
|
+
| CLEAN JTO | CONSISTENT | $540,989 | $178,010.80 | 32.9% | 66.97% | 0% | **PASS** |
|
|
202
|
+
| CLEAN baton (real pump.fun) | CONSISTENT | $290,099 | $143,015.75 | 49.3% | 50.63% | 0% | **PASS** |
|
|
203
|
+
| CLEAN BAT bridged (Wormhole) | CONSISTENT | $10,640 | $4,759.68 | 44.7% | 55.26% | 0% | **PASS** |
|
|
204
|
+
| CLEAN YZY (96% self, tradable) | THIN | $37,709,604 | $1,535,563.99 | 4.1% | 95.89% | 0% | **PASS** |
|
|
205
|
+
| CLEAN OUSD (quote impact max, pool funded) | CONSISTENT | $18,721,730 | $12,686,818.08 | 67.8% | 32.23% | 100%\* | **PASS** |
|
|
206
|
+
| CLEAN GRASS (4% coverage, thin) | THIN | $228,043 | $14,764.65 | 6.5% | 93.49% | 0% | **PASS** |
|
|
207
|
+
| CLEAN USDY (stablecoin, healthy) | CONSISTENT | $2,922,914 | $2,109,650.74 | 72.2% | 27.82% | 0% | **PASS** |
|
|
208
|
+
|
|
209
|
+
**Result: traps caught 4/4, false positives 0/12, clean passed 12/12, precision 100.0%, recall 100.0%, real projects protected 12.**
|
|
210
|
+
|
|
211
|
+
> **We publish the harness.** A tool that flags everything is worthless; this one has zero false positives on a labelled set.
|
|
212
|
+
>
|
|
213
|
+
> ### The safety net CI runs on every push
|
|
214
|
+
>
|
|
215
|
+
> A harness proves the engine is right about the cases it knows. It does not
|
|
216
|
+
> prove the **published dataset** is right — and the published dataset is what
|
|
217
|
+
> a judge, a journalist or a bug-bounty reviewer reads.
|
|
218
|
+
>
|
|
219
|
+
> So CI does one more thing: it re-reads every accusatory row in
|
|
220
|
+
> `out/dataset.csv` straight from the chain and the canonical index, and
|
|
221
|
+
> **fails the build** if a canonical token is carrying `FAKE_LIQUIDITY`,
|
|
222
|
+
> `DRAINED` or `NO_DEPTH`. It does not trust the dataset's own verdict or
|
|
223
|
+
> flags; it re-derives the answer the way an outside reviewer would.
|
|
224
|
+
>
|
|
225
|
+
> It exists because the canonical USDB mint once reached the published
|
|
226
|
+
> dataset as `NO_DEPTH` on a $500M claim. The engine gate, the store-time
|
|
227
|
+
> guard and this assertion are three independent lines, and the third one is
|
|
228
|
+
> the one that goes red before a reviewer can find the mistake.
|
|
229
|
+
>
|
|
230
|
+
> The `SAFE` row is the one that matters most. `6eftxVbSA…` was **originally in our TRAP list**, labelled a Chiliz copycat. The very next probe proved it is the official $CHZ mint on Solana — listed in Chiliz's own documentation, mapped correctly by CoinGecko, priced live by Jupiter, with an active custodial mint authority. We shipped a **canonical resolver** instead of a patch, and the row is now a permanent regression test. *We caught ourselves before anyone else could.*
|
|
231
|
+
>
|
|
232
|
+
> The `USDT` row is the second one. We once audited USDT on a pool where USDT was only the **counterparty** — a pool whose reserve had been drained — and published USDT as holding $0.00. The pool was the problem; USDT was innocent, and the honest $40-billion USDT market was made to look like a scam. The rule is now in the engine: *a receipt measures a pool where the audited mint is the base token*, and the receipt says so in plain words. **We caught ourselves twice.**
|
|
233
|
+
|
|
234
|
+
The harness is `scripts/falsifiability.mjs` — run it yourself against mainnet and check the numbers.
|
|
235
|
+
|
|
236
|
+
### The six rules that make the precision real
|
|
237
|
+
|
|
238
|
+
**1. No evidence, no verdict.** If the pool's quote-side vault cannot be located, or its quote token cannot be priced, the verdict is `UNKNOWN` — never an accusation. We would rather publish nothing than ruin the credibility of every other receipt. This is why USDT above reads `UNKNOWN`: its biggest base-side pool runs on an AMM whose vault layout we have not verified, so we refuse to measure it.
|
|
239
|
+
|
|
240
|
+
**2. A canonical token is never accused.** Before LIQPROOF can call anything fake, it must know who the genuine article is. `src/canonical.ts` resolves the real mint behind a name or ticker from two keyless tiers: the **project's own documentation** and **CoinGecko's coin→Solana-mint map** (7,019 Solana mints, one request, cached 6 h). If the mint *is* the canonical one, the money test still fires but the verdict degrades to `UNBACKED_LIQUIDITY` — a finding about the **pool**, not about the project. If the index cannot be loaded at all, we refuse to accuse at all.
|
|
241
|
+
|
|
242
|
+
**3. A counterparty pool never accuses.** A pool in which the audited mint is only the quote token says nothing about that mint's own liquidity. LIQPROOF audits a base-side pool whenever one exists, and marks the receipt when it cannot.
|
|
243
|
+
|
|
244
|
+
**4. The self-denominated % is computed from one on-chain snapshot.** It is
|
|
245
|
+
|
|
246
|
+
```
|
|
247
|
+
self% = base_value / (base_value + quote_value)
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
where `base_value = live base balance × market price` and `quote_value = live quote balance`. It is **not** derived from the aggregator's claim. We originally wrote it as `(base_tokens × price) / claimed_liquidity`, and that produced a false accusation on BONK: the claim was up to 15 minutes stale while the balance was live, so the ratio crossed 100% and the tool called a bluechip fake. The current formulation cannot exceed 100% by construction, because both legs come from the same snapshot.
|
|
251
|
+
|
|
252
|
+
**5. The ratio alone never convicts.** `FAKE_LIQUIDITY` requires **both** a coverage under 0.5% **and** less than $1,000 of real depth. A ratio on its own would accuse YZY, a $37M pool that is 96% one-sided and perfectly tradable — we hit exactly that false positive and fixed it. The absolute floor is the part that means something: *there is no money.*
|
|
253
|
+
|
|
254
|
+
**6. The quote oracle is a witness, not a judge.** A price-impact number says how the router priced a route, not whether the pool behind it holds anything. We hit both failure modes in our own tool while building it: a healthy pool that read as untradeable, and an empty pool that read as fine. So `NO_DEPTH` requires the oracle **and** the on-chain depth to agree; one field is never a verdict on its own. *\* The OUSD row in the harness below shows 100% impact and is still CONSISTENT, and that row is the proof the rule works.*
|
|
255
|
+
|
|
256
|
+
### The verdicts
|
|
257
|
+
|
|
258
|
+
| verdict | meaning | threshold |
|
|
259
|
+
|---|---|---|
|
|
260
|
+
| `FAKE_LIQUIDITY` | the advertised liquidity is essentially not there | coverage < 0.5% **and** depth < $1,000, claim > $10K |
|
|
261
|
+
| `UNBACKED_LIQUIDITY` | the money is not there, but the token is not an impostor — a finding about the **pool** | same money test, issued when the mint is canonical or the index was unavailable |
|
|
262
|
+
| `NO_DEPTH` | a $1 trade costs ~the whole position | quote impact >= 95% **and** depth < $10,000, claim > $100K |
|
|
263
|
+
| `DRAINED` | the money was there and a transaction took it | depth < $100 **and** a drain event we can link |
|
|
264
|
+
| `NO_ROUTE` | the money is there, but no router can reach it | quote fails **and** depth ≥ $10,000 |
|
|
265
|
+
| `THIN` | a fact, not an accusation | coverage < 10%, claim > $10K |
|
|
266
|
+
| `CONSISTENT` | the claim is backed | — |
|
|
267
|
+
| `UNKNOWN` | we could not read the evidence | — |
|
|
268
|
+
|
|
269
|
+
### The flags on the receipt
|
|
270
|
+
|
|
271
|
+
A verdict is a decision. A **flag** is a fact we found and refused to fold into the verdict. They are printed on every receipt, because a reader has to be able to disagree with our conclusion without losing the evidence.
|
|
272
|
+
|
|
273
|
+
| flag | means | severity |
|
|
274
|
+
|---|---|---|
|
|
275
|
+
| `STALE_CLAIM_AFTER_DRAIN` | a drain event is linked, the claim is still over $100K, and the vault holds under $100 | **the strongest signal we have** — the aggregator is still advertising a provably-emptied pool |
|
|
276
|
+
| `SELF_DENOMINATED` | most of the pool's value is the pool's own token, priced at its own price | structural — a pool valuing its own inventory |
|
|
277
|
+
| `IMPERSONATION` | the mint's on-chain **name** matches a different canonical mint's registered name | an accusation, and only when the match is `confirmed` |
|
|
278
|
+
| `TICKER_COLLISION` | the mint spells someone else's **ticker** as its name | an observation — never published as fraud |
|
|
279
|
+
| `CREATOR_LINEAGE` | this mint shares a creator address with other mints | **annotation only** — shared tooling is not a fraud ring, and we never accuse on it |
|
|
280
|
+
| `CANONICAL` | the mint **is** the genuine article for its name/ticker | protective — forces `UNBACKED_LIQUIDITY` instead of `FAKE_LIQUIDITY` |
|
|
281
|
+
| `COUNTERPARTY_POOL` | the audited mint is only the **quote** token in the measured pool | protective — the finding is about the pool, not the mint, and it can never support an accusation |
|
|
282
|
+
|
|
283
|
+
> `STALE_CLAIM_AFTER_DRAIN` is the one that got us the headline. It is not a heuristic — it requires three measured facts to agree: a linked drain transaction, a claim above $100K, and a vault under $100. The $1.91B pool trips all three.
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## The impersonation grader
|
|
288
|
+
|
|
289
|
+
Knowing a pool is empty is half of it. Knowing **which real project the token is standing in for** is the other half — and it is the half that turns a liquidity complaint into a report someone will act on.
|
|
290
|
+
|
|
291
|
+
LIQPROOF grades impersonation in two levels, and **never blurs them**:
|
|
292
|
+
|
|
293
|
+
| grade | meaning | example |
|
|
294
|
+
|---|---|---|
|
|
295
|
+
| `IMPERSONATION` | the mint's **on-chain name** is the registered name of a different canonical mint | a mint named "Aave" that is not `AavE1kK…` |
|
|
296
|
+
| `TICKER_COLLISION` | the mint spells someone else's **ticker** as its name | a mint named "JUP" that is not `JUPyiwrY…` |
|
|
297
|
+
|
|
298
|
+
Ticker collisions are observations, not accusations — 49 CoinGecko coins share the ticker "USDC" — so they are reported separately and are **not** published as fraud.
|
|
299
|
+
|
|
300
|
+
### What the sweep found
|
|
301
|
+
|
|
302
|
+
A sweep of **9,053 mints** (7,019 from CoinGecko's platform map + 2,432 from DexScreener across 400 tickers) → **4,950** of them had readable on-chain metadata → **212 creator clusters** → joined against the canonical index: **191 name collisions**, of which **119** survived the representation and ambiguity filters as confirmed impersonations (the remaining **72** are ticker-only observations, reported separately and never as an accusation). The top 16 were then verified against the chain with the real receipt engine — **16/16 came back `FAKE_LIQUIDITY`**:
|
|
303
|
+
|
|
304
|
+
| mint | claims to be | advertised | actually deposited |
|
|
305
|
+
|---|---|---:|---:|
|
|
306
|
+
| `7ZBzZ6f1…` | Tether / USDT | $5,713,819,515 | **$14.62** |
|
|
307
|
+
| `83kw8RbT…` | Aave / AAVE | $3,317,523,013 | **$20.25** |
|
|
308
|
+
| `9SuoKps…` | PayPal USD / PYUSD | $2,790,829,657 | **$1.90** |
|
|
309
|
+
| `DQEV6m1m…` | Aave / AAVE | $2,668,263,606 | **$8.35** |
|
|
310
|
+
| `2Syibr4E…` | PancakeSwap / CAKE | $2,549,840,210 | **$18.49** |
|
|
311
|
+
| `PAXpQGbD…` | PAX Gold / PAXG | $2,503,955,357 | **$16.93** |
|
|
312
|
+
| `8CWSgbfB…` | Aave / AAVE | $2,233,370,235 | **$5.05** |
|
|
313
|
+
| `F6edeQG8…` | Aave / AAVE | $2,100,161,296 | **$5.82** |
|
|
314
|
+
| `FJkTpy5r…` | Raydium / RAY | $2,069,709,604 | **$12.17** |
|
|
315
|
+
| `7wcT8pY4…` | Render / RENDER | $1,709,830,958 | **$18.03** |
|
|
316
|
+
| `HT21wEtw…` | Dash / DASH | $1,456,692,802 | **$1.99** |
|
|
317
|
+
| `29ezTKKQ…` | Dash / DASH | $1,455,964,745 | **$2.54** |
|
|
318
|
+
| `D5EDAYy1…` | Dash / DASH | $1,415,062,550 | **$4.17** |
|
|
319
|
+
| `2Rc5zjfA…` | Dash / DASH | $1,327,047,839 | **$9.33** |
|
|
320
|
+
| `GMWrcQ18…` | Backpack / BP | $1,249,791,625 | **$22.83** |
|
|
321
|
+
| `8UyAe2kk…` | Dash / DASH | $1,237,100,092 | **$3.31** |
|
|
322
|
+
| **16 verified** | | **$35,798,963,104** | **$165.77** |
|
|
323
|
+
|
|
324
|
+
**$35.80 billion advertised. $165.77 actually there.** A 216-million× overstatement, across sixteen tokens named after real projects.
|
|
325
|
+
|
|
326
|
+
> These are live numbers — the token price moves, so the dollar figures move with it. Regenerate them yourself:
|
|
327
|
+
> ```bash
|
|
328
|
+
> node scripts/impersonator-mining.mjs # the sweep → data/impersonators.json
|
|
329
|
+
> node scripts/verify-impersonators.mjs --top=16 # on-chain verification → out/impersonation-table.md
|
|
330
|
+
> ```
|
|
331
|
+
|
|
332
|
+
> ### The part that makes us trust us: we killed 121 of our own attributions
|
|
333
|
+
>
|
|
334
|
+
> The first sweep said **240**. It was wrong. Hand-auditing every match against the chain killed **121** of them, and each kill taught us a rule that is now enforced in code:
|
|
335
|
+
>
|
|
336
|
+
> | what we wrongly called an impersonation | why it was wrong | the rule that now prevents it |
|
|
337
|
+
> |---|---|---|
|
|
338
|
+
> | 14 tokens named "Solana" (**$35B**) | "Solana Swap" matched "Solana" after the word `swap` was stripped | identity-free word list tightened (`swap`, `x`, `coin`, `inu` removed) |
|
|
339
|
+
> | 4 tokens named "SOL" (**$6.1B**) | "Sol X" → "sol" | same |
|
|
340
|
+
> | 5 tokens named "TAO" (**$11.8B**) | matched "The Anthropic Order" — a *different* project that happens to share the ticker | ticker collisions are their own grade, never `IMPERSONATION` |
|
|
341
|
+
> | 3 tokens named "Gram" (**$11.8B**) | matched "Blockgram" | same |
|
|
342
|
+
> | TRX / LUNC / HYPE / AVAX / DYDX / ZEC | bridge representations — **all legitimate** | a bridge/wrapper name owns nothing; it can be neither victim nor culprit |
|
|
343
|
+
>
|
|
344
|
+
> We publish the error rate, because a tool that cries wolf is worthless even when it is right. `data/impersonators.json` keeps the raw 191 and the verified 119 side by side; `data/verified-impersonators.json` keeps only what the chain confirmed.
|
|
345
|
+
>
|
|
346
|
+
> (The 240 → 119 story above is the FIRST sweep. The run committed to the repository today is smaller — 191 raw matches, 119 confirmed — because the registry and the filters changed since. The errors are the point, so both numbers are published rather than the flattering one.)
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
## How the sweep finds things
|
|
351
|
+
|
|
352
|
+
A scanner is only useful if it finds something. We measured the obvious feeds and rejected them:
|
|
353
|
+
|
|
354
|
+
| feed | result | why we rejected it |
|
|
355
|
+
|---|---|---|
|
|
356
|
+
| GeckoTerminal `new_pools` | 20 pools, **0 with a claim** | a pool created ten seconds ago still reports `reserve_in_usd = 0`; there is nothing to falsify yet |
|
|
357
|
+
| GeckoTerminal `top_pools` | 140 pools over 10 pages, **0 findings** | it is a curated *popularity* list. Every pool on it is a bluechip with real money behind it. The fakers are not popular — and they are invisible here |
|
|
358
|
+
| DexScreener boosts / profiles | ~30 tokens per call | rotating; reaches the pump.fun crowd but never a dead pool |
|
|
359
|
+
| **CoinGecko universe + DexScreener batch** | **the whole top of the market in 3 HTTP requests** | **used** |
|
|
360
|
+
|
|
361
|
+
The winning pipeline is three keyless requests:
|
|
362
|
+
|
|
363
|
+
```
|
|
364
|
+
CoinGecko /coins/list?include_platform=true → 21,093 coins, 7,028 on Solana
|
|
365
|
+
CoinGecko /coins/markets?per_page=250 → the ranked top of the market
|
|
366
|
+
DexScreener /tokens/v1/solana/{30 mints} → every pool of every one of them
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
Then we rank by **suspicion**, not by size:
|
|
370
|
+
|
|
371
|
+
```
|
|
372
|
+
suspicion = claimed_liquidity / (24h_volume + floor)
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
A pool advertising **$38,000,000** that traded **$1,761** in the last day is **21,000×** more suspicious than one advertising the same and trading $18,500,000. That single ratio is what turned a sweep that found nothing into a sweep that finds the traps — and it found them **blind**, with no prior knowledge of the token.
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
## How CoinGecko API is used
|
|
380
|
+
|
|
381
|
+
LIQPROOF's entire product is a **cross-examination of CoinGecko and GeckoTerminal data**. The market publishes a liquidity claim; LIQPROOF reads the same pool on-chain and publishes a receipt that says whether the claim is true. The CoinGecko data is therefore not decoration — it is the *accusation being tested*.
|
|
382
|
+
|
|
383
|
+
| CoinGecko product | Endpoint LIQPROOF calls | What it is used for |
|
|
384
|
+
|---|---|---|
|
|
385
|
+
| **GeckoTerminal v2** (on-chain) | `/networks/solana/tokens/{mint}/pools` | The **claim side** of every receipt: `reserve_in_usd`, `base_token_price_usd`, pool address, DEX, creation time. |
|
|
386
|
+
| **GeckoTerminal v2** (on-chain) | `/networks/solana/pools`, `/trending_pools`, `/new_pools` | The **discovery feeds** the scanner mines. |
|
|
387
|
+
| **CoinGecko `/coins/list?include_platform=true`** | the platform map | The **canonical index**: which mint is the real one for a name. 7,007 mints. This is what makes a false accusation impossible. |
|
|
388
|
+
| **CoinGecko `/coins/markets`** | the Solana market cap list | The **universe** the `scan --feed=universe` command sweeps, ranked by suspicion. |
|
|
389
|
+
| **CoinGecko `/simple/price`** | SOL/USD and token/USD spot | The USD valuation of the vault balances read on-chain, so coverage and divergence have a price. |
|
|
390
|
+
|
|
391
|
+
On-chain data powered by [GeckoTerminal](https://www.geckoterminal.com) · price data provided by [CoinGecko](https://www.coingecko.com) · powered by [CoinGecko API](https://www.coingecko.com/en/api/)
|
|
392
|
+
|
|
393
|
+
**The API key is optional.** LIQPROOF runs on the free public endpoints with no key at all. Copy `.env.example` to `.env` and set `COINGECKO_API_KEY` to move the CoinGecko calls to the Pro host with the key attached — a higher rate limit and the deeper endpoints. Nothing breaks when the key is missing, and no key is ever required.
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
cp .env.example .env # then paste your key, or leave it empty
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
## How Solana is used
|
|
400
|
+
|
|
401
|
+
Solana is not a payment rail in LIQPROOF. It is the **source of truth**.
|
|
402
|
+
|
|
403
|
+
| Solana element | How LIQPROOF uses it |
|
|
404
|
+
|---|---|
|
|
405
|
+
| **SPL token vaults** | The pool vault balance is read directly from the chain. That number is the "real" side of every receipt; the aggregator's number is the "claimed" side. |
|
|
406
|
+
| **Token metadata accounts (Metaplex)** | The on-chain name and ticker of a mint, read from the mint's own metadata PDA. This is the identity proof: a ticker is not an identity, two mints can both be called `CHZ`. |
|
|
407
|
+
| **Transaction history** | `getSignaturesForAddress` + `getTransaction` reconstruct the pool's liquidity timeline: every deposit and withdrawal, with `preTokenBalances` / `postTokenBalances` as the deltas. The drain event is located by binary search over that history. |
|
|
408
|
+
| **Pool accounts** | The AMM's own account holds the vault addresses, so LIQPROOF cross-checks every candidate vault against the pool itself rather than trusting a transaction's account list. |
|
|
409
|
+
| **Slot numbers** | Every measurement is stamped with the slot it was taken at, so a receipt says *when* it was true. |
|
|
410
|
+
| **Canonical index** | 7,007 Solana mints, resolved against the CoinGecko platform map and first-party sources. |
|
|
411
|
+
|
|
412
|
+
**Solana is read, never written.** There is no transaction-signing path anywhere in the source tree; `liqproof verify` greps for one and fails the build if it finds it. LIQPROOF cannot move money, because there is nowhere in the code for a signature to go.
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
## Architecture
|
|
417
|
+
|
|
418
|
+
| layer | choice | why |
|
|
419
|
+
|---|---|---|
|
|
420
|
+
| language | **TypeScript + Node 22** | strict mode, native ESM, `node:sqlite` built in |
|
|
421
|
+
| storage | **`node:sqlite`** | zero native dependencies, zero hosted database, zero cost |
|
|
422
|
+
| edge | **Cloudflare Workers** | serve the dashboard and receipts globally, free tier |
|
|
423
|
+
| pages | **GitHub Pages** | publish the dataset and the dashboard from the repo, free |
|
|
424
|
+
| distribution | **npm** | `npx liqproof receipt <mint>` — no install required |
|
|
425
|
+
| payments | **x402 + Coinbase CDP / Dexter facilitator** | USDC micropayments for premium features, keyless |
|
|
426
|
+
| agents | **MCP server + MCP Registry + Zero.xyz distribution** | reach every MCP client without a marketplace |
|
|
427
|
+
| later | **Rust** | reserved for a latency-critical arbitrage engine |
|
|
428
|
+
|
|
429
|
+
**The zero-cost guarantee.** Every dependency is keyless. There is no account to open, no API key to request, no card to attach. The code contains **no transaction-signing path at all** — enforced mechanically by `liqproof verify`, which greps every file in `src/` for the forbidden markers and fails the build if any appear. LIQPROOF cannot move money, because there is nowhere in the code for a signature to go.
|
|
430
|
+
|
|
431
|
+
### Measured free-RPC limits
|
|
432
|
+
|
|
433
|
+
Measured on `api.mainnet-beta.solana.com` (free tier), 2026-12-04:
|
|
434
|
+
|
|
435
|
+
| method | limit | window |
|
|
436
|
+
|---|---|---|
|
|
437
|
+
| `getSlot` | 150 | 10 s |
|
|
438
|
+
| `getAccountInfo` | 50 | 10 s |
|
|
439
|
+
| `getTransaction` | **10** | 10 s |
|
|
440
|
+
| `getSignaturesForAddress` | **10** | 10 s |
|
|
441
|
+
| `getTokenAccountsByOwner` | **10** | 10 s |
|
|
442
|
+
| `getMultipleAccounts` | 100 addresses per call | ~80 ms |
|
|
443
|
+
|
|
444
|
+
The bottlenecks are `getTransaction` and `getSignaturesForAddress` — 10 calls per 10 seconds each. A naive implementation that scans a 2,802-transaction pool linearly would need **2,802 `getTransaction` calls ≈ 47 minutes**.
|
|
445
|
+
|
|
446
|
+
**How LIQPROOF works around it:**
|
|
447
|
+
|
|
448
|
+
- **Bisect the drain.** The signature list is newest → oldest, and the vault balance is a step function of the index. LIQPROOF binary-searches for the cliff where the balance collapses: **O(log n) ≈ 12 calls instead of 2,802**. The sparse sample around the cliff is what renders the timeline.
|
|
449
|
+
- **One transaction, two answers.** A single `getTransaction` returns both the vault addresses (`accountKeys`) *and* their balances (`preTokenBalances` / `postTokenBalances`). Vault discovery and balance discovery cost the same one call — no indexed scan, no offset guessing.
|
|
450
|
+
- **The pool account is the authority.** A transaction mentions dozens of unrelated token accounts — we measured one that happily returned a *trader's* wallet as the pool's vault. We now cross-check every candidate against the pubkeys embedded in the pool's own account data, because an AMM stores its vault addresses there.
|
|
451
|
+
- **Batch and learn.** The RPC pool reads the server's own `x-ratelimit-method-remaining` headers and self-corrects its budget instead of guessing, and rotates endpoints when one is stricter than modelled.
|
|
452
|
+
|
|
453
|
+
---
|
|
454
|
+
|
|
455
|
+
## MCP tools
|
|
456
|
+
|
|
457
|
+
`node dist/cli.js mcp` starts a JSON-RPC 2.0 MCP server (protocol `2024-11-05`) over stdio. stdout carries JSON-RPC messages only; diagnostics go to stderr.
|
|
458
|
+
|
|
459
|
+
| tool | what it does |
|
|
460
|
+
|---|---|
|
|
461
|
+
| `verify_token` | Verify a token's liquidity against on-chain vault balances — claimed vs deposited USD, coverage, self-denominated %, price impact, verdict, **plus the token's on-chain identity**: its own Metaplex metadata name/symbol, the metadata PDA, and whether that mint is the canonical token or an impostor (with the proof URL). |
|
|
462
|
+
| `liquidity_timeline` | Reconstruct the historical liquidity curve from transaction metadata — timestamped deposit/withdrawal events and the peak deposit ever held. |
|
|
463
|
+
| `find_fake_liquidity` | Sweep pools that advertise liquidity and return the ones whose claim is not actually deposited, ranked by how badly the claim overstates the deposit. |
|
|
464
|
+
| `survival_stats` | Aggregate the local store — how many audited tokens were fake vs consistent, average coverage, verdict breakdown. |
|
|
465
|
+
|
|
466
|
+
Every tool is read-only. A tool that cannot read the vaults returns `UNKNOWN` and an explicit *insufficient evidence* message — **it never accuses a token it could not measure.** And a tool that cannot prove a mint is *not* the canonical one will not issue `FAKE_LIQUIDITY` against it either.
|
|
467
|
+
|
|
468
|
+
Register it with any MCP client:
|
|
469
|
+
|
|
470
|
+
```json
|
|
471
|
+
{
|
|
472
|
+
"mcpServers": {
|
|
473
|
+
"liqproof": {
|
|
474
|
+
"command": "node",
|
|
475
|
+
"args": ["/absolute/path/to/liqproof/dist/cli.js", "mcp"]
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
---
|
|
482
|
+
|
|
483
|
+
## Commands
|
|
484
|
+
|
|
485
|
+
| command | what it does |
|
|
486
|
+
|---|---|
|
|
487
|
+
| `liqproof receipt <mint\|url> [--json] [--no-curve] [--txs=N] [--save]` | Build a receipt: verify claimed liquidity against real vault balances and reconstruct the curve. |
|
|
488
|
+
| `liqproof scan [--feed=universe\|boosts\|profiles\|pools\|trending\|all] [--limit=50] [--min-claimed=N] [--pages=N]` | Mine and audit pools. `universe` sweeps the top of the whole Solana market, ranked by suspicion. |
|
|
489
|
+
| `liqproof timeline <mint\|url> [--no-curve] [--txs=N]` | Print the reconstructed liquidity timeline and the drain event. |
|
|
490
|
+
| `liqproof survival` | Survival statistics from the local store: fake vs consistent, average coverage. |
|
|
491
|
+
| `liqproof export [--out=out]` | Build the offline HTML dashboard and the CSV dataset from the local store. |
|
|
492
|
+
| `liqproof mcp` | Start the MCP server on stdio. |
|
|
493
|
+
| `liqproof doctor` | Check every free endpoint. |
|
|
494
|
+
| `liqproof wallet <address> [--network=solana\|base] [--json]` | Validate a receiving address before a payout points at it: base58 + ed25519 on Solana, EIP-55 checksum on EVM, plus live chain state. |
|
|
495
|
+
| `liqproof verify` | Assert the read-only + zero-cost constraints. |
|
|
496
|
+
| `liqproof version` | Print the version. |
|
|
497
|
+
|
|
498
|
+
---
|
|
499
|
+
|
|
500
|
+
## Install
|
|
501
|
+
|
|
502
|
+
```bash
|
|
503
|
+
npm install # devDependencies only: typescript + @types/node
|
|
504
|
+
npm run build
|
|
505
|
+
node dist/cli.js doctor
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
There are **zero runtime dependencies**. `node:sqlite` is built into Node 22.
|
|
509
|
+
|
|
510
|
+
---
|
|
511
|
+
|
|
512
|
+
## License / disclaimer
|
|
513
|
+
|
|
514
|
+
MIT-licensed code. LIQPROOF reports on-chain measurements only. It does not issue investment advice or legal conclusions. Values are derived from public chain state at the stated slot and may differ from the state at the time of reading. **Read-only: no gas, no paid APIs, no chain mutation.**
|
|
515
|
+
|
|
516
|
+
## Contact / responsible disclosure
|
|
517
|
+
|
|
518
|
+
Found something wrong with our measurements, or you maintain a pool that gets flagged
|
|
519
|
+
in error? **We want to hear from you before you publish anything.**
|
|
520
|
+
|
|
521
|
+
| | |
|
|
522
|
+
|---|---|
|
|
523
|
+
| **Email** | `aih.business77@gmail.com` |
|
|
524
|
+
| **Payouts — Solana (USDC SPL)** | `8oApra2ycYtmuC9DDhwX3YFti5GY21H8GndF2FnRgHhe` |
|
|
525
|
+
| **Payouts — Base (USDC ERC-20)** | `0xe17907369DA8733DBc84b3Cfc13651977e700b7D` |
|
|
526
|
+
| **Bug reports** | `bugs/` — four ready-to-send reports with regenerable evidence |
|
|
527
|
+
| **Responsible disclosure** | We will not tweet or publish about a report before the target has accepted it. If we got something wrong about your pool, tell us and we will fix the rule in the engine, not just the row. |
|
|
528
|
+
| **What we never do** | accuse a canonical token, accuse on operator lineage alone, or publish a ticker-only collision as fraud |
|
|
529
|
+
|
|
530
|
+
Both payout addresses are public on purpose, and both are verified with
|
|
531
|
+
[`liqproof wallet`](#commands) — base58 + ed25519 curve + derived USDC
|
|
532
|
+
associated-token account on Solana, EIP-55 checksum on Base. A receiving
|
|
533
|
+
address is not a secret; a seed phrase is, and no seed phrase appears
|
|
534
|
+
anywhere in this repository.
|
|
535
|
+
|
|
536
|
+
The full disclosure statement we send with every report is in
|
|
537
|
+
[`bugs/README.md`](bugs/README.md).
|