You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If someone deposits a specific amount in USD ex. $5 or $500, In some cases the Blockchain amount will contain many decimals, ex. "0.055796386110991888".
In this case the DB amount will appear as "0.0557963861109919". This is not an issue on DB but the collection fails, Which is pain when we have more than 100 active customers.
I will be happy to submit a PR.
The text was updated successfully, but these errors were encountered:
@krtschmr I think you missed the point, system is rounding the amount but it is rounding up instead of rounding down.
Amount: 0.58995
Precision: 2
Case "rounding up":
Amount: 0.59
Case "rounding down":
Amount: 0.58
you see if we round up, the amount will be greater than actual deposit and cause issue on blockchain when collecting as the amount on the blockchain is 0.58995 but in the system amount will be 0.59 and system will try to collect 0.59.
If someone deposits a specific amount in USD ex. $5 or $500, In some cases the Blockchain amount will contain many decimals, ex. "0.055796386110991888".
In this case the DB amount will appear as "0.0557963861109919". This is not an issue on DB but the collection fails, Which is pain when we have more than 100 active customers.
I will be happy to submit a PR.
The text was updated successfully, but these errors were encountered: