mirror of
https://github.com/basicswap/basicswap.git
synced 2025-01-18 08:34:32 +00:00
Add BCH to adaptor_swap_only_coins.
This commit is contained in:
parent
51d9685af0
commit
5df9b044ab
2 changed files with 2 additions and 2 deletions
|
@ -302,7 +302,7 @@ class BasicSwap(BaseApp):
|
||||||
# TODO: Set dynamically
|
# TODO: Set dynamically
|
||||||
self.balance_only_coins = (Coins.LTC_MWEB, )
|
self.balance_only_coins = (Coins.LTC_MWEB, )
|
||||||
self.scriptless_coins = (Coins.XMR, Coins.WOW, Coins.PART_ANON, Coins.FIRO)
|
self.scriptless_coins = (Coins.XMR, Coins.WOW, Coins.PART_ANON, Coins.FIRO)
|
||||||
self.adaptor_swap_only_coins = self.scriptless_coins + (Coins.PART_BLIND, )
|
self.adaptor_swap_only_coins = self.scriptless_coins + (Coins.PART_BLIND, Coins.BCH)
|
||||||
self.coins_without_segwit = (Coins.PIVX, Coins.DASH, Coins.NMC)
|
self.coins_without_segwit = (Coins.PIVX, Coins.DASH, Coins.NMC)
|
||||||
|
|
||||||
# TODO: Adjust ranges
|
# TODO: Adjust ranges
|
||||||
|
|
|
@ -409,7 +409,7 @@
|
||||||
document.getElementById('get_rate_inferred_button').addEventListener('click', getRateInferred);
|
document.getElementById('get_rate_inferred_button').addEventListener('click', getRateInferred);
|
||||||
|
|
||||||
function set_swap_type_enabled(coin_from, coin_to, swap_type) {
|
function set_swap_type_enabled(coin_from, coin_to, swap_type) {
|
||||||
const adaptor_sig_only_coins = ['6' /* XMR */,'9' /* WOW */, '8' /* PART_ANON */, '7' /* PART_BLIND */, '13' /* FIRO */];
|
const adaptor_sig_only_coins = ['6' /* XMR */,'9' /* WOW */, '8' /* PART_ANON */, '7' /* PART_BLIND */, '13' /* FIRO */, '17' /* BCH */];
|
||||||
const secret_hash_only_coins = ['11' /* PIVX */, '12' /* DASH */];
|
const secret_hash_only_coins = ['11' /* PIVX */, '12' /* DASH */];
|
||||||
let make_hidden = false;
|
let make_hidden = false;
|
||||||
if (adaptor_sig_only_coins.includes(coin_from) || adaptor_sig_only_coins.includes(coin_to)) {
|
if (adaptor_sig_only_coins.includes(coin_from) || adaptor_sig_only_coins.includes(coin_to)) {
|
||||||
|
|
Loading…
Reference in a new issue