forked from LNSwap/lnstxbridge-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
boltz.conf
124 lines (106 loc) · 3.42 KB
/
boltz.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
prepayMinerFee=true
aggregatorUrl="http://localhost:9007"
providerUrl="http://localhost:9008"
# If this % of total funds in the LP client are missing compared to 24h ago, LP will stop serving swaps.
# Requires restart to recover from circuit breaker.
circuitBreakerThreshold=25
# Backend supports sending messages to Discord after successful and failed
# Swaps and if the wallet or channel balance is underneath a configurable threshold
# 1. create a bot at https://discord.com/developers/applications
# 2. add the bot to any private channel in your discord server
# 3. give bot sendmessage access and copy/paste token here
[notification]
token = ""
channel = "secret-lnswapbot-channel"
prefix = "lns"
# Interval in minutes at which the wallet and channel balances should be checked
interval = 10
# Some Discord commands (like withdraw) require a TOTP token
# This is the path to the secret of that TOTP token
otpsecretpath = "/home/workspace/.lnstx-client/otpSecret.dat"
# Backend supports balancing account funds via centralized exchange (currently OKCoin)
# Both automated and on-demand balancing is supported
[balancer]
apiUri = "https://www.okcoin.com"
apiKey = ""
secretKey = ""
passphrase = ""
tradePassword = ""
minSTX = 10
minBTC = 1000000
overshootPercentage = 0
autoBalance = false
[dashboard]
username = "admin"
password = "admin"
[[pairs]]
base = "BTC"
quote = "STX"
fee = 1
timeoutDelta = 1_240
[[pairs]]
base = "BTC"
quote = "USDA"
fee = 1
timeoutDelta = 1_240
[[pairs]]
base = "BTC"
quote = "XUSD"
fee = 1
timeoutDelta = 1_240
[[currencies]]
symbol = "BTC"
network = "bitcoinRegtest"
minWalletBalance = 10_000_000
minChannelBalance = 10_000_000
maxSwapAmount = 4_294_967
minSwapAmount = 10_000
maxZeroConfAmount = 10_000_000
[currencies.chain]
host = "127.0.0.1"
port = 18_443
cookie = "../lnstxbridge/docker/regtest/data/core/cookies/.bitcoin-cookie"
rpcuser = "kek"
rpcpass = "kek"
mempoolSpace = "https://mempool.space/testnet/api"
[currencies.lnd]
host = "127.0.0.1"
port = 10_011
certpath = "/home/gitpod/.lnstx-client/lnd/tls.cert"
macaroonpath = "/home/gitpod/.lnstx-client/lnd/admin.macaroon"
[stacks]
# mainnet
# providerEndpoint = "https://stacks-node-api.mainnet.stacks.co"
# stxSwapAddress = "ST15RGYVK9ACFQWMFFA2TVASDVZH38B4VAV4WF6BJ.stxswap_v6"
# testnet
# providerEndpoint = "https://stacks-node-api.testnet.stacks.co"
# stxSwapAddress = "ST15RGYVK9ACFQWMFFA2TVASDVZH38B4VAV4WF6BJ.stxswap_v3"
# mocknet
# providerEndpoint = "https://stacks-node-api.mainnet.stacks.co"
# providerEndpoint = "https://stacks-node-api.testnet.stacks.co"
providerEndpoint = "http://localhost:3999"
stxSwapAddress = "ST30VXWG00R13WK8RDXBSTHXNWGNKCAQTRYEMA9FK.stxswap_v10"
sip10SwapAddress = "ST30VXWG00R13WK8RDXBSTHXNWGNKCAQTRYEMA9FK.sip10swap_v3"
[[stacks.tokens]]
symbol = "STX"
# allow swaps between 1 and 129 STX
maxSwapAmount = 1_294_967000
minSwapAmount = 10000
[[stacks.tokens]]
symbol = "USDA"
maxSwapAmount = 1_294_967000
minSwapAmount = 10000
# mocknet
contractAddress = "ST30VXWG00R13WK8RDXBSTHXNWGNKCAQTRYEMA9FK.usda-token"
# mainnet
# contractAddress = "SP2C2YFP12AJZB4MABJBAJ55XECVS7E4PMMZ89YZR.usda-token"
decimals = 6
[[stacks.tokens]]
symbol = "XUSD"
maxSwapAmount = 8_294_967000
minSwapAmount = 10000
# mocknet
contractAddress = "ST30VXWG00R13WK8RDXBSTHXNWGNKCAQTRYEMA9FK.Wrapped-USD"
# mainnet
# contractAddress = "SP2TZK01NKDC89J6TA56SA47SDF7RTHYEQ79AAB9A.Wrapped-USD"
decimals = 8