Skip to content

Commit 4fb856a

Browse files
committed
docs: update autoloop fees to explain fee percentages properly
1 parent 86fc1b9 commit 4fb856a

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

docs/autoloop.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ loop setparams --maxminer={limit in satoshis}
9595
### Server Fees
9696
#### Swap Fee
9797
The server charges a fee for facilitating swaps. The autolooper can be limited
98-
to a set swap fee using the following command:
98+
to a set swap fee, expressed as a percentage of the total swap amount, using
99+
the following command:
99100
```
100-
loop setparams --maxswapfee={limit in satoshis}
101+
loop setparams --maxswapfee={percentage of swap volume}
101102
```
102103

103104
#### No-Show Fee
@@ -113,12 +114,19 @@ loop setparams --maxprepay={limit in satoshis}
113114

114115
### Off-Chain Fees
115116
The loop client dispatches two off-chain payments to the loop server - one for
116-
the swap prepayment, and one for the swap itself. The total amount that the
117-
client will pay in off-chain routing fees can be limited using the following
118-
command:
119-
```
120-
loop setparams --maxprepayfee={limit for swap in satoshis} --maxroutingfee={limit for prepay in satoshis}
121-
```
117+
the swap prepayment, and one for the swap itself. The amount that the client
118+
will pay in off-chain fees for each of these payments can be limited to a
119+
percentage of the payment amount using the following commands:
120+
121+
Prepayment routing fees:
122+
```
123+
loop setparams --maxprepayfee={percentage of prepay amount}
124+
```
125+
126+
Swap routing fees:
127+
```
128+
loop setparams --maxroutingfee={percentage of swap amount}
129+
```
122130

123131
## Budget
124132
The autolooper operates within a set budget, and will stop executing swaps when

0 commit comments

Comments
 (0)