2022-02-09 23:51:05 +03:00
|
|
|
# LND directory to read TLS cert and macaroon
|
|
|
|
LND_DIR='/lnd/'
|
|
|
|
MACAROON_PATH='data/chain/bitcoin/testnet/admin.macaroon'
|
|
|
|
|
|
|
|
# LND directory can not be specified, instead cert and macaroon can be provided as base64 strings
|
2022-01-11 02:27:48 +03:00
|
|
|
# base64 ~/.lnd/tls.cert | tr -d '\n'
|
2022-02-09 23:51:05 +03:00
|
|
|
LND_CERT_BASE64='LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNLVENDQWRDZ0F3SUJBZ0lRQ0VoeGpPZXY1bGQyVFNPTXhKalFvekFLQmdncWhrak9QUVFEQWpBNE1SOHcKSFFZRFZRUUtFeFpzYm1RZ1lYVjBiMmRsYm1WeVlYUmxaQ0JqWlhKME1SVXdFd1lEVlFRREV3d3dNakJtTVRnMQpZelkwTnpVd0hoY05Nakl3TWpBNE1UWXhOalV3V2hjTk1qTXdOREExTVRZeE5qVXdXakE0TVI4d0hRWURWUVFLCkV4WnNibVFnWVhWMGIyZGxibVZ5WVhSbFpDQmpaWEowTVJVd0V3WURWUVFERXd3d01qQm1NVGcxWXpZME56VXcKV1RBVEJnY3Foa2pPUFFJQkJnZ3Foa2pPUFFNQkJ3TkNBQVNJVWdkcVMrWFZKL3EzY0JZeWd6ZDc2endaanlmdQpLK3BzcWNYVkFyeGZjU2NXQ25jbXliNGRaMy9Lc3lLWlRaamlySDE3aEY0OGtIMlp5clRZSW9hZG80RzdNSUc0Ck1BNEdBMVVkRHdFQi93UUVBd0lDcERBVEJnTlZIU1VFRERBS0JnZ3JCZ0VGQlFjREFUQVBCZ05WSFJNQkFmOEUKQlRBREFRSC9NQjBHQTFVZERnUVdCQlEwWUJjZXdsd1BqYTJPRXFyTGxzZnJscEswUFRCaEJnTlZIUkVFV2pCWQpnZ3d3TWpCbU1UZzFZelkwTnpXQ0NXeHZZMkZzYUc5emRJSUVkVzVwZUlJS2RXNXBlSEJoWTJ0bGRJSUhZblZtClkyOXVib2NFZndBQUFZY1FBQUFBQUFBQUFBQUFBQUFBQUFBQUFZY0V3S2dRQW9jRUFBQUFBREFLQmdncWhrak8KUFFRREFnTkhBREJFQWlBd0dMY05qNXVZSkVwanhYR05OUnNFSzAwWmlSUUh2Qm50NHp6M0htWHBiZ0lnSWtvUQo3cHFvNGdWNGhiczdrSmt1bnk2bkxlNVg0ZzgxYjJQOW52ZnZ2bkk9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K'
|
2022-01-11 02:27:48 +03:00
|
|
|
# base64 ~/.lnd/data/chain/bitcoin/testnet/admin.macaroon | tr -d '\n'
|
2022-02-09 23:51:05 +03:00
|
|
|
LND_MACAROON_BASE64='AgEDbG5kAvgBAwoQsyI+PK+fyb7F2UyTeZ4seRIBMBoWCgdhZGRyZXNzEgRyZWFkEgV3cml0ZRoTCgRpbmZvEgRyZWFkEgV3cml0ZRoXCghpbnZvaWNlcxIEcmVhZBIFd3JpdGUaIQoIbWFjYXJvb24SCGdlbmVyYXRlEgRyZWFkEgV3cml0ZRoWCgdtZXNzYWdlEgRyZWFkEgV3cml0ZRoXCghvZmZjaGFpbhIEcmVhZBIFd3JpdGUaFgoHb25jaGFpbhIEcmVhZBIFd3JpdGUaFAoFcGVlcnMSBHJlYWQSBXdyaXRlGhgKBnNpZ25lchIIZ2VuZXJhdGUSBHJlYWQAAAYgMt90uD6v4truTadWCjlppoeJ4hZrL1SBb09Y+4WOiI0='
|
2022-01-11 02:27:48 +03:00
|
|
|
|
2022-02-20 15:03:53 +03:00
|
|
|
# Postgresql Database
|
|
|
|
POSTGRES_NAME='postgres'
|
|
|
|
POSTGRES_USER='postgres'
|
|
|
|
POSTGRES_PASSWORD='example'
|
|
|
|
POSTGRES_HOST='127.0.0.1'
|
|
|
|
POSTGRES_PORT='5432'
|
|
|
|
|
2022-02-09 23:51:05 +03:00
|
|
|
# Auto unlock LND password. Only used in development docker-compose environment.
|
|
|
|
# It will fail starting up the node without it.
|
|
|
|
# To disable auto unlock, comment out 'wallet-unlock-password-file=/tmp/pwd' from 'docker/lnd/lnd.conf'
|
|
|
|
AUTO_UNLOCK_PWD='1234'
|
2022-01-13 17:08:21 +03:00
|
|
|
|
2022-02-17 01:02:21 +03:00
|
|
|
REDIS_URL='redis://localhost:6379/1'
|
|
|
|
|
2022-01-14 17:57:56 +03:00
|
|
|
# List of market price public APIs. If the currency is available in more than 1 API, will use median price.
|
|
|
|
MARKET_PRICE_APIS = https://blockchain.info/ticker, https://api.yadio.io/exrates/BTC
|
2022-01-06 19:54:37 +03:00
|
|
|
|
2022-01-18 16:20:19 +03:00
|
|
|
# Host e.g. robosats.com
|
2022-01-13 00:22:16 +03:00
|
|
|
HOST_NAME = ''
|
2022-02-13 19:43:49 +03:00
|
|
|
HOST_NAME2 = ''
|
2022-02-20 14:12:57 +03:00
|
|
|
LOCAL_ALIAS = ''
|
2022-02-12 16:59:59 +03:00
|
|
|
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
2022-02-11 00:38:56 +03:00
|
|
|
SECRET_KEY = 'django-insecure-6^&6uw$b5^en%(cu2kc7_o)(mgpazx#j_znwlym0vxfamn2uo-'
|
2022-01-13 00:22:16 +03:00
|
|
|
|
2022-01-18 16:20:19 +03:00
|
|
|
# e.g. robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion
|
|
|
|
ONION_LOCATION = ''
|
|
|
|
|
2022-02-12 16:59:59 +03:00
|
|
|
# Link to robosats alternative site (shown in frontend in statsfornerds so users can switch mainnet/testnet)
|
|
|
|
ALTERNATIVE_SITE = 'RoboSats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion'
|
|
|
|
ALTERNATIVE_NAME = 'RoboSats Mainnet'
|
2022-01-31 22:12:49 +03:00
|
|
|
|
2022-02-22 02:41:36 +03:00
|
|
|
# Telegram bot token
|
|
|
|
TELEGRAM_TOKEN = ''
|
|
|
|
TELEGRAM_BOT_NAME = ''
|
|
|
|
|
2022-01-31 22:12:49 +03:00
|
|
|
# Lightning node open info, url to amboss and 1ML
|
2022-02-13 20:55:44 +03:00
|
|
|
NETWORK = 'testnet'
|
2022-02-12 16:59:59 +03:00
|
|
|
NODE_ALIAS = '🤖RoboSats⚡(RoboDevs)'
|
|
|
|
NODE_ID = '033b58d7......'
|
2022-01-31 22:12:49 +03:00
|
|
|
|
2022-03-03 15:47:55 +03:00
|
|
|
# Total trade fee as fraction
|
2022-01-06 19:54:37 +03:00
|
|
|
FEE = 0.002
|
2022-03-03 15:47:55 +03:00
|
|
|
# Maker/taker fee split. As seen in https://bisq.wiki/Trading_fees . It is implicit that TAKER_FEE_SPLIT = (1 - MAKER_FEE_SPLIT)
|
|
|
|
# Shall incentivize order making
|
|
|
|
MAKER_FEE_SPLIT=0.125
|
|
|
|
|
2022-03-19 01:09:38 +03:00
|
|
|
# Bond size as percentage (%)
|
2022-06-02 02:49:27 +03:00
|
|
|
DEFAULT_BOND_SIZE = 3
|
2022-06-05 00:35:38 +03:00
|
|
|
MIN_BOND_SIZE = 1
|
2022-03-19 01:09:38 +03:00
|
|
|
MAX_BOND_SIZE = 15
|
2022-03-03 15:47:55 +03:00
|
|
|
|
2022-01-11 02:27:48 +03:00
|
|
|
# Time out penalty for canceling takers in SECONDS
|
|
|
|
PENALTY_TIMEOUT = 60
|
2022-01-24 00:12:30 +03:00
|
|
|
# Time between routing attempts of buyer invoice in MINUTES
|
|
|
|
RETRY_TIME = 5
|
2022-01-06 19:54:37 +03:00
|
|
|
|
2022-02-25 23:08:22 +03:00
|
|
|
# Platform activity limits
|
|
|
|
MAX_PUBLIC_ORDERS = 100
|
|
|
|
|
2022-01-06 19:54:37 +03:00
|
|
|
# Trade limits in satoshis
|
2022-03-07 20:04:29 +03:00
|
|
|
MIN_TRADE = 20000
|
2022-06-05 00:35:38 +03:00
|
|
|
MAX_TRADE = 1500000
|
2022-03-15 23:40:54 +03:00
|
|
|
MAX_TRADE_BONDLESS_TAKER = 50000
|
2022-01-06 19:54:37 +03:00
|
|
|
|
2022-01-24 20:54:44 +03:00
|
|
|
# Expiration (CLTV_expiry) time for HODL invoices in HOURS // 7 min/block assumed
|
2022-02-20 14:12:57 +03:00
|
|
|
BOND_EXPIRY = 54
|
|
|
|
ESCROW_EXPIRY = 48
|
2022-01-08 03:29:04 +03:00
|
|
|
|
2022-01-12 03:02:17 +03:00
|
|
|
# Expiration time for locking collateral in SECONDS
|
2022-01-08 03:29:04 +03:00
|
|
|
EXP_MAKER_BOND_INVOICE = 300
|
|
|
|
EXP_TAKER_BOND_INVOICE = 200
|
2022-01-12 03:02:17 +03:00
|
|
|
|
|
|
|
# Time a order is public in the book HOURS
|
2022-03-15 23:40:54 +03:00
|
|
|
DEFAULT_PUBLIC_ORDER_DURATION = 24
|
|
|
|
MAX_PUBLIC_ORDER_DURATION = 24
|
2022-03-19 00:21:13 +03:00
|
|
|
MIN_PUBLIC_ORDER_DURATION = 0.166
|
2022-03-15 23:40:54 +03:00
|
|
|
|
2022-01-12 03:02:17 +03:00
|
|
|
# Time to provide a valid invoice and the trade escrow MINUTES
|
|
|
|
INVOICE_AND_ESCROW_DURATION = 30
|
|
|
|
# Time to confim chat and confirm fiat (time to Fiat Sent confirmation) HOURS
|
2022-02-20 14:12:57 +03:00
|
|
|
FIAT_EXCHANGE_DURATION = 24
|
2022-01-06 19:54:37 +03:00
|
|
|
|
2022-01-30 16:18:32 +03:00
|
|
|
# Proportional routing fee limit (fraction of total payout: % / 100)
|
|
|
|
PROPORTIONAL_ROUTING_FEE_LIMIT = 0.0002
|
|
|
|
# Base flat limit fee for routing in Sats (used only when proportional is lower than this)
|
|
|
|
MIN_FLAT_ROUTING_FEE_LIMIT = 10
|
2022-03-06 21:10:05 +03:00
|
|
|
MIN_FLAT_ROUTING_FEE_LIMIT_REWARD = 2
|
2022-01-30 16:18:32 +03:00
|
|
|
|
2022-03-05 21:43:15 +03:00
|
|
|
# Reward tip. Reward for every finished trade in the referral program (Satoshis)
|
|
|
|
REWARD_TIP = 100
|
2022-03-08 00:46:52 +03:00
|
|
|
# Fraction rewarded to user from the slashed bond of a counterpart.
|
|
|
|
# It should not be close to 1, or could be exploited by an attacker trading with himself to DDOS the LN node.
|
|
|
|
SLASHED_BOND_REWARD_SPLIT = 0.5
|
2022-03-05 21:43:15 +03:00
|
|
|
|
2022-01-06 19:54:37 +03:00
|
|
|
# Username for HTLCs escrows
|
2022-02-13 02:09:13 +03:00
|
|
|
ESCROW_USERNAME = 'admin'
|