@continuumdao/ctm-mpc-defi 0.2.12 → 0.2.13
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.
|
@@ -41,31 +41,17 @@ Pass `marketId` from Morpho API for Blue tools (not recomputed on-chain).
|
|
|
41
41
|
|
|
42
42
|
## Workflow
|
|
43
43
|
|
|
44
|
-
1. `get_preferred_key_gen` → `keyGenId` (or use the conversation KeyGen id).
|
|
44
|
+
1. `get_preferred_key_gen` → note `keyGenId` (or use the conversation KeyGen id).
|
|
45
45
|
2. `ctm_morpho_fetch_earn_vaults` — pick `vaultAddress` and `underlyingAddress` by asset and/or name.
|
|
46
|
-
3. `ctm_morpho_build_vault_deposit_multisign`
|
|
47
|
-
4. Blue borrow/collateral:
|
|
48
|
-
|
|
49
|
-
Example vault deposit:
|
|
50
|
-
|
|
51
|
-
```json
|
|
52
|
-
{
|
|
53
|
-
"keyGenId": "<from get_preferred_key_gen>",
|
|
54
|
-
"chainId": 8453,
|
|
55
|
-
"purposeText": "Deposit 100 USDC into Steakhouse Prime USDC",
|
|
56
|
-
"useCustomGas": false,
|
|
57
|
-
"vault": "0xbeef0e08b0ded03a08a881d2b07b3f8f7231ef3c",
|
|
58
|
-
"underlying": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
59
|
-
"amountHuman": "100"
|
|
60
|
-
}
|
|
61
|
-
```
|
|
46
|
+
3. `ctm_morpho_build_vault_deposit_multisign` — use each tool’s **input schema** (`keyGenId`, fetch output addresses, `amountHuman`, etc.). Server resolves `keyGen`, `executorAddress`, `rpcUrl`, `chainDetail`; agents must not pass those.
|
|
47
|
+
4. Blue borrow/collateral: `marketId` from Morpho API; server resolves `marketParams`.
|
|
62
48
|
|
|
63
49
|
Midnight fixed-rate is not yet on mainnet.
|
|
64
50
|
|
|
65
51
|
## Troubleshooting
|
|
66
52
|
|
|
67
|
-
| Symptom |
|
|
68
|
-
|
|
69
|
-
| Multiple duplicate sign requests |
|
|
70
|
-
|
|
|
71
|
-
| Vault not found / not listed |
|
|
53
|
+
| Symptom | What to do |
|
|
54
|
+
|---------|------------|
|
|
55
|
+
| Multiple duplicate sign requests | `{ requestId }` means success — do not call the same `ctm_morpho_build_*` again; use `list_sign_requests` before any retry |
|
|
56
|
+
| Single approve tx / wrong chain / empty purpose | Do **not** fall back to `create_compose_multi_sign_request` — vault deposit must go through `ctm_morpho_build_vault_deposit_multisign` (approve + deposit batch) |
|
|
57
|
+
| Vault not found / not listed | Run `ctm_morpho_fetch_earn_vaults` first; unlisted vaults are rejected for deposit |
|
package/package.json
CHANGED