mirror of
https://github.com/basicswap/basicswap.git
synced 2025-01-03 09:19:26 +00:00
chainparams: increase min and max order sizes
This commit is contained in:
parent
893fc87b28
commit
28af80873a
3 changed files with 75 additions and 75 deletions
|
@ -48,8 +48,8 @@ chainparams = {
|
||||||
"stealth_key_prefix": 0x14,
|
"stealth_key_prefix": 0x14,
|
||||||
"hrp": "pw",
|
"hrp": "pw",
|
||||||
"bip44": 44,
|
"bip44": 44,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"rpcport": 51935,
|
"rpcport": 51935,
|
||||||
|
@ -59,8 +59,8 @@ chainparams = {
|
||||||
"stealth_key_prefix": 0x15,
|
"stealth_key_prefix": 0x15,
|
||||||
"hrp": "tpw",
|
"hrp": "tpw",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"regtest": {
|
"regtest": {
|
||||||
"rpcport": 51936,
|
"rpcport": 51936,
|
||||||
|
@ -70,8 +70,8 @@ chainparams = {
|
||||||
"stealth_key_prefix": 0x15,
|
"stealth_key_prefix": 0x15,
|
||||||
"hrp": "rtpw",
|
"hrp": "rtpw",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Coins.BTC: {
|
Coins.BTC: {
|
||||||
|
@ -87,8 +87,8 @@ chainparams = {
|
||||||
"key_prefix": 128,
|
"key_prefix": 128,
|
||||||
"hrp": "bc",
|
"hrp": "bc",
|
||||||
"bip44": 0,
|
"bip44": 0,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"rpcport": 18332,
|
"rpcport": 18332,
|
||||||
|
@ -97,8 +97,8 @@ chainparams = {
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"hrp": "tb",
|
"hrp": "tb",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
"name": "testnet3",
|
"name": "testnet3",
|
||||||
},
|
},
|
||||||
"regtest": {
|
"regtest": {
|
||||||
|
@ -108,8 +108,8 @@ chainparams = {
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"hrp": "bcrt",
|
"hrp": "bcrt",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Coins.LTC: {
|
Coins.LTC: {
|
||||||
|
@ -126,8 +126,8 @@ chainparams = {
|
||||||
"key_prefix": 176,
|
"key_prefix": 176,
|
||||||
"hrp": "ltc",
|
"hrp": "ltc",
|
||||||
"bip44": 2,
|
"bip44": 2,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"rpcport": 19332,
|
"rpcport": 19332,
|
||||||
|
@ -137,8 +137,8 @@ chainparams = {
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"hrp": "tltc",
|
"hrp": "tltc",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
"name": "testnet4",
|
"name": "testnet4",
|
||||||
},
|
},
|
||||||
"regtest": {
|
"regtest": {
|
||||||
|
@ -149,8 +149,8 @@ chainparams = {
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"hrp": "rltc",
|
"hrp": "rltc",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Coins.DCR: {
|
Coins.DCR: {
|
||||||
|
@ -165,8 +165,8 @@ chainparams = {
|
||||||
"script_address": 0x071A,
|
"script_address": 0x071A,
|
||||||
"key_prefix": 0x22DE,
|
"key_prefix": 0x22DE,
|
||||||
"bip44": 42,
|
"bip44": 42,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"rpcport": 19109,
|
"rpcport": 19109,
|
||||||
|
@ -174,8 +174,8 @@ chainparams = {
|
||||||
"script_address": 0x0EFC,
|
"script_address": 0x0EFC,
|
||||||
"key_prefix": 0x230E,
|
"key_prefix": 0x230E,
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
"name": "testnet3",
|
"name": "testnet3",
|
||||||
},
|
},
|
||||||
"regtest": { # simnet
|
"regtest": { # simnet
|
||||||
|
@ -184,8 +184,8 @@ chainparams = {
|
||||||
"script_address": 0x0E6C,
|
"script_address": 0x0E6C,
|
||||||
"key_prefix": 0x2307,
|
"key_prefix": 0x2307,
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Coins.NMC: {
|
Coins.NMC: {
|
||||||
|
@ -200,8 +200,8 @@ chainparams = {
|
||||||
"script_address": 13,
|
"script_address": 13,
|
||||||
"hrp": "nc",
|
"hrp": "nc",
|
||||||
"bip44": 7,
|
"bip44": 7,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"rpcport": 18336,
|
"rpcport": 18336,
|
||||||
|
@ -209,8 +209,8 @@ chainparams = {
|
||||||
"script_address": 196,
|
"script_address": 196,
|
||||||
"hrp": "tn",
|
"hrp": "tn",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
"name": "testnet3",
|
"name": "testnet3",
|
||||||
},
|
},
|
||||||
"regtest": {
|
"regtest": {
|
||||||
|
@ -219,8 +219,8 @@ chainparams = {
|
||||||
"script_address": 196,
|
"script_address": 196,
|
||||||
"hrp": "ncrt",
|
"hrp": "ncrt",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Coins.XMR: {
|
Coins.XMR: {
|
||||||
|
@ -231,22 +231,22 @@ chainparams = {
|
||||||
"mainnet": {
|
"mainnet": {
|
||||||
"rpcport": 18081,
|
"rpcport": 18081,
|
||||||
"walletrpcport": 18082,
|
"walletrpcport": 18082,
|
||||||
"min_amount": 100000,
|
"min_amount": 1000000000,
|
||||||
"max_amount": 10000 * XMR_COIN,
|
"max_amount": 10000000 * XMR_COIN,
|
||||||
"address_prefix": 18,
|
"address_prefix": 18,
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"rpcport": 28081,
|
"rpcport": 28081,
|
||||||
"walletrpcport": 28082,
|
"walletrpcport": 28082,
|
||||||
"min_amount": 100000,
|
"min_amount": 1000000000,
|
||||||
"max_amount": 10000 * XMR_COIN,
|
"max_amount": 10000000 * XMR_COIN,
|
||||||
"address_prefix": 18,
|
"address_prefix": 18,
|
||||||
},
|
},
|
||||||
"regtest": {
|
"regtest": {
|
||||||
"rpcport": 18081,
|
"rpcport": 18081,
|
||||||
"walletrpcport": 18082,
|
"walletrpcport": 18082,
|
||||||
"min_amount": 100000,
|
"min_amount": 1000000000,
|
||||||
"max_amount": 10000 * XMR_COIN,
|
"max_amount": 10000000 * XMR_COIN,
|
||||||
"address_prefix": 18,
|
"address_prefix": 18,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -258,22 +258,22 @@ chainparams = {
|
||||||
"mainnet": {
|
"mainnet": {
|
||||||
"rpcport": 34568,
|
"rpcport": 34568,
|
||||||
"walletrpcport": 34572, # todo
|
"walletrpcport": 34572, # todo
|
||||||
"min_amount": 100000,
|
"min_amount": 100000000,
|
||||||
"max_amount": 10000 * WOW_COIN,
|
"max_amount": 10000000 * WOW_COIN,
|
||||||
"address_prefix": 4146,
|
"address_prefix": 4146,
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"rpcport": 44568,
|
"rpcport": 44568,
|
||||||
"walletrpcport": 44572,
|
"walletrpcport": 44572,
|
||||||
"min_amount": 100000,
|
"min_amount": 100000000,
|
||||||
"max_amount": 10000 * WOW_COIN,
|
"max_amount": 10000000 * WOW_COIN,
|
||||||
"address_prefix": 4146,
|
"address_prefix": 4146,
|
||||||
},
|
},
|
||||||
"regtest": {
|
"regtest": {
|
||||||
"rpcport": 54568,
|
"rpcport": 54568,
|
||||||
"walletrpcport": 54572,
|
"walletrpcport": 54572,
|
||||||
"min_amount": 100000,
|
"min_amount": 100000000,
|
||||||
"max_amount": 10000 * WOW_COIN,
|
"max_amount": 10000000 * WOW_COIN,
|
||||||
"address_prefix": 4146,
|
"address_prefix": 4146,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -293,8 +293,8 @@ chainparams = {
|
||||||
"script_address": 13,
|
"script_address": 13,
|
||||||
"key_prefix": 212,
|
"key_prefix": 212,
|
||||||
"bip44": 119,
|
"bip44": 119,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"rpcport": 51475,
|
"rpcport": 51475,
|
||||||
|
@ -302,8 +302,8 @@ chainparams = {
|
||||||
"script_address": 19,
|
"script_address": 19,
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
"name": "testnet4",
|
"name": "testnet4",
|
||||||
},
|
},
|
||||||
"regtest": {
|
"regtest": {
|
||||||
|
@ -312,8 +312,8 @@ chainparams = {
|
||||||
"script_address": 19,
|
"script_address": 19,
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Coins.DASH: {
|
Coins.DASH: {
|
||||||
|
@ -331,8 +331,8 @@ chainparams = {
|
||||||
"key_prefix": 204,
|
"key_prefix": 204,
|
||||||
"hrp": "",
|
"hrp": "",
|
||||||
"bip44": 5,
|
"bip44": 5,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"rpcport": 19998,
|
"rpcport": 19998,
|
||||||
|
@ -341,8 +341,8 @@ chainparams = {
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"hrp": "",
|
"hrp": "",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"regtest": {
|
"regtest": {
|
||||||
"rpcport": 18332,
|
"rpcport": 18332,
|
||||||
|
@ -351,8 +351,8 @@ chainparams = {
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"hrp": "",
|
"hrp": "",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Coins.FIRO: {
|
Coins.FIRO: {
|
||||||
|
@ -371,8 +371,8 @@ chainparams = {
|
||||||
"key_prefix": 210,
|
"key_prefix": 210,
|
||||||
"hrp": "",
|
"hrp": "",
|
||||||
"bip44": 136,
|
"bip44": 136,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"rpcport": 18888,
|
"rpcport": 18888,
|
||||||
|
@ -381,8 +381,8 @@ chainparams = {
|
||||||
"key_prefix": 185,
|
"key_prefix": 185,
|
||||||
"hrp": "",
|
"hrp": "",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"regtest": {
|
"regtest": {
|
||||||
"rpcport": 28888,
|
"rpcport": 28888,
|
||||||
|
@ -391,8 +391,8 @@ chainparams = {
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"hrp": "",
|
"hrp": "",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Coins.NAV: {
|
Coins.NAV: {
|
||||||
|
@ -410,8 +410,8 @@ chainparams = {
|
||||||
"key_prefix": 150,
|
"key_prefix": 150,
|
||||||
"hrp": "",
|
"hrp": "",
|
||||||
"bip44": 130,
|
"bip44": 130,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"rpcport": 44445,
|
"rpcport": 44445,
|
||||||
|
@ -420,8 +420,8 @@ chainparams = {
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"hrp": "",
|
"hrp": "",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"regtest": {
|
"regtest": {
|
||||||
"rpcport": 44446,
|
"rpcport": 44446,
|
||||||
|
@ -430,8 +430,8 @@ chainparams = {
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"hrp": "",
|
"hrp": "",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Coins.BCH: {
|
Coins.BCH: {
|
||||||
|
@ -453,8 +453,8 @@ chainparams = {
|
||||||
"key_prefix": 128,
|
"key_prefix": 128,
|
||||||
"hrp": "bitcoincash",
|
"hrp": "bitcoincash",
|
||||||
"bip44": 0,
|
"bip44": 0,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"rpcport": 18332,
|
"rpcport": 18332,
|
||||||
|
@ -463,8 +463,8 @@ chainparams = {
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"hrp": "bchtest",
|
"hrp": "bchtest",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
"name": "testnet3",
|
"name": "testnet3",
|
||||||
},
|
},
|
||||||
"regtest": {
|
"regtest": {
|
||||||
|
@ -474,8 +474,8 @@ chainparams = {
|
||||||
"key_prefix": 239,
|
"key_prefix": 239,
|
||||||
"hrp": "bchreg",
|
"hrp": "bchreg",
|
||||||
"bip44": 1,
|
"bip44": 1,
|
||||||
"min_amount": 1000,
|
"min_amount": 100000,
|
||||||
"max_amount": 100000 * COIN,
|
"max_amount": 10000000 * COIN,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -472,7 +472,7 @@ def page_newoffer(self, url_split, post_string):
|
||||||
"lockmins": 30, # used in debug mode
|
"lockmins": 30, # used in debug mode
|
||||||
"debug_ui": swap_client.debug_ui,
|
"debug_ui": swap_client.debug_ui,
|
||||||
"automation_strat_id": -1,
|
"automation_strat_id": -1,
|
||||||
"amt_bid_min": format_amount(1000, 8),
|
"amt_bid_min": format_amount(1, 3),
|
||||||
"swap_type": strSwapType(SwapTypes.SELLER_FIRST),
|
"swap_type": strSwapType(SwapTypes.SELLER_FIRST),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -222,9 +222,9 @@ def readConfig(args, known_coins):
|
||||||
num_changes += 1
|
num_changes += 1
|
||||||
bid_templates_map[bid_template["name"]] = bid_template
|
bid_templates_map[bid_template["name"]] = bid_template
|
||||||
|
|
||||||
if bid_template.get("min_swap_amount", 0.0) < 0.00001:
|
if bid_template.get("min_swap_amount", 0.0) < 0.001:
|
||||||
print("Setting min_swap_amount for bid template", bid_template["name"])
|
print("Setting min_swap_amount for bid template", bid_template["name"])
|
||||||
bid_template["min_swap_amount"] = 0.00001
|
bid_template["min_swap_amount"] = 0.001
|
||||||
|
|
||||||
if "address" not in bid_template:
|
if "address" not in bid_template:
|
||||||
print("Setting address to auto for bid", bid_template["name"])
|
print("Setting address to auto for bid", bid_template["name"])
|
||||||
|
|
Loading…
Reference in a new issue