|
|
@ -12,7 +12,8 @@ function EdexfillTxHistory(coin) { |
|
|
|
var active_edexcoinmodecode = sessionStorage.getItem('edexTmpMode'); |
|
|
|
|
|
|
|
if ( active_edexcoinmodecode === 'Basilisk' ) { |
|
|
|
EdexGetTxList_cache(coin).then(function(result) { |
|
|
|
EdexGetTxList_cache(coin) |
|
|
|
.then(function(result) { |
|
|
|
var edex_txhistory_table = ''; |
|
|
|
edex_txhistory_table = $('#edex-tx-history-tbl').DataTable({ |
|
|
|
data: result, |
|
|
@ -38,7 +39,8 @@ function EdexfillTxHistory(coin) { |
|
|
|
} |
|
|
|
|
|
|
|
if ( active_edexcoinmodecode === 'Full' ) { |
|
|
|
EdexGetTxList(coin).then(function(result){ |
|
|
|
EdexGetTxList(coin) |
|
|
|
.then(function(result){ |
|
|
|
var edex_txhistory_table = ''; |
|
|
|
edex_txhistory_table = $('#edex-tx-history-tbl').DataTable({ |
|
|
|
data: result, |
|
|
@ -265,19 +267,20 @@ function refreshEDEXCoinWalletList() { |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
walletDivContent += '<!-- Wallet Widget ' + AllcoinsDataOutput[value][index] + ' -->'; |
|
|
|
walletDivContent += '<div class="list-group-item col-xlg-6 col-lg-12 wallet-widgets-info" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '">'; |
|
|
|
walletDivContent += '<div class="widget widget-shadow">'; |
|
|
|
walletDivContent += '<div class="widget-content text-center bg-white padding-20">'; |
|
|
|
walletDivContent += '<a class="avatar margin-bottom-5 edexcoin-logo" href="javascript:void(0)" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '" data-edexcoinmodecode="' + modecode + '" data-edexcoinname="' + coinname + '" id="edexcoin-logo">'; |
|
|
|
walletDivContent += '<img class="img-responsive" src="assets/images/cryptologo/' + coinlogo + '.png" alt="' + coinname + '"/>'; |
|
|
|
walletDivContent += '<span class="badge up badge-' + modecolor + '" id="basfull" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '" data-toggle="tooltip" data-placement="top" data-original-title="' + modetip + '">' + modecode + '</span>'; |
|
|
|
walletDivContent += '</a>'; |
|
|
|
walletDivContent += '<div class="coin-name">' + coinname + '</div>'; |
|
|
|
walletDivContent += '</div>'; |
|
|
|
walletDivContent += '</div>'; |
|
|
|
walletDivContent += '</div>'; |
|
|
|
walletDivContent += '<!-- End Wallet Widget ' + AllcoinsDataOutput[value][index] + ' -->'; |
|
|
|
walletDivContent += |
|
|
|
'<!-- Wallet Widget ' + AllcoinsDataOutput[value][index] + ' -->' + |
|
|
|
'<div class="list-group-item col-xlg-6 col-lg-12 wallet-widgets-info" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '">' + |
|
|
|
'<div class="widget widget-shadow">' + |
|
|
|
'<div class="widget-content text-center bg-white padding-20">' + |
|
|
|
'<a class="avatar margin-bottom-5 edexcoin-logo" href="javascript:void(0)" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '" data-edexcoinmodecode="' + modecode + '" data-edexcoinname="' + coinname + '" id="edexcoin-logo">' + |
|
|
|
'<img class="img-responsive" src="assets/images/cryptologo/' + coinlogo + '.png" alt="' + coinname + '"/>' + |
|
|
|
'<span class="badge up badge-' + modecolor + '" id="basfull" data-edexcoincode="' + AllcoinsDataOutput[value][index] + '" data-toggle="tooltip" data-placement="top" data-original-title="' + modetip + '">' + modecode + '</span>' + |
|
|
|
'</a>' + |
|
|
|
'<div class="coin-name">' + coinname + '</div>' + |
|
|
|
'</div>' + |
|
|
|
'</div>' + |
|
|
|
'</div>' + |
|
|
|
'<!-- End Wallet Widget ' + AllcoinsDataOutput[value][index] + ' -->'; |
|
|
|
|
|
|
|
$('.wallet-widgets-row').html(walletDivContent); |
|
|
|
//getCoinBalance(AllcoinsDataOutput[value][index]);
|
|
|
@ -336,7 +339,8 @@ function EdexGetTxList(coin) { |
|
|
|
url: 'http://127.0.0.1:' + config.iguanaPort, |
|
|
|
type: 'POST', |
|
|
|
dataType: 'json' |
|
|
|
}).then(data => { |
|
|
|
}) |
|
|
|
.then(data => { |
|
|
|
var total_utxos = []; |
|
|
|
let params = ''; |
|
|
|
|
|
|
@ -403,7 +407,8 @@ function EdexGetTxList(coin) { |
|
|
|
resolve(total_utxos); |
|
|
|
}); |
|
|
|
}); |
|
|
|
})).then(result => { |
|
|
|
})) |
|
|
|
.then(result => { |
|
|
|
let result_data = result[result.length - 1]; |
|
|
|
let compiled_result = []; |
|
|
|
|
|
|
@ -438,18 +443,18 @@ function EdexGetTxList(coin) { |
|
|
|
var tmp_secondsToString = secondsToString(result_data[index].blocktime); |
|
|
|
|
|
|
|
if ( result_data[index].category == 'send' ) { |
|
|
|
tmp_category = '<i class="icon fa-arrow-circle-left"></i> OUT'; |
|
|
|
tmp_category = '<i class="icon fa-arrow-circle-left"></i> ' + _lang[defaultLang].DASHBOARD.OUT; |
|
|
|
} |
|
|
|
if ( result_data[index].category == 'receive' ) { |
|
|
|
tmp_category = '<i class="icon fa-arrow-circle-right"></i> IN'; |
|
|
|
tmp_category = '<i class="icon fa-arrow-circle-right"></i> ' + _lang[defaultLang].DASHBOARD.IN; |
|
|
|
} |
|
|
|
if ( result_data[index].category == 'generate' ) { |
|
|
|
tmp_category = '<i class="icon fa-cogs"></i> Mined'; |
|
|
|
tmp_category = '<i class="icon fa-cogs"></i> ' + _lang[defaultLang].DASHBOARD.IMMATURE; |
|
|
|
}if ( result_data[index].category == 'immature' ) { |
|
|
|
tmp_category = '<i class="icon fa-clock-o"></i> Immature'; |
|
|
|
tmp_category = '<i class="icon fa-clock-o"></i> ' + _lang[defaultLang].DASHBOARD.OUT; |
|
|
|
} |
|
|
|
if ( result_data[index].category == 'unknown' ) { |
|
|
|
tmp_category = '<i class="icon fa-meh-o"></i> Unknown'; |
|
|
|
tmp_category = '<i class="icon fa-meh-o"></i> ' + _lang[defaultLang].DASHBOARD.UNKNOWN; |
|
|
|
} |
|
|
|
|
|
|
|
tmplisttransactions = [ |
|
|
@ -498,10 +503,14 @@ function EdexGetTxList(coin) { |
|
|
|
var tmp_secondsToString = secondsToString(result_data[index].timestamp); |
|
|
|
|
|
|
|
if ( result_data[index].type == 'sent' ) { |
|
|
|
tmp_category = '<span class="label label-danger"><i class="icon fa-arrow-circle-left"></i> ' + _lang[defaultLang].DASHBOARD.OUT + '</span>'; |
|
|
|
tmp_category = '<span class="label label-danger">' + |
|
|
|
'<i class="icon fa-arrow-circle-left"></i> ' + _lang[defaultLang].DASHBOARD.OUT + |
|
|
|
'</span>'; |
|
|
|
} |
|
|
|
if ( result_data[index].type == 'received' ) { |
|
|
|
tmp_category = '<span class="label label-success"><i class="icon fa-arrow-circle-right"></i> ' + _lang[defaultLang].DASHBOARD.IN + '</span>'; |
|
|
|
tmp_category = '<span class="label label-success">' + |
|
|
|
'<i class="icon fa-arrow-circle-right"></i> ' + _lang[defaultLang].DASHBOARD.IN + |
|
|
|
'</span>'; |
|
|
|
} |
|
|
|
if ( result_data[index].type == 'generate' ) { |
|
|
|
tmp_category = '<i class="icon fa-cogs"></i> ' + _lang[defaultLang].DASHBOARD.MINED; |
|
|
@ -552,8 +561,9 @@ function EdexGetTxList_cache(coin) { |
|
|
|
NProgress.start(); |
|
|
|
|
|
|
|
return new Promise((resolve) => { |
|
|
|
Shepherd_GetBasiliskCache().then(function(result) { |
|
|
|
var _data = JSON.parse(result) |
|
|
|
Shepherd_GetBasiliskCache() |
|
|
|
.then(function(result) { |
|
|
|
var _data = JSON.parse(result), |
|
|
|
query = _data.result.basilisk, |
|
|
|
active_edexcoinmodecode = sessionStorage.getItem('edexTmpMode'), |
|
|
|
total_utxos = []; |
|
|
@ -565,7 +575,8 @@ function EdexGetTxList_cache(coin) { |
|
|
|
total_utxos = $.merge(total_utxos, data); |
|
|
|
resolve(total_utxos); |
|
|
|
}); |
|
|
|
})).then(result => { |
|
|
|
})) |
|
|
|
.then(result => { |
|
|
|
let result_data = result[result.length - 1]; |
|
|
|
let compiled_result = []; |
|
|
|
|
|
|
@ -590,10 +601,14 @@ function EdexGetTxList_cache(coin) { |
|
|
|
var tmp_secondsToString = secondsToString(result_data[index].timestamp); |
|
|
|
|
|
|
|
if ( result_data[index].type == 'sent' ) { |
|
|
|
tmp_category = '<span class="label label-danger"><i class="icon fa-arrow-circle-left"></i> ' + _lang[defaultLang].DASHBOARD.OUT + '</span>'; |
|
|
|
tmp_category = '<span class="label label-danger">' + |
|
|
|
'<i class="icon fa-arrow-circle-left"></i> ' + _lang[defaultLang].DASHBOARD.OUT + |
|
|
|
'</span>'; |
|
|
|
} |
|
|
|
if ( result_data[index].type == 'received' ) { |
|
|
|
tmp_category = '<span class="label label-success"><i class="icon fa-arrow-circle-right"></i> ' + _lang[defaultLang].DASHBOARD.IN + '</span>'; |
|
|
|
tmp_category = '<span class="label label-success">' + |
|
|
|
'<i class="icon fa-arrow-circle-right"></i> ' + _lang[defaultLang].DASHBOARD.IN + |
|
|
|
'</span>'; |
|
|
|
} |
|
|
|
if ( result_data[index].type == 'generate' ) { |
|
|
|
tmp_category = '<i class="icon fa-cogs"></i> ' + _lang[defaultLang].DASHBOARD.MINED; |
|
|
@ -855,7 +870,8 @@ function EdexListAllAddr(coin) { |
|
|
|
active_edexcoinmodecode = sessionStorage.getItem('edexTmpMode'); |
|
|
|
|
|
|
|
if (active_edexcoinmodecode == 'Basilisk' && coin !== 'BTC' && coin !== 'SYS') { |
|
|
|
EDEXgetaddrbyaccount_cache(coin).then(function(result) { |
|
|
|
EDEXgetaddrbyaccount_cache(coin) |
|
|
|
.then(function(result) { |
|
|
|
console.log(result); |
|
|
|
var only_reciving_addr_data = []; |
|
|
|
|
|
|
@ -894,7 +910,8 @@ function EdexListAllAddr(coin) { |
|
|
|
NProgress.done(); |
|
|
|
}); |
|
|
|
} else if (active_edexcoinmodecode == 'Basilisk' ) { |
|
|
|
EDEXgetaddrbyaccount(coin).then(function(result){ |
|
|
|
EDEXgetaddrbyaccount(coin) |
|
|
|
.then(function(result){ |
|
|
|
console.log(result); |
|
|
|
var only_reciving_addr_data = []; |
|
|
|
|
|
|
@ -935,7 +952,8 @@ function EdexListAllAddr(coin) { |
|
|
|
} |
|
|
|
|
|
|
|
if (active_edexcoinmodecode == 'Full') { |
|
|
|
EDEXgetaddrbyaccount(coin).then(function(result) { |
|
|
|
EDEXgetaddrbyaccount(coin) |
|
|
|
.then(function(result) { |
|
|
|
console.log(result); |
|
|
|
var only_reciving_addr_data = []; |
|
|
|
|
|
|
@ -980,28 +998,42 @@ function edexCoinBtnAction() { |
|
|
|
$('.edexcoin-logo').click(function() { |
|
|
|
$( '#edexcoin_send_coins_back_btn' ).trigger( 'click' ); |
|
|
|
$('#btn_edexcoin_dashboard').hide(); |
|
|
|
$('#btn_edexcoin_send').show(); |
|
|
|
$('#btn_edexcoin_recieve').show(); |
|
|
|
$( |
|
|
|
'#btn_edexcoin_send,' + |
|
|
|
'#btn_edexcoin_recieve' |
|
|
|
) |
|
|
|
.show(); |
|
|
|
|
|
|
|
var selected_coin = $(this).data('edexcoincode'), |
|
|
|
selected_coinmode = $(this).data('edexcoinmodecode'), |
|
|
|
selected_coinname = $(this).data('edexcoinname'); |
|
|
|
|
|
|
|
$('#edexcoin_getbalance_interest').hide(); |
|
|
|
$('#edexcoin_getbalance_total_interest').hide(); |
|
|
|
$('#edexcoin_getbalance_t').removeClass( 'col-lg-4' ).addClass( 'col-lg-12' ); |
|
|
|
$('#edex_interest_balance').text('-'); |
|
|
|
$('#edex_total_balance_interest').text('-'); |
|
|
|
$('#edex_total_balance').text('-'); |
|
|
|
$( |
|
|
|
'#edexcoin_getbalance_interest,' + |
|
|
|
'#edexcoin_getbalance_total_interest' |
|
|
|
) |
|
|
|
.hide(); |
|
|
|
$('#edexcoin_getbalance_t') |
|
|
|
.removeClass( 'col-lg-4' ) |
|
|
|
.addClass( 'col-lg-12' ); |
|
|
|
$( |
|
|
|
'#edex_interest_balance,' + |
|
|
|
'#edex_total_balance_interest,' + |
|
|
|
'#edex_total_balance' |
|
|
|
) |
|
|
|
.text('-'); |
|
|
|
$('#edex_total_balance_coincode').text(selected_coin); |
|
|
|
|
|
|
|
sessionStorage.setItem('edexTmpMode', selected_coinmode); |
|
|
|
resizeDashboardWindow(); |
|
|
|
|
|
|
|
if ( selected_coinmode == 'Basilisk' ) { |
|
|
|
$('#edex-footer').hide(); |
|
|
|
$('#btn_edexcoin_basilisk').show(); |
|
|
|
$('#edexcoin-wallet-waitingrt-alert').hide(); |
|
|
|
$('#btn_edexcoin_basilisk').show(); |
|
|
|
$( |
|
|
|
'#edex-footer,' + |
|
|
|
'#edexcoin-wallet-waitingrt-alert' |
|
|
|
) |
|
|
|
.hide(); |
|
|
|
sessionStorage.setItem('edexTmpRefresh', 'start'); |
|
|
|
} |
|
|
|
if ( selected_coinmode == 'Full' ) { |
|
|
@ -1010,15 +1042,21 @@ function edexCoinBtnAction() { |
|
|
|
sessionStorage.setItem('edexTmpRefresh', 'start'); |
|
|
|
} |
|
|
|
if ( selected_coinmode !== 'Native' ) { |
|
|
|
$('#edexcoin_dashoard_section').show(); |
|
|
|
$('#header-dashboard').show(); |
|
|
|
$('#wallet-widgets').show(); |
|
|
|
$('#edexcoin_dashboardinfo').show(); |
|
|
|
$('#no_wallet_selected').hide(); |
|
|
|
$('#edexcoin_send').hide(); |
|
|
|
$('#edexcoin_recieve_section').hide(); |
|
|
|
$('#edexcoin_settings').hide(); |
|
|
|
$('#currency-progressbars').show(); |
|
|
|
$( |
|
|
|
'#edexcoin_dashoard_section,' + |
|
|
|
'#header-dashboard,' + |
|
|
|
'#wallet-widgets,' + |
|
|
|
'#edexcoin_dashboardinfo,' + |
|
|
|
'#currency-progressbars' |
|
|
|
) |
|
|
|
.show(); |
|
|
|
$( |
|
|
|
'#no_wallet_selected,' + |
|
|
|
'#edexcoin_send,' + |
|
|
|
'#edexcoin_recieve_section,' + |
|
|
|
'#edexcoin_settings' |
|
|
|
) |
|
|
|
.hide(); |
|
|
|
|
|
|
|
// get selected coin's code and populate in easydex wallet widget's html elements
|
|
|
|
var coincode = $(this).data('edexcoincode'); |
|
|
@ -1034,13 +1072,14 @@ function edexCoinBtnAction() { |
|
|
|
$('#edexcoin-active').text(selected_coinname); |
|
|
|
$('#edex_total_balance_coincode').text(coincode); |
|
|
|
// populate selected coin's address
|
|
|
|
EDEXMainAddr(selected_coin).then(function(result) { |
|
|
|
EDEXMainAddr(selected_coin) |
|
|
|
.then(function(result) { |
|
|
|
$('#edexcoin_active_addr').text(result); |
|
|
|
$('#edexcoin_active_addr_clipboard').attr('data-clipboard-text', result); |
|
|
|
}) |
|
|
|
|
|
|
|
$('#edexcoin_active_addr_clipboard').click(function() { |
|
|
|
alertify.success('Address Copied.'); |
|
|
|
alertify.success(_lang[defaultLang].DASHBOARD.ADDR_COPIED + '.'); |
|
|
|
}); |
|
|
|
|
|
|
|
var clipboard = new Clipboard('.clipboard-edexaddr'); |
|
|
@ -1080,11 +1119,17 @@ function edexCoinBtnAction() { |
|
|
|
selected_coin !== 'CARB' && |
|
|
|
selected_coin !== 'ANC' && |
|
|
|
selected_coin !== 'FRK') { |
|
|
|
getDEXGetBalance_cache(selected_coin).then(function(result) { |
|
|
|
getDEXGetBalance_cache(selected_coin) |
|
|
|
.then(function(result) { |
|
|
|
if ( result.interest !== undefined && selected_coin == 'KMD') { |
|
|
|
$('#edexcoin_getbalance_interest').show(); |
|
|
|
$('#edexcoin_getbalance_total_interest').show(); |
|
|
|
$('#edexcoin_getbalance_t').removeClass( 'col-lg-12' ).addClass( 'col-lg-4' ); |
|
|
|
$( |
|
|
|
'#edexcoin_getbalance_interest,' + |
|
|
|
'#edexcoin_getbalance_total_interest' |
|
|
|
) |
|
|
|
.show(); |
|
|
|
$('#edexcoin_getbalance_t') |
|
|
|
.removeClass( 'col-lg-12' ) |
|
|
|
.addClass( 'col-lg-4' ); |
|
|
|
$('#edex_interest_balance').text(result.interest); |
|
|
|
$('#edex_total_balance_interest').text(result.totalbalance); |
|
|
|
$('#edex_total_interest_coincode').text(selected_coin); |
|
|
@ -1092,22 +1137,36 @@ function edexCoinBtnAction() { |
|
|
|
} |
|
|
|
|
|
|
|
if ( result.interest === undefined || selected_coin !== 'KMD') { |
|
|
|
$('#edexcoin_getbalance_interest').hide(); |
|
|
|
$('#edexcoin_getbalance_total_interest').hide(); |
|
|
|
$('#edexcoin_getbalance_t').removeClass( 'col-lg-4' ).addClass( 'col-lg-12' ); |
|
|
|
$('#edex_interest_balance').text('-'); |
|
|
|
$('#edex_total_balance_interest').text('-'); |
|
|
|
$( |
|
|
|
'#edexcoin_getbalance_interest,' + |
|
|
|
'#edexcoin_getbalance_total_interest' |
|
|
|
) |
|
|
|
.hide(); |
|
|
|
$('#edexcoin_getbalance_t') |
|
|
|
.removeClass( 'col-lg-4' ) |
|
|
|
.addClass( 'col-lg-12' ); |
|
|
|
$( |
|
|
|
'#edex_interest_balance,' + |
|
|
|
'#edex_total_balance_interest' |
|
|
|
) |
|
|
|
.text('-'); |
|
|
|
} |
|
|
|
|
|
|
|
$('#edex_total_balance').text(result.total); |
|
|
|
$('#edex_total_balance_coincode').text(selected_coin); |
|
|
|
}); |
|
|
|
} else if (selected_coinmode == 'Basilisk') { |
|
|
|
getDEXGetBalance2(selected_coin).then(function(result) { |
|
|
|
getDEXGetBalance2(selected_coin) |
|
|
|
.then(function(result) { |
|
|
|
if ( result.interest !== undefined ) { |
|
|
|
$('#edexcoin_getbalance_interest').show(); |
|
|
|
$('#edexcoin_getbalance_total_interest').show(); |
|
|
|
$('#edexcoin_getbalance_t').removeClass( 'col-lg-12' ).addClass( 'col-lg-4' ); |
|
|
|
$( |
|
|
|
'#edexcoin_getbalance_interest,' + |
|
|
|
'#edexcoin_getbalance_total_interest' |
|
|
|
) |
|
|
|
.show(); |
|
|
|
$('#edexcoin_getbalance_t') |
|
|
|
.removeClass( 'col-lg-12' ) |
|
|
|
.addClass( 'col-lg-4' ); |
|
|
|
$('#edex_interest_balance').text(result.interest); |
|
|
|
$('#edex_total_balance_interest').text(result.totalbalance); |
|
|
|
$('#edex_total_interest_coincode').text(selected_coin); |
|
|
@ -1115,23 +1174,36 @@ function edexCoinBtnAction() { |
|
|
|
} |
|
|
|
|
|
|
|
if ( result.interest === undefined || selected_coin !== 'KMD') { |
|
|
|
$('#edexcoin_getbalance_interest').hide(); |
|
|
|
$('#edexcoin_getbalance_total_interest').hide(); |
|
|
|
$('#edexcoin_getbalance_t').removeClass( 'col-lg-4' ).addClass( 'col-lg-12' ); |
|
|
|
$('#edex_interest_balance').text('-'); |
|
|
|
$('#edex_total_balance_interest').text('-'); |
|
|
|
$( |
|
|
|
'#edexcoin_getbalance_interest,' + |
|
|
|
'#edexcoin_getbalance_total_interest' |
|
|
|
) |
|
|
|
.hide(); |
|
|
|
$('#edexcoin_getbalance_t') |
|
|
|
.removeClass( 'col-lg-4' ) |
|
|
|
.addClass( 'col-lg-12' ); |
|
|
|
$( |
|
|
|
'#edex_interest_balance,' + |
|
|
|
'#edex_total_balance_interest' |
|
|
|
) |
|
|
|
.text('-'); |
|
|
|
} |
|
|
|
|
|
|
|
$('#edex_total_balance').text(result.total); |
|
|
|
$('#edex_total_balance_coincode').text(selected_coin); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
EDEXlistunspent(selected_coin).then(function(result) { |
|
|
|
EDEXlistunspent(selected_coin) |
|
|
|
.then(function(result) { |
|
|
|
if (result[0] != undefined) { |
|
|
|
if ( result[0].interest !== undefined ) { |
|
|
|
$('#edexcoin_getbalance_interest').show(); |
|
|
|
$('#edexcoin_getbalance_total_interest').show(); |
|
|
|
$('#edexcoin_getbalance_t').removeClass( 'col-lg-12' ).addClass( 'col-lg-4' ); |
|
|
|
$( |
|
|
|
'#edexcoin_getbalance_interest,' + |
|
|
|
'#edexcoin_getbalance_total_interest' |
|
|
|
).show(); |
|
|
|
$('#edexcoin_getbalance_t') |
|
|
|
.removeClass( 'col-lg-12' ) |
|
|
|
.addClass( 'col-lg-4' ); |
|
|
|
$('#edex_interest_balance').text(result[0].interest); |
|
|
|
$('#edex_total_balance_interest').text(result[0].totalbalance); |
|
|
|
$('#edex_total_interest_coincode').text(selected_coin); |
|
|
@ -1139,11 +1211,19 @@ function edexCoinBtnAction() { |
|
|
|
} |
|
|
|
|
|
|
|
if ( result[0].interest === undefined ) { |
|
|
|
$('#edexcoin_getbalance_interest').hide(); |
|
|
|
$('#edexcoin_getbalance_total_interest').hide(); |
|
|
|
$('#edexcoin_getbalance_t').removeClass( 'col-lg-4' ).addClass( 'col-lg-12' ); |
|
|
|
$('#edex_interest_balance').text('-'); |
|
|
|
$('#edex_total_balance_interest').text('-'); |
|
|
|
$( |
|
|
|
'#edexcoin_getbalance_interest,' + |
|
|
|
'#edexcoin_getbalance_total_interest' |
|
|
|
) |
|
|
|
.hide(); |
|
|
|
$('#edexcoin_getbalance_t') |
|
|
|
.removeClass( 'col-lg-4' ) |
|
|
|
.addClass( 'col-lg-12' ); |
|
|
|
$( |
|
|
|
'#edex_interest_balance,' + |
|
|
|
'#edex_total_balance_interest' |
|
|
|
) |
|
|
|
.text('-'); |
|
|
|
} |
|
|
|
|
|
|
|
$('#edex_total_balance').text(result[0].total); |
|
|
@ -1167,24 +1247,24 @@ function edexCoinBtnAction() { |
|
|
|
sessionStorage.setItem('edexTmpRefresh', 'start'); |
|
|
|
$( '#nav-zcash-wallet' ).trigger( 'click' ); |
|
|
|
} |
|
|
|
if ( selected_coin == 'SUPERNET' |
|
|
|
|| selected_coin == 'REVS' |
|
|
|
|| selected_coin == 'REVS' |
|
|
|
|| selected_coin == 'DEX' |
|
|
|
|| selected_coin == 'PANGEA' |
|
|
|
|| selected_coin == 'JUMBLR' |
|
|
|
|| selected_coin == 'BET' |
|
|
|
|| selected_coin == 'CRYPTO' |
|
|
|
|| selected_coin == 'HODL' |
|
|
|
|| selected_coin == 'SHARK' |
|
|
|
|| selected_coin == 'BOTS' |
|
|
|
|| selected_coin == 'MGW' |
|
|
|
|| selected_coin == 'MVP' |
|
|
|
|| selected_coin == 'WIRELESS' |
|
|
|
|| selected_coin == 'KV' |
|
|
|
|| selected_coin == 'CEAL' |
|
|
|
|| selected_coin == 'MESH' |
|
|
|
|| selected_coin == 'USD' ) { |
|
|
|
if ( selected_coin == 'SUPERNET' || |
|
|
|
selected_coin == 'REVS' || |
|
|
|
selected_coin == 'REVS' || |
|
|
|
selected_coin == 'DEX' || |
|
|
|
selected_coin == 'PANGEA' || |
|
|
|
selected_coin == 'JUMBLR' || |
|
|
|
selected_coin == 'BET' || |
|
|
|
selected_coin == 'CRYPTO' || |
|
|
|
selected_coin == 'HODL' || |
|
|
|
selected_coin == 'SHARK' || |
|
|
|
selected_coin == 'BOTS' || |
|
|
|
selected_coin == 'MGW' || |
|
|
|
selected_coin == 'MVP' || |
|
|
|
selected_coin == 'WIRELESS' || |
|
|
|
selected_coin == 'KV' || |
|
|
|
selected_coin == 'CEAL' || |
|
|
|
selected_coin == 'MESH' || |
|
|
|
selected_coin == 'USD' ) { |
|
|
|
sessionStorage.setItem('edexTmpMode', selected_coinmode); |
|
|
|
sessionStorage.setItem('edexTmpRefresh', 'start'); |
|
|
|
assetchain_pax_menu_actions(selected_coin) |
|
|
|