Start a new topic

BUG: Double credit bug if you Create user and send reward tx immediately

Steps to reproduce:


1) Create new user via API

2) As soon as you have the new OST UUID send another request to "reward" the user 10 tokens from the company account.

3) Check the user balance on https://kit.ost.com/users - 20 tokens, on the OST Block Explorer only the single transaction is shown to the users address as expected https://view.ost.com/chain-id/1409/address/0x304911bab85ba8b59a598b1bde35b9c46e69907f


This only seems to happen if you immediately send the reward transaction after creating a user. The block explorer  shows the correct tx and address balance.


1 person has this problem

I am experiencing the exact same thing as well.


My steps were almost identical:

  1. Created user via API
  2. Immediately executed a company to user transaction via API (100 tokens).
  3. Checked user list at https://kit.ost.com/users shows 200 tokens per newly created user.
  4. Pulled list of users sorted by date created descending via the API, but they still show a balance of 200 too.
  5. Checked the block explorer and the user only has one transaction of 100 tokens
  6. Executed a user to company transaction via API (1 token) and checked the user balance by website and API and it shows 199 tokens. The block explorer shows the correct balance though (https://view.ost.com/chain-id/1409/address/0x747b1aef73bc078611ca38e36a2d4ddf20c79003)

Introducing a manual delay will make sure it shows the correct balance. I tested it down to about 2.5 seconds, then it starts showing the doubled balance again.


3 people like this

update: if you try and spend the user balance you can spend the 10 tokens and the balance will go down to 0 on the block chain explorer - however the  https://kit.ost.com/users UI will still show the "unspendable" extra 10 tokens as the users balance.


2 people like this

Hi! Thank you for reporting the bug - our team will prioritise it.

This has been fixed. Please let us know if anyone is still experiencing this issue.

I'm having the exact same problem. Whatever amount of tokens I send to the new user they receive double.

Login to post a comment