CoinRoster / slotmachine

fruitgame
0 stars 0 forks source link

Admin Page - Rake account initial transaction shows 0 BTC amount #47

Closed Patrick-Bay closed 6 years ago

Patrick-Bay commented 6 years ago

When the database has been reset (perhaps other times), the rake account transaction table on the admin page shows an amount of 0 but a balance >0 as the initial transaction (implies that the initial deposit was 0).

Also note that the rake amount reported on the Dividend Transactions table does not match the deposit amount specified in the rake transactions table, and the Rake Account Balance in Liabilities table should match the current rake account balance noted referenced here (it looks like it currently is, just confirm that it's correct post updates).

Patrick-Bay commented 6 years ago

In this issue it seems that we're storing the wrong value for the initial balance history. The change that needs to be made will be in the rpc_payDividends function. This function will also need to be investigated to see where the discrepancy between the Dividend Transactions table and the Rake Transactions table.

I expect investigation to take approximately 1.5 hours and a fix to take approximately the same amount for a total of 3 hours.

Patrick-Bay commented 6 years ago

This issue has been updated with the latest commit (https://github.com/CoinRoster/slotmachine/commit/325e8484e5a042b9bf1aa5652ff46d6904876733), and is available on the dev server immediately for review.

Please note that due to data formatting updates, the current database structure may not correctly render on the front end and certain items (e.g. dividend transaction items on the admin page, some transactions on the account page, etc.) Although these will appear in time it is highly advised that we clear the database so that we can correctly track and display all values.