From d4908476242533f633c8974273f7229b92590740 Mon Sep 17 00:00:00 2001 From: hal0x2328 Date: Fri, 13 Oct 2017 07:44:02 -0400 Subject: [PATCH 1/2] getGasPrice changed to use gas as coinmarketcap currency id --- app/server/methods/wallet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/server/methods/wallet.js b/app/server/methods/wallet.js index bba919b..a090fc4 100644 --- a/app/server/methods/wallet.js +++ b/app/server/methods/wallet.js @@ -21,10 +21,10 @@ Meteor.methods({ }, getGasPrice() { try { - const result = HTTP.call('GET', 'https://api.coinmarketcap.com/v1/ticker/Antcoin/?convert=USD'); + const result = HTTP.call('GET', 'https://api.coinmarketcap.com/v1/ticker/gas/?convert=USD'); return result.data; } catch (e) { return false; } } -}); \ No newline at end of file +}); From 0445b86c50292be52f25e69d3270086f71c7ff7c Mon Sep 17 00:00:00 2001 From: hal0x2328 <31932411+hal0x2328@users.noreply.github.com> Date: Fri, 13 Oct 2017 18:05:44 -0400 Subject: [PATCH 2/2] switched neon-wallet api calls to use v2 v1 of the api no longer returns a correct balance for all wallets --- app/server/methods/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/methods/wallet.js b/app/server/methods/wallet.js index a090fc4..5623f3d 100644 --- a/app/server/methods/wallet.js +++ b/app/server/methods/wallet.js @@ -2,7 +2,7 @@ Meteor.methods({ getWalletAmount() { try { if(Meteor.user().profile.walletAddress) { - const result = HTTP.call('GET', 'http://api.neonwallet.com/v1/address/balance/' + Meteor.user().profile.walletAddress); + const result = HTTP.call('GET', 'http://api.neonwallet.com/v2/address/balance/' + Meteor.user().profile.walletAddress); return result.data; } else { return false;