mirror of
https://github.com/status-im/autobounty.git
synced 2025-01-14 15:54:32 +00:00
Use STT by default
This commit is contained in:
parent
cef804896b
commit
260ce2d03f
@ -29,6 +29,10 @@ function getGasPrice () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getTokenPrice (token) {
|
function getTokenPrice (token) {
|
||||||
|
if (token === 'STT') {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
const currency = 'USD'
|
const currency = 'USD'
|
||||||
const url = `https://min-api.cryptocompare.com/data/price?fsym=${token}&tsyms=${currency}`
|
const url = `https://min-api.cryptocompare.com/data/price?fsym=${token}&tsyms=${currency}`
|
||||||
// return new pending promise
|
// return new pending promise
|
||||||
|
@ -60,7 +60,7 @@ module.exports = {
|
|||||||
privateKey: '',
|
privateKey: '',
|
||||||
|
|
||||||
// Token of the currency for fetching real time prices (e.g. 'SNT')
|
// Token of the currency for fetching real time prices (e.g. 'SNT')
|
||||||
token: 'SNT',
|
token: 'STT',
|
||||||
|
|
||||||
// Limit for the gas used in a transaction (e.g. 92000)
|
// Limit for the gas used in a transaction (e.g. 92000)
|
||||||
gasLimit: 92000,
|
gasLimit: 92000,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user