mirror of
https://github.com/status-im/autobounty.git
synced 2025-02-27 12:30:42 +00:00
getGasPrice function removed
This commit is contained in:
parent
e028a2e8d8
commit
b880386496
@ -53,7 +53,6 @@ const getAmount = function(req) {
|
|||||||
let label = values[0];
|
let label = values[0];
|
||||||
let tokenPrice = values[1];
|
let tokenPrice = values[1];
|
||||||
let amountToPayDollar = config.priceHour * config.bountyLabels[label];
|
let amountToPayDollar = config.priceHour * config.bountyLabels[label];
|
||||||
console.log('Amount: ' + amountToPayDollar +', ' + tokenPrice);
|
|
||||||
resolve(config.amountToPayDollar/tokenPrice);
|
resolve(config.amountToPayDollar/tokenPrice);
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
@ -63,10 +62,6 @@ const getAmount = function(req) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const getGasPrice = function(req) {
|
|
||||||
let gasPricePromise = prices.getGasPrice();
|
|
||||||
return gasPricePromise;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Logging functions
|
// Logging functions
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user