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
Copy file name to clipboardExpand all lines: docs/fassets/guides/3-create-fasset-agent-cli.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ You need to set up your agent's parameters like name, collateral, and fund with
25
25
1. Prepare the agent settings `tmp.agent-settings.json` exchanging `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you want to work on:
26
26
27
27
```bash
28
-
docker-compose --profile cli run agent-bot --fasset FASSET create --prepare
28
+
dockercompose --profile cli run agent-bot --fasset FASSET create --prepare
29
29
```
30
30
31
31
2. Choose a suffix for your agent's collateral pool and fill in the `poolTokenSuffix` field in the `tmp.agent-settings.json`.
@@ -41,7 +41,7 @@ You need to set up your agent's parameters like name, collateral, and fund with
41
41
Exchange `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you are creating the agent.
42
42
43
43
```bash
44
-
docker-compose --profile cli run agent-bot --fasset FASSET create tmp.agent-settings.json
44
+
dockercompose --profile cli run agent-bot --fasset FASSET create tmp.agent-settings.json
45
45
```
46
46
47
47
### Deposit Collateral
@@ -56,21 +56,21 @@ You have two options: either deposit the vault collateral and buy pool collatera
56
56
To deposit both vault and pool collateral together and let the tool calculate the minimum required collateral to back the lots, you can use the `depositCollateral` function to the agent, specifying your created agent address in the `AGENT_ADDRESS` and lot size in the `LOTS`, as well exchange `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you are creating the agent:
57
57
58
58
```bash
59
-
docker-compose --profile cli run agent-bot depositCollaterals AGENT_ADDRESS LOTS --fasset FASSET
59
+
dockercompose --profile cli run agent-bot depositCollaterals AGENT_ADDRESS LOTS --fasset FASSET
60
60
```
61
61
62
62
#### Deposit Collateral Separately
63
63
64
64
1. Deposit enough vault collateral to the agent specifying your created agent address in the `AGENT_ADDRESS` and the amount of the stablecoin or wrapped ETH in the `AMOUNT` field, as well exchange `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you are creating the agent.
65
65
66
66
```bash
67
-
docker-compose --profile cli run agent-bot depositVaultCollateral AGENT_ADDRESS AMOUNT --fasset FASSET
67
+
dockercompose --profile cli run agent-bot depositVaultCollateral AGENT_ADDRESS AMOUNT --fasset FASSET
68
68
```
69
69
70
70
2. Buy enough pool collateral for the agent specifying your agent's address in the `AGENT_ADDRESS` and the amount of the CFLR in the `CFLR_AMOUNT` field, as well exchange `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you are creating the agent.
71
71
72
72
```bash
73
-
docker-compose --profile cli run agent-bot buyPoolCollateral AGENT_ADDRESS CFLR_AMOUNT --fasset FASSET
73
+
dockercompose --profile cli run agent-bot buyPoolCollateral AGENT_ADDRESS CFLR_AMOUNT --fasset FASSET
74
74
```
75
75
76
76
### Register the Agent as Available
@@ -80,13 +80,13 @@ You need to make your agent available to mint and redeem FAssets.
80
80
1. Register your agent as available to the network by executing this command replacing the `AGENT_ADDRESS` with your agent address, as well exchange `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you are entering the agent:
81
81
82
82
```bash
83
-
docker-compose --profile cli run agent-bot enter AGENT_ADDRESS --fasset FASSET
83
+
dockercompose --profile cli run agent-bot enter AGENT_ADDRESS --fasset FASSET
84
84
```
85
85
86
86
2. If you deposited enough collateral, you should see that your agent has at least one lot available by running the command replacing `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you are running the agent.
87
87
88
88
```bash
89
-
docker-compose --profile cli run user-bot agents --fasset FASSET
89
+
dockercompose --profile cli run user-bot agents --fasset FASSET
90
90
```
91
91
92
92
If you don't have available lots, check if the vault and pool collaterals are enough.
Copy file name to clipboardExpand all lines: docs/fassets/reference/agent-bot.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,10 +26,10 @@ To list all available commands:
26
26
yarn agent-bot help
27
27
```
28
28
29
-
To execute a specific command using the [Docker container](/fassets/guides/deploy-fassets-agent#execute-fasset-bot-commands) change `yarn agent-bot` with `docker-compose --profile cli run agent-bot`:
29
+
To execute a specific command using the [Docker container](/fassets/guides/deploy-fassets-agent#execute-fasset-bot-commands) change `yarn agent-bot` with `dockercompose --profile cli run agent-bot`:
30
30
31
31
```bash
32
-
docker-compose --profile cli run agent-bot [command] <args> --fasset [fAssetSymbol]
32
+
dockercompose --profile cli run agent-bot [command] <args> --fasset [fAssetSymbol]
0 commit comments