You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2023. It is now read-only.
help Print help about mcd or one of its subcommands
24
25
ilk Ilk (collateral type) parameters
26
+
line Total debt ceiling
27
+
live Liveness flag
25
28
poke Update the spot price for a given Ilk
26
29
unwrap Unwrap WETH to ETH
27
30
urn CDP state
@@ -46,7 +49,7 @@ $ dapp pkg install mcd
46
49
47
50
## Configuration
48
51
49
-
Mcd is built on top of [Seth](https://github.com/dapphub/dapptools/tree/master/src/seth) and uses the same network configuration options, which just like Seth, can be defined in the `~/sethrc` initialisation file.
52
+
Mcd is built on [Seth](https://github.com/dapphub/dapptools/tree/master/src/seth) and uses the same network configuration options, which just like Seth, can be defined in the `~/sethrc` initialisation file.
50
53
51
54
Similar to Seth, `mcd` also supports transaction signing with Ledger hardware wallets and can run against both local and remote nodes.
52
55
@@ -167,14 +170,16 @@ Urns represent Cdp state for any given Urn address.
167
170
Use the `urn`command to view Urn state for any given Ilk:
The `cdp` command provides compatability with CDPs managed via the CDP Portal and uses
232
+
the same proxy contract and [Cdp Manager](https://github.com/makerdao/dss-cdp-manager)
233
+
font-end. This allows CDPs to be managed via a unique integer identifier rather than the
234
+
`I, --ilk` and `U, --urn` options.
235
+
236
+
```sh
237
+
Usage: mcd cdp [<id>] [<command>]
238
+
239
+
Commands: ls [<owner>] List Cdps
240
+
count [<owner>] Cdp count
241
+
open Open a new Cdp
242
+
<id> urn Cdp state
243
+
<id> lock <wad> Join & lock collateral
244
+
<id> free <wad> Free & exit collateral
245
+
<id> draw <wad> Draw & exit dai
246
+
<id> wipe <wad> Join & wipe dai
247
+
```
248
+
249
+
---
250
+
223
251
## Examples
224
252
225
253
Note: examples assume that `ETH_FROM` is set to an address controlled by the user, and that the `MCD_CHAIN` env variable has been set to a vaild chain identifier.
226
254
227
255
### 1. Native Urn - lock 100 ETH & draw 500 Dai
228
256
229
-
Note: The system doesn't handle ETH directly but instead uses WETH to represent ETH collateral. For convenience, the `wrap` and `unwrap` commands are provided for exchanging ETH to WETH and visa versa.
257
+
Note: The system doesn't handle ETH directly but instead uses WETH to represent
258
+
ETH collateral. For convenience, the `wrap` and `unwrap` commands are provided
0 commit comments