@continuumdao/ctm-mpc-defi 0.2.10 → 0.2.11
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,8 +41,23 @@ Pass `marketId` from Morpho API for Blue tools (not recomputed on-chain).
|
|
|
41
41
|
|
|
42
42
|
## Workflow
|
|
43
43
|
|
|
44
|
-
1. `
|
|
45
|
-
2. `ctm_morpho_fetch_earn_vaults` — pick `vaultAddress` by asset and/or name.
|
|
46
|
-
3.
|
|
44
|
+
1. `get_preferred_key_gen` → `keyGenId` (or use the conversation KeyGen id).
|
|
45
|
+
2. `ctm_morpho_fetch_earn_vaults` — pick `vaultAddress` and `underlyingAddress` by asset and/or name.
|
|
46
|
+
3. `ctm_morpho_build_vault_deposit_multisign` with **`keyGenId`**, `chainId`, `purposeText`, `useCustomGas`, `vault`, `underlying`, `amountHuman`. Server resolves `keyGen`, `executorAddress`, `rpcUrl`, `chainDetail` — **never pass those**.
|
|
47
|
+
4. Blue borrow/collateral: pass `marketId` from Morpho API; server resolves `marketParams`.
|
|
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
|
+
```
|
|
47
62
|
|
|
48
63
|
Midnight fixed-rate is not yet on mainnet.
|
package/package.json
CHANGED