mirror of
https://github.com/aljazceru/satshkd-vercel.git
synced 2025-12-17 21:24:23 +01:00
clean up
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
const axios = require('axios')
|
||||
const fs = require('fs');
|
||||
|
||||
|
||||
module.exports = {
|
||||
bfx: async function() {
|
||||
const btcDataURL = "https://api-pub.bitfinex.com/v2/ticker/tBTCUSD"
|
||||
@@ -10,7 +9,7 @@ module.exports = {
|
||||
//console.log(data[6])
|
||||
|
||||
const satDenominator = 100000000
|
||||
const hkdrate = 0.1287
|
||||
const hkdrate = 0.1287 // approximate rate
|
||||
btcLastPrice = data[6]
|
||||
const sathkd = Math.round((1 / btcLastPrice) * satDenominator * hkdrate)
|
||||
//console.log("bitfinex last price: ", btcLastPrice, "current satHKD: ", sathkd)
|
||||
|
||||
Reference in New Issue
Block a user