torch-liquidation-bot 3.0.1 → 4.0.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/dist/index.js +13 -32
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/readme.md +27 -20
package/dist/index.js
CHANGED
|
@@ -32,59 +32,40 @@ const scanAndLiquidate = async (connection, log, vaultCreator, agentKeypair) =>
|
|
|
32
32
|
});
|
|
33
33
|
log('debug', `discovered ${tokens.length} migrated tokens`);
|
|
34
34
|
for (const token of tokens) {
|
|
35
|
-
let
|
|
35
|
+
let positions;
|
|
36
36
|
try {
|
|
37
|
-
|
|
37
|
+
const result = await (0, torchsdk_1.getAllLoanPositions)(connection, token.mint);
|
|
38
|
+
positions = result.positions;
|
|
38
39
|
}
|
|
39
40
|
catch {
|
|
40
41
|
continue; // lending not enabled for this token
|
|
41
42
|
}
|
|
42
|
-
if (
|
|
43
|
+
if (positions.length === 0)
|
|
43
44
|
continue;
|
|
44
|
-
log('debug', `${token.symbol} — ${
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
// get holders as potential borrowers
|
|
48
|
-
let holders;
|
|
49
|
-
try {
|
|
50
|
-
const result = await (0, torchsdk_1.getHolders)(connection, token.mint);
|
|
51
|
-
holders = result.holders;
|
|
52
|
-
}
|
|
53
|
-
catch {
|
|
54
|
-
log('debug', `${token.symbol} — could not fetch holders, skipping`);
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
for (const holder of holders) {
|
|
58
|
-
let position;
|
|
59
|
-
try {
|
|
60
|
-
position = await (0, torchsdk_1.getLoanPosition)(connection, token.mint, holder.address);
|
|
61
|
-
}
|
|
62
|
-
catch {
|
|
63
|
-
continue; // no loan position for this holder
|
|
64
|
-
}
|
|
65
|
-
// SDK provides health status directly — skip non-liquidatable positions
|
|
45
|
+
log('debug', `${token.symbol} — ${positions.length} active loans`);
|
|
46
|
+
// positions are pre-sorted: liquidatable → at_risk → healthy
|
|
47
|
+
for (const position of positions) {
|
|
66
48
|
if (position.health !== 'liquidatable')
|
|
67
|
-
|
|
68
|
-
log('info', `LIQUIDATABLE | ${token.symbol} | borrower=${
|
|
69
|
-
`LTV=${position.current_ltv_bps != null ? (0, utils_1.bpsToPercent)(position.current_ltv_bps) : '?'}
|
|
70
|
-
`threshold=${(0, utils_1.bpsToPercent)(lending.liquidation_threshold_bps)} | ` +
|
|
49
|
+
break; // sorted, so no more liquidatable after this
|
|
50
|
+
log('info', `LIQUIDATABLE | ${token.symbol} | borrower=${position.borrower.slice(0, 8)}... | ` +
|
|
51
|
+
`LTV=${position.current_ltv_bps != null ? (0, utils_1.bpsToPercent)(position.current_ltv_bps) : '?'} | ` +
|
|
71
52
|
`owed=${(0, utils_1.sol)(position.total_owed)} SOL`);
|
|
72
53
|
// build and execute liquidation through the vault
|
|
73
54
|
try {
|
|
74
55
|
const { transaction, message } = await (0, torchsdk_1.buildLiquidateTransaction)(connection, {
|
|
75
56
|
mint: token.mint,
|
|
76
57
|
liquidator: agentKeypair.publicKey.toBase58(),
|
|
77
|
-
borrower:
|
|
58
|
+
borrower: position.borrower,
|
|
78
59
|
vault: vaultCreator,
|
|
79
60
|
});
|
|
80
61
|
transaction.sign(agentKeypair);
|
|
81
62
|
const signature = await connection.sendRawTransaction(transaction.serialize());
|
|
82
63
|
await (0, torchsdk_1.confirmTransaction)(connection, signature, agentKeypair.publicKey.toBase58());
|
|
83
|
-
log('info', `LIQUIDATED | ${token.symbol} | borrower=${
|
|
64
|
+
log('info', `LIQUIDATED | ${token.symbol} | borrower=${position.borrower.slice(0, 8)}... | ` +
|
|
84
65
|
`sig=${signature.slice(0, 16)}... | ${message}`);
|
|
85
66
|
}
|
|
86
67
|
catch (err) {
|
|
87
|
-
log('warn', `LIQUIDATION FAILED | ${token.symbol} | ${
|
|
68
|
+
log('warn', `LIQUIDATION FAILED | ${token.symbol} | ${position.borrower.slice(0, 8)}... | ${err.message}`);
|
|
88
69
|
}
|
|
89
70
|
}
|
|
90
71
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AACA;;;;;;;;;;;;;;;GAeG;;AAEH,6CAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AACA;;;;;;;;;;;;;;;GAeG;;AAEH,6CAAqD;AACrD,uCAQiB;AACjB,qCAAqC;AACrC,mCAAuE;AAEvE,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E,MAAM,gBAAgB,GAAG,KAAK,EAC5B,UAAsB,EACtB,GAAoC,EACpC,YAAoB,EACpB,YAAqB,EACrB,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,oBAAS,EAAC,UAAU,EAAE;QAC7C,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,EAAE;KACV,CAAC,CAAA;IAEF,GAAG,CAAC,OAAO,EAAE,cAAc,MAAM,CAAC,MAAM,kBAAkB,CAAC,CAAA;IAE3D,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,SAAgC,CAAA;QACpC,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAA,8BAAmB,EAAC,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;YAChE,SAAS,GAAG,MAAM,CAAC,SAAS,CAAA;QAC9B,CAAC;QAAC,MAAM,CAAC;YACP,SAAQ,CAAC,qCAAqC;QAChD,CAAC;QAED,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;YAAE,SAAQ;QAEpC,GAAG,CACD,OAAO,EACP,GAAG,KAAK,CAAC,MAAM,MAAM,SAAS,CAAC,MAAM,eAAe,CACrD,CAAA;QAED,6DAA6D;QAC7D,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;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AQ,EAAE,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,CAAA;IAC3C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "torch-liquidation-bot",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "autonomous vault-based liquidation keeper for Torch Market lending on Solana using torchsdk",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@solana/web3.js": "1.98.4",
|
|
21
|
-
"torchsdk": "3.
|
|
21
|
+
"torchsdk": "3.7.22"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "20.19.33",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@solana/web3.js": "^1.98.0"
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
"repository": {
|
|
32
32
|
"type": "git",
|
|
33
33
|
"url": "https://github.com/mrsirg97-rgb/torch-liquidation-kit"
|
|
34
34
|
},
|
package/readme.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# torch-liquidation-bot
|
|
1
|
+
# torch-liquidation-bot v4.0.0 (Vault Mode)
|
|
2
2
|
|
|
3
3
|
Vault-based liquidation bot for [Torch Market](https://torch.market) on Solana. Generates an agent keypair in-process — no user wallet required. All operations route through a Torch Vault.
|
|
4
4
|
|
|
5
|
-
> **v3.0.0+ Breaking Change:** The bot now operates through the torchsdk v3.
|
|
5
|
+
> **v3.0.0+ Breaking Change:** The bot now operates through the torchsdk v3.7.22 vault model. It generates a disposable agent keypair at startup, scans for underwater loan positions using the SDK's bulk loan scanner (`getAllLoanPositions`), and executes liquidations. The user never provides a wallet — only a vault creator pubkey and an RPC endpoint.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install torch-liquidation-bot
|
|
10
|
+
npm install torch-liquidation-bot@4.0.0
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Quick Start
|
|
@@ -30,11 +30,10 @@ This bot:
|
|
|
30
30
|
|
|
31
31
|
1. Generates a disposable `Keypair` in-process (no private key leaves the process)
|
|
32
32
|
2. Verifies the vault exists and the agent wallet is linked
|
|
33
|
-
3. Scans migrated tokens
|
|
34
|
-
4.
|
|
35
|
-
5.
|
|
36
|
-
6.
|
|
37
|
-
7. Repeats on a configurable interval
|
|
33
|
+
3. Scans migrated tokens with `getAllLoanPositions()` — one RPC call per token, positions pre-sorted liquidatable-first
|
|
34
|
+
4. Executes `buildLiquidateTransaction()` for each liquidatable position
|
|
35
|
+
5. Confirms the transaction via `confirmTransaction()`
|
|
36
|
+
6. Repeats on a configurable interval
|
|
38
37
|
|
|
39
38
|
All value flows through the vault. The agent wallet is a stateless controller.
|
|
40
39
|
|
|
@@ -50,7 +49,7 @@ All value flows through the vault. The agent wallet is a stateless controller.
|
|
|
50
49
|
|
|
51
50
|
## Vault Setup
|
|
52
51
|
|
|
53
|
-
The bot uses the torchsdk v3.
|
|
52
|
+
The bot uses the torchsdk v3.7.22 vault model:
|
|
54
53
|
|
|
55
54
|
```
|
|
56
55
|
User (hardware wallet) → Creates vault, deposits SOL
|
|
@@ -69,9 +68,7 @@ The agent wallet needs minimal SOL for gas (~0.01 SOL). All liquidation value fl
|
|
|
69
68
|
import { Connection, Keypair } from '@solana/web3.js'
|
|
70
69
|
import {
|
|
71
70
|
getTokens,
|
|
72
|
-
|
|
73
|
-
getHolders,
|
|
74
|
-
getLoanPosition,
|
|
71
|
+
getAllLoanPositions,
|
|
75
72
|
getVault,
|
|
76
73
|
getVaultForWallet,
|
|
77
74
|
buildLiquidateTransaction,
|
|
@@ -90,18 +87,15 @@ const link = await getVaultForWallet(connection, agent.publicKey.toBase58())
|
|
|
90
87
|
const { tokens } = await getTokens(connection, { status: 'migrated', sort: 'volume', limit: 50 })
|
|
91
88
|
|
|
92
89
|
for (const token of tokens) {
|
|
93
|
-
const
|
|
94
|
-
if (!lending.active_loans) continue
|
|
90
|
+
const { positions } = await getAllLoanPositions(connection, token.mint)
|
|
95
91
|
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
const pos = await getLoanPosition(connection, token.mint, holder.address)
|
|
99
|
-
if (pos.health !== 'liquidatable') continue
|
|
92
|
+
for (const pos of positions) {
|
|
93
|
+
if (pos.health !== 'liquidatable') break // pre-sorted, done
|
|
100
94
|
|
|
101
95
|
const { transaction } = await buildLiquidateTransaction(connection, {
|
|
102
96
|
mint: token.mint,
|
|
103
97
|
liquidator: agent.publicKey.toBase58(),
|
|
104
|
-
borrower:
|
|
98
|
+
borrower: pos.borrower,
|
|
105
99
|
vault: vaultCreator,
|
|
106
100
|
})
|
|
107
101
|
transaction.sign(agent)
|
|
@@ -147,7 +141,20 @@ pnpm test
|
|
|
147
141
|
- Authority can unlink the agent wallet instantly via `buildUnlinkWalletTransaction()`
|
|
148
142
|
- Minimal dependencies: `@solana/web3.js` + `torchsdk` -- both pinned to exact versions
|
|
149
143
|
- No post-install hooks, no remote code fetching
|
|
150
|
-
-
|
|
144
|
+
- `disable-model-invocation: true` -- agents cannot invoke this skill autonomously
|
|
145
|
+
|
|
146
|
+
### External Runtime Dependencies
|
|
147
|
+
|
|
148
|
+
The SDK makes outbound HTTPS requests to two external services at runtime (the bot does **not** contact SAID Protocol):
|
|
149
|
+
|
|
150
|
+
| Service | Purpose | When Called |
|
|
151
|
+
|---------|---------|------------|
|
|
152
|
+
| **CoinGecko** (`api.coingecko.com`) | SOL/USD price for display | Token queries via `getTokens()` |
|
|
153
|
+
| **Irys Gateway** (`gateway.irys.xyz`) | Token metadata fallback (name, symbol, image) | `getTokens()` when on-chain metadata URI points to Irys |
|
|
154
|
+
|
|
155
|
+
`confirmTransaction()` does NOT contact SAID — it only calls `connection.getParsedTransaction()` (Solana RPC). The SDK exports a `verifySaid()` function that contacts `api.saidprotocol.com`, but the bot never calls it.
|
|
156
|
+
|
|
157
|
+
No credentials are sent to any external service. All requests are read-only GET. No private key material is ever transmitted.
|
|
151
158
|
|
|
152
159
|
## Links
|
|
153
160
|
|