Mining token exchange rate & credit economy

by Bassdrop - 23-10-2018, 10:08 PM
Neurofunk Selecta
Divine
Posts:
435
Joined:
Mar 2018
Likes:
44
Credits:
4,500
Reputation:
36
1/2 Year of Service
#1
OP
Posted: 23-10-2018, 10:08 PM
Hello,

Since yesterday's update, I've noticed some big issues with the credit economy and mining tokens.

Error generated on the Token Economy page @ https://nulledbb.com/credits/?action=economy :

[Image: FpbgnRw.png]

No token value on the mining page @ https://nulledbb.com/credits/?action=mining :


[Image: ph3sJOV.png]

(exchange rate was fluctuating around 0.00007000 until the update)

Fortunately, both of these problems appear to have a single cause; inability to fetch the current bitcoin price.

Cheers,
Sarc

Life is like a box of chocolates, it doesn't last as long for fat people.
Tomori wa kawaii desu!
Posts:
4,259
Joined:
Oct 2015
Likes:
308
Credits:
15,503
Reputation:
164
3 Years of Service
#2
Posted: 23-10-2018, 11:01 PM
Fixed (?)
It had nothing to do with the bitcoin rate fetch. It had to do with the system upgrade
Aisaka Squad
Clxud | Aki | KyokoSuiSenpai | fdigl | KittyKatu | etc

[Image: yrNnxfb.gif]
Neurofunk Selecta
Divine
Posts:
435
Joined:
Mar 2018
Likes:
44
Credits:
4,500
Reputation:
36
1/2 Year of Service
#3
OP
Posted: 24-10-2018, 02:16 AM (This post was last modified: 24-10-2018, 02:16 AM by Bassdrop.)
(23-10-2018, 11:01 PM)Aisaka Wrote: Fixed (?)
It had nothing to do with the bitcoin rate fetch. It had to do with the system upgrade

Awesome, looks good now!

Figured it was upgrade-related, just assumed it had to do with price fetch since rate was 0 and error was division by 0.

Cheers, thanks Aisaka!

Life is like a box of chocolates, it doesn't last as long for fat people.
Tomori wa kawaii desu!
Posts:
4,259
Joined:
Oct 2015
Likes:
308
Credits:
15,503
Reputation:
164
3 Years of Service
#4
Posted: 24-10-2018, 08:17 AM
(24-10-2018, 02:16 AM)Bassdrop Wrote: Awesome, looks good now!

Figured it was upgrade-related, just assumed it had to do with price fetch since rate was 0 and error was division by 0.

Cheers, thanks Aisaka!

Naah, it was due to deprecated coding, which lead in some SQL-Queries not be able to fetch the total credits on this forum. Hence the query returned 0, which also lead to zero-division :3
Aisaka Squad
Clxud | Aki | KyokoSuiSenpai | fdigl | KittyKatu | etc

[Image: yrNnxfb.gif]
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)