feat: add galoy config and UI safeguards
This commit is contained in:
parent
355434ced3
commit
12a7ed0bd6
6 changed files with 11 additions and 10 deletions
|
|
@ -1,7 +1,5 @@
|
|||
const BN = require('../../../bn')
|
||||
|
||||
const NAME = 'LN'
|
||||
const SUPPORTED_COINS = ['BTC']
|
||||
const SUPPORTED_COINS = ['LN']
|
||||
|
||||
function checkCryptoCode (cryptoCode) {
|
||||
if (!SUPPORTED_COINS.includes(cryptoCode)) {
|
||||
|
|
@ -23,7 +21,6 @@ function sendCoins (account, tx, settings, operatorId) {
|
|||
function balance (account, cryptoCode, settings, operatorId) {
|
||||
return checkCryptoCode(cryptoCode)
|
||||
.then(() => getWallet(account, cryptoCode))
|
||||
.then(wallet => new BN(wallet._wallet.spendableBalanceString))
|
||||
}
|
||||
|
||||
function newAddress (account, info, tx, settings, operatorId) {
|
||||
|
|
@ -41,7 +38,7 @@ function newFunding (account, cryptoCode, settings, operatorId) {
|
|||
|
||||
function cryptoNetwork (account, cryptoCode, settings, operatorId) {
|
||||
return checkCryptoCode(cryptoCode)
|
||||
.then(() => account.environment === 'test' ? 'test' : 'main')
|
||||
.then(() => {})
|
||||
}
|
||||
|
||||
function checkBlockchainStatus (cryptoCode) {
|
||||
Loading…
Add table
Add a link
Reference in a new issue