Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

getGasPrice changed to use gas as coinmarketcap currency id #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/server/methods/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
});
});