diff --git a/bot/index.js b/bot/index.js index 18f42ee..faac734 100644 --- a/bot/index.js +++ b/bot/index.js @@ -1,7 +1,7 @@ const SignerProvider = require('ethjs-provider-signer'); const sign = require('ethjs-signer').sign; const Eth = require('ethjs-query'); -const Prices = require('./prices'); +const prices = require('./prices'); const config = require('../config'); @@ -48,7 +48,7 @@ const getLabel = function(req) { } const getAmount = function(req) { - let tokenPricePromise = Prices.getTokenPrice(config.token); + let tokenPricePromise = prices.getTokenPrice(config.token); let label = getLabel(req); let amountToPayDollar = config.priceHour * config.workHours[label]; @@ -61,7 +61,7 @@ const getAmount = function(req) { } const getGasPrice = function(req) { - let gasPricePromise = Prices.getGasPrice(); + let gasPricePromise = prices.getGasPrice(); gasPricePromise .then((gasPrice) => {return gasPrice}) diff --git a/bot/prices.js b/bot/prices.js index 966f5a6..8deb5c3 100644 --- a/bot/prices.js +++ b/bot/prices.js @@ -59,6 +59,6 @@ const getTokenPrice = function(token) { } module.exports = { - getGasPriceInWei: getGasPrice, + getGasPrice: getGasPrice, getTokenPrice : getTokenPrice }