Skip to content

faucet残高表示が10^8倍されている問題を修正#1

Merged
satetsu888 merged 1 commit intomasterfrom
fix_faucet_balance
Mar 24, 2018
Merged

faucet残高表示が10^8倍されている問題を修正#1
satetsu888 merged 1 commit intomasterfrom
fix_faucet_balance

Conversation

@satetsu888
Copy link
Copy Markdown

https://faucethub.io/api をみると balance

Your non-decimal balance, which is your coin balance multiplied by 10^8

とあるので、スクリプト側で 10^8 で割ってからDBに保存する必要があった。

この値は画面上に表示する以外には使われていないため、保存時ではなく表示時に桁を合わせても特に問題はない。

@satetsu888 satetsu888 added the bug Something isn't working label Mar 24, 2018
@satetsu888 satetsu888 merged commit 2d38812 into master Mar 24, 2018
@satetsu888 satetsu888 deleted the fix_faucet_balance branch March 24, 2018 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant